{ "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.AdjustParams": { "properties": { "amount": { "type": "number" }, "direction": { "description": "\"credit\" or \"debit\"", "type": "string" }, "reason": { "type": "string" } }, "required": ["amount", "direction", "reason"], "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_cu.DepositParams": { "properties": { "amount": { "type": "number" } }, "required": ["amount"], "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.GenericWebhookPayload": { "properties": { "data": { "additionalProperties": {}, "type": "object" }, "forEachContext": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ForEachContext" }, "nodeId": { "description": "For wait resume", "type": "string" }, "runId": { "description": "For wait resume", "type": "string" }, "workflowId": { "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_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" }, "tags": { "items": { "type": "string" }, "minItems": 1, "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" }, "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_entity.APIKey": { "properties": { "createdAt": { "type": "string" }, "description": { "type": "string" }, "expiresAt": { "type": "string" }, "id": { "type": "string" }, "keyPrefix": { "type": "string" }, "lastUsedAt": { "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" }, "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.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" }, "documentationUrl": { "type": "string" }, "exampleInput": { "description": "Example input for documentation" }, "exampleOutput": {}, "gasChainId": { "description": "Chain ID where gas is needed", "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" }, "prerequisites": { "description": "Opaque pass-through from b3os-actions", "items": { "type": "integer" }, "type": "array", "uniqueItems": false }, "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" } }, "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.CUAdjustResult": { "properties": { "newBalance": { "type": "number" }, "oldBalance": { "type": "number" } }, "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.CUDepositResult": { "properties": { "newBalance": { "type": "number" }, "oldBalance": { "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.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.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": { "deposited": { "type": "number" }, "granted": { "type": "number" }, "used": { "type": "number" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ChatMessage": { "properties": { "content": { "type": "string" }, "createdAt": { "type": "string" }, "id": { "type": "string" }, "imageUrls": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "organizationId": { "type": "string" }, "role": { "type": "string" }, "sessionId": { "type": "string" }, "tokensUsed": { "type": "integer" }, "workflowId": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Comment": { "properties": { "createdAt": { "type": "string" }, "createdBy": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteUser" }, "id": { "type": "string" }, "nodeId": { "type": "string" }, "position": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodePosition" }, "replies": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CommentReply" }, "type": "array", "uniqueItems": false }, "resolved": { "type": "boolean" }, "text": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CommentReply": { "properties": { "createdAt": { "type": "string" }, "createdBy": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteUser" }, "id": { "type": "string" }, "text": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Connector": { "properties": { "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "maskedData": { "additionalProperties": {}, "description": "Computed field, not persisted", "type": "object" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "provider": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "updatedBy": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorDefinition": { "properties": { "categories": { "description": "Deprecated: use Tags instead", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "dataSchema": { "additionalProperties": {}, "type": "object" }, "description": { "type": "string" }, "informationUrl": { "type": "string" }, "logoDomain": { "description": "Domain for logo.dev (e.g., \"slack.com\")", "type": "string" }, "logoUrl": { "description": "Computed at runtime from LogoDomain", "type": "string" }, "name": { "type": "string" }, "optional": { "description": "Optional indicates if the connector can be omitted when required by an action.\nIf true, workflow nodes can have a null connector and the action will execute\nwithout connector data (b3os-actions handles fallback if needed).", "type": "boolean" }, "provider": { "description": "Provider indicates the underlying provider for this connector.\nFor Pipedream connectors, this is \"pipedream\".", "type": "string" }, "providerConfig": { "additionalProperties": {}, "description": "ProviderConfig contains provider-specific configuration.\nFor Pipedream connectors, this includes appSlug, authPropName, authType.", "type": "object" }, "setupGuide": { "description": "SetupGuide contains markdown instructions for setting up the connector.", "type": "string" }, "tags": { "description": "Tags for filtering and categorization", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "type": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorOutput": { "description": "Auto-save result as connector", "properties": { "fieldMapping": { "additionalProperties": { "type": "string" }, "description": "resultField \u2192 connectorDataField", "type": "object" }, "nameTemplate": { "description": "Display name with {{field}} interpolation (uses result field names, i.e. left side of FieldMapping)", "type": "string" }, "type": { "description": "Connector type (e.g., \"railgun\")", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorReference": { "description": "nil if action doesn't need connector", "properties": { "id": { "description": "Connector ID (or subOrgId for turnkey)", "type": "string" }, "type": { "description": "Connector type (e.g., \"slack\", \"turnkey\")", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorRequirement": { "description": "nil means no connector required", "properties": { "type": { "description": "Required connector type (e.g., \"slack\")", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractPlanSummary": { "properties": { "description": { "type": "string" }, "features": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "gasOptimizations": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "name": { "type": "string" }, "securityConsiderations": { "items": { "type": "string" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProject": { "properties": { "allDeployments": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeployResult" }, "type": "array", "uniqueItems": false }, "auditReport": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.AuditReport" }, "autoFixAttempts": { "type": "integer" }, "compilationFixAttempts": { "type": "integer" }, "createdAt": { "type": "string" }, "currentStep": { "type": "integer" }, "deployments": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Deployments" }, "externalContractId": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "planSummary": { "type": "string" }, "sessionId": { "type": "string" }, "source": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractSource" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProjectStatus" }, "testResults": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TestResults" }, "updatedAt": { "type": "string" }, "walletId": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProjectStatus": { "enum": [ "planned", "generating", "code_generated", "testing", "tested", "auditing", "audited", "deploying", "testnet_deployed", "mainnet_deployed", "failed" ], "type": "string", "x-enum-comments": { "ContractStatusAuditing": "Intermediate status during security audit", "ContractStatusDeploying": "Intermediate status during deployment", "ContractStatusGenerating": "Intermediate status during code generation", "ContractStatusTesting": "Intermediate status during test execution" }, "x-enum-varnames": [ "ContractStatusPlanned", "ContractStatusGenerating", "ContractStatusCodeGenerated", "ContractStatusTesting", "ContractStatusTested", "ContractStatusAuditing", "ContractStatusAudited", "ContractStatusDeploying", "ContractStatusTestnetDeployed", "ContractStatusMainnetDeployed", "ContractStatusFailed" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractSource": { "properties": { "abi": { "description": "Compiled artifacts (populated after compilation)", "type": "string" }, "bytecode": { "description": "Deployment bytecode", "type": "string" }, "compilerOutput": { "description": "Metadata", "type": "string" }, "constructorAbi": { "description": "Constructor info", "type": "string" }, "contractCode": { "description": "Main contract Solidity source (flattened or with imports)", "type": "string" }, "contractName": { "description": "Main contract (required)", "type": "string" }, "dependencies": { "additionalProperties": { "type": "string" }, "description": "package \u2192 version (e.g., \"@openzeppelin/contracts\" \u2192 \"v5.0.0\")", "type": "object" }, "deployedCode": { "description": "Runtime bytecode", "type": "string" }, "files": { "additionalProperties": { "type": "string" }, "description": "Multi-file project support\nKey: relative path (e.g., \"src/interfaces/IERC20.sol\")\nValue: file content", "type": "object" }, "mainContract": { "description": "Path to main contract file (e.g., \"src/MyToken.sol\")", "type": "string" }, "solVersion": { "description": "Solidity version (e.g., \"0.8.20\")", "type": "string" }, "summary": { "description": "Non-technical summary generated by AI", "type": "string" }, "testCode": { "description": "Foundry test file source", "type": "string" }, "version": { "description": "Source version (increments on each edit)", "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeployResult": { "properties": { "address": { "type": "string" }, "blockNumber": { "type": "integer" }, "chainId": { "type": "integer" }, "deployedAt": { "type": "string" }, "deploymentMode": { "description": "standard, create2, or create3", "type": "string" }, "gasUsed": { "type": "integer" }, "isDeterministic": { "description": "Whether CREATE2/CREATE3 was used", "type": "boolean" }, "networkType": { "description": "mainnet or testnet", "type": "string" }, "predictedAddress": { "description": "Pre-computed address for deterministic deployments", "type": "string" }, "salt": { "description": "CREATE2/CREATE3 salt for deterministic address", "type": "string" }, "txHash": { "type": "string" }, "verificationStatus": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.VerificationStatus" }, "verificationUrl": { "description": "URL to view verified contract on block explorer", "type": "string" }, "verified": { "description": "Whether contract source is verified on block explorer", "type": "boolean" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeploymentEstimate": { "properties": { "costUsd": { "type": "string" }, "estimatedCost": { "type": "string" }, "gasLimit": { "type": "integer" }, "gasPrice": { "type": "string" }, "maxFeePerGas": { "type": "string" }, "warning": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Deployments": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeployResult" }, "description": "Deployments is populated from the contract_deployments table, NOT from a DB column.\nKept for backward-compatible JSON serialization in API responses.", "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionContext": { "properties": { "loopVars": { "additionalProperties": {}, "description": "Loop variables (for for-each nodes)", "type": "object" }, "orgStorage": { "additionalProperties": {}, "description": "Organization storage values snapshot (default store)", "type": "object" }, "orgStores": { "additionalProperties": { "additionalProperties": {}, "type": "object" }, "description": "Named store snapshots: storeName \u2192 key \u2192 value", "type": "object" }, "props": { "additionalProperties": {}, "description": "Template prop values snapshot", "type": "object" }, "storage": { "additionalProperties": {}, "description": "Workflow storage values snapshot", "type": "object" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionNode": { "properties": { "connector": { "additionalProperties": {}, "description": "Safe connector metadata (e.g., wallet address)", "type": "object" }, "context": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionContext" }, "finishedAt": { "type": "string" }, "input": { "additionalProperties": {}, "description": "Input payload at time of completion/failure (may be raw or resolved)", "type": "object" }, "iterations": { "description": "For for-each nodes only: tracks execution state of each iteration.\nEach iteration is a mini ExecutionState graph (nodeID \u2192 ExecutionNode).", "items": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionNode" }, "type": "object" }, "type": "array", "uniqueItems": false }, "result": { "additionalProperties": {}, "description": "Output from execution", "type": "object" }, "secretKeys": { "description": "Input keys that contain connector secrets (for masking)", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "startedAt": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionNodeStatus" }, "type": { "description": "Node type (e.g., \"webhook\", \"send-erc20-token\")", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionNodeStatus": { "enum": ["pending", "running", "success", "failure", "skipped", "waiting", "scheduled", "cancelled"], "type": "string", "x-enum-comments": { "ExecutionNodeStatusCancelled": "Set when run is cancelled by user", "ExecutionNodeStatusFailure": "Set when node execution fails", "ExecutionNodeStatusPending": "Set when run is created (all non-root nodes start as pending)", "ExecutionNodeStatusRunning": "Set when node execution begins", "ExecutionNodeStatusScheduled": "Set when node is scheduled for future execution", "ExecutionNodeStatusSkipped": "Set when node is skipped (e.g., non-taken if branch)", "ExecutionNodeStatusSuccess": "Set when node execution completes successfully", "ExecutionNodeStatusWaiting": "Set when node is paused waiting for a trigger" }, "x-enum-varnames": [ "ExecutionNodeStatusPending", "ExecutionNodeStatusRunning", "ExecutionNodeStatusSuccess", "ExecutionNodeStatusFailure", "ExecutionNodeStatusSkipped", "ExecutionNodeStatusWaiting", "ExecutionNodeStatusScheduled", "ExecutionNodeStatusCancelled" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.FailureRateStats": { "properties": { "failed": { "type": "integer" }, "failureRate": { "description": "percentage (0-100)", "type": "number" }, "total": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ForEachContext": { "description": "For wait resume inside for-each", "properties": { "index": { "type": "integer" }, "parentNodeId": { "description": "Legacy fields kept for backward-compatible JSON deserialization.\nNew code should only use Stack.", "type": "string" }, "stack": { "description": "Stack holds nesting levels from outermost to innermost.\nSingle-level for-each uses a stack of length 1.", "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ForEachLevel" }, "type": "array", "uniqueItems": false }, "total": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ForEachLevel": { "properties": { "index": { "description": "Current iteration index (0, 1, 2...)", "type": "integer" }, "parentNodeId": { "description": "For-each node ID (e.g., \"for_each_send\")", "type": "string" }, "total": { "description": "Total iterations (for progress tracking)", "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.InviteStatus": { "enum": ["pending", "accepted", "declined", "expired"], "type": "string", "x-enum-varnames": [ "InviteStatusPending", "InviteStatusAccepted", "InviteStatusDeclined", "InviteStatusExpired" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.InviteWithOrgName": { "properties": { "createdAt": { "type": "string" }, "expiresAt": { "type": "string" }, "id": { "type": "string" }, "invitedBy": { "type": "string" }, "inviteeEmail": { "type": "string" }, "inviteeUserId": { "type": "string" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "role": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationRole" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.InviteStatus" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.LatencyTimeSeriesPoint": { "properties": { "avgLatencyMs": { "description": "Average latency in this bucket", "type": "number" }, "bucketStart": { "description": "Start of time bucket (hourly or daily)", "type": "string" }, "p50LatencyMs": { "description": "Median latency (50th percentile)", "type": "number" }, "p95LatencyMs": { "description": "95th percentile latency", "type": "number" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodePosition": { "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodeStatistics": { "properties": { "averageLatencyMs": { "description": "For actions only (nil for triggers)", "type": "number" }, "nodeId": { "type": "string" }, "nodeType": { "type": "string" }, "successRate": { "description": "For actions only (nil for triggers)", "type": "number" }, "totalExecutions": { "description": "From continuous aggregate", "type": "integer" }, "workflowsCount": { "description": "From workflows table (direct query)", "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema": { "description": "Separate schema for wait-for-trigger config", "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Organization": { "properties": { "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "cuMinThreshold": { "type": "number" }, "deletedAt": { "type": "string" }, "deletedBy": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "photo": { "description": "IPFS URL or HTTP URL", "type": "string" }, "slug": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationInvite": { "properties": { "createdAt": { "type": "string" }, "expiresAt": { "type": "string" }, "id": { "type": "string" }, "invitedBy": { "type": "string" }, "inviteeEmail": { "type": "string" }, "inviteeUserId": { "type": "string" }, "organizationId": { "type": "string" }, "role": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationRole" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.InviteStatus" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationMember": { "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "invitedBy": { "type": "string" }, "organizationId": { "type": "string" }, "role": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationRole" }, "updatedAt": { "type": "string" }, "userId": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationMetadata": { "properties": { "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "photo": { "description": "IPFS URL or HTTP URL", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationRole": { "enum": ["owner", "developer"], "type": "string", "x-enum-varnames": ["OrgRoleOwner", "OrgRoleDeveloper"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationWallet": { "properties": { "address": { "type": "string" }, "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "deletedBy": { "type": "string" }, "id": { "type": "string" }, "isDefault": { "type": "boolean" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "turnkeyWalletId": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDelivery": { "properties": { "createdAt": { "type": "string" }, "durationMs": { "type": "integer" }, "errorMessage": { "type": "string" }, "id": { "type": "string" }, "maxRetries": { "type": "integer" }, "method": { "type": "string" }, "nextRetryAt": { "type": "string" }, "nodeId": { "type": "string" }, "organizationId": { "type": "string" }, "requestBody": { "additionalProperties": {}, "type": "object" }, "requestHeaders": { "additionalProperties": {}, "type": "object" }, "responseBody": { "type": "string" }, "responseHeaders": { "additionalProperties": {}, "type": "object" }, "responseStatus": { "type": "integer" }, "retryCount": { "type": "integer" }, "runId": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDeliveryStatus" }, "updatedAt": { "type": "string" }, "url": { "type": "string" }, "workflowId": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDeliveryStatus": { "enum": ["pending", "success", "failure", "retrying"], "type": "string", "x-enum-varnames": [ "OutboundWebhookStatusPending", "OutboundWebhookStatusSuccess", "OutboundWebhookStatusFailure", "OutboundWebhookStatusRetrying" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition": { "properties": { "default": { "description": "Default value (used if not provided at runtime)" }, "description": { "description": "Human-readable description", "type": "string" }, "enum": { "description": "Validation hints (optional)", "items": {}, "type": "array", "uniqueItems": false }, "items": { "additionalProperties": {}, "description": "For complex types", "type": "object" }, "maxLength": { "description": "Max length for strings", "type": "integer" }, "maximum": { "description": "Maximum for numbers", "type": "integer" }, "minLength": { "description": "Min length for strings", "type": "integer" }, "minimum": { "description": "Minimum for numbers", "type": "integer" }, "pattern": { "description": "Regex pattern for strings", "type": "string" }, "properties": { "additionalProperties": {}, "description": "Object properties", "type": "object" }, "required": { "description": "Whether this param is required", "type": "boolean" }, "type": { "description": "string, number, integer, boolean, array, object", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.PropSchema": { "properties": { "chainPropKey": { "description": "For tokenSelector: prop key providing chainId", "type": "string" }, "enum": { "items": {}, "type": "array", "uniqueItems": false }, "enumLabels": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "inputType": { "description": "InputType is a UI rendering hint. The frontend uses it to pick a rich\nselector component instead of a plain text input. Unknown values are\nsilently ignored (falls back to default input).\nValid values: chainSelector, tokenSelector, address, recipientAddress, email", "type": "string" }, "maximum": { "type": "number" }, "minimum": { "type": "number" }, "pattern": { "type": "string" }, "placeholder": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.PublicWidgetConfig": { "properties": { "buttonLabel": { "description": "ButtonLabel is the text displayed on the trigger button", "type": "string" }, "description": { "description": "Description explains what the workflow does", "type": "string" }, "enabled": { "description": "Enabled controls whether the public widget is active", "type": "boolean" }, "maxAmount": { "description": "MaxAmount is the maximum amount allowed per trigger (in smallest unit)", "type": "string" }, "minAmount": { "description": "MinAmount is the minimum amount required to trigger (in smallest unit)", "type": "string" }, "title": { "description": "Title is the display title for the widget", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RecentRun": { "properties": { "durationMs": { "type": "number" }, "error": { "type": "string" }, "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" }, "workflowId": { "type": "string" }, "workflowName": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Run": { "properties": { "executionState": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionNode" }, "type": "object" }, "finishedAt": { "type": "string" }, "id": { "type": "string" }, "organizationId": { "type": "string" }, "propValues": { "additionalProperties": {}, "type": "object" }, "startedAt": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunStatus" }, "triggerSource": { "type": "string" }, "triggeredBy": { "type": "string" }, "workflowDefinition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "workflowId": { "type": "string" }, "workflowVersion": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunListItem": { "properties": { "finishedAt": { "type": "string" }, "id": { "type": "string" }, "startedAt": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunStatus" }, "triggerSource": { "type": "string" }, "triggeredBy": { "type": "string" }, "workflowId": { "type": "string" }, "workflowVersion": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunStatus": { "enum": ["running", "waiting", "success", "failure", "cancelled"], "type": "string", "x-enum-comments": { "RunStatusCancelled": "Run was cancelled by user", "RunStatusFailure": "Run failed", "RunStatusRunning": "Run is executing", "RunStatusSuccess": "Run completed successfully", "RunStatusWaiting": "Run is paused, waiting for a trigger to resume" }, "x-enum-varnames": [ "RunStatusRunning", "RunStatusWaiting", "RunStatusSuccess", "RunStatusFailure", "RunStatusCancelled" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunsTimeSeriesPoint": { "properties": { "bucketStart": { "type": "string" }, "failure": { "type": "integer" }, "success": { "type": "integer" }, "total": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoFAQ": { "properties": { "answer": { "type": "string" }, "question": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoIntegrationPage": { "properties": { "appSlugs": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "contentStatus": { "type": "string" }, "createdAt": { "description": "Timestamps.", "type": "string" }, "faqs": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoFAQ" }, "type": "array", "uniqueItems": false }, "heroDescription": { "description": "AI-generated content.", "type": "string" }, "id": { "type": "string" }, "integrationStatus": { "description": "Status tracking.", "type": "string" }, "isPublished": { "type": "boolean" }, "keywords": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "metaDescription": { "type": "string" }, "pageType": { "type": "string" }, "requestCount": { "type": "integer" }, "slug": { "type": "string" }, "title": { "description": "SEO metadata.", "type": "string" }, "updatedAt": { "type": "string" }, "useCases": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoUseCase" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoUseCase": { "properties": { "description": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNote": { "properties": { "color": { "type": "string" }, "createdAt": { "type": "string" }, "createdBy": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteUser" }, "id": { "type": "string" }, "position": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodePosition" }, "size": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteSize" }, "text": { "type": "string" }, "updatedAt": { "type": "string" }, "zIndex": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteSize": { "properties": { "height": { "type": "number" }, "width": { "type": "number" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNoteUser": { "properties": { "clientId": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Tag": { "properties": { "categories": { "description": "e.g., [\"blockchain\", \"finance\"]", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "count": { "description": "Scope-dependent: template, action, trigger, or connector count", "type": "integer" }, "createdAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "imageUrl": { "type": "string" }, "name": { "type": "string" }, "promotedTemplateCount": { "type": "integer" }, "publicTemplateCount": { "type": "integer" }, "slug": { "type": "string" }, "updatedAt": { "type": "string" }, "weight": { "description": "Higher weight = more prominent", "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TelegramVerifiedChat": { "properties": { "chatId": { "type": "integer" }, "chatTitle": { "type": "string" }, "chatType": { "type": "string" }, "chatUsername": { "type": "string" }, "connectorId": { "type": "string" }, "connectorName": { "type": "string" }, "id": { "type": "string" }, "organizationId": { "type": "string" }, "verifiedAt": { "type": "string" }, "verifiedBy": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template": { "properties": { "archived": { "type": "boolean" }, "category": { "description": "Deprecated: Use Tags instead", "type": "string" }, "cooldownMs": { "type": "integer" }, "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "description": { "type": "string" }, "forkCount": { "type": "integer" }, "id": { "type": "string" }, "isPromoted": { "type": "boolean" }, "maxRuns": { "type": "integer" }, "name": { "type": "string" }, "organizationDescription": { "type": "string" }, "organizationId": { "description": "Fields for user-generated templates (nil for built-in templates)", "type": "string" }, "organizationName": { "type": "string" }, "organizationPhoto": { "type": "string" }, "promotedAt": { "type": "string" }, "promotedBy": { "type": "string" }, "sourceWorkflowId": { "description": "Source workflow link (nil for built-in or legacy templates)", "type": "string" }, "tags": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Tag" }, "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" }, "updatedAt": { "type": "string" }, "updatedBy": { "type": "string" }, "version": { "type": "integer" }, "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_pkg_entity.TemplateProp": { "properties": { "default": {}, "description": { "type": "string" }, "key": { "type": "string" }, "name": { "type": "string" }, "properties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.PropSchema" }, "required": { "type": "boolean" }, "sensitive": { "type": "boolean" }, "type": { "description": "\"string\", \"number\", \"integer\", \"boolean\"", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateVisibility": { "enum": ["org", "public", "org", "public"], "type": "string", "x-enum-comments": { "TemplateVisibilityOrg": "Only visible to organization members", "TemplateVisibilityPublic": "Visible to everyone" }, "x-enum-varnames": ["TemplateVisibilityOrg", "TemplateVisibilityPublic"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TestConfig": { "description": "nil means testable (default)", "properties": { "disabledReason": { "type": "string" }, "enabled": { "type": "boolean" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TestResults": { "properties": { "autoFixed": { "type": "boolean" }, "failed": { "type": "integer" }, "failures": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "fixAttempts": { "type": "integer" }, "log": { "type": "string" }, "passed": { "type": "integer" }, "runAt": { "type": "string" }, "total": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TopError": { "properties": { "count": { "type": "integer" }, "error": { "type": "string" }, "lastOccurred": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TriggerDefinition": { "properties": { "connector": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorRequirement" }, "createdBy": { "type": "string" }, "description": { "type": "string" }, "documentationUrl": { "type": "string" }, "logoUrl": { "type": "string" }, "name": { "type": "string" }, "payloadSchema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema" }, "resultSchema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema" }, "tags": { "description": "Tags for filtering and categorization", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "type": { "type": "string" }, "waitPayloadSchema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrderedSchema" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.UsageTimeSeriesPoint": { "properties": { "bucketStart": { "description": "Start of time bucket (hourly or daily)", "type": "string" }, "usageCount": { "description": "Number of executions in this bucket", "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.VerificationStatus": { "description": "Verification status", "enum": ["pending", "verified", "failed"], "type": "string", "x-enum-varnames": ["VerificationStatusPending", "VerificationStatusVerified", "VerificationStatusFailed"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEvent": { "properties": { "actionTaken": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEventAction" }, "body": { "additionalProperties": {}, "type": "object" }, "createdAt": { "type": "string" }, "errorMessage": { "type": "string" }, "id": { "type": "string" }, "metadata": { "additionalProperties": {}, "description": "Platform-specific: channelId, threadId, targetUrl, etc.", "type": "object" }, "organizationId": { "type": "string" }, "platform": { "description": "slack, telegram, discord, webhook", "type": "string" }, "processedAt": { "type": "string" }, "runId": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEventStatus" }, "workflowId": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEventAction": { "enum": ["triggered", "resumed", "skipped"], "type": "string", "x-enum-varnames": ["WebhookEventActionTriggered", "WebhookEventActionResumed", "WebhookEventActionSkipped"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEventStatus": { "enum": ["pending", "success", "failure"], "type": "string", "x-enum-varnames": ["WebhookEventStatusPending", "WebhookEventStatusSuccess", "WebhookEventStatusFailure"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow": { "properties": { "aiDescription": { "type": "string" }, "aiName": { "type": "string" }, "cooldownMs": { "type": "integer" }, "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "descManuallySet": { "type": "boolean" }, "description": { "type": "string" }, "hasDraft": { "description": "Response-only fields (not persisted to database)\nHasDraft indicates a draft exists (for live workflows in API responses)", "type": "boolean" }, "hasLiveVersion": { "description": "HasLiveVersion indicates a live version exists (for drafts in API responses)", "type": "boolean" }, "id": { "type": "string" }, "lastTriggeredAt": { "type": "string" }, "maxRuns": { "type": "integer" }, "name": { "type": "string" }, "nameManuallySet": { "type": "boolean" }, "organizationId": { "type": "string" }, "propValues": { "additionalProperties": {}, "type": "object" }, "publicWidgetConfig": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.PublicWidgetConfig" }, "remainRuns": { "type": "integer" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowStatus" }, "templateProps": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TemplateProp" }, "type": "array", "uniqueItems": false }, "triggerSecret": { "type": "string" }, "type": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowType" }, "uiMetadata": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowUIMetadata" }, "updatedAt": { "type": "string" }, "updatedBy": { "type": "string" }, "version": { "type": "integer" }, "x402Config": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Config" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition": { "description": "Definition is the full workflow graph to execute. Must contain a\n\"root\" node with type \"manual\". All action nodes referenced in\nchildren arrays must be present.", "properties": { "inputSchema": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowInput" }, "type": "array", "uniqueItems": false }, "nodes": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowNode" }, "type": "object" }, "sensitivePropKeys": { "items": { "type": "string" }, "type": "array", "uniqueItems": false } }, "required": ["nodes"], "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowInput": { "properties": { "description": { "type": "string" }, "key": { "type": "string" }, "required": { "type": "boolean" }, "type": { "description": "\"string\", \"number\", \"boolean\", \"object\", \"array\"", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowNode": { "properties": { "branch": { "description": "\"then\" or \"else\", only when parent is \"if\" node", "type": "string" }, "children": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "connector": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorReference" }, "description": { "description": "AI-generated 1-sentence description", "type": "string" }, "loopBody": { "description": "Loop body nodes (only for for-each nodes)", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "payload": { "additionalProperties": {}, "type": "object" }, "resultSchema": { "additionalProperties": {}, "description": "ResultSchema describes the output structure of this node (populated dynamically for x402 endpoints).\nThis is used by the frontend to show available output variables in the variable picker.", "type": "object" }, "titleOverride": { "description": "AI-generated short title (2-6 words), only when more descriptive than default", "type": "string" }, "type": { "type": "string" } }, "required": ["payload", "type"], "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowStatus": { "enum": ["draft", "active", "paused", "archived"], "type": "string", "x-enum-varnames": [ "WorkflowStatusDraft", "WorkflowStatusActive", "WorkflowStatusPaused", "WorkflowStatusArchived" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowType": { "enum": [ "token-price-cexes", "evm-log", "cronjob", "schedule", "webhook", "manual", "telegram-channel", "polymarket-user-bet", "polymarket-market-trade", "polymarket-new-market", "polymarket-market-close", "slack-mentions", "erc20-receive", "erc20-send", "anyspend", "shopify-order-created", "shopify-order-paid", "shopify-inventory-level-updated", "ramp-new-transaction", "ramp-transaction-status-updated", "ramp-transfer-payment-updated", "slack-new-reaction-added", "slack-new-message-in-channels", "slack-new-channel-created", "slack-new-direct-message", "slack-new-keyword-mention", "slack-new-user-added", "slack-new-user-mention", "email-new-email-received", "email-new-email-matching-criteria" ], "type": "string", "x-enum-varnames": [ "WorkflowTypeTokenPriceCexes", "WorkflowTypeEVMLog", "WorkflowTypeCronjob", "WorkflowTypeSchedule", "WorkflowTypeWebhook", "WorkflowTypeManual", "WorkflowTypeTelegramChannel", "WorkflowTypePolymarketUserBet", "WorkflowTypePolymarketMarketTrade", "WorkflowTypePolymarketNewMarket", "WorkflowTypePolymarketMarketClose", "WorkflowTypeSlackMentions", "WorkflowTypeERC20Receive", "WorkflowTypeERC20Send", "WorkflowTypeAnyspend", "WorkflowTypeShopifyOrderCreated", "WorkflowTypeShopifyOrderPaid", "WorkflowTypeShopifyInventoryUpdated", "WorkflowTypeRampNewTransaction", "WorkflowTypeRampTransactionStatusUpdated", "WorkflowTypeRampTransferPaymentUpdated", "WorkflowTypeSlackNewReactionAdded", "WorkflowTypeSlackNewMessageInChannels", "WorkflowTypeSlackNewChannelCreated", "WorkflowTypeSlackNewDirectMessage", "WorkflowTypeSlackNewKeywordMention", "WorkflowTypeSlackNewUserAdded", "WorkflowTypeSlackNewUserMention", "WorkflowTypeEmailNewEmailReceived", "WorkflowTypeEmailNewEmailMatchingCriteria" ] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowUIMetadata": { "properties": { "comments": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Comment" }, "type": "array", "uniqueItems": false }, "nodePositions": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodePosition" }, "type": "object" }, "stickyNotes": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.StickyNote" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Config": { "properties": { "chainId": { "description": "Chain ID where payment should be made (e.g., 8453 for Base)", "type": "integer" }, "discoverable": { "description": "Discoverable controls whether this workflow is listed in the Bazaar public catalog.\nBazaar is a discovery marketplace where users can find and pay for x402-enabled endpoints.\nWhen true: Endpoint is publicly listed, anyone can trigger with payment only (no secret needed).\nWhen false: Endpoint is private, requires both secret and payment to trigger.", "type": "boolean" }, "discoveryInput": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoverySchema" }, "discoveryMetadata": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoveryMetadata" }, "discoveryOutput": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoverySchema" }, "price": { "description": "Price in the smallest unit of the token (e.g., wei for ETH, 6 decimals for USDC)", "type": "string" }, "recipient": { "description": "Recipient address that will receive the payment", "type": "string" }, "token": { "description": "Token address (e.g., USDC contract address)", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoveryMetadata": { "properties": { "category": { "description": "Category groups workflows (e.g., \"data\", \"automation\", \"ai\")", "type": "string" }, "description": { "description": "Description provides details about what the workflow does", "type": "string" }, "documentation": { "description": "Documentation URL for additional documentation", "type": "string" }, "logo": { "description": "Logo URL for the workflow/provider logo", "type": "string" }, "name": { "description": "Name is the display name for the workflow", "type": "string" }, "provider": { "description": "Provider is the name of the entity providing this workflow", "type": "string" }, "tags": { "description": "Tags for searchable keywords", "items": { "type": "string" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoverySchema": { "properties": { "example": { "description": "Example provides a sample value for documentation and testing" }, "schema": { "additionalProperties": {}, "description": "Schema is a JSON Schema definition for validation", "type": "object" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint": { "properties": { "avgResponseMs": { "type": "integer" }, "baseUrl": { "description": "=== ENDPOINT IDENTITY ===\nBaseURL is the clean URL without query params (e.g., \"https://api.example.com/search\")", "type": "string" }, "bodyParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "category": { "type": "string" }, "createdAt": { "description": "=== TIMESTAMPS ===", "type": "string" }, "defaultBody": { "additionalProperties": {}, "type": "object" }, "defaultHeaders": { "additionalProperties": {}, "type": "object" }, "defaultQueryParams": { "additionalProperties": {}, "description": "Default values (applied if user doesn't provide at runtime)", "type": "object" }, "description": { "type": "string" }, "exampleBody": {}, "exampleOutput": {}, "exampleQueryParams": { "additionalProperties": {}, "description": "=== EXAMPLES ===", "type": "object" }, "failureCount": { "type": "integer" }, "headerParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "id": { "type": "string" }, "inputSummary": { "type": "string" }, "lastCalledAt": { "type": "string" }, "lastError": { "type": "string" }, "lastErrorAt": { "type": "string" }, "maxAllowedPrice": { "description": "Price protection (auto 5x of import price)", "type": "string" }, "method": { "description": "GET, POST, PUT, DELETE", "type": "string" }, "mimeType": { "type": "string" }, "name": { "description": "=== METADATA ===", "type": "string" }, "network": { "type": "string" }, "outputSchema": { "additionalProperties": {}, "description": "=== OUTPUT ===", "type": "object" }, "outputSummary": { "type": "string" }, "payTo": { "type": "string" }, "price": { "description": "=== PAYMENT INFO ===", "type": "string" }, "queryParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "description": "=== INPUT CONFIGURATION ===\nCDP-aligned flat structure: {\"paramName\": {\"type\": \"string\", \"description\": \"...\", \"required\": true}}", "type": "object" }, "source": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402EndpointSource" }, "spentByToken": { "additionalProperties": { "type": "string" }, "description": "Multi-token spending tracker: {\"0x833...\": \"50000\", \"0xb3b...\": \"1000000000000000000\"}", "type": "object" }, "successCount": { "description": "=== STATS ===", "type": "integer" }, "tags": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "tokenAddress": { "type": "string" }, "tokenDecimals": { "type": "integer" }, "tokenSymbol": { "type": "string" }, "totalCalls": { "type": "integer" }, "updatedAt": { "type": "string" }, "useCases": { "description": "=== AI FIELDS ===", "items": { "type": "string" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402EndpointProbeResult": { "properties": { "accepts": { "description": "Full accepts array for reference", "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402PaymentOption" }, "type": "array", "uniqueItems": false }, "baseUrl": { "description": "=== PARSED FROM URL ===", "type": "string" }, "bodyParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "description": { "type": "string" }, "detectedParams": { "additionalProperties": { "type": "string" }, "description": "Query params found in URL", "type": "object" }, "error": { "description": "Error message if probe failed", "type": "string" }, "headerParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "method": { "description": "=== OPTIONAL (from 402 response) ===", "type": "string" }, "mimeType": { "type": "string" }, "network": { "type": "string" }, "outputSchema": { "additionalProperties": {}, "type": "object" }, "payTo": { "type": "string" }, "price": { "description": "=== ALWAYS AVAILABLE (core protocol) ===", "type": "string" }, "queryParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "description": "=== EXTRACTED FROM outputSchema (normalized) ===", "type": "object" }, "success": { "description": "Whether the probe succeeded", "type": "boolean" }, "tokenAddress": { "type": "string" }, "tokenDecimals": { "type": "integer" }, "tokenName": { "type": "string" }, "tokenSymbol": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402EndpointSource": { "enum": ["user_import", "cdp_bazaar"], "type": "string", "x-enum-comments": { "X402EndpointSourceCDPBazaar": "Imported from CDP Bazaar discovery API", "X402EndpointSourceUserImport": "Manually imported by user" }, "x-enum-varnames": ["X402EndpointSourceUserImport", "X402EndpointSourceCDPBazaar"] }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402OutputSchema": { "description": "OutputSchema for discovery registration (matches TypeScript SDK format)", "properties": { "discoveryOutput": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoverySchema" }, "input": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402OutputSchemaInput" }, "metadata": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoveryMetadata" }, "output": {} }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402OutputSchemaInput": { "properties": { "body": { "additionalProperties": {}, "description": "Body contains JSON Schema for body parameters (used by some x402 providers)", "type": "object" }, "bodyFields": { "additionalProperties": {}, "description": "BodyFields contains body field definitions in alternative CDP format", "type": "object" }, "bodyParams": { "additionalProperties": {}, "description": "BodyParams contains body param definitions in CDP format", "type": "object" }, "discoverable": { "type": "boolean" }, "discoveryInput": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402DiscoverySchema" }, "method": { "type": "string" }, "query": { "additionalProperties": {}, "description": "Query contains JSON Schema for query parameters (used by some x402 providers)", "type": "object" }, "queryParams": { "additionalProperties": {}, "description": "QueryParams contains query param definitions in CDP format", "type": "object" }, "type": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402PaymentExtra": { "properties": { "chainId": { "description": "ChainID is the chain ID for EIP-712 domain (from quote)", "type": "integer" }, "facilitatorAddress": { "description": "FacilitatorAddress is the facilitator's address that will be approved as spender", "type": "string" }, "name": { "description": "Name is the ERC20 token name (used in EIP-712 domain)", "type": "string" }, "signatureType": { "description": "SignatureType specifies the signature method: \"authorization\" (EIP-3009) or \"permit\" (ERC-2612)", "type": "string" }, "verifyingContract": { "description": "VerifyingContract is the token contract address for EIP-712 domain (from quote)", "type": "string" }, "version": { "description": "Version is the ERC20 token version (used in EIP-712 domain)", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402PaymentOption": { "properties": { "asset": { "type": "string" }, "description": { "type": "string" }, "extra": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402PaymentExtra" }, "maxAmountRequired": { "type": "string" }, "maxTimeoutSeconds": { "type": "integer" }, "mimeType": { "type": "string" }, "network": { "type": "string" }, "outputSchema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402OutputSchema" }, "payTo": { "type": "string" }, "resource": { "type": "string" }, "scheme": { "type": "string" }, "srcAmountRequired": { "type": "string" }, "srcNetwork": { "type": "string" }, "srcTokenAddress": { "description": "Cross-token payment fields (set when buyer uses X-PREFERRED-TOKEN)", "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_repository_organizationstorage.StoreInfo": { "properties": { "keyCount": { "type": "integer" }, "storeName": { "type": "string" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Template": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "github_com_b3-fun_b3-mono_services_b3os-workflow_PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_WebhookEvent": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WebhookEvent" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "internal_app_api_http_v1_contract.SaveProjectRequest": { "properties": { "name": { "maxLength": 100, "type": "string" }, "planSummary": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractPlanSummary" }, "sessionId": { "description": "For new projects", "type": "string" }, "source": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractSource" }, "testResults": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TestResults" } }, "required": ["name"], "type": "object" }, "ActionTestError": { "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "type": "object" }, "AdjustCUSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUAdjustResult" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminAIProfileWithOrg": { "properties": { "knowledgeCount": { "type": "integer" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "organizationSlug": { "type": "string" }, "personality": { "type": "string" }, "preferences": { "additionalProperties": {}, "type": "object" }, "updatedAt": { "type": "string" } }, "type": "object" }, "AdminAIPrompt": { "properties": { "content": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "AdminChatConversation": { "properties": { "contextId": { "type": "string" }, "contextType": { "type": "string" }, "firstMessageAt": { "type": "string" }, "firstUserMessage": { "type": "string" }, "lastMessageAt": { "type": "string" }, "messageCount": { "type": "integer" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "totalTokens": { "type": "integer" } }, "type": "object" }, "AdminChatMessage": { "properties": { "content": { "type": "string" }, "createdAt": { "type": "string" }, "id": { "type": "string" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "role": { "type": "string" }, "sessionId": { "type": "string" }, "tokensUsed": { "type": "integer" }, "workflowId": { "type": "string" } }, "type": "object" }, "AdminCreateOnboardingQuestionParams": { "properties": { "id": { "type": "string" }, "isActive": { "type": "boolean" }, "isRequired": { "type": "boolean" }, "metadata": { "additionalProperties": {}, "type": "object" }, "questionOrder": { "minimum": 1, "type": "integer" }, "questionText": { "type": "string" }, "questionType": { "type": "string" }, "scope": { "enum": ["user", "org"], "type": "string" } }, "required": ["id", "questionOrder", "questionText", "questionType", "scope"], "type": "object" }, "AdminCreateOnboardingQuestionSuccessResponse": { "properties": { "code": { "example": 201, "type": "integer" }, "data": { "$ref": "#/components/schemas/AdminOnboardingQuestionResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminDeleteOnboardingQuestionSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminExecutionNode": { "properties": { "finishedAt": { "type": "string" }, "input": { "additionalProperties": {}, "type": "object" }, "result": { "additionalProperties": {}, "type": "object" }, "startedAt": { "type": "string" }, "status": { "type": "string" }, "type": { "type": "string" } }, "type": "object" }, "AdminGetAllOnboardingQuestionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/AdminOnboardingQuestionResponse" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminGetOnboardingAnalyticsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/OnboardingAnalyticsResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminGetOrganizationSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/AdminOrganizationDetail" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminGetRunSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/AdminRunDetail" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminGetWorkflowSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/AdminWorkflowDetail" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListAIProfilesSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminAIProfileWithOrg" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListAIPromptsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/AdminAIPrompt" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListChatConversationsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminChatConversation" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListChatMessagesSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminChatMessage" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListOrgKnowledgeSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminOrgKnowledgeEntry" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListOrganizationsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminOrganizationWithBalance" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListTemplatesSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminTemplateWithOrg" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListWorkflowRunsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminWorkflowRun" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminListWorkflowsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_AdminWorkflowWithOrg" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminOnboardingQuestionResponse": { "properties": { "createdAt": { "example": "2024-01-01T00:00:00Z", "type": "string" }, "id": { "example": "onboarding_q1", "type": "string" }, "isActive": { "example": true, "type": "boolean" }, "isRequired": { "example": true, "type": "boolean" }, "metadata": { "additionalProperties": {}, "type": "object" }, "questionOrder": { "example": 1, "type": "integer" }, "questionText": { "example": "What brings you to B3OS?", "type": "string" }, "questionType": { "example": "text", "type": "string" }, "scope": { "example": "user", "type": "string" }, "updatedAt": { "example": "2024-01-01T00:00:00Z", "type": "string" } }, "type": "object" }, "AdminOrgKnowledgeEntry": { "properties": { "content": { "type": "string" }, "createdAt": { "type": "string" }, "id": { "type": "string" }, "metadata": { "additionalProperties": {}, "type": "object" }, "organizationId": { "type": "string" }, "sourceId": { "type": "string" }, "sourceType": { "type": "string" }, "title": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "AdminOrganizationDetail": { "properties": { "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "cuBalance": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "memberCount": { "type": "integer" }, "members": { "items": { "$ref": "#/components/schemas/AdminOrganizationMember" }, "type": "array", "uniqueItems": false }, "name": { "type": "string" }, "photo": { "type": "string" }, "slug": { "type": "string" }, "workflowCount": { "type": "integer" } }, "type": "object" }, "AdminOrganizationMember": { "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "role": { "type": "string" }, "userId": { "type": "string" } }, "type": "object" }, "AdminOrganizationWithBalance": { "properties": { "createdAt": { "type": "string" }, "cuBalance": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "memberCount": { "type": "integer" }, "name": { "type": "string" }, "photo": { "type": "string" }, "slug": { "type": "string" } }, "type": "object" }, "AdminRunDetail": { "properties": { "createdAt": { "type": "string" }, "executionState": { "additionalProperties": { "$ref": "#/components/schemas/AdminExecutionNode" }, "type": "object" }, "finishedAt": { "type": "string" }, "id": { "type": "string" }, "startedAt": { "type": "string" }, "status": { "type": "string" }, "triggerSource": { "type": "string" }, "triggeredBy": { "type": "string" }, "workflowDefinition": { "additionalProperties": {}, "type": "object" }, "workflowId": { "type": "string" }, "workflowVersion": { "type": "integer" } }, "type": "object" }, "AdminTemplateWithOrg": { "properties": { "category": { "type": "string" }, "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "isPromoted": { "type": "boolean" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "organizationSlug": { "type": "string" }, "updatedAt": { "type": "string" }, "visibility": { "type": "string" } }, "type": "object" }, "AdminUpdateOnboardingQuestionParams": { "properties": { "isActive": { "description": "Pointer to distinguish false from unset", "type": "boolean" }, "isRequired": { "description": "Pointer to distinguish false from unset", "type": "boolean" }, "metadata": { "additionalProperties": {}, "type": "object" }, "questionOrder": { "minimum": 1, "type": "integer" }, "questionText": { "type": "string" }, "questionType": { "type": "string" }, "scope": { "enum": ["user", "org"], "type": "string" } }, "type": "object" }, "AdminUpdateOnboardingQuestionSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/AdminOnboardingQuestionResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminUpdateTemplateParams": { "properties": { "isPromoted": { "type": "boolean" }, "visibility": { "enum": ["org", "public"], "type": "string" } }, "type": "object" }, "AdminUpdateWorkflowStatusSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "AdminWorkflowDetail": { "properties": { "cooldownMs": { "type": "integer" }, "createdAt": { "type": "string" }, "definition": { "additionalProperties": {}, "type": "object" }, "id": { "type": "string" }, "maxRuns": { "type": "integer" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "organizationSlug": { "type": "string" }, "remainRuns": { "type": "integer" }, "status": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "AdminWorkflowRun": { "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "status": { "type": "string" }, "triggerSource": { "type": "string" }, "triggeredBy": { "type": "string" }, "updatedAt": { "type": "string" }, "workflowId": { "type": "string" } }, "type": "object" }, "AdminWorkflowWithOrg": { "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "organizationName": { "type": "string" }, "organizationSlug": { "type": "string" }, "status": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" } }, "type": "object" }, "AnySpendOrderCallbackParams": { "properties": { "callbackMetadata": { "additionalProperties": {}, "type": "object" }, "clientReferenceId": { "type": "string" }, "event": { "type": "string" }, "orderId": { "type": "string" }, "payment": { "$ref": "#/components/schemas/AnySpendPaymentDetails" }, "status": { "type": "string" }, "txHash": { "type": "string" } }, "type": "object" }, "AnySpendOrderCallbackResponse": { "properties": { "runId": { "type": "string" } }, "type": "object" }, "AnySpendPaymentDetails": { "properties": { "dstAmount": { "type": "string" }, "dstChain": { "type": "integer" }, "dstTokenAddress": { "type": "string" }, "dstTokenDecimals": { "type": "integer" }, "dstTokenSymbol": { "type": "string" }, "recipientAddress": { "type": "string" } }, "type": "object" }, "ApproveContractDeployParams": { "properties": { "chainId": { "type": "integer" }, "constructorArgs": { "items": {}, "type": "array", "uniqueItems": false }, "deploymentMode": { "enum": ["standard", "create2", "create3"], "type": "string" }, "salt": { "description": "Custom salt for deterministic deployment", "type": "string" }, "target": { "enum": ["testnet", "mainnet"], "type": "string" }, "walletId": { "type": "string" } }, "required": ["chainId", "target", "walletId"], "type": "object" }, "ApproveContractDeploySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/ContractDeployApproval" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ApproveContractPlanParams": { "properties": { "approved": { "type": "boolean" } }, "required": ["approved"], "type": "object" }, "ApproveContractPlanSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/ContractPlanApproval" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "AvailableAssetsTokenPriceCexesSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_types.StorkAvailableAssetsResponse" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "BatchWorkflowStatsRequest": { "properties": { "workflowIds": { "items": { "type": "string" }, "maxItems": 200, "minItems": 1, "type": "array", "uniqueItems": false } }, "required": ["workflowIds"], "type": "object" }, "BatchWorkflowStatsResponse": { "additionalProperties": { "$ref": "#/components/schemas/WorkflowStatsSummary" }, "type": "object" }, "BatchWorkflowStatsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/BatchWorkflowStatsResponse" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "type": "string" } }, "type": "object" }, "BulkUpsertResultData": { "properties": { "totalReceived": { "type": "integer" }, "upsertedCount": { "type": "integer" } }, "type": "object" }, "BulkUpsertSeoPagesParams": { "properties": { "pages": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoIntegrationPage" }, "type": "array", "uniqueItems": false } }, "required": ["pages"], "type": "object" }, "BulkUpsertSeoPagesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/BulkUpsertResultData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ChatImageAttachment": { "properties": { "base64": { "type": "string" }, "ipfsUrl": { "type": "string" } }, "type": "object" }, "ChatParams": { "properties": { "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "description": { "description": "Optional - for generating new workflow", "maxLength": 500, "type": "string" }, "failedRunId": { "description": "Optional - ID of a failed run to provide error context for debugging", "maxLength": 50, "type": "string" }, "images": { "description": "Optional - images attached to the message (base64 for LLM, IPFS for storage)", "items": { "$ref": "#/components/schemas/ChatImageAttachment" }, "type": "array", "uniqueItems": false }, "lastEventIndex": { "description": "Last received event index for replay (reconnection)", "minimum": 0, "type": "integer" }, "message": { "description": "Optional on reconnect, required for new sessions", "maxLength": 10000, "type": "string" }, "name": { "description": "Optional - for generating new workflow", "maxLength": 100, "type": "string" }, "preferredMode": { "description": "Optional - user's preferred mode hint; overrides auto-classifier when set", "enum": ["planning", "building", "repair", "conversation"], "type": "string" }, "requestId": { "description": "Client-generated UUID4 for persistent session tracking (optional for legacy/inline mode)", "type": "string" }, "sessionId": { "description": "Optional - for create page (temporary session context)", "type": "string" }, "timezone": { "description": "Optional - user's IANA timezone (e.g. \"America/New_York\") for time-aware responses", "type": "string" }, "workflowId": { "description": "Optional - for edit page (existing workflow context)", "type": "string" } }, "type": "object" }, "ChatSession": { "properties": { "contextType": { "description": "ContextType indicates whether this is a \"session\" or \"workflow\" chat", "type": "string" }, "firstMessageAt": { "description": "FirstMessageAt is when the first message was sent", "type": "string" }, "lastMessageAt": { "description": "LastMessageAt is when the last message was sent", "type": "string" }, "messageCount": { "description": "MessageCount is the total number of messages in this session", "type": "integer" }, "preview": { "description": "Preview is the content of the first user message (truncated)", "type": "string" }, "sessionId": { "description": "SessionID for create-page sessions (client-generated, e.g., session_1234567890_abc)", "type": "string" }, "workflowId": { "description": "WorkflowID for edit-page sessions (server-generated UUID)", "type": "string" }, "workflowName": { "description": "WorkflowName is the name of the associated workflow (if available)", "type": "string" } }, "type": "object" }, "CheckTelegramPinSuccessResponse": { "properties": { "chat": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TelegramVerifiedChat" }, "verified": { "type": "boolean" } }, "type": "object" }, "CheckVerificationStatusResponse": { "properties": { "deployments": { "items": { "$ref": "#/components/schemas/DeploymentVerificationStatus" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "CheckX402EndpointData": { "properties": { "endpoint": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "exists": { "type": "boolean" } }, "type": "object" }, "CheckX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/CheckX402EndpointData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ClaimFaucetParams": { "properties": { "tokens": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "walletAddress": { "type": "string" } }, "type": "object" }, "ClaimFaucetResult": { "properties": { "success": { "type": "boolean" } }, "type": "object" }, "ClearOrgStorageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "deletedCount": { "example": 42, "type": "integer" }, "message": { "example": "All storage keys cleared successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ContractChatAction": { "description": "Optional explicit action", "enum": ["approve_plan", "reject_plan"], "type": "string", "x-enum-varnames": ["ContractChatActionApprovePlan", "ContractChatActionRejectPlan"] }, "ContractChatParams": { "properties": { "action": { "$ref": "#/components/schemas/ContractChatAction" }, "contractId": { "description": "ContractID is the primary identifier (optional for first message - backend creates project)", "type": "string" }, "message": { "maxLength": 51200, "type": "string" } }, "type": "object" }, "ContractDeployApproval": { "properties": { "estimate": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeploymentEstimate" }, "project": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProject" }, "taskId": { "type": "string" } }, "type": "object" }, "ContractPlanApproval": { "properties": { "project": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProject" } }, "type": "object" }, "ContractProjectListItem": { "properties": { "allDeployments": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.DeployResult" }, "type": "array", "uniqueItems": false }, "createdAt": { "type": "string" }, "currentStep": { "type": "integer" }, "deployments": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Deployments" }, "id": { "type": "string" }, "name": { "type": "string" }, "solVersion": { "type": "string" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProjectStatus" }, "testResults": { "$ref": "#/components/schemas/ContractTestSummary" }, "updatedAt": { "type": "string" } }, "type": "object" }, "ContractTestSummary": { "properties": { "failed": { "type": "integer" }, "passed": { "type": "integer" }, "total": { "type": "integer" } }, "type": "object" }, "CountTemplateVersionsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/TemplateVersionCount" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CountWorkflowRunsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/WorkflowRunCount" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CountWorkflowVersionsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/WorkflowVersionCount" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CreateAPIKeyData": { "properties": { "createdAt": { "type": "string" }, "description": { "type": "string" }, "expiresAt": { "type": "string" }, "id": { "type": "string" }, "key": { "description": "Key is the full plaintext API key, shown only once. Store it securely.", "type": "string" }, "keyPrefix": { "type": "string" }, "lastUsedAt": { "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" }, "userId": { "type": "string" } }, "type": "object" }, "CreateAPIKeyParams": { "properties": { "description": { "type": "string" }, "expiresAt": { "type": "string" }, "name": { "type": "string" }, "scope": { "type": "string" } }, "required": ["name", "scope"], "type": "object" }, "CreateAPIKeySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/CreateAPIKeyData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CreateConnectorParams": { "properties": { "data": { "additionalProperties": {}, "type": "object" }, "description": { "type": "string" }, "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["data", "name", "type"], "type": "object" }, "CreateConnectorSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Connector" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CreateWalletParams": { "properties": { "name": { "maxLength": 100, "type": "string" } }, "required": ["name"], "type": "object" }, "CreateWorkflowParams": { "properties": { "cooldownMs": { "minimum": 1000, "type": "integer" }, "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "description": { "type": "string" }, "maxRuns": { "maximum": 99999, "minimum": 1, "type": "integer" }, "name": { "type": "string" }, "propValues": { "additionalProperties": {}, "description": "Optional: template prop values", "type": "object" }, "sessionId": { "description": "Optional: migrate chat history from session to workflow", "type": "string" }, "templateId": { "description": "Optional: template ID to track fork count", "type": "string" }, "templateProps": { "description": "Optional: template prop schema (for copy-to-org with sanitized props)", "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" } }, "required": ["definition", "description", "name"], "type": "object" }, "CreateWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "CreateX402EndpointParams": { "properties": { "baseUrl": { "description": "Endpoint identity", "type": "string" }, "bodyParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "category": { "maxLength": 50, "type": "string" }, "defaultBody": { "additionalProperties": {}, "type": "object" }, "defaultHeaders": { "additionalProperties": {}, "type": "object" }, "defaultQueryParams": { "additionalProperties": {}, "description": "Default values (applied if user doesn't provide at runtime)", "type": "object" }, "description": { "maxLength": 500, "type": "string" }, "exampleBody": {}, "exampleOutput": {}, "exampleQueryParams": { "additionalProperties": {}, "description": "Examples (for AI/docs/UI)", "type": "object" }, "headerParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "method": { "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "mimeType": { "type": "string" }, "name": { "description": "Metadata (optional - AI generates if empty)", "maxLength": 100, "type": "string" }, "network": { "type": "string" }, "outputSchema": { "additionalProperties": {}, "description": "Output schema", "type": "object" }, "payTo": { "type": "string" }, "price": { "description": "Payment info (from probe)", "type": "string" }, "queryParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "description": "Input configuration (CDP-aligned flat structure)\nFormat: {\"paramName\": {\"type\": \"string\", \"description\": \"...\", \"required\": true}}", "type": "object" }, "source": { "description": "user_import or cdp_bazaar", "type": "string" }, "tags": { "items": { "type": "string" }, "maxItems": 10, "type": "array", "uniqueItems": false }, "tokenAddress": { "type": "string" }, "tokenDecimals": { "type": "integer" }, "tokenSymbol": { "type": "string" } }, "required": ["baseUrl", "network", "payTo", "price", "tokenAddress"], "type": "object" }, "CreateX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "DefinitionSummary": { "properties": { "nodes": { "additionalProperties": { "$ref": "#/components/schemas/NodeSummary" }, "type": "object" } }, "type": "object" }, "DeleteConnectorSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "DeleteOrgStorageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "Storage key deleted successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "DeleteOrgStoreSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "deletedCount": { "example": 42, "type": "integer" }, "message": { "example": "Store deleted successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "DeletePipedreamAccountSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "DeploymentVerificationStatus": { "properties": { "chainId": { "type": "integer" }, "contractAddress": { "type": "string" }, "explorerUrl": { "type": "string" }, "verified": { "type": "boolean" } }, "type": "object" }, "DepositCUSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUDepositResult" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "EphemeralRunParams": { "properties": { "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "payload": { "additionalProperties": {}, "description": "Payload is merged into the trigger result (root node output),\naccessible via {{root.result.key}} expressions. A \"triggeredAt\"\ntimestamp is always added automatically.", "type": "object" }, "propValues": { "additionalProperties": {}, "description": "PropValues are template parameter values injected into the run\ncontext, accessible via {{$props.key}} expressions.", "type": "object" }, "runId": { "description": "RunID is an optional client-generated run ID. Must start with\n\"run_\" prefix. If omitted, a run ID is generated server-side.\nUse this to subscribe to SSE stream before triggering the run.", "example": "run_abc123", "type": "string" } }, "required": ["definition"], "type": "object" }, "ExecuteX402EndpointParams": { "properties": { "body": { "additionalProperties": {}, "type": "object" }, "method": { "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "paymentHeader": { "description": "Base64-encoded X-PAYMENT from browser signing", "type": "string" }, "resourceUrl": { "type": "string" } }, "required": ["paymentHeader", "resourceUrl"], "type": "object" }, "ExecuteX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/TestX402EndpointData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GenerateSeoPagesParams": { "properties": { "dryRun": { "type": "boolean" }, "regenerate": { "type": "boolean" }, "skipAI": { "type": "boolean" } }, "type": "object" }, "GenerateSeoPagesSuccessResponse": { "properties": { "message": { "type": "string" } }, "type": "object" }, "GenerateTelegramPinSuccessResponse": { "properties": { "botUsername": { "type": "string" }, "dmLink": { "type": "string" }, "expiresAt": { "type": "string" }, "groupLink": { "type": "string" }, "pin": { "type": "string" } }, "type": "object" }, "GenerateX402MetadataData": { "properties": { "category": { "type": "string" }, "description": { "type": "string" }, "name": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "GenerateX402MetadataParams": { "properties": { "exampleInput": {}, "exampleOutput": {}, "inputSchema": { "additionalProperties": {}, "type": "object" }, "method": { "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "network": { "type": "string" }, "outputSchema": { "additionalProperties": {}, "type": "object" }, "price": { "type": "string" }, "resourceUrl": { "type": "string" }, "tokenSymbol": { "type": "string" } }, "required": ["resourceUrl"], "type": "object" }, "GenerateX402MetadataSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/GenerateX402MetadataData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetAPIKeySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIKey" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetActionSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ActionDefinition" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetAllStatisticsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.NodeStatistics" }, "type": "object" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetCUBalanceSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUGetBalanceResult" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetCUCostsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUCostsResult" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetCUUsageSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUsageSummary" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetChatHistorySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ChatMessage" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "type": "string" } }, "type": "object" }, "GetConnectTokenSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PipedreamConnectToken" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetConnectorSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Connector" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetConnectorTypeSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorDefinition" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetContractProjectSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ContractProject" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetFailureRateSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.FailureRateStats" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetLatencyTimeSeriesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/LatencyTimeSeriesData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetMultipleOrgStorageParams": { "properties": { "keys": { "items": { "type": "string" }, "maxItems": 500, "minItems": 1, "type": "array", "uniqueItems": false }, "store": { "description": "Optional store name (defaults to \"default\")", "type": "string" } }, "required": ["keys"], "type": "object" }, "GetMultipleOrgStorageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "additionalProperties": {}, "type": "object" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetOnboardingQuestionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_OnboardingQuestionResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetOnboardingStatusSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/OnboardingStatusResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetOrgStorageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": {}, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetOrgWebhookSecretSuccessResponse": { "properties": { "secret": { "type": "string" }, "webhookUrl": { "type": "string" } }, "type": "object" }, "GetOutboundWebhookDeliverySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDelivery" }, "message": { "example": "Success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "GetPipedreamAccountSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PipedreamAccount" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetPublicMetaResponse": { "properties": { "description": { "description": "Description is a short summary of what the workflow does.", "type": "string" }, "name": { "description": "Name is the display name of the workflow.", "type": "string" }, "workflowId": { "description": "WorkflowID is the workflow identifier.", "type": "string" } }, "type": "object" }, "GetPublicMetaSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/GetPublicMetaResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetPublicRunByTxResponse": { "properties": { "executionState": { "additionalProperties": { "$ref": "#/components/schemas/PublicNodeState" }, "description": "Current state of each node", "type": "object" }, "finishedAt": { "type": "string" }, "nodes": { "additionalProperties": { "$ref": "#/components/schemas/PublicWorkflowNode" }, "description": "Step-by-step execution data", "type": "object" }, "runId": { "type": "string" }, "startedAt": { "type": "string" }, "status": { "description": "\"running\", \"success\", \"failure\"", "type": "string" }, "workflowId": { "type": "string" } }, "type": "object" }, "GetPublicRunByTxSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/GetPublicRunByTxResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetPublicWidgetResponse": { "properties": { "widget": { "$ref": "#/components/schemas/PublicWidgetData" }, "workflowId": { "description": "WorkflowID is the workflow identifier", "type": "string" }, "workflowName": { "description": "WorkflowName is the display name of the workflow", "type": "string" } }, "type": "object" }, "GetPublicWidgetSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/GetPublicWidgetResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetRecentActivitySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RecentRun" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetRunSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Run" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetRunsTimeSeriesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/RunsTimeSeriesData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetSeoPageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoIntegrationPage" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetTemplateVersionSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetTopErrorsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TopError" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetTriggerInfoSuccessResponse": { "properties": { "code": { "type": "integer" }, "data": { "$ref": "#/components/schemas/TriggerInfoResponse" }, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" }, "GetTriggerSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TriggerDefinition" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetUsageTimeSeriesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/UsageTimeSeriesData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetWorkflowVersionSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "GetX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ImportX402EndpointData": { "properties": { "endpoint": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "paymentDetails": { "$ref": "#/components/schemas/TestX402PaymentDetails" } }, "type": "object" }, "ImportX402EndpointParams": { "properties": { "body": { "additionalProperties": {}, "type": "object" }, "description": { "maxLength": 500, "type": "string" }, "method": { "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "name": { "description": "Optional: User can override AI-generated values", "maxLength": 100, "type": "string" }, "resourceUrl": { "type": "string" }, "walletAddress": { "description": "Optional: Specify which wallet to use for payment.\nIf not provided, uses the organization's default wallet.", "type": "string" } }, "required": ["resourceUrl"], "type": "object" }, "ImportX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/ImportX402EndpointData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "LatencyTimeSeriesData": { "properties": { "actionId": { "description": "e.g., \"send-erc20-token\"", "type": "string" }, "data": { "description": "Time-series data points", "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.LatencyTimeSeriesPoint" }, "type": "array", "uniqueItems": false }, "granularity": { "description": "\"hourly\" or \"daily\"", "type": "string" } }, "type": "object" }, "LatestPricesTokenPriceCexesSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_types.StorkLatestPricesResponse" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListAPIKeysSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_APIKey" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListActionsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ActionDefinition" }, "type": "array", "uniqueItems": false }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListChatSessionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_ChatSession" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListConnectorTypesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorDefinition" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListConnectorsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Connector" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListContractProjectsSlimSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_ContractProjectListItem" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "type": "string" } }, "type": "object" }, "ListInvitesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_InviteWithOrgName" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListLogicActionsSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ActionDefinition" }, "type": "array", "uniqueItems": false }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListMembersSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OrganizationMember" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListOrgInvitesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OrganizationInvite" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListOrgStorageKeysSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-string" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListOrgStoresSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_repository_organizationstorage_StoreInfo" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListOrganizationsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Organization" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListOutboundWebhookDeliveriesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OutboundWebhookDelivery" }, "message": { "example": "Success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "ListPipedreamActionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/PipedreamAction" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListPipedreamAppsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/PipedreamApp" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListRunsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_RunListItem" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListSeoPagesData": { "properties": { "pages": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoIntegrationPage" }, "type": "array", "uniqueItems": false }, "total": { "type": "integer" } }, "type": "object" }, "ListSeoPagesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/ListSeoPagesData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListTelegramChatsSuccessResponse": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TelegramVerifiedChat" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "ListTemplateVersionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/TemplateVersionsData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListTriggersSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.TriggerDefinition" }, "type": "array", "uniqueItems": false }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListWalletsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_WalletResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListWorkflowVersionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/WorkflowVersionsData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListWorkflowsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-schemas_WorkflowListItem" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ListX402EndpointsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_X402Endpoint" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "NodeSummary": { "properties": { "branch": { "type": "string" }, "children": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "position": { "$ref": "#/components/schemas/Position" }, "type": { "type": "string" } }, "type": "object" }, "OnboardingAnalyticsResponse": { "properties": { "averageResponseTime": { "description": "in seconds", "example": 120, "type": "integer" }, "completedOnboarding": { "example": 750, "type": "integer" }, "completionRate": { "example": 75, "type": "number" }, "totalUsers": { "example": 1000, "type": "integer" } }, "type": "object" }, "OnboardingQuestionResponse": { "properties": { "id": { "example": "onboarding_q1", "type": "string" }, "isRequired": { "example": true, "type": "boolean" }, "metadata": { "additionalProperties": {}, "type": "object" }, "questionOrder": { "example": 1, "type": "integer" }, "questionText": { "example": "What brings you to B3OS?", "type": "string" }, "questionType": { "example": "text", "type": "string" } }, "type": "object" }, "OnboardingResponseRequest": { "properties": { "questionId": { "type": "string" }, "responseData": { "additionalProperties": {}, "type": "object" }, "responseType": { "type": "string" } }, "required": ["questionId", "responseData", "responseType"], "type": "object" }, "OnboardingStatusResponse": { "properties": { "completedAt": { "example": "2024-01-21T10:30:00Z", "type": "string" }, "onboardingCompleted": { "example": false, "type": "boolean" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_APIKey": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.APIKey" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Connector": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Connector" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_InviteWithOrgName": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.InviteWithOrgName" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_Organization": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Organization" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OrganizationInvite": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationInvite" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OrganizationMember": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationMember" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_OutboundWebhookDelivery": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDelivery" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_RunListItem": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunListItem" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_X402Endpoint": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_repository_organizationstorage_StoreInfo": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_repository_organizationstorage.StoreInfo" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminAIProfileWithOrg": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminAIProfileWithOrg" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminChatConversation": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminChatConversation" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminChatMessage": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminChatMessage" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminOrgKnowledgeEntry": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminOrgKnowledgeEntry" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminOrganizationWithBalance": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminOrganizationWithBalance" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminTemplateWithOrg": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminTemplateWithOrg" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminWorkflowRun": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminWorkflowRun" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_AdminWorkflowWithOrg": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/AdminWorkflowWithOrg" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_ChatSession": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/ChatSession" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_ContractProjectListItem": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/ContractProjectListItem" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_OnboardingQuestionResponse": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/OnboardingQuestionResponse" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_WalletResponse": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/WalletResponse" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-schemas_WorkflowListItem": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/WorkflowListItem" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PaginatedData-string": { "properties": { "hasMore": { "type": "boolean" }, "items": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "PipedreamAccount": { "properties": { "appName": { "type": "string" }, "appSlug": { "type": "string" }, "createdAt": { "type": "string" }, "healthy": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "PipedreamAction": { "properties": { "description": { "type": "string" }, "key": { "type": "string" }, "name": { "type": "string" }, "version": { "type": "string" } }, "type": "object" }, "PipedreamApp": { "properties": { "authType": { "type": "string" }, "categories": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "description": { "type": "string" }, "id": { "type": "string" }, "imgSrc": { "type": "string" }, "name": { "type": "string" }, "nameSlug": { "type": "string" } }, "type": "object" }, "PipedreamConnectToken": { "properties": { "expiresAt": { "type": "string" }, "token": { "type": "string" } }, "type": "object" }, "Position": { "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "type": "object" }, "ProbeX402EndpointParams": { "properties": { "body": { "description": "Optional body to send with the probe request.\nSome endpoints require valid input before returning 402.", "type": "string" }, "method": { "description": "Optional HTTP method to use. If not specified, tries POST then GET.\nValid values: GET, POST, PUT, PATCH, DELETE", "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "resourceUrl": { "type": "string" } }, "required": ["resourceUrl"], "type": "object" }, "ProbeX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402EndpointProbeResult" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "PublicNodeState": { "properties": { "finishedAt": { "description": "When execution finished", "type": "string" }, "startedAt": { "description": "When execution started", "type": "string" }, "status": { "description": "\"pending\", \"running\", \"success\", \"failure\", \"skipped\"", "type": "string" }, "type": { "description": "Node type (e.g., \"erc20-receive\", \"send-slack-message\")", "type": "string" } }, "type": "object" }, "PublicWidgetData": { "description": "Widget contains the public widget configuration with derived trigger values", "properties": { "buttonLabel": { "description": "ButtonLabel is the text displayed on the trigger button", "type": "string" }, "chainId": { "description": "ChainID is derived from the trigger's chainId", "type": "integer" }, "description": { "description": "Description explains what the workflow does", "type": "string" }, "enabled": { "description": "Enabled controls whether the public widget is active", "type": "boolean" }, "maxAmount": { "description": "MaxAmount is the maximum amount allowed per trigger (in smallest unit)", "type": "string" }, "minAmount": { "description": "MinAmount is the minimum amount required to trigger (in smallest unit)", "type": "string" }, "recipientAddress": { "description": "RecipientAddress is derived from the trigger's toAddress/contractAddress", "type": "string" }, "title": { "description": "Title is the display title for the widget", "type": "string" }, "tokenAddress": { "description": "TokenAddress is derived from the trigger's tokenAddress (empty for native token)", "type": "string" } }, "type": "object" }, "PublicWorkflowNode": { "properties": { "children": { "description": "Child node IDs", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "loopBody": { "description": "Loop body node IDs (for-each only)", "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "type": { "description": "Node type", "type": "string" } }, "type": "object" }, "PublishWidgetParams": { "properties": { "buttonLabel": { "description": "ButtonLabel is the text displayed on the trigger button (optional, defaults to \"Send\")", "maxLength": 50, "type": "string" }, "description": { "description": "Description explains what the workflow does (optional)", "maxLength": 500, "type": "string" }, "maxAmount": { "description": "MaxAmount is the maximum amount allowed per trigger (optional)", "type": "string" }, "minAmount": { "description": "MinAmount is the minimum amount required to trigger (optional)", "type": "string" }, "title": { "description": "Title is the display title for the widget (required)", "maxLength": 100, "type": "string" } }, "required": ["title"], "type": "object" }, "PublishWidgetSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/PublicWidgetData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "PublishWorkflowParams": { "properties": { "expectedVersion": { "minimum": 1, "type": "integer" } }, "type": "object" }, "RecentRunItem": { "properties": { "finishedAt": { "type": "string" }, "id": { "type": "string" }, "startedAt": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "RecommendTemplatesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template" }, "type": "array", "uniqueItems": false }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "RefillWorkflowData": { "properties": { "remainRuns": { "type": "integer" }, "workflowId": { "type": "string" } }, "type": "object" }, "RefillWorkflowParams": { "properties": { "remainRuns": { "minimum": 1, "type": "integer" } }, "required": ["remainRuns"], "type": "object" }, "RefillWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/RefillWorkflowData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RegenerateDescriptionsData": { "properties": { "aiDescription": { "type": "string" }, "aiName": { "type": "string" } }, "type": "object" }, "RegenerateDescriptionsSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/RegenerateDescriptionsData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ReplayOutboundWebhookDeliverySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDelivery" }, "message": { "example": "Success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "RetryOutboundWebhookDeliverySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OutboundWebhookDelivery" }, "message": { "example": "Success", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "RevokeAPIKeySuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RollbackTemplateParams": { "properties": { "targetVersion": { "minimum": 1, "type": "integer" } }, "required": ["targetVersion"], "type": "object" }, "RollbackTemplateSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RollbackWorkflowParams": { "properties": { "expectedCurrentVersion": { "minimum": 1, "type": "integer" }, "targetVersion": { "minimum": 1, "type": "integer" } }, "required": ["targetVersion"], "type": "object" }, "RollbackWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RunParams": { "properties": { "payload": { "additionalProperties": {}, "description": "Optional payload", "type": "object" }, "runId": { "description": "Optional run ID. If provided, must start with \"run_\" prefix.\nUse this to subscribe to SSE stream before triggering the run.", "type": "string" }, "version": { "description": "Optional version number. When set, run this specific version instead of\nthe default (which prioritizes draft). Useful for testing the live version\nwhile a draft exists.", "type": "integer" } }, "type": "object" }, "RunPipedreamActionParams": { "properties": { "accountId": { "type": "string" }, "configuredProps": { "additionalProperties": {}, "type": "object" } }, "required": ["accountId", "configuredProps"], "type": "object" }, "RunPipedreamActionSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "additionalProperties": {}, "type": "object" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RunResponse": { "properties": { "runId": { "example": "run_c9i6j8k2l0m3", "type": "string" } }, "type": "object" }, "RunSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/RunResponse" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "RunsTimeSeriesData": { "properties": { "data": { "description": "Time-series data points", "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RunsTimeSeriesPoint" }, "type": "array", "uniqueItems": false }, "granularity": { "description": "\"hourly\" or \"daily\"", "type": "string" } }, "type": "object" }, "SearchHit": { "properties": { "category": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "score": { "type": "number" }, "status": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "type": { "type": "string" }, "workflowType": { "type": "string" } }, "type": "object" }, "SearchResponse": { "properties": { "processingTimeMs": { "type": "integer" }, "query": { "type": "string" }, "results": { "items": { "$ref": "#/components/schemas/SearchHit" }, "type": "array", "uniqueItems": false }, "totalHits": { "type": "integer" } }, "type": "object" }, "SetOrgStorageParams": { "properties": { "key": { "maxLength": 255, "minLength": 1, "type": "string" }, "store": { "description": "Optional store name (defaults to \"default\")", "type": "string" }, "value": {} }, "required": ["key", "value"], "type": "object" }, "SetOrgStorageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "Storage value set successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "SubmitOnboardingResponsesParams": { "properties": { "responses": { "items": { "$ref": "#/components/schemas/OnboardingResponseRequest" }, "minItems": 1, "type": "array", "uniqueItems": false } }, "required": ["responses"], "type": "object" }, "SubmitOnboardingResponsesSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "message": { "example": "Onboarding completed successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "TemplateVersionCount": { "properties": { "total": { "type": "integer" } }, "type": "object" }, "TemplateVersionsData": { "properties": { "currentVersion": { "type": "integer" }, "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Template" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" }, "TestActionData": { "properties": { "actionType": { "type": "string" }, "cuCost": { "type": "number" }, "error": { "$ref": "#/components/schemas/ActionTestError" }, "executionTimeMs": { "type": "integer" }, "requiresGas": { "type": "boolean" }, "result": { "additionalProperties": {}, "type": "object" }, "success": { "type": "boolean" } }, "type": "object" }, "TestActionParams": { "properties": { "connector": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ConnectorReference" }, "inputs": { "additionalProperties": {}, "type": "object" } }, "required": ["inputs"], "type": "object" }, "TestActionSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/TestActionData" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "TestX402EndpointData": { "description": "Reuse same response structure", "properties": { "error": { "type": "string" }, "paymentDetails": { "$ref": "#/components/schemas/TestX402PaymentDetails" }, "resource": {}, "statusCode": { "type": "integer" }, "success": { "type": "boolean" } }, "type": "object" }, "TestX402EndpointParams": { "properties": { "body": { "additionalProperties": {}, "type": "object" }, "method": { "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"], "type": "string" }, "resourceUrl": { "type": "string" } }, "required": ["resourceUrl"], "type": "object" }, "TestX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/TestX402EndpointData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "TestX402PaymentDetails": { "properties": { "amountPaid": { "type": "string" }, "asset": { "description": "Token address used for payment", "type": "string" }, "network": { "type": "string" }, "payer": { "type": "string" }, "transaction": { "description": "May be null if server doesn't return it", "type": "string" } }, "type": "object" }, "TriggerInfoResponse": { "properties": { "emailAddress": { "description": "Pipedream-generated email for email triggers", "type": "string" } }, "type": "object" }, "UpdateCUThresholdSuccessResponse": { "properties": { "code": { "example": 0, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.CUUpdateThresholdResult" }, "message": { "example": "successfully", "type": "string" }, "requestId": { "example": "req_abc123", "type": "string" } }, "type": "object" }, "UpdateConnectorParams": { "properties": { "data": { "additionalProperties": {}, "type": "object" }, "description": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "UpdateConnectorSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Connector" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "UpdateSeoPageParams": { "properties": { "faqs": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoFAQ" }, "type": "array", "uniqueItems": false }, "heroDescription": { "type": "string" }, "isPublished": { "type": "boolean" }, "keywords": { "items": { "type": "string" }, "type": "array", "uniqueItems": false }, "metaDescription": { "type": "string" }, "title": { "type": "string" }, "useCases": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoUseCase" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "UpdateSeoPageSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.SeoIntegrationPage" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "UpdateWorkflowParams": { "properties": { "cooldownMs": { "minimum": 1000, "type": "integer" }, "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "description": { "maxLength": 1000, "type": "string" }, "expectedCurrentVersion": { "minimum": 1, "type": "integer" }, "maxRuns": { "maximum": 99999, "minimum": 1, "type": "integer" }, "name": { "maxLength": 255, "minLength": 1, "type": "string" }, "propValues": { "additionalProperties": {}, "type": "object" }, "skipAIGeneration": { "type": "boolean" }, "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" } }, "required": ["definition"], "type": "object" }, "UpdateWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "UpdateWorkflowUIMetadataParams": { "properties": { "expectedCurrentVersion": { "minimum": 1, "type": "integer" }, "uiMetadata": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowUIMetadata" } }, "required": ["uiMetadata"], "type": "object" }, "UpdateWorkflowUIMetadataResponseData": { "properties": { "version": { "type": "integer" } }, "type": "object" }, "UpdateWorkflowUIMetadataSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/UpdateWorkflowUIMetadataResponseData" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "UsageTimeSeriesData": { "properties": { "data": { "description": "Time-series data points", "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.UsageTimeSeriesPoint" }, "type": "array", "uniqueItems": false }, "granularity": { "description": "\"hourly\" or \"daily\"", "type": "string" }, "nodeId": { "description": "e.g., \"send-erc20-token\"", "type": "string" }, "nodeType": { "description": "\"action\" or \"trigger\"", "type": "string" } }, "type": "object" }, "ValidateWorkflowParams": { "properties": { "definition": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowDefinition" }, "name": { "type": "string" } }, "required": ["definition"], "type": "object" }, "ValidateWorkflowSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/ValidationResult" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "ValidationErrorItem": { "properties": { "field": { "description": "Optional field name", "type": "string" }, "message": { "description": "Human readable error message", "type": "string" }, "nodeId": { "description": "Optional node ID", "type": "string" }, "nodeName": { "description": "Optional node display name", "type": "string" }, "type": { "description": "name, nodes, root, connectivity, pattern, variable", "type": "string" } }, "type": "object" }, "ValidationResult": { "properties": { "errors": { "items": { "$ref": "#/components/schemas/ValidationErrorItem" }, "type": "array", "uniqueItems": false }, "valid": { "type": "boolean" } }, "type": "object" }, "VerifyContractParams": { "properties": { "chainId": { "type": "integer" }, "contractAddress": { "description": "Optional - uses address from deployment if not provided", "type": "string" } }, "required": ["chainId"], "type": "object" }, "VerifyContractResponse": { "properties": { "contractAddress": { "type": "string" }, "explorerUrl": { "type": "string" }, "message": { "type": "string" }, "status": { "example": "verified", "type": "string" } }, "type": "object" }, "VerifyX402EndpointParams": { "properties": { "bodyParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "exampleBody": {}, "exampleOutput": {}, "exampleQueryParams": { "additionalProperties": {}, "description": "Examples", "type": "object" }, "headerParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "type": "object" }, "outputSchema": { "additionalProperties": {}, "description": "Output schema", "type": "object" }, "queryParams": { "additionalProperties": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ParamDefinition" }, "description": "Input configuration (CDP-aligned flat structure)", "type": "object" } }, "type": "object" }, "VerifyX402EndpointSuccessResponse": { "properties": { "code": { "example": 200, "type": "integer" }, "data": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.X402Endpoint" }, "message": { "example": "success", "type": "string" }, "requestId": { "example": "abc-123", "type": "string" } }, "type": "object" }, "WalletResponse": { "properties": { "address": { "type": "string" }, "createdAt": { "type": "integer" }, "id": { "type": "string" }, "isDefault": { "type": "boolean" }, "name": { "type": "string" }, "organizationId": { "type": "string" }, "turnkeySubOrgId": { "type": "string" }, "turnkeyWalletId": { "type": "string" }, "updatedAt": { "type": "integer" } }, "type": "object" }, "WithdrawWalletParams": { "properties": { "amount": { "type": "string" }, "chainId": { "minimum": 1, "type": "integer" }, "recipientAddress": { "type": "string" }, "tokenAddress": { "type": "string" } }, "required": ["amount", "chainId", "recipientAddress", "tokenAddress"], "type": "object" }, "WithdrawWalletResponse": { "properties": { "blockNumber": { "type": "integer" }, "transactionHash": { "type": "string" } }, "type": "object" }, "WorkflowConnectorInfo": { "properties": { "type": { "type": "string" } }, "type": "object" }, "WorkflowListItem": { "properties": { "chainIds": { "items": { "type": "integer" }, "type": "array", "uniqueItems": false }, "connectors": { "items": { "$ref": "#/components/schemas/WorkflowConnectorInfo" }, "type": "array", "uniqueItems": false }, "cooldownMs": { "type": "integer" }, "createdAt": { "type": "string" }, "createdBy": { "type": "string" }, "definitionSummary": { "$ref": "#/components/schemas/DefinitionSummary" }, "description": { "type": "string" }, "hasDraft": { "type": "boolean" }, "hasLiveVersion": { "type": "boolean" }, "id": { "type": "string" }, "lastTriggeredAt": { "type": "string" }, "maxRuns": { "type": "integer" }, "name": { "type": "string" }, "nodeCount": { "type": "integer" }, "organizationId": { "type": "string" }, "publicWidgetEnabled": { "type": "boolean" }, "remainRuns": { "type": "integer" }, "status": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowStatus" }, "triggerName": { "type": "string" }, "triggerType": { "description": "Pre-extracted fields (avoid FE parsing full definition).", "type": "string" }, "type": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.WorkflowType" }, "updatedAt": { "type": "string" }, "version": { "type": "integer" } }, "type": "object" }, "WorkflowRunCount": { "properties": { "failure": { "type": "integer" }, "running": { "type": "integer" }, "success": { "type": "integer" }, "total": { "type": "integer" }, "waiting": { "type": "integer" } }, "type": "object" }, "WorkflowStatsSummary": { "properties": { "counts": { "$ref": "#/components/schemas/WorkflowRunCount" }, "recentRuns": { "items": { "$ref": "#/components/schemas/RecentRunItem" }, "type": "array", "uniqueItems": false } }, "type": "object" }, "WorkflowVersionCount": { "properties": { "total": { "type": "integer" } }, "type": "object" }, "WorkflowVersionsData": { "properties": { "currentVersion": { "type": "integer" }, "hasMore": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.Workflow" }, "type": "array", "uniqueItems": false }, "limit": { "type": "integer" }, "offset": { "type": "integer" } }, "type": "object" } } }, "info": { "description": "Workflow management API for B3OS", "title": "B3OS Workflow API", "version": "1.0" }, "paths": { "/organizations/{orgId}/webhook-secret": { "get": { "description": "Get the organization's webhook secret for triggering workflows via integration webhooks", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/data" } ], "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" } } }, "description": "OK" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "tags": ["organizations"] } }, "/v1/actions": { "get": { "description": "List all available actions, optionally filtered by tags", "parameters": [ { "description": "Filter by tags (comma-separated or multiple params). Actions must have ALL specified tags (AND logic).", "in": "query", "name": "tags", "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListActionsSuccessResponse" } } }, "description": "OK" } }, "tags": ["actions"] } }, "/v1/actions/{type}": { "get": { "description": "Get an action definition by type", "parameters": [ { "description": "Action type", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetActionSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/actions/{type}/test": { "post": { "description": "Test an action with custom payload", "parameters": [ { "description": "Action type", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/TestActionParams", "summary": "body", "description": "Test parameters" } ] } } }, "description": "Test parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestActionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "402": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Payment Required" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Gateway" } }, "tags": ["Action"] } }, "/v1/admin/ai-profiles": { "get": { "description": "List all org AI profiles with organization info and memory counts", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Search by org name or slug", "in": "query", "name": "search", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListAIProfilesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List all org AI profiles (admin)", "tags": ["Admin"] } }, "/v1/admin/ai-prompts": { "get": { "description": "Returns all prompt templates used by the AI agent", "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListAIPromptsSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "List all AI prompt templates (admin)", "tags": ["Admin"] } }, "/v1/admin/chat-conversations": { "get": { "description": "List AI chat conversations grouped by workflow/session, with message counts", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Filter by organization ID", "in": "query", "name": "org_id", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListChatConversationsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List chat conversations (admin)", "tags": ["Admin"] } }, "/v1/admin/chat-messages": { "get": { "description": "List all AI chat messages across organizations, optionally filtered by org, workflow, or session", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Filter by organization ID", "in": "query", "name": "org_id", "schema": { "type": "string" } }, { "description": "Filter by workflow ID", "in": "query", "name": "workflow_id", "schema": { "type": "string" } }, { "description": "Filter by session ID", "in": "query", "name": "session_id", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListChatMessagesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List all chat messages (admin)", "tags": ["Admin"] } }, "/v1/admin/onboarding/analytics": { "get": { "description": "[ADMIN] Get onboarding analytics", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminGetOnboardingAnalyticsSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["admin", "onboarding"] } }, "/v1/admin/onboarding/questions": { "get": { "description": "[ADMIN] Get all onboarding questions (including inactive)", "parameters": [ { "description": "Scope: 'user' or 'org' (empty = all)", "in": "query", "name": "scope", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminGetAllOnboardingQuestionsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["admin", "onboarding"] }, "post": { "description": "[ADMIN] Create a new onboarding question", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/AdminCreateOnboardingQuestionParams", "summary": "body", "description": "Question data" } ] } } }, "description": "Question data", "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminCreateOnboardingQuestionSuccessResponse" } } }, "description": "Created" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["admin", "onboarding"] } }, "/v1/admin/onboarding/questions/{questionId}": { "delete": { "description": "[ADMIN] Delete an onboarding question", "parameters": [ { "description": "Question ID", "in": "path", "name": "questionId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminDeleteOnboardingQuestionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["admin", "onboarding"] }, "patch": { "description": "[ADMIN] Update an existing onboarding question", "parameters": [ { "description": "Question ID", "in": "path", "name": "questionId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/AdminUpdateOnboardingQuestionParams", "summary": "body", "description": "Update data" } ] } } }, "description": "Update data", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminUpdateOnboardingQuestionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["admin", "onboarding"] } }, "/v1/admin/organizations": { "get": { "description": "List all organizations with CU balance and member count", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Search by name or slug", "in": "query", "name": "search", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListOrganizationsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List all organizations (admin)", "tags": ["Admin"] } }, "/v1/admin/organizations/{orgId}": { "get": { "description": "Get detailed organization info with members and workflow count", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminGetOrganizationSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Get organization details (admin)", "tags": ["Admin"] } }, "/v1/admin/organizations/{orgId}/cu/adjust": { "post": { "description": "Adjust CU balance for any organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_cu.AdjustParams", "summary": "body", "description": "Adjust parameters" } ] } } }, "description": "Adjust parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdjustCUSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Adjust CU (admin)", "tags": ["Admin"] } }, "/v1/admin/organizations/{orgId}/cu/deposit": { "post": { "description": "Deposit CU to any organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_cu.DepositParams", "summary": "body", "description": "Deposit parameters" } ] } } }, "description": "Deposit parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DepositCUSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Deposit CU (admin)", "tags": ["Admin"] } }, "/v1/admin/organizations/{orgId}/knowledge": { "get": { "description": "List knowledge/memory entries for an organization with optional source_type filter", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Filter by source type (memory, manual, workflow, connector, run_pattern)", "in": "query", "name": "source_type", "schema": { "type": "string" } }, { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListOrgKnowledgeSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List org knowledge entries (admin)", "tags": ["Admin"] } }, "/v1/admin/runs/{runId}": { "get": { "description": "Retrieve detailed run info including execution state", "parameters": [ { "description": "Run ID", "in": "path", "name": "runId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminGetRunSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Get run details (admin)", "tags": ["Admin"] } }, "/v1/admin/templates": { "get": { "description": "List all workflow templates with organization info and filters", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Search by template name", "in": "query", "name": "search", "schema": { "type": "string" } }, { "description": "Filter by visibility: org, public", "in": "query", "name": "visibility", "schema": { "type": "string" } }, { "description": "Filter by promoted status: true, false", "in": "query", "name": "isPromoted", "schema": { "type": "string" } }, { "description": "Filter by organization ID", "in": "query", "name": "orgId", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListTemplatesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List all templates (admin)", "tags": ["Admin"] } }, "/v1/admin/templates/{templateId}": { "patch": { "description": "Update template visibility and/or promoted status", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/AdminUpdateTemplateParams", "summary": "body", "description": "Update parameters" } ] } } }, "description": "Update parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Update template (admin)", "tags": ["Admin"] } }, "/v1/admin/workflows": { "get": { "description": "List all workflows with organization info and filters", "parameters": [ { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Filter by status: draft, active, paused, archived", "in": "query", "name": "status", "schema": { "type": "string" } }, { "description": "Search by workflow name", "in": "query", "name": "search", "schema": { "type": "string" } }, { "description": "Filter by organization ID", "in": "query", "name": "orgId", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListWorkflowsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List all workflows (admin)", "tags": ["Admin"] } }, "/v1/admin/workflows/{workflowId}": { "get": { "description": "Get detailed workflow info including definition", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "workflowId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminGetWorkflowSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Get workflow details (admin)", "tags": ["Admin"] } }, "/v1/admin/workflows/{workflowId}/runs": { "get": { "description": "List runs for a workflow with pagination", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "workflowId", "required": true, "schema": { "type": "string" } }, { "description": "Limit (1-100, default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminListWorkflowRunsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "List workflow runs (admin)", "tags": ["Admin"] } }, "/v1/admin/workflows/{workflowId}/{action}": { "post": { "description": "Change workflow status (publish, pause, resume, archive)", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "workflowId", "required": true, "schema": { "type": "string" } }, { "description": "Action (publish, pause, resume, archive)", "in": "path", "name": "action", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminUpdateWorkflowStatusSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Update workflow status (admin)", "tags": ["Admin"] } }, "/v1/ai/workflow/chat/history": { "get": { "description": "Get chat history for a workflow or session", "parameters": [ { "description": "Workflow ID (for edit page)", "in": "query", "name": "workflowId", "schema": { "type": "string" } }, { "description": "Session ID (for create page)", "in": "query", "name": "sessionId", "schema": { "type": "string" } }, { "description": "Maximum number of messages to return (default: 20, max: 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetChatHistorySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/ai/workflow/chat/sessions": { "get": { "description": "List chat sessions for the current organization", "parameters": [ { "description": "Maximum number of sessions to return (default: 20, max: 50)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default: 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListChatSessionsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } } } }, "/v1/ai/workflow/chat/stream": { "post": { "description": "Stream AI chat for workflow generation and updates via SSE", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ChatParams", "summary": "request", "description": "Chat request parameters" } ] } } }, "description": "Chat request parameters", "required": true }, "responses": { "200": { "content": { "text/event-stream": { "schema": { "type": "string" } } }, "description": "SSE stream with events: chunk, node, done, error" }, "400": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/api-keys": { "get": { "description": "List all API keys for the current organization", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListAPIKeysSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } }, "post": { "description": "Create a new API key for the current organization", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/CreateAPIKeyParams", "summary": "request", "description": "API key details" } ] } } }, "description": "API key details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAPIKeySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/api-keys/{id}": { "delete": { "description": "Revoke an API key by ID", "parameters": [ { "description": "API key ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevokeAPIKeySuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "get": { "description": "Get a single API key by ID", "parameters": [ { "description": "API key ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetAPIKeySuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/connector-types": { "get": { "description": "List all available connector types", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListConnectorTypesSuccessResponse" } } }, "description": "OK" } } } }, "/v1/connector-types/{type}": { "get": { "description": "Get a connector type definition by type", "parameters": [ { "description": "Connector type", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetConnectorTypeSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/connectors": { "get": { "description": "List all connectors for the current user", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListConnectorsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } }, "post": { "description": "Create a new connector", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/CreateConnectorParams", "summary": "request", "description": "Connector details" } ] } } }, "description": "Connector details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateConnectorSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/connectors/{id}": { "delete": { "description": "Delete a connector", "parameters": [ { "description": "Connector ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteConnectorSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "get": { "description": "Get a connector by ID", "parameters": [ { "description": "Connector ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetConnectorSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "put": { "description": "Update a connector", "parameters": [ { "description": "Connector ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/UpdateConnectorParams", "summary": "request", "description": "Connector update details" } ] } } }, "description": "Connector update details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateConnectorSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/contract": { "post": { "description": "Create a new contract project", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/internal_app_api_http_v1_contract.SaveProjectRequest", "summary": "body", "description": "Project data" } ] } } }, "description": "Project data", "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "Created" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/chat/stream": { "post": { "description": "Stream AI chat for smart contract development via SSE", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ContractChatParams", "summary": "request", "description": "Contract chat request parameters" } ] } } }, "description": "Contract chat request parameters", "required": true }, "responses": { "200": { "content": { "text/event-stream": { "schema": { "type": "string" } } }, "description": "SSE stream with contract events" }, "400": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/contract/projects/{id}/stream": { "get": { "description": "SSE endpoint for real-time contract status updates (test results, audit, etc.)", "parameters": [ { "description": "Contract Project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "text/event-stream": { "schema": { "type": "string" } } }, "description": "SSE stream with contract events" }, "400": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Stream contract project events", "tags": ["contracts"] } }, "/v1/contract/session/{sessionId}": { "get": { "description": "Get a contract project by session ID", "parameters": [ { "description": "Session ID", "in": "path", "name": "sessionId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/contract/{id}": { "delete": { "description": "Delete a contract project by ID", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "get": { "description": "Get a contract project by ID", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "put": { "description": "Update a contract project", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/internal_app_api_http_v1_contract.SaveProjectRequest", "summary": "body", "description": "Project data" } ] } } }, "description": "Project data", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/{id}/audit": { "post": { "description": "Run audit for a contract project", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/{id}/deploy/approve": { "post": { "description": "Approve and initiate contract deployment to testnet or mainnet", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ApproveContractDeployParams", "summary": "request", "description": "Deployment parameters" } ] } } }, "description": "Deployment parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveContractDeploySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/contract/{id}/download": { "get": { "description": "Download contract project as Foundry ZIP", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/zip": { "schema": { "type": "file" } } }, "description": "OK" }, "404": { "content": { "application/zip": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/zip": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/{id}/fix": { "post": { "description": "Trigger AI auto-fix for a contract with failed tests", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/{id}/plan/approve": { "post": { "description": "Approve a contract plan to proceed with code generation", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ApproveContractPlanParams", "summary": "request", "description": "Plan approval" } ] } } }, "description": "Plan approval", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveContractPlanSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/contract/{id}/test": { "post": { "description": "Run tests for a contract project", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetContractProjectSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contract/{id}/verification-status": { "get": { "description": "Check verification status for all deployments of a contract project", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckVerificationStatusResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/contracts": { "get": { "description": "List contract projects for the organization", "parameters": [ { "description": "Limit (default 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListContractProjectsSlimSuccessResponse" } } }, "description": "OK" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/contracts/{id}/verify": { "post": { "description": "Verify a deployed contract's source code on block explorer (Etherscan, Basescan, etc.)", "parameters": [ { "description": "Contract project ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/VerifyContractParams", "summary": "request", "description": "Verification parameters" } ] } } }, "description": "Verification parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyContractResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/cu/costs": { "get": { "description": "Get the complete CU cost list for all triggers and actions (public, no auth)", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetCUCostsSuccessResponse" } } }, "description": "OK" } }, "summary": "Get CU costs", "tags": ["CU"] } }, "/v1/faucet/claim": { "post": { "description": "Send testnet tokens from the faucet to the organization's default wallet", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ClaimFaucetParams", "summary": "request", "description": "Claim parameters" } ] } } }, "description": "Claim parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClaimFaucetResult" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Gateway" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } }, "tags": ["faucet"] } }, "/v1/integrations/telegram-b3os-bot": { "post": { "description": "Handle B3OS Telegram bot webhook update", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "additionalProperties": {}, "title": "body", "type": "object" } ] } } }, "description": "Telegram update payload", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "403": { "description": "Forbidden" } } } }, "/v1/internal/anyspend/order-completed": { "post": { "description": "Handle AnySpend order-completed callback", "parameters": [ { "description": "API key for authentication", "in": "header", "name": "x-api-key", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/AnySpendOrderCallbackParams", "summary": "body", "description": "AnySpend callback payload" } ] } } }, "description": "AnySpend callback payload", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnySpendOrderCallbackResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" } } } }, "/v1/invites": { "get": { "description": "List pending invites for the current user", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListInvitesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/logic-actions": { "get": { "description": "List all available logic actions", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListLogicActionsSuccessResponse" } } }, "description": "OK" } } } }, "/v1/metrics/failure-rate": { "get": { "description": "Get overall failure rate statistics for a time period. Maximum time range is 365 days.", "parameters": [ { "description": "Start timestamp (Unix milliseconds)", "in": "query", "name": "from", "required": true, "schema": { "type": "integer" } }, { "description": "End timestamp (Unix milliseconds). Max 365 days from 'from'.", "in": "query", "name": "to", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetFailureRateSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/metrics/recent-activity": { "get": { "description": "Get recent workflow run activity", "parameters": [ { "description": "Number of runs to return (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Filter by status (success, failure, running)", "in": "query", "name": "status", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetRecentActivitySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/metrics/runs-timeseries": { "get": { "description": "Get time-series data for workflow runs (total, success, failure)", "parameters": [ { "description": "Start timestamp (Unix milliseconds)", "in": "query", "name": "from", "required": true, "schema": { "type": "integer" } }, { "description": "End timestamp (Unix milliseconds)", "in": "query", "name": "to", "required": true, "schema": { "type": "integer" } }, { "description": "Granularity (hourly or daily)", "in": "query", "name": "granularity", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetRunsTimeSeriesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/metrics/top-errors": { "get": { "description": "Get most common errors with counts. Maximum time range is 365 days.", "parameters": [ { "description": "Start timestamp (Unix milliseconds)", "in": "query", "name": "from", "required": true, "schema": { "type": "integer" } }, { "description": "End timestamp (Unix milliseconds). Max 365 days from 'from'.", "in": "query", "name": "to", "required": true, "schema": { "type": "integer" } }, { "description": "Number of errors to return (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopErrorsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/onboarding/questions": { "get": { "description": "Get active onboarding questions for the specified scope", "parameters": [ { "description": "Scope: 'user' or 'org'", "in": "query", "name": "scope", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetOnboardingQuestionsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["onboarding"] } }, "/v1/onboarding/responses": { "post": { "description": "Submit onboarding responses and mark onboarding as complete", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/SubmitOnboardingResponsesParams", "summary": "body", "description": "Onboarding responses" } ] } } }, "description": "Onboarding responses", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmitOnboardingResponsesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["onboarding"] } }, "/v1/onboarding/status": { "get": { "description": "Get user's onboarding completion status", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetOnboardingStatusSuccessResponse" } } }, "description": "OK" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["onboarding"] } }, "/v1/organizations": { "get": { "description": "List all organizations for the current user", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListOrganizationsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/organizations/{orgId}/cu": { "get": { "description": "Get current CU balance and minimum threshold for an organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetCUBalanceSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Get CU balance and threshold", "tags": ["CU"] } }, "/v1/organizations/{orgId}/cu/threshold": { "put": { "description": "Update the CU minimum balance threshold for an organization (admin only)", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_cu.UpdateThresholdParams", "summary": "body", "description": "Threshold parameters" } ] } } }, "description": "Threshold parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCUThresholdSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Update CU min threshold", "tags": ["CU"] } }, "/v1/organizations/{orgId}/cu/usage": { "get": { "description": "Get CU usage breakdown for a specific month", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Year-Month in YYYY-MM format", "in": "query", "name": "yearMonth", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetCUUsageSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "summary": "Get CU usage", "tags": ["CU"] } }, "/v1/organizations/{orgId}/public": { "get": { "description": "Retrieve public metadata for an organization (no authentication required)\nThis endpoint is used for organization detail pages", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/data" } ], "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" } } }, "description": "Organization public metadata" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Organization not found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Get public organization metadata", "tags": ["organizations"] } }, "/v1/organizations/{orgId}/templates/public": { "get": { "description": "Retrieve all public templates for a specific organization (no authentication required)\nThis endpoint is used for organization detail pages to showcase public templates", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/data" } ], "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" } } }, "description": "Public templates for organization" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal server error" } }, "summary": "List public templates by organization", "tags": ["workflow-templates"] } }, "/v1/organizations/{orgId}/wallets": { "get": { "description": "List all wallets for an organization with pagination", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Limit (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListWalletsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["wallets"] }, "post": { "description": "Create a new Turnkey wallet for an organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/CreateWalletParams", "summary": "request", "description": "Wallet name" } ] } } }, "description": "Wallet name", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WalletResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["wallets"] } }, "/v1/organizations/{orgId}/wallets/{walletId}": { "delete": { "description": "Archive a wallet (soft delete). Cannot archive default wallet or only wallet.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Wallet ID", "in": "path", "name": "walletId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_wallet.ArchiveWalletResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["wallets"] } }, "/v1/organizations/{orgId}/wallets/{walletId}/default": { "put": { "description": "Set a wallet as the default wallet for an organization.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Wallet ID", "in": "path", "name": "walletId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.OrganizationWallet" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["wallets"] } }, "/v1/organizations/{orgId}/wallets/{walletId}/withdraw": { "post": { "description": "Withdraw tokens from an organization wallet via Turnkey signing", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Wallet ID", "in": "path", "name": "walletId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/WithdrawWalletParams", "summary": "request", "description": "Withdraw parameters" } ] } } }, "description": "Withdraw parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WithdrawWalletResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Gateway" } }, "tags": ["wallets"] } }, "/v1/orgs/{orgId}/integrations/pipedream": { "post": { "description": "Handle Pipedream trigger source webhook event", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Webhook secret", "in": "query", "name": "secret", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "additionalProperties": {}, "title": "body", "type": "object" } ] } } }, "description": "Pipedream event payload", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/orgs/{orgId}/integrations/shopify": { "post": { "description": "Handle Shopify webhook event", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Webhook secret", "in": "query", "name": "secret", "required": true, "schema": { "type": "string" } }, { "description": "Shopify topic (e.g., orders/create)", "in": "header", "name": "X-Shopify-Topic", "required": true, "schema": { "type": "string" } }, { "description": "Shop domain (e.g., my-store.myshopify.com)", "in": "header", "name": "X-Shopify-Shop-Domain", "required": true, "schema": { "type": "string" } }, { "description": "HMAC signature for payload verification", "in": "header", "name": "X-Shopify-Hmac-SHA256", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "additionalProperties": {}, "title": "body", "type": "object" } ] } } }, "description": "Shopify webhook payload", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/orgs/{orgId}/integrations/telegram": { "post": { "description": "Handle Telegram webhook update", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Webhook secret", "in": "query", "name": "secret", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "additionalProperties": {}, "title": "body", "type": "object" } ] } } }, "description": "Telegram update payload", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/orgs/{orgId}/integrations/webhook": { "post": { "description": "Handle generic webhook trigger (secret identifies workflow)", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Per-workflow webhook secret (identifies the workflow)", "in": "query", "name": "secret", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.GenericWebhookPayload", "summary": "body", "description": "Optional payload data" } ] } } }, "description": "Optional payload data" }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/orgs/{orgId}/invites": { "get": { "description": "List pending invites for an organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListOrgInvitesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/orgs/{orgId}/members": { "get": { "description": "List all members of an organization", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListMembersSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/orgs/{orgId}/storage": { "get": { "description": "List storage keys with optional prefix filtering and pagination. Optionally specify a named store.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Key prefix filter", "in": "query", "name": "prefix", "schema": { "type": "string" } }, { "description": "Max results per page (1-100)", "in": "query", "name": "limit", "schema": { "default": 20, "type": "integer" } }, { "description": "Pagination offset", "in": "query", "name": "offset", "schema": { "default": 0, "type": "integer" } }, { "description": "Store name (defaults to 'default')", "in": "query", "name": "store", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListOrgStorageKeysSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "List organization storage keys", "tags": ["Organization Storage"] }, "post": { "description": "Store a key-value pair in organization storage. Shared across all workflows in the org. Optionally specify a named store.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/SetOrgStorageParams", "summary": "body", "description": "Storage key, value, and optional store" } ] } } }, "description": "Storage key, value, and optional store", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetOrgStorageSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Set organization storage value", "tags": ["Organization Storage"] } }, "/v1/orgs/{orgId}/storage/batch": { "post": { "description": "Retrieve multiple values from organization storage in a single request. Optionally specify a named store.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/GetMultipleOrgStorageParams", "summary": "body", "description": "List of keys and optional store" } ] } } }, "description": "List of keys and optional store", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetMultipleOrgStorageSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Get multiple organization storage values", "tags": ["Organization Storage"] } }, "/v1/orgs/{orgId}/storage/clear": { "delete": { "description": "Delete all storage keys for a specific store or all stores. Optionally specify a store via query param.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Store name (empty clears all stores)", "in": "query", "name": "store", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClearOrgStorageSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Clear organization storage", "tags": ["Organization Storage"] } }, "/v1/orgs/{orgId}/storage/{key}": { "delete": { "description": "Delete a single key from organization storage. Optionally specify a named store via query param.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Storage key", "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "description": "Store name (defaults to 'default')", "in": "query", "name": "store", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteOrgStorageSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Delete organization storage key", "tags": ["Organization Storage"] }, "get": { "description": "Retrieve a value from organization storage by key. Optionally specify a named store via query param.", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Storage key", "in": "path", "name": "key", "required": true, "schema": { "type": "string" } }, { "description": "Store name (defaults to 'default')", "in": "query", "name": "store", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetOrgStorageSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Get organization storage value", "tags": ["Organization Storage"] } }, "/v1/orgs/{orgId}/stores": { "get": { "description": "List all named stores for an organization with key counts", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListOrgStoresSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "List organization stores", "tags": ["Organization Storage"] } }, "/v1/orgs/{orgId}/stores/{storeName}": { "delete": { "description": "Delete an entire named store and all its keys", "parameters": [ { "description": "Organization ID", "in": "path", "name": "orgId", "required": true, "schema": { "type": "string" } }, { "description": "Store name to delete", "in": "path", "name": "storeName", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteOrgStoreSuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Delete organization store", "tags": ["Organization Storage"] } }, "/v1/outbound-webhook/deliveries": { "get": { "description": "List outbound webhook deliveries with optional workflow filter and pagination", "parameters": [ { "description": "Filter by workflow ID", "in": "query", "name": "workflowId", "schema": { "type": "string" } }, { "description": "Max results per page (1-100)", "in": "query", "name": "limit", "schema": { "default": 20, "type": "integer" } }, { "description": "Pagination offset", "in": "query", "name": "offset", "schema": { "default": 0, "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListOutboundWebhookDeliveriesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "List outbound webhook deliveries", "tags": ["Outbound Webhook"] } }, "/v1/outbound-webhook/deliveries/{id}": { "get": { "description": "Get a single outbound webhook delivery by ID", "parameters": [ { "description": "Delivery ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetOutboundWebhookDeliverySuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Get outbound webhook delivery", "tags": ["Outbound Webhook"] } }, "/v1/outbound-webhook/deliveries/{id}/replay": { "post": { "description": "Replay a webhook delivery by creating a new delivery based on the original. Unlike retry (which re-attempts a failed delivery), replay creates a NEW delivery record and can be used on any status.", "parameters": [ { "description": "Original Delivery ID to replay", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplayOutboundWebhookDeliverySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Replay outbound webhook delivery", "tags": ["Outbound Webhook"] } }, "/v1/outbound-webhook/deliveries/{id}/retry": { "post": { "description": "Manually retry a failed outbound webhook delivery", "parameters": [ { "description": "Delivery ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RetryOutboundWebhookDeliverySuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } }, "summary": "Retry outbound webhook delivery", "tags": ["Outbound Webhook"] } }, "/v1/pipedream/accounts/{id}": { "delete": { "description": "Disconnect a Pipedream account", "parameters": [ { "description": "Account ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeletePipedreamAccountSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } }, "get": { "description": "Get a Pipedream account by ID", "parameters": [ { "description": "Account ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetPipedreamAccountSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/pipedream/actions/{action}/run": { "post": { "description": "Execute a Pipedream action", "parameters": [ { "description": "Action key", "in": "path", "name": "action", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/RunPipedreamActionParams", "summary": "body", "description": "Action execution parameters" } ] } } }, "description": "Action execution parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunPipedreamActionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/pipedream/apps": { "get": { "description": "List available Pipedream apps/integrations", "parameters": [ { "description": "Search query to filter apps", "in": "query", "name": "q", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListPipedreamAppsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/pipedream/apps/{app}/actions": { "get": { "description": "List available actions for a Pipedream app", "parameters": [ { "description": "App slug (e.g., 'twilio', 'google_sheets')", "in": "path", "name": "app", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListPipedreamActionsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/pipedream/connect-token": { "get": { "description": "Get a Pipedream Connect token for the frontend SDK", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetConnectTokenSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/public/runs/by-tx/{txHash}": { "get": { "description": "Find a run by trigger transaction hash (no auth required)", "parameters": [ { "description": "Transaction Hash", "in": "path", "name": "txHash", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetPublicRunByTxSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/public/workflows/{id}/meta": { "get": { "description": "Get public metadata (name, description) for a workflow.\nNo auth required \u2014 intentionally unauthenticated for OG image generation.\nOnly returns title and description; no sensitive data is exposed.", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetPublicMetaSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/public/workflows/{id}/widget": { "get": { "description": "Get public widget configuration for a workflow (no auth required)", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetPublicWidgetSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/runs": { "get": { "description": "List all runs", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListRunsSuccessResponse" } } }, "description": "OK" } } }, "post": { "description": "Execute an inline workflow definition (ephemeral run). The definition must use \"manual\" trigger type. No workflow is saved \u2014 the definition is executed once and the run is recorded with workflowId=\"\". Requires WorkflowCreate permission.", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EphemeralRunParams" } } }, "description": "Inline workflow definition and optional payload/props", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunSuccessResponse" } } }, "description": "Run created and enqueued for execution" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Invalid definition (400228), non-manual trigger (400229), invalid run ID (400078), or duplicate run ID (400079)" }, "402": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Insufficient CU balance" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Missing org context or insufficient permissions" } } } }, "/v1/runs/{id}": { "get": { "description": "Get a specific run by ID", "parameters": [ { "description": "Run ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetRunSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/runs/{id}/cancel": { "post": { "description": "Cancel a running or waiting run", "parameters": [ { "description": "Run ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetRunSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Conflict" } } } }, "/v1/runs/{id}/stream": { "get": { "description": "SSE endpoint for real-time run status updates. Clients MUST subscribe BEFORE triggering the run to avoid missing the initial run_started event. Use pre-subscription with client-provided runId.", "parameters": [ { "description": "Run ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "text/event-stream": { "schema": { "type": "string" } } }, "description": "SSE stream with run events" }, "400": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Stream run execution events", "tags": ["runs"] } }, "/v1/search": { "get": { "description": "Hybrid search (keyword + semantic) across templates, actions, triggers, connector definitions, and workflows", "parameters": [ { "description": "Search query", "in": "query", "name": "q", "required": true, "schema": { "type": "string" } }, { "description": "Resource types to search: template, action, trigger, connector_def, workflow (singular or plural forms accepted)", "in": "query", "name": "types", "schema": { "items": { "type": "string" }, "type": "array" } }, { "description": "Results per type (default: 20, max: 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Pagination offset (default: 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } }, "summary": "Search resources", "tags": ["Search"] } }, "/v1/search/similar/{type}/{id}": { "get": { "description": "Find resources semantically similar to a given resource", "parameters": [ { "description": "Resource type: action, template, trigger, connector_def (singular or plural forms accepted)", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } }, { "description": "Resource ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Max results (default: 5, max: 20)", "in": "query", "name": "limit", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } }, "summary": "Find similar resources", "tags": ["Search"] } }, "/v1/seo/pages": { "get": { "description": "List all published SEO integration pages with pagination", "parameters": [ { "description": "Filter by page type: single or combo", "in": "query", "name": "page_type", "schema": { "type": "string" } }, { "description": "Maximum number of pages (default: 100, max: 1000)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default: 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListSeoPagesSuccessResponse" } } }, "description": "OK" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["seo"] } }, "/v1/seo/pages/bulk-upsert": { "post": { "description": "Bulk upsert SEO integration pages (used by CI/CD build script)", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/BulkUpsertSeoPagesParams", "summary": "body", "description": "Pages to upsert" } ] } } }, "description": "Pages to upsert", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BulkUpsertSeoPagesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["seo"] } }, "/v1/seo/pages/generate": { "post": { "description": "Trigger SEO page generation (admin only).", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/GenerateSeoPagesParams", "summary": "body", "description": "Generation parameters" } ] } } }, "description": "Generation parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/data" } ], "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["seo"] } }, "/v1/seo/pages/{slug}": { "get": { "description": "Get a single SEO integration page by slug", "parameters": [ { "description": "Page slug (e.g. airtable or airtable-and-polymarket)", "in": "path", "name": "slug", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetSeoPageSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["seo"] }, "put": { "description": "Update a SEO integration page by slug (admin only)", "parameters": [ { "description": "Page slug", "in": "path", "name": "slug", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/UpdateSeoPageParams", "summary": "body", "description": "Fields to update" } ] } } }, "description": "Fields to update", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSeoPageSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["seo"] } }, "/v1/statistics": { "get": { "description": "Get cumulative statistics for all nodes (actions + triggers)", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetAllStatisticsSuccessResponse" } } }, "description": "OK" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/statistics/action/{id}/latency": { "get": { "description": "Get latency time-series data for a specific action", "parameters": [ { "description": "Action ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Start timestamp (Unix milliseconds)", "in": "query", "name": "from", "required": true, "schema": { "type": "integer" } }, { "description": "End timestamp (Unix milliseconds)", "in": "query", "name": "to", "required": true, "schema": { "type": "integer" } }, { "description": "Granularity (hourly or daily)", "in": "query", "name": "granularity", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetLatencyTimeSeriesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/statistics/{type}/{id}/usage": { "get": { "description": "Get usage time-series data for a specific node", "parameters": [ { "description": "Node type (action or trigger)", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } }, { "description": "Node ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Start timestamp (Unix milliseconds)", "in": "query", "name": "from", "required": true, "schema": { "type": "integer" } }, { "description": "End timestamp (Unix milliseconds)", "in": "query", "name": "to", "required": true, "schema": { "type": "integer" } }, { "description": "Granularity (hourly or daily)", "in": "query", "name": "granularity", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetUsageTimeSeriesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/tags": { "get": { "description": "List available tags, optionally filtered by category and/or search query with pagination", "parameters": [ { "description": "Filter by category (e.g., 'blockchain', 'finance', 'App')", "in": "query", "name": "category", "schema": { "type": "string" } }, { "description": "Full-text search query (searches name and description)", "in": "query", "name": "search", "schema": { "type": "string" } }, { "description": "Maximum number of tags to return (default: 20, max: 1000)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Number of tags to skip for pagination (default: 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } }, { "description": "Sort by count (popularity) instead of weight (default: false). Count type depends on scope: templates for template scopes, actions for action scope, triggers for trigger scope", "in": "query", "name": "sortByCount", "schema": { "type": "boolean" } }, { "description": "Count scope: 'all' (default), 'templates_public', 'templates_promoted', 'templates_org', 'actions', 'triggers', 'connectors'", "in": "query", "name": "scope", "schema": { "type": "string" } }, { "description": "Pagination bypass key to allow limit > 1000", "in": "query", "name": "pagination_bypass_key", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["tags"] } }, "/v1/tags/categories": { "get": { "description": "List all unique categories from tags", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["tags"] } }, "/v1/telegram-bot/chats": { "get": { "description": "List verified Telegram chats for organization", "parameters": [ { "description": "Search query", "in": "query", "name": "q", "schema": { "type": "string" } }, { "description": "Limit (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListTelegramChatsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/telegram-bot/pins": { "post": { "description": "Generate a PIN for Telegram chat verification", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateTelegramPinSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Service Unavailable" } } } }, "/v1/telegram-bot/pins/{pin}/status": { "get": { "description": "Check Telegram PIN verification status", "parameters": [ { "description": "6-digit PIN", "in": "path", "name": "pin", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckTelegramPinSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates": { "get": { "description": "List templates by category and tags", "parameters": [ { "description": "Template category (promoted, public, org, all)", "in": "query", "name": "category", "schema": { "default": "all", "type": "string" } }, { "description": "Tag slugs to filter by (can specify multiple)", "in": "query", "name": "tags", "schema": { "items": { "type": "string" }, "type": "array" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" } } }, "post": { "description": "Create a new workflow template", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_workflowtemplate.CreateWorkflowTemplateRequest", "summary": "request", "description": "Template details" } ] } } }, "description": "Template details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/templates/by-source-workflow/{workflowId}": { "get": { "description": "Get template by source workflow ID", "parameters": [ { "description": "Source workflow ID", "in": "path", "name": "workflowId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/recommended": { "get": { "description": "Get personalized template recommendations based on user's tag interests", "parameters": [ { "description": "Template category: 'promoted', 'public', 'org', 'all'", "in": "query", "name": "category", "required": true, "schema": { "type": "string" } }, { "description": "Maximum number of templates to return (default: 20, max: 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Recommendation strategy: 'strong_match', 'interest_based' (default), 'popular_with_interest'", "in": "query", "name": "strategy", "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecommendTemplatesSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } }, "tags": ["templates"] } }, "/v1/templates/{id}/promote": { "put": { "description": "Promote a template (admin only)", "parameters": [ { "description": "Template ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{id}/unpromote": { "put": { "description": "Unpromote a template (admin only)", "parameters": [ { "description": "Template ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{templateId}": { "get": { "description": "Retrieve a template by ID with authorization (public templates or user's org templates)\nNo authentication required for public templates. Authenticated users can access their org's templates.", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/data" } ], "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "requestId": { "type": "string" } }, "type": "object" } } }, "description": "Template details" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Template not found or unauthorized" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal server error" } }, "summary": "Get template by ID", "tags": ["workflow-templates"] }, "patch": { "description": "Update an existing workflow template", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_workflowtemplate.UpdateWorkflowTemplateRequest", "summary": "request", "description": "Template update details" } ] } } }, "description": "Template update details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{templateId}/rollback": { "post": { "description": "Rollback template to a previous version", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/RollbackTemplateParams", "summary": "body", "description": "Rollback params" } ] } } }, "description": "Rollback params", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RollbackTemplateSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{templateId}/versions": { "get": { "description": "List all versions of a template", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListTemplateVersionsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{templateId}/versions/count": { "get": { "description": "Count total versions for a specific template", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CountTemplateVersionsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/templates/{templateId}/versions/{versionNumber}": { "get": { "description": "Get a specific version of a template by version number", "parameters": [ { "description": "Template ID", "in": "path", "name": "templateId", "required": true, "schema": { "type": "string" } }, { "description": "Version number", "in": "path", "name": "versionNumber", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTemplateVersionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/token-price-cexes/available-assets": { "get": { "description": "Get available assets for token price (CEXes)", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AvailableAssetsTokenPriceCexesSuccessResponse" } } }, "description": "OK" } } } }, "/v1/token-price-cexes/latest": { "get": { "description": "Get latest prices for specified assets", "parameters": [ { "description": "Comma-separated list of assets", "in": "query", "name": "assets", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LatestPricesTokenPriceCexesSuccessResponse" } } }, "description": "OK" } } } }, "/v1/triggers": { "get": { "description": "List all available triggers, optionally filtered by tags", "parameters": [ { "description": "Filter by tags (comma-separated or multiple params). Triggers must have ALL specified tags (AND logic).", "in": "query", "name": "tags", "schema": { "items": { "type": "string" }, "type": "array" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListTriggersSuccessResponse" } } }, "description": "OK" } }, "tags": ["triggers"] } }, "/v1/triggers/{type}": { "get": { "description": "Get a trigger definition by type", "parameters": [ { "description": "Trigger type", "in": "path", "name": "type", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTriggerSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/webhook-events": { "get": { "description": "List webhook events for the organization with pagination", "parameters": [ { "description": "Number of events to return (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$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_WebhookEvent" } } }, "description": "OK" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "List webhook events", "tags": ["Webhook Events"] } }, "/v1/webhook-events/{eventId}/replay": { "post": { "description": "Replay a webhook event by re-processing its stored payload", "parameters": [ { "description": "Webhook Event ID", "in": "path", "name": "eventId", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_service_integration.IntegrationResult" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Event not found" } } } }, "/v1/workflows": { "get": { "description": "Get all workflows", "parameters": [ { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListWorkflowsSuccessResponse" } } }, "description": "OK" } } }, "post": { "description": "Create a new workflow", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/CreateWorkflowParams", "summary": "request", "description": "Workflow details" } ] } } }, "description": "Workflow details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkflowSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/workflows/batch-stats": { "post": { "description": "Fetch run counts and recent runs for multiple workflows", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/BatchWorkflowStatsRequest", "summary": "body", "description": "Workflow IDs" } ] } } }, "description": "Workflow IDs", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchWorkflowStatsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } }, "summary": "Batch workflow stats", "tags": ["runs"] } }, "/v1/workflows/validate": { "post": { "description": "Validate a workflow definition without saving", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ValidateWorkflowParams", "summary": "request", "description": "Workflow definition and name to validate" } ] } } }, "description": "Workflow definition and name to validate", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidateWorkflowSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/workflows/{id}": { "delete": { "description": "Archive a workflow (soft delete)", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "get": { "description": "Get a workflow by ID", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetWorkflowSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "put": { "description": "Update a workflow (creates new version due to immutability)", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/UpdateWorkflowParams", "summary": "request", "description": "New workflow definition" } ] } } }, "description": "New workflow definition", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateWorkflowSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/draft": { "delete": { "description": "Discard the draft version of a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "get": { "description": "Get the draft version of a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetWorkflowSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/live": { "get": { "description": "Get the live (active/paused) version of a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetWorkflowSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/pause": { "post": { "description": "Pause a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/publish": { "post": { "description": "Publish a draft workflow (validates cronjob intervals, activates)", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/PublishWorkflowParams", "summary": "body", "description": "Optional parameters" } ] } } }, "description": "Optional parameters" }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Conflict" } } } }, "/v1/workflows/{id}/refill": { "post": { "description": "Refill remaining runs for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/RefillWorkflowParams", "summary": "request", "description": "New remain_runs value" } ] } } }, "description": "New remain_runs value", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefillWorkflowSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/regenerate-descriptions": { "post": { "description": "Regenerate AI descriptions for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegenerateDescriptionsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Internal Server Error" } } } }, "/v1/workflows/{id}/resume": { "post": { "description": "Resume a paused workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/rollback": { "post": { "description": "Rollback workflow to a previous version", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/RollbackWorkflowParams", "summary": "body", "description": "Rollback params" } ] } } }, "description": "Rollback params", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RollbackWorkflowSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/run": { "post": { "description": "Run a workflow with optional payload. Works for draft and active workflows. Does not count against maxRuns or enforce cooldown.", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/RunParams", "summary": "body", "description": "Optional payload" } ] } } }, "description": "Optional payload" }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad request or workflow is not runnable (paused/archived)" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Workflow not found" } } } }, "/v1/workflows/{id}/runs": { "get": { "description": "List all runs for a specific workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListRunsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/runs/count": { "get": { "description": "Count runs for a specific workflow, grouped by status", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CountWorkflowRunsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/runs/stream": { "get": { "description": "SSE endpoint for real-time notifications when runs start/complete for a workflow.", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "text/event-stream": { "schema": { "type": "string" } } }, "description": "SSE stream with workflow run events" }, "400": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "403": { "content": { "text/event-stream": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Forbidden" } }, "summary": "Stream workflow run events", "tags": ["workflows"] } }, "/v1/workflows/{id}/storage": { "delete": { "description": "Clear all storage data for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": {}, "type": "object" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/trigger-info": { "get": { "description": "Get trigger info (e.g. Pipedream email address) for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTriggerInfoSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/ui-metadata": { "patch": { "description": "Update workflow UI metadata (node positions) in-place", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/UpdateWorkflowUIMetadataParams", "summary": "request", "description": "UI metadata" } ] } } }, "description": "UI metadata", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateWorkflowUIMetadataSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Conflict" } } } }, "/v1/workflows/{id}/versions": { "get": { "description": "List all versions of a workflow", "parameters": [ { "description": "Workflow ID (any version)", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Number of items (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination (default 0)", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListWorkflowVersionsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/versions/count": { "get": { "description": "Count total versions for a specific workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CountWorkflowVersionsSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/versions/{versionNumber}": { "get": { "description": "Get a specific version of a workflow by version number", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } }, { "description": "Version number", "in": "path", "name": "versionNumber", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetWorkflowVersionSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/workflows/{id}/widget": { "delete": { "description": "Disable public widget for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.SuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } }, "post": { "description": "Enable public widget for a workflow", "parameters": [ { "description": "Workflow ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/PublishWidgetParams", "summary": "body", "description": "Widget configuration" } ] } } }, "description": "Widget configuration", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PublishWidgetSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/x402-endpoints": { "get": { "description": "List all public x402 endpoints", "parameters": [ { "description": "Filter by category", "in": "query", "name": "category", "schema": { "type": "string" } }, { "description": "Search in name and description", "in": "query", "name": "search", "schema": { "type": "string" } }, { "description": "Limit (default 20, max 100)", "in": "query", "name": "limit", "schema": { "type": "integer" } }, { "description": "Offset for pagination", "in": "query", "name": "offset", "schema": { "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListX402EndpointsSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } }, "post": { "description": "Create (import) a new x402 endpoint after successful test", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/CreateX402EndpointParams", "summary": "request", "description": "Endpoint details" } ] } } }, "description": "Endpoint details", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/x402-endpoints/by-url": { "get": { "description": "Check if an x402 endpoint exists by URL", "parameters": [ { "description": "Resource URL to check", "in": "query", "name": "url", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/x402-endpoints/execute": { "post": { "description": "Execute an x402 call with a pre-signed payment header (proxy mode)", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ExecuteX402EndpointParams", "summary": "request", "description": "Execute parameters" } ] } } }, "description": "Execute parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecuteX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" } } } }, "/v1/x402-endpoints/generate-metadata": { "post": { "description": "Generate AI metadata (name, description, category, tags) for an x402 endpoint", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/GenerateX402MetadataParams", "summary": "request", "description": "Endpoint details for metadata generation" } ] } } }, "description": "Endpoint details for metadata generation", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateX402MetadataSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/x402-endpoints/import": { "post": { "description": "Import an x402 endpoint atomically (probe + pay + generate metadata + create)", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ImportX402EndpointParams", "summary": "request", "description": "Import parameters" } ] } } }, "description": "Import parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImportX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Conflict" } } } }, "/v1/x402-endpoints/probe": { "post": { "description": "Probe an x402 endpoint to get its payment requirements", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/ProbeX402EndpointParams", "summary": "request", "description": "Endpoint URL to probe" } ] } } }, "description": "Endpoint URL to probe", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProbeX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" } } } }, "/v1/x402-endpoints/test": { "post": { "description": "Test an x402 endpoint using the organization's default Turnkey wallet", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/TestX402EndpointParams", "summary": "request", "description": "Test parameters" } ] } } }, "description": "Test parameters", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TestX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Unauthorized" } } } }, "/v1/x402-endpoints/{id}": { "get": { "description": "Get an x402 endpoint by ID", "parameters": [ { "description": "Endpoint ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetX402EndpointSuccessResponse" } } }, "description": "OK" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } }, "/v1/x402-endpoints/{id}/verify": { "post": { "description": "Re-verify an x402 endpoint and update its schemas", "parameters": [ { "description": "Endpoint ID", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "type": "object" }, { "$ref": "#/components/schemas/VerifyX402EndpointParams", "summary": "request", "description": "New schemas from re-test" } ] } } }, "description": "New schemas from re-test", "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyX402EndpointSuccessResponse" } } }, "description": "OK" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Bad Request" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse" } } }, "description": "Not Found" } } } } }, "openapi": "3.1.0" }