{
  "components": {
    "schemas": {
      "AdminPasswordChangeRequest": {
        "properties": {
          "current_password": {
            "maxLength": 1024,
            "minLength": 1,
            "title": "Current Password",
            "type": "string"
          },
          "new_password": {
            "maxLength": 1024,
            "minLength": 14,
            "title": "New Password",
            "type": "string"
          }
        },
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "AdminPasswordChangeRequest",
        "type": "object"
      },
      "BiErrorResponse": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/BiErrorDetail"
          }
        },
        "required": [
          "error"
        ],
        "title": "BiErrorResponse",
        "type": "object"
      },
      "BiErrorDetail": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Details"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Request Id"
          }
        },
        "required": [
          "code",
          "message",
          "request_id",
          "details"
        ],
        "title": "BiErrorDetail",
        "type": "object"
      },
      "AdminLoginRequest": {
        "properties": {
          "password": {
            "maxLength": 1024,
            "minLength": 1,
            "title": "Password",
            "type": "string"
          },
          "username": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Username",
            "type": "string"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "title": "AdminLoginRequest",
        "type": "object"
      },
      "BiLoginResponse": {
        "properties": {
          "access_token": {
            "title": "Access Token",
            "type": "string"
          },
          "expires_in": {
            "title": "Expires In",
            "type": "integer"
          },
          "must_change_password": {
            "title": "Must Change Password",
            "type": "boolean"
          },
          "token_type": {
            "default": "Bearer",
            "title": "Token Type",
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "expires_in",
          "must_change_password"
        ],
        "title": "BiLoginResponse",
        "type": "object"
      },
      "BiSessionResponse": {
        "properties": {
          "must_change_password": {
            "title": "Must Change Password",
            "type": "boolean"
          },
          "role": {
            "const": "bi_reader",
            "default": "bi_reader",
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "must_change_password"
        ],
        "title": "BiSessionResponse",
        "type": "object"
      },
      "JobStatus": {
        "enum": [
          "accepted",
          "queued",
          "running",
          "waiting_input",
          "waiting_external",
          "cancel_requested",
          "succeeded",
          "failed",
          "cancelled",
          "expired"
        ],
        "title": "JobStatus",
        "type": "string"
      },
      "BiPage_BiCall_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BiCall"
            },
            "title": "Items",
            "type": "array"
          },
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "page_size": {
            "title": "Page Size",
            "type": "integer"
          },
          "snapshot_at": {
            "description": "New records after this watermark are excluded",
            "format": "date-time",
            "title": "Snapshot At",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "snapshot_at"
        ],
        "title": "BiPage[BiCall]",
        "type": "object"
      },
      "BiCall": {
        "properties": {
          "call_id": {
            "title": "Call Id",
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "feature_code": {
            "title": "Feature Code",
            "type": "string"
          },
          "feature_name": {
            "title": "Feature Name",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "call_id",
          "feature_code",
          "feature_name",
          "status",
          "created_at",
          "started_at",
          "completed_at"
        ],
        "title": "BiCall",
        "type": "object"
      },
      "BiPage_BiPaymentEvent_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BiPaymentEvent"
            },
            "title": "Items",
            "type": "array"
          },
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "page_size": {
            "title": "Page Size",
            "type": "integer"
          },
          "snapshot_at": {
            "description": "New records after this watermark are excluded",
            "format": "date-time",
            "title": "Snapshot At",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "snapshot_at"
        ],
        "title": "BiPage[BiPaymentEvent]",
        "type": "object"
      },
      "BiPaymentEvent": {
        "properties": {
          "amount_milli": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Milli"
          },
          "channel": {
            "title": "Channel",
            "type": "string"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "event_type": {
            "title": "Event Type",
            "type": "string"
          },
          "occurred_at": {
            "format": "date-time",
            "title": "Occurred At",
            "type": "string"
          },
          "order_id": {
            "title": "Order Id",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "order_id",
          "channel",
          "event_type",
          "amount_milli",
          "currency",
          "occurred_at"
        ],
        "title": "BiPaymentEvent",
        "type": "object"
      },
      "BiPage_BiOrder_": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BiOrder"
            },
            "title": "Items",
            "type": "array"
          },
          "page": {
            "title": "Page",
            "type": "integer"
          },
          "page_size": {
            "title": "Page Size",
            "type": "integer"
          },
          "snapshot_at": {
            "description": "New records after this watermark are excluded",
            "format": "date-time",
            "title": "Snapshot At",
            "type": "string"
          },
          "total": {
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "total",
          "page",
          "page_size",
          "snapshot_at"
        ],
        "title": "BiPage[BiOrder]",
        "type": "object"
      },
      "BiOrder": {
        "properties": {
          "amount_milli": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Milli"
          },
          "application_code": {
            "title": "Application Code",
            "type": "string"
          },
          "channel": {
            "title": "Channel",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "order_id": {
            "title": "Order Id",
            "type": "string"
          },
          "paid_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Paid At"
          },
          "product_code": {
            "title": "Product Code",
            "type": "string"
          },
          "refunded_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refunded At"
          },
          "refunded_milli": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refunded Milli"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "order_id",
          "application_code",
          "channel",
          "product_code",
          "amount_milli",
          "refunded_milli",
          "currency",
          "status",
          "created_at",
          "paid_at",
          "refunded_at"
        ],
        "title": "BiOrder",
        "type": "object"
      },
      "BiPaymentReport": {
        "properties": {
          "by_channel": {
            "items": {
              "$ref": "#/components/schemas/PaymentBreakdown"
            },
            "title": "By Channel",
            "type": "array"
          },
          "currencies": {
            "items": {
              "type": "string"
            },
            "title": "Currencies",
            "type": "array"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "totals": {
            "$ref": "#/components/schemas/PaymentMetrics"
          },
          "trend": {
            "items": {
              "$ref": "#/components/schemas/PaymentBreakdown"
            },
            "title": "Trend",
            "type": "array"
          },
          "unconfirmed_amount_events": {
            "title": "Unconfirmed Amount Events",
            "type": "integer"
          },
          "window": {
            "$ref": "#/components/schemas/UsageWindowResponse"
          }
        },
        "required": [
          "window",
          "generated_at",
          "currency",
          "currencies",
          "totals",
          "trend",
          "by_channel",
          "unconfirmed_amount_events"
        ],
        "title": "BiPaymentReport",
        "type": "object"
      },
      "PaymentBreakdown": {
        "properties": {
          "key": {
            "title": "Key",
            "type": "string"
          },
          "net_milli": {
            "default": "0",
            "title": "Net Milli",
            "type": "string"
          },
          "paid_count": {
            "default": 0,
            "title": "Paid Count",
            "type": "integer"
          },
          "paid_milli": {
            "default": "0",
            "title": "Paid Milli",
            "type": "string"
          },
          "purchased_diamonds": {
            "default": 0,
            "title": "Purchased Diamonds",
            "type": "integer"
          },
          "refund_requested_count": {
            "default": 0,
            "title": "Refund Requested Count",
            "type": "integer"
          },
          "refund_requested_milli": {
            "default": "0",
            "title": "Refund Requested Milli",
            "type": "string"
          },
          "refund_reversed_count": {
            "default": 0,
            "title": "Refund Reversed Count",
            "type": "integer"
          },
          "refund_reversed_milli": {
            "default": "0",
            "title": "Refund Reversed Milli",
            "type": "string"
          },
          "refunded_count": {
            "default": 0,
            "title": "Refunded Count",
            "type": "integer"
          },
          "refunded_milli": {
            "default": "0",
            "title": "Refunded Milli",
            "type": "string"
          }
        },
        "required": [
          "key"
        ],
        "title": "PaymentBreakdown",
        "type": "object"
      },
      "PaymentMetrics": {
        "properties": {
          "net_milli": {
            "default": "0",
            "title": "Net Milli",
            "type": "string"
          },
          "paid_count": {
            "default": 0,
            "title": "Paid Count",
            "type": "integer"
          },
          "paid_milli": {
            "default": "0",
            "title": "Paid Milli",
            "type": "string"
          },
          "purchased_diamonds": {
            "default": 0,
            "title": "Purchased Diamonds",
            "type": "integer"
          },
          "refund_requested_count": {
            "default": 0,
            "title": "Refund Requested Count",
            "type": "integer"
          },
          "refund_requested_milli": {
            "default": "0",
            "title": "Refund Requested Milli",
            "type": "string"
          },
          "refund_reversed_count": {
            "default": 0,
            "title": "Refund Reversed Count",
            "type": "integer"
          },
          "refund_reversed_milli": {
            "default": "0",
            "title": "Refund Reversed Milli",
            "type": "string"
          },
          "refunded_count": {
            "default": 0,
            "title": "Refunded Count",
            "type": "integer"
          },
          "refunded_milli": {
            "default": "0",
            "title": "Refunded Milli",
            "type": "string"
          }
        },
        "title": "PaymentMetrics",
        "type": "object"
      },
      "UsageWindowResponse": {
        "properties": {
          "end_at": {
            "format": "date-time",
            "title": "End At",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "start_at": {
            "format": "date-time",
            "title": "Start At",
            "type": "string"
          },
          "timezone": {
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "label",
          "start_at",
          "end_at",
          "timezone"
        ],
        "title": "UsageWindowResponse",
        "type": "object"
      },
      "BiUsageReport": {
        "properties": {
          "accounting_note": {
            "title": "Accounting Note",
            "type": "string"
          },
          "by_feature": {
            "items": {
              "$ref": "#/components/schemas/BiFeatureUsage"
            },
            "title": "By Feature",
            "type": "array"
          },
          "by_model": {
            "items": {
              "$ref": "#/components/schemas/BiModelCost"
            },
            "title": "By Model",
            "type": "array"
          },
          "cost_currency": {
            "default": "CNY",
            "title": "Cost Currency",
            "type": "string"
          },
          "daily": {
            "items": {
              "$ref": "#/components/schemas/BiDailyUsage"
            },
            "title": "Daily",
            "type": "array"
          },
          "generated_at": {
            "format": "date-time",
            "title": "Generated At",
            "type": "string"
          },
          "totals": {
            "$ref": "#/components/schemas/BiFeatureUsage"
          },
          "window": {
            "$ref": "#/components/schemas/UsageWindowResponse"
          }
        },
        "required": [
          "window",
          "generated_at",
          "totals",
          "by_feature",
          "daily",
          "by_model",
          "accounting_note"
        ],
        "title": "BiUsageReport",
        "type": "object"
      },
      "BiFeatureUsage": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "integer"
          },
          "calls": {
            "title": "Calls",
            "type": "integer"
          },
          "cancelled": {
            "title": "Cancelled",
            "type": "integer"
          },
          "estimated_cost_micros": {
            "title": "Estimated Cost Micros",
            "type": "string"
          },
          "failed": {
            "title": "Failed",
            "type": "integer"
          },
          "failure_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Rate"
          },
          "feature_code": {
            "title": "Feature Code",
            "type": "string"
          },
          "feature_name": {
            "title": "Feature Name",
            "type": "string"
          },
          "metered_estimated_cost_micros": {
            "title": "Metered Estimated Cost Micros",
            "type": "string"
          },
          "succeeded": {
            "title": "Succeeded",
            "type": "integer"
          },
          "success_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "succeeded / (succeeded + failed); 0..1",
            "title": "Success Rate"
          }
        },
        "required": [
          "feature_code",
          "feature_name",
          "calls",
          "succeeded",
          "failed",
          "cancelled",
          "active",
          "success_rate",
          "failure_rate",
          "estimated_cost_micros",
          "metered_estimated_cost_micros"
        ],
        "title": "BiFeatureUsage",
        "type": "object"
      },
      "BiModelCost": {
        "properties": {
          "calls": {
            "title": "Calls",
            "type": "integer"
          },
          "cost_currency": {
            "title": "Cost Currency",
            "type": "string"
          },
          "failed": {
            "title": "Failed",
            "type": "integer"
          },
          "metered_estimated_cost_micros": {
            "title": "Metered Estimated Cost Micros",
            "type": "string"
          },
          "model_code": {
            "title": "Model Code",
            "type": "string"
          },
          "provider_code": {
            "title": "Provider Code",
            "type": "string"
          },
          "succeeded": {
            "title": "Succeeded",
            "type": "integer"
          },
          "unpriced_calls": {
            "title": "Unpriced Calls",
            "type": "integer"
          }
        },
        "required": [
          "provider_code",
          "model_code",
          "cost_currency",
          "calls",
          "succeeded",
          "failed",
          "unpriced_calls",
          "metered_estimated_cost_micros"
        ],
        "title": "BiModelCost",
        "type": "object"
      },
      "BiDailyUsage": {
        "properties": {
          "active": {
            "title": "Active",
            "type": "integer"
          },
          "calls": {
            "title": "Calls",
            "type": "integer"
          },
          "cancelled": {
            "title": "Cancelled",
            "type": "integer"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "estimated_cost_micros": {
            "title": "Estimated Cost Micros",
            "type": "string"
          },
          "failed": {
            "title": "Failed",
            "type": "integer"
          },
          "metered_estimated_cost_micros": {
            "title": "Metered Estimated Cost Micros",
            "type": "string"
          },
          "succeeded": {
            "title": "Succeeded",
            "type": "integer"
          }
        },
        "required": [
          "date",
          "calls",
          "succeeded",
          "failed",
          "cancelled",
          "active",
          "estimated_cost_micros",
          "metered_estimated_cost_micros"
        ],
        "title": "BiDailyUsage",
        "type": "object"
      }
    }
  },
  "info": {
    "description": "Multi-application AI job platform. Stable error codes and schemas are the API contract; translated integration guides live under docs/.",
    "title": "HPRT BI 只读取数接口",
    "version": "9.2.103"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/bi/auth/change-password": {
      "post": {
        "operationId": "change_password_api_v1_bi_auth_change_password_post",
        "parameters": [
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminPasswordChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Change Password",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/auth/login": {
      "post": {
        "operationId": "login_api_v1_bi_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiLoginResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Login",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/auth/session": {
      "get": {
        "operationId": "bi_session_api_v1_bi_auth_session_get",
        "parameters": [
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiSessionResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Bi Session",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/calls": {
      "get": {
        "operationId": "calls_api_v1_bi_calls_get",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "maximum": 100000,
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Page Size",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "snapshot_at",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Snapshot At"
            }
          },
          {
            "in": "query",
            "name": "feature_code",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 96,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Feature Code"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/JobStatus"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "today",
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "year",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 9998,
                  "minimum": 2000,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Year"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Date"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Date"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiPage_BiCall_"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Calls",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/payment-events": {
      "get": {
        "operationId": "payment_events_api_v1_bi_payment_events_get",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "CNY",
              "pattern": "^[A-Z]{3}$",
              "title": "Currency",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "wechat",
                    "apple"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "maximum": 100000,
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Page Size",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "snapshot_at",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Snapshot At"
            }
          },
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "today",
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "year",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 9998,
                  "minimum": 2000,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Year"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Date"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Date"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiPage_BiPaymentEvent_"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Payment Events",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/payment-orders": {
      "get": {
        "operationId": "payment_orders_api_v1_bi_payment_orders_get",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "CNY",
              "pattern": "^[A-Z]{3}$",
              "title": "Currency",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "wechat",
                    "apple"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "maximum": 100000,
              "minimum": 1,
              "title": "Page",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "page_size",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Page Size",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "snapshot_at",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Snapshot At"
            }
          },
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "today",
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "year",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 9998,
                  "minimum": 2000,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Year"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Date"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Date"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiPage_BiOrder_"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Payment Orders",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/payments": {
      "get": {
        "operationId": "payments_api_v1_bi_payments_get",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "CNY",
              "pattern": "^[A-Z]{3}$",
              "title": "Currency",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "wechat",
                    "apple"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "today",
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "year",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 9998,
                  "minimum": 2000,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Year"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Date"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Date"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiPaymentReport"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Payments",
        "tags": [
          "bi"
        ]
      }
    },
    "/api/v1/bi/usage": {
      "get": {
        "operationId": "usage_api_v1_bi_usage_get",
        "parameters": [
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "today",
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "year",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 9998,
                  "minimum": 2000,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Year"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Date"
            }
          },
          {
            "in": "query",
            "name": "end_date",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Date"
            }
          },
          {
            "in": "header",
            "name": "X-API-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Api-Key"
            }
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Authorization"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiUsageReport"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Unprocessable Entity"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BiErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "summary": "Usage",
        "tags": [
          "bi"
        ]
      }
    }
  }
}
