{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "packageName": "pi-leetcode-tools",
  "contractVersion": "1.1.0",
  "protocolVersion": "1.0.0",
  "schemas": {
    "meta": {
      "type": "object",
      "required": [
        "region",
        "packageVersion",
        "contractVersion",
        "schemaDigest",
        "behaviorManifestDigest",
        "instanceId",
        "contextRevision",
        "requestId"
      ],
      "properties": {
        "region": {
          "anyOf": [
            {
              "type": "string",
              "const": "global"
            },
            {
              "type": "string",
              "const": "cn"
            }
          ],
          "description": "LeetCode site region"
        },
        "packageVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "contractVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "schemaDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "behaviorManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "accountProfileId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "durationMs": {
          "type": "number",
          "minimum": 0
        },
        "truncated": {
          "type": "boolean"
        },
        "omittedFields": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 128
          },
          "maxItems": 100
        }
      },
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "properties": {
        "code": {
          "anyOf": [
            {
              "type": "string",
              "const": "VALIDATION_ERROR"
            },
            {
              "type": "string",
              "const": "AUTH_REQUIRED"
            },
            {
              "type": "string",
              "const": "AUTH_EXPIRED"
            },
            {
              "type": "string",
              "const": "PERMISSION_DENIED"
            },
            {
              "type": "string",
              "const": "INTERACTION_REQUIRED"
            },
            {
              "type": "string",
              "const": "NOT_FOUND"
            },
            {
              "type": "string",
              "const": "RATE_LIMITED"
            },
            {
              "type": "string",
              "const": "REMOTE_UNAVAILABLE"
            },
            {
              "type": "string",
              "const": "EXECUTION_FAILED"
            },
            {
              "type": "string",
              "const": "UNSUPPORTED_REGION"
            },
            {
              "type": "string",
              "const": "STALE_OPERATION"
            },
            {
              "type": "string",
              "const": "STALE_CURSOR"
            },
            {
              "type": "string",
              "const": "UNKNOWN_WRITE_OUTCOME"
            },
            {
              "type": "string",
              "const": "CANCELLED"
            },
            {
              "type": "string",
              "const": "CAPABILITY_UNAVAILABLE"
            },
            {
              "type": "string",
              "const": "REMOTE_SCHEMA_CHANGED"
            },
            {
              "type": "string",
              "const": "PROVIDER_CONFLICT"
            },
            {
              "type": "string",
              "const": "CONTRACT_MISMATCH"
            },
            {
              "type": "string",
              "const": "PROTOCOL_TIMEOUT"
            }
          ]
        },
        "message": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "retryable": {
          "type": "boolean"
        },
        "retryAfterMs": {
          "type": "integer",
          "minimum": 0
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "details": {
          "type": "object",
          "patternProperties": {
            "^.*$": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        }
      },
      "additionalProperties": false
    },
    "failure": {
      "type": "object",
      "required": [
        "ok",
        "error",
        "meta"
      ],
      "properties": {
        "ok": {
          "type": "boolean",
          "const": false
        },
        "error": {
          "type": "object",
          "required": [
            "code",
            "message",
            "retryable"
          ],
          "properties": {
            "code": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "VALIDATION_ERROR"
                },
                {
                  "type": "string",
                  "const": "AUTH_REQUIRED"
                },
                {
                  "type": "string",
                  "const": "AUTH_EXPIRED"
                },
                {
                  "type": "string",
                  "const": "PERMISSION_DENIED"
                },
                {
                  "type": "string",
                  "const": "INTERACTION_REQUIRED"
                },
                {
                  "type": "string",
                  "const": "NOT_FOUND"
                },
                {
                  "type": "string",
                  "const": "RATE_LIMITED"
                },
                {
                  "type": "string",
                  "const": "REMOTE_UNAVAILABLE"
                },
                {
                  "type": "string",
                  "const": "EXECUTION_FAILED"
                },
                {
                  "type": "string",
                  "const": "UNSUPPORTED_REGION"
                },
                {
                  "type": "string",
                  "const": "STALE_OPERATION"
                },
                {
                  "type": "string",
                  "const": "STALE_CURSOR"
                },
                {
                  "type": "string",
                  "const": "UNKNOWN_WRITE_OUTCOME"
                },
                {
                  "type": "string",
                  "const": "CANCELLED"
                },
                {
                  "type": "string",
                  "const": "CAPABILITY_UNAVAILABLE"
                },
                {
                  "type": "string",
                  "const": "REMOTE_SCHEMA_CHANGED"
                },
                {
                  "type": "string",
                  "const": "PROVIDER_CONFLICT"
                },
                {
                  "type": "string",
                  "const": "CONTRACT_MISMATCH"
                },
                {
                  "type": "string",
                  "const": "PROTOCOL_TIMEOUT"
                }
              ]
            },
            "message": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "retryable": {
              "type": "boolean"
            },
            "retryAfterMs": {
              "type": "integer",
              "minimum": 0
            },
            "operationId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "details": {
              "type": "object",
              "patternProperties": {
                "^.*$": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2048
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "additionalProperties": false
        },
        "meta": {
          "type": "object",
          "required": [
            "region",
            "packageVersion",
            "contractVersion",
            "schemaDigest",
            "behaviorManifestDigest",
            "instanceId",
            "contextRevision",
            "requestId"
          ],
          "properties": {
            "region": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "global"
                },
                {
                  "type": "string",
                  "const": "cn"
                }
              ],
              "description": "LeetCode site region"
            },
            "packageVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "contractVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "schemaDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "behaviorManifestDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "instanceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "contextRevision": {
              "type": "integer",
              "minimum": 0
            },
            "accountProfileId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "requestId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "durationMs": {
              "type": "number",
              "minimum": 0
            },
            "truncated": {
              "type": "boolean"
            },
            "omittedFields": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 128
              },
              "maxItems": 100
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "capabilityManifest": {
      "type": "object",
      "required": [
        "packageName",
        "providerId",
        "instanceId",
        "contextRevision",
        "packageVersion",
        "contractVersion",
        "protocolVersion",
        "schemaDigest",
        "behaviorManifestDigest",
        "capabilityManifestDigest",
        "snapshotRevision",
        "observedAt",
        "supportedRegions",
        "tools",
        "notesPort",
        "regionReadiness",
        "interactiveUI"
      ],
      "properties": {
        "packageName": {
          "type": "string",
          "const": "pi-leetcode-tools"
        },
        "providerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "activeAccountProfileId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "packageVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "contractVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "protocolVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "schemaDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "behaviorManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "capabilityManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "snapshotRevision": {
          "type": "integer",
          "minimum": 0
        },
        "observedAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "supportedRegions": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "minItems": 1,
          "maxItems": 2,
          "uniqueItems": true
        },
        "tools": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "version",
              "supported",
              "configured",
              "currentlyAvailable",
              "requiresAuth",
              "consequence"
            ],
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "lc_daily"
                  },
                  {
                    "type": "string",
                    "const": "lc_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_problem"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution"
                  },
                  {
                    "type": "string",
                    "const": "lc_profile"
                  },
                  {
                    "type": "string",
                    "const": "lc_contest"
                  },
                  {
                    "type": "string",
                    "const": "lc_progress"
                  },
                  {
                    "type": "string",
                    "const": "lc_history"
                  },
                  {
                    "type": "string",
                    "const": "lc_user_submissions"
                  },
                  {
                    "type": "string",
                    "const": "lc_submission"
                  },
                  {
                    "type": "string",
                    "const": "lc_run"
                  },
                  {
                    "type": "string",
                    "const": "lc_submit"
                  },
                  {
                    "type": "string",
                    "const": "lc_operation_status"
                  }
                ]
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "supported": {
                "type": "boolean"
              },
              "configured": {
                "type": "boolean"
              },
              "currentlyAvailable": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "maxLength": 128
              },
              "requiresAuth": {
                "type": "boolean"
              },
              "consequence": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "read"
                  },
                  {
                    "type": "string",
                    "const": "answer_read"
                  },
                  {
                    "type": "string",
                    "const": "sensitive_read"
                  },
                  {
                    "type": "string",
                    "const": "execution"
                  },
                  {
                    "type": "string",
                    "const": "external_write"
                  }
                ]
              },
              "disclosureRisk": {
                "type": "string",
                "const": "solution"
              }
            },
            "additionalProperties": false
          },
          "maxItems": 14
        },
        "notesPort": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "supported",
                "configured",
                "currentlyAvailable",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "configured": {
                  "type": "boolean"
                },
                "currentlyAvailable": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string",
                  "maxLength": 128
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "supported",
                "configured",
                "currentlyAvailable",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "configured": {
                  "type": "boolean"
                },
                "currentlyAvailable": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string",
                  "maxLength": 128
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "regionReadiness": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "configured",
                "publicReads",
                "sessionReads",
                "execution",
                "externalWrite",
                "notes"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "publicReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "sessionReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "execution": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "externalWrite": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "retryAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "configured",
                "publicReads",
                "sessionReads",
                "execution",
                "externalWrite",
                "notes"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "publicReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "sessionReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "execution": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "externalWrite": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "retryAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "interactiveUI": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "notesCapability": {
      "type": "object",
      "required": [
        "supported",
        "configured",
        "currentlyAvailable",
        "revisionMode",
        "maxSize"
      ],
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "configured": {
          "type": "boolean"
        },
        "currentlyAvailable": {
          "type": "boolean"
        },
        "reason": {
          "type": "string",
          "maxLength": 128
        },
        "revisionMode": {
          "anyOf": [
            {
              "type": "string",
              "const": "native-etag"
            },
            {
              "type": "string",
              "const": "best-effort-compare-and-set"
            },
            {
              "type": "string",
              "const": "unsupported"
            }
          ]
        },
        "maxSize": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "notesDocument": {
      "type": "object",
      "required": [
        "target",
        "content",
        "byteLength",
        "revision",
        "revisionMode"
      ],
      "properties": {
        "target": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "content": {
          "type": "string",
          "maxLength": 16384
        },
        "byteLength": {
          "type": "integer",
          "minimum": 0,
          "maximum": 16384
        },
        "revision": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "revisionMode": {
          "anyOf": [
            {
              "type": "string",
              "const": "native-etag"
            },
            {
              "type": "string",
              "const": "best-effort-compare-and-set"
            },
            {
              "type": "string",
              "const": "unsupported"
            }
          ]
        },
        "updatedAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "additionalProperties": false
    },
    "userNote": {
      "type": "object",
      "required": [
        "id",
        "summary",
        "content"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
        },
        "summary": {
          "type": "string",
          "maxLength": 2048,
          "description": "Personal note title/summary"
        },
        "content": {
          "type": "string",
          "maxLength": 200000,
          "description": "Sensitive personal note body; markdown is preserved verbatim",
          "x-sensitive": true,
          "x-persistence": "never"
        },
        "noteQuestion": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "linkTemplate",
                "questionId",
                "title"
              ],
              "properties": {
                "linkTemplate": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "questionId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 20,
                  "pattern": "^[0-9]+$",
                  "description": "Numeric LeetCode CN question ID, not a title slug"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "translatedTitle": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 512
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "userNotesSearchResult": {
      "type": "object",
      "required": [
        "filters",
        "pagination",
        "notes"
      ],
      "properties": {
        "filters": {
          "type": "object",
          "required": [
            "orderBy"
          ],
          "properties": {
            "keyword": {
              "type": "string",
              "maxLength": 2048
            },
            "orderBy": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "ASCENDING"
                },
                {
                  "type": "string",
                  "const": "DESCENDING"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "pagination": {
          "type": "object",
          "required": [
            "limit",
            "skip",
            "totalCount"
          ],
          "properties": {
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "skip": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            },
            "totalCount": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "summary",
              "content"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
              },
              "summary": {
                "type": "string",
                "maxLength": 2048,
                "description": "Personal note title/summary"
              },
              "content": {
                "type": "string",
                "maxLength": 200000,
                "description": "Sensitive personal note body; markdown is preserved verbatim",
                "x-sensitive": true,
                "x-persistence": "never"
              },
              "noteQuestion": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "linkTemplate",
                      "questionId",
                      "title"
                    ],
                    "properties": {
                      "linkTemplate": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "questionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 20,
                        "pattern": "^[0-9]+$",
                        "description": "Numeric LeetCode CN question ID, not a title slug"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "translatedTitle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "maxItems": 100
        }
      },
      "additionalProperties": false
    },
    "userNotesGetResult": {
      "type": "object",
      "required": [
        "questionId",
        "count",
        "pagination",
        "notes"
      ],
      "properties": {
        "questionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 20,
          "pattern": "^[0-9]+$",
          "description": "Numeric LeetCode CN question ID, not a title slug"
        },
        "count": {
          "type": "integer",
          "minimum": 0
        },
        "pagination": {
          "type": "object",
          "required": [
            "limit",
            "skip"
          ],
          "properties": {
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "skip": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          "additionalProperties": false
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "summary",
              "content"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
              },
              "summary": {
                "type": "string",
                "maxLength": 2048,
                "description": "Personal note title/summary"
              },
              "content": {
                "type": "string",
                "maxLength": 200000,
                "description": "Sensitive personal note body; markdown is preserved verbatim",
                "x-sensitive": true,
                "x-persistence": "never"
              },
              "noteQuestion": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "linkTemplate",
                      "questionId",
                      "title"
                    ],
                    "properties": {
                      "linkTemplate": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048
                      },
                      "questionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 20,
                        "pattern": "^[0-9]+$",
                        "description": "Numeric LeetCode CN question ID, not a title slug"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "translatedTitle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "maxItems": 100
        }
      },
      "additionalProperties": false
    },
    "userNoteMutationResult": {
      "type": "object",
      "required": [
        "success",
        "note"
      ],
      "properties": {
        "success": {
          "type": "boolean"
        },
        "note": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "id",
                "content",
                "targetId"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                },
                "content": {
                  "type": "string",
                  "maxLength": 200000,
                  "description": "Sensitive personal note body; markdown is preserved verbatim",
                  "x-sensitive": true,
                  "x-persistence": "never"
                },
                "targetId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "staticCapabilityManifest": {
      "type": "object",
      "required": [
        "packageName",
        "supportedRegions",
        "tools",
        "notesPort"
      ],
      "properties": {
        "packageName": {
          "type": "string",
          "const": "pi-leetcode-tools"
        },
        "supportedRegions": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "minItems": 1,
          "maxItems": 2,
          "uniqueItems": true
        },
        "tools": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "version",
              "requiresAuth",
              "consequence"
            ],
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "lc_daily"
                  },
                  {
                    "type": "string",
                    "const": "lc_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_problem"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution"
                  },
                  {
                    "type": "string",
                    "const": "lc_profile"
                  },
                  {
                    "type": "string",
                    "const": "lc_contest"
                  },
                  {
                    "type": "string",
                    "const": "lc_progress"
                  },
                  {
                    "type": "string",
                    "const": "lc_history"
                  },
                  {
                    "type": "string",
                    "const": "lc_user_submissions"
                  },
                  {
                    "type": "string",
                    "const": "lc_submission"
                  },
                  {
                    "type": "string",
                    "const": "lc_run"
                  },
                  {
                    "type": "string",
                    "const": "lc_submit"
                  },
                  {
                    "type": "string",
                    "const": "lc_operation_status"
                  }
                ]
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "requiresAuth": {
                "type": "boolean"
              },
              "consequence": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "read"
                  },
                  {
                    "type": "string",
                    "const": "answer_read"
                  },
                  {
                    "type": "string",
                    "const": "sensitive_read"
                  },
                  {
                    "type": "string",
                    "const": "execution"
                  },
                  {
                    "type": "string",
                    "const": "external_write"
                  }
                ]
              },
              "disclosureRisk": {
                "type": "string",
                "const": "solution"
              }
            },
            "additionalProperties": false
          },
          "minItems": 14,
          "maxItems": 14
        },
        "notesPort": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "supported",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "supported",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "operationStatus": {
      "type": "object",
      "required": [
        "operationId",
        "kind",
        "state",
        "region",
        "titleSlug",
        "language",
        "codeHash",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string",
              "const": "run"
            },
            {
              "type": "string",
              "const": "submit"
            }
          ]
        },
        "state": {
          "anyOf": [
            {
              "type": "string",
              "const": "queued"
            },
            {
              "type": "string",
              "const": "polling"
            },
            {
              "type": "string",
              "const": "completed"
            },
            {
              "type": "string",
              "const": "unknown"
            },
            {
              "type": "string",
              "const": "failed"
            },
            {
              "type": "string",
              "const": "cancelled"
            }
          ]
        },
        "region": {
          "anyOf": [
            {
              "type": "string",
              "const": "global"
            },
            {
              "type": "string",
              "const": "cn"
            }
          ],
          "description": "LeetCode site region"
        },
        "titleSlug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "language": {
          "anyOf": [
            {
              "type": "string",
              "const": "bash"
            },
            {
              "type": "string",
              "const": "c"
            },
            {
              "type": "string",
              "const": "cpp"
            },
            {
              "type": "string",
              "const": "csharp"
            },
            {
              "type": "string",
              "const": "cangjie"
            },
            {
              "type": "string",
              "const": "dart"
            },
            {
              "type": "string",
              "const": "elixir"
            },
            {
              "type": "string",
              "const": "erlang"
            },
            {
              "type": "string",
              "const": "go"
            },
            {
              "type": "string",
              "const": "java"
            },
            {
              "type": "string",
              "const": "javascript"
            },
            {
              "type": "string",
              "const": "kotlin"
            },
            {
              "type": "string",
              "const": "mysql"
            },
            {
              "type": "string",
              "const": "mssql"
            },
            {
              "type": "string",
              "const": "oracle"
            },
            {
              "type": "string",
              "const": "php"
            },
            {
              "type": "string",
              "const": "python"
            },
            {
              "type": "string",
              "const": "python3"
            },
            {
              "type": "string",
              "const": "racket"
            },
            {
              "type": "string",
              "const": "ruby"
            },
            {
              "type": "string",
              "const": "rust"
            },
            {
              "type": "string",
              "const": "scala"
            },
            {
              "type": "string",
              "const": "swift"
            },
            {
              "type": "string",
              "const": "typescript"
            }
          ],
          "description": "Canonical language identifier"
        },
        "codeHash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "createdAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "updatedAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "remoteId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "questionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "start": {
          "type": "object",
          "patternProperties": {
            "^.*$": {}
          },
          "maxProperties": 512,
          "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
          "x-maxJsonBytes": 900000,
          "x-maxDepth": 16,
          "x-persistence": "never",
          "x-sensitive": true
        },
        "checkUrl": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^https://leetcode\\.(?:com|cn)/submissions/detail/[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*/check/$"
        },
        "check": {
          "type": "object",
          "patternProperties": {
            "^.*$": {}
          },
          "maxProperties": 512,
          "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
          "x-maxJsonBytes": 900000,
          "x-maxDepth": 16,
          "x-persistence": "never",
          "x-sensitive": true
        },
        "supersedesOperationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "repeatsOperationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "result": {
          "type": "object",
          "required": [
            "state"
          ],
          "properties": {
            "state": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "verdict": {
              "type": "string",
              "maxLength": 128
            },
            "statusMessage": {
              "type": "string",
              "maxLength": 1024
            },
            "runtime": {
              "type": "string",
              "maxLength": 128
            },
            "memory": {
              "type": "string",
              "maxLength": 128
            },
            "stdout": {
              "type": "string",
              "maxLength": 200000
            },
            "expectedOutput": {
              "type": "string",
              "maxLength": 200000
            },
            "compileError": {
              "type": "string",
              "maxLength": 200000
            },
            "runtimeError": {
              "type": "string",
              "maxLength": 200000
            },
            "input": {
              "type": "string",
              "maxLength": 200000
            }
          },
          "additionalProperties": false
        },
        "errorCode": {
          "anyOf": [
            {
              "type": "string",
              "const": "VALIDATION_ERROR"
            },
            {
              "type": "string",
              "const": "AUTH_REQUIRED"
            },
            {
              "type": "string",
              "const": "AUTH_EXPIRED"
            },
            {
              "type": "string",
              "const": "PERMISSION_DENIED"
            },
            {
              "type": "string",
              "const": "INTERACTION_REQUIRED"
            },
            {
              "type": "string",
              "const": "NOT_FOUND"
            },
            {
              "type": "string",
              "const": "RATE_LIMITED"
            },
            {
              "type": "string",
              "const": "REMOTE_UNAVAILABLE"
            },
            {
              "type": "string",
              "const": "EXECUTION_FAILED"
            },
            {
              "type": "string",
              "const": "UNSUPPORTED_REGION"
            },
            {
              "type": "string",
              "const": "STALE_OPERATION"
            },
            {
              "type": "string",
              "const": "STALE_CURSOR"
            },
            {
              "type": "string",
              "const": "UNKNOWN_WRITE_OUTCOME"
            },
            {
              "type": "string",
              "const": "CANCELLED"
            },
            {
              "type": "string",
              "const": "CAPABILITY_UNAVAILABLE"
            },
            {
              "type": "string",
              "const": "REMOTE_SCHEMA_CHANGED"
            },
            {
              "type": "string",
              "const": "PROVIDER_CONFLICT"
            },
            {
              "type": "string",
              "const": "CONTRACT_MISMATCH"
            },
            {
              "type": "string",
              "const": "PROTOCOL_TIMEOUT"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "dailyChallenge": {
      "type": "object",
      "required": [
        "date",
        "link",
        "problem",
        "regionalPayload"
      ],
      "properties": {
        "date": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32
        },
        "link": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        "problem": {
          "type": "object",
          "required": [
            "questionId",
            "frontendId",
            "title",
            "titleSlug",
            "difficulty",
            "paidOnly",
            "topicTags"
          ],
          "properties": {
            "questionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "frontendId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "translatedTitle": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "titleSlug": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
              "description": "LeetCode problem title slug"
            },
            "difficulty": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "easy"
                },
                {
                  "type": "string",
                  "const": "medium"
                },
                {
                  "type": "string",
                  "const": "hard"
                }
              ]
            },
            "paidOnly": {
              "type": "boolean"
            },
            "acRate": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "status": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "not_started"
                },
                {
                  "type": "string",
                  "const": "attempted"
                },
                {
                  "type": "string",
                  "const": "solved"
                }
              ]
            },
            "topicTags": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "slug"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "translatedName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 100
            }
          },
          "additionalProperties": false
        },
        "regionalPayload": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "date",
                "link",
                "question"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32
                },
                "link": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "question": {
                  "type": "object",
                  "required": [
                    "questionId",
                    "questionFrontendId",
                    "boundTopicId",
                    "title",
                    "titleSlug",
                    "content",
                    "translatedTitle",
                    "translatedContent",
                    "isPaidOnly",
                    "difficulty",
                    "likes",
                    "dislikes",
                    "isLiked",
                    "similarQuestions",
                    "exampleTestcases",
                    "contributors",
                    "topicTags",
                    "companyTagStats",
                    "codeSnippets",
                    "stats",
                    "hints",
                    "solution",
                    "status",
                    "sampleTestCase",
                    "metaData",
                    "judgerAvailable",
                    "judgeType",
                    "mysqlSchemas",
                    "enableRunCode",
                    "enableTestMode",
                    "libraryUrl",
                    "note"
                  ],
                  "properties": {
                    "questionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "questionFrontendId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "boundTopicId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 128
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "titleSlug": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                      "description": "LeetCode problem title slug"
                    },
                    "content": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "translatedTitle": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 512
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "translatedContent": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isPaidOnly": {
                      "type": "boolean"
                    },
                    "difficulty": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "acRate": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "likes": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "dislikes": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "isLiked": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "similarQuestions": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "exampleTestcases": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "contributors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "username",
                          "profileUrl",
                          "avatarUrl"
                        ],
                        "properties": {
                          "username": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "profileUrl": {
                            "type": "string",
                            "maxLength": 2048
                          },
                          "avatarUrl": {
                            "type": "string",
                            "maxLength": 2048
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    },
                    "topicTags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "slug"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "slug": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "translatedName": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    },
                    "companyTagStats": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codeSnippets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "lang",
                          "langSlug",
                          "code"
                        ],
                        "properties": {
                          "lang": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "langSlug": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "code": {
                            "type": "string",
                            "maxLength": 100000
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    },
                    "stats": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "hints": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "maxItems": 100
                    },
                    "solution": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "canSeeDetail"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "canSeeDetail": {
                              "type": "boolean"
                            },
                            "paidOnly": {
                              "type": "boolean"
                            },
                            "hasVideoSolution": {
                              "type": "boolean"
                            },
                            "paidOnlyVideo": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 128
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sampleTestCase": {
                      "type": "string",
                      "maxLength": 200000,
                      "description": "UTF-8 text limited to 200000 bytes at runtime",
                      "x-maxUtf8Bytes": 200000
                    },
                    "metaData": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "judgerAvailable": {
                      "type": "boolean"
                    },
                    "judgeType": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "mysqlSchemas": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "maxItems": 100
                    },
                    "enableRunCode": {
                      "type": "boolean"
                    },
                    "enableTestMode": {
                      "type": "boolean"
                    },
                    "enableDebugger": {
                      "type": "boolean"
                    },
                    "envInfo": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "libraryUrl": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 2048
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "adminUrl": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 2048
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "challengeQuestion": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "date",
                            "incompleteChallengeCount",
                            "streakCount",
                            "type"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "date": {
                              "type": "string",
                              "maxLength": 32
                            },
                            "incompleteChallengeCount": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "streakCount": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "type": {
                              "type": "string",
                              "maxLength": 128
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "date",
                "userStatus",
                "question",
                "lastSubmission"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32
                },
                "userStatus": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 128
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "question": {
                  "type": "object",
                  "required": [
                    "questionId",
                    "frontendQuestionId",
                    "title",
                    "titleCn",
                    "titleSlug",
                    "difficulty",
                    "paidOnly",
                    "acRate",
                    "status",
                    "freqBar",
                    "isFavor",
                    "solutionNum",
                    "hasVideoSolution",
                    "topicTags",
                    "extra"
                  ],
                  "properties": {
                    "questionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "frontendQuestionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "titleCn": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "titleSlug": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                      "description": "LeetCode problem title slug"
                    },
                    "difficulty": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "paidOnly": {
                      "type": "boolean"
                    },
                    "acRate": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 128
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "freqBar": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isFavor": {
                      "type": "boolean"
                    },
                    "solutionNum": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "hasVideoSolution": {
                      "type": "boolean"
                    },
                    "topicTags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "id",
                          "nameTranslated"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "slug": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "id": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "nameTranslated": {
                            "type": "string",
                            "maxLength": 128
                          }
                        },
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    },
                    "extra": {
                      "type": "object",
                      "required": [
                        "topCompanyTags"
                      ],
                      "properties": {
                        "topCompanyTags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "imgUrl",
                              "slug",
                              "numSubscribed"
                            ],
                            "properties": {
                              "imgUrl": {
                                "type": "string",
                                "maxLength": 2048
                              },
                              "slug": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "numSubscribed": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "lastSubmission": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "searchProblemsResult": {
      "type": "object",
      "required": [
        "items",
        "page"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "questionId",
              "frontendId",
              "title",
              "titleSlug",
              "difficulty",
              "paidOnly",
              "topicTags"
            ],
            "properties": {
              "questionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "frontendId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "translatedTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "titleSlug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                "description": "LeetCode problem title slug"
              },
              "difficulty": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "easy"
                  },
                  {
                    "type": "string",
                    "const": "medium"
                  },
                  {
                    "type": "string",
                    "const": "hard"
                  }
                ]
              },
              "paidOnly": {
                "type": "boolean"
              },
              "acRate": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "not_started"
                  },
                  {
                    "type": "string",
                    "const": "attempted"
                  },
                  {
                    "type": "string",
                    "const": "solved"
                  }
                ]
              },
              "topicTags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "slug"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "slug": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "translatedName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100
              }
            },
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "problemDetail": {
      "type": "object",
      "required": [
        "questionId",
        "frontendId",
        "title",
        "titleSlug",
        "difficulty",
        "paidOnly",
        "topicTags",
        "content",
        "exampleTestcases",
        "availableLanguages",
        "selectedCodeSnippet",
        "enableRunCode",
        "hints",
        "similarQuestions",
        "codeSnippets"
      ],
      "properties": {
        "questionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "frontendId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        "translatedTitle": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        "titleSlug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "difficulty": {
          "anyOf": [
            {
              "type": "string",
              "const": "easy"
            },
            {
              "type": "string",
              "const": "medium"
            },
            {
              "type": "string",
              "const": "hard"
            }
          ]
        },
        "paidOnly": {
          "type": "boolean"
        },
        "acRate": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "status": {
          "anyOf": [
            {
              "type": "string",
              "const": "not_started"
            },
            {
              "type": "string",
              "const": "attempted"
            },
            {
              "type": "string",
              "const": "solved"
            }
          ]
        },
        "topicTags": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "slug"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "slug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "translatedName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "content": {
          "type": "string",
          "maxLength": 200000
        },
        "translatedContent": {
          "type": "string",
          "maxLength": 200000
        },
        "defaultTestcase": {
          "type": "string",
          "maxLength": 200000,
          "description": "UTF-8 text limited to 200000 bytes at runtime",
          "x-maxUtf8Bytes": 200000
        },
        "exampleTestcases": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200000,
            "description": "UTF-8 text limited to 200000 bytes at runtime",
            "x-maxUtf8Bytes": 200000
          },
          "maxItems": 100
        },
        "availableLanguages": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "const": "bash"
              },
              {
                "type": "string",
                "const": "c"
              },
              {
                "type": "string",
                "const": "cpp"
              },
              {
                "type": "string",
                "const": "csharp"
              },
              {
                "type": "string",
                "const": "cangjie"
              },
              {
                "type": "string",
                "const": "dart"
              },
              {
                "type": "string",
                "const": "elixir"
              },
              {
                "type": "string",
                "const": "erlang"
              },
              {
                "type": "string",
                "const": "go"
              },
              {
                "type": "string",
                "const": "java"
              },
              {
                "type": "string",
                "const": "javascript"
              },
              {
                "type": "string",
                "const": "kotlin"
              },
              {
                "type": "string",
                "const": "mysql"
              },
              {
                "type": "string",
                "const": "mssql"
              },
              {
                "type": "string",
                "const": "oracle"
              },
              {
                "type": "string",
                "const": "php"
              },
              {
                "type": "string",
                "const": "python"
              },
              {
                "type": "string",
                "const": "python3"
              },
              {
                "type": "string",
                "const": "racket"
              },
              {
                "type": "string",
                "const": "ruby"
              },
              {
                "type": "string",
                "const": "rust"
              },
              {
                "type": "string",
                "const": "scala"
              },
              {
                "type": "string",
                "const": "swift"
              },
              {
                "type": "string",
                "const": "typescript"
              }
            ],
            "description": "Canonical language identifier"
          },
          "maxItems": 24,
          "uniqueItems": true
        },
        "selectedCodeSnippet": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "language",
                "languageName",
                "code"
              ],
              "properties": {
                "language": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "bash"
                    },
                    {
                      "type": "string",
                      "const": "c"
                    },
                    {
                      "type": "string",
                      "const": "cpp"
                    },
                    {
                      "type": "string",
                      "const": "csharp"
                    },
                    {
                      "type": "string",
                      "const": "cangjie"
                    },
                    {
                      "type": "string",
                      "const": "dart"
                    },
                    {
                      "type": "string",
                      "const": "elixir"
                    },
                    {
                      "type": "string",
                      "const": "erlang"
                    },
                    {
                      "type": "string",
                      "const": "go"
                    },
                    {
                      "type": "string",
                      "const": "java"
                    },
                    {
                      "type": "string",
                      "const": "javascript"
                    },
                    {
                      "type": "string",
                      "const": "kotlin"
                    },
                    {
                      "type": "string",
                      "const": "mysql"
                    },
                    {
                      "type": "string",
                      "const": "mssql"
                    },
                    {
                      "type": "string",
                      "const": "oracle"
                    },
                    {
                      "type": "string",
                      "const": "php"
                    },
                    {
                      "type": "string",
                      "const": "python"
                    },
                    {
                      "type": "string",
                      "const": "python3"
                    },
                    {
                      "type": "string",
                      "const": "racket"
                    },
                    {
                      "type": "string",
                      "const": "ruby"
                    },
                    {
                      "type": "string",
                      "const": "rust"
                    },
                    {
                      "type": "string",
                      "const": "scala"
                    },
                    {
                      "type": "string",
                      "const": "swift"
                    },
                    {
                      "type": "string",
                      "const": "typescript"
                    }
                  ],
                  "description": "Canonical language identifier"
                },
                "languageName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "code": {
                  "type": "string",
                  "maxLength": 100000
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "enableRunCode": {
          "type": "boolean"
        },
        "hints": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200000
          },
          "maxItems": 100
        },
        "similarQuestions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "titleSlug",
              "difficulty"
            ],
            "properties": {
              "titleSlug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                "description": "LeetCode problem title slug"
              },
              "difficulty": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "easy"
                  },
                  {
                    "type": "string",
                    "const": "medium"
                  },
                  {
                    "type": "string",
                    "const": "hard"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "maxItems": 3
        },
        "codeSnippets": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "language",
              "languageName",
              "code"
            ],
            "properties": {
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "bash"
                  },
                  {
                    "type": "string",
                    "const": "c"
                  },
                  {
                    "type": "string",
                    "const": "cpp"
                  },
                  {
                    "type": "string",
                    "const": "csharp"
                  },
                  {
                    "type": "string",
                    "const": "cangjie"
                  },
                  {
                    "type": "string",
                    "const": "dart"
                  },
                  {
                    "type": "string",
                    "const": "elixir"
                  },
                  {
                    "type": "string",
                    "const": "erlang"
                  },
                  {
                    "type": "string",
                    "const": "go"
                  },
                  {
                    "type": "string",
                    "const": "java"
                  },
                  {
                    "type": "string",
                    "const": "javascript"
                  },
                  {
                    "type": "string",
                    "const": "kotlin"
                  },
                  {
                    "type": "string",
                    "const": "mysql"
                  },
                  {
                    "type": "string",
                    "const": "mssql"
                  },
                  {
                    "type": "string",
                    "const": "oracle"
                  },
                  {
                    "type": "string",
                    "const": "php"
                  },
                  {
                    "type": "string",
                    "const": "python"
                  },
                  {
                    "type": "string",
                    "const": "python3"
                  },
                  {
                    "type": "string",
                    "const": "racket"
                  },
                  {
                    "type": "string",
                    "const": "ruby"
                  },
                  {
                    "type": "string",
                    "const": "rust"
                  },
                  {
                    "type": "string",
                    "const": "scala"
                  },
                  {
                    "type": "string",
                    "const": "swift"
                  },
                  {
                    "type": "string",
                    "const": "typescript"
                  }
                ],
                "description": "Canonical language identifier"
              },
              "languageName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "code": {
                "type": "string",
                "maxLength": 100000
              }
            },
            "additionalProperties": false
          },
          "maxItems": 3
        },
        "resourcePayload": {
          "type": "object",
          "required": [
            "questionId",
            "questionFrontendId",
            "boundTopicId",
            "title",
            "titleSlug",
            "content",
            "translatedTitle",
            "translatedContent",
            "isPaidOnly",
            "difficulty",
            "likes",
            "dislikes",
            "isLiked",
            "similarQuestions",
            "exampleTestcases",
            "contributors",
            "topicTags",
            "companyTagStats",
            "codeSnippets",
            "stats",
            "hints",
            "solution",
            "status",
            "sampleTestCase",
            "metaData",
            "judgerAvailable",
            "judgeType",
            "mysqlSchemas",
            "enableRunCode",
            "enableTestMode",
            "libraryUrl",
            "note"
          ],
          "properties": {
            "questionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "questionFrontendId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "boundTopicId": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "titleSlug": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
              "description": "LeetCode problem title slug"
            },
            "content": {
              "type": "string",
              "maxLength": 200000
            },
            "translatedTitle": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 512
                },
                {
                  "type": "null"
                }
              ]
            },
            "translatedContent": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200000
                },
                {
                  "type": "null"
                }
              ]
            },
            "isPaidOnly": {
              "type": "boolean"
            },
            "difficulty": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            },
            "acRate": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "likes": {
              "type": "integer",
              "minimum": 0
            },
            "dislikes": {
              "type": "integer",
              "minimum": 0
            },
            "isLiked": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "similarQuestions": {
              "type": "string",
              "maxLength": 200000
            },
            "exampleTestcases": {
              "type": "string",
              "maxLength": 200000
            },
            "contributors": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "username",
                  "profileUrl",
                  "avatarUrl"
                ],
                "properties": {
                  "username": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "profileUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "avatarUrl": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 100
            },
            "topicTags": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "slug"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "translatedName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 100
            },
            "companyTagStats": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200000
                },
                {
                  "type": "null"
                }
              ]
            },
            "codeSnippets": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "lang",
                  "langSlug",
                  "code"
                ],
                "properties": {
                  "lang": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "langSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 100000
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 100
            },
            "stats": {
              "type": "string",
              "maxLength": 200000
            },
            "hints": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200000
              },
              "maxItems": 100
            },
            "solution": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "id",
                    "canSeeDetail"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "canSeeDetail": {
                      "type": "boolean"
                    },
                    "paidOnly": {
                      "type": "boolean"
                    },
                    "hasVideoSolution": {
                      "type": "boolean"
                    },
                    "paidOnlyVideo": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ]
            },
            "sampleTestCase": {
              "type": "string",
              "maxLength": 200000,
              "description": "UTF-8 text limited to 200000 bytes at runtime",
              "x-maxUtf8Bytes": 200000
            },
            "metaData": {
              "type": "string",
              "maxLength": 200000
            },
            "judgerAvailable": {
              "type": "boolean"
            },
            "judgeType": {
              "type": "string",
              "maxLength": 128
            },
            "mysqlSchemas": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200000
              },
              "maxItems": 100
            },
            "enableRunCode": {
              "type": "boolean"
            },
            "enableTestMode": {
              "type": "boolean"
            },
            "enableDebugger": {
              "type": "boolean"
            },
            "envInfo": {
              "type": "string",
              "maxLength": 200000
            },
            "libraryUrl": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ]
            },
            "adminUrl": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ]
            },
            "challengeQuestion": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "id",
                    "date",
                    "incompleteChallengeCount",
                    "streakCount",
                    "type"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "date": {
                      "type": "string",
                      "maxLength": 32
                    },
                    "incompleteChallengeCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "streakCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 128
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "note": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200000
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "solutionSearchResult": {
      "type": "object",
      "required": [
        "titleSlug",
        "items",
        "page"
      ],
      "properties": {
        "titleSlug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "topicId",
              "canSee"
            ],
            "properties": {
              "topicId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "slug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                "description": "LeetCode CN solution article slug"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "summary": {
                "type": "string",
                "maxLength": 20000,
                "x-sensitive": true,
                "x-disclosureRisk": "solution",
                "x-persistence": "never"
              },
              "canSee": {
                "type": "boolean"
              },
              "hasVideoArticle": {
                "type": "boolean"
              },
              "coverUrl": {
                "type": "string",
                "maxLength": 2048
              }
            },
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "solutionDetail": {
      "type": "object",
      "required": [
        "title",
        "slug",
        "content",
        "tags"
      ],
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        "slug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
          "description": "LeetCode CN solution article slug"
        },
        "topicId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "questionSlug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "content": {
          "type": "string",
          "maxLength": 200000,
          "x-sensitive": true,
          "x-disclosureRisk": "solution",
          "x-untrusted": true,
          "x-persistence": "never"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "maxItems": 100,
          "uniqueItems": true
        },
        "prev": {
          "type": "object",
          "properties": {
            "topicId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "slug": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
              "description": "LeetCode CN solution article slug"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          },
          "additionalProperties": false
        },
        "next": {
          "type": "object",
          "properties": {
            "topicId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "slug": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
              "description": "LeetCode CN solution article slug"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "userProfile": {
      "type": "object",
      "required": [
        "username"
      ],
      "properties": {
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Public LeetCode username or CN user slug"
        },
        "realName": {
          "type": "string",
          "maxLength": 256
        },
        "avatar": {
          "type": "string",
          "maxLength": 2048
        },
        "aboutMe": {
          "type": "string",
          "maxLength": 8192
        },
        "country": {
          "type": "string",
          "maxLength": 128
        },
        "location": {
          "type": "string",
          "maxLength": 256
        },
        "company": {
          "type": "string",
          "maxLength": 256
        },
        "school": {
          "type": "string",
          "maxLength": 256
        },
        "githubUrl": {
          "type": "string",
          "maxLength": 2048
        },
        "ranking": {
          "type": "integer",
          "minimum": 0
        },
        "siteRanking": {
          "type": "integer",
          "minimum": 0
        },
        "totalSubmissions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "difficulty",
              "count"
            ],
            "properties": {
              "difficulty": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "count": {
                "type": "integer",
                "minimum": 0
              },
              "submissions": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "maxItems": 4
        },
        "acceptedQuestions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "difficulty",
              "count"
            ],
            "properties": {
              "difficulty": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "count": {
                "type": "integer",
                "minimum": 0
              },
              "submissions": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "maxItems": 4
        },
        "failedQuestions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "difficulty",
              "count"
            ],
            "properties": {
              "difficulty": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "count": {
                "type": "integer",
                "minimum": 0
              },
              "submissions": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "maxItems": 4
        },
        "untouchedQuestions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "difficulty",
              "count"
            ],
            "properties": {
              "difficulty": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "count": {
                "type": "integer",
                "minimum": 0
              },
              "submissions": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "maxItems": 4
        },
        "socialAccounts": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "profileUrl"
            ],
            "properties": {
              "provider": {
                "type": "string",
                "maxLength": 128
              },
              "profileUrl": {
                "type": "string",
                "maxLength": 2048
              }
            },
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "skillTopics": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 128
          },
          "maxItems": 200
        },
        "topicAreaScores": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "slug",
              "score"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "maxLength": 128
              },
              "score": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "maxItems": 200
        }
      },
      "additionalProperties": false
    },
    "userContestResult": {
      "type": "object",
      "required": [
        "username",
        "history",
        "page"
      ],
      "properties": {
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Public LeetCode username or CN user slug"
        },
        "ranking": {
          "type": "object",
          "properties": {
            "attendedContestsCount": {
              "type": "integer",
              "minimum": 0
            },
            "rating": {
              "type": "number"
            },
            "globalRanking": {
              "type": "integer",
              "minimum": 0
            },
            "localRanking": {
              "type": "integer",
              "minimum": 0
            },
            "globalTotalParticipants": {
              "type": "integer",
              "minimum": 0
            },
            "localTotalParticipants": {
              "type": "integer",
              "minimum": 0
            },
            "topPercentage": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "badge": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "additionalProperties": false
        },
        "history": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "attended",
              "title"
            ],
            "properties": {
              "attended": {
                "type": "boolean"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "translatedTitle": {
                "type": "string",
                "maxLength": 512
              },
              "startTime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "totalProblems": {
                "type": "integer",
                "minimum": 0
              },
              "solvedProblems": {
                "type": "integer",
                "minimum": 0
              },
              "finishTimeSeconds": {
                "type": "integer",
                "minimum": 0
              },
              "rating": {
                "type": "number"
              },
              "score": {
                "type": "number"
              },
              "ranking": {
                "type": "integer",
                "minimum": 0
              },
              "trend": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "userStatus": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "isSignedIn",
            "isAdmin"
          ],
          "properties": {
            "isSignedIn": {
              "type": "boolean",
              "const": false
            },
            "isAdmin": {
              "type": "boolean"
            },
            "useTranslation": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "isSignedIn",
            "username",
            "isAdmin"
          ],
          "properties": {
            "isSignedIn": {
              "type": "boolean",
              "const": true
            },
            "username": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_.-]+$",
              "description": "Public LeetCode username or CN user slug"
            },
            "displayName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "avatar": {
              "type": "string",
              "maxLength": 2048
            },
            "isAdmin": {
              "type": "boolean"
            },
            "useTranslation": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "problemProgressResult": {
      "type": "object",
      "required": [
        "filters",
        "items",
        "page"
      ],
      "properties": {
        "filters": {
          "type": "object",
          "required": [
            "offset",
            "limit"
          ],
          "properties": {
            "offset": {
              "type": "integer",
              "minimum": 0
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "questionStatus": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "SOLVED"
                },
                {
                  "type": "string",
                  "const": "ATTEMPTED"
                }
              ]
            },
            "difficulty": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "EASY"
                  },
                  {
                    "type": "string",
                    "const": "MEDIUM"
                  },
                  {
                    "type": "string",
                    "const": "HARD"
                  }
                ]
              },
              "maxItems": 3,
              "uniqueItems": true
            }
          },
          "additionalProperties": false
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "frontendId",
              "title",
              "titleSlug",
              "difficulty",
              "topicTags"
            ],
            "properties": {
              "frontendId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "translatedTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "titleSlug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                "description": "LeetCode problem title slug"
              },
              "difficulty": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "easy"
                  },
                  {
                    "type": "string",
                    "const": "medium"
                  },
                  {
                    "type": "string",
                    "const": "hard"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "not_started"
                  },
                  {
                    "type": "string",
                    "const": "attempted"
                  },
                  {
                    "type": "string",
                    "const": "solved"
                  }
                ]
              },
              "topicTags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "slug"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "slug": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "translatedName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "lastSubmittedAt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "numSubmitted": {
                "type": "integer",
                "minimum": 0
              },
              "lastResult": {
                "type": "string",
                "maxLength": 128
              }
            },
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "submissionHistoryResult": {
      "type": "object",
      "required": [
        "items",
        "page"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "title",
              "language",
              "status"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "titleSlug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                "description": "LeetCode problem title slug"
              },
              "frontendId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "bash"
                  },
                  {
                    "type": "string",
                    "const": "c"
                  },
                  {
                    "type": "string",
                    "const": "cpp"
                  },
                  {
                    "type": "string",
                    "const": "csharp"
                  },
                  {
                    "type": "string",
                    "const": "cangjie"
                  },
                  {
                    "type": "string",
                    "const": "dart"
                  },
                  {
                    "type": "string",
                    "const": "elixir"
                  },
                  {
                    "type": "string",
                    "const": "erlang"
                  },
                  {
                    "type": "string",
                    "const": "go"
                  },
                  {
                    "type": "string",
                    "const": "java"
                  },
                  {
                    "type": "string",
                    "const": "javascript"
                  },
                  {
                    "type": "string",
                    "const": "kotlin"
                  },
                  {
                    "type": "string",
                    "const": "mysql"
                  },
                  {
                    "type": "string",
                    "const": "mssql"
                  },
                  {
                    "type": "string",
                    "const": "oracle"
                  },
                  {
                    "type": "string",
                    "const": "php"
                  },
                  {
                    "type": "string",
                    "const": "python"
                  },
                  {
                    "type": "string",
                    "const": "python3"
                  },
                  {
                    "type": "string",
                    "const": "racket"
                  },
                  {
                    "type": "string",
                    "const": "ruby"
                  },
                  {
                    "type": "string",
                    "const": "rust"
                  },
                  {
                    "type": "string",
                    "const": "scala"
                  },
                  {
                    "type": "string",
                    "const": "swift"
                  },
                  {
                    "type": "string",
                    "const": "typescript"
                  }
                ],
                "description": "Canonical language identifier"
              },
              "status": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "runtime": {
                "type": "string",
                "maxLength": 128
              },
              "memory": {
                "type": "string",
                "maxLength": 128
              },
              "pending": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "maxItems": 50
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "userSubmissionsResult": {
      "type": "object",
      "required": [
        "username",
        "mode",
        "items",
        "page"
      ],
      "properties": {
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[A-Za-z0-9_.-]+$",
          "description": "Public LeetCode username or CN user slug"
        },
        "mode": {
          "anyOf": [
            {
              "type": "string",
              "const": "recent"
            },
            {
              "type": "string",
              "const": "accepted"
            }
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "title",
              "titleSlug"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 20,
                "pattern": "^[0-9]+$",
                "description": "Numeric LeetCode submission ID"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "titleSlug": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                "description": "LeetCode problem title slug"
              },
              "frontendId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "bash"
                  },
                  {
                    "type": "string",
                    "const": "c"
                  },
                  {
                    "type": "string",
                    "const": "cpp"
                  },
                  {
                    "type": "string",
                    "const": "csharp"
                  },
                  {
                    "type": "string",
                    "const": "cangjie"
                  },
                  {
                    "type": "string",
                    "const": "dart"
                  },
                  {
                    "type": "string",
                    "const": "elixir"
                  },
                  {
                    "type": "string",
                    "const": "erlang"
                  },
                  {
                    "type": "string",
                    "const": "go"
                  },
                  {
                    "type": "string",
                    "const": "java"
                  },
                  {
                    "type": "string",
                    "const": "javascript"
                  },
                  {
                    "type": "string",
                    "const": "kotlin"
                  },
                  {
                    "type": "string",
                    "const": "mysql"
                  },
                  {
                    "type": "string",
                    "const": "mssql"
                  },
                  {
                    "type": "string",
                    "const": "oracle"
                  },
                  {
                    "type": "string",
                    "const": "php"
                  },
                  {
                    "type": "string",
                    "const": "python"
                  },
                  {
                    "type": "string",
                    "const": "python3"
                  },
                  {
                    "type": "string",
                    "const": "racket"
                  },
                  {
                    "type": "string",
                    "const": "ruby"
                  },
                  {
                    "type": "string",
                    "const": "rust"
                  },
                  {
                    "type": "string",
                    "const": "scala"
                  },
                  {
                    "type": "string",
                    "const": "swift"
                  },
                  {
                    "type": "string",
                    "const": "typescript"
                  }
                ],
                "description": "Canonical language identifier"
              },
              "status": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            },
            "additionalProperties": false
          },
          "maxItems": 20
        },
        "page": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "exact"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "lower_bound"
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            {
              "type": "object",
              "required": [
                "offset",
                "limit",
                "hasMore",
                "totalKind",
                "total"
              ],
              "properties": {
                "offset": {
                  "type": "integer",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "hasMore": {
                  "type": "boolean"
                },
                "nextCursor": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                },
                "totalKind": {
                  "type": "string",
                  "const": "unknown"
                },
                "total": {
                  "type": "null"
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "submissionDetail": {
      "type": "object",
      "required": [
        "id",
        "titleSlug",
        "language"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 20,
          "pattern": "^[0-9]+$",
          "description": "Numeric LeetCode submission ID"
        },
        "titleSlug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "description": "LeetCode problem title slug"
        },
        "language": {
          "anyOf": [
            {
              "type": "string",
              "const": "bash"
            },
            {
              "type": "string",
              "const": "c"
            },
            {
              "type": "string",
              "const": "cpp"
            },
            {
              "type": "string",
              "const": "csharp"
            },
            {
              "type": "string",
              "const": "cangjie"
            },
            {
              "type": "string",
              "const": "dart"
            },
            {
              "type": "string",
              "const": "elixir"
            },
            {
              "type": "string",
              "const": "erlang"
            },
            {
              "type": "string",
              "const": "go"
            },
            {
              "type": "string",
              "const": "java"
            },
            {
              "type": "string",
              "const": "javascript"
            },
            {
              "type": "string",
              "const": "kotlin"
            },
            {
              "type": "string",
              "const": "mysql"
            },
            {
              "type": "string",
              "const": "mssql"
            },
            {
              "type": "string",
              "const": "oracle"
            },
            {
              "type": "string",
              "const": "php"
            },
            {
              "type": "string",
              "const": "python"
            },
            {
              "type": "string",
              "const": "python3"
            },
            {
              "type": "string",
              "const": "racket"
            },
            {
              "type": "string",
              "const": "ruby"
            },
            {
              "type": "string",
              "const": "rust"
            },
            {
              "type": "string",
              "const": "scala"
            },
            {
              "type": "string",
              "const": "swift"
            },
            {
              "type": "string",
              "const": "typescript"
            }
          ],
          "description": "Canonical language identifier"
        },
        "status": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "statusCode": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "timestamp": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "runtime": {
          "type": "string",
          "maxLength": 128
        },
        "memory": {
          "type": "string",
          "maxLength": 128
        },
        "runtimePercentile": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "memoryPercentile": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "passedTestCases": {
          "type": "integer",
          "minimum": 0
        },
        "totalTestCases": {
          "type": "integer",
          "minimum": 0
        },
        "code": {
          "type": "string",
          "maxLength": 100000
        },
        "compileError": {
          "type": "string",
          "maxLength": 200000
        },
        "runtimeError": {
          "type": "string",
          "maxLength": 200000
        },
        "lastTestcase": {
          "type": "string",
          "maxLength": 200000
        },
        "codeOutput": {
          "type": "string",
          "maxLength": 200000
        },
        "expectedOutput": {
          "type": "string",
          "maxLength": 200000
        },
        "stdout": {
          "type": "string",
          "maxLength": 200000
        }
      },
      "additionalProperties": false
    },
    "capabilitySnapshot": {
      "type": "object",
      "required": [
        "packageName",
        "providerId",
        "instanceId",
        "contextRevision",
        "packageVersion",
        "contractVersion",
        "protocolVersion",
        "schemaDigest",
        "behaviorManifestDigest",
        "capabilityManifestDigest",
        "snapshotRevision",
        "observedAt",
        "supportedRegions",
        "tools",
        "notesPort",
        "regionReadiness",
        "interactiveUI"
      ],
      "properties": {
        "packageName": {
          "type": "string",
          "const": "pi-leetcode-tools"
        },
        "providerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "activeAccountProfileId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "packageVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "contractVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "protocolVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "schemaDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "behaviorManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "capabilityManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "snapshotRevision": {
          "type": "integer",
          "minimum": 0
        },
        "observedAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "supportedRegions": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "minItems": 1,
          "maxItems": 2,
          "uniqueItems": true
        },
        "tools": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "version",
              "supported",
              "configured",
              "currentlyAvailable",
              "requiresAuth",
              "consequence"
            ],
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "lc_daily"
                  },
                  {
                    "type": "string",
                    "const": "lc_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_problem"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution_search"
                  },
                  {
                    "type": "string",
                    "const": "lc_solution"
                  },
                  {
                    "type": "string",
                    "const": "lc_profile"
                  },
                  {
                    "type": "string",
                    "const": "lc_contest"
                  },
                  {
                    "type": "string",
                    "const": "lc_progress"
                  },
                  {
                    "type": "string",
                    "const": "lc_history"
                  },
                  {
                    "type": "string",
                    "const": "lc_user_submissions"
                  },
                  {
                    "type": "string",
                    "const": "lc_submission"
                  },
                  {
                    "type": "string",
                    "const": "lc_run"
                  },
                  {
                    "type": "string",
                    "const": "lc_submit"
                  },
                  {
                    "type": "string",
                    "const": "lc_operation_status"
                  }
                ]
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "supported": {
                "type": "boolean"
              },
              "configured": {
                "type": "boolean"
              },
              "currentlyAvailable": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "maxLength": 128
              },
              "requiresAuth": {
                "type": "boolean"
              },
              "consequence": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "read"
                  },
                  {
                    "type": "string",
                    "const": "answer_read"
                  },
                  {
                    "type": "string",
                    "const": "sensitive_read"
                  },
                  {
                    "type": "string",
                    "const": "execution"
                  },
                  {
                    "type": "string",
                    "const": "external_write"
                  }
                ]
              },
              "disclosureRisk": {
                "type": "string",
                "const": "solution"
              }
            },
            "additionalProperties": false
          },
          "maxItems": 14
        },
        "notesPort": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "supported",
                "configured",
                "currentlyAvailable",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "configured": {
                  "type": "boolean"
                },
                "currentlyAvailable": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string",
                  "maxLength": 128
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "supported",
                "configured",
                "currentlyAvailable",
                "revisionMode",
                "maxSize"
              ],
              "properties": {
                "supported": {
                  "type": "boolean"
                },
                "configured": {
                  "type": "boolean"
                },
                "currentlyAvailable": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string",
                  "maxLength": 128
                },
                "revisionMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "native-etag"
                    },
                    {
                      "type": "string",
                      "const": "best-effort-compare-and-set"
                    },
                    {
                      "type": "string",
                      "const": "unsupported"
                    }
                  ]
                },
                "maxSize": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "regionReadiness": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "configured",
                "publicReads",
                "sessionReads",
                "execution",
                "externalWrite",
                "notes"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "publicReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "sessionReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "execution": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "externalWrite": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "retryAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "configured",
                "publicReads",
                "sessionReads",
                "execution",
                "externalWrite",
                "notes"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "publicReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "sessionReads": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "execution": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "externalWrite": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "const": "unknown"
                    }
                  ]
                },
                "retryAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "interactiveUI": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "diagnosticsSnapshot": {
      "type": "object",
      "required": [
        "packageName",
        "packageVersion",
        "contractVersion",
        "protocolVersion",
        "schemaDigest",
        "behaviorManifestDigest",
        "capabilityManifestDigest",
        "providerId",
        "instanceId",
        "contextRevision",
        "snapshotRevision",
        "observedAt",
        "providerConflict",
        "storageWritable",
        "regions"
      ],
      "properties": {
        "packageName": {
          "type": "string",
          "const": "pi-leetcode-tools"
        },
        "packageVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "contractVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "protocolVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "schemaDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "behaviorManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "capabilityManifestDigest": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "providerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "activeAccountProfileId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "snapshotRevision": {
          "type": "integer",
          "minimum": 0
        },
        "observedAt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "providerConflict": {
          "type": "boolean"
        },
        "storageWritable": {
          "type": "boolean"
        },
        "regions": {
          "type": "object",
          "required": [
            "global",
            "cn"
          ],
          "properties": {
            "global": {
              "type": "object",
              "required": [
                "configured",
                "sessionConfigured",
                "operationConfigured",
                "queueDepth",
                "queueLimit",
                "circuitState"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "sessionConfigured": {
                  "type": "boolean"
                },
                "operationConfigured": {
                  "type": "boolean"
                },
                "queueDepth": {
                  "type": "integer",
                  "minimum": 0
                },
                "queueLimit": {
                  "type": "integer",
                  "minimum": 0
                },
                "circuitState": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "unknown"
                    },
                    {
                      "type": "string",
                      "const": "closed"
                    },
                    {
                      "type": "string",
                      "const": "open"
                    },
                    {
                      "type": "string",
                      "const": "half_open"
                    }
                  ]
                },
                "nextProbeAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "lastSafeErrorCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "VALIDATION_ERROR"
                    },
                    {
                      "type": "string",
                      "const": "AUTH_REQUIRED"
                    },
                    {
                      "type": "string",
                      "const": "AUTH_EXPIRED"
                    },
                    {
                      "type": "string",
                      "const": "PERMISSION_DENIED"
                    },
                    {
                      "type": "string",
                      "const": "INTERACTION_REQUIRED"
                    },
                    {
                      "type": "string",
                      "const": "NOT_FOUND"
                    },
                    {
                      "type": "string",
                      "const": "RATE_LIMITED"
                    },
                    {
                      "type": "string",
                      "const": "REMOTE_UNAVAILABLE"
                    },
                    {
                      "type": "string",
                      "const": "EXECUTION_FAILED"
                    },
                    {
                      "type": "string",
                      "const": "UNSUPPORTED_REGION"
                    },
                    {
                      "type": "string",
                      "const": "STALE_OPERATION"
                    },
                    {
                      "type": "string",
                      "const": "STALE_CURSOR"
                    },
                    {
                      "type": "string",
                      "const": "UNKNOWN_WRITE_OUTCOME"
                    },
                    {
                      "type": "string",
                      "const": "CANCELLED"
                    },
                    {
                      "type": "string",
                      "const": "CAPABILITY_UNAVAILABLE"
                    },
                    {
                      "type": "string",
                      "const": "REMOTE_SCHEMA_CHANGED"
                    },
                    {
                      "type": "string",
                      "const": "PROVIDER_CONFLICT"
                    },
                    {
                      "type": "string",
                      "const": "CONTRACT_MISMATCH"
                    },
                    {
                      "type": "string",
                      "const": "PROTOCOL_TIMEOUT"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "cn": {
              "type": "object",
              "required": [
                "configured",
                "sessionConfigured",
                "operationConfigured",
                "queueDepth",
                "queueLimit",
                "circuitState"
              ],
              "properties": {
                "configured": {
                  "type": "boolean"
                },
                "sessionConfigured": {
                  "type": "boolean"
                },
                "operationConfigured": {
                  "type": "boolean"
                },
                "queueDepth": {
                  "type": "integer",
                  "minimum": 0
                },
                "queueLimit": {
                  "type": "integer",
                  "minimum": 0
                },
                "circuitState": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "unknown"
                    },
                    {
                      "type": "string",
                      "const": "closed"
                    },
                    {
                      "type": "string",
                      "const": "open"
                    },
                    {
                      "type": "string",
                      "const": "half_open"
                    }
                  ]
                },
                "nextProbeAt": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "lastSafeErrorCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "VALIDATION_ERROR"
                    },
                    {
                      "type": "string",
                      "const": "AUTH_REQUIRED"
                    },
                    {
                      "type": "string",
                      "const": "AUTH_EXPIRED"
                    },
                    {
                      "type": "string",
                      "const": "PERMISSION_DENIED"
                    },
                    {
                      "type": "string",
                      "const": "INTERACTION_REQUIRED"
                    },
                    {
                      "type": "string",
                      "const": "NOT_FOUND"
                    },
                    {
                      "type": "string",
                      "const": "RATE_LIMITED"
                    },
                    {
                      "type": "string",
                      "const": "REMOTE_UNAVAILABLE"
                    },
                    {
                      "type": "string",
                      "const": "EXECUTION_FAILED"
                    },
                    {
                      "type": "string",
                      "const": "UNSUPPORTED_REGION"
                    },
                    {
                      "type": "string",
                      "const": "STALE_OPERATION"
                    },
                    {
                      "type": "string",
                      "const": "STALE_CURSOR"
                    },
                    {
                      "type": "string",
                      "const": "UNKNOWN_WRITE_OUTCOME"
                    },
                    {
                      "type": "string",
                      "const": "CANCELLED"
                    },
                    {
                      "type": "string",
                      "const": "CAPABILITY_UNAVAILABLE"
                    },
                    {
                      "type": "string",
                      "const": "REMOTE_SCHEMA_CHANGED"
                    },
                    {
                      "type": "string",
                      "const": "PROVIDER_CONFLICT"
                    },
                    {
                      "type": "string",
                      "const": "CONTRACT_MISMATCH"
                    },
                    {
                      "type": "string",
                      "const": "PROTOCOL_TIMEOUT"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "tools": {
    "lc_daily": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "date",
                  "link",
                  "problem",
                  "regionalPayload"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32
                  },
                  "link": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "problem": {
                    "type": "object",
                    "required": [
                      "questionId",
                      "frontendId",
                      "title",
                      "titleSlug",
                      "difficulty",
                      "paidOnly",
                      "topicTags"
                    ],
                    "properties": {
                      "questionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "frontendId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "translatedTitle": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "titleSlug": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "description": "LeetCode problem title slug"
                      },
                      "difficulty": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "easy"
                          },
                          {
                            "type": "string",
                            "const": "medium"
                          },
                          {
                            "type": "string",
                            "const": "hard"
                          }
                        ]
                      },
                      "paidOnly": {
                        "type": "boolean"
                      },
                      "acRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "not_started"
                          },
                          {
                            "type": "string",
                            "const": "attempted"
                          },
                          {
                            "type": "string",
                            "const": "solved"
                          }
                        ]
                      },
                      "topicTags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "name",
                            "slug"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "slug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "translatedName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      }
                    },
                    "additionalProperties": false
                  },
                  "regionalPayload": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "date",
                          "link",
                          "question"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                          },
                          "link": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          },
                          "question": {
                            "type": "object",
                            "required": [
                              "questionId",
                              "questionFrontendId",
                              "boundTopicId",
                              "title",
                              "titleSlug",
                              "content",
                              "translatedTitle",
                              "translatedContent",
                              "isPaidOnly",
                              "difficulty",
                              "likes",
                              "dislikes",
                              "isLiked",
                              "similarQuestions",
                              "exampleTestcases",
                              "contributors",
                              "topicTags",
                              "companyTagStats",
                              "codeSnippets",
                              "stats",
                              "hints",
                              "solution",
                              "status",
                              "sampleTestCase",
                              "metaData",
                              "judgerAvailable",
                              "judgeType",
                              "mysqlSchemas",
                              "enableRunCode",
                              "enableTestMode",
                              "libraryUrl",
                              "note"
                            ],
                            "properties": {
                              "questionId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "questionFrontendId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "boundTopicId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "content": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "translatedTitle": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 512
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "translatedContent": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 200000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "isPaidOnly": {
                                "type": "boolean"
                              },
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "acRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "likes": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "dislikes": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "isLiked": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "similarQuestions": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "exampleTestcases": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "contributors": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "username",
                                    "profileUrl",
                                    "avatarUrl"
                                  ],
                                  "properties": {
                                    "username": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "profileUrl": {
                                      "type": "string",
                                      "maxLength": 2048
                                    },
                                    "avatarUrl": {
                                      "type": "string",
                                      "maxLength": 2048
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              },
                              "topicTags": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "slug"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "slug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "translatedName": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              },
                              "companyTagStats": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 200000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "codeSnippets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "lang",
                                    "langSlug",
                                    "code"
                                  ],
                                  "properties": {
                                    "lang": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "langSlug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "code": {
                                      "type": "string",
                                      "maxLength": 100000
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              },
                              "stats": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "hints": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 200000
                                },
                                "maxItems": 100
                              },
                              "solution": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "id",
                                      "canSeeDetail"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "maxLength": 128
                                      },
                                      "canSeeDetail": {
                                        "type": "boolean"
                                      },
                                      "paidOnly": {
                                        "type": "boolean"
                                      },
                                      "hasVideoSolution": {
                                        "type": "boolean"
                                      },
                                      "paidOnlyVideo": {
                                        "type": "boolean"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sampleTestCase": {
                                "type": "string",
                                "maxLength": 200000,
                                "description": "UTF-8 text limited to 200000 bytes at runtime",
                                "x-maxUtf8Bytes": 200000
                              },
                              "metaData": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "judgerAvailable": {
                                "type": "boolean"
                              },
                              "judgeType": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "mysqlSchemas": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 200000
                                },
                                "maxItems": 100
                              },
                              "enableRunCode": {
                                "type": "boolean"
                              },
                              "enableTestMode": {
                                "type": "boolean"
                              },
                              "enableDebugger": {
                                "type": "boolean"
                              },
                              "envInfo": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "libraryUrl": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2048
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "adminUrl": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2048
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "challengeQuestion": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "id",
                                      "date",
                                      "incompleteChallengeCount",
                                      "streakCount",
                                      "type"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "maxLength": 128
                                      },
                                      "date": {
                                        "type": "string",
                                        "maxLength": 32
                                      },
                                      "incompleteChallengeCount": {
                                        "type": "integer",
                                        "minimum": 0
                                      },
                                      "streakCount": {
                                        "type": "integer",
                                        "minimum": 0
                                      },
                                      "type": {
                                        "type": "string",
                                        "maxLength": 128
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "note": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 200000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "date",
                          "userStatus",
                          "question",
                          "lastSubmission"
                        ],
                        "properties": {
                          "date": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                          },
                          "userStatus": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 128
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "question": {
                            "type": "object",
                            "required": [
                              "questionId",
                              "frontendQuestionId",
                              "title",
                              "titleCn",
                              "titleSlug",
                              "difficulty",
                              "paidOnly",
                              "acRate",
                              "status",
                              "freqBar",
                              "isFavor",
                              "solutionNum",
                              "hasVideoSolution",
                              "topicTags",
                              "extra"
                            ],
                            "properties": {
                              "questionId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "frontendQuestionId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleCn": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "paidOnly": {
                                "type": "boolean"
                              },
                              "acRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "freqBar": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "isFavor": {
                                "type": "boolean"
                              },
                              "solutionNum": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "hasVideoSolution": {
                                "type": "boolean"
                              },
                              "topicTags": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "id",
                                    "nameTranslated"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "slug": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "id": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "nameTranslated": {
                                      "type": "string",
                                      "maxLength": 128
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              },
                              "extra": {
                                "type": "object",
                                "required": [
                                  "topCompanyTags"
                                ],
                                "properties": {
                                  "topCompanyTags": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "required": [
                                        "imgUrl",
                                        "slug",
                                        "numSubscribed"
                                      ],
                                      "properties": {
                                        "imgUrl": {
                                          "type": "string",
                                          "maxLength": 2048
                                        },
                                        "slug": {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        "numSubscribed": {
                                          "type": "integer",
                                          "minimum": 0
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "maxItems": 100
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          },
                          "lastSubmission": {
                            "anyOf": [
                              {
                                "type": "object",
                                "required": [
                                  "id"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 128
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_search": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "category": {
            "type": "string",
            "enum": [
              "all-code-essentials",
              "algorithms",
              "database",
              "pandas",
              "javascript",
              "shell",
              "concurrency"
            ],
            "default": "all-code-essentials"
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "enum": [
                "array",
                "string",
                "hash-table",
                "dynamic-programming",
                "math",
                "sorting",
                "greedy",
                "depth-first-search",
                "binary-search",
                "database",
                "tree",
                "breadth-first-search",
                "matrix",
                "bit-manipulation",
                "two-pointers",
                "binary-tree",
                "heap-priority-queue",
                "prefix-sum",
                "stack",
                "simulation",
                "graph",
                "counting",
                "sliding-window",
                "design",
                "backtracking",
                "enumeration",
                "linked-list",
                "union-find",
                "ordered-set",
                "monotonic-stack",
                "number-theory",
                "trie",
                "segment-tree",
                "recursion",
                "divide-and-conquer",
                "queue",
                "combinatorics",
                "binary-search-tree",
                "bitmask",
                "memoization",
                "geometry",
                "binary-indexed-tree",
                "hash-function",
                "topological-sort",
                "string-matching",
                "shortest-path",
                "rolling-hash",
                "game-theory",
                "data-stream",
                "interactive",
                "monotonic-queue",
                "brainteaser",
                "doubly-linked-list",
                "merge-sort",
                "randomized",
                "quickselect",
                "counting-sort",
                "iterator",
                "probability-and-statistics",
                "concurrency",
                "bucket-sort",
                "suffix-array",
                "line-sweep",
                "minimum-spanning-tree",
                "shell",
                "reservoir-sampling",
                "strongly-connected-component",
                "eulerian-circuit",
                "radix-sort",
                "biconnected-component",
                "rejection-sampling"
              ]
            },
            "maxItems": 10,
            "uniqueItems": true
          },
          "difficulty": {
            "anyOf": [
              {
                "type": "string",
                "const": "easy"
              },
              {
                "type": "string",
                "const": "medium"
              },
              {
                "type": "string",
                "const": "hard"
              }
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "items",
                  "page"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "questionId",
                        "frontendId",
                        "title",
                        "titleSlug",
                        "difficulty",
                        "paidOnly",
                        "topicTags"
                      ],
                      "properties": {
                        "questionId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "frontendId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "translatedTitle": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "difficulty": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "easy"
                            },
                            {
                              "type": "string",
                              "const": "medium"
                            },
                            {
                              "type": "string",
                              "const": "hard"
                            }
                          ]
                        },
                        "paidOnly": {
                          "type": "boolean"
                        },
                        "acRate": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "status": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "not_started"
                            },
                            {
                              "type": "string",
                              "const": "attempted"
                            },
                            {
                              "type": "string",
                              "const": "solved"
                            }
                          ]
                        },
                        "topicTags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "slug"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "slug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "translatedName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_problem": {
      "input": {
        "type": "object",
        "required": [
          "titleSlug"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "const": "bash"
              },
              {
                "type": "string",
                "const": "c"
              },
              {
                "type": "string",
                "const": "cpp"
              },
              {
                "type": "string",
                "const": "csharp"
              },
              {
                "type": "string",
                "const": "cangjie"
              },
              {
                "type": "string",
                "const": "dart"
              },
              {
                "type": "string",
                "const": "elixir"
              },
              {
                "type": "string",
                "const": "erlang"
              },
              {
                "type": "string",
                "const": "go"
              },
              {
                "type": "string",
                "const": "java"
              },
              {
                "type": "string",
                "const": "javascript"
              },
              {
                "type": "string",
                "const": "kotlin"
              },
              {
                "type": "string",
                "const": "mysql"
              },
              {
                "type": "string",
                "const": "mssql"
              },
              {
                "type": "string",
                "const": "oracle"
              },
              {
                "type": "string",
                "const": "php"
              },
              {
                "type": "string",
                "const": "python"
              },
              {
                "type": "string",
                "const": "python3"
              },
              {
                "type": "string",
                "const": "racket"
              },
              {
                "type": "string",
                "const": "ruby"
              },
              {
                "type": "string",
                "const": "rust"
              },
              {
                "type": "string",
                "const": "scala"
              },
              {
                "type": "string",
                "const": "swift"
              },
              {
                "type": "string",
                "const": "typescript"
              }
            ],
            "description": "Canonical language identifier"
          },
          "includeResourcePayload": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "questionId",
                  "frontendId",
                  "title",
                  "titleSlug",
                  "difficulty",
                  "paidOnly",
                  "topicTags",
                  "content",
                  "exampleTestcases",
                  "availableLanguages",
                  "selectedCodeSnippet",
                  "enableRunCode",
                  "hints",
                  "similarQuestions",
                  "codeSnippets"
                ],
                "properties": {
                  "questionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "frontendId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "translatedTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "difficulty": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "easy"
                      },
                      {
                        "type": "string",
                        "const": "medium"
                      },
                      {
                        "type": "string",
                        "const": "hard"
                      }
                    ]
                  },
                  "paidOnly": {
                    "type": "boolean"
                  },
                  "acRate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "status": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "not_started"
                      },
                      {
                        "type": "string",
                        "const": "attempted"
                      },
                      {
                        "type": "string",
                        "const": "solved"
                      }
                    ]
                  },
                  "topicTags": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "slug"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "translatedName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "translatedContent": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "defaultTestcase": {
                    "type": "string",
                    "maxLength": 200000,
                    "description": "UTF-8 text limited to 200000 bytes at runtime",
                    "x-maxUtf8Bytes": 200000
                  },
                  "exampleTestcases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 200000,
                      "description": "UTF-8 text limited to 200000 bytes at runtime",
                      "x-maxUtf8Bytes": 200000
                    },
                    "maxItems": 100
                  },
                  "availableLanguages": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "bash"
                        },
                        {
                          "type": "string",
                          "const": "c"
                        },
                        {
                          "type": "string",
                          "const": "cpp"
                        },
                        {
                          "type": "string",
                          "const": "csharp"
                        },
                        {
                          "type": "string",
                          "const": "cangjie"
                        },
                        {
                          "type": "string",
                          "const": "dart"
                        },
                        {
                          "type": "string",
                          "const": "elixir"
                        },
                        {
                          "type": "string",
                          "const": "erlang"
                        },
                        {
                          "type": "string",
                          "const": "go"
                        },
                        {
                          "type": "string",
                          "const": "java"
                        },
                        {
                          "type": "string",
                          "const": "javascript"
                        },
                        {
                          "type": "string",
                          "const": "kotlin"
                        },
                        {
                          "type": "string",
                          "const": "mysql"
                        },
                        {
                          "type": "string",
                          "const": "mssql"
                        },
                        {
                          "type": "string",
                          "const": "oracle"
                        },
                        {
                          "type": "string",
                          "const": "php"
                        },
                        {
                          "type": "string",
                          "const": "python"
                        },
                        {
                          "type": "string",
                          "const": "python3"
                        },
                        {
                          "type": "string",
                          "const": "racket"
                        },
                        {
                          "type": "string",
                          "const": "ruby"
                        },
                        {
                          "type": "string",
                          "const": "rust"
                        },
                        {
                          "type": "string",
                          "const": "scala"
                        },
                        {
                          "type": "string",
                          "const": "swift"
                        },
                        {
                          "type": "string",
                          "const": "typescript"
                        }
                      ],
                      "description": "Canonical language identifier"
                    },
                    "maxItems": 24,
                    "uniqueItems": true
                  },
                  "selectedCodeSnippet": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "language",
                          "languageName",
                          "code"
                        ],
                        "properties": {
                          "language": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "bash"
                              },
                              {
                                "type": "string",
                                "const": "c"
                              },
                              {
                                "type": "string",
                                "const": "cpp"
                              },
                              {
                                "type": "string",
                                "const": "csharp"
                              },
                              {
                                "type": "string",
                                "const": "cangjie"
                              },
                              {
                                "type": "string",
                                "const": "dart"
                              },
                              {
                                "type": "string",
                                "const": "elixir"
                              },
                              {
                                "type": "string",
                                "const": "erlang"
                              },
                              {
                                "type": "string",
                                "const": "go"
                              },
                              {
                                "type": "string",
                                "const": "java"
                              },
                              {
                                "type": "string",
                                "const": "javascript"
                              },
                              {
                                "type": "string",
                                "const": "kotlin"
                              },
                              {
                                "type": "string",
                                "const": "mysql"
                              },
                              {
                                "type": "string",
                                "const": "mssql"
                              },
                              {
                                "type": "string",
                                "const": "oracle"
                              },
                              {
                                "type": "string",
                                "const": "php"
                              },
                              {
                                "type": "string",
                                "const": "python"
                              },
                              {
                                "type": "string",
                                "const": "python3"
                              },
                              {
                                "type": "string",
                                "const": "racket"
                              },
                              {
                                "type": "string",
                                "const": "ruby"
                              },
                              {
                                "type": "string",
                                "const": "rust"
                              },
                              {
                                "type": "string",
                                "const": "scala"
                              },
                              {
                                "type": "string",
                                "const": "swift"
                              },
                              {
                                "type": "string",
                                "const": "typescript"
                              }
                            ],
                            "description": "Canonical language identifier"
                          },
                          "languageName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "code": {
                            "type": "string",
                            "maxLength": 100000
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enableRunCode": {
                    "type": "boolean"
                  },
                  "hints": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "maxItems": 100
                  },
                  "similarQuestions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "titleSlug",
                        "difficulty"
                      ],
                      "properties": {
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "difficulty": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "easy"
                            },
                            {
                              "type": "string",
                              "const": "medium"
                            },
                            {
                              "type": "string",
                              "const": "hard"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 3
                  },
                  "codeSnippets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "language",
                        "languageName",
                        "code"
                      ],
                      "properties": {
                        "language": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "bash"
                            },
                            {
                              "type": "string",
                              "const": "c"
                            },
                            {
                              "type": "string",
                              "const": "cpp"
                            },
                            {
                              "type": "string",
                              "const": "csharp"
                            },
                            {
                              "type": "string",
                              "const": "cangjie"
                            },
                            {
                              "type": "string",
                              "const": "dart"
                            },
                            {
                              "type": "string",
                              "const": "elixir"
                            },
                            {
                              "type": "string",
                              "const": "erlang"
                            },
                            {
                              "type": "string",
                              "const": "go"
                            },
                            {
                              "type": "string",
                              "const": "java"
                            },
                            {
                              "type": "string",
                              "const": "javascript"
                            },
                            {
                              "type": "string",
                              "const": "kotlin"
                            },
                            {
                              "type": "string",
                              "const": "mysql"
                            },
                            {
                              "type": "string",
                              "const": "mssql"
                            },
                            {
                              "type": "string",
                              "const": "oracle"
                            },
                            {
                              "type": "string",
                              "const": "php"
                            },
                            {
                              "type": "string",
                              "const": "python"
                            },
                            {
                              "type": "string",
                              "const": "python3"
                            },
                            {
                              "type": "string",
                              "const": "racket"
                            },
                            {
                              "type": "string",
                              "const": "ruby"
                            },
                            {
                              "type": "string",
                              "const": "rust"
                            },
                            {
                              "type": "string",
                              "const": "scala"
                            },
                            {
                              "type": "string",
                              "const": "swift"
                            },
                            {
                              "type": "string",
                              "const": "typescript"
                            }
                          ],
                          "description": "Canonical language identifier"
                        },
                        "languageName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "code": {
                          "type": "string",
                          "maxLength": 100000
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 3
                  },
                  "resourcePayload": {
                    "type": "object",
                    "required": [
                      "questionId",
                      "questionFrontendId",
                      "boundTopicId",
                      "title",
                      "titleSlug",
                      "content",
                      "translatedTitle",
                      "translatedContent",
                      "isPaidOnly",
                      "difficulty",
                      "likes",
                      "dislikes",
                      "isLiked",
                      "similarQuestions",
                      "exampleTestcases",
                      "contributors",
                      "topicTags",
                      "companyTagStats",
                      "codeSnippets",
                      "stats",
                      "hints",
                      "solution",
                      "status",
                      "sampleTestCase",
                      "metaData",
                      "judgerAvailable",
                      "judgeType",
                      "mysqlSchemas",
                      "enableRunCode",
                      "enableTestMode",
                      "libraryUrl",
                      "note"
                    ],
                    "properties": {
                      "questionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "questionFrontendId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "boundTopicId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "titleSlug": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "description": "LeetCode problem title slug"
                      },
                      "content": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "translatedTitle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "translatedContent": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 200000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isPaidOnly": {
                        "type": "boolean"
                      },
                      "difficulty": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      "acRate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "likes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "dislikes": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "isLiked": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "similarQuestions": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "exampleTestcases": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "contributors": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "username",
                            "profileUrl",
                            "avatarUrl"
                          ],
                          "properties": {
                            "username": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "profileUrl": {
                              "type": "string",
                              "maxLength": 2048
                            },
                            "avatarUrl": {
                              "type": "string",
                              "maxLength": 2048
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "topicTags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "name",
                            "slug"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "slug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "translatedName": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "companyTagStats": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 200000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "codeSnippets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "lang",
                            "langSlug",
                            "code"
                          ],
                          "properties": {
                            "lang": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "langSlug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "code": {
                              "type": "string",
                              "maxLength": 100000
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      "stats": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "hints": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "maxItems": 100
                      },
                      "solution": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "id",
                              "canSeeDetail"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "canSeeDetail": {
                                "type": "boolean"
                              },
                              "paidOnly": {
                                "type": "boolean"
                              },
                              "hasVideoSolution": {
                                "type": "boolean"
                              },
                              "paidOnlyVideo": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sampleTestCase": {
                        "type": "string",
                        "maxLength": 200000,
                        "description": "UTF-8 text limited to 200000 bytes at runtime",
                        "x-maxUtf8Bytes": 200000
                      },
                      "metaData": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "judgerAvailable": {
                        "type": "boolean"
                      },
                      "judgeType": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "mysqlSchemas": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "maxItems": 100
                      },
                      "enableRunCode": {
                        "type": "boolean"
                      },
                      "enableTestMode": {
                        "type": "boolean"
                      },
                      "enableDebugger": {
                        "type": "boolean"
                      },
                      "envInfo": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "libraryUrl": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "adminUrl": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "challengeQuestion": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "id",
                              "date",
                              "incompleteChallengeCount",
                              "streakCount",
                              "type"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "date": {
                                "type": "string",
                                "maxLength": 32
                              },
                              "incompleteChallengeCount": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "streakCount": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "type": {
                                "type": "string",
                                "maxLength": 128
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "note": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 200000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_solution_search": {
      "input": {
        "type": "object",
        "required": [
          "titleSlug"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0
          },
          "orderBy": {
            "anyOf": [
              {
                "type": "string",
                "const": "HOT"
              },
              {
                "type": "string",
                "const": "MOST_RECENT"
              },
              {
                "type": "string",
                "const": "MOST_VOTES"
              },
              {
                "type": "string",
                "const": "DEFAULT"
              },
              {
                "type": "string",
                "const": "MOST_UPVOTE"
              },
              {
                "type": "string",
                "const": "NEWEST_TO_OLDEST"
              },
              {
                "type": "string",
                "const": "OLDEST_TO_NEWEST"
              }
            ]
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9+#._]+(?:-[A-Za-z0-9+#._]+)*$"
            },
            "maxItems": 20,
            "uniqueItems": true,
            "default": []
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "titleSlug",
                  "items",
                  "page"
                ],
                "properties": {
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "topicId",
                        "canSee"
                      ],
                      "properties": {
                        "topicId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                          "description": "LeetCode CN solution article slug"
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "summary": {
                          "type": "string",
                          "maxLength": 20000,
                          "x-sensitive": true,
                          "x-disclosureRisk": "solution",
                          "x-persistence": "never"
                        },
                        "canSee": {
                          "type": "boolean"
                        },
                        "hasVideoArticle": {
                          "type": "boolean"
                        },
                        "coverUrl": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_solution": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "topicId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "pattern": "^[0-9]+$",
            "description": "Global LeetCode solution topic ID"
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
            "description": "LeetCode CN solution article slug"
          }
        },
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "topicId"
            ]
          },
          {
            "required": [
              "slug"
            ]
          }
        ],
        "not": {
          "required": [
            "topicId",
            "slug"
          ]
        }
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "title",
                  "slug",
                  "content",
                  "tags"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                    "description": "LeetCode CN solution article slug"
                  },
                  "topicId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "questionSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 200000,
                    "x-sensitive": true,
                    "x-disclosureRisk": "solution",
                    "x-untrusted": true,
                    "x-persistence": "never"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "maxItems": 100,
                    "uniqueItems": true
                  },
                  "prev": {
                    "type": "object",
                    "properties": {
                      "topicId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "slug": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256,
                        "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                        "description": "LeetCode CN solution article slug"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "additionalProperties": false
                  },
                  "next": {
                    "type": "object",
                    "properties": {
                      "topicId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "slug": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256,
                        "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                        "description": "LeetCode CN solution article slug"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_profile": {
      "input": {
        "type": "object",
        "required": [
          "username"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "username": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9_.-]+$",
            "description": "Public LeetCode username or CN user slug"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "username"
                ],
                "properties": {
                  "username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_.-]+$",
                    "description": "Public LeetCode username or CN user slug"
                  },
                  "realName": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "avatar": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "aboutMe": {
                    "type": "string",
                    "maxLength": 8192
                  },
                  "country": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "location": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "company": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "school": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "githubUrl": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "ranking": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "siteRanking": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "totalSubmissions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "difficulty",
                        "count"
                      ],
                      "properties": {
                        "difficulty": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "submissions": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "acceptedQuestions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "difficulty",
                        "count"
                      ],
                      "properties": {
                        "difficulty": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "submissions": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "failedQuestions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "difficulty",
                        "count"
                      ],
                      "properties": {
                        "difficulty": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "submissions": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "untouchedQuestions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "difficulty",
                        "count"
                      ],
                      "properties": {
                        "difficulty": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "submissions": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 4
                  },
                  "socialAccounts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "profileUrl"
                      ],
                      "properties": {
                        "provider": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "profileUrl": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "skillTopics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 200
                  },
                  "topicAreaScores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "slug",
                        "score"
                      ],
                      "properties": {
                        "slug": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "score": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 200
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_contest": {
      "input": {
        "type": "object",
        "required": [
          "username"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "username": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9_.-]+$",
            "description": "Public LeetCode username or CN user slug"
          },
          "attendedOnly": {
            "type": "boolean",
            "default": true
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "username",
                  "history",
                  "page"
                ],
                "properties": {
                  "username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_.-]+$",
                    "description": "Public LeetCode username or CN user slug"
                  },
                  "ranking": {
                    "type": "object",
                    "properties": {
                      "attendedContestsCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "rating": {
                        "type": "number"
                      },
                      "globalRanking": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "localRanking": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "globalTotalParticipants": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "localTotalParticipants": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "topPercentage": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "badge": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "additionalProperties": false
                  },
                  "history": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "attended",
                        "title"
                      ],
                      "properties": {
                        "attended": {
                          "type": "boolean"
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "translatedTitle": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "startTime": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "totalProblems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "solvedProblems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "finishTimeSeconds": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "rating": {
                          "type": "number"
                        },
                        "score": {
                          "type": "number"
                        },
                        "ranking": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "trend": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_progress": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "const": "solved"
              },
              {
                "type": "string",
                "const": "attempted"
              }
            ]
          },
          "difficulty": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "easy"
                },
                {
                  "type": "string",
                  "const": "medium"
                },
                {
                  "type": "string",
                  "const": "hard"
                }
              ]
            },
            "maxItems": 3,
            "uniqueItems": true
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 100
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "filters",
                  "items",
                  "page"
                ],
                "properties": {
                  "filters": {
                    "type": "object",
                    "required": [
                      "offset",
                      "limit"
                    ],
                    "properties": {
                      "offset": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "questionStatus": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "SOLVED"
                          },
                          {
                            "type": "string",
                            "const": "ATTEMPTED"
                          }
                        ]
                      },
                      "difficulty": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "EASY"
                            },
                            {
                              "type": "string",
                              "const": "MEDIUM"
                            },
                            {
                              "type": "string",
                              "const": "HARD"
                            }
                          ]
                        },
                        "maxItems": 3,
                        "uniqueItems": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "frontendId",
                        "title",
                        "titleSlug",
                        "difficulty",
                        "topicTags"
                      ],
                      "properties": {
                        "frontendId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "translatedTitle": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "difficulty": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "easy"
                            },
                            {
                              "type": "string",
                              "const": "medium"
                            },
                            {
                              "type": "string",
                              "const": "hard"
                            }
                          ]
                        },
                        "status": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "not_started"
                            },
                            {
                              "type": "string",
                              "const": "attempted"
                            },
                            {
                              "type": "string",
                              "const": "solved"
                            }
                          ]
                        },
                        "topicTags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "slug"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "slug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "translatedName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        },
                        "lastSubmittedAt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "numSubmitted": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "lastResult": {
                          "type": "string",
                          "maxLength": 128
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_history": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "const": "account"
              },
              {
                "type": "string",
                "const": "problem"
              }
            ]
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "const": "bash"
              },
              {
                "type": "string",
                "const": "c"
              },
              {
                "type": "string",
                "const": "cpp"
              },
              {
                "type": "string",
                "const": "csharp"
              },
              {
                "type": "string",
                "const": "cangjie"
              },
              {
                "type": "string",
                "const": "dart"
              },
              {
                "type": "string",
                "const": "elixir"
              },
              {
                "type": "string",
                "const": "erlang"
              },
              {
                "type": "string",
                "const": "go"
              },
              {
                "type": "string",
                "const": "java"
              },
              {
                "type": "string",
                "const": "javascript"
              },
              {
                "type": "string",
                "const": "kotlin"
              },
              {
                "type": "string",
                "const": "mysql"
              },
              {
                "type": "string",
                "const": "mssql"
              },
              {
                "type": "string",
                "const": "oracle"
              },
              {
                "type": "string",
                "const": "php"
              },
              {
                "type": "string",
                "const": "python"
              },
              {
                "type": "string",
                "const": "python3"
              },
              {
                "type": "string",
                "const": "racket"
              },
              {
                "type": "string",
                "const": "ruby"
              },
              {
                "type": "string",
                "const": "rust"
              },
              {
                "type": "string",
                "const": "scala"
              },
              {
                "type": "string",
                "const": "swift"
              },
              {
                "type": "string",
                "const": "typescript"
              }
            ],
            "description": "Canonical language identifier"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "const": "accepted"
              },
              {
                "type": "string",
                "const": "wrong_answer"
              }
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 20
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "items",
                  "page"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "title",
                        "language",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "frontendId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "language": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "bash"
                            },
                            {
                              "type": "string",
                              "const": "c"
                            },
                            {
                              "type": "string",
                              "const": "cpp"
                            },
                            {
                              "type": "string",
                              "const": "csharp"
                            },
                            {
                              "type": "string",
                              "const": "cangjie"
                            },
                            {
                              "type": "string",
                              "const": "dart"
                            },
                            {
                              "type": "string",
                              "const": "elixir"
                            },
                            {
                              "type": "string",
                              "const": "erlang"
                            },
                            {
                              "type": "string",
                              "const": "go"
                            },
                            {
                              "type": "string",
                              "const": "java"
                            },
                            {
                              "type": "string",
                              "const": "javascript"
                            },
                            {
                              "type": "string",
                              "const": "kotlin"
                            },
                            {
                              "type": "string",
                              "const": "mysql"
                            },
                            {
                              "type": "string",
                              "const": "mssql"
                            },
                            {
                              "type": "string",
                              "const": "oracle"
                            },
                            {
                              "type": "string",
                              "const": "php"
                            },
                            {
                              "type": "string",
                              "const": "python"
                            },
                            {
                              "type": "string",
                              "const": "python3"
                            },
                            {
                              "type": "string",
                              "const": "racket"
                            },
                            {
                              "type": "string",
                              "const": "ruby"
                            },
                            {
                              "type": "string",
                              "const": "rust"
                            },
                            {
                              "type": "string",
                              "const": "scala"
                            },
                            {
                              "type": "string",
                              "const": "swift"
                            },
                            {
                              "type": "string",
                              "const": "typescript"
                            }
                          ],
                          "description": "Canonical language identifier"
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "timestamp": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "runtime": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "memory": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "pending": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_user_submissions": {
      "input": {
        "type": "object",
        "required": [
          "username",
          "mode"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "username": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[A-Za-z0-9_.-]+$",
            "description": "Public LeetCode username or CN user slug"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string",
                "const": "recent"
              },
              {
                "type": "string",
                "const": "accepted"
              }
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 10
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "username",
                  "mode",
                  "items",
                  "page"
                ],
                "properties": {
                  "username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_.-]+$",
                    "description": "Public LeetCode username or CN user slug"
                  },
                  "mode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "recent"
                      },
                      {
                        "type": "string",
                        "const": "accepted"
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "title",
                        "titleSlug"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[0-9]+$",
                          "description": "Numeric LeetCode submission ID"
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "frontendId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "language": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "bash"
                            },
                            {
                              "type": "string",
                              "const": "c"
                            },
                            {
                              "type": "string",
                              "const": "cpp"
                            },
                            {
                              "type": "string",
                              "const": "csharp"
                            },
                            {
                              "type": "string",
                              "const": "cangjie"
                            },
                            {
                              "type": "string",
                              "const": "dart"
                            },
                            {
                              "type": "string",
                              "const": "elixir"
                            },
                            {
                              "type": "string",
                              "const": "erlang"
                            },
                            {
                              "type": "string",
                              "const": "go"
                            },
                            {
                              "type": "string",
                              "const": "java"
                            },
                            {
                              "type": "string",
                              "const": "javascript"
                            },
                            {
                              "type": "string",
                              "const": "kotlin"
                            },
                            {
                              "type": "string",
                              "const": "mysql"
                            },
                            {
                              "type": "string",
                              "const": "mssql"
                            },
                            {
                              "type": "string",
                              "const": "oracle"
                            },
                            {
                              "type": "string",
                              "const": "php"
                            },
                            {
                              "type": "string",
                              "const": "python"
                            },
                            {
                              "type": "string",
                              "const": "python3"
                            },
                            {
                              "type": "string",
                              "const": "racket"
                            },
                            {
                              "type": "string",
                              "const": "ruby"
                            },
                            {
                              "type": "string",
                              "const": "rust"
                            },
                            {
                              "type": "string",
                              "const": "scala"
                            },
                            {
                              "type": "string",
                              "const": "swift"
                            },
                            {
                              "type": "string",
                              "const": "typescript"
                            }
                          ],
                          "description": "Canonical language identifier"
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "timestamp": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  },
                  "page": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "exact"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "lower_bound"
                          },
                          "total": {
                            "type": "integer",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "required": [
                          "offset",
                          "limit",
                          "hasMore",
                          "totalKind",
                          "total"
                        ],
                        "properties": {
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "hasMore": {
                            "type": "boolean"
                          },
                          "nextCursor": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "totalKind": {
                            "type": "string",
                            "const": "unknown"
                          },
                          "total": {
                            "type": "null"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_submission": {
      "input": {
        "type": "object",
        "required": [
          "submissionId"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "submissionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "pattern": "^[0-9]+$",
            "description": "Numeric LeetCode submission ID"
          },
          "includeCode": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "id",
                  "titleSlug",
                  "language"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[0-9]+$",
                    "description": "Numeric LeetCode submission ID"
                  },
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "bash"
                      },
                      {
                        "type": "string",
                        "const": "c"
                      },
                      {
                        "type": "string",
                        "const": "cpp"
                      },
                      {
                        "type": "string",
                        "const": "csharp"
                      },
                      {
                        "type": "string",
                        "const": "cangjie"
                      },
                      {
                        "type": "string",
                        "const": "dart"
                      },
                      {
                        "type": "string",
                        "const": "elixir"
                      },
                      {
                        "type": "string",
                        "const": "erlang"
                      },
                      {
                        "type": "string",
                        "const": "go"
                      },
                      {
                        "type": "string",
                        "const": "java"
                      },
                      {
                        "type": "string",
                        "const": "javascript"
                      },
                      {
                        "type": "string",
                        "const": "kotlin"
                      },
                      {
                        "type": "string",
                        "const": "mysql"
                      },
                      {
                        "type": "string",
                        "const": "mssql"
                      },
                      {
                        "type": "string",
                        "const": "oracle"
                      },
                      {
                        "type": "string",
                        "const": "php"
                      },
                      {
                        "type": "string",
                        "const": "python"
                      },
                      {
                        "type": "string",
                        "const": "python3"
                      },
                      {
                        "type": "string",
                        "const": "racket"
                      },
                      {
                        "type": "string",
                        "const": "ruby"
                      },
                      {
                        "type": "string",
                        "const": "rust"
                      },
                      {
                        "type": "string",
                        "const": "scala"
                      },
                      {
                        "type": "string",
                        "const": "swift"
                      },
                      {
                        "type": "string",
                        "const": "typescript"
                      }
                    ],
                    "description": "Canonical language identifier"
                  },
                  "status": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "statusCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "timestamp": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "runtime": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "memory": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "runtimePercentile": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "memoryPercentile": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "passedTestCases": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "totalTestCases": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 100000
                  },
                  "compileError": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "runtimeError": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "lastTestcase": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "codeOutput": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "expectedOutput": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "stdout": {
                    "type": "string",
                    "maxLength": 200000
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_run": {
      "input": {
        "type": "object",
        "required": [
          "titleSlug",
          "language",
          "code"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "language": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "bash"
                  },
                  {
                    "type": "string",
                    "const": "c"
                  },
                  {
                    "type": "string",
                    "const": "cpp"
                  },
                  {
                    "type": "string",
                    "const": "csharp"
                  },
                  {
                    "type": "string",
                    "const": "cangjie"
                  },
                  {
                    "type": "string",
                    "const": "dart"
                  },
                  {
                    "type": "string",
                    "const": "elixir"
                  },
                  {
                    "type": "string",
                    "const": "erlang"
                  },
                  {
                    "type": "string",
                    "const": "go"
                  },
                  {
                    "type": "string",
                    "const": "java"
                  },
                  {
                    "type": "string",
                    "const": "javascript"
                  },
                  {
                    "type": "string",
                    "const": "kotlin"
                  },
                  {
                    "type": "string",
                    "const": "mysql"
                  },
                  {
                    "type": "string",
                    "const": "mssql"
                  },
                  {
                    "type": "string",
                    "const": "oracle"
                  },
                  {
                    "type": "string",
                    "const": "php"
                  },
                  {
                    "type": "string",
                    "const": "python"
                  },
                  {
                    "type": "string",
                    "const": "python3"
                  },
                  {
                    "type": "string",
                    "const": "racket"
                  },
                  {
                    "type": "string",
                    "const": "ruby"
                  },
                  {
                    "type": "string",
                    "const": "rust"
                  },
                  {
                    "type": "string",
                    "const": "scala"
                  },
                  {
                    "type": "string",
                    "const": "swift"
                  },
                  {
                    "type": "string",
                    "const": "typescript"
                  }
                ],
                "description": "Canonical language identifier"
              },
              {
                "type": "string",
                "const": "golang"
              }
            ],
            "description": "Canonical language identifier or upstream LeetCode alias"
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "testcase": {
            "type": "string",
            "maxLength": 200000,
            "description": "UTF-8 text limited to 200000 bytes at runtime",
            "x-maxUtf8Bytes": 200000
          },
          "timeoutMs": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120000,
            "default": 120000
          },
          "pollIntervalMs": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000,
            "default": 1500
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "operationId",
                  "kind",
                  "state",
                  "region",
                  "titleSlug",
                  "language",
                  "codeHash",
                  "createdAt",
                  "updatedAt"
                ],
                "properties": {
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "run"
                      },
                      {
                        "type": "string",
                        "const": "submit"
                      }
                    ]
                  },
                  "state": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "queued"
                      },
                      {
                        "type": "string",
                        "const": "polling"
                      },
                      {
                        "type": "string",
                        "const": "completed"
                      },
                      {
                        "type": "string",
                        "const": "unknown"
                      },
                      {
                        "type": "string",
                        "const": "failed"
                      },
                      {
                        "type": "string",
                        "const": "cancelled"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "bash"
                      },
                      {
                        "type": "string",
                        "const": "c"
                      },
                      {
                        "type": "string",
                        "const": "cpp"
                      },
                      {
                        "type": "string",
                        "const": "csharp"
                      },
                      {
                        "type": "string",
                        "const": "cangjie"
                      },
                      {
                        "type": "string",
                        "const": "dart"
                      },
                      {
                        "type": "string",
                        "const": "elixir"
                      },
                      {
                        "type": "string",
                        "const": "erlang"
                      },
                      {
                        "type": "string",
                        "const": "go"
                      },
                      {
                        "type": "string",
                        "const": "java"
                      },
                      {
                        "type": "string",
                        "const": "javascript"
                      },
                      {
                        "type": "string",
                        "const": "kotlin"
                      },
                      {
                        "type": "string",
                        "const": "mysql"
                      },
                      {
                        "type": "string",
                        "const": "mssql"
                      },
                      {
                        "type": "string",
                        "const": "oracle"
                      },
                      {
                        "type": "string",
                        "const": "php"
                      },
                      {
                        "type": "string",
                        "const": "python"
                      },
                      {
                        "type": "string",
                        "const": "python3"
                      },
                      {
                        "type": "string",
                        "const": "racket"
                      },
                      {
                        "type": "string",
                        "const": "ruby"
                      },
                      {
                        "type": "string",
                        "const": "rust"
                      },
                      {
                        "type": "string",
                        "const": "scala"
                      },
                      {
                        "type": "string",
                        "const": "swift"
                      },
                      {
                        "type": "string",
                        "const": "typescript"
                      }
                    ],
                    "description": "Canonical language identifier"
                  },
                  "codeHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "updatedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "remoteId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "questionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "start": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "checkUrl": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^https://leetcode\\.(?:com|cn)/submissions/detail/[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*/check/$"
                  },
                  "check": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "supersedesOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "repeatsOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "result": {
                    "type": "object",
                    "required": [
                      "state"
                    ],
                    "properties": {
                      "state": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "verdict": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "statusMessage": {
                        "type": "string",
                        "maxLength": 1024
                      },
                      "runtime": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "memory": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "stdout": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "expectedOutput": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "compileError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "runtimeError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "input": {
                        "type": "string",
                        "maxLength": 200000
                      }
                    },
                    "additionalProperties": false
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_submit": {
      "input": {
        "type": "object",
        "required": [
          "titleSlug",
          "language",
          "code"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "titleSlug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "language": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "bash"
                  },
                  {
                    "type": "string",
                    "const": "c"
                  },
                  {
                    "type": "string",
                    "const": "cpp"
                  },
                  {
                    "type": "string",
                    "const": "csharp"
                  },
                  {
                    "type": "string",
                    "const": "cangjie"
                  },
                  {
                    "type": "string",
                    "const": "dart"
                  },
                  {
                    "type": "string",
                    "const": "elixir"
                  },
                  {
                    "type": "string",
                    "const": "erlang"
                  },
                  {
                    "type": "string",
                    "const": "go"
                  },
                  {
                    "type": "string",
                    "const": "java"
                  },
                  {
                    "type": "string",
                    "const": "javascript"
                  },
                  {
                    "type": "string",
                    "const": "kotlin"
                  },
                  {
                    "type": "string",
                    "const": "mysql"
                  },
                  {
                    "type": "string",
                    "const": "mssql"
                  },
                  {
                    "type": "string",
                    "const": "oracle"
                  },
                  {
                    "type": "string",
                    "const": "php"
                  },
                  {
                    "type": "string",
                    "const": "python"
                  },
                  {
                    "type": "string",
                    "const": "python3"
                  },
                  {
                    "type": "string",
                    "const": "racket"
                  },
                  {
                    "type": "string",
                    "const": "ruby"
                  },
                  {
                    "type": "string",
                    "const": "rust"
                  },
                  {
                    "type": "string",
                    "const": "scala"
                  },
                  {
                    "type": "string",
                    "const": "swift"
                  },
                  {
                    "type": "string",
                    "const": "typescript"
                  }
                ],
                "description": "Canonical language identifier"
              },
              {
                "type": "string",
                "const": "golang"
              }
            ],
            "description": "Canonical language identifier or upstream LeetCode alias"
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "retryUnknownOperationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "resubmitCompletedOperationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "timeoutMs": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120000,
            "default": 120000
          },
          "pollIntervalMs": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000,
            "default": 1500
          }
        },
        "additionalProperties": false,
        "not": {
          "required": [
            "retryUnknownOperationId",
            "resubmitCompletedOperationId"
          ]
        }
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "operationId",
                  "kind",
                  "state",
                  "region",
                  "titleSlug",
                  "language",
                  "codeHash",
                  "createdAt",
                  "updatedAt"
                ],
                "properties": {
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "run"
                      },
                      {
                        "type": "string",
                        "const": "submit"
                      }
                    ]
                  },
                  "state": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "queued"
                      },
                      {
                        "type": "string",
                        "const": "polling"
                      },
                      {
                        "type": "string",
                        "const": "completed"
                      },
                      {
                        "type": "string",
                        "const": "unknown"
                      },
                      {
                        "type": "string",
                        "const": "failed"
                      },
                      {
                        "type": "string",
                        "const": "cancelled"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "bash"
                      },
                      {
                        "type": "string",
                        "const": "c"
                      },
                      {
                        "type": "string",
                        "const": "cpp"
                      },
                      {
                        "type": "string",
                        "const": "csharp"
                      },
                      {
                        "type": "string",
                        "const": "cangjie"
                      },
                      {
                        "type": "string",
                        "const": "dart"
                      },
                      {
                        "type": "string",
                        "const": "elixir"
                      },
                      {
                        "type": "string",
                        "const": "erlang"
                      },
                      {
                        "type": "string",
                        "const": "go"
                      },
                      {
                        "type": "string",
                        "const": "java"
                      },
                      {
                        "type": "string",
                        "const": "javascript"
                      },
                      {
                        "type": "string",
                        "const": "kotlin"
                      },
                      {
                        "type": "string",
                        "const": "mysql"
                      },
                      {
                        "type": "string",
                        "const": "mssql"
                      },
                      {
                        "type": "string",
                        "const": "oracle"
                      },
                      {
                        "type": "string",
                        "const": "php"
                      },
                      {
                        "type": "string",
                        "const": "python"
                      },
                      {
                        "type": "string",
                        "const": "python3"
                      },
                      {
                        "type": "string",
                        "const": "racket"
                      },
                      {
                        "type": "string",
                        "const": "ruby"
                      },
                      {
                        "type": "string",
                        "const": "rust"
                      },
                      {
                        "type": "string",
                        "const": "scala"
                      },
                      {
                        "type": "string",
                        "const": "swift"
                      },
                      {
                        "type": "string",
                        "const": "typescript"
                      }
                    ],
                    "description": "Canonical language identifier"
                  },
                  "codeHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "updatedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "remoteId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "questionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "start": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "checkUrl": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^https://leetcode\\.(?:com|cn)/submissions/detail/[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*/check/$"
                  },
                  "check": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "supersedesOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "repeatsOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "result": {
                    "type": "object",
                    "required": [
                      "state"
                    ],
                    "properties": {
                      "state": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "verdict": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "statusMessage": {
                        "type": "string",
                        "maxLength": 1024
                      },
                      "runtime": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "memory": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "stdout": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "expectedOutput": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "compileError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "runtimeError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "input": {
                        "type": "string",
                        "maxLength": 200000
                      }
                    },
                    "additionalProperties": false
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "lc_operation_status": {
      "input": {
        "type": "object",
        "required": [
          "operationId"
        ],
        "properties": {
          "operationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "operationId",
                  "kind",
                  "state",
                  "region",
                  "titleSlug",
                  "language",
                  "codeHash",
                  "createdAt",
                  "updatedAt"
                ],
                "properties": {
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "kind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "run"
                      },
                      {
                        "type": "string",
                        "const": "submit"
                      }
                    ]
                  },
                  "state": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "queued"
                      },
                      {
                        "type": "string",
                        "const": "polling"
                      },
                      {
                        "type": "string",
                        "const": "completed"
                      },
                      {
                        "type": "string",
                        "const": "unknown"
                      },
                      {
                        "type": "string",
                        "const": "failed"
                      },
                      {
                        "type": "string",
                        "const": "cancelled"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "titleSlug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "bash"
                      },
                      {
                        "type": "string",
                        "const": "c"
                      },
                      {
                        "type": "string",
                        "const": "cpp"
                      },
                      {
                        "type": "string",
                        "const": "csharp"
                      },
                      {
                        "type": "string",
                        "const": "cangjie"
                      },
                      {
                        "type": "string",
                        "const": "dart"
                      },
                      {
                        "type": "string",
                        "const": "elixir"
                      },
                      {
                        "type": "string",
                        "const": "erlang"
                      },
                      {
                        "type": "string",
                        "const": "go"
                      },
                      {
                        "type": "string",
                        "const": "java"
                      },
                      {
                        "type": "string",
                        "const": "javascript"
                      },
                      {
                        "type": "string",
                        "const": "kotlin"
                      },
                      {
                        "type": "string",
                        "const": "mysql"
                      },
                      {
                        "type": "string",
                        "const": "mssql"
                      },
                      {
                        "type": "string",
                        "const": "oracle"
                      },
                      {
                        "type": "string",
                        "const": "php"
                      },
                      {
                        "type": "string",
                        "const": "python"
                      },
                      {
                        "type": "string",
                        "const": "python3"
                      },
                      {
                        "type": "string",
                        "const": "racket"
                      },
                      {
                        "type": "string",
                        "const": "ruby"
                      },
                      {
                        "type": "string",
                        "const": "rust"
                      },
                      {
                        "type": "string",
                        "const": "scala"
                      },
                      {
                        "type": "string",
                        "const": "swift"
                      },
                      {
                        "type": "string",
                        "const": "typescript"
                      }
                    ],
                    "description": "Canonical language identifier"
                  },
                  "codeHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "updatedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "remoteId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "questionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "start": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "checkUrl": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^https://leetcode\\.(?:com|cn)/submissions/detail/[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*/check/$"
                  },
                  "check": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {}
                    },
                    "maxProperties": 512,
                    "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                    "x-maxJsonBytes": 900000,
                    "x-maxDepth": 16,
                    "x-persistence": "never",
                    "x-sensitive": true
                  },
                  "supersedesOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "repeatsOperationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "result": {
                    "type": "object",
                    "required": [
                      "state"
                    ],
                    "properties": {
                      "state": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "verdict": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "statusMessage": {
                        "type": "string",
                        "maxLength": 1024
                      },
                      "runtime": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "memory": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "stdout": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "expectedOutput": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "compileError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "runtimeError": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "input": {
                        "type": "string",
                        "maxLength": 200000
                      }
                    },
                    "additionalProperties": false
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "notes": {
    "capabilities": {
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "global",
                  "cn"
                ],
                "properties": {
                  "global": {
                    "type": "object",
                    "required": [
                      "supported",
                      "configured",
                      "currentlyAvailable",
                      "revisionMode",
                      "maxSize"
                    ],
                    "properties": {
                      "supported": {
                        "type": "boolean"
                      },
                      "configured": {
                        "type": "boolean"
                      },
                      "currentlyAvailable": {
                        "type": "boolean"
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "revisionMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "native-etag"
                          },
                          {
                            "type": "string",
                            "const": "best-effort-compare-and-set"
                          },
                          {
                            "type": "string",
                            "const": "unsupported"
                          }
                        ]
                      },
                      "maxSize": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "cn": {
                    "type": "object",
                    "required": [
                      "supported",
                      "configured",
                      "currentlyAvailable",
                      "revisionMode",
                      "maxSize"
                    ],
                    "properties": {
                      "supported": {
                        "type": "boolean"
                      },
                      "configured": {
                        "type": "boolean"
                      },
                      "currentlyAvailable": {
                        "type": "boolean"
                      },
                      "reason": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "revisionMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "native-etag"
                          },
                          {
                            "type": "string",
                            "const": "best-effort-compare-and-set"
                          },
                          {
                            "type": "string",
                            "const": "unsupported"
                          }
                        ]
                      },
                      "maxSize": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "read": {
      "input": {
        "type": "object",
        "required": [
          "region",
          "target"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "target",
                  "content",
                  "byteLength",
                  "revision",
                  "revisionMode"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 16384
                  },
                  "byteLength": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 16384
                  },
                  "revision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^sha256:[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revisionMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "native-etag"
                      },
                      {
                        "type": "string",
                        "const": "best-effort-compare-and-set"
                      },
                      {
                        "type": "string",
                        "const": "unsupported"
                      }
                    ]
                  },
                  "updatedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "write": {
      "input": {
        "type": "object",
        "required": [
          "region",
          "target",
          "content",
          "expectedRevision"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "target": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "LeetCode problem title slug"
          },
          "content": {
            "type": "string",
            "maxLength": 16384
          },
          "expectedRevision": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^sha256:[a-f0-9]{64}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "target",
                  "content",
                  "byteLength",
                  "revision",
                  "revisionMode"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "LeetCode problem title slug"
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 16384
                  },
                  "byteLength": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 16384
                  },
                  "revision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^sha256:[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revisionMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "native-etag"
                      },
                      {
                        "type": "string",
                        "const": "best-effort-compare-and-set"
                      },
                      {
                        "type": "string",
                        "const": "unsupported"
                      }
                    ]
                  },
                  "updatedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "search": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "keyword": {
            "type": "string",
            "maxLength": 2048
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "skip": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000,
            "default": 0
          },
          "orderBy": {
            "anyOf": [
              {
                "type": "string",
                "const": "ASCENDING"
              },
              {
                "type": "string",
                "const": "DESCENDING"
              }
            ],
            "default": "DESCENDING"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "filters",
                  "pagination",
                  "notes"
                ],
                "properties": {
                  "filters": {
                    "type": "object",
                    "required": [
                      "orderBy"
                    ],
                    "properties": {
                      "keyword": {
                        "type": "string",
                        "maxLength": 2048
                      },
                      "orderBy": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "ASCENDING"
                          },
                          {
                            "type": "string",
                            "const": "DESCENDING"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "pagination": {
                    "type": "object",
                    "required": [
                      "limit",
                      "skip",
                      "totalCount"
                    ],
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100,
                        "default": 10
                      },
                      "skip": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000,
                        "default": 0
                      },
                      "totalCount": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "notes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "summary",
                        "content"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                        },
                        "summary": {
                          "type": "string",
                          "maxLength": 2048,
                          "description": "Personal note title/summary"
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 200000,
                          "description": "Sensitive personal note body; markdown is preserved verbatim",
                          "x-sensitive": true,
                          "x-persistence": "never"
                        },
                        "noteQuestion": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "linkTemplate",
                                "questionId",
                                "title"
                              ],
                              "properties": {
                                "linkTemplate": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                },
                                "questionId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "pattern": "^[0-9]+$",
                                  "description": "Numeric LeetCode CN question ID, not a title slug"
                                },
                                "title": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 512
                                },
                                "translatedTitle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 512
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "get": {
      "input": {
        "type": "object",
        "required": [
          "questionId"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "questionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "pattern": "^[0-9]+$",
            "description": "Numeric LeetCode CN question ID, not a title slug"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "skip": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000,
            "default": 0
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "questionId",
                  "count",
                  "pagination",
                  "notes"
                ],
                "properties": {
                  "questionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[0-9]+$",
                    "description": "Numeric LeetCode CN question ID, not a title slug"
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "pagination": {
                    "type": "object",
                    "required": [
                      "limit",
                      "skip"
                    ],
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100,
                        "default": 10
                      },
                      "skip": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000,
                        "default": 0
                      }
                    },
                    "additionalProperties": false
                  },
                  "notes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "summary",
                        "content"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                        },
                        "summary": {
                          "type": "string",
                          "maxLength": 2048,
                          "description": "Personal note title/summary"
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 200000,
                          "description": "Sensitive personal note body; markdown is preserved verbatim",
                          "x-sensitive": true,
                          "x-persistence": "never"
                        },
                        "noteQuestion": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "linkTemplate",
                                "questionId",
                                "title"
                              ],
                              "properties": {
                                "linkTemplate": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                },
                                "questionId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "pattern": "^[0-9]+$",
                                  "description": "Numeric LeetCode CN question ID, not a title slug"
                                },
                                "title": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 512
                                },
                                "translatedTitle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 512
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "create": {
      "input": {
        "type": "object",
        "required": [
          "questionId",
          "content"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "questionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "pattern": "^[0-9]+$",
            "description": "Numeric LeetCode CN question ID, not a title slug"
          },
          "content": {
            "type": "string",
            "maxLength": 200000,
            "description": "Sensitive personal note body; markdown is preserved verbatim",
            "x-sensitive": true,
            "x-persistence": "never"
          },
          "title": {
            "type": "string",
            "maxLength": 2048,
            "default": ""
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "success",
                  "note"
                ],
                "properties": {
                  "success": {
                    "type": "boolean"
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "id",
                          "content",
                          "targetId"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 200000,
                            "description": "Sensitive personal note body; markdown is preserved verbatim",
                            "x-sensitive": true,
                            "x-persistence": "never"
                          },
                          "targetId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    },
    "update": {
      "input": {
        "type": "object",
        "required": [
          "noteId"
        ],
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          },
          "noteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
          },
          "content": {
            "type": "string",
            "maxLength": 200000,
            "default": "",
            "x-sensitive": true,
            "x-persistence": "never"
          },
          "title": {
            "type": "string",
            "maxLength": 2048,
            "default": ""
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "success",
                  "note"
                ],
                "properties": {
                  "success": {
                    "type": "boolean"
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "id",
                          "content",
                          "targetId"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                          },
                          "content": {
                            "type": "string",
                            "maxLength": 200000,
                            "description": "Sensitive personal note body; markdown is preserved verbatim",
                            "x-sensitive": true,
                            "x-persistence": "never"
                          },
                          "targetId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "user": {
    "status": {
      "input": {
        "type": "object",
        "properties": {
          "region": {
            "anyOf": [
              {
                "type": "string",
                "const": "global"
              },
              {
                "type": "string",
                "const": "cn"
              }
            ],
            "description": "LeetCode site region"
          }
        },
        "additionalProperties": false
      },
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "isSignedIn",
                      "isAdmin"
                    ],
                    "properties": {
                      "isSignedIn": {
                        "type": "boolean",
                        "const": false
                      },
                      "isAdmin": {
                        "type": "boolean"
                      },
                      "useTranslation": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "required": [
                      "isSignedIn",
                      "username",
                      "isAdmin"
                    ],
                    "properties": {
                      "isSignedIn": {
                        "type": "boolean",
                        "const": true
                      },
                      "username": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[A-Za-z0-9_.-]+$",
                        "description": "Public LeetCode username or CN user slug"
                      },
                      "displayName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "avatar": {
                        "type": "string",
                        "maxLength": 2048
                      },
                      "isAdmin": {
                        "type": "boolean"
                      },
                      "useTranslation": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "diagnostics": {
    "getSnapshot": {
      "output": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "ok",
              "data",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": true
              },
              "data": {
                "type": "object",
                "required": [
                  "packageName",
                  "packageVersion",
                  "contractVersion",
                  "protocolVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "capabilityManifestDigest",
                  "providerId",
                  "instanceId",
                  "contextRevision",
                  "snapshotRevision",
                  "observedAt",
                  "providerConflict",
                  "storageWritable",
                  "regions"
                ],
                "properties": {
                  "packageName": {
                    "type": "string",
                    "const": "pi-leetcode-tools"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "protocolVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "capabilityManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "providerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "activeAccountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "snapshotRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "observedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "providerConflict": {
                    "type": "boolean"
                  },
                  "storageWritable": {
                    "type": "boolean"
                  },
                  "regions": {
                    "type": "object",
                    "required": [
                      "global",
                      "cn"
                    ],
                    "properties": {
                      "global": {
                        "type": "object",
                        "required": [
                          "configured",
                          "sessionConfigured",
                          "operationConfigured",
                          "queueDepth",
                          "queueLimit",
                          "circuitState"
                        ],
                        "properties": {
                          "configured": {
                            "type": "boolean"
                          },
                          "sessionConfigured": {
                            "type": "boolean"
                          },
                          "operationConfigured": {
                            "type": "boolean"
                          },
                          "queueDepth": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "queueLimit": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "circuitState": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "unknown"
                              },
                              {
                                "type": "string",
                                "const": "closed"
                              },
                              {
                                "type": "string",
                                "const": "open"
                              },
                              {
                                "type": "string",
                                "const": "half_open"
                              }
                            ]
                          },
                          "nextProbeAt": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "lastSafeErrorCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "VALIDATION_ERROR"
                              },
                              {
                                "type": "string",
                                "const": "AUTH_REQUIRED"
                              },
                              {
                                "type": "string",
                                "const": "AUTH_EXPIRED"
                              },
                              {
                                "type": "string",
                                "const": "PERMISSION_DENIED"
                              },
                              {
                                "type": "string",
                                "const": "INTERACTION_REQUIRED"
                              },
                              {
                                "type": "string",
                                "const": "NOT_FOUND"
                              },
                              {
                                "type": "string",
                                "const": "RATE_LIMITED"
                              },
                              {
                                "type": "string",
                                "const": "REMOTE_UNAVAILABLE"
                              },
                              {
                                "type": "string",
                                "const": "EXECUTION_FAILED"
                              },
                              {
                                "type": "string",
                                "const": "UNSUPPORTED_REGION"
                              },
                              {
                                "type": "string",
                                "const": "STALE_OPERATION"
                              },
                              {
                                "type": "string",
                                "const": "STALE_CURSOR"
                              },
                              {
                                "type": "string",
                                "const": "UNKNOWN_WRITE_OUTCOME"
                              },
                              {
                                "type": "string",
                                "const": "CANCELLED"
                              },
                              {
                                "type": "string",
                                "const": "CAPABILITY_UNAVAILABLE"
                              },
                              {
                                "type": "string",
                                "const": "REMOTE_SCHEMA_CHANGED"
                              },
                              {
                                "type": "string",
                                "const": "PROVIDER_CONFLICT"
                              },
                              {
                                "type": "string",
                                "const": "CONTRACT_MISMATCH"
                              },
                              {
                                "type": "string",
                                "const": "PROTOCOL_TIMEOUT"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "cn": {
                        "type": "object",
                        "required": [
                          "configured",
                          "sessionConfigured",
                          "operationConfigured",
                          "queueDepth",
                          "queueLimit",
                          "circuitState"
                        ],
                        "properties": {
                          "configured": {
                            "type": "boolean"
                          },
                          "sessionConfigured": {
                            "type": "boolean"
                          },
                          "operationConfigured": {
                            "type": "boolean"
                          },
                          "queueDepth": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "queueLimit": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "circuitState": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "unknown"
                              },
                              {
                                "type": "string",
                                "const": "closed"
                              },
                              {
                                "type": "string",
                                "const": "open"
                              },
                              {
                                "type": "string",
                                "const": "half_open"
                              }
                            ]
                          },
                          "nextProbeAt": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "lastSafeErrorCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "VALIDATION_ERROR"
                              },
                              {
                                "type": "string",
                                "const": "AUTH_REQUIRED"
                              },
                              {
                                "type": "string",
                                "const": "AUTH_EXPIRED"
                              },
                              {
                                "type": "string",
                                "const": "PERMISSION_DENIED"
                              },
                              {
                                "type": "string",
                                "const": "INTERACTION_REQUIRED"
                              },
                              {
                                "type": "string",
                                "const": "NOT_FOUND"
                              },
                              {
                                "type": "string",
                                "const": "RATE_LIMITED"
                              },
                              {
                                "type": "string",
                                "const": "REMOTE_UNAVAILABLE"
                              },
                              {
                                "type": "string",
                                "const": "EXECUTION_FAILED"
                              },
                              {
                                "type": "string",
                                "const": "UNSUPPORTED_REGION"
                              },
                              {
                                "type": "string",
                                "const": "STALE_OPERATION"
                              },
                              {
                                "type": "string",
                                "const": "STALE_CURSOR"
                              },
                              {
                                "type": "string",
                                "const": "UNKNOWN_WRITE_OUTCOME"
                              },
                              {
                                "type": "string",
                                "const": "CANCELLED"
                              },
                              {
                                "type": "string",
                                "const": "CAPABILITY_UNAVAILABLE"
                              },
                              {
                                "type": "string",
                                "const": "REMOTE_SCHEMA_CHANGED"
                              },
                              {
                                "type": "string",
                                "const": "PROVIDER_CONFLICT"
                              },
                              {
                                "type": "string",
                                "const": "CONTRACT_MISMATCH"
                              },
                              {
                                "type": "string",
                                "const": "PROTOCOL_TIMEOUT"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "ok",
              "error",
              "meta"
            ],
            "properties": {
              "ok": {
                "type": "boolean",
                "const": false
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "properties": {
                  "code": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "VALIDATION_ERROR"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "AUTH_EXPIRED"
                      },
                      {
                        "type": "string",
                        "const": "PERMISSION_DENIED"
                      },
                      {
                        "type": "string",
                        "const": "INTERACTION_REQUIRED"
                      },
                      {
                        "type": "string",
                        "const": "NOT_FOUND"
                      },
                      {
                        "type": "string",
                        "const": "RATE_LIMITED"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "EXECUTION_FAILED"
                      },
                      {
                        "type": "string",
                        "const": "UNSUPPORTED_REGION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_OPERATION"
                      },
                      {
                        "type": "string",
                        "const": "STALE_CURSOR"
                      },
                      {
                        "type": "string",
                        "const": "UNKNOWN_WRITE_OUTCOME"
                      },
                      {
                        "type": "string",
                        "const": "CANCELLED"
                      },
                      {
                        "type": "string",
                        "const": "CAPABILITY_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "REMOTE_SCHEMA_CHANGED"
                      },
                      {
                        "type": "string",
                        "const": "PROVIDER_CONFLICT"
                      },
                      {
                        "type": "string",
                        "const": "CONTRACT_MISMATCH"
                      },
                      {
                        "type": "string",
                        "const": "PROTOCOL_TIMEOUT"
                      }
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "retryable": {
                    "type": "boolean"
                  },
                  "retryAfterMs": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "operationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "details": {
                    "type": "object",
                    "patternProperties": {
                      "^.*$": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2048
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "additionalProperties": false
              },
              "meta": {
                "type": "object",
                "required": [
                  "region",
                  "packageVersion",
                  "contractVersion",
                  "schemaDigest",
                  "behaviorManifestDigest",
                  "instanceId",
                  "contextRevision",
                  "requestId"
                ],
                "properties": {
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "global"
                      },
                      {
                        "type": "string",
                        "const": "cn"
                      }
                    ],
                    "description": "LeetCode site region"
                  },
                  "packageVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "contractVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "schemaDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "behaviorManifestDigest": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "instanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "contextRevision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "accountProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "requestId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9._:-]+$"
                  },
                  "durationMs": {
                    "type": "number",
                    "minimum": 0
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "omittedFields": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "maxItems": 100
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "errors": [
    "VALIDATION_ERROR",
    "AUTH_REQUIRED",
    "AUTH_EXPIRED",
    "PERMISSION_DENIED",
    "INTERACTION_REQUIRED",
    "NOT_FOUND",
    "RATE_LIMITED",
    "REMOTE_UNAVAILABLE",
    "EXECUTION_FAILED",
    "UNSUPPORTED_REGION",
    "STALE_OPERATION",
    "STALE_CURSOR",
    "UNKNOWN_WRITE_OUTCOME",
    "CANCELLED",
    "CAPABILITY_UNAVAILABLE",
    "REMOTE_SCHEMA_CHANGED",
    "PROVIDER_CONFLICT",
    "CONTRACT_MISMATCH",
    "PROTOCOL_TIMEOUT"
  ],
  "discovery": {
    "channel": "pi-leetcode-tools:discover:v1",
    "request": {
      "type": "object",
      "required": [
        "protocolVersion",
        "requestId",
        "respond"
      ],
      "properties": {
        "protocolVersion": {
          "type": "string",
          "const": "1.0.0"
        },
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "respond": {
          "description": "Process-local one-shot discovery response callback"
        }
      },
      "additionalProperties": false
    },
    "response": {
      "type": "object",
      "required": [
        "protocolVersion",
        "requestId",
        "descriptor"
      ],
      "properties": {
        "protocolVersion": {
          "type": "string",
          "const": "1.0.0"
        },
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "descriptor": {
          "type": "object",
          "required": [
            "packageName",
            "providerId",
            "instanceId",
            "contextRevision",
            "packageVersion",
            "contractVersion",
            "protocolVersion",
            "schemaDigest",
            "behaviorManifestDigest",
            "capabilityManifestDigest",
            "snapshotRevision",
            "observedAt",
            "supportedRegions",
            "tools",
            "notesPort",
            "regionReadiness",
            "interactiveUI"
          ],
          "properties": {
            "packageName": {
              "type": "string",
              "const": "pi-leetcode-tools"
            },
            "providerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "instanceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "contextRevision": {
              "type": "integer",
              "minimum": 0
            },
            "activeAccountProfileId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "packageVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "contractVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "protocolVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "schemaDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "behaviorManifestDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "capabilityManifestDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "snapshotRevision": {
              "type": "integer",
              "minimum": 0
            },
            "observedAt": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "supportedRegions": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "global"
                  },
                  {
                    "type": "string",
                    "const": "cn"
                  }
                ],
                "description": "LeetCode site region"
              },
              "minItems": 1,
              "maxItems": 2,
              "uniqueItems": true
            },
            "tools": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "version",
                  "supported",
                  "configured",
                  "currentlyAvailable",
                  "requiresAuth",
                  "consequence"
                ],
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "lc_daily"
                      },
                      {
                        "type": "string",
                        "const": "lc_search"
                      },
                      {
                        "type": "string",
                        "const": "lc_problem"
                      },
                      {
                        "type": "string",
                        "const": "lc_solution_search"
                      },
                      {
                        "type": "string",
                        "const": "lc_solution"
                      },
                      {
                        "type": "string",
                        "const": "lc_profile"
                      },
                      {
                        "type": "string",
                        "const": "lc_contest"
                      },
                      {
                        "type": "string",
                        "const": "lc_progress"
                      },
                      {
                        "type": "string",
                        "const": "lc_history"
                      },
                      {
                        "type": "string",
                        "const": "lc_user_submissions"
                      },
                      {
                        "type": "string",
                        "const": "lc_submission"
                      },
                      {
                        "type": "string",
                        "const": "lc_run"
                      },
                      {
                        "type": "string",
                        "const": "lc_submit"
                      },
                      {
                        "type": "string",
                        "const": "lc_operation_status"
                      }
                    ]
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "supported": {
                    "type": "boolean"
                  },
                  "configured": {
                    "type": "boolean"
                  },
                  "currentlyAvailable": {
                    "type": "boolean"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "requiresAuth": {
                    "type": "boolean"
                  },
                  "consequence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "read"
                      },
                      {
                        "type": "string",
                        "const": "answer_read"
                      },
                      {
                        "type": "string",
                        "const": "sensitive_read"
                      },
                      {
                        "type": "string",
                        "const": "execution"
                      },
                      {
                        "type": "string",
                        "const": "external_write"
                      }
                    ]
                  },
                  "disclosureRisk": {
                    "type": "string",
                    "const": "solution"
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 14
            },
            "notesPort": {
              "type": "object",
              "required": [
                "global",
                "cn"
              ],
              "properties": {
                "global": {
                  "type": "object",
                  "required": [
                    "supported",
                    "configured",
                    "currentlyAvailable",
                    "revisionMode",
                    "maxSize"
                  ],
                  "properties": {
                    "supported": {
                      "type": "boolean"
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "currentlyAvailable": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "revisionMode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "native-etag"
                        },
                        {
                          "type": "string",
                          "const": "best-effort-compare-and-set"
                        },
                        {
                          "type": "string",
                          "const": "unsupported"
                        }
                      ]
                    },
                    "maxSize": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                },
                "cn": {
                  "type": "object",
                  "required": [
                    "supported",
                    "configured",
                    "currentlyAvailable",
                    "revisionMode",
                    "maxSize"
                  ],
                  "properties": {
                    "supported": {
                      "type": "boolean"
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "currentlyAvailable": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "revisionMode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "native-etag"
                        },
                        {
                          "type": "string",
                          "const": "best-effort-compare-and-set"
                        },
                        {
                          "type": "string",
                          "const": "unsupported"
                        }
                      ]
                    },
                    "maxSize": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "regionReadiness": {
              "type": "object",
              "required": [
                "global",
                "cn"
              ],
              "properties": {
                "global": {
                  "type": "object",
                  "required": [
                    "configured",
                    "publicReads",
                    "sessionReads",
                    "execution",
                    "externalWrite",
                    "notes"
                  ],
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "publicReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "sessionReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "execution": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "externalWrite": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "retryAt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "additionalProperties": false
                },
                "cn": {
                  "type": "object",
                  "required": [
                    "configured",
                    "publicReads",
                    "sessionReads",
                    "execution",
                    "externalWrite",
                    "notes"
                  ],
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "publicReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "sessionReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "execution": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "externalWrite": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "retryAt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "interactiveUI": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "rpc": {
    "channel": "pi-leetcode-tools:rpc:v1",
    "request": {
      "type": "object",
      "required": [
        "protocolVersion",
        "requestId",
        "providerId",
        "instanceId",
        "contextRevision",
        "method",
        "params",
        "deadlineAt",
        "respond"
      ],
      "properties": {
        "protocolVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "providerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "method": {
          "anyOf": [
            {
              "type": "string",
              "const": "tool.execute"
            },
            {
              "type": "string",
              "const": "notes.capabilities"
            },
            {
              "type": "string",
              "const": "notes.read"
            },
            {
              "type": "string",
              "const": "notes.write"
            },
            {
              "type": "string",
              "const": "notes.search"
            },
            {
              "type": "string",
              "const": "notes.get"
            },
            {
              "type": "string",
              "const": "notes.create"
            },
            {
              "type": "string",
              "const": "notes.update"
            },
            {
              "type": "string",
              "const": "user.status"
            },
            {
              "type": "string",
              "const": "diagnostics.getSnapshot"
            }
          ]
        },
        "params": {},
        "deadlineAt": {
          "type": "integer",
          "minimum": 0
        },
        "respond": {
          "description": "Process-local one-shot RPC response callback"
        }
      },
      "additionalProperties": false
    },
    "response": {
      "type": "object",
      "required": [
        "protocolVersion",
        "requestId",
        "providerId",
        "instanceId",
        "contextRevision",
        "result"
      ],
      "properties": {
        "protocolVersion": {
          "type": "string",
          "const": "1.0.0"
        },
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "providerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "instanceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9._:-]+$"
        },
        "contextRevision": {
          "type": "integer",
          "minimum": 0
        },
        "result": {
          "anyOf": [
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "date",
                        "link",
                        "problem",
                        "regionalPayload"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32
                        },
                        "link": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "problem": {
                          "type": "object",
                          "required": [
                            "questionId",
                            "frontendId",
                            "title",
                            "titleSlug",
                            "difficulty",
                            "paidOnly",
                            "topicTags"
                          ],
                          "properties": {
                            "questionId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "frontendId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "translatedTitle": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "titleSlug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                              "description": "LeetCode problem title slug"
                            },
                            "difficulty": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "easy"
                                },
                                {
                                  "type": "string",
                                  "const": "medium"
                                },
                                {
                                  "type": "string",
                                  "const": "hard"
                                }
                              ]
                            },
                            "paidOnly": {
                              "type": "boolean"
                            },
                            "acRate": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "status": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "not_started"
                                },
                                {
                                  "type": "string",
                                  "const": "attempted"
                                },
                                {
                                  "type": "string",
                                  "const": "solved"
                                }
                              ]
                            },
                            "topicTags": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "slug"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "slug": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "translatedName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            }
                          },
                          "additionalProperties": false
                        },
                        "regionalPayload": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "date",
                                "link",
                                "question"
                              ],
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 32
                                },
                                "link": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2048
                                },
                                "question": {
                                  "type": "object",
                                  "required": [
                                    "questionId",
                                    "questionFrontendId",
                                    "boundTopicId",
                                    "title",
                                    "titleSlug",
                                    "content",
                                    "translatedTitle",
                                    "translatedContent",
                                    "isPaidOnly",
                                    "difficulty",
                                    "likes",
                                    "dislikes",
                                    "isLiked",
                                    "similarQuestions",
                                    "exampleTestcases",
                                    "contributors",
                                    "topicTags",
                                    "companyTagStats",
                                    "codeSnippets",
                                    "stats",
                                    "hints",
                                    "solution",
                                    "status",
                                    "sampleTestCase",
                                    "metaData",
                                    "judgerAvailable",
                                    "judgeType",
                                    "mysqlSchemas",
                                    "enableRunCode",
                                    "enableTestMode",
                                    "libraryUrl",
                                    "note"
                                  ],
                                  "properties": {
                                    "questionId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "questionFrontendId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "boundTopicId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "title": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 512
                                    },
                                    "titleSlug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128,
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                      "description": "LeetCode problem title slug"
                                    },
                                    "content": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "translatedTitle": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 512
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "translatedContent": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 200000
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "isPaidOnly": {
                                      "type": "boolean"
                                    },
                                    "difficulty": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 32
                                    },
                                    "acRate": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "likes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "dislikes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "isLiked": {
                                      "anyOf": [
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "similarQuestions": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "exampleTestcases": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "contributors": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "username",
                                          "profileUrl",
                                          "avatarUrl"
                                        ],
                                        "properties": {
                                          "username": {
                                            "type": "string",
                                            "maxLength": 128
                                          },
                                          "profileUrl": {
                                            "type": "string",
                                            "maxLength": 2048
                                          },
                                          "avatarUrl": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "maxItems": 100
                                    },
                                    "topicTags": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "name",
                                          "slug"
                                        ],
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "slug": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "translatedName": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 128
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "maxItems": 100
                                    },
                                    "companyTagStats": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 200000
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "codeSnippets": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "lang",
                                          "langSlug",
                                          "code"
                                        ],
                                        "properties": {
                                          "lang": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "langSlug": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "code": {
                                            "type": "string",
                                            "maxLength": 100000
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "maxItems": 100
                                    },
                                    "stats": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "hints": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "maxLength": 200000
                                      },
                                      "maxItems": 100
                                    },
                                    "solution": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "required": [
                                            "id",
                                            "canSeeDetail"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            "canSeeDetail": {
                                              "type": "boolean"
                                            },
                                            "paidOnly": {
                                              "type": "boolean"
                                            },
                                            "hasVideoSolution": {
                                              "type": "boolean"
                                            },
                                            "paidOnlyVideo": {
                                              "type": "boolean"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "status": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sampleTestCase": {
                                      "type": "string",
                                      "maxLength": 200000,
                                      "description": "UTF-8 text limited to 200000 bytes at runtime",
                                      "x-maxUtf8Bytes": 200000
                                    },
                                    "metaData": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "judgerAvailable": {
                                      "type": "boolean"
                                    },
                                    "judgeType": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "mysqlSchemas": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "maxLength": 200000
                                      },
                                      "maxItems": 100
                                    },
                                    "enableRunCode": {
                                      "type": "boolean"
                                    },
                                    "enableTestMode": {
                                      "type": "boolean"
                                    },
                                    "enableDebugger": {
                                      "type": "boolean"
                                    },
                                    "envInfo": {
                                      "type": "string",
                                      "maxLength": 200000
                                    },
                                    "libraryUrl": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 2048
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "adminUrl": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 2048
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "challengeQuestion": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "required": [
                                            "id",
                                            "date",
                                            "incompleteChallengeCount",
                                            "streakCount",
                                            "type"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            "date": {
                                              "type": "string",
                                              "maxLength": 32
                                            },
                                            "incompleteChallengeCount": {
                                              "type": "integer",
                                              "minimum": 0
                                            },
                                            "streakCount": {
                                              "type": "integer",
                                              "minimum": 0
                                            },
                                            "type": {
                                              "type": "string",
                                              "maxLength": 128
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "note": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 200000
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "date",
                                "userStatus",
                                "question",
                                "lastSubmission"
                              ],
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 32
                                },
                                "userStatus": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "question": {
                                  "type": "object",
                                  "required": [
                                    "questionId",
                                    "frontendQuestionId",
                                    "title",
                                    "titleCn",
                                    "titleSlug",
                                    "difficulty",
                                    "paidOnly",
                                    "acRate",
                                    "status",
                                    "freqBar",
                                    "isFavor",
                                    "solutionNum",
                                    "hasVideoSolution",
                                    "topicTags",
                                    "extra"
                                  ],
                                  "properties": {
                                    "questionId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "frontendQuestionId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "title": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 512
                                    },
                                    "titleCn": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 512
                                    },
                                    "titleSlug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128,
                                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                      "description": "LeetCode problem title slug"
                                    },
                                    "difficulty": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 32
                                    },
                                    "paidOnly": {
                                      "type": "boolean"
                                    },
                                    "acRate": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "status": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "freqBar": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "isFavor": {
                                      "type": "boolean"
                                    },
                                    "solutionNum": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "hasVideoSolution": {
                                      "type": "boolean"
                                    },
                                    "topicTags": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "name",
                                          "id",
                                          "nameTranslated"
                                        ],
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "maxLength": 128
                                          },
                                          "slug": {
                                            "type": "string",
                                            "maxLength": 128
                                          },
                                          "id": {
                                            "type": "string",
                                            "maxLength": 128
                                          },
                                          "nameTranslated": {
                                            "type": "string",
                                            "maxLength": 128
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "maxItems": 100
                                    },
                                    "extra": {
                                      "type": "object",
                                      "required": [
                                        "topCompanyTags"
                                      ],
                                      "properties": {
                                        "topCompanyTags": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "required": [
                                              "imgUrl",
                                              "slug",
                                              "numSubscribed"
                                            ],
                                            "properties": {
                                              "imgUrl": {
                                                "type": "string",
                                                "maxLength": 2048
                                              },
                                              "slug": {
                                                "type": "string",
                                                "maxLength": 128
                                              },
                                              "numSubscribed": {
                                                "type": "integer",
                                                "minimum": 0
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "maxItems": 100
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "lastSubmission": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "required": [
                                        "id"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "maxLength": 128
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "page"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "questionId",
                              "frontendId",
                              "title",
                              "titleSlug",
                              "difficulty",
                              "paidOnly",
                              "topicTags"
                            ],
                            "properties": {
                              "questionId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "frontendId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "translatedTitle": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "difficulty": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "easy"
                                  },
                                  {
                                    "type": "string",
                                    "const": "medium"
                                  },
                                  {
                                    "type": "string",
                                    "const": "hard"
                                  }
                                ]
                              },
                              "paidOnly": {
                                "type": "boolean"
                              },
                              "acRate": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "not_started"
                                  },
                                  {
                                    "type": "string",
                                    "const": "attempted"
                                  },
                                  {
                                    "type": "string",
                                    "const": "solved"
                                  }
                                ]
                              },
                              "topicTags": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "slug"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "slug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "translatedName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "questionId",
                        "frontendId",
                        "title",
                        "titleSlug",
                        "difficulty",
                        "paidOnly",
                        "topicTags",
                        "content",
                        "exampleTestcases",
                        "availableLanguages",
                        "selectedCodeSnippet",
                        "enableRunCode",
                        "hints",
                        "similarQuestions",
                        "codeSnippets"
                      ],
                      "properties": {
                        "questionId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "frontendId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "translatedTitle": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "difficulty": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "easy"
                            },
                            {
                              "type": "string",
                              "const": "medium"
                            },
                            {
                              "type": "string",
                              "const": "hard"
                            }
                          ]
                        },
                        "paidOnly": {
                          "type": "boolean"
                        },
                        "acRate": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "status": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "not_started"
                            },
                            {
                              "type": "string",
                              "const": "attempted"
                            },
                            {
                              "type": "string",
                              "const": "solved"
                            }
                          ]
                        },
                        "topicTags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "slug"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "slug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "translatedName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "translatedContent": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "defaultTestcase": {
                          "type": "string",
                          "maxLength": 200000,
                          "description": "UTF-8 text limited to 200000 bytes at runtime",
                          "x-maxUtf8Bytes": 200000
                        },
                        "exampleTestcases": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 200000,
                            "description": "UTF-8 text limited to 200000 bytes at runtime",
                            "x-maxUtf8Bytes": 200000
                          },
                          "maxItems": 100
                        },
                        "availableLanguages": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "bash"
                              },
                              {
                                "type": "string",
                                "const": "c"
                              },
                              {
                                "type": "string",
                                "const": "cpp"
                              },
                              {
                                "type": "string",
                                "const": "csharp"
                              },
                              {
                                "type": "string",
                                "const": "cangjie"
                              },
                              {
                                "type": "string",
                                "const": "dart"
                              },
                              {
                                "type": "string",
                                "const": "elixir"
                              },
                              {
                                "type": "string",
                                "const": "erlang"
                              },
                              {
                                "type": "string",
                                "const": "go"
                              },
                              {
                                "type": "string",
                                "const": "java"
                              },
                              {
                                "type": "string",
                                "const": "javascript"
                              },
                              {
                                "type": "string",
                                "const": "kotlin"
                              },
                              {
                                "type": "string",
                                "const": "mysql"
                              },
                              {
                                "type": "string",
                                "const": "mssql"
                              },
                              {
                                "type": "string",
                                "const": "oracle"
                              },
                              {
                                "type": "string",
                                "const": "php"
                              },
                              {
                                "type": "string",
                                "const": "python"
                              },
                              {
                                "type": "string",
                                "const": "python3"
                              },
                              {
                                "type": "string",
                                "const": "racket"
                              },
                              {
                                "type": "string",
                                "const": "ruby"
                              },
                              {
                                "type": "string",
                                "const": "rust"
                              },
                              {
                                "type": "string",
                                "const": "scala"
                              },
                              {
                                "type": "string",
                                "const": "swift"
                              },
                              {
                                "type": "string",
                                "const": "typescript"
                              }
                            ],
                            "description": "Canonical language identifier"
                          },
                          "maxItems": 24,
                          "uniqueItems": true
                        },
                        "selectedCodeSnippet": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "language",
                                "languageName",
                                "code"
                              ],
                              "properties": {
                                "language": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "bash"
                                    },
                                    {
                                      "type": "string",
                                      "const": "c"
                                    },
                                    {
                                      "type": "string",
                                      "const": "cpp"
                                    },
                                    {
                                      "type": "string",
                                      "const": "csharp"
                                    },
                                    {
                                      "type": "string",
                                      "const": "cangjie"
                                    },
                                    {
                                      "type": "string",
                                      "const": "dart"
                                    },
                                    {
                                      "type": "string",
                                      "const": "elixir"
                                    },
                                    {
                                      "type": "string",
                                      "const": "erlang"
                                    },
                                    {
                                      "type": "string",
                                      "const": "go"
                                    },
                                    {
                                      "type": "string",
                                      "const": "java"
                                    },
                                    {
                                      "type": "string",
                                      "const": "javascript"
                                    },
                                    {
                                      "type": "string",
                                      "const": "kotlin"
                                    },
                                    {
                                      "type": "string",
                                      "const": "mysql"
                                    },
                                    {
                                      "type": "string",
                                      "const": "mssql"
                                    },
                                    {
                                      "type": "string",
                                      "const": "oracle"
                                    },
                                    {
                                      "type": "string",
                                      "const": "php"
                                    },
                                    {
                                      "type": "string",
                                      "const": "python"
                                    },
                                    {
                                      "type": "string",
                                      "const": "python3"
                                    },
                                    {
                                      "type": "string",
                                      "const": "racket"
                                    },
                                    {
                                      "type": "string",
                                      "const": "ruby"
                                    },
                                    {
                                      "type": "string",
                                      "const": "rust"
                                    },
                                    {
                                      "type": "string",
                                      "const": "scala"
                                    },
                                    {
                                      "type": "string",
                                      "const": "swift"
                                    },
                                    {
                                      "type": "string",
                                      "const": "typescript"
                                    }
                                  ],
                                  "description": "Canonical language identifier"
                                },
                                "languageName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "code": {
                                  "type": "string",
                                  "maxLength": 100000
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "enableRunCode": {
                          "type": "boolean"
                        },
                        "hints": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 200000
                          },
                          "maxItems": 100
                        },
                        "similarQuestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "titleSlug",
                              "difficulty"
                            ],
                            "properties": {
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "difficulty": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "easy"
                                  },
                                  {
                                    "type": "string",
                                    "const": "medium"
                                  },
                                  {
                                    "type": "string",
                                    "const": "hard"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 3
                        },
                        "codeSnippets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "language",
                              "languageName",
                              "code"
                            ],
                            "properties": {
                              "language": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "bash"
                                  },
                                  {
                                    "type": "string",
                                    "const": "c"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cpp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "csharp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cangjie"
                                  },
                                  {
                                    "type": "string",
                                    "const": "dart"
                                  },
                                  {
                                    "type": "string",
                                    "const": "elixir"
                                  },
                                  {
                                    "type": "string",
                                    "const": "erlang"
                                  },
                                  {
                                    "type": "string",
                                    "const": "go"
                                  },
                                  {
                                    "type": "string",
                                    "const": "java"
                                  },
                                  {
                                    "type": "string",
                                    "const": "javascript"
                                  },
                                  {
                                    "type": "string",
                                    "const": "kotlin"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mysql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mssql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "oracle"
                                  },
                                  {
                                    "type": "string",
                                    "const": "php"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python3"
                                  },
                                  {
                                    "type": "string",
                                    "const": "racket"
                                  },
                                  {
                                    "type": "string",
                                    "const": "ruby"
                                  },
                                  {
                                    "type": "string",
                                    "const": "rust"
                                  },
                                  {
                                    "type": "string",
                                    "const": "scala"
                                  },
                                  {
                                    "type": "string",
                                    "const": "swift"
                                  },
                                  {
                                    "type": "string",
                                    "const": "typescript"
                                  }
                                ],
                                "description": "Canonical language identifier"
                              },
                              "languageName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "code": {
                                "type": "string",
                                "maxLength": 100000
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 3
                        },
                        "resourcePayload": {
                          "type": "object",
                          "required": [
                            "questionId",
                            "questionFrontendId",
                            "boundTopicId",
                            "title",
                            "titleSlug",
                            "content",
                            "translatedTitle",
                            "translatedContent",
                            "isPaidOnly",
                            "difficulty",
                            "likes",
                            "dislikes",
                            "isLiked",
                            "similarQuestions",
                            "exampleTestcases",
                            "contributors",
                            "topicTags",
                            "companyTagStats",
                            "codeSnippets",
                            "stats",
                            "hints",
                            "solution",
                            "status",
                            "sampleTestCase",
                            "metaData",
                            "judgerAvailable",
                            "judgeType",
                            "mysqlSchemas",
                            "enableRunCode",
                            "enableTestMode",
                            "libraryUrl",
                            "note"
                          ],
                          "properties": {
                            "questionId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "questionFrontendId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "boundTopicId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "titleSlug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                              "description": "LeetCode problem title slug"
                            },
                            "content": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "translatedTitle": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 512
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "translatedContent": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 200000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isPaidOnly": {
                              "type": "boolean"
                            },
                            "difficulty": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            "acRate": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "likes": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "dislikes": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "isLiked": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "similarQuestions": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "exampleTestcases": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "contributors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "username",
                                  "profileUrl",
                                  "avatarUrl"
                                ],
                                "properties": {
                                  "username": {
                                    "type": "string",
                                    "maxLength": 128
                                  },
                                  "profileUrl": {
                                    "type": "string",
                                    "maxLength": 2048
                                  },
                                  "avatarUrl": {
                                    "type": "string",
                                    "maxLength": 2048
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "topicTags": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "slug"
                                ],
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "slug": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "translatedName": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "companyTagStats": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 200000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "codeSnippets": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "lang",
                                  "langSlug",
                                  "code"
                                ],
                                "properties": {
                                  "lang": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "langSlug": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "code": {
                                    "type": "string",
                                    "maxLength": 100000
                                  }
                                },
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "stats": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "hints": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "maxItems": 100
                            },
                            "solution": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "canSeeDetail"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "canSeeDetail": {
                                      "type": "boolean"
                                    },
                                    "paidOnly": {
                                      "type": "boolean"
                                    },
                                    "hasVideoSolution": {
                                      "type": "boolean"
                                    },
                                    "paidOnlyVideo": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 128
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sampleTestCase": {
                              "type": "string",
                              "maxLength": 200000,
                              "description": "UTF-8 text limited to 200000 bytes at runtime",
                              "x-maxUtf8Bytes": 200000
                            },
                            "metaData": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "judgerAvailable": {
                              "type": "boolean"
                            },
                            "judgeType": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "mysqlSchemas": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 200000
                              },
                              "maxItems": 100
                            },
                            "enableRunCode": {
                              "type": "boolean"
                            },
                            "enableTestMode": {
                              "type": "boolean"
                            },
                            "enableDebugger": {
                              "type": "boolean"
                            },
                            "envInfo": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "libraryUrl": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "adminUrl": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "challengeQuestion": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "date",
                                    "incompleteChallengeCount",
                                    "streakCount",
                                    "type"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    "date": {
                                      "type": "string",
                                      "maxLength": 32
                                    },
                                    "incompleteChallengeCount": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "streakCount": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 128
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "note": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 200000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "titleSlug",
                        "items",
                        "page"
                      ],
                      "properties": {
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "topicId",
                              "canSee"
                            ],
                            "properties": {
                              "topicId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "slug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256,
                                "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                                "description": "LeetCode CN solution article slug"
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "summary": {
                                "type": "string",
                                "maxLength": 20000,
                                "x-sensitive": true,
                                "x-disclosureRisk": "solution",
                                "x-persistence": "never"
                              },
                              "canSee": {
                                "type": "boolean"
                              },
                              "hasVideoArticle": {
                                "type": "boolean"
                              },
                              "coverUrl": {
                                "type": "string",
                                "maxLength": 2048
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "title",
                        "slug",
                        "content",
                        "tags"
                      ],
                      "properties": {
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                          "description": "LeetCode CN solution article slug"
                        },
                        "topicId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "questionSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 200000,
                          "x-sensitive": true,
                          "x-disclosureRisk": "solution",
                          "x-untrusted": true,
                          "x-persistence": "never"
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "maxItems": 100,
                          "uniqueItems": true
                        },
                        "prev": {
                          "type": "object",
                          "properties": {
                            "topicId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "slug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256,
                              "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                              "description": "LeetCode CN solution article slug"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            }
                          },
                          "additionalProperties": false
                        },
                        "next": {
                          "type": "object",
                          "properties": {
                            "topicId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "slug": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256,
                              "pattern": "^[A-Za-z0-9_]+(?:-[A-Za-z0-9_]+)*$",
                              "description": "LeetCode CN solution article slug"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "username"
                      ],
                      "properties": {
                        "username": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9_.-]+$",
                          "description": "Public LeetCode username or CN user slug"
                        },
                        "realName": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "avatar": {
                          "type": "string",
                          "maxLength": 2048
                        },
                        "aboutMe": {
                          "type": "string",
                          "maxLength": 8192
                        },
                        "country": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "location": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "company": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "school": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "githubUrl": {
                          "type": "string",
                          "maxLength": 2048
                        },
                        "ranking": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "siteRanking": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalSubmissions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "difficulty",
                              "count"
                            ],
                            "properties": {
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "submissions": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 4
                        },
                        "acceptedQuestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "difficulty",
                              "count"
                            ],
                            "properties": {
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "submissions": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 4
                        },
                        "failedQuestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "difficulty",
                              "count"
                            ],
                            "properties": {
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "submissions": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 4
                        },
                        "untouchedQuestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "difficulty",
                              "count"
                            ],
                            "properties": {
                              "difficulty": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "submissions": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 4
                        },
                        "socialAccounts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "profileUrl"
                            ],
                            "properties": {
                              "provider": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "profileUrl": {
                                "type": "string",
                                "maxLength": 2048
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "skillTopics": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 200
                        },
                        "topicAreaScores": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "slug",
                              "score"
                            ],
                            "properties": {
                              "slug": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "score": {
                                "type": "number"
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 200
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "username",
                        "history",
                        "page"
                      ],
                      "properties": {
                        "username": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9_.-]+$",
                          "description": "Public LeetCode username or CN user slug"
                        },
                        "ranking": {
                          "type": "object",
                          "properties": {
                            "attendedContestsCount": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "rating": {
                              "type": "number"
                            },
                            "globalRanking": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "localRanking": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "globalTotalParticipants": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "localTotalParticipants": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "topPercentage": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "badge": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "additionalProperties": false
                        },
                        "history": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "attended",
                              "title"
                            ],
                            "properties": {
                              "attended": {
                                "type": "boolean"
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "translatedTitle": {
                                "type": "string",
                                "maxLength": 512
                              },
                              "startTime": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "totalProblems": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "solvedProblems": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "finishTimeSeconds": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "rating": {
                                "type": "number"
                              },
                              "score": {
                                "type": "number"
                              },
                              "ranking": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "trend": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "filters",
                        "items",
                        "page"
                      ],
                      "properties": {
                        "filters": {
                          "type": "object",
                          "required": [
                            "offset",
                            "limit"
                          ],
                          "properties": {
                            "offset": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "limit": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 100
                            },
                            "questionStatus": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "SOLVED"
                                },
                                {
                                  "type": "string",
                                  "const": "ATTEMPTED"
                                }
                              ]
                            },
                            "difficulty": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "EASY"
                                  },
                                  {
                                    "type": "string",
                                    "const": "MEDIUM"
                                  },
                                  {
                                    "type": "string",
                                    "const": "HARD"
                                  }
                                ]
                              },
                              "maxItems": 3,
                              "uniqueItems": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "frontendId",
                              "title",
                              "titleSlug",
                              "difficulty",
                              "topicTags"
                            ],
                            "properties": {
                              "frontendId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "translatedTitle": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "difficulty": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "easy"
                                  },
                                  {
                                    "type": "string",
                                    "const": "medium"
                                  },
                                  {
                                    "type": "string",
                                    "const": "hard"
                                  }
                                ]
                              },
                              "status": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "not_started"
                                  },
                                  {
                                    "type": "string",
                                    "const": "attempted"
                                  },
                                  {
                                    "type": "string",
                                    "const": "solved"
                                  }
                                ]
                              },
                              "topicTags": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "name",
                                    "slug"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "slug": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "translatedName": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "maxItems": 100
                              },
                              "lastSubmittedAt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "numSubmitted": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "lastResult": {
                                "type": "string",
                                "maxLength": 128
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "items",
                        "page"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "title",
                              "language",
                              "status"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "frontendId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "language": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "bash"
                                  },
                                  {
                                    "type": "string",
                                    "const": "c"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cpp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "csharp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cangjie"
                                  },
                                  {
                                    "type": "string",
                                    "const": "dart"
                                  },
                                  {
                                    "type": "string",
                                    "const": "elixir"
                                  },
                                  {
                                    "type": "string",
                                    "const": "erlang"
                                  },
                                  {
                                    "type": "string",
                                    "const": "go"
                                  },
                                  {
                                    "type": "string",
                                    "const": "java"
                                  },
                                  {
                                    "type": "string",
                                    "const": "javascript"
                                  },
                                  {
                                    "type": "string",
                                    "const": "kotlin"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mysql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mssql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "oracle"
                                  },
                                  {
                                    "type": "string",
                                    "const": "php"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python3"
                                  },
                                  {
                                    "type": "string",
                                    "const": "racket"
                                  },
                                  {
                                    "type": "string",
                                    "const": "ruby"
                                  },
                                  {
                                    "type": "string",
                                    "const": "rust"
                                  },
                                  {
                                    "type": "string",
                                    "const": "scala"
                                  },
                                  {
                                    "type": "string",
                                    "const": "swift"
                                  },
                                  {
                                    "type": "string",
                                    "const": "typescript"
                                  }
                                ],
                                "description": "Canonical language identifier"
                              },
                              "status": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "timestamp": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "runtime": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "memory": {
                                "type": "string",
                                "maxLength": 128
                              },
                              "pending": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 50
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "username",
                        "mode",
                        "items",
                        "page"
                      ],
                      "properties": {
                        "username": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Za-z0-9_.-]+$",
                          "description": "Public LeetCode username or CN user slug"
                        },
                        "mode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "recent"
                            },
                            {
                              "type": "string",
                              "const": "accepted"
                            }
                          ]
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "title",
                              "titleSlug"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 20,
                                "pattern": "^[0-9]+$",
                                "description": "Numeric LeetCode submission ID"
                              },
                              "title": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "titleSlug": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                                "description": "LeetCode problem title slug"
                              },
                              "frontendId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "language": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "bash"
                                  },
                                  {
                                    "type": "string",
                                    "const": "c"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cpp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "csharp"
                                  },
                                  {
                                    "type": "string",
                                    "const": "cangjie"
                                  },
                                  {
                                    "type": "string",
                                    "const": "dart"
                                  },
                                  {
                                    "type": "string",
                                    "const": "elixir"
                                  },
                                  {
                                    "type": "string",
                                    "const": "erlang"
                                  },
                                  {
                                    "type": "string",
                                    "const": "go"
                                  },
                                  {
                                    "type": "string",
                                    "const": "java"
                                  },
                                  {
                                    "type": "string",
                                    "const": "javascript"
                                  },
                                  {
                                    "type": "string",
                                    "const": "kotlin"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mysql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "mssql"
                                  },
                                  {
                                    "type": "string",
                                    "const": "oracle"
                                  },
                                  {
                                    "type": "string",
                                    "const": "php"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python"
                                  },
                                  {
                                    "type": "string",
                                    "const": "python3"
                                  },
                                  {
                                    "type": "string",
                                    "const": "racket"
                                  },
                                  {
                                    "type": "string",
                                    "const": "ruby"
                                  },
                                  {
                                    "type": "string",
                                    "const": "rust"
                                  },
                                  {
                                    "type": "string",
                                    "const": "scala"
                                  },
                                  {
                                    "type": "string",
                                    "const": "swift"
                                  },
                                  {
                                    "type": "string",
                                    "const": "typescript"
                                  }
                                ],
                                "description": "Canonical language identifier"
                              },
                              "status": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "timestamp": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 20
                        },
                        "page": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "exact"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "lower_bound"
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "offset",
                                "limit",
                                "hasMore",
                                "totalKind",
                                "total"
                              ],
                              "properties": {
                                "offset": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "limit": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "hasMore": {
                                  "type": "boolean"
                                },
                                "nextCursor": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 1000
                                },
                                "totalKind": {
                                  "type": "string",
                                  "const": "unknown"
                                },
                                "total": {
                                  "type": "null"
                                }
                              },
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "titleSlug",
                        "language"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[0-9]+$",
                          "description": "Numeric LeetCode submission ID"
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "language": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "bash"
                            },
                            {
                              "type": "string",
                              "const": "c"
                            },
                            {
                              "type": "string",
                              "const": "cpp"
                            },
                            {
                              "type": "string",
                              "const": "csharp"
                            },
                            {
                              "type": "string",
                              "const": "cangjie"
                            },
                            {
                              "type": "string",
                              "const": "dart"
                            },
                            {
                              "type": "string",
                              "const": "elixir"
                            },
                            {
                              "type": "string",
                              "const": "erlang"
                            },
                            {
                              "type": "string",
                              "const": "go"
                            },
                            {
                              "type": "string",
                              "const": "java"
                            },
                            {
                              "type": "string",
                              "const": "javascript"
                            },
                            {
                              "type": "string",
                              "const": "kotlin"
                            },
                            {
                              "type": "string",
                              "const": "mysql"
                            },
                            {
                              "type": "string",
                              "const": "mssql"
                            },
                            {
                              "type": "string",
                              "const": "oracle"
                            },
                            {
                              "type": "string",
                              "const": "php"
                            },
                            {
                              "type": "string",
                              "const": "python"
                            },
                            {
                              "type": "string",
                              "const": "python3"
                            },
                            {
                              "type": "string",
                              "const": "racket"
                            },
                            {
                              "type": "string",
                              "const": "ruby"
                            },
                            {
                              "type": "string",
                              "const": "rust"
                            },
                            {
                              "type": "string",
                              "const": "scala"
                            },
                            {
                              "type": "string",
                              "const": "swift"
                            },
                            {
                              "type": "string",
                              "const": "typescript"
                            }
                          ],
                          "description": "Canonical language identifier"
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "statusCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "timestamp": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "runtime": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "memory": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "runtimePercentile": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "memoryPercentile": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "passedTestCases": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalTestCases": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "code": {
                          "type": "string",
                          "maxLength": 100000
                        },
                        "compileError": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "runtimeError": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "lastTestcase": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "codeOutput": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "expectedOutput": {
                          "type": "string",
                          "maxLength": 200000
                        },
                        "stdout": {
                          "type": "string",
                          "maxLength": 200000
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "operationId",
                        "kind",
                        "state",
                        "region",
                        "titleSlug",
                        "language",
                        "codeHash",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "kind": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "run"
                            },
                            {
                              "type": "string",
                              "const": "submit"
                            }
                          ]
                        },
                        "state": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "queued"
                            },
                            {
                              "type": "string",
                              "const": "polling"
                            },
                            {
                              "type": "string",
                              "const": "completed"
                            },
                            {
                              "type": "string",
                              "const": "unknown"
                            },
                            {
                              "type": "string",
                              "const": "failed"
                            },
                            {
                              "type": "string",
                              "const": "cancelled"
                            }
                          ]
                        },
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "titleSlug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "language": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "bash"
                            },
                            {
                              "type": "string",
                              "const": "c"
                            },
                            {
                              "type": "string",
                              "const": "cpp"
                            },
                            {
                              "type": "string",
                              "const": "csharp"
                            },
                            {
                              "type": "string",
                              "const": "cangjie"
                            },
                            {
                              "type": "string",
                              "const": "dart"
                            },
                            {
                              "type": "string",
                              "const": "elixir"
                            },
                            {
                              "type": "string",
                              "const": "erlang"
                            },
                            {
                              "type": "string",
                              "const": "go"
                            },
                            {
                              "type": "string",
                              "const": "java"
                            },
                            {
                              "type": "string",
                              "const": "javascript"
                            },
                            {
                              "type": "string",
                              "const": "kotlin"
                            },
                            {
                              "type": "string",
                              "const": "mysql"
                            },
                            {
                              "type": "string",
                              "const": "mssql"
                            },
                            {
                              "type": "string",
                              "const": "oracle"
                            },
                            {
                              "type": "string",
                              "const": "php"
                            },
                            {
                              "type": "string",
                              "const": "python"
                            },
                            {
                              "type": "string",
                              "const": "python3"
                            },
                            {
                              "type": "string",
                              "const": "racket"
                            },
                            {
                              "type": "string",
                              "const": "ruby"
                            },
                            {
                              "type": "string",
                              "const": "rust"
                            },
                            {
                              "type": "string",
                              "const": "scala"
                            },
                            {
                              "type": "string",
                              "const": "swift"
                            },
                            {
                              "type": "string",
                              "const": "typescript"
                            }
                          ],
                          "description": "Canonical language identifier"
                        },
                        "codeHash": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "createdAt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "updatedAt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "remoteId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "questionId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "start": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {}
                          },
                          "maxProperties": 512,
                          "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                          "x-maxJsonBytes": 900000,
                          "x-maxDepth": 16,
                          "x-persistence": "never",
                          "x-sensitive": true
                        },
                        "checkUrl": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512,
                          "pattern": "^https://leetcode\\.(?:com|cn)/submissions/detail/[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*/check/$"
                        },
                        "check": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {}
                          },
                          "maxProperties": 512,
                          "description": "Complete bounded JSON object returned by the pinned upstream start/check endpoint; available only on the originating call",
                          "x-maxJsonBytes": 900000,
                          "x-maxDepth": 16,
                          "x-persistence": "never",
                          "x-sensitive": true
                        },
                        "supersedesOperationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "repeatsOperationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "result": {
                          "type": "object",
                          "required": [
                            "state"
                          ],
                          "properties": {
                            "state": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "verdict": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "statusMessage": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "runtime": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "memory": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "stdout": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "expectedOutput": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "compileError": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "runtimeError": {
                              "type": "string",
                              "maxLength": 200000
                            },
                            "input": {
                              "type": "string",
                              "maxLength": 200000
                            }
                          },
                          "additionalProperties": false
                        },
                        "errorCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "target",
                        "content",
                        "byteLength",
                        "revision",
                        "revisionMode"
                      ],
                      "properties": {
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                          "description": "LeetCode problem title slug"
                        },
                        "content": {
                          "type": "string",
                          "maxLength": 16384
                        },
                        "byteLength": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 16384
                        },
                        "revision": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^sha256:[a-f0-9]{64}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revisionMode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "native-etag"
                            },
                            {
                              "type": "string",
                              "const": "best-effort-compare-and-set"
                            },
                            {
                              "type": "string",
                              "const": "unsupported"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "global",
                        "cn"
                      ],
                      "properties": {
                        "global": {
                          "type": "object",
                          "required": [
                            "supported",
                            "configured",
                            "currentlyAvailable",
                            "revisionMode",
                            "maxSize"
                          ],
                          "properties": {
                            "supported": {
                              "type": "boolean"
                            },
                            "configured": {
                              "type": "boolean"
                            },
                            "currentlyAvailable": {
                              "type": "boolean"
                            },
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "revisionMode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "native-etag"
                                },
                                {
                                  "type": "string",
                                  "const": "best-effort-compare-and-set"
                                },
                                {
                                  "type": "string",
                                  "const": "unsupported"
                                }
                              ]
                            },
                            "maxSize": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "cn": {
                          "type": "object",
                          "required": [
                            "supported",
                            "configured",
                            "currentlyAvailable",
                            "revisionMode",
                            "maxSize"
                          ],
                          "properties": {
                            "supported": {
                              "type": "boolean"
                            },
                            "configured": {
                              "type": "boolean"
                            },
                            "currentlyAvailable": {
                              "type": "boolean"
                            },
                            "reason": {
                              "type": "string",
                              "maxLength": 128
                            },
                            "revisionMode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "native-etag"
                                },
                                {
                                  "type": "string",
                                  "const": "best-effort-compare-and-set"
                                },
                                {
                                  "type": "string",
                                  "const": "unsupported"
                                }
                              ]
                            },
                            "maxSize": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "filters",
                        "pagination",
                        "notes"
                      ],
                      "properties": {
                        "filters": {
                          "type": "object",
                          "required": [
                            "orderBy"
                          ],
                          "properties": {
                            "keyword": {
                              "type": "string",
                              "maxLength": 2048
                            },
                            "orderBy": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "ASCENDING"
                                },
                                {
                                  "type": "string",
                                  "const": "DESCENDING"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "pagination": {
                          "type": "object",
                          "required": [
                            "limit",
                            "skip",
                            "totalCount"
                          ],
                          "properties": {
                            "limit": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 100,
                              "default": 10
                            },
                            "skip": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000,
                              "default": 0
                            },
                            "totalCount": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "notes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "summary",
                              "content"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                              },
                              "summary": {
                                "type": "string",
                                "maxLength": 2048,
                                "description": "Personal note title/summary"
                              },
                              "content": {
                                "type": "string",
                                "maxLength": 200000,
                                "description": "Sensitive personal note body; markdown is preserved verbatim",
                                "x-sensitive": true,
                                "x-persistence": "never"
                              },
                              "noteQuestion": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "linkTemplate",
                                      "questionId",
                                      "title"
                                    ],
                                    "properties": {
                                      "linkTemplate": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 2048
                                      },
                                      "questionId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 20,
                                        "pattern": "^[0-9]+$",
                                        "description": "Numeric LeetCode CN question ID, not a title slug"
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 512
                                      },
                                      "translatedTitle": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 512
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "questionId",
                        "count",
                        "pagination",
                        "notes"
                      ],
                      "properties": {
                        "questionId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[0-9]+$",
                          "description": "Numeric LeetCode CN question ID, not a title slug"
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pagination": {
                          "type": "object",
                          "required": [
                            "limit",
                            "skip"
                          ],
                          "properties": {
                            "limit": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 100,
                              "default": 10
                            },
                            "skip": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000,
                              "default": 0
                            }
                          },
                          "additionalProperties": false
                        },
                        "notes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "summary",
                              "content"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128,
                                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                              },
                              "summary": {
                                "type": "string",
                                "maxLength": 2048,
                                "description": "Personal note title/summary"
                              },
                              "content": {
                                "type": "string",
                                "maxLength": 200000,
                                "description": "Sensitive personal note body; markdown is preserved verbatim",
                                "x-sensitive": true,
                                "x-persistence": "never"
                              },
                              "noteQuestion": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "required": [
                                      "linkTemplate",
                                      "questionId",
                                      "title"
                                    ],
                                    "properties": {
                                      "linkTemplate": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 2048
                                      },
                                      "questionId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 20,
                                        "pattern": "^[0-9]+$",
                                        "description": "Numeric LeetCode CN question ID, not a title slug"
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 512
                                      },
                                      "translatedTitle": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 512
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "success",
                        "note"
                      ],
                      "properties": {
                        "success": {
                          "type": "boolean"
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "object",
                              "required": [
                                "id",
                                "content",
                                "targetId"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                                },
                                "content": {
                                  "type": "string",
                                  "maxLength": 200000,
                                  "description": "Sensitive personal note body; markdown is preserved verbatim",
                                  "x-sensitive": true,
                                  "x-persistence": "never"
                                },
                                "targetId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "isSignedIn",
                            "isAdmin"
                          ],
                          "properties": {
                            "isSignedIn": {
                              "type": "boolean",
                              "const": false
                            },
                            "isAdmin": {
                              "type": "boolean"
                            },
                            "useTranslation": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "isSignedIn",
                            "username",
                            "isAdmin"
                          ],
                          "properties": {
                            "isSignedIn": {
                              "type": "boolean",
                              "const": true
                            },
                            "username": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Za-z0-9_.-]+$",
                              "description": "Public LeetCode username or CN user slug"
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "avatar": {
                              "type": "string",
                              "maxLength": 2048
                            },
                            "isAdmin": {
                              "type": "boolean"
                            },
                            "useTranslation": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "packageName",
                        "packageVersion",
                        "contractVersion",
                        "protocolVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "capabilityManifestDigest",
                        "providerId",
                        "instanceId",
                        "contextRevision",
                        "snapshotRevision",
                        "observedAt",
                        "providerConflict",
                        "storageWritable",
                        "regions"
                      ],
                      "properties": {
                        "packageName": {
                          "type": "string",
                          "const": "pi-leetcode-tools"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "protocolVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "capabilityManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "providerId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "activeAccountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "snapshotRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "observedAt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "providerConflict": {
                          "type": "boolean"
                        },
                        "storageWritable": {
                          "type": "boolean"
                        },
                        "regions": {
                          "type": "object",
                          "required": [
                            "global",
                            "cn"
                          ],
                          "properties": {
                            "global": {
                              "type": "object",
                              "required": [
                                "configured",
                                "sessionConfigured",
                                "operationConfigured",
                                "queueDepth",
                                "queueLimit",
                                "circuitState"
                              ],
                              "properties": {
                                "configured": {
                                  "type": "boolean"
                                },
                                "sessionConfigured": {
                                  "type": "boolean"
                                },
                                "operationConfigured": {
                                  "type": "boolean"
                                },
                                "queueDepth": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "queueLimit": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "circuitState": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "unknown"
                                    },
                                    {
                                      "type": "string",
                                      "const": "closed"
                                    },
                                    {
                                      "type": "string",
                                      "const": "open"
                                    },
                                    {
                                      "type": "string",
                                      "const": "half_open"
                                    }
                                  ]
                                },
                                "nextProbeAt": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "lastSafeErrorCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "VALIDATION_ERROR"
                                    },
                                    {
                                      "type": "string",
                                      "const": "AUTH_REQUIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "AUTH_EXPIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PERMISSION_DENIED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "INTERACTION_REQUIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "NOT_FOUND"
                                    },
                                    {
                                      "type": "string",
                                      "const": "RATE_LIMITED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "REMOTE_UNAVAILABLE"
                                    },
                                    {
                                      "type": "string",
                                      "const": "EXECUTION_FAILED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "UNSUPPORTED_REGION"
                                    },
                                    {
                                      "type": "string",
                                      "const": "STALE_OPERATION"
                                    },
                                    {
                                      "type": "string",
                                      "const": "STALE_CURSOR"
                                    },
                                    {
                                      "type": "string",
                                      "const": "UNKNOWN_WRITE_OUTCOME"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CANCELLED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CAPABILITY_UNAVAILABLE"
                                    },
                                    {
                                      "type": "string",
                                      "const": "REMOTE_SCHEMA_CHANGED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PROVIDER_CONFLICT"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CONTRACT_MISMATCH"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PROTOCOL_TIMEOUT"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            "cn": {
                              "type": "object",
                              "required": [
                                "configured",
                                "sessionConfigured",
                                "operationConfigured",
                                "queueDepth",
                                "queueLimit",
                                "circuitState"
                              ],
                              "properties": {
                                "configured": {
                                  "type": "boolean"
                                },
                                "sessionConfigured": {
                                  "type": "boolean"
                                },
                                "operationConfigured": {
                                  "type": "boolean"
                                },
                                "queueDepth": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "queueLimit": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "circuitState": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "unknown"
                                    },
                                    {
                                      "type": "string",
                                      "const": "closed"
                                    },
                                    {
                                      "type": "string",
                                      "const": "open"
                                    },
                                    {
                                      "type": "string",
                                      "const": "half_open"
                                    }
                                  ]
                                },
                                "nextProbeAt": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "lastSafeErrorCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "VALIDATION_ERROR"
                                    },
                                    {
                                      "type": "string",
                                      "const": "AUTH_REQUIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "AUTH_EXPIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PERMISSION_DENIED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "INTERACTION_REQUIRED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "NOT_FOUND"
                                    },
                                    {
                                      "type": "string",
                                      "const": "RATE_LIMITED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "REMOTE_UNAVAILABLE"
                                    },
                                    {
                                      "type": "string",
                                      "const": "EXECUTION_FAILED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "UNSUPPORTED_REGION"
                                    },
                                    {
                                      "type": "string",
                                      "const": "STALE_OPERATION"
                                    },
                                    {
                                      "type": "string",
                                      "const": "STALE_CURSOR"
                                    },
                                    {
                                      "type": "string",
                                      "const": "UNKNOWN_WRITE_OUTCOME"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CANCELLED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CAPABILITY_UNAVAILABLE"
                                    },
                                    {
                                      "type": "string",
                                      "const": "REMOTE_SCHEMA_CHANGED"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PROVIDER_CONFLICT"
                                    },
                                    {
                                      "type": "string",
                                      "const": "CONTRACT_MISMATCH"
                                    },
                                    {
                                      "type": "string",
                                      "const": "PROTOCOL_TIMEOUT"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "ok",
                    "error",
                    "meta"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "VALIDATION_ERROR"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "AUTH_EXPIRED"
                            },
                            {
                              "type": "string",
                              "const": "PERMISSION_DENIED"
                            },
                            {
                              "type": "string",
                              "const": "INTERACTION_REQUIRED"
                            },
                            {
                              "type": "string",
                              "const": "NOT_FOUND"
                            },
                            {
                              "type": "string",
                              "const": "RATE_LIMITED"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "EXECUTION_FAILED"
                            },
                            {
                              "type": "string",
                              "const": "UNSUPPORTED_REGION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_OPERATION"
                            },
                            {
                              "type": "string",
                              "const": "STALE_CURSOR"
                            },
                            {
                              "type": "string",
                              "const": "UNKNOWN_WRITE_OUTCOME"
                            },
                            {
                              "type": "string",
                              "const": "CANCELLED"
                            },
                            {
                              "type": "string",
                              "const": "CAPABILITY_UNAVAILABLE"
                            },
                            {
                              "type": "string",
                              "const": "REMOTE_SCHEMA_CHANGED"
                            },
                            {
                              "type": "string",
                              "const": "PROVIDER_CONFLICT"
                            },
                            {
                              "type": "string",
                              "const": "CONTRACT_MISMATCH"
                            },
                            {
                              "type": "string",
                              "const": "PROTOCOL_TIMEOUT"
                            }
                          ]
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2048
                        },
                        "retryable": {
                          "type": "boolean"
                        },
                        "retryAfterMs": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "operationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "details": {
                          "type": "object",
                          "patternProperties": {
                            "^.*$": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "region",
                        "packageVersion",
                        "contractVersion",
                        "schemaDigest",
                        "behaviorManifestDigest",
                        "instanceId",
                        "contextRevision",
                        "requestId"
                      ],
                      "properties": {
                        "region": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "global"
                            },
                            {
                              "type": "string",
                              "const": "cn"
                            }
                          ],
                          "description": "LeetCode site region"
                        },
                        "packageVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "contractVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "schemaDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "behaviorManifestDigest": {
                          "type": "string",
                          "pattern": "^sha256:[a-f0-9]{64}$"
                        },
                        "instanceId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "contextRevision": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accountProfileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "requestId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z0-9._:-]+$"
                        },
                        "durationMs": {
                          "type": "number",
                          "minimum": 0
                        },
                        "truncated": {
                          "type": "boolean"
                        },
                        "omittedFields": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "methods": [
      "tool.execute",
      "notes.capabilities",
      "notes.read",
      "notes.write",
      "notes.search",
      "notes.get",
      "notes.create",
      "notes.update",
      "user.status",
      "diagnostics.getSnapshot"
    ]
  },
  "lifecycle": {
    "readyChannel": "pi-leetcode-tools:ready:v1",
    "deactivatedChannel": "pi-leetcode-tools:deactivated:v1",
    "event": {
      "type": "object",
      "required": [
        "descriptor"
      ],
      "properties": {
        "descriptor": {
          "type": "object",
          "required": [
            "packageName",
            "providerId",
            "instanceId",
            "contextRevision",
            "packageVersion",
            "contractVersion",
            "protocolVersion",
            "schemaDigest",
            "behaviorManifestDigest",
            "capabilityManifestDigest",
            "snapshotRevision",
            "observedAt",
            "supportedRegions",
            "tools",
            "notesPort",
            "regionReadiness",
            "interactiveUI"
          ],
          "properties": {
            "packageName": {
              "type": "string",
              "const": "pi-leetcode-tools"
            },
            "providerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "instanceId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "contextRevision": {
              "type": "integer",
              "minimum": 0
            },
            "activeAccountProfileId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9._:-]+$"
            },
            "packageVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "contractVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "protocolVersion": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "schemaDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "behaviorManifestDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "capabilityManifestDigest": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            },
            "snapshotRevision": {
              "type": "integer",
              "minimum": 0
            },
            "observedAt": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "supportedRegions": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "const": "global"
                  },
                  {
                    "type": "string",
                    "const": "cn"
                  }
                ],
                "description": "LeetCode site region"
              },
              "minItems": 1,
              "maxItems": 2,
              "uniqueItems": true
            },
            "tools": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "version",
                  "supported",
                  "configured",
                  "currentlyAvailable",
                  "requiresAuth",
                  "consequence"
                ],
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "lc_daily"
                      },
                      {
                        "type": "string",
                        "const": "lc_search"
                      },
                      {
                        "type": "string",
                        "const": "lc_problem"
                      },
                      {
                        "type": "string",
                        "const": "lc_solution_search"
                      },
                      {
                        "type": "string",
                        "const": "lc_solution"
                      },
                      {
                        "type": "string",
                        "const": "lc_profile"
                      },
                      {
                        "type": "string",
                        "const": "lc_contest"
                      },
                      {
                        "type": "string",
                        "const": "lc_progress"
                      },
                      {
                        "type": "string",
                        "const": "lc_history"
                      },
                      {
                        "type": "string",
                        "const": "lc_user_submissions"
                      },
                      {
                        "type": "string",
                        "const": "lc_submission"
                      },
                      {
                        "type": "string",
                        "const": "lc_run"
                      },
                      {
                        "type": "string",
                        "const": "lc_submit"
                      },
                      {
                        "type": "string",
                        "const": "lc_operation_status"
                      }
                    ]
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "supported": {
                    "type": "boolean"
                  },
                  "configured": {
                    "type": "boolean"
                  },
                  "currentlyAvailable": {
                    "type": "boolean"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "requiresAuth": {
                    "type": "boolean"
                  },
                  "consequence": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "read"
                      },
                      {
                        "type": "string",
                        "const": "answer_read"
                      },
                      {
                        "type": "string",
                        "const": "sensitive_read"
                      },
                      {
                        "type": "string",
                        "const": "execution"
                      },
                      {
                        "type": "string",
                        "const": "external_write"
                      }
                    ]
                  },
                  "disclosureRisk": {
                    "type": "string",
                    "const": "solution"
                  }
                },
                "additionalProperties": false
              },
              "maxItems": 14
            },
            "notesPort": {
              "type": "object",
              "required": [
                "global",
                "cn"
              ],
              "properties": {
                "global": {
                  "type": "object",
                  "required": [
                    "supported",
                    "configured",
                    "currentlyAvailable",
                    "revisionMode",
                    "maxSize"
                  ],
                  "properties": {
                    "supported": {
                      "type": "boolean"
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "currentlyAvailable": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "revisionMode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "native-etag"
                        },
                        {
                          "type": "string",
                          "const": "best-effort-compare-and-set"
                        },
                        {
                          "type": "string",
                          "const": "unsupported"
                        }
                      ]
                    },
                    "maxSize": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                },
                "cn": {
                  "type": "object",
                  "required": [
                    "supported",
                    "configured",
                    "currentlyAvailable",
                    "revisionMode",
                    "maxSize"
                  ],
                  "properties": {
                    "supported": {
                      "type": "boolean"
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "currentlyAvailable": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "revisionMode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "native-etag"
                        },
                        {
                          "type": "string",
                          "const": "best-effort-compare-and-set"
                        },
                        {
                          "type": "string",
                          "const": "unsupported"
                        }
                      ]
                    },
                    "maxSize": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "regionReadiness": {
              "type": "object",
              "required": [
                "global",
                "cn"
              ],
              "properties": {
                "global": {
                  "type": "object",
                  "required": [
                    "configured",
                    "publicReads",
                    "sessionReads",
                    "execution",
                    "externalWrite",
                    "notes"
                  ],
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "publicReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "sessionReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "execution": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "externalWrite": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "retryAt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "additionalProperties": false
                },
                "cn": {
                  "type": "object",
                  "required": [
                    "configured",
                    "publicReads",
                    "sessionReads",
                    "execution",
                    "externalWrite",
                    "notes"
                  ],
                  "properties": {
                    "configured": {
                      "type": "boolean"
                    },
                    "publicReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "sessionReads": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "execution": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "externalWrite": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "notes": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "unknown"
                        }
                      ]
                    },
                    "retryAt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "interactiveUI": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  }
}
