mirror of
https://github.com/hanzo-kt/sdk.git
synced 2026-10-30 20:43:57 +00:00
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and Android. Generated with openapi-generator kotlin (library=jvm-okhttp4, useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai. Co-authored-by: Hanzo Dev <[email protected]>
2.0 KiB
2.0 KiB
PlanApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| worldWorldLimits | GET /v1/world/limits | Resolved World plan limits (contract echo) |
worldWorldLimits
WorldWorldLimits200Response worldWorldLimits(plan)
Resolved World plan limits (contract echo)
Returns the Hanzo World enforcement limits for a plan, resolved from the @hanzo/plans catalog (the single source of truth) via the world.* entitlement vocabulary. Agents and the dashboard read this to self-config against the live catalog instead of hardcoding tier numbers. Defaults to world-free; degrades to the fail-closed Free floor on a catalog outage.
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = PlanApi()
val plan : kotlin.String = plan_example // kotlin.String | Plan id (world-free | world-pro | world-team | world-enterprise). Defaults to world-free.
try {
val result : WorldWorldLimits200Response = apiInstance.worldWorldLimits(plan)
println(result)
} catch (e: ClientException) {
println("4xx response calling PlanApi#worldWorldLimits")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PlanApi#worldWorldLimits")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| plan | kotlin.String | Plan id (world-free | world-pro |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json