B3

B3OS Workflow API

B3OS Workflow API from B3 — 262 path(s) described in OpenAPI.

OpenAPI Specification

b3-b3os-workflow-openapi.json Raw ↑
{
  "components": {
    "schemas": {
      "data": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Template"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "details": {
            "items": {},
            "type": "array",
            "uniqueItems": false
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/data"
          }
        ],
        "properties": {
          "code": {
            "type": "integer"
          },
          "data": {},
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_cu.UpdateThresholdParams": {
        "properties": {
          "minThreshold": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.FarcasterWebhookPayload": {
        "properties": {
          "data": {
            "additionalProperties": {},
            "description": "Event-specific data",
            "type": "object"
          },
          "type": {
            "description": "e.g., \"cast.created\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult": {
        "properties": {
          "action": {
            "description": "\"triggered\", \"resumed\", \"skipped\"",
            "type": "string"
          },
          "eventId": {
            "description": "Webhook event ID for audit",
            "type": "string"
          },
          "reason": {
            "description": "If skipped, the reason",
            "type": "string"
          },
          "runIds": {
            "description": "Multiple if fan-out (platform) or single (generic)",
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.SituationDetail": {
        "properties": {
          "cluster_id": {
            "type": "string"
          },
          "confidence_tier": {
            "type": "string"
          },
          "event_at": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "impact": {
            "type": "integer"
          },
          "schedule_kind": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.SituationMonitorPayload": {
        "properties": {
          "situation": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.SituationDetail"
          },
          "tickers": {
            "description": "Outer envelope fields (worker `WebhookPayload` shape).",
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.SituationTicker"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.SituationTicker": {
        "properties": {
          "asset_class": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_mcp.McpConnectorView": {
        "properties": {
          "displayName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "serverId": {
            "type": "string"
          },
          "serverUrl": {
            "type": "string"
          },
          "transport": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_run.ResumeResult": {
        "properties": {
          "action": {
            "description": "\"resumed\" or \"skipped\"",
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_wallet.ArchiveWalletResponse": {
        "properties": {
          "archivedWorkflowIds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_workflowtemplate.CreateWorkflowTemplateRequest": {
        "properties": {
          "category": {
            "description": "Deprecated: use Tags instead",
            "type": "string"
          },
          "cooldownMs": {
            "type": "integer"
          },
          "definition": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition"
          },
          "description": {
            "maxLength": 2000,
            "type": "string"
          },
          "maxRuns": {
            "type": "integer"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "sourceWorkflowId": {
            "type": "string"
          },
          "tableSchemas": {
            "additionalProperties": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TableSchema"
            },
            "type": "object"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "templateProps": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateProp"
            },
            "type": "array",
            "uniqueItems": false
          },
          "uiMetadata": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowUIMetadata"
          },
          "visibility": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateVisibility"
          }
        },
        "required": ["definition", "description", "name", "tags", "visibility"],
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_workflowtemplate.UpdateWorkflowTemplateRequest": {
        "properties": {
          "cooldownMs": {
            "type": "integer"
          },
          "definition": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition"
          },
          "description": {
            "type": "string"
          },
          "maxRuns": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "tableSchemas": {
            "additionalProperties": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TableSchema"
            },
            "description": "Pointer-to-map so PATCH can distinguish omit-and-preserve (nil) from replace-with-empty.",
            "type": "object"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "templateProps": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateProp"
            },
            "type": "array",
            "uniqueItems": false
          },
          "uiMetadata": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowUIMetadata"
          },
          "visibility": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateVisibility"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_types.StorkAvailableAssetsResponse": {
        "properties": {
          "assets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_types.StorkLatestPricesResponse": {
        "properties": {
          "prices": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "{\"BTCUSD\": \"103594.842425999988\"}",
            "type": "object"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_client_deepagent.RunEvent": {
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "metadata": {
            "additionalProperties": {},
            "type": "object"
          },
          "seq": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_client_deepagent.RunState": {
        "properties": {
          "assistantText": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "finishedAt": {
            "type": "string"
          },
          "phase": {
            "type": "string"
          },
          "runId": {
            "type": "string"
          },
          "servedPath": {
            "description": "ServedPath is the worker-relative path a serve-capable agent's output is\nserved at (e.g. \"/artifacts/<runId>/\"); ServedURL is the absolute,\nbrowser-openable URL the API composes from it (worker base + path) so a\nclient can surface the built app's link. Both empty for non-serving runs.",
            "type": "string"
          },
          "servedUrl": {
            "type": "string"
          },
          "startedAt": {
            "type": "string"
          },
          "turns": {
            "type": "integer"
          },
          "usage": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_client_deepagent.RunUsage"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_client_deepagent.RunUsage": {
        "properties": {
          "callCount": {
            "type": "integer"
          },
          "completionTokens": {
            "type": "integer"
          },
          "costUsd": {
            "type": "number"
          },
          "model": {
            "type": "string"
          },
          "promptTokens": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AICreditUsageSummaryPublic": {
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AICreditUsageSummaryTotals"
          },
          "yearMonth": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AICreditUsageSummaryTotals": {
        "properties": {
          "adjusted": {
            "type": "number"
          },
          "deposited": {
            "type": "number"
          },
          "granted": {
            "type": "number"
          },
          "used": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIKey": {
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "keyPrefix": {
            "type": "string"
          },
          "lastUsedAt": {
            "type": "string"
          },
          "lastUsedIp": {
            "type": "string"
          },
          "lastUsedUserAgent": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "revokedAt": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIKeyScope"
          },
          "serviceAccountId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIKeyScope": {
        "enum": ["read", "read-write"],
        "type": "string",
        "x-enum-varnames": ["APIKeyScopeRead", "APIKeyScopeReadWrite"]
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIRequestAudit": {
        "properties": {
          "apiKeyId": {
            "type": "string"
          },
          "clientIp": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "durationMs": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "principalId": {
            "type": "string"
          },
          "principalType": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "routePattern": {
            "type": "string"
          },
          "serviceAccountId": {
            "type": "string"
          },
          "statusCode": {
            "type": "integer"
          },
          "userAgent": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ActionDefinition": {
        "properties": {
          "category": {
            "description": "Action category (e.g., \"Blockchain\", \"Social\")",
            "type": "string"
          },
          "connector": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorRequirement"
          },
          "connectorOutput": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorOutput"
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "directExecutable": {
            "description": "Caddie one-shot direct execution eligibility (B3-4431)",
            "type": "boolean"
          },
          "documentationUrl": {
            "type": "string"
          },
          "exampleInput": {
            "description": "Example input for documentation"
          },
          "exampleOutput": {},
          "fundsMovement": {
            "description": "Opaque pass-through from b3os-actions",
            "items": {
              "type": "integer"
            },
            "type": "array",
            "uniqueItems": false
          },
          "gasChainField": {
            "description": "Payload field whose value is the gas-paying chain ID (dynamic; consulted when GasChainID is 0). E.g. \"srcChainId\" for cross-chain actions where the user signs and pays gas on the source chain.",
            "type": "string"
          },
          "gasChainId": {
            "description": "Chain ID where gas is needed (static)",
            "type": "integer"
          },
          "logoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "payloadSchema": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema"
          },
          "platform": {
            "description": "Platform grouping for integrations page (e.g., \"solana\")",
            "type": "string"
          },
          "requiredTokens": {
            "description": "Opaque pass-through from b3os-actions",
            "items": {
              "type": "integer"
            },
            "type": "array",
            "uniqueItems": false
          },
          "requiresGas": {
            "description": "Whether action requires gas (blockchain transaction fees)",
            "type": "boolean"
          },
          "resultSchema": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema"
          },
          "tags": {
            "description": "Tags for filtering",
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "test": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TestConfig"
          },
          "type": {
            "type": "string"
          },
          "weight": {
            "description": "Search ranking weight (nil = default 50)",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditFinding": {
        "properties": {
          "acknowledged": {
            "type": "boolean"
          },
          "category": {
            "description": "reentrancy, access-control, etc.",
            "type": "string"
          },
          "codeSnippet": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "recommendation": {
            "type": "string"
          },
          "severity": {
            "description": "critical, high, medium, low, info",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditReport": {
        "properties": {
          "findings": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditFinding"
            },
            "type": "array",
            "uniqueItems": false
          },
          "passes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "summary": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditSummary"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditSummary": {
        "properties": {
          "critical": {
            "type": "integer"
          },
          "high": {
            "type": "integer"
          },
          "info": {
            "type": "integer"
          },
          "low": {
            "type": "integer"
          },
          "medium": {
            "type": "integer"
          },
          "overallRisk": {
            "description": "low, medium, high, critical",
            "type": "string"
          },
          "recommendation": {
            "description": "deployment recommendation",
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockExpansionMeta": {
        "properties": {
          "blockId": {
            "type": "string"
          },
          "blockVersion": {
            "type": "integer"
          },
          "entryNodeIds": {
            "description": "Subset of ExpandedIDs that are entry points",
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "expandedIds": {
            "description": "All namespaced node IDs produced by expansion",
            "items": {
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "outputSchema": {
            "description": "Block's output schema for reference",
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockOutput"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockNodeContext": {
        "description": "BlockContext is set on nodes that were expanded from a block.\nIt traces the node back to its source block and carries the inputMapping\nneeded to resolve {{$inputs.key}} references at execution time.",
        "properties": {
          "blockId": {
            "description": "Block entity ID",
            "type": "string"
          },
          "blockNodeId": {
            "description": "Original block node ID in the workflow",
            "type": "string"
          },
          "blockVersion": {
            "description": "Pinned block version",
            "type": "integer"
          },
          "inputMapping": {
            "additionalProperties": {},
            "description": "From block node payload (consumer-authored)",
            "type": "object"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockOutput": {
        "properties": {
          "description": {
            "description": "Human-readable description for the variable picker",
            "type": "string"
          },
          "key": {
            "description": "Output field name exposed to consumers",
            "type": "string"
          },
          "properties": {
            "additionalProperties": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockOutputProperty"
            },
            "description": "Nested schema for object/array outputs (shown in variable picker)",
            "type": "object"
          },
          "sourceField": {
            "description": "Field path from the source node's result (e.g., \"balance\")",
            "type": "string"
          },
          "sourceNode": {
            "description": "Node ID within the block definition",
            "type": "string"
          },
          "type": {
            "description": "\"string\", \"number\", \"boolean\", \"object\", \"array\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockOutputProperty": {
        "properties": {
          "description": {
            "type": "string"
          },
          "properties": {
            "additionalProperties": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.BlockOutputProperty"
            },
            "type": "object"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostActionsByCategory": {
        "properties": {
          "builtIn": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostItem"
            },
            "type": "array",
            "uniqueItems": false
          },
          "dynamic": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostItem"
            },
            "type": "array",
            "uniqueItems": false
          },
          "logic": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostItem"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostDefaults": {
        "properties": {
          "builtIn": {
            "type": "number"
          },
          "dynamic": {
            "type": "number"
          },
          "logic": {
            "type": "number"
          },
          "trigger": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostItem": {
        "properties": {
          "cost": {
            "type": "number"
          },
          "source": {
            "description": "\"default\" or \"override\"",
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostsResult": {
        "properties": {
          "actions": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostActionsByCategory"
          },
          "defaults": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostDefaults"
          },
          "triggers": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostItem"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUDailyUsage": {
        "properties": {
          "breakdown": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageBreakdown"
            },
            "type": "array",
            "uniqueItems": false
          },
          "date": {
            "type": "string"
          },
          "used": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUGetBalanceResult": {
        "properties": {
          "balance": {
            "type": "number"
          },
          "minThreshold": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CURunItem": {
        "properties": {
          "finishedAt": {
            "type": "string"
          },
          "runId": {
            "type": "string"
          },
          "startedAt": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunStatus"
          },
          "totalCu": {
            "type": "number"
          },
          "triggerSource": {
            "type": "string"
          },
          "workflowId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUpdateThresholdResult": {
        "properties": {
          "newThreshold": {
            "type": "number"
          },
          "oldThreshold": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageBreakdown": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "cu": {
            "type": "number"
          },
          "nodeType": {
            "type": "string"
          },
          "type": {
            "description": "\"trigger\" or \"action\"",
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageByWorkflowResult": {
        "properties": {
          "workflows": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUWorkflowUsageItem"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageSummary": {
        "properties": {
          "daily": {
            "items": {
              "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUDailyUsage"
            },
            "type": "array",
            "uniqueItems": false
          },
          "summary": {
            "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageSummaryTotals"
          },
          "yearMonth": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageSummaryTotals": {
        "properties": {
          "adjusted": {
            "description": "Net of period adjustments (credit +, debit -, incl. monthly reset) so the\nbreakdown reconciles: granted + deposited + adjusted - used.",
            "type": "number"
          },
          "deposited": {
            "type": "number"
          },
          "granted": {
            "type": "number"
          },
          "used": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUWorkflowUsageItem": {
        "properties": 

# --- truncated at 32 KB (849 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/b3/refs/heads/main/openapi/b3-b3os-workflow-openapi.json