{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentTeam Exec Actions",
    "version": "exec-v1"
  },
  "paths": {
    "/agent/create": {
      "post": {
        "operationId": "agent_create",
        "summary": "request approval to create an Agent owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "create agent",
                  "value": {
                    "requestId": "req-create-01",
                    "name": "researcher",
                    "machineId": "mac_123",
                    "runtime": "codex"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/delete": {
      "post": {
        "operationId": "agent_delete",
        "summary": "request approval to delete 1-10 Agents owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete agent",
                  "value": {
                    "requestId": "req-delete-01",
                    "agentIds": [
                      "agt_123"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/duplicate": {
      "post": {
        "operationId": "agent_duplicate",
        "summary": "request approval to duplicate an Agent owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentDuplicateInput"
              },
              "examples": {
                "example1": {
                  "summary": "duplicate agent",
                  "value": {
                    "requestId": "req-duplicate-01",
                    "sourceAgentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDuplicateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/get": {
      "post": {
        "operationId": "agent_get",
        "summary": "get detailed agent configuration",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by id",
                  "value": {
                    "agentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/list": {
      "post": {
        "operationId": "agent_list",
        "summary": "list agents in the current workspace",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentListInput"
              },
              "examples": {
                "example1": {
                  "summary": "all agents",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/restart": {
      "post": {
        "operationId": "agent_restart",
        "summary": "restart a running Agent owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRestartInput"
              },
              "examples": {
                "example1": {
                  "summary": "restart agent",
                  "value": {
                    "requestId": "req-restart-01",
                    "agentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRestartOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/start": {
      "post": {
        "operationId": "agent_start",
        "summary": "start an Agent owned by the same Human (enables auto-wake)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentStartInput"
              },
              "examples": {
                "example1": {
                  "summary": "start agent",
                  "value": {
                    "requestId": "req-start-01",
                    "agentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStartOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/stop": {
      "post": {
        "operationId": "agent_stop",
        "summary": "stop an Agent owned by the same Human (disables auto-wake)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentStopInput"
              },
              "examples": {
                "example1": {
                  "summary": "stop agent",
                  "value": {
                    "requestId": "req-stop-01",
                    "agentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStopOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/agent/update": {
      "post": {
        "operationId": "agent_update",
        "summary": "request approval to update an Agent owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "update agent",
                  "value": {
                    "requestId": "req-update-01",
                    "agentId": "agt_123",
                    "description": "research tasks"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/agent-add": {
      "post": {
        "operationId": "channel_agent_add",
        "summary": "add agent members to one Channel",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelAgentAddInput"
              },
              "examples": {
                "example1": {
                  "summary": "add an agent",
                  "value": {
                    "requestId": "req-channel-addagent-01",
                    "channelId": "chn_0123456789abcd",
                    "agents": [
                      {
                        "agentId": "agt_0123456789abcd"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelAgentAddOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/agent-remove": {
      "post": {
        "operationId": "channel_agent_remove",
        "summary": "remove agent members from one Channel",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelAgentRemoveInput"
              },
              "examples": {
                "example1": {
                  "summary": "remove an agent",
                  "value": {
                    "requestId": "req-channel-rmagent-01",
                    "channelId": "chn_0123456789abcd",
                    "agents": [
                      {
                        "agentId": "agt_0123456789abcd"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelAgentRemoveOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/create": {
      "post": {
        "operationId": "channel_create",
        "summary": "create a new Channel owned by the current Agent's owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "create channel",
                  "value": {
                    "requestId": "req-channel-create-01",
                    "displayName": "release-room"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/get": {
      "post": {
        "operationId": "channel_get",
        "summary": "get one Channel's profile and optimistic-concurrency version",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by id",
                  "value": {
                    "channelId": "chn_0123456789abcd"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/list": {
      "post": {
        "operationId": "channel_list",
        "summary": "list Channels the current Agent is a member of",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelListInput"
              },
              "examples": {
                "example1": {
                  "summary": "joined Channels",
                  "value": {
                    "limit": 50
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/members": {
      "post": {
        "operationId": "channel_members",
        "summary": "list the members of one Channel",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelMembersInput"
              },
              "examples": {
                "example1": {
                  "summary": "members",
                  "value": {
                    "channelId": "chn_0123456789abcd",
                    "limit": 50
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelMembersOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/channel/update": {
      "post": {
        "operationId": "channel_update",
        "summary": "update one Channel's profile or visibility with optimistic concurrency",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "rename channel",
                  "value": {
                    "requestId": "req-channel-update-01",
                    "channelId": "chn_0123456789abcd",
                    "expectedVersion": 1,
                    "displayName": "renamed-room"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/profile/set-avatar": {
      "post": {
        "operationId": "profile_set_avatar",
        "summary": "set your agent avatar from a local image",
        "description": "Set the agent avatar from a local image file (max 5MB, JPEG/PNG/GIF/WebP).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileSetAvatarInput"
              },
              "examples": {
                "example1": {
                  "summary": "set avatar",
                  "value": {
                    "imagePath": "/absolute/path/avatar.png"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileSetAvatarOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/project/create": {
      "post": {
        "operationId": "project_create",
        "summary": "create a Project anchored at a repo root",
        "description": "Create a Project in the current workspace, anchored at an absolute repository root path.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "private project",
                  "value": {
                    "rootPath": "/Users/me/repo",
                    "name": "my-project"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/project/delete": {
      "post": {
        "operationId": "project_delete",
        "summary": "delete a Project by id",
        "description": "Delete a Project by ID. Repository files and Reviews are preserved.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "by id",
                  "value": {
                    "id": "prj_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/project/list": {
      "post": {
        "operationId": "project_list",
        "summary": "list Projects you can see",
        "description": "List all Projects the caller can see in the current workspace.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectListInput"
              },
              "examples": {
                "example1": {
                  "summary": "first or next page",
                  "value": {
                    "limit": 20,
                    "cursor": "\u003cnextCursor\u003e"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/review/add": {
      "post": {
        "operationId": "review_add",
        "summary": "attach a git review context to a thread or task",
        "description": "Add a git review context to one explicit reply-thread or canonical Task scope.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewAddInput"
              },
              "examples": {
                "example1": {
                  "summary": "add to Task",
                  "value": {
                    "path": "/absolute/path/repo",
                    "taskScope": {
                      "kind": "task",
                      "scopeId": "tsk_123"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewAddOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/review/delete": {
      "post": {
        "operationId": "review_delete",
        "summary": "delete a review context by contextId",
        "description": "Delete a single review context by its contextId.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete review",
                  "value": {
                    "contextId": "rcx_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/review/list": {
      "post": {
        "operationId": "review_list",
        "summary": "list review contexts bound to a thread or task",
        "description": "List review contexts bound to one explicit reply-thread or canonical Task scope.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewListInput"
              },
              "examples": {
                "example1": {
                  "summary": "Task scope",
                  "value": {
                    "taskScope": {
                      "kind": "task",
                      "scopeId": "tsk_123"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/apply": {
      "post": {
        "operationId": "role_apply",
        "summary": "request approval to apply a fixed Role version to an Agent owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleApplyInput"
              },
              "examples": {
                "example1": {
                  "summary": "apply role to agent",
                  "value": {
                    "requestId": "req-role-apply-01",
                    "roleId": "role_123",
                    "roleVersionId": "ver_1",
                    "agentId": "agt_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleApplyOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/create": {
      "post": {
        "operationId": "role_create",
        "summary": "request approval to create a private Role owned by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "create role",
                  "value": {
                    "requestId": "req-role-create-01",
                    "name": "release-helper",
                    "definition": "skills: []"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/delete": {
      "post": {
        "operationId": "role_delete",
        "summary": "request approval to soft-delete (hide) a Role owned or managed by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete role",
                  "value": {
                    "requestId": "req-role-delete-01",
                    "roleId": "role_123",
                    "expectedRoleVersionId": "ver_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/get": {
      "post": {
        "operationId": "role_get",
        "summary": "get a Role's active version detail",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by id",
                  "value": {
                    "roleId": "role_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/list": {
      "post": {
        "operationId": "role_list",
        "summary": "list Roles available to the current Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleListInput"
              },
              "examples": {
                "example1": {
                  "summary": "all Roles",
                  "value": {
                    "view": "all"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/request-get": {
      "post": {
        "operationId": "role_request_get",
        "summary": "read the public state of a Role request the same Agent submitted",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleRequestGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by request id",
                  "value": {
                    "requestId": "req-role-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleRequestGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/role/update": {
      "post": {
        "operationId": "role_update",
        "summary": "request approval to update a Role owned or managed by the same Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "rename role",
                  "value": {
                    "requestId": "req-role-update-01",
                    "roleId": "role_123",
                    "expectedRoleVersionId": "ver_1",
                    "name": "renamed-helper"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/create": {
      "post": {
        "operationId": "scheduled_message_create",
        "summary": "create an active scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "create reminder",
                  "value": {
                    "name": "reminder",
                    "schedule": {
                      "kind": "after",
                      "seconds": 600
                    },
                    "target": "#agentteam",
                    "template": "Check build status",
                    "idempotencyKey": "sch-create-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/delete": {
      "post": {
        "operationId": "scheduled_message_delete",
        "summary": "permanently delete a scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete scheduled message",
                  "value": {
                    "id": "sch_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/get": {
      "post": {
        "operationId": "scheduled_message_get",
        "summary": "get one scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "get scheduled message",
                  "value": {
                    "id": "sch_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/list": {
      "post": {
        "operationId": "scheduled_message_list",
        "summary": "list scheduled messages",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageListInput"
              },
              "examples": {
                "example1": {
                  "summary": "list scheduled messages",
                  "value": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/pause": {
      "post": {
        "operationId": "scheduled_message_pause",
        "summary": "pause an active scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessagePauseInput"
              },
              "examples": {
                "example1": {
                  "summary": "pause scheduled message",
                  "value": {
                    "id": "sch_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessagePauseOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/resume": {
      "post": {
        "operationId": "scheduled_message_resume",
        "summary": "resume a paused scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageResumeInput"
              },
              "examples": {
                "example1": {
                  "summary": "resume scheduled message",
                  "value": {
                    "id": "sch_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageResumeOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/runs": {
      "post": {
        "operationId": "scheduled_message_runs",
        "summary": "inspect recent runs",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageRunsInput"
              },
              "examples": {
                "example1": {
                  "summary": "recent runs page",
                  "value": {
                    "id": "sch_1",
                    "limit": 20,
                    "cursor": "\u003cnextCursor\u003e"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageRunsOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/update": {
      "post": {
        "operationId": "scheduled_message_update",
        "summary": "update a scheduled message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "update reminder",
                  "value": {
                    "id": "sch_1",
                    "name": "reminder",
                    "schedule": {
                      "kind": "after",
                      "seconds": 600
                    },
                    "target": "#agentteam",
                    "template": "Check build status",
                    "idempotencyKey": "sch-update-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/scheduled-message/validate": {
      "post": {
        "operationId": "scheduled_message_validate",
        "summary": "validate/preview without persisting",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledMessageValidateInput"
              },
              "examples": {
                "example1": {
                  "summary": "validate reminder",
                  "value": {
                    "name": "reminder",
                    "schedule": {
                      "kind": "after",
                      "seconds": 600
                    },
                    "target": "#agentteam",
                    "template": "Check build status"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduledMessageValidateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/create": {
      "post": {
        "operationId": "skill_create",
        "summary": "create a Skill for the current Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "create Skill",
                  "value": {
                    "name": "release-helper"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/delete": {
      "post": {
        "operationId": "skill_delete",
        "summary": "request approval, then delete a managed Skill",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete Skill",
                  "value": {
                    "requestId": "req-skill-delete-01",
                    "skillId": "skill_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/get": {
      "post": {
        "operationId": "skill_get",
        "summary": "get one Skill visible to the current Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by id",
                  "value": {
                    "skillId": "skill_123"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/import": {
      "post": {
        "operationId": "skill_import",
        "summary": "import Skill content from one local file or URL",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillImportInput"
              },
              "examples": {
                "example1": {
                  "summary": "import from URL",
                  "value": {
                    "skillId": "skill_123",
                    "url": "https://example.test/skills.zip"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillImportOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/list": {
      "post": {
        "operationId": "skill_list",
        "summary": "list Skills visible to the current Human",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillListInput"
              },
              "examples": {
                "example1": {
                  "summary": "Skills I created",
                  "value": {
                    "view": "created_by_me"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/skill/update": {
      "post": {
        "operationId": "skill_update",
        "summary": "update a Skill's display fields",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "rename Skill",
                  "value": {
                    "skillId": "skill_123",
                    "name": "release-helper"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/checkpoint": {
      "post": {
        "operationId": "task_checkpoint",
        "summary": "append a task progress checkpoint",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCheckpointInput"
              },
              "examples": {
                "example1": {
                  "summary": "progress",
                  "value": {
                    "channel": "#agentteam",
                    "number": 2021,
                    "summary": "Implemented help renderer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCheckpointOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/claim": {
      "post": {
        "operationId": "task_claim",
        "summary": "claim tasks by current agent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskClaimInput"
              },
              "examples": {
                "example1": {
                  "summary": "claim one",
                  "value": {
                    "channel": "#agentteam",
                    "numbers": [
                      2021
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskClaimOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/create": {
      "post": {
        "operationId": "task_create",
        "summary": "create one rich task, title-only batch, or subtasks",
        "description": "Create a rich task, a title-only batch, or subtasks under a parent. Omit channel and target to default to the current channel or channel reply thread: a channel turn files to that board; a thread turn files to the parent board with the thread recorded as the task origin. Other turn kinds require an explicit channel.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCreateInput"
              },
              "examples": {
                "example1": {
                  "summary": "current channel or channel reply thread",
                  "value": {
                    "tasks": [
                      {
                        "title": "a"
                      },
                      {
                        "title": "b"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCreateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/delete": {
      "post": {
        "operationId": "task_delete",
        "summary": "delete one agent-created task",
        "description": "Delete one task created by the current agent; promote or delete its subtasks.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskDeleteInput"
              },
              "examples": {
                "example1": {
                  "summary": "delete leaf",
                  "value": {
                    "channel": "#agentteam",
                    "number": 2021
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskDeleteOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/get": {
      "post": {
        "operationId": "task_get",
        "summary": "get compact detail for one task",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "by number",
                  "value": {
                    "channel": "#agentteam",
                    "number": 2021
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/list": {
      "post": {
        "operationId": "task_list",
        "summary": "browse or search channel tasks",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskListInput"
              },
              "examples": {
                "example1": {
                  "summary": "active tasks",
                  "value": {
                    "channel": "#agentteam"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/unclaim": {
      "post": {
        "operationId": "task_unclaim",
        "summary": "release task claims",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskUnclaimInput"
              },
              "examples": {
                "example1": {
                  "summary": "release one",
                  "value": {
                    "channel": "#agentteam",
                    "numbers": [
                      2021
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskUnclaimOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/task/update": {
      "post": {
        "operationId": "task_update",
        "summary": "update task fields or status",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "set status",
                  "value": {
                    "channel": "#agentteam",
                    "number": 2021,
                    "status": "in_progress"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/team/get": {
      "post": {
        "operationId": "team_get",
        "summary": "get one Team and its Agent members",
        "description": "Get one Team's basic information and existing Agent collaboration fields.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamGetInput"
              },
              "examples": {
                "example1": {
                  "summary": "Team detail",
                  "value": {
                    "teamId": "team_0123456789abcd"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamGetOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/team/list": {
      "post": {
        "operationId": "team_list",
        "summary": "list Teams available to the current Agent",
        "description": "List the Teams available to the current Agent.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamListInput"
              },
              "examples": {
                "example1": {
                  "summary": "available Teams page",
                  "value": {
                    "limit": 20,
                    "cursor": "\u003cnextCursor\u003e"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/team/update": {
      "post": {
        "operationId": "team_update",
        "summary": "request updates to one Team",
        "description": "Request Human-approved updates to a Team description or existing Agent member collaboration fields.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamUpdateInput"
              },
              "examples": {
                "example1": {
                  "summary": "update Team description",
                  "value": {
                    "teamId": "team_0123456789abcd",
                    "requestId": "request-1",
                    "description": "Coordinate backend delivery."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamUpdateOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/workflow/plan": {
      "post": {
        "operationId": "workflow_plan",
        "summary": "author and version Workflow Plans",
        "description": "Create, inspect, edit, validate, compile, publish, version, read exact version source/layout, archive, and restore Workflow Plans through one closed action union; Team-linked Plans publish directly under their Team Leader.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowPlanInput"
              },
              "examples": {
                "example1": {
                  "summary": "create Thread handoff Plan",
                  "value": {
                    "action": "create",
                    "key": "thread_handoff",
                    "displayName": "Thread handoff",
                    "source": "apiVersion: loop.plan/v1\nkind: PlanVersion\ninput:\n  destination: {type: scope, required: true}\n  planner: {type: agent, required: true}\ngraph:\n  entry:\n    nodeId: open_thread\n    port: in\n    input:\n      destination: {ref: plan.input.destination}\n      planner: {ref: plan.input.planner}\n  nodes:\n    - id: open_thread\n      type: send_message\n      input:\n        destination: {type: scope, required: true}\n        planner: {type: agent, required: true}\n      sendMessage:\n        scope: {ref: input.destination}\n        text: \"Workflow collaboration thread\"\n        completion: sent\n        startThread: true\n    - id: ask_planner\n      type: send_message\n      input:\n        destination: {type: scope, required: true}\n        planner: {type: agent, required: true}\n      sendMessage:\n        scope: {ref: input.destination}\n        responder: {ref: input.planner}\n        text: \"Continue in this Thread\"\n        completion: callback\n        callbackOutput:\n          result: {type: string, required: true}\n    - id: done\n      type: end\n      end: {outcome: succeeded}\n  edges:\n    - id: thread_opened\n      source: {nodeId: open_thread, port: completed}\n      target: {nodeId: ask_planner, port: in}\n      bindings:\n        destination: {ref: output.threadScope}\n        planner: {ref: input.planner}\n    - id: planner_completed\n      source: {nodeId: ask_planner, port: completed}\n      target: {nodeId: done, port: in}\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPlanOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/workflow/run": {
      "post": {
        "operationId": "workflow_run",
        "summary": "start, inspect, follow, or cancel Workflow Runs",
        "description": "Start a published Plan version, inspect Runs, read redacted business logs, or cancel a Run.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowRunInput"
              },
              "examples": {
                "example1": {
                  "summary": "show a Run",
                  "value": {
                    "action": "show",
                    "runId": "wri_1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRunOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/workflow/step": {
      "post": {
        "operationId": "workflow_step",
        "summary": "list, inspect, or finish authorized Workflow Steps",
        "description": "Discover authorized Steps across Runs, or inspect, complete, fail, pause, or park a Step selected by Run and Step ID; the Server verifies the authenticated Agent against the frozen callback responder and its current lifecycle. Park is a repeatable keyless recovery cycle; legacy keys are optional.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowStepInput"
              },
              "examples": {
                "example1": {
                  "summary": "list authorized Steps",
                  "value": {
                    "action": "list",
                    "limit": 50
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowStepOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/workflow/trigger": {
      "post": {
        "operationId": "workflow_trigger",
        "summary": "deploy and control automatic Workflow Triggers",
        "description": "Create, inspect, validate, update, enable, disable, or archive automatic Workflow Triggers.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowTriggerInput"
              },
              "examples": {
                "example1": {
                  "summary": "list triggers",
                  "value": {
                    "action": "list",
                    "limit": 20
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTriggerOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    },
    "/workspace/list": {
      "post": {
        "operationId": "workspace_list",
        "summary": "browse workspace summary, channels, agents, humans",
        "description": "Browse a bounded page of workspace summary: channels, agents, and humans.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceListInput"
              },
              "examples": {
                "example1": {
                  "summary": "workspace summary",
                  "value": {
                    "kind": "summary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Action completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceListOutput"
                }
              }
            }
          },
          "default": {
            "description": "Action failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActionError": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "problem": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              },
              "next": {
                "type": "string"
              },
              "stage": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "serverCode": {
                "type": "string"
              },
              "diagnostics": {
                "items": {
                  "properties": {
                    "severity": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "index": {
                      "type": "integer"
                    },
                    "line": {
                      "type": "integer"
                    },
                    "column": {
                      "type": "integer"
                    },
                    "nodeId": {
                      "type": "string"
                    },
                    "edgeId": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "severity",
                    "code",
                    "message"
                  ]
                },
                "type": "array"
              },
              "truncation": {
                "properties": {
                  "diagnosticsTruncated": {
                    "type": "boolean"
                  },
                  "envelopeTruncated": {
                    "type": "boolean"
                  },
                  "omittedCount": {
                    "type": "integer"
                  },
                  "truncatedFields": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "serializedBytes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "truncated": {
                "type": "boolean"
              },
              "metadata": {
                "type": "object"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "code",
              "problem"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "error"
        ]
      },
      "AgentCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "machineId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "runtime": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "reasoningEffort": {
            "type": "string"
          },
          "modelProfileId": {
            "type": "string"
          },
          "channelIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "name",
          "machineId",
          "runtime"
        ]
      },
      "AgentCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending"
                ]
              },
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status",
              "approvalId"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentIds": {
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": ".*\\S.*"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "agentIds"
        ]
      },
      "AgentDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending"
                ]
              },
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status",
              "approvalId"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentDuplicateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "sourceAgentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "count": {
            "type": "integer",
            "maximum": 10,
            "minimum": 1
          },
          "mode": {
            "type": "string",
            "enum": [
              "config_only",
              "with_resources"
            ]
          },
          "machineId": {
            "type": "string"
          },
          "runtime": {
            "type": "string"
          },
          "channelIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "sourceAgentId"
        ]
      },
      "AgentDuplicateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending"
                ]
              },
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status",
              "approvalId"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "agentId"
        ]
      },
      "AgentGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "agent": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "runtime": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "labels": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "apiKeyConfigured": {
                    "type": "boolean"
                  },
                  "configuredHeaderNames": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "wireApi": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "smallModel": {
                    "type": "string"
                  },
                  "reasoningEffort": {
                    "type": "string"
                  },
                  "policy": {
                    "properties": {
                      "maxConcurrentTasks": {
                        "type": "integer"
                      },
                      "timeout": {
                        "type": "string"
                      },
                      "allowedPathCount": {
                        "type": "integer"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object"
                  },
                  "runtimeType": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "backendRegistered": {
                    "type": "boolean"
                  },
                  "sourceType": {
                    "type": "string"
                  },
                  "sourceName": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "runtime",
                  "status",
                  "backendRegistered"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "agent"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 256
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "AgentListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "agents": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "runtime": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "labels": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "apiKeyConfigured": {
                      "type": "boolean"
                    },
                    "configuredHeaderNames": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "wireApi": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "smallModel": {
                      "type": "string"
                    },
                    "reasoningEffort": {
                      "type": "string"
                    },
                    "policy": {
                      "properties": {
                        "maxConcurrentTasks": {
                          "type": "integer"
                        },
                        "timeout": {
                          "type": "string"
                        },
                        "allowedPathCount": {
                          "type": "integer"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object"
                    },
                    "runtimeType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "backendRegistered": {
                      "type": "boolean"
                    },
                    "sourceType": {
                      "type": "string"
                    },
                    "sourceName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "runtime",
                    "status",
                    "backendRegistered"
                  ]
                },
                "type": "array"
              },
              "nextCursor": {
                "type": "string",
                "maxLength": 512
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "agents",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentRestartInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "agentId"
        ]
      },
      "AgentRestartOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "restarted"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentStartInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "agentId"
        ]
      },
      "AgentStartOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "started",
                  "already_started"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentStopInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "agentId"
        ]
      },
      "AgentStopOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "stopping",
                  "already_stopped"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "AgentUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "anyOf": [
          {
            "required": [
              "description"
            ]
          },
          {
            "required": [
              "model"
            ]
          },
          {
            "required": [
              "reasoningEffort"
            ]
          },
          {
            "required": [
              "modelProfileId"
            ]
          }
        ],
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reasoningEffort": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "modelProfileId": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "agentId"
        ]
      },
      "AgentUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending"
                ]
              },
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status",
              "approvalId"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelAgentAddInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "channelId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agents": {
            "items": {
              "properties": {
                "agentId": {
                  "type": "string",
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": ".*\\S.*"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "agentId"
              ]
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "channelId",
          "agents"
        ]
      },
      "ChannelAgentAddOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channelId": {
                "type": "string"
              },
              "agents": {
                "items": {
                  "properties": {
                    "memberId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "displayName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "memberId",
                    "displayName"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channelId",
              "agents"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelAgentRemoveInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "channelId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agents": {
            "items": {
              "properties": {
                "agentId": {
                  "type": "string",
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": ".*\\S.*"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "agentId"
              ]
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "channelId",
          "agents"
        ]
      },
      "ChannelAgentRemoveOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channelId": {
                "type": "string"
              },
              "agents": {
                "items": {
                  "properties": {
                    "memberId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "displayName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "memberId",
                    "displayName"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channelId",
              "agents"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "displayName": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "displayName"
        ]
      },
      "ChannelCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channel": {
                "properties": {
                  "channelId": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "public"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "channelId",
                  "slug",
                  "displayName",
                  "description",
                  "visibility",
                  "version"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channel"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channelId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "channelId"
        ]
      },
      "ChannelGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channel": {
                "properties": {
                  "channelId": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "public"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "channelId",
                  "slug",
                  "displayName",
                  "description",
                  "visibility",
                  "version"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channel"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 32
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "ChannelListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channels": {
                "items": {
                  "properties": {
                    "channelId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "slug": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "private",
                        "public"
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "channelId",
                    "slug",
                    "displayName",
                    "description",
                    "visibility"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              },
              "totalCount": {
                "type": "integer"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channels",
              "hasMore",
              "totalCount"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelMembersInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channelId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 32
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "channelId"
        ]
      },
      "ChannelMembersOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channelId": {
                "type": "string"
              },
              "members": {
                "items": {
                  "properties": {
                    "memberId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "human",
                        "agent",
                        "service"
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "memberId",
                    "displayName",
                    "kind"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              },
              "totalCount": {
                "type": "integer"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channelId",
              "members",
              "hasMore",
              "totalCount"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ChannelUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "channelId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 1
          },
          "displayName": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "minProperties": 4,
        "required": [
          "requestId",
          "channelId",
          "expectedVersion"
        ]
      },
      "ChannelUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channel": {
                "properties": {
                  "channelId": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "public"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "channelId",
                  "slug",
                  "displayName",
                  "description",
                  "visibility",
                  "version"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channel"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ProfileSetAvatarInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "imagePath": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "imagePath"
        ]
      },
      "ProfileSetAvatarOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "avatarUrl": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object"
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ProjectCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "rootPath": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "workspace"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "rootPath",
          "name"
        ]
      },
      "ProjectCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "project": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "rootPath": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string"
                  },
                  "ownerUserId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "rootPath",
                  "name"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "project"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ProjectDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ProjectDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "id"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ProjectListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "ProjectListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "projects": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "rootPath": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "visibility": {
                      "type": "string"
                    },
                    "ownerUserId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "rootPath",
                    "name"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "projects",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ReviewAddInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "required": [
              "path",
              "thread"
            ]
          },
          {
            "required": [
              "path",
              "taskScope"
            ]
          }
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "base": {
            "type": "string"
          },
          "head": {
            "type": "string"
          },
          "thread": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string"
          },
          "prUrl": {
            "type": "string"
          },
          "taskScope": {
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "task"
                ]
              },
              "scopeId": {
                "type": "string",
                "minLength": 1,
                "pattern": "^tsk_.*$"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "kind",
              "scopeId"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "ReviewAddOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "context": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "rootPath": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "baseRef": {
                    "type": "string"
                  },
                  "headRef": {
                    "type": "string"
                  },
                  "prUrl": {
                    "type": "string"
                  },
                  "comparisonMode": {
                    "type": "string"
                  },
                  "threadId": {
                    "type": "string"
                  },
                  "sourceAgentId": {
                    "type": "string"
                  },
                  "taskScopeId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "context"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ReviewDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "contextId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "contextId"
        ]
      },
      "ReviewDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "contextId": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "contextId"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ReviewListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "required": [
              "thread"
            ]
          },
          {
            "required": [
              "taskScope"
            ]
          }
        ],
        "properties": {
          "thread": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          },
          "taskScope": {
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "task"
                ]
              },
              "scopeId": {
                "type": "string",
                "minLength": 1,
                "pattern": "^tsk_.*$"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "kind",
              "scopeId"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "ReviewListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "contexts": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "rootPath": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "baseRef": {
                      "type": "string"
                    },
                    "headRef": {
                      "type": "string"
                    },
                    "prUrl": {
                      "type": "string"
                    },
                    "comparisonMode": {
                      "type": "string"
                    },
                    "threadId": {
                      "type": "string"
                    },
                    "sourceAgentId": {
                      "type": "string"
                    },
                    "taskScopeId": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "contexts",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleApplyInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "roleId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "roleVersionId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "agentId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "roleId",
          "roleVersionId",
          "agentId"
        ]
      },
      "RoleApplyOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "succeeded",
                  "rejected",
                  "failed",
                  "cancelled"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "approvalId",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "definition": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "name",
          "definition"
        ]
      },
      "RoleCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "succeeded",
                  "rejected",
                  "failed",
                  "cancelled"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "approvalId",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "roleId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "expectedRoleVersionId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "roleId",
          "expectedRoleVersionId"
        ]
      },
      "RoleDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "succeeded",
                  "rejected",
                  "failed",
                  "cancelled"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "approvalId",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "roleId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "roleId"
        ]
      },
      "RoleGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "role": {
                "properties": {
                  "roleId": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "description": {
                    "type": "string"
                  },
                  "definition": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "private",
                      "workspace"
                    ]
                  },
                  "roleVersionId": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "canManage": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "roleId",
                  "name",
                  "definition",
                  "visibility",
                  "roleVersionId",
                  "canManage"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "role"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "view": {
            "type": "string",
            "enum": [
              "all",
              "workspace",
              "created_by_me",
              "private"
            ]
          },
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "RoleListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "roles": {
                "items": {
                  "properties": {
                    "roleId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "description": {
                      "type": "string"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "private",
                        "workspace"
                      ]
                    },
                    "roleVersionId": {
                      "type": "string",
                      "minLength": 1,
                      "pattern": ".*\\S.*"
                    },
                    "canManage": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "roleId",
                    "name",
                    "visibility",
                    "roleVersionId",
                    "canManage"
                  ]
                },
                "type": "array"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "roles"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleRequestGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId"
        ]
      },
      "RoleRequestGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "requestId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update",
                  "delete",
                  "apply"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "succeeded",
                  "rejected",
                  "failed",
                  "cancelled"
                ]
              },
              "approvalId": {
                "type": "string"
              },
              "roleId": {
                "type": "string"
              },
              "roleVersionId": {
                "type": "string"
              },
              "agentId": {
                "type": "string"
              },
              "failure": {
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": ".*\\S.*"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "code",
                  "message"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "requestId",
              "action",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "RoleUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "roleId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "expectedRoleVersionId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "definition": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "workspace"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "minProperties": 4,
        "required": [
          "requestId",
          "roleId",
          "expectedRoleVersionId"
        ]
      },
      "RoleUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "approvalId": {
                "type": "string",
                "minLength": 1,
                "pattern": ".*\\S.*"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "succeeded",
                  "rejected",
                  "failed",
                  "cancelled"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "approvalId",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "schedule": {
            "oneOf": [
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "at"
                    ]
                  },
                  "at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "at"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "after"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "every"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "anchor": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds",
                  "anchor"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "cron"
                    ]
                  },
                  "expression": {
                    "type": "string",
                    "maxLength": 256,
                    "minLength": 1
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "expression",
                  "timezone"
                ]
              }
            ]
          },
          "target": {
            "type": "string"
          },
          "template": {
            "type": "string",
            "minLength": 1
          },
          "startThread": {
            "type": "boolean"
          },
          "humanNotificationMode": {
            "type": "string",
            "enum": [
              "none"
            ]
          },
          "idempotencyKey": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "schedule",
          "template",
          "idempotencyKey"
        ]
      },
      "ScheduledMessageCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "schedule": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "at"
                        ]
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "at"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "after"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "every"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "anchor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds",
                      "anchor"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "cron"
                        ]
                      },
                      "expression": {
                        "type": "string",
                        "maxLength": 256,
                        "minLength": 1
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "expression",
                      "timezone"
                    ]
                  }
                ]
              },
              "target": {
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "parentChannelId": {
                    "type": "string"
                  },
                  "parentMessageId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "template": {
                "type": "string"
              },
              "mentions": {
                "items": {
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "type",
                    "id",
                    "token"
                  ]
                },
                "type": "array"
              },
              "startThread": {
                "type": "boolean"
              },
              "humanNotificationMode": {
                "type": "string"
              },
              "nextOccurrenceAt": {
                "type": "string"
              },
              "lastRunAt": {
                "type": "string"
              },
              "lastSuccessAt": {
                "type": "string"
              },
              "lastFailureCode": {
                "type": "string"
              },
              "validation": {
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "valid"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "name",
              "status",
              "schedule",
              "target",
              "template",
              "humanNotificationMode",
              "validation",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ScheduledMessageDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "id"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ScheduledMessageGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "schedule": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "at"
                        ]
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "at"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "after"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "every"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "anchor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds",
                      "anchor"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "cron"
                        ]
                      },
                      "expression": {
                        "type": "string",
                        "maxLength": 256,
                        "minLength": 1
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "expression",
                      "timezone"
                    ]
                  }
                ]
              },
              "target": {
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "parentChannelId": {
                    "type": "string"
                  },
                  "parentMessageId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "template": {
                "type": "string"
              },
              "mentions": {
                "items": {
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "type",
                    "id",
                    "token"
                  ]
                },
                "type": "array"
              },
              "startThread": {
                "type": "boolean"
              },
              "humanNotificationMode": {
                "type": "string"
              },
              "nextOccurrenceAt": {
                "type": "string"
              },
              "lastRunAt": {
                "type": "string"
              },
              "lastSuccessAt": {
                "type": "string"
              },
              "lastFailureCode": {
                "type": "string"
              },
              "validation": {
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "valid"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "name",
              "status",
              "schedule",
              "target",
              "template",
              "humanNotificationMode",
              "validation",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 256
          },
          "status": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "ScheduledMessageListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "items": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "sourceKind": {
                      "type": "string"
                    },
                    "timeMode": {
                      "type": "string"
                    },
                    "target": {
                      "properties": {
                        "kind": {
                          "type": "string"
                        },
                        "ref": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "parentChannelId": {
                          "type": "string"
                        },
                        "parentMessageId": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object"
                    },
                    "nextOccurrenceAt": {
                      "type": "string"
                    },
                    "lastFailureCode": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "status"
                  ]
                },
                "type": "array"
              },
              "limit": {
                "type": "integer"
              },
              "cursor": {
                "type": "string"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "items"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessagePauseInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ScheduledMessagePauseOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "schedule": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "at"
                        ]
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "at"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "after"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "every"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "anchor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds",
                      "anchor"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "cron"
                        ]
                      },
                      "expression": {
                        "type": "string",
                        "maxLength": 256,
                        "minLength": 1
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "expression",
                      "timezone"
                    ]
                  }
                ]
              },
              "target": {
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "parentChannelId": {
                    "type": "string"
                  },
                  "parentMessageId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "template": {
                "type": "string"
              },
              "mentions": {
                "items": {
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "type",
                    "id",
                    "token"
                  ]
                },
                "type": "array"
              },
              "startThread": {
                "type": "boolean"
              },
              "humanNotificationMode": {
                "type": "string"
              },
              "nextOccurrenceAt": {
                "type": "string"
              },
              "lastRunAt": {
                "type": "string"
              },
              "lastSuccessAt": {
                "type": "string"
              },
              "lastFailureCode": {
                "type": "string"
              },
              "validation": {
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "valid"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "name",
              "status",
              "schedule",
              "target",
              "template",
              "humanNotificationMode",
              "validation",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageResumeInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ScheduledMessageResumeOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "schedule": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "at"
                        ]
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "at"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "after"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "every"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "anchor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds",
                      "anchor"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "cron"
                        ]
                      },
                      "expression": {
                        "type": "string",
                        "maxLength": 256,
                        "minLength": 1
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "expression",
                      "timezone"
                    ]
                  }
                ]
              },
              "target": {
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "parentChannelId": {
                    "type": "string"
                  },
                  "parentMessageId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "template": {
                "type": "string"
              },
              "mentions": {
                "items": {
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "type",
                    "id",
                    "token"
                  ]
                },
                "type": "array"
              },
              "startThread": {
                "type": "boolean"
              },
              "humanNotificationMode": {
                "type": "string"
              },
              "nextOccurrenceAt": {
                "type": "string"
              },
              "lastRunAt": {
                "type": "string"
              },
              "lastSuccessAt": {
                "type": "string"
              },
              "lastFailureCode": {
                "type": "string"
              },
              "validation": {
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "valid"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "name",
              "status",
              "schedule",
              "target",
              "template",
              "humanNotificationMode",
              "validation",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageRunsInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id"
        ]
      },
      "ScheduledMessageRunsOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "runs": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "scheduleId": {
                      "type": "string"
                    },
                    "triggerId": {
                      "type": "string"
                    },
                    "workspaceId": {
                      "type": "string"
                    },
                    "idempotencyKey": {
                      "type": "string"
                    },
                    "sourceOccurrenceRef": {
                      "type": "string"
                    },
                    "sourceKind": {
                      "type": "string"
                    },
                    "timeMode": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "scheduledFor": {
                      "type": "string"
                    },
                    "occurredAt": {
                      "type": "string"
                    },
                    "attemptedAt": {
                      "type": "string"
                    },
                    "completedAt": {
                      "type": "string"
                    },
                    "messageId": {
                      "type": "string"
                    },
                    "effectKind": {
                      "type": "string"
                    },
                    "effectRef": {
                      "type": "string"
                    },
                    "errorCode": {
                      "type": "string"
                    },
                    "errorDetail": {
                      "type": "string"
                    },
                    "renderedContentPreview": {
                      "type": "string"
                    },
                    "attemptCount": {
                      "type": "integer"
                    },
                    "target": {
                      "properties": {
                        "kind": {
                          "type": "string"
                        },
                        "ref": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "parentChannelId": {
                          "type": "string"
                        },
                        "parentMessageId": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object"
                    },
                    "scheduleName": {
                      "type": "string"
                    },
                    "triggerName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "workspaceId",
                    "idempotencyKey",
                    "sourceOccurrenceRef",
                    "sourceKind",
                    "status",
                    "attemptedAt",
                    "renderedContentPreview",
                    "attemptCount",
                    "target"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "runs",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "expectedUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "humanNotificationMode": {
            "type": "string",
            "enum": [
              "none"
            ]
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "idempotencyKey": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "startThread": {
            "type": "boolean"
          },
          "target": {
            "type": "string",
            "minLength": 1
          },
          "template": {
            "type": "string",
            "minLength": 1
          },
          "schedule": {
            "oneOf": [
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "at"
                    ]
                  },
                  "at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "at"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "after"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "every"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "anchor": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds",
                  "anchor"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "cron"
                    ]
                  },
                  "expression": {
                    "type": "string",
                    "maxLength": 256,
                    "minLength": 1
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "expression",
                  "timezone"
                ]
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "name",
          "target",
          "template",
          "idempotencyKey",
          "schedule"
        ]
      },
      "ScheduledMessageUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "schedule": {
                "oneOf": [
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "at"
                        ]
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "at"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "after"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "every"
                        ]
                      },
                      "seconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "anchor": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "seconds",
                      "anchor"
                    ]
                  },
                  {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "cron"
                        ]
                      },
                      "expression": {
                        "type": "string",
                        "maxLength": 256,
                        "minLength": 1
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "expression",
                      "timezone"
                    ]
                  }
                ]
              },
              "target": {
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "parentChannelId": {
                    "type": "string"
                  },
                  "parentMessageId": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "template": {
                "type": "string"
              },
              "mentions": {
                "items": {
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "type",
                    "id",
                    "token"
                  ]
                },
                "type": "array"
              },
              "startThread": {
                "type": "boolean"
              },
              "humanNotificationMode": {
                "type": "string"
              },
              "nextOccurrenceAt": {
                "type": "string"
              },
              "lastRunAt": {
                "type": "string"
              },
              "lastSuccessAt": {
                "type": "string"
              },
              "lastFailureCode": {
                "type": "string"
              },
              "validation": {
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "valid"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "name",
              "status",
              "schedule",
              "target",
              "template",
              "humanNotificationMode",
              "validation",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "ScheduledMessageValidateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "schedule": {
            "oneOf": [
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "at"
                    ]
                  },
                  "at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "at"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "after"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "every"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "anchor": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "seconds",
                  "anchor"
                ]
              },
              {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "cron"
                    ]
                  },
                  "expression": {
                    "type": "string",
                    "maxLength": 256,
                    "minLength": 1
                  },
                  "timezone": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "expression",
                  "timezone"
                ]
              }
            ]
          },
          "target": {
            "type": "string"
          },
          "template": {
            "type": "string",
            "minLength": 1
          },
          "startThread": {
            "type": "boolean"
          },
          "humanNotificationMode": {
            "type": "string",
            "enum": [
              "none"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "schedule",
          "template"
        ]
      },
      "ScheduledMessageValidateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "current": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "schedule": {
                    "oneOf": [
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "at"
                            ]
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "at"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "after"
                            ]
                          },
                          "seconds": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "seconds"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "every"
                            ]
                          },
                          "seconds": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "anchor": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "seconds",
                          "anchor"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "cron"
                            ]
                          },
                          "expression": {
                            "type": "string",
                            "maxLength": 256,
                            "minLength": 1
                          },
                          "timezone": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "expression",
                          "timezone"
                        ]
                      }
                    ]
                  },
                  "target": {
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "ref": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "parentChannelId": {
                        "type": "string"
                      },
                      "parentMessageId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object"
                  },
                  "template": {
                    "type": "string"
                  },
                  "mentions": {
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "token": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "type",
                        "id",
                        "token"
                      ]
                    },
                    "type": "array"
                  },
                  "startThread": {
                    "type": "boolean"
                  },
                  "humanNotificationMode": {
                    "type": "string"
                  },
                  "nextOccurrenceAt": {
                    "type": "string"
                  },
                  "lastRunAt": {
                    "type": "string"
                  },
                  "lastSuccessAt": {
                    "type": "string"
                  },
                  "lastFailureCode": {
                    "type": "string"
                  },
                  "validation": {
                    "properties": {
                      "valid": {
                        "type": "boolean"
                      },
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "valid"
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "name",
                  "status",
                  "schedule",
                  "target",
                  "template",
                  "humanNotificationMode",
                  "validation",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "proposed": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "schedule": {
                    "oneOf": [
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "at"
                            ]
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "at"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "after"
                            ]
                          },
                          "seconds": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "seconds"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "every"
                            ]
                          },
                          "seconds": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "anchor": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "seconds",
                          "anchor"
                        ]
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "cron"
                            ]
                          },
                          "expression": {
                            "type": "string",
                            "maxLength": 256,
                            "minLength": 1
                          },
                          "timezone": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "expression",
                          "timezone"
                        ]
                      }
                    ]
                  },
                  "target": {
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "ref": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "parentChannelId": {
                        "type": "string"
                      },
                      "parentMessageId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object"
                  },
                  "template": {
                    "type": "string"
                  },
                  "mentions": {
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "token": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "type",
                        "id",
                        "token"
                      ]
                    },
                    "type": "array"
                  },
                  "startThread": {
                    "type": "boolean"
                  },
                  "humanNotificationMode": {
                    "type": "string"
                  },
                  "nextOccurrenceAt": {
                    "type": "string"
                  },
                  "lastRunAt": {
                    "type": "string"
                  },
                  "lastSuccessAt": {
                    "type": "string"
                  },
                  "lastFailureCode": {
                    "type": "string"
                  },
                  "validation": {
                    "properties": {
                      "valid": {
                        "type": "boolean"
                      },
                      "code": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "valid"
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "name",
                  "status",
                  "schedule",
                  "target",
                  "template",
                  "humanNotificationMode",
                  "validation",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "estimatedScheduledAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "proposed"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "repoNameOverride": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "storageScope": {
            "type": "string"
          },
          "visibilityScope": {
            "type": "string"
          },
          "templateLocale": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ]
      },
      "SkillCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "storageScope": {
                "type": "string"
              },
              "storageOwnerLogin": {
                "type": "string"
              },
              "visibilityScope": {
                "type": "string"
              },
              "visibilityOwnerId": {
                "type": "string"
              },
              "skillCount": {
                "type": "integer"
              },
              "isActive": {
                "type": "boolean"
              },
              "isOfficial": {
                "type": "boolean"
              },
              "repositories": {
                "properties": {
                  "canonical": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "repoRole": {
                        "type": "string"
                      },
                      "repoOwner": {
                        "type": "string"
                      },
                      "repoName": {
                        "type": "string"
                      },
                      "repoFullName": {
                        "type": "string"
                      },
                      "repoId": {
                        "type": "string"
                      },
                      "defaultRef": {
                        "type": "string"
                      },
                      "repositoryAccessProfile": {
                        "type": "string"
                      },
                      "repositoryAccessStatus": {
                        "type": "string"
                      },
                      "repositoryAccessLastError": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "repoRole",
                      "repoOwner",
                      "repoName",
                      "repoFullName",
                      "updatedAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "role": {
                "type": "string"
              },
              "canManage": {
                "type": "boolean"
              },
              "createdBy": {
                "type": "string"
              },
              "updatedBy": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "id",
              "workspaceId",
              "slug",
              "name",
              "storageScope",
              "storageOwnerLogin",
              "visibilityScope",
              "visibilityOwnerId",
              "skillCount",
              "isActive",
              "isOfficial",
              "repositories",
              "canManage",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "skillId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "requestId",
          "skillId"
        ]
      },
      "SkillDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "approvalId": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "rejected",
                  "deleted"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "approvalId",
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "skillId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "skillId"
        ]
      },
      "SkillGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "storageScope": {
                "type": "string"
              },
              "storageOwnerLogin": {
                "type": "string"
              },
              "visibilityScope": {
                "type": "string"
              },
              "visibilityOwnerId": {
                "type": "string"
              },
              "skillCount": {
                "type": "integer"
              },
              "isActive": {
                "type": "boolean"
              },
              "isOfficial": {
                "type": "boolean"
              },
              "repositories": {
                "properties": {
                  "canonical": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "repoRole": {
                        "type": "string"
                      },
                      "repoOwner": {
                        "type": "string"
                      },
                      "repoName": {
                        "type": "string"
                      },
                      "repoFullName": {
                        "type": "string"
                      },
                      "repoId": {
                        "type": "string"
                      },
                      "defaultRef": {
                        "type": "string"
                      },
                      "repositoryAccessProfile": {
                        "type": "string"
                      },
                      "repositoryAccessStatus": {
                        "type": "string"
                      },
                      "repositoryAccessLastError": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "repoRole",
                      "repoOwner",
                      "repoName",
                      "repoFullName",
                      "updatedAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "role": {
                "type": "string"
              },
              "canManage": {
                "type": "boolean"
              },
              "createdBy": {
                "type": "string"
              },
              "updatedBy": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "id",
              "workspaceId",
              "slug",
              "name",
              "storageScope",
              "storageOwnerLogin",
              "visibilityScope",
              "visibilityOwnerId",
              "skillCount",
              "isActive",
              "isOfficial",
              "repositories",
              "canManage",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillImportInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "required": [
              "file"
            ]
          },
          {
            "required": [
              "url"
            ]
          }
        ],
        "properties": {
          "skillId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "file": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "skillId"
        ]
      },
      "SkillImportOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "skill": {
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "workspaceId": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "storageScope": {
                    "type": "string"
                  },
                  "storageOwnerLogin": {
                    "type": "string"
                  },
                  "visibilityScope": {
                    "type": "string"
                  },
                  "visibilityOwnerId": {
                    "type": "string"
                  },
                  "skillCount": {
                    "type": "integer"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "isOfficial": {
                    "type": "boolean"
                  },
                  "repositories": {
                    "properties": {
                      "canonical": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "repoRole": {
                            "type": "string"
                          },
                          "repoOwner": {
                            "type": "string"
                          },
                          "repoName": {
                            "type": "string"
                          },
                          "repoFullName": {
                            "type": "string"
                          },
                          "repoId": {
                            "type": "string"
                          },
                          "defaultRef": {
                            "type": "string"
                          },
                          "repositoryAccessProfile": {
                            "type": "string"
                          },
                          "repositoryAccessStatus": {
                            "type": "string"
                          },
                          "repositoryAccessLastError": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "repoRole",
                          "repoOwner",
                          "repoName",
                          "repoFullName",
                          "updatedAt"
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "type": "object"
                  },
                  "role": {
                    "type": "string"
                  },
                  "canManage": {
                    "type": "boolean"
                  },
                  "createdBy": {
                    "type": "string"
                  },
                  "updatedBy": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "workspaceId",
                  "slug",
                  "name",
                  "storageScope",
                  "storageOwnerLogin",
                  "visibilityScope",
                  "visibilityOwnerId",
                  "skillCount",
                  "isActive",
                  "isOfficial",
                  "repositories",
                  "canManage",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "importedSkills": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "layout": {
                      "type": "string"
                    },
                    "sizeBytes": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "issueCode": {
                      "type": "string"
                    },
                    "frontmatter": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "path",
                    "sizeBytes",
                    "status"
                  ]
                },
                "type": "array"
              },
              "commitSha": {
                "type": "string"
              },
              "skillCount": {
                "type": "integer"
              },
              "warnings": {
                "items": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "sizeBytes": {
                      "type": "integer"
                    },
                    "limitBytes": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "skill",
              "importedSkills",
              "skillCount"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "type": "string"
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "perPage": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "templateLocale": {
            "type": "string"
          },
          "view": {
            "type": "string",
            "enum": [
              "created_by_me",
              "official",
              "shared"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "SkillListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "items": {
                "items": {
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "workspaceId": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "storageScope": {
                      "type": "string"
                    },
                    "storageOwnerLogin": {
                      "type": "string"
                    },
                    "visibilityScope": {
                      "type": "string"
                    },
                    "visibilityOwnerId": {
                      "type": "string"
                    },
                    "skillCount": {
                      "type": "integer"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "isOfficial": {
                      "type": "boolean"
                    },
                    "repositories": {
                      "properties": {
                        "canonical": {
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "repoRole": {
                              "type": "string"
                            },
                            "repoOwner": {
                              "type": "string"
                            },
                            "repoName": {
                              "type": "string"
                            },
                            "repoFullName": {
                              "type": "string"
                            },
                            "repoId": {
                              "type": "string"
                            },
                            "defaultRef": {
                              "type": "string"
                            },
                            "repositoryAccessProfile": {
                              "type": "string"
                            },
                            "repositoryAccessStatus": {
                              "type": "string"
                            },
                            "repositoryAccessLastError": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "id",
                            "repoRole",
                            "repoOwner",
                            "repoName",
                            "repoFullName",
                            "updatedAt"
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "type": "object"
                    },
                    "role": {
                      "type": "string"
                    },
                    "canManage": {
                      "type": "boolean"
                    },
                    "createdBy": {
                      "type": "string"
                    },
                    "updatedBy": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "id",
                    "workspaceId",
                    "slug",
                    "name",
                    "storageScope",
                    "storageOwnerLogin",
                    "visibilityScope",
                    "visibilityOwnerId",
                    "skillCount",
                    "isActive",
                    "isOfficial",
                    "repositories",
                    "canManage",
                    "createdAt",
                    "updatedAt"
                  ]
                },
                "type": "array"
              },
              "page": {
                "type": "integer"
              },
              "perPage": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "items",
              "page",
              "perPage",
              "total",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "SkillUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "skillId": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "minProperties": 2,
        "required": [
          "skillId"
        ]
      },
      "SkillUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "id": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "storageScope": {
                "type": "string"
              },
              "storageOwnerLogin": {
                "type": "string"
              },
              "visibilityScope": {
                "type": "string"
              },
              "visibilityOwnerId": {
                "type": "string"
              },
              "skillCount": {
                "type": "integer"
              },
              "isActive": {
                "type": "boolean"
              },
              "isOfficial": {
                "type": "boolean"
              },
              "repositories": {
                "properties": {
                  "canonical": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "repoRole": {
                        "type": "string"
                      },
                      "repoOwner": {
                        "type": "string"
                      },
                      "repoName": {
                        "type": "string"
                      },
                      "repoFullName": {
                        "type": "string"
                      },
                      "repoId": {
                        "type": "string"
                      },
                      "defaultRef": {
                        "type": "string"
                      },
                      "repositoryAccessProfile": {
                        "type": "string"
                      },
                      "repositoryAccessStatus": {
                        "type": "string"
                      },
                      "repositoryAccessLastError": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "repoRole",
                      "repoOwner",
                      "repoName",
                      "repoFullName",
                      "updatedAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "role": {
                "type": "string"
              },
              "canManage": {
                "type": "boolean"
              },
              "createdBy": {
                "type": "string"
              },
              "updatedBy": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "id",
              "workspaceId",
              "slug",
              "name",
              "storageScope",
              "storageOwnerLogin",
              "visibilityScope",
              "visibilityOwnerId",
              "skillCount",
              "isActive",
              "isOfficial",
              "repositories",
              "canManage",
              "createdAt",
              "updatedAt"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskCheckpointInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string"
          },
          "number": {
            "type": "integer",
            "minimum": 1
          },
          "summary": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 1,
            "pattern": ".*\\S.*"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "summary"
        ]
      },
      "TaskCheckpointOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "task": {
                "properties": {
                  "taskScopeId": {
                    "type": "string"
                  },
                  "taskNumber": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "assigneeProfile": {
                    "properties": {
                      "actorType": {
                        "type": "string"
                      },
                      "principalId": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      },
                      "targetId": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "actorType",
                      "displayName"
                    ]
                  },
                  "reused": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "taskNumber",
                  "title"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "task"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskClaimInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string"
          },
          "numbers": {
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "channel",
          "numbers"
        ]
      },
      "TaskClaimOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "claimed": {
                "type": "integer"
              },
              "failed": {
                "items": {
                  "properties": {
                    "taskNumber": {
                      "type": "integer"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "taskNumber"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "claimed"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "not": {
              "required": [
                "parentTaskScope"
              ]
            },
            "required": [
              "tasks"
            ]
          },
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "channel"
                  ]
                },
                {
                  "required": [
                    "parent"
                  ]
                }
              ]
            },
            "required": [
              "parentTaskScope"
            ]
          }
        ],
        "properties": {
          "channel": {
            "type": "string",
            "minLength": 1
          },
          "parent": {
            "type": "integer",
            "minimum": 1
          },
          "parentTaskScope": {
            "properties": {
              "kind": {
                "type": "string",
                "const": "task"
              },
              "scopeId": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "kind",
              "scopeId"
            ]
          },
          "target": {
            "type": "string"
          },
          "tasks": {
            "oneOf": [
              {
                "items": {
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 512,
                      "pattern": ".*\\S.*"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "title"
                  ]
                }
              },
              {
                "items": {
                  "anyOf": [
                    {
                      "required": [
                        "description"
                      ]
                    },
                    {
                      "required": [
                        "kind"
                      ]
                    },
                    {
                      "required": [
                        "priority"
                      ]
                    },
                    {
                      "required": [
                        "assignee"
                      ]
                    }
                  ],
                  "properties": {
                    "assignee": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 8192
                    },
                    "kind": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "priority": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 512,
                      "pattern": ".*\\S.*"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "title"
                  ]
                },
                "maxItems": 1,
                "minItems": 1
              }
            ],
            "type": "array",
            "maxItems": 20,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "tasks"
        ]
      },
      "TaskCreateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channelRef": {
                "type": "string"
              },
              "tasks": {
                "items": {
                  "properties": {
                    "taskScopeId": {
                      "type": "string"
                    },
                    "taskNumber": {
                      "type": "integer"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "assigneeProfile": {
                      "properties": {
                        "actorType": {
                          "type": "string"
                        },
                        "principalId": {
                          "type": "string"
                        },
                        "memberId": {
                          "type": "string"
                        },
                        "targetId": {
                          "type": "string"
                        },
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "actorType",
                        "displayName"
                      ]
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "taskNumber",
                    "title"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "tasks"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskDeleteInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string",
            "minLength": 1
          },
          "number": {
            "type": "integer",
            "minimum": 1
          },
          "subtaskMode": {
            "type": "string",
            "enum": [
              "promote",
              "delete"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "channel",
          "number"
        ]
      },
      "TaskDeleteOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "deletedTaskNumbers": {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              "promotedTaskNumbers": {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "deletedTaskNumbers",
              "promotedTaskNumbers"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string"
          },
          "number": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "TaskGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "detail": {
                "properties": {
                  "task": {
                    "properties": {
                      "taskScopeId": {
                        "type": "string"
                      },
                      "taskNumber": {
                        "type": "integer"
                      },
                      "title": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "assigneeProfile": {
                        "properties": {
                          "actorType": {
                            "type": "string"
                          },
                          "principalId": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          },
                          "targetId": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "actorType",
                          "displayName"
                        ]
                      },
                      "reused": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "taskNumber",
                      "title"
                    ]
                  },
                  "parentTask": {
                    "properties": {
                      "taskScopeId": {
                        "type": "string"
                      },
                      "taskNumber": {
                        "type": "integer"
                      },
                      "title": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "assigneeProfile": {
                        "properties": {
                          "actorType": {
                            "type": "string"
                          },
                          "principalId": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          },
                          "targetId": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "actorType",
                          "displayName"
                        ]
                      },
                      "reused": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "taskNumber",
                      "title"
                    ]
                  },
                  "acceptanceCriteria": {
                    "items": {
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1
                        },
                        "checked": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "text"
                      ]
                    },
                    "type": "array"
                  },
                  "reviewChecklist": {
                    "items": {
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1
                        },
                        "checked": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "text"
                      ]
                    },
                    "type": "array"
                  },
                  "subtasks": {
                    "items": {
                      "properties": {
                        "taskScopeId": {
                          "type": "string"
                        },
                        "taskNumber": {
                          "type": "integer"
                        },
                        "title": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "assigneeProfile": {
                          "properties": {
                            "actorType": {
                              "type": "string"
                            },
                            "principalId": {
                              "type": "string"
                            },
                            "memberId": {
                              "type": "string"
                            },
                            "targetId": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "actorType",
                            "displayName"
                          ]
                        },
                        "reused": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "taskNumber",
                        "title"
                      ]
                    },
                    "type": "array"
                  },
                  "messages": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "urls": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "workspaces": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "task"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "detail"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "includeSubtasks": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "sort": {
            "type": "string"
          },
          "filters": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "TaskListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channelRef": {
                "type": "string"
              },
              "tasks": {
                "items": {
                  "properties": {
                    "taskScopeId": {
                      "type": "string"
                    },
                    "taskNumber": {
                      "type": "integer"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "assigneeProfile": {
                      "properties": {
                        "actorType": {
                          "type": "string"
                        },
                        "principalId": {
                          "type": "string"
                        },
                        "memberId": {
                          "type": "string"
                        },
                        "targetId": {
                          "type": "string"
                        },
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "actorType",
                        "displayName"
                      ]
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "taskNumber",
                    "title"
                  ]
                },
                "type": "array"
              },
              "limit": {
                "type": "integer"
              },
              "totalCount": {
                "type": "integer"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "tasks"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskUnclaimInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "channel": {
            "type": "string"
          },
          "numbers": {
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "channel",
          "numbers"
        ]
      },
      "TaskUnclaimOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "claimed": {
                "type": "integer"
              },
              "failed": {
                "items": {
                  "properties": {
                    "taskNumber": {
                      "type": "integer"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "taskNumber"
                  ]
                },
                "type": "array"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "claimed"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TaskUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "title"
                  ]
                },
                {
                  "required": [
                    "description"
                  ]
                },
                {
                  "required": [
                    "kind"
                  ]
                },
                {
                  "required": [
                    "priority"
                  ]
                },
                {
                  "required": [
                    "assignee"
                  ]
                },
                {
                  "required": [
                    "acceptanceCriteria"
                  ]
                },
                {
                  "required": [
                    "reviewChecklist"
                  ]
                },
                {
                  "required": [
                    "messages"
                  ]
                },
                {
                  "required": [
                    "urls"
                  ]
                },
                {
                  "required": [
                    "workspaces"
                  ]
                },
                {
                  "required": [
                    "attachments"
                  ]
                },
                {
                  "required": [
                    "blocker"
                  ]
                },
                {
                  "required": [
                    "parent"
                  ]
                }
              ]
            },
            "required": [
              "status"
            ]
          },
          {
            "anyOf": [
              {
                "required": [
                  "title"
                ]
              },
              {
                "required": [
                  "description"
                ]
              },
              {
                "required": [
                  "kind"
                ]
              },
              {
                "required": [
                  "priority"
                ]
              },
              {
                "required": [
                  "assignee"
                ]
              },
              {
                "required": [
                  "acceptanceCriteria"
                ]
              },
              {
                "required": [
                  "reviewChecklist"
                ]
              },
              {
                "required": [
                  "messages"
                ]
              },
              {
                "required": [
                  "urls"
                ]
              },
              {
                "required": [
                  "workspaces"
                ]
              },
              {
                "required": [
                  "attachments"
                ]
              },
              {
                "required": [
                  "blocker"
                ]
              },
              {
                "required": [
                  "parent"
                ]
              }
            ],
            "not": {
              "required": [
                "status"
              ]
            }
          }
        ],
        "properties": {
          "acceptanceCriteria": {
            "items": {
              "properties": {
                "checked": {
                  "type": "boolean"
                },
                "id": {
                  "type": "string",
                  "maxLength": 512
                },
                "text": {
                  "type": "string",
                  "maxLength": 2048,
                  "pattern": ".*\\S.*"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "text"
              ]
            },
            "type": "array",
            "maxItems": 50
          },
          "assignee": {
            "type": "string",
            "maxLength": 512
          },
          "attachments": {
            "items": {
              "type": "string",
              "maxLength": 1024
            },
            "type": "array",
            "maxItems": 50
          },
          "blocker": {
            "type": "string",
            "maxLength": 512
          },
          "channel": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "maxLength": 8192
          },
          "kind": {
            "type": "string",
            "maxLength": 512
          },
          "messages": {
            "items": {
              "type": "string",
              "maxLength": 1024
            },
            "type": "array",
            "maxItems": 50
          },
          "number": {
            "type": "integer",
            "minimum": 1
          },
          "parent": {
            "type": "string",
            "maxLength": 512
          },
          "priority": {
            "type": "string",
            "maxLength": 512
          },
          "reviewChecklist": {
            "items": {
              "properties": {
                "checked": {
                  "type": "boolean"
                },
                "id": {
                  "type": "string",
                  "maxLength": 512
                },
                "text": {
                  "type": "string",
                  "maxLength": 2048,
                  "pattern": ".*\\S.*"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "text"
              ]
            },
            "type": "array",
            "maxItems": 50
          },
          "status": {
            "type": "string",
            "enum": [
              "todo",
              "in_progress",
              "in_review",
              "done"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 512,
            "pattern": ".*\\S.*"
          },
          "urls": {
            "items": {
              "type": "string",
              "maxLength": 1024
            },
            "type": "array",
            "maxItems": 50
          },
          "workspaces": {
            "items": {
              "type": "string",
              "maxLength": 1024
            },
            "type": "array",
            "maxItems": 50
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "TaskUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "task": {
                "properties": {
                  "taskScopeId": {
                    "type": "string"
                  },
                  "taskNumber": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "assigneeProfile": {
                    "properties": {
                      "actorType": {
                        "type": "string"
                      },
                      "principalId": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      },
                      "targetId": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "actorType",
                      "displayName"
                    ]
                  },
                  "reused": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "taskNumber",
                  "title"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "task"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TeamGetInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "teamId": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "teamId"
        ]
      },
      "TeamGetOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "team": {
                "properties": {
                  "teamId": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "members": {
                    "items": {
                      "properties": {
                        "teamMemberId": {
                          "type": "string"
                        },
                        "agentId": {
                          "type": "string"
                        },
                        "displayName": {
                          "type": "string"
                        },
                        "roleLabel": {
                          "type": "string"
                        },
                        "roleOverlayPrompt": {
                          "type": "string"
                        },
                        "wakeOnTeamMention": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "teamMemberId",
                        "agentId",
                        "displayName",
                        "roleOverlayPrompt",
                        "wakeOnTeamMention"
                      ]
                    },
                    "type": "array"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "teamId",
                  "name",
                  "description",
                  "members"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "team"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TeamListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 256
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 512
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "TeamListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "teams": {
                "items": {
                  "properties": {
                    "teamId": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "handle": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "teamId",
                    "name",
                    "handle",
                    "role"
                  ]
                },
                "type": "array"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "teams",
              "hasMore"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "TeamUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "teamId": {
            "type": "string",
            "minLength": 1
          },
          "requestId": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "pattern": ".*\\S.*"
          },
          "description": {
            "type": "string"
          },
          "memberUpdates": {
            "items": {
              "properties": {
                "teamMemberId": {
                  "type": "string",
                  "minLength": 1
                },
                "roleLabel": {
                  "type": "string"
                },
                "roleOverlayPrompt": {
                  "type": "string"
                },
                "wakeOnTeamMention": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "teamMemberId"
              ]
            },
            "type": "array"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "teamId",
          "requestId"
        ]
      },
      "TeamUpdateOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "status": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "status"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "WorkflowPlanInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "create"
              },
              "descriptionMd": {
                "type": "string"
              },
              "displayName": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "source": {
                "type": "string"
              },
              "teamId": {
                "type": "string",
                "minLength": 1,
                "description": "Team scope. On create or update, link a reusable Plan to this Team and publish under the current Team Leader. Omit for unlinked workspace Plans."
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "key",
              "displayName",
              "source"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "list"
              },
              "cursor": {
                "type": "string"
              },
              "includeArchived": {
                "type": "boolean"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "teamId": {
                "type": "string",
                "minLength": 1,
                "description": "Team scope. On create or update, link a reusable Plan to this Team and publish under the current Team Leader. Omit for unlinked workspace Plans."
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "show"
              },
              "cursor": {
                "type": "string",
                "maxLength": 2048
              },
              "limit": {
                "type": "integer",
                "maximum": 32768,
                "minimum": 1
              },
              "path": {
                "type": "string",
                "maxLength": 512
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "section": {
                "type": "string",
                "enum": [
                  "compact",
                  "source"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "version"
              },
              "cursor": {
                "type": "string",
                "maxLength": 2048
              },
              "limit": {
                "type": "integer",
                "maximum": 32768,
                "minimum": 1
              },
              "path": {
                "type": "string",
                "maxLength": 512
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "section": {
                "type": "string",
                "enum": [
                  "compact",
                  "source",
                  "layout"
                ]
              },
              "versionId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "versionId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "validate"
              },
              "source": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "source"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "update"
              },
              "draftRevision": {
                "type": "integer",
                "minimum": 1
              },
              "expectedPlanRevision": {
                "type": "integer",
                "minimum": 1
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "layout": {
                "additionalProperties": true,
                "type": "object"
              },
              "makeDefault": {
                "type": "boolean"
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "source": {
                "type": "string"
              },
              "teamId": {
                "type": "string",
                "minLength": 1,
                "description": "Team scope. On create or update, link a reusable Plan to this Team and publish under the current Team Leader. Omit for unlinked workspace Plans."
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "expectedRevision",
              "source"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "publish"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "makeDefault": {
                "type": "boolean"
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "expectedRevision"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "archive"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "expectedRevision"
            ]
          }
        ],
        "type": "object"
      },
      "WorkflowPlanOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "oneOf": [
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "plan": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "scopeId": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "descriptionMd": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "currentVersion": {
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id"
                        ]
                      },
                      "defaultVersion": {
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id"
                        ]
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "archivedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "archivedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "scopeId",
                      "key",
                      "displayName",
                      "descriptionMd",
                      "state",
                      "revision",
                      "createdBy",
                      "createdAt",
                      "updatedBy",
                      "updatedAt"
                    ]
                  },
                  "draft": {
                    "properties": {
                      "planId": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "layout": true,
                      "revision": {
                        "type": "integer"
                      },
                      "updatedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "planId",
                      "source",
                      "layout",
                      "revision",
                      "updatedBy",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "plan",
                  "draft"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "scopeId": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "descriptionMd": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "integer"
                  },
                  "currentVersion": {
                    "properties": {
                      "id": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id"
                    ]
                  },
                  "defaultVersion": {
                    "properties": {
                      "id": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id"
                    ]
                  },
                  "createdBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id",
                      "memberId"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updatedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id",
                      "memberId"
                    ]
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "archivedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id",
                      "memberId"
                    ]
                  },
                  "archivedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "scopeId",
                  "key",
                  "displayName",
                  "descriptionMd",
                  "state",
                  "revision",
                  "createdBy",
                  "createdAt",
                  "updatedBy",
                  "updatedAt"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "diagnostics": {
                    "items": {
                      "properties": {
                        "severity": {
                          "type": "string"
                        },
                        "code": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "line": {
                          "type": "integer"
                        },
                        "column": {
                          "type": "integer"
                        },
                        "nodeId": {
                          "type": "string"
                        },
                        "edgeId": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "severity",
                        "code",
                        "path",
                        "message"
                      ]
                    },
                    "type": "array"
                  },
                  "digest": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "diagnostics"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "planId": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "layout": true,
                  "revision": {
                    "type": "integer"
                  },
                  "updatedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id",
                      "memberId"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "planId",
                  "source",
                  "layout",
                  "revision",
                  "updatedBy",
                  "createdAt",
                  "updatedAt"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "plan": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "scopeId": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "descriptionMd": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "currentVersion": {
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id"
                        ]
                      },
                      "defaultVersion": {
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id"
                        ]
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "archivedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "archivedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "scopeId",
                      "key",
                      "displayName",
                      "descriptionMd",
                      "state",
                      "revision",
                      "createdBy",
                      "createdAt",
                      "updatedBy",
                      "updatedAt"
                    ]
                  },
                  "version": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "draftRevision": {
                        "type": "integer"
                      },
                      "sourceVersionId": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "sourceCursor": {
                        "type": "string"
                      },
                      "layout": true,
                      "layoutRef": {
                        "properties": {
                          "cursor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "cursor"
                        ]
                      },
                      "compilerVersion": {
                        "type": "string"
                      },
                      "digest": {
                        "type": "string"
                      },
                      "publishedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "memberId"
                        ]
                      },
                      "publishedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "planId",
                      "compilerVersion",
                      "digest",
                      "publishedBy",
                      "publishedAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "plan",
                  "version"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "planId": {
                    "type": "string"
                  },
                  "scopeId": {
                    "type": "string"
                  },
                  "planRevision": {
                    "type": "integer"
                  },
                  "state": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "sourceCursor": {
                    "type": "string"
                  },
                  "workingRevision": {
                    "type": "integer"
                  },
                  "planVersion": {
                    "properties": {
                      "id": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id"
                    ]
                  },
                  "teamId": {
                    "type": "string"
                  },
                  "teamWorkflowId": {
                    "type": "string"
                  },
                  "payload": {
                    "properties": {
                      "section": {
                        "type": "string"
                      },
                      "encoding": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "section",
                      "encoding",
                      "value"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "planId",
                  "scopeId",
                  "planRevision",
                  "state",
                  "workingRevision"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "planId": {
                    "type": "string"
                  },
                  "draftRevision": {
                    "type": "integer"
                  },
                  "sourceVersionId": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "sourceCursor": {
                    "type": "string"
                  },
                  "layout": true,
                  "layoutRef": {
                    "properties": {
                      "cursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "cursor"
                    ]
                  },
                  "compilerVersion": {
                    "type": "string"
                  },
                  "digest": {
                    "type": "string"
                  },
                  "publishedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id",
                      "memberId"
                    ]
                  },
                  "publishedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "planId",
                  "compilerVersion",
                  "digest",
                  "publishedBy",
                  "publishedAt"
                ]
              },
              {
                "oneOf": [
                  {
                    "properties": {
                      "items": {
                        "items": true,
                        "type": "array",
                        "maxItems": 0
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  },
                  {
                    "properties": {
                      "items": {
                        "items": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "scopeId": {
                              "type": "string"
                            },
                            "key": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            },
                            "descriptionMd": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "integer"
                            },
                            "currentVersion": {
                              "properties": {
                                "id": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "id"
                              ]
                            },
                            "defaultVersion": {
                              "properties": {
                                "id": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "id"
                              ]
                            },
                            "createdBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id",
                                "memberId"
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id",
                                "memberId"
                              ]
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "archivedBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id",
                                "memberId"
                              ]
                            },
                            "archivedAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "id",
                            "scopeId",
                            "key",
                            "displayName",
                            "descriptionMd",
                            "state",
                            "revision",
                            "createdBy",
                            "createdAt",
                            "updatedBy",
                            "updatedAt"
                          ]
                        },
                        "type": "array",
                        "minItems": 1
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  }
                ]
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "WorkflowRunInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "start"
              },
              "input": {
                "type": "object"
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "planVersionId": {
                "type": "string",
                "minLength": 1
              },
              "teamId": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "input"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "list"
              },
              "cursor": {
                "type": "string"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "planId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "enum": [
                  "queued",
                  "running",
                  "waiting",
                  "succeeded",
                  "failed",
                  "canceled"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "show"
              },
              "cursor": {
                "type": "string",
                "maxLength": 2048
              },
              "limit": {
                "type": "integer",
                "maximum": 32768,
                "minimum": 1
              },
              "path": {
                "type": "string",
                "maxLength": 512
              },
              "runId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "section": {
                "type": "string",
                "enum": [
                  "compact",
                  "input",
                  "output"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "logs"
              },
              "cursor": {
                "type": "string",
                "maxLength": 2048
              },
              "follow": {
                "type": "boolean"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "path": {
                "type": "string",
                "maxLength": 512
              },
              "runId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "section": {
                "type": "string",
                "enum": [
                  "summary",
                  "details"
                ]
              },
              "sequence": {
                "type": "integer",
                "minimum": 1
              },
              "tail": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "cancel"
              },
              "reason": {
                "type": "string",
                "maxLength": 2048
              },
              "runId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId"
            ]
          }
        ],
        "type": "object"
      },
      "WorkflowRunOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "oneOf": [
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "runId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "planId": {
                    "type": "string"
                  },
                  "planVersionId": {
                    "type": "string"
                  },
                  "acceptedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "replayed": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "runId",
                  "status",
                  "planId",
                  "planVersionId",
                  "acceptedAt"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "run": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "planKey": {
                        "type": "string"
                      },
                      "planDisplayName": {
                        "type": "string"
                      },
                      "planVersionId": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "input": true,
                      "output": true,
                      "errorCode": {
                        "type": "string"
                      },
                      "error": true,
                      "inputRef": {
                        "properties": {
                          "cursor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "cursor"
                        ]
                      },
                      "outputRef": {
                        "properties": {
                          "cursor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "cursor"
                        ]
                      },
                      "queuedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "startedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "completedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "canceledAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "planId",
                      "planVersionId",
                      "status",
                      "queuedAt"
                    ]
                  },
                  "currentStep": {
                    "properties": {
                      "stepId": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "attempt": {
                        "type": "integer"
                      },
                      "deadlineAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "errorCode": {
                        "type": "string"
                      },
                      "error": true
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "stepId",
                      "type",
                      "status",
                      "attempt"
                    ]
                  },
                  "waitingOn": {
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      },
                      "stepId": {
                        "type": "string"
                      },
                      "deadlineAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind"
                    ]
                  },
                  "payload": {
                    "properties": {
                      "section": {
                        "type": "string"
                      },
                      "encoding": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "section",
                      "encoding",
                      "value"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "run"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "run": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "planKey": {
                        "type": "string"
                      },
                      "planDisplayName": {
                        "type": "string"
                      },
                      "planVersionId": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "input": true,
                      "output": true,
                      "errorCode": {
                        "type": "string"
                      },
                      "error": true,
                      "inputRef": {
                        "properties": {
                          "cursor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "cursor"
                        ]
                      },
                      "outputRef": {
                        "properties": {
                          "cursor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "cursor"
                        ]
                      },
                      "queuedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "startedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "completedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "canceledAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "planId",
                      "planVersionId",
                      "status",
                      "queuedAt"
                    ]
                  },
                  "replayed": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "run",
                  "replayed"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "sequence": {
                          "type": "integer"
                        },
                        "time": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "kind": {
                          "type": "string"
                        },
                        "details": {
                          "type": "string"
                        },
                        "encoding": {
                          "type": "string"
                        },
                        "cursor": {
                          "type": "string"
                        },
                        "nextCursor": {
                          "type": "string"
                        },
                        "bytes": {
                          "type": "integer"
                        },
                        "totalBytes": {
                          "type": "integer"
                        },
                        "complete": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "sequence",
                        "time",
                        "kind",
                        "details",
                        "encoding",
                        "bytes",
                        "totalBytes",
                        "complete"
                      ]
                    },
                    "type": "array"
                  },
                  "nextCursor": {
                    "type": "string"
                  },
                  "runStatus": {
                    "type": "string"
                  },
                  "terminal": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "items",
                  "runStatus",
                  "terminal"
                ]
              },
              {
                "oneOf": [
                  {
                    "properties": {
                      "items": {
                        "items": true,
                        "type": "array",
                        "maxItems": 0
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  },
                  {
                    "properties": {
                      "items": {
                        "items": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "planId": {
                              "type": "string"
                            },
                            "planKey": {
                              "type": "string"
                            },
                            "planDisplayName": {
                              "type": "string"
                            },
                            "planVersionId": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            },
                            "input": true,
                            "output": true,
                            "errorCode": {
                              "type": "string"
                            },
                            "error": true,
                            "inputRef": {
                              "properties": {
                                "cursor": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "cursor"
                              ]
                            },
                            "outputRef": {
                              "properties": {
                                "cursor": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "cursor"
                              ]
                            },
                            "queuedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "completedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "canceledAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "id",
                            "planId",
                            "planVersionId",
                            "status",
                            "queuedAt"
                          ]
                        },
                        "type": "array",
                        "minItems": 1
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  },
                  {
                    "properties": {
                      "items": {
                        "items": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "properties": {
                            "sequence": {
                              "type": "integer"
                            },
                            "time": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "level": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "stepId": {
                              "type": "string"
                            },
                            "message": {
                              "type": "string"
                            },
                            "details": true,
                            "detailsRef": {
                              "properties": {
                                "cursor": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "cursor"
                              ]
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "sequence",
                            "time",
                            "level",
                            "kind",
                            "message"
                          ]
                        },
                        "type": "array",
                        "minItems": 1
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  }
                ]
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "WorkflowStepInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "list"
              },
              "cursor": {
                "type": "string"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "get"
              },
              "cursor": {
                "type": "string",
                "maxLength": 2048
              },
              "limit": {
                "type": "integer",
                "maximum": 32768,
                "minimum": 1
              },
              "path": {
                "type": "string",
                "maxLength": 512
              },
              "runId": {
                "type": "string",
                "minLength": 1
              },
              "section": {
                "type": "string",
                "enum": [
                  "compact",
                  "input",
                  "output_contract",
                  "work_items_contract"
                ]
              },
              "stepId": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId",
              "stepId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "complete"
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "output": {
                "type": "object"
              },
              "runId": {
                "type": "string",
                "minLength": 1
              },
              "stepId": {
                "type": "string",
                "minLength": 1
              },
              "workItems": {
                "items": {
                  "properties": {
                    "dependsOn": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "instruction": {
                      "type": "string",
                      "minLength": 1
                    },
                    "key": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_-]{0,255}$"
                    },
                    "relatedScopes": {
                      "items": {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "channel",
                              "thread",
                              "dm",
                              "task"
                            ]
                          },
                          "scopeId": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "scopeId"
                        ]
                      },
                      "type": "array"
                    },
                    "responder": {
                      "oneOf": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "properties": {
                            "selectOne": {
                              "items": {
                                "type": "string",
                                "minLength": 1
                              },
                              "type": "array",
                              "maxItems": 64,
                              "minItems": 1
                            },
                            "strategy": {
                              "type": "string",
                              "enum": [
                                "ordered",
                                "random"
                              ]
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "selectOne"
                          ]
                        }
                      ]
                    },
                    "workScope": {
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "channel",
                            "thread",
                            "dm",
                            "task"
                          ]
                        },
                        "scopeId": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "kind",
                        "scopeId"
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "key",
                    "workScope",
                    "relatedScopes",
                    "responder",
                    "instruction"
                  ]
                },
                "type": "array",
                "maxItems": 256
              },
              "workScope": {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "channel",
                      "thread",
                      "dm",
                      "task"
                    ]
                  },
                  "scopeId": {
                    "type": "string",
                    "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "scopeId"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId",
              "stepId",
              "idempotencyKey"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "fail"
              },
              "code": {
                "type": "string",
                "minLength": 1
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "message": {
                "type": "string"
              },
              "runId": {
                "type": "string",
                "minLength": 1
              },
              "stepId": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId",
              "stepId",
              "code",
              "idempotencyKey"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "pause"
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "runId": {
                "type": "string",
                "minLength": 1
              },
              "stepId": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId",
              "stepId",
              "idempotencyKey"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "park"
              },
              "idempotencyKey": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              "runId": {
                "type": "string",
                "minLength": 1
              },
              "stepId": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "runId",
              "stepId"
            ]
          }
        ],
        "type": "object"
      },
      "WorkflowStepOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "oneOf": [
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "runId": {
                    "type": "string"
                  },
                  "stepId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "runStatus": {
                    "type": "string"
                  },
                  "input": true,
                  "outputContract": true,
                  "workItemsContract": {
                    "properties": {
                      "required": {
                        "type": "boolean"
                      },
                      "maxItems": {
                        "type": "integer"
                      },
                      "maxKeyBytes": {
                        "type": "integer"
                      },
                      "maxRelatedScopesPerItem": {
                        "type": "integer"
                      },
                      "maxDependencyEdges": {
                        "type": "integer"
                      },
                      "maxRelatedScopeReferences": {
                        "type": "integer"
                      },
                      "maxJsonValues": {
                        "type": "integer"
                      },
                      "maxJsonBytes": {
                        "type": "integer"
                      },
                      "allowedResponders": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "dependencyValueContract": true
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "required",
                      "maxItems",
                      "maxKeyBytes",
                      "maxRelatedScopesPerItem",
                      "maxDependencyEdges",
                      "maxRelatedScopeReferences",
                      "maxJsonValues",
                      "maxJsonBytes",
                      "allowedResponders",
                      "dependencyValueContract"
                    ]
                  },
                  "payload": {
                    "properties": {
                      "section": {
                        "type": "string"
                      },
                      "encoding": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "section",
                      "encoding",
                      "value"
                    ]
                  },
                  "inputRef": {
                    "properties": {
                      "cursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "cursor"
                    ]
                  },
                  "outputContractRef": {
                    "properties": {
                      "cursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "cursor"
                    ]
                  },
                  "workItemsRef": {
                    "properties": {
                      "cursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "cursor"
                    ]
                  },
                  "deliveryScope": {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "channel",
                          "thread",
                          "dm",
                          "task"
                        ]
                      },
                      "scopeId": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind",
                      "scopeId"
                    ]
                  },
                  "workScope": {
                    "oneOf": [
                      {
                        "type": "null"
                      },
                      {
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "channel",
                              "thread",
                              "dm",
                              "task"
                            ]
                          },
                          "scopeId": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "kind",
                          "scopeId"
                        ]
                      }
                    ]
                  },
                  "relatedScopes": {
                    "items": {
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "channel",
                            "thread",
                            "dm",
                            "task"
                          ]
                        },
                        "scopeId": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_]{2,127}$"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "kind",
                        "scopeId"
                      ]
                    },
                    "type": "array"
                  },
                  "deadline": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "replayed": {
                    "type": "boolean"
                  },
                  "teamMemberContext": {
                    "properties": {
                      "teamId": {
                        "type": "string"
                      },
                      "teamHandle": {
                        "type": "string"
                      },
                      "teamDisplayName": {
                        "type": "string"
                      },
                      "teamPurpose": {
                        "type": "string"
                      },
                      "teamMemberId": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      },
                      "roleLabel": {
                        "type": "string"
                      },
                      "roleOverlay": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "teamId",
                      "teamMemberId"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "runId",
                  "stepId",
                  "status",
                  "runStatus",
                  "replayed"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "steps": {
                    "items": {
                      "properties": {
                        "runId": {
                          "type": "string"
                        },
                        "stepId": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "runStatus": {
                          "type": "string"
                        },
                        "deadline": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "runId",
                        "stepId",
                        "status",
                        "runStatus"
                      ]
                    },
                    "type": "array"
                  },
                  "nextCursor": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "steps"
                ]
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "WorkflowTriggerInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "create"
              },
              "descriptionMd": {
                "type": "string"
              },
              "displayName": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "enabled": {
                "type": "boolean"
              },
              "inputPolicy": {
                "properties": {
                  "constants": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "defaults": {
                    "additionalProperties": true,
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "planVersionId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "source": {
                "properties": {
                  "schedule": {
                    "properties": {
                      "anchorAt": {
                        "type": "string"
                      },
                      "cronExpression": {
                        "type": "string"
                      },
                      "inputs": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "intervalSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "cron",
                          "interval",
                          "absolute",
                          "relative"
                        ]
                      },
                      "relativeSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "scheduledAt": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "mode"
                    ]
                  },
                  "type": {
                    "const": "schedule"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "type",
                  "schedule"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "key",
              "displayName",
              "planId",
              "planVersionId",
              "source",
              "enabled"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "list"
              },
              "cursor": {
                "type": "string"
              },
              "includeArchived": {
                "type": "boolean"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "planId": {
                "type": "string",
                "minLength": 1
              },
              "state": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "show"
              },
              "triggerId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "triggerId"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "validate"
              },
              "inputPolicy": {
                "properties": {
                  "constants": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "defaults": {
                    "additionalProperties": true,
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "planId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "planVersionId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "source": {
                "properties": {
                  "schedule": {
                    "properties": {
                      "anchorAt": {
                        "type": "string"
                      },
                      "cronExpression": {
                        "type": "string"
                      },
                      "inputs": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "intervalSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "cron",
                          "interval",
                          "absolute",
                          "relative"
                        ]
                      },
                      "relativeSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "scheduledAt": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "mode"
                    ]
                  },
                  "type": {
                    "const": "schedule"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "type",
                  "schedule"
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "planId",
              "planVersionId",
              "source"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "update"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "inputPolicy": {
                "properties": {
                  "constants": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "defaults": {
                    "additionalProperties": true,
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "type": "object"
              },
              "planVersionId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              },
              "source": {
                "properties": {
                  "schedule": {
                    "properties": {
                      "anchorAt": {
                        "type": "string"
                      },
                      "cronExpression": {
                        "type": "string"
                      },
                      "inputs": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "intervalSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "cron",
                          "interval",
                          "absolute",
                          "relative"
                        ]
                      },
                      "relativeSeconds": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "scheduledAt": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "mode"
                    ]
                  },
                  "type": {
                    "const": "schedule"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "type",
                  "schedule"
                ]
              },
              "triggerId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "triggerId",
              "expectedRevision",
              "planVersionId",
              "source"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "enable"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "revision": {
                "type": "integer",
                "minimum": 1
              },
              "triggerId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "triggerId",
              "revision",
              "expectedRevision"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "disable"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "triggerId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "triggerId",
              "expectedRevision"
            ]
          },
          {
            "properties": {
              "action": {
                "const": "archive"
              },
              "expectedRevision": {
                "type": "integer",
                "minimum": 1
              },
              "triggerId": {
                "type": "string",
                "minLength": 1,
                "pattern": "[^\\t-\\r\\x20\\x85\\xA0\\p{Z}]"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "action",
              "triggerId",
              "expectedRevision"
            ]
          }
        ],
        "type": "object"
      },
      "WorkflowTriggerOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "oneOf": [
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "trigger": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "descriptionMd": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "latestRevision": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "integer"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "revision"
                        ]
                      },
                      "activeRevision": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "integer"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "revision"
                        ]
                      },
                      "owner": {
                        "properties": {
                          "userId": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "userId",
                          "memberId"
                        ]
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "archivedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "archivedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "planId",
                      "key",
                      "displayName",
                      "descriptionMd",
                      "state",
                      "revision",
                      "owner",
                      "createdBy",
                      "createdAt",
                      "updatedBy",
                      "updatedAt"
                    ]
                  },
                  "revision": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "triggerId": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "planVersionId": {
                        "type": "string"
                      },
                      "source": {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "schedule"
                          },
                          "schedule": {
                            "properties": {
                              "mode": {
                                "type": "string"
                              },
                              "cronExpression": {
                                "type": "string"
                              },
                              "timezone": {
                                "type": "string"
                              },
                              "intervalSeconds": {
                                "type": "integer"
                              },
                              "anchorAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "scheduledAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "relativeSeconds": {
                                "type": "integer"
                              },
                              "inputs": {
                                "additionalProperties": true,
                                "type": "object"
                              }
                            },
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "mode",
                              "inputs"
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "schedule"
                        ]
                      },
                      "inputPolicy": {
                        "properties": {
                          "defaults": {
                            "oneOf": [
                              {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "constants": {
                            "oneOf": [
                              {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "type": "object"
                      },
                      "digest": {
                        "type": "string"
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "triggerId",
                      "planId",
                      "revision",
                      "planVersionId",
                      "source",
                      "inputPolicy",
                      "digest",
                      "createdBy",
                      "createdAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "trigger",
                  "revision"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "planId": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "descriptionMd": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "integer"
                  },
                  "latestRevision": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "revision"
                    ]
                  },
                  "activeRevision": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "revision"
                    ]
                  },
                  "owner": {
                    "properties": {
                      "userId": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "userId",
                      "memberId"
                    ]
                  },
                  "createdBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "updatedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id"
                    ]
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "archivedBy": {
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "memberId": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "type",
                      "id"
                    ]
                  },
                  "archivedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "id",
                  "planId",
                  "key",
                  "displayName",
                  "descriptionMd",
                  "state",
                  "revision",
                  "owner",
                  "createdBy",
                  "createdAt",
                  "updatedBy",
                  "updatedAt"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "trigger": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "key": {
                        "type": "string"
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "descriptionMd": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "latestRevision": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "integer"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "revision"
                        ]
                      },
                      "activeRevision": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "revision": {
                            "type": "integer"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "id",
                          "revision"
                        ]
                      },
                      "owner": {
                        "properties": {
                          "userId": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "userId",
                          "memberId"
                        ]
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updatedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "archivedBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "archivedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "planId",
                      "key",
                      "displayName",
                      "descriptionMd",
                      "state",
                      "revision",
                      "owner",
                      "createdBy",
                      "createdAt",
                      "updatedBy",
                      "updatedAt"
                    ]
                  },
                  "revision": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "triggerId": {
                        "type": "string"
                      },
                      "planId": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "planVersionId": {
                        "type": "string"
                      },
                      "source": {
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "schedule"
                          },
                          "schedule": {
                            "properties": {
                              "mode": {
                                "type": "string"
                              },
                              "cronExpression": {
                                "type": "string"
                              },
                              "timezone": {
                                "type": "string"
                              },
                              "intervalSeconds": {
                                "type": "integer"
                              },
                              "anchorAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "scheduledAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "relativeSeconds": {
                                "type": "integer"
                              },
                              "inputs": {
                                "additionalProperties": true,
                                "type": "object"
                              }
                            },
                            "additionalProperties": false,
                            "type": "object",
                            "required": [
                              "mode",
                              "inputs"
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "schedule"
                        ]
                      },
                      "inputPolicy": {
                        "properties": {
                          "defaults": {
                            "oneOf": [
                              {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "constants": {
                            "oneOf": [
                              {
                                "additionalProperties": true,
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false,
                        "type": "object"
                      },
                      "digest": {
                        "type": "string"
                      },
                      "createdBy": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "memberId": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ]
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "id",
                      "triggerId",
                      "planId",
                      "revision",
                      "planVersionId",
                      "source",
                      "inputPolicy",
                      "digest",
                      "createdBy",
                      "createdAt"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "trigger",
                  "revision"
                ]
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "properties": {
                  "diagnostics": {
                    "items": {
                      "properties": {
                        "severity": {
                          "type": "string"
                        },
                        "code": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "type": "object",
                      "required": [
                        "severity",
                        "code",
                        "path",
                        "message"
                      ]
                    },
                    "type": "array"
                  },
                  "digest": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "diagnostics"
                ]
              },
              {
                "oneOf": [
                  {
                    "properties": {
                      "items": {
                        "items": true,
                        "type": "array",
                        "maxItems": 0
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  },
                  {
                    "properties": {
                      "items": {
                        "items": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "planId": {
                              "type": "string"
                            },
                            "key": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            },
                            "descriptionMd": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "integer"
                            },
                            "latestRevision": {
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "revision": {
                                  "type": "integer"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "id",
                                "revision"
                              ]
                            },
                            "activeRevision": {
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "revision": {
                                  "type": "integer"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "id",
                                "revision"
                              ]
                            },
                            "owner": {
                              "properties": {
                                "userId": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "userId",
                                "memberId"
                              ]
                            },
                            "createdBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id"
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id"
                              ]
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "archivedBy": {
                              "properties": {
                                "type": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "memberId": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false,
                              "type": "object",
                              "required": [
                                "type",
                                "id"
                              ]
                            },
                            "archivedAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "additionalProperties": false,
                          "type": "object",
                          "required": [
                            "id",
                            "planId",
                            "key",
                            "displayName",
                            "descriptionMd",
                            "state",
                            "revision",
                            "owner",
                            "createdBy",
                            "createdAt",
                            "updatedBy",
                            "updatedAt"
                          ]
                        },
                        "type": "array",
                        "minItems": 1
                      },
                      "nextCursor": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "items"
                    ]
                  }
                ]
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      },
      "WorkspaceListInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "summary",
              "channels",
              "agents",
              "humans"
            ]
          },
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "WorkspaceListOutput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "data": {
            "properties": {
              "channels": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "joined": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "name",
                    "joined"
                  ]
                },
                "type": "array"
              },
              "agents": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "activity": {
                      "type": "string"
                    },
                    "activityDetail": {
                      "type": "string"
                    },
                    "machineName": {
                      "type": "string"
                    },
                    "machineHost": {
                      "type": "string"
                    },
                    "machineId": {
                      "type": "string"
                    },
                    "ownerName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "name"
                  ]
                },
                "type": "array"
              },
              "humans": {
                "items": {
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "activity": {
                      "type": "string"
                    },
                    "activityDetail": {
                      "type": "string"
                    },
                    "machineName": {
                      "type": "string"
                    },
                    "machineHost": {
                      "type": "string"
                    },
                    "machineId": {
                      "type": "string"
                    },
                    "ownerName": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "name"
                  ]
                },
                "type": "array"
              },
              "limits": {
                "properties": {
                  "channels": {
                    "properties": {
                      "limit": {
                        "type": "integer"
                      },
                      "truncated": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "limit",
                      "truncated"
                    ]
                  },
                  "agents": {
                    "properties": {
                      "limit": {
                        "type": "integer"
                      },
                      "truncated": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "limit",
                      "truncated"
                    ]
                  },
                  "humans": {
                    "properties": {
                      "limit": {
                        "type": "integer"
                      },
                      "truncated": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "limit",
                      "truncated"
                    ]
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "channels",
                  "agents",
                  "humans"
                ]
              },
              "kind": {
                "type": "string"
              },
              "limit": {
                "type": "integer"
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channels",
              "agents",
              "humans"
            ]
          },
          "text": {
            "type": "string"
          },
          "metadata": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data"
        ]
      }
    }
  }
}
