{"owner":"ViRb3","repo":"wgcf","hasSpec":true,"specFile":"openapi-spec.yml","branch":"HEAD","format":"yaml","version":"3.x (YAML)","title":"wgcf","description":"","endpoints":[],"spec":"components:\n  schemas:\n    Account:\n      type: \"object\"\n      properties:\n        account_type:\n          type: \"string\"\n        created:\n          type: \"string\"\n        id:\n          type: \"string\"\n        license:\n          type: \"string\"\n        premium_data:\n          type: \"number\"\n        quota:\n          type: \"number\"\n        referral_count:\n          type: \"number\"\n        referral_renewal_countdown:\n          type: \"number\"\n        role:\n          type: \"string\"\n        updated:\n          type: \"string\"\n        warp_plus:\n          type: \"boolean\"\n        usage:\n          type: \"number\"\n      required:\n        - \"account_type\"\n        - \"created\"\n        - \"id\"\n        - \"license\"\n        - \"premium_data\"\n        - \"quota\"\n        - \"referral_count\"\n        - \"referral_renewal_countdown\"\n        - \"role\"\n        - \"updated\"\n        - \"warp_plus\"\n\n    BoundDevice:\n      type: \"object\"\n      properties:\n        activated:\n          type: \"string\"\n        active:\n          type: \"boolean\"\n        created:\n          type: \"string\"\n        id:\n          type: \"string\"\n        model:\n          type: \"string\"\n        name:\n          type: \"string\"\n        role:\n          type: \"string\"\n        type:\n          type: \"string\"\n      required:\n        - \"activated\"\n        - \"active\"\n        - \"created\"\n        - \"id\"\n        - \"role\"\n        - \"type\"\n\n    NetworkAddress:\n      type: \"object\"\n      properties:\n        v4:\n          type: \"string\"\n        v6:\n          type: \"string\"\n      required:\n        - \"v4\"\n        - \"v6\"\n\n    Endpoint:\n      type: \"object\"\n      properties:\n        host:\n          type: \"string\"\n        v4:\n          type: \"string\"\n        v6:\n          type: \"string\"\n      required:\n        - \"host\"\n        - \"v4\"\n        - \"v6\"\n\n    Peer:\n      type: \"object\"\n      properties:\n        endpoint:\n          $ref: \"#/components/schemas/Endpoint\"\n        public_key:\n          type: \"string\"\n      required:\n        - \"endpoint\"\n        - \"public_key\"\n\n    Config:\n      type: \"object\"\n      properties:\n        client_id:\n          type: \"string\"\n        interface:\n          type: \"object\"\n          properties:\n            addresses:\n              $ref: \"#/components/schemas/NetworkAddress\"\n          required:\n            - \"addresses\"\n        peers:\n          type: \"array\"\n          items:\n            $ref: \"#/components/schemas/Peer\"\n        services:\n          type: \"object\"\n          properties:\n            http_proxy:\n              type: \"string\"\n          required:\n            - \"http_proxy\"\n      required:\n        - \"client_id\"\n        - \"interface\"\n        - \"peers\"\n        - \"services\"\n\n    SourceDevice:\n      type: \"object\"\n      properties:\n        created:\n          type: \"string\"\n        enabled:\n          type: \"boolean\"\n        fcm_token:\n          type: \"string\"\n        id:\n          type: \"string\"\n        install_id:\n          type: \"string\"\n        key:\n          type: \"string\"\n        locale:\n          type: \"string\"\n        model:\n          type: \"string\"\n        name:\n          type: \"string\"\n        place:\n          type: \"number\"\n        tos:\n          type: \"string\"\n        type:\n          type: \"string\"\n        updated:\n          type: \"string\"\n        waitlist_enabled:\n          type: \"boolean\"\n        warp_enabled:\n          type: \"boolean\"\n      required:\n        - \"created\"\n        - \"enabled\"\n        - \"fcm_token\"\n        - \"id\"\n        - \"install_id\"\n        - \"key\"\n        - \"locale\"\n        - \"model\"\n        - \"name\"\n        - \"place\"\n        - \"tos\"\n        - \"type\"\n        - \"updated\"\n        - \"waitlist_enabled\"\n        - \"warp_enabled\"\n\n    IPv4Network:\n      type: \"object\"\n      properties:\n        address:\n          type: \"string\"\n        netmask:\n          type: \"string\"\n      required:\n        - \"address\"\n        - \"netmask\"\n\n    IPv6Network:\n      type: \"object\"\n      properties:\n        address:\n          type: \"string\"\n        prefix:\n          type: \"number\"\n      required:\n        - \"address\"\n        - \"prefix\"\n\n    GetAccount_200_Response:\n      $ref: \"#/components/schemas/Account\"\n\n    GetBoundDevices_200_Response:\n      $ref: \"#/components/schemas/BoundDevice\"\n\n    GetClientConfig_200_Response:\n      type: \"object\"\n      properties:\n        captive_portal:\n          type: \"array\"\n          items:\n            type: \"object\"\n            properties:\n              name:\n                type: \"string\"\n              networks:\n                type: \"array\"\n                items:\n                  type: \"object\"\n                  properties:\n                    address:\n                      type: \"string\"\n                  required:\n                    - \"address\"\n            required:\n              - \"name\"\n              - \"networks\"\n        denylist:\n          type: \"array\"\n          items:\n            type: \"object\"\n            properties:\n              android-packages:\n                type: \"array\"\n                items:\n                  type: \"string\"\n              name:\n                type: \"string\"\n              networks:\n                type: \"object\"\n                properties:\n                  v4:\n                    type: \"array\"\n                    items:\n                      $ref: \"#/components/schemas/IPv4Network\"\n                  v6:\n                    type: \"array\"\n                    items:\n                      $ref: \"#/components/schemas/IPv6Network\"\n                required:\n                  - \"v4\"\n                  - \"v6\"\n              visible:\n                type: \"boolean\"\n            required:\n              - \"name\"\n              - \"visible\"\n        premium_data_bytes:\n          type: \"number\"\n        referral_reward_bytes:\n          type: \"number\"\n      required:\n        - \"captive_portal\"\n        - \"denylist\"\n        - \"premium_data_bytes\"\n        - \"referral_reward_bytes\"\n\n    GetSourceDevice_200_Response:\n      allOf:\n        - $ref: \"#/components/schemas/SourceDevice\"\n        - type: \"object\"\n          properties:\n            account:\n              $ref: \"#/components/schemas/Account\"\n            config:\n              $ref: \"#/components/schemas/Config\"\n          required:\n            - \"account\"\n            - \"config\"\n\n    Register_200_Response:\n      allOf:\n        - $ref: \"#/components/schemas/SourceDevice\"\n        - type: \"object\"\n          properties:\n            account:\n              $ref: \"#/components/schemas/Account\"\n            config:\n              $ref: \"#/components/schemas/Config\"\n            token:\n              type: \"string\"\n          required:\n            - \"account\"\n            - \"config\"\n            - \"token\"\n\n    Register_Request:\n      type: \"object\"\n      properties:\n        fcm_token:\n          type: \"string\"\n        install_id:\n          type: \"string\"\n        key:\n          type: \"string\"\n        locale:\n          type: \"string\"\n        model:\n          type: \"string\"\n        tos:\n          type: \"string\"\n        type:\n          type: \"string\"\n      required:\n        - \"fcm_token\"\n        - \"install_id\"\n        - \"key\"\n        - \"locale\"\n        - \"model\"\n        - \"tos\"\n        - \"type\"\n\n    ResetAccountLicense_200_Response:\n      type: \"object\"\n      properties:\n        license:\n          type: \"string\"\n      required:\n        - \"license\"\n\n    UpdateAccount_200_Response:\n      type: \"object\"\n      properties:\n        created:\n          type: \"string\"\n        id:\n          type: \"string\"\n        premium_data:\n          type: \"number\"\n        quota:\n          type: \"number\"\n        referral_count:\n          type: \"number\"\n        referral_renewal_countdown:\n          type: \"number\"\n        role:\n          type: \"string\"\n        updated:\n          type: \"string\"\n        warp_plus:\n          type: \"boolean\"\n      required:\n        - \"created\"\n        - \"id\"\n        - \"premium_data\"\n        - \"quota\"\n        - \"referral_count\"\n        - \"referral_renewal_countdown\"\n        - \"role\"\n        - \"updated\"\n        - \"warp_plus\"\n\n    UpdateAccount_Request:\n      type: \"object\"\n      properties:\n        license:\n          type: \"string\"\n      required:\n        - \"license\"\n\n    UpdateBoundDevice_200_Response:\n      $ref: \"#/components/schemas/BoundDevice\"\n\n    UpdateBoundDevice_Request:\n      type: \"object\"\n      properties:\n        active:\n          type: \"boolean\"\n        name:\n          type: \"string\"\n\n    UpdateSourceDevice_200_Response:\n      allOf:\n        - $ref: \"#/components/schemas/SourceDevice\"\n        - type: \"object\"\n          properties:\n            account:\n              $ref: \"#/components/schemas/Account\"\n            config:\n              $ref: \"#/components/schemas/Config\"\n          required:\n            - \"account\"\n            - \"config\"\n\n    UpdateSourceDevice_Request:\n      type: \"object\"\n      properties:\n        key:\n          type: \"string\"\n      required:\n        - \"key\"\n\ninfo:\n  title: \"Cloudflare WARP API\"\n  version: \"536\"\nopenapi: \"3.0.1\"\npaths:\n  /{apiVersion}/client_config:\n    get:\n      operationId: \"GetClientConfig\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/GetClientConfig_200_Response\"\n          description: \"\"\n      summary: \"GetClientConfig\"\n    parameters:\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n  /{apiVersion}/reg:\n    parameters:\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n    post:\n      operationId: \"Register\"\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: \"#/components/schemas/Register_Request\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/Register_200_Response\"\n          description: \"\"\n      summary: \"Register\"\n  /{apiVersion}/reg/{sourceDeviceId}:\n    get:\n      operationId: \"GetSourceDevice\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/GetSourceDevice_200_Response\"\n          description: \"\"\n      summary: \"GetSourceDevice\"\n    parameters:\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"sourceDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n    patch:\n      operationId: \"UpdateSourceDevice\"\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: \"#/components/schemas/UpdateSourceDevice_Request\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/UpdateSourceDevice_200_Response\"\n          description: \"\"\n      summary: \"UpdateSourceDevice\"\n  /{apiVersion}/reg/{sourceDeviceId}/account:\n    get:\n      operationId: \"GetAccount\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/GetAccount_200_Response\"\n          description: \"\"\n      summary: \"GetAccount\"\n    parameters:\n      - in: \"path\"\n        name: \"sourceDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n    put:\n      operationId: \"UpdateAccount\"\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: \"#/components/schemas/UpdateAccount_Request\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/UpdateAccount_200_Response\"\n          description: \"\"\n      summary: \"UpdateAccount\"\n  /{apiVersion}/reg/{sourceDeviceId}/account/devices:\n    get:\n      operationId: \"GetBoundDevices\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                type: \"array\"\n                items:\n                  $ref: \"#/components/schemas/GetBoundDevices_200_Response\"\n          description: \"\"\n      summary: \"GetBoundDevices\"\n    parameters:\n      - in: \"path\"\n        name: \"sourceDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n  /{apiVersion}/reg/{sourceDeviceId}/account/license:\n    parameters:\n      - in: \"path\"\n        name: \"sourceDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n    post:\n      operationId: \"ResetAccountLicense\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                $ref: \"#/components/schemas/ResetAccountLicense_200_Response\"\n          description: \"\"\n      summary: \"ResetAccountLicense\"\n  /{apiVersion}/reg/{sourceDeviceId}/account/reg/{boundDeviceId}:\n    parameters:\n      - in: \"path\"\n        name: \"sourceDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"apiVersion\"\n        required: true\n        schema:\n          type: \"string\"\n      - in: \"path\"\n        name: \"boundDeviceId\"\n        required: true\n        schema:\n          type: \"string\"\n    patch:\n      operationId: \"UpdateBoundDevice\"\n      requestBody:\n        content:\n          application/json:\n            schema:\n              $ref: \"#/components/schemas/UpdateBoundDevice_Request\"\n      responses:\n        200:\n          content:\n            application/json:\n              schema:\n                type: \"array\"\n                items:\n                  $ref: \"#/components/schemas/UpdateBoundDevice_200_Response\"\n          description: \"\"\n      summary: \"UpdateBoundDevice\"\n    delete:\n      operationId: \"DeleteBoundDevice\"\n      responses:\n        204:\n          description: \"\"\n      summary: \"DeleteBoundDevice\"\n"}