ApiSchemas
SpendCapExceedsParentEncoded
One shape from the contract, as it appears on the wire.
Used by apiKeys.create, apiKeys.update
JSON Schema
{
"type": "object",
"properties": {
"_tag": {
"type": "string",
"enum": [
"SpendCapExceedsParent"
]
},
"scope": {
"$ref": "#/components/schemas/SpendScope"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"parent": {
"type": "object",
"properties": {
"agentMinutesPerMonth": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"tokensPerMonth": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
},
"dailyUsd": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"Infinity",
"-Infinity",
"NaN"
]
}
]
}
},
"additionalProperties": false
}
},
"required": [
"_tag",
"scope",
"fields",
"parent"
],
"additionalProperties": false
}