Skip to main content

Module types

Module types 

Source
Expand description

Wire types for the undocumented Z.AI / BigModel monitor endpoint https://api.z.ai/api/monitor/usage/quota/limit.

Real response shape (captured 2026-05-23):

{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "limits": [
      {"type":"TOKENS_LIMIT","unit":3,"number":5,"percentage":0},
      {"type":"TOKENS_LIMIT","unit":6,"number":1,"percentage":0,
       "nextResetTime":1779792169974},
      {"type":"TIME_LIMIT","unit":5,"number":1,"usage":1000,
       "currentValue":0,"remaining":1000,"percentage":0,
       "nextResetTime":1779964969979,
       "usageDetails":[{"modelCode":"search-prime","usage":0},...]}
    ],
    "level":"pro"
  },
  "success": true
}

The unit/number codes don’t have a documented mapping, so we classify limits by position + type: the first TOKENS_LIMIT entry is treated as the session bucket, the second as weekly, and the TIME_LIMIT entry as the monthly MCP tool ceiling. When the shape drifts the smoke test will catch it and we can update this mapping.

Structs§

Envelope
LimitEntry
MonitorData