---
title: Platform API スキーマ
description: Platform API v1 が送受信するオブジェクトすべてのフィールド。実行のイベントストリーム（RunEvents）と Error の形を含みます。
url: https://agentlab.cresclab.com/docs/ja/api/schemas
language: ja
updated: 2026-12-05
---

# Platform API スキーマ

Platform API v1 が送受信するオブジェクトすべてのフィールド。実行のイベントストリーム（RunEvents）と Error の形を含みます。

> [!NOTE]
> API コントラクト（Agent Lab Platform API 1.0.0-alpha.1）から生成しています。説明文はコントラクトの英語の原文のままです。

## Recovery

What gets a refused request working again. Clients tolerate values added later.

| 型 | 値 |
| --- | --- |
| `string` | 値: `authorize`, `configure`, `retry`, `none`. |

## Error

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい | — |
| `error.code` | `string` | はい | Stable, UPPER_SNAKE_CASE. New codes may be added under an existing `recovery`. |
| `error.message` | `string` | はい | For the developer's logs; not for display to a person, and never parsed. |
| `error.recovery` | [Recovery](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Recovery) | はい | — |
| `error.requestId` | `string` | はい | Quote it when asking for support. |
| `error.problems` | [Problem](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Problem)[] | いいえ | With `RUN_CONFIGURATION_INVALID`: every problem found, each with its field. |

## Page

The page envelope every list answers, with its items beside it.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |

## AccountWorkspace

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `name` | `string` | はい | — |
| `slug` | `string` | はい | The workspace's short name, in its console address. |
| `state` | `string` | はい | `deletion_scheduled` only in the list filtered by it. 値: `active`, `deletion_scheduled`. |
| `role` | `string` | いいえ | The person's role in the workspace, when known. Clients tolerate roles added later. |
| `organization` | `object` | いいえ | The organization the workspace belongs to, once it is placed in one. |
| `organization.id` | `string` | はい | — |
| `organization.name` | `string` | はい | — |
| `deletionEffectiveAt` | `string (date-time)` | いいえ | When a workspace scheduled for deletion is deleted; recoverable until then. |

## AccountWorkspaceList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [AccountWorkspace](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AccountWorkspace)[] | はい | — |
| `creation` | `object` | いいえ | Whether the person may create another workspace; absent from the `deletion_scheduled` list. |
| `creation.status` | `string` | はい | 値: `available`, `limit_reached`. |
| `creation.remaining` | `integer` または `null` | いいえ | With `available`, how many more; `null` when there is no limit. |
| `creation.limit` | `integer` | いいえ | With `limit_reached`, the limit. |

## AccountWorkspaceCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `name` | `string` | はい | — |
| `slug` | `string` | はい | — |

## WorkspaceAdmission

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `status` | `string` | はい | 値: `reachable`, `realm_not_admitted`, `no_membership`. |
| `signInRealms` | `object`[] | いいえ | With `realm_not_admitted`, the entrances the workspace admits. |
| `signInRealms[].id` | `string` | はい | — |
| `signInRealms[].kind` | `string` | はい | — |
| `signInRealms[].loginMethods` | `string`[] | はい | — |

## Installation

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `workspaceId` | `string` | はい | — |
| `clientId` | `string` | はい | The OAuth client id of the installed application. |
| `applicationName` | `string` | はい | — |
| `installedAt` | `string (date-time)` | はい | — |
| `grantedScopes` | `string`[] | はい | What an administrator approved. |
| `pendingScopes` | `string`[] | はい | What the application declares beyond them, awaiting an administrator's approval. |
| `tokenScopes` | `string`[] | はい | What this token carries, and so what this call and the next ones with it may use. |

## WorkspaceMember

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `accountId` | `string` | はい | — |
| `role` | `string` | はい | The member's role in the workspace. Clients tolerate roles added later. |
| `capabilities` | `string`[] | はい | What the role lets the member do in this workspace. Clients ignore names they do not know. |

## WorkspaceSettings

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `defaultModel` | `string` | はい | The workspace's default model id; empty when it uses the platform's. |
| `systemPrompt` | `string` | はい | The instructions the workspace adds to every answer. |
| `requireEvalBeforePublish` | `boolean` | はい | — |
| `monthlyTokenBudget` | `integer` | はい | Tokens per calendar month; 0 keeps the platform's default. |
| `rollingWindowTokenBudget` | `integer` | はい | Tokens per rolling window; 0 keeps the platform's default. |
| `disableAutoToolExecution` | `boolean` | はい | Every tool call waits for a person's approval. |
| `approvalChannelId` | `string` | はい | Where approval requests are delivered; empty keeps them in the console. |
| `locale` | `string` | はい | The language of platform-written messages. |
| `auditRetentionDays` | `integer` または `null` | はい | Null keeps every audit record. |
| `gatewayActivityRetentionDays` | `integer` または `null` | はい | Null keeps every AI Gateway activity record. |
| `sandboxPosture` | `string` | はい | — |
| `sandboxAvailable` | `boolean` | はい | Whether this platform offers code execution to the workspace at all. |
| `taskFocused` | `boolean` | はい | — |
| `generalAssistantEnabled` | `boolean` | はい | — |
| `timeZone` | `string` | はい | IANA time zone. |

## WorkspaceSettingsPatch

The settings to change; each field left out keeps its value.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `defaultModel` | `string` | いいえ | A model id or capability profile the plan includes; empty uses the platform's default. |
| `systemPrompt` | `string` | いいえ | — |
| `requireEvalBeforePublish` | `boolean` | いいえ | — |
| `monthlyTokenBudget` | `integer` | いいえ | — |
| `rollingWindowTokenBudget` | `integer` | いいえ | — |
| `disableAutoToolExecution` | `boolean` | いいえ | — |
| `approvalChannelId` | `string` | いいえ | Trimmed, then at most 60 characters; empty keeps approvals in the console. |
| `locale` | `string` | いいえ | 値: `en`, `zh-TW`, `zh-CN`, `ja`, `th`. |
| `auditRetentionDays` | `integer` または `null` | いいえ | Null keeps every audit record. |
| `gatewayActivityRetentionDays` | `integer` または `null` | いいえ | Null keeps every AI Gateway activity record; a number deletes older records. |
| `taskFocused` | `boolean` | いいえ | — |
| `generalAssistantEnabled` | `boolean` | いいえ | — |
| `timeZone` | `string` | いいえ | An IANA time zone; empty uses the platform's. |

## InstructionVersion

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `seq` | `integer` | はい | The version's number in the workspace, from 1. |
| `systemPrompt` | `string` | はい | — |
| `changedByAccountId` | `string` または `null` | はい | The member who set it; null for a version the platform wrote. |
| `createdAt` | `string (date-time)` | はい | — |

## InstructionVersionPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [InstructionVersion](https://agentlab.cresclab.com/docs/ja/api/schemas.md#InstructionVersion)[] | はい | — |

## WorkspaceModule

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `module` | `string` | はい | The product (`deployment`, `studio`, `aiRouting`, `channelSdk`, `apiGateway`, or one added later). |
| `enabled` | `boolean` | はい | — |
| `plan` | `string` | はい | The product's plan (such as `free`). |

## WorkspaceModuleList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [WorkspaceModule](https://agentlab.cresclab.com/docs/ja/api/schemas.md#WorkspaceModule)[] | はい | — |

## Team

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `name` | `string` | はい | — |
| `memberCount` | `integer` | はい | — |
| `createdAt` | `string (date-time)` | はい | — |
| `viewerRole` | `string` または `null` | はい | The acting member's role in the team (`manager` or `member`); null when not on it. |

## TeamPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [Team](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Team)[] | はい | — |
| `truncated` | `boolean` | はい | The workspace has more teams than the platform lists. |

## Member

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `accountId` | `string` | はい | — |
| `email` | `string` または `null` | はい | — |
| `role` | `string` | はい | — |
| `status` | `string` | はい | — |
| `createdAt` | `string (date-time)` | はい | When the membership began. |

## MemberPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [Member](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Member)[] | はい | — |
| `truncated` | `boolean` | はい | The workspace has more members than the platform lists. |

## Model

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `provider` | `string` | はい | — |
| `id` | `string` | はい | — |
| `displayName` | `string` | はい | — |
| `isDefault` | `boolean` | はい | The platform's default model. |
| `entitled` | `boolean` | はい | The workspace's plan includes it; a run naming one it does not is refused. |

## ResolvedModel

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `entitled` | `boolean` | はい | — |

## ModelCatalog

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [Model](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Model)[] | はい | — |
| `capabilityProfiles` | `object`[] | はい | Model choices by capability rather than by name, such as `agentlab/balanced`. |
| `capabilityProfiles[].id` | `string` | はい | — |
| `capabilityProfiles[].tier` | `string` | はい | — |
| `platformDefault` | [ResolvedModel](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ResolvedModel) | はい | — |
| `workspaceDefault` | [ResolvedModel](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ResolvedModel) | はい | — |

## KnowledgeAudience

Who may retrieve it: `organization`, every member; `team`, the named teams and the
workspace's owners and administrators.

| 型 | 値 |
| --- | --- |
| `string` | 値: `organization`, `team`. |

## KnowledgeDocument

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `title` | `string` | はい | — |
| `sourceType` | `string` | はい | `markdown`, `text` or `pdf`. |
| `byteSize` | `integer` | はい | — |
| `status` | `string` | はい | `queued`, `indexing`, `waiting_for_confirmation`, `waiting_for_allowance`, `ready` or `failed`. Only a `ready` document contributes to answers. Clients tolerate values added later. |
| `description` | `string` | はい | The summary indexing wrote; empty until `ready`. |
| `sectionCount` | `integer` | はい | — |
| `error` | `string` または `null` | はい | Why indexing failed, for the developer's logs. |
| `failureCode` | `string` または `null` | はい | A stable reason for some failures, such as `spend_cap_reached`. |
| `estimatedCostMicros` | `integer` | はい | Indexing's estimated cost, in millionths of a US dollar. |
| `spendCapMicros` | `integer` | はい | — |
| `audience` | [KnowledgeAudience](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeAudience) | はい | — |
| `personal` | `boolean` | はい | The acting member's own document, which no one else sees. |
| `createdAt` | `string (date-time)` | はい | — |

## KnowledgeDocumentPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [KnowledgeDocument](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeDocument)[] | はい | — |

## KnowledgeDocumentUpload

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `title` | `string` | はい | — |
| `sourceType` | `string` | はい | 値: `markdown`, `text`, `pdf`. |
| `content` | `string` | はい | The text, or for `pdf` the file base64-encoded. |
| `audience` | [KnowledgeAudience](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeAudience) | いいえ | — |
| `audienceTeamIds` | `string (uuid)`[] | いいえ | With `audience: team`, the teams it admits, by id. |

## KnowledgeQAEntry

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `question` | `string` | はい | — |
| `answer` | `string` | はい | — |
| `audience` | [KnowledgeAudience](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeAudience) | はい | — |
| `createdAt` | `string (date-time)` | はい | — |
| `updatedAt` | `string (date-time)` | はい | — |

## KnowledgeQAPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [KnowledgeQAEntry](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeQAEntry)[] | はい | — |

## KnowledgeQACreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `question` | `string` | はい | — |
| `answer` | `string` | はい | — |
| `audience` | [KnowledgeAudience](https://agentlab.cresclab.com/docs/ja/api/schemas.md#KnowledgeAudience) | いいえ | — |
| `audienceTeamIds` | `string (uuid)`[] | いいえ | With `audience: team`, the teams it admits, by id. |

## KnowledgeQAUpdate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `question` | `string` | はい | — |
| `answer` | `string` | はい | — |

## Channel

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `provider` | `string` | はい | `slack`, `line` or `teams`. Clients tolerate values added later. |
| `teamName` | `string` | はい | The provider workspace or official account's name. |
| `teamRef` | `string` | はい | The provider's own id for it. |
| `status` | `string` | はい | `connected` or `revoked`. Clients tolerate values added later. |
| `scopeCoverage` | `string` | はい | Whether the provider granted everything the platform asks for. |
| `ambientReadiness` | `string` | はい | Whether the platform can answer in it without being mentioned. |
| `createdAt` | `string (date-time)` | はい | — |

## ChannelPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [Channel](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Channel)[] | はい | — |
| `truncated` | `boolean` | はい | The workspace has more channels than the platform lists. |

## LineConnect

A LINE official account's Messaging API credentials. Never answered.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `channelSecret` | `string` | はい | — |
| `accessToken` | `string` | はい | — |

## LinePushBudget

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `ceiling` | `integer` | はい | Pushes the workspace's LINE summaries may send each calendar month; 0 sends none. |

## ConnectLinkCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `redirectUri` | `string` | はい | Where the browser returns, one of the application's registered redirect URIs. |

## ConnectLink

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `url` | `string` | はい | Open it in the acting member's browser, once. |
| `expiresAt` | `string (date-time)` | はい | After this the link connects nothing; ask for another. |

## EngagementPolicy

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `channelRef` | `string` | はい | The provider's own id of the room. |
| `mode` | `string` | はい | `addressed_only` or `ambient`. Clients tolerate values added later. |
| `standingOrders` | `string` | いいえ | What the assistant follows in this room; empty for none. |

## EngagementPolicyPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [EngagementPolicy](https://agentlab.cresclab.com/docs/ja/api/schemas.md#EngagementPolicy)[] | はい | — |
| `truncated` | `boolean` | はい | The channel has more policies than the platform lists. |

## ChannelIdentity

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `providerUserId` | `string` | はい | The provider's own id of the user. |
| `accountId` | `string` | はい | The member it is bound to. |
| `evidence` | `string` | はい | What was verified when it was bound. Clients tolerate values added later. |
| `createdAt` | `string (date-time)` | はい | — |

## ChannelIdentityPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [ChannelIdentity](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ChannelIdentity)[] | はい | — |
| `scope` | `string` | はい | `own`, the acting member's binding only, or `workspace`, everyone's. |
| `truncated` | `boolean` | はい | The workspace has more bindings than the platform lists. |

## LineQuota

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `known` | `boolean` | はい | LINE answered. |
| `limited` | `boolean` | はい | The official account's plan caps pushes per month. |
| `limit` | `integer` | はい | — |
| `used` | `integer` | はい | — |

## Conversation

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `workspaceId` | `string` | はい | — |
| `category` | `string` | はい | `conversation`, one a person started; `background`, one automation started; `evaluation`, an evaluation run's. Clients tolerate values added later. |
| `channel` | `boolean` | はい | Held in a channel (Slack, LINE, Teams) rather than in Agent Lab. |
| `agentRef` | `string` または `null` | はい | What it was held with, opaque, for grouping; not a resource of this API. |
| `title` | `string` | はい | The name a reader sees; the member's own name when they gave one. |
| `customTitle` | `string` | はい | The member's own name for it; empty when they gave none. |
| `archived` | `boolean` | はい | — |
| `pinned` | `boolean` | はい | — |
| `unseen` | `boolean` | はい | It holds a reply the acting member has not opened; only ever true for the member who started it. |
| `updatedAt` | `string (date-time)` | はい | — |

## ConversationPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [Conversation](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Conversation)[] | はい | — |

## ConversationMessage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `role` | `string` | はい | `user` or `assistant`. Clients tolerate values added later. |
| `status` | `string` | はい | `pending` while a reply is being written, `completed` or `failed`. Clients tolerate values added later. |
| `content` | `string` | はい | — |
| `refusal` | `string` または `null` | はい | What stopped this reply, as a stable code, such as `budget`. Clients tolerate values added later. |
| `stopped` | `boolean` | はい | The member stopped this reply; its content is what had been written. |
| `attachments` | [ConversationAttachment](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ConversationAttachment)[] | はい | The files the member attached to this message; empty on a read by anyone but the member who started the conversation. |
| `createdAt` | `string (date-time)` | はい | — |

## ConversationDetail

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `conversation` | [Conversation](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Conversation) | はい | — |
| `messages` | [ConversationMessage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ConversationMessage)[] | はい | — |

## ConversationStateChange

Only what is sent changes. `pinned` and `archived` are never both true.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `title` | `string` | いいえ | The member's own name for it; empty clears it back to the generated one. |
| `pinned` | `boolean` | いいえ | — |
| `archived` | `boolean` | いいえ | Archiving also unpins it. |
| `seen` | `boolean` | いいえ | The member opened it. Nothing marks a conversation unread. 値: `true`. |

## ConversationAttachment

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `name` | `string` | はい | — |
| `sourceType` | `string` | はい | `markdown`, `text` or `pdf`. Clients tolerate values added later. |
| `byteSize` | `integer` | はい | — |
| `archived` | `boolean` | はい | Archived after the member who attached it left the workspace. |

## ConversationAttachmentContent

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `name` | `string` | はい | — |
| `sourceType` | `string` | はい | `markdown`, `text` or `pdf`. Clients tolerate values added later. |
| `byteSize` | `integer` | はい | — |
| `archived` | `boolean` | はい | Archived after the member who attached it left the workspace. |
| `content` | `string` | はい | The file as it was attached, base64-encoded. |

## ConversationAttachmentInventory

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [ConversationAttachment](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ConversationAttachment)[] | はい | — |
| `uploaderActive` | `boolean` | はい | The member who started the conversation is still a member; until they leave, their files cannot be archived. |

## ConversationSearch

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | `object`[] | はい | — |
| `items[].conversation` | [Conversation](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Conversation) | はい | — |
| `items[].matches` | `integer` | はい | How many of its messages matched; not what orders the list. |
| `items[].snippet` | `string` | はい | The first matching message, clipped. |
| `searched` | `integer` | はい | How many conversations were searched. |

## ConversationSource

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `kind` | `string` | はい | `schedule` or `trigger`. Clients tolerate values added later. |
| `id` | `string` | はい | — |
| `name` | `string` | いいえ | Its name; absent once it has been deleted. |

## BackgroundConversation

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `conversation` | [Conversation](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Conversation) | はい | — |
| `outcome` | `string` または `null` | はい | How its run ended: `succeeded`, `failed`, `refused` or `running`; null when nobody recorded it. Clients tolerate values added later. |
| `source` | [ConversationSource](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ConversationSource) または `null` | はい | What started it; null when it names nothing. |
| `lastActivity` | `string (date-time)` | はい | — |

## BackgroundConversationPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [BackgroundConversation](https://agentlab.cresclab.com/docs/ja/api/schemas.md#BackgroundConversation)[] | はい | — |

## BackgroundConversationSummary

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `groups` | `object`[] | はい | — |
| `groups[].source` | [ConversationSource](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ConversationSource) | はい | — |
| `groups[].total` | `integer` | はい | — |
| `groups[].succeeded` | `integer` | はい | — |
| `groups[].failed` | `integer` | はい | — |
| `groups[].refused` | `integer` | はい | — |
| `groups[].running` | `integer` | はい | — |
| `groups[].unknown` | `integer` | はい | Runs whose outcome nobody recorded. |
| `groups[].lastFailureAt` | `string (date-time)` または `null (date-time)` | はい | The newest failed or refused run in the window. |
| `unattributedCount` | `integer` | はい | — |
| `window` | `integer` | はい | How many of the newest background conversations were counted. |

## BackgroundConversationUnseen

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `count` | `integer` | はい | — |
| `window` | `integer` | はい | How many of the member's newest background conversations were counted. |

## PendingAuthorizationList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | `object`[] | はい | — |
| `items[].toolId` | `string` | はい | — |
| `items[].name` | `string` | はい | — |
| `items[].description` | `string` | はい | — |

## McpCatalogEntry

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `scope` | `string` | はい | `platform` (the platform's own) or `workspace` (the workspace registered it). Clients tolerate values added later. |
| `name` | `string` | はい | — |
| `url` | `string` | はい | The connector's MCP server. |
| `authType` | `string` | はい | How a connection authenticates: `none`, `static_bearer`, `client_credentials` or `oauth` (in the browser, through `POST …/mcp/connections`). Clients tolerate values added later. |
| `description` | `string` | はい | — |
| `status` | `string` | はい | `enabled`, `disabled` or `deprecated`. Clients tolerate values added later. |
| `health` | `string` | はい | `unknown`, `healthy` or `unhealthy`. Clients tolerate values added later. |
| `lastError` | `string` または `null` | はい | Why the last health check failed; null when it did not, or for a member who may not manage connections. |
| `toolsOmitted` | `integer` | はい | Tools the server exposed beyond what the platform keeps. |

## McpCatalog

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [McpCatalogEntry](https://agentlab.cresclab.com/docs/ja/api/schemas.md#McpCatalogEntry)[] | はい | — |
| `truncated` | `boolean` | はい | The workspace has more connectors than the platform lists. |

## McpConnection

One identity connected to a connector. Its credential is never answered.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `catalogEntryId` | `string` | はい | — |
| `scope` | `string` | はい | `workspace` (shared by everyone) or `member` (one member's own). Clients tolerate values added later. |
| `label` | `string` または `null` | はい | Names one of several shared identities of a connector. |
| `authType` | `string` | はい | As the connector's `authType`. |
| `status` | `string` | はい | `connected`, `needs_reauth` (connect again with `POST …/mcp/connections`) or `revoked`. Clients tolerate values added later. |
| `ownedByMe` | `boolean` | はい | It is the acting member's own. |
| `delegationMode` | `string` | はい | Whose permission applies at the connector, in the platform's delegation taxonomy. Clients tolerate values added later. |
| `appliesMemberPermission` | `boolean` | はい | Calls act with the member's own permission at the connector. |
| `credentialExpires` | `boolean` | はい | The credential is short-lived and renewed. |
| `outputPolicy` | `string` | はい | Who may read what its calls answer: `inherit`, `workspace` or `personal`. Clients tolerate values added later. |

## McpConnectionPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [McpConnection](https://agentlab.cresclab.com/docs/ja/api/schemas.md#McpConnection)[] | はい | — |

## McpConnectionCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `catalogEntryId` | `string` | はい | The connector, one the workspace registered. |
| `scope` | `string` | はい | Shared by everyone, or the acting member's own. 値: `workspace`, `member`. |
| `label` | `string` | いいえ | Names one of several shared identities; only with `workspace`. |
| `redirectUri` | `string` | はい | Where the browser returns, one of the application's registered redirect URIs. |

## McpTool

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `name` | `string` | はい | — |
| `description` | `string` | はい | — |
| `serverDeclaredReadOnly` | `boolean` または `null` | はい | The server's own claim, null when it makes none; it never lowers the approval bar. |
| `workspaceReadOnly` | `boolean` または `null` | はい | The workspace's own declaration, null when it made none; this, never the server's claim, decides whether a call waits for approval. |

## McpToolList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [McpTool](https://agentlab.cresclab.com/docs/ja/api/schemas.md#McpTool)[] | はい | — |

## ToolCredential

The identity a tool presents. The credential itself is never answered.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `toolId` | `string` | はい | — |
| `scope` | `string` | はい | `workspace` (shared by everyone) or `member` (one member's own). Clients tolerate values added later. |
| `ownedByMe` | `boolean` | はい | It is the acting member's own. |
| `delegationMode` | `string` | はい | Whose permission applies downstream, in the platform's delegation taxonomy. Clients tolerate values added later. |
| `appliesMemberPermission` | `boolean` | はい | — |
| `credentialExpires` | `boolean` | はい | — |
| `status` | `string` | はい | `connected` or `revoked`. Clients tolerate values added later. |

## ToolCredentialList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [ToolCredential](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ToolCredential)[] | はい | — |
| `truncated` | `boolean` | はい | The workspace has more tool credentials than the platform lists. |

## ToolCredentialCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `toolId` | `string` | はい | — |
| `token` | `string` | はい | The credential the tool presents. Never answered. |

## OAuthError

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `string` | はい | — |
| `error_description` | `string` | いいえ | — |

## LegacyErrorString

The body these operations answered before this document; kept within v1.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `string` | はい | — |

## LegacyErrorCode

The body this operation answered before this document; kept within v1.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい | — |
| `error.code` | `string` | はい | — |

## TokenRequest

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `grant_type` | `string` | はい | 値: `authorization_code`, `refresh_token`, `client_credentials`. |
| `code` | `string` | いいえ | — |
| `code_verifier` | `string` | いいえ | — |
| `client_id` | `string` | いいえ | — |
| `client_secret` | `string` | いいえ | `client_secret_post`; a workspace application's secret. |
| `redirect_uri` | `string` | いいえ | — |
| `resource` | `string` | いいえ | — |
| `refresh_token` | `string` | いいえ | — |
| `installation_id` | `string` | いいえ | `client_credentials`: the installation, by id. |
| `workspace_id` | `string` | いいえ | `client_credentials`: the installation, by the workspace it is in. |
| `scope` | `string` | いいえ | `client_credentials`: `install` or absent. |

## TokenResponse

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `access_token` | `string` | はい | — |
| `token_type` | `string` | はい | 値: `Bearer`. |
| `expires_in` | `integer` | はい | Seconds. |
| `refresh_token` | `string` | いいえ | — |
| `scope` | `string` | はい | Space-separated. |
| `id_token` | `string` | いいえ | Present when `openid` was granted to an operators' own application. |

## InstallationTokenResponse

An installation token (`client_credentials`).

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `access_token` | `string` | はい | — |
| `token_type` | `string` | はい | 値: `Bearer`. |
| `expires_in` | `integer` | はい | Seconds. |
| `scope` | `string` | はい | — |
| `installation_id` | `string` | はい | — |
| `workspace_id` | `string` | はい | — |

## InstallResult

An install request's code answers where the application was installed, and no token.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `installation_id` | `string` | はい | — |
| `workspace_id` | `string` | はい | — |
| `scope` | `string` | はい | — |

## Introspection

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `active` | `boolean` | はい | — |
| `sub` | `string` | いいえ | The account id. |
| `client_id` | `string` | いいえ | — |
| `scope` | `string` | いいえ | Space-separated. |
| `exp` | `integer` | いいえ | Unix seconds. |
| `aud` | `string` | いいえ | — |
| `iss` | `string` | いいえ | — |
| `token_type` | `string` | いいえ | 値: `Bearer`. |
| `workspace_id` | `string` | いいえ | An installation token names its workspace. |

## UserInfo

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `sub` | `string` | はい | — |
| `workspace_id` | `string` | はい | — |
| `workspace_slug` | `string` | いいえ | — |
| `workspace_name` | `string` | いいえ | — |
| `email` | `string` | いいえ | — |
| `email_verified` | `boolean` | いいえ | — |
| `name` | `string` | いいえ | — |

## OpenIDConfiguration

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `issuer` | `string` | はい | — |
| `authorization_endpoint` | `string` | はい | — |
| `token_endpoint` | `string` | はい | — |
| `userinfo_endpoint` | `string` | はい | — |
| `revocation_endpoint` | `string` | いいえ | — |
| `introspection_endpoint` | `string` | いいえ | — |
| `jwks_uri` | `string` | はい | — |
| `response_types_supported` | `string`[] | はい | — |
| `grant_types_supported` | `string`[] | いいえ | — |
| `subject_types_supported` | `string`[] | はい | — |
| `id_token_signing_alg_values_supported` | `string`[] | はい | — |
| `code_challenge_methods_supported` | `string`[] | いいえ | — |
| `token_endpoint_auth_methods_supported` | `string`[] | いいえ | — |
| `introspection_endpoint_auth_methods_supported` | `string`[] | いいえ | — |
| `scopes_supported` | `string`[] | いいえ | — |
| `claims_supported` | `string`[] | いいえ | — |

## AuthorizationServerMetadata

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `issuer` | `string` | はい | — |
| `authorization_endpoint` | `string` | はい | — |
| `token_endpoint` | `string` | はい | — |
| `revocation_endpoint` | `string` | いいえ | — |
| `registration_endpoint` | `string` | いいえ | — |
| `response_types_supported` | `string`[] | はい | — |
| `grant_types_supported` | `string`[] | いいえ | — |
| `code_challenge_methods_supported` | `string`[] | いいえ | — |
| `token_endpoint_auth_methods_supported` | `string`[] | いいえ | — |
| `scopes_supported` | `string`[] | いいえ | — |
| `client_id_metadata_document_supported` | `boolean` | いいえ | — |

## SdkEventVerificationKey

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `version` | `string` | はい | `agentlab-sdk-event-v1-ed25519`. |
| `keyId` | `string` | はい | — |
| `algorithm` | `string` | はい | 値: `Ed25519`. |
| `publicKey` | `string` | はい | base64url, no padding. |

## SdkReply

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `version` | `string` | はい | 値: `sdk-event/v1`. |
| `correlationId` | `string (uuid)` | はい | The delivered event's `correlationId`. |
| `content` | `string` | はい | The answer's text; not blank. |

## Problem

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `field` | `string` | はい | The request's JSON path to the value, such as `agent.skills[0].name`. |
| `reason` | `string` | はい | For the developer; not for display to a person, and never parsed. |

## RunCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `conversationId` | `string (uuid)` | いいえ | A run conversation of this member and installation to continue; omitted starts a new one. |
| `agent` | [AgentConfig](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AgentConfig) | はい | — |
| `input` | [RunInputMessage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunInputMessage)[] | はい | The member's message. |
| `background` | `boolean` | いいえ | An automation with no reader waiting; not streamed. 既定値: `false`. |
| `replyTo` | `object` | いいえ | — |
| `replyTo.eventId` | `string (uuid)` | はい | The `eventId` of an `sdk-event/v1` event delivered to this installation's application, accepted and not yet answered, that no other run answers (a run that failed, was cancelled or could not deliver no longer does). |
| `metadata` | [RunMetadata](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunMetadata) | いいえ | — |

## EvaluationRunCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `agent` | [AgentConfig](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AgentConfig) | はい | — |
| `cases` | [EvaluationCase](https://agentlab.cresclab.com/docs/ja/api/schemas.md#EvaluationCase)[] | はい | The cases to ask, each with an `id` no other case of the run has. |

## EvaluationCase

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | The application's own id for the case, echoed back with its result; no surrounding spaces. |
| `title` | `string` | いいえ | A name for the case; omitted, the start of its question. |
| `input` | [RunInputMessage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunInputMessage)[] | はい | The member's message the case asks; at most 1000 characters in all. |
| `expectations` | [EvaluationExpectations](https://agentlab.cresclab.com/docs/ja/api/schemas.md#EvaluationExpectations) | はい | — |
| `weight` | `integer` | いいえ | What the case counts for beside the others. 既定値: `1`. |

## EvaluationExpectations

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `rubric` | `string` | はい | What a good answer does, which the platform's judge reads; no surrounding spaces. |
| `requiredTools` | `string`[] | いいえ | Tools the answer must have used successfully, by name. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. |
| `forbiddenTools` | `string`[] | いいえ | Tools the answer must not reach for at all, by name; none also required. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. |
| `groundingRequired` | `boolean` | いいえ | The answer must rest on the configuration's knowledge. 既定値: `false`. |
| `mustContain` | `string`[] | いいえ | Phrases every one of which the answer's text must contain, checked without the judge: a missing phrase fails the case whatever the judge thinks. Compared after Unicode case folding, NFC and collapsing every run of whitespace to one space, as a substring (not a word). Each phrase listed once in that form, no surrounding spaces. |
| `mustNotContain` | `string`[] | いいえ | Phrases none of which the answer's text may contain, compared as `mustContain` is; a phrase found fails the case whatever the judge thinks. None may sit inside a `mustContain` phrase. Each phrase listed once in that form, no surrounding spaces. |

## EvaluationRun

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `status` | `string` | はい | `running`, `completed` (every case answered and judged) or `failed` (`reason` says why). Clients tolerate values added later. 値: `running`, `completed`, `failed`. |
| `reason` | `string` または `null` | はい | Why the run failed; null otherwise. |
| `passed` | `integer` | はい | Cases judged so far that passed. |
| `failed` | `integer` | はい | Cases judged so far that did not pass, an `error` verdict included. |
| `cases` | [EvaluationCaseResult](https://agentlab.cresclab.com/docs/ja/api/schemas.md#EvaluationCaseResult)[] | はい | — |
| `createdAt` | `string (date-time)` | はい | When the run started; on the `202`, when the start was answered, which may differ by a moment. |
| `completedAt` | `string (date-time)` または `null (date-time)` | はい | — |

## EvaluationCaseResult

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | The case's `id` as the application sent it. |
| `result` | `null` または [EvaluationVerdict](https://agentlab.cresclab.com/docs/ja/api/schemas.md#EvaluationVerdict) | はい | The answer and the judge's verdict; null until the case is answered and judged. |

## EvaluationVerdict

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `verdict` | `string` | はい | `pass`, `fail`, or `error` (the case could not be answered or judged). Clients tolerate values added later. 値: `pass`, `fail`, `error`. |
| `output` | `string` | はい | The answer's text. |
| `rationale` | `string` | はい | The judge's reasoning, or why the case could not be answered. |
| `refusal` | `string` または `null` | はい | Which limit refused the answer, when the verdict is `error` for that reason. |
| `model` | `string` | はい | The model that answered; empty when none did. |
| `durationMs` | `integer` | はい | How long the answer took; 0 when not recorded. |
| `toolCalls` | `object`[] | はい | The tools the answer reached for, in order, and how each call ended. |
| `toolCalls[].name` | `string` | はい | — |
| `toolCalls[].status` | `string` | はい | How the call ended (`succeeded`, `failed`, `rejected` for a call declined because it waited for a person, `refused`). Clients tolerate values added later. |
| `weight` | `integer` | はい | What the case counted for; 0 when not recorded. |
| `phraseFailures` | `object`[] | はい | Every `mustContain` phrase the answer's text lacks and every `mustNotContain` phrase it has, as the application sent it, whatever else decided the verdict; empty when the verdict is `error` or every phrase held. |
| `phraseFailures[].expectation` | `string` | はい | `mustContain` or `mustNotContain`: the list the phrase came from. 値: `mustContain`, `mustNotContain`. |
| `phraseFailures[].phrase` | `string` | はい | — |

## DeploymentCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `entryKind` | `string` | はい | `slack`, `slack_channel` or `line`; values may be added later. |
| `entryRef` | `string` | はい | The entry point in the channel's own terms, as `createDeployment` describes. |
| `agent` | [AgentConfig](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AgentConfig) | いいえ | — |

## DeployedAgentReplace

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `agent` | [AgentConfig](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AgentConfig) | はい | — |
| `expectedRevision` | `integer` | はい | The revision this replaces, as the deployment answered it; 0 for the first. |

## DeployedAgent

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `agentRef` | `string` または `null` | はい | The deployed configuration's `ref`, null when it named none. |
| `revision` | `integer` | はい | Counts the configurations deployed to this entry; the next replacement names it. |
| `deployedAt` | `string (date-time)` | はい | — |

## Deployment

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `entryKind` | `string` | はい | — |
| `entryRef` | `string` | はい | — |
| `status` | `string` | はい | `active` or `disabled`; clients tolerate values added later. |
| `responder` | `string` | はい | `application`, a registered application answers the entry; `agent`, an assistant the console deployed. Clients tolerate values added later. |
| `applicationId` | `string` または `null` | はい | The registered application that answers the entry, null for an assistant. |
| `thisApplication` | `boolean` | はい | The calling installation's application answers the entry. |
| `agent` | [DeployedAgent](https://agentlab.cresclab.com/docs/ja/api/schemas.md#DeployedAgent) または `null` | はい | The entry's deployed configuration, which the platform answers its events with; null when its events are delivered to the application, or the entry is not an application's. A first `PUT …/agent` names `expectedRevision: 0`. |
| `createdAt` | `string (date-time)` | はい | — |

## DeploymentPage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `nextCursor` | `string` または `null` | いいえ | Absent or null on the last page. |
| `items` | [Deployment](https://agentlab.cresclab.com/docs/ja/api/schemas.md#Deployment)[] | はい | — |

## RunMetadata

The application's own values, kept with the run and answered back; never interpreted.

| 型 | 値 |
| --- | --- |
| `object` | — |

## AgentConfig

The agent, passed with every run. The platform keeps it with the run and stores no agent.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `ref` | `string` | いいえ | The application's own id for the agent and its version, opaque to the platform; answered back as `agentRef`. |
| `name` | `string` | はい | — |
| `instructions` | `string` | はい | — |
| `model` | `string` | はい | `"auto"` for the workspace's default, or a model the workspace may use (`GET …/models`). |
| `skills` | [InlineSkill](https://agentlab.cresclab.com/docs/ja/api/schemas.md#InlineSkill)[] | いいえ | Standing instructions sent with the agent's, in order; together at most 6000 characters with their headings. |
| `tools` | [RunTool](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunTool)[] | いいえ | The tools the agent may call, and nothing else: no platform tools, no member's own connections beyond those named. Each runs under the platform's tool authority, bound to this configuration: a call approved under it never runs under another. |
| `knowledge` | [RunKnowledge](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunKnowledge) | いいえ | — |

## RunTool

`type: "mcp"`: the tools of an MCP connection, by `connectionId` — the member's own, or an
organization-shared one when the member's role may manage connections — narrowed by
`allowedTools` (left out: every tool its server offers); `approval` is `"always"`, a person
approves every call. `type: "http"`: an HTTPS action the configuration defines, presenting
no credential: `name`, `description`, `inputSchema` (a JSON Schema object), `url`, `method`;
`approval: "never"` lets a `GET` run unattended when the workspace allows it. A field of
the other type is refused.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `type` | `string` | はい | 値: `mcp`, `http`. |
| `connectionId` | `string` | いいえ | — |
| `allowedTools` | `string`[] | いいえ | — |
| `approval` | `string` | はい | 値: `always`, `never`. |
| `name` | `string` | いいえ | — |
| `description` | `string` | いいえ | — |
| `inputSchema` | `object` | いいえ | — |
| `url` | `string` | いいえ | — |
| `method` | `string` | いいえ | 値: `GET`, `POST`. |

## RunKnowledge

What the agent answers from. `scope: "listed"` (the default) retrieves from the documents
and Q&A entries listed; `"workspace"` from everything in the workspace the member may read.
The member's team audience filters either.

`contextProvider: "self"` asks the calling application instead, on every turn: the
platform sends a signed `context-provider/v1` request to the context endpoint the
application's registration publishes, and writes what it answers into the turn as it writes
its own knowledge. It is the answer's only knowledge, so it is refused beside `documentIds`,
`qaIds` or `scope: "workspace"`; and it is refused before the run starts when the
installation is not granted `context:provide` or the registration publishes no context
endpoint. A turn whose request fails (timeout, error, invalid answer, the installation
revoked since) is answered without knowledge, and nothing is recorded as its grounding.

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `documentIds` | `string`[] | いいえ | — |
| `qaIds` | `string`[] | いいえ | Every listed entry the member may read is sent with each answer. |
| `scope` | `string` | いいえ | 値: `listed`, `workspace`. |
| `contextProvider` | `string` | いいえ | 値: `self`. |

## InlineSkill

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `name` | `string` | はい | — |
| `instructions` | `string` | はい | — |

## RunInputMessage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `role` | `string` | はい | 値: `user`. |
| `content` | [RunTextPart](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunTextPart)[] | はい | Text parts, joined with a blank line; at most 4000 characters in all. |

## RunTextPart

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `type` | `string` | はい | 値: `text`. |
| `text` | `string` | はい | — |

## Run

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `conversationId` | `string` | はい | — |
| `status` | `string` | はい | `queued`, `running`, `requires_action` (a tool call waits for approval), `completed`, `failed` (`cancelled` says whether it was stopped), or `refused` (a limit refused the answer; `refusal` says which). Clients tolerate values added later. 値: `queued`, `running`, `requires_action`, `completed`, `failed`, `refused`. |
| `agentRef` | `string` または `null` | はい | The configuration's `ref`; null when it had none. |
| `output` | [RunOutputMessage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunOutputMessage)[] または `null` | はい | The answer, when `completed`. |
| `refusal` | `string` または `null` | はい | Which limit refused the answer, when `refused`. |
| `metadata` | [RunMetadata](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunMetadata) | いいえ | — |
| `background` | `boolean` | いいえ | — |
| `cancelled` | `boolean` | いいえ | The run was stopped (`POST …/runs/{runId}/cancel`) before it finished; its status is `failed`. |
| `replyTo` | `object` または `null` | いいえ | The event the run answers, when it was started with `replyTo`. |
| `replyTo.eventId` | `string` | はい | — |
| `replyTo.delivery` | `string` | はい | `pending` until the run settles; `delivered`; or `not_delivered`, the run did not complete or the event could no longer be answered (the application may still answer it with `POST /v1/sdk/replies`). Clients tolerate values added later. 値: `pending`, `delivered`, `not_delivered`. |
| `requiredAction` | `null` または [RunRequiredAction](https://agentlab.cresclab.com/docs/ja/api/schemas.md#RunRequiredAction) | いいえ | What the run waits on, when `requires_action`; else null. |
| `createdAt` | `string (date-time)` | はい | — |

## RunEvents

Server-sent events, each `event: <name>` and one `data:` line of JSON:

- `run`: the whole `Run`; first, whenever its status changes, and last when it settles.
- `output_text.delta`: `{"delta": string}`, text the answer gained while `running`. The
  settled `run` event carries the whole answer.
- `error`: an `Error`; the run could not be read, and the stream ends.

Lines starting with `:` keep the connection open. The stream ends when the run settles, or
after ten minutes; read or stream the run again with `GET …/runs/{runId}`. A streamed `POST`
under `Idempotency-Key` keeps the events written before the stream ended, and a retry
replays exactly those; read the run with `GET` for where it stands.

| 型 | 値 |
| --- | --- |
| `string` | — |

## RunRequiredAction

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `toolApprovals` | [ToolApproval](https://agentlab.cresclab.com/docs/ja/api/schemas.md#ToolApproval)[] | はい | — |

## ToolApproval

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `name` | `string` | はい | The tool, as the agent called it (an MCP tool's name is prefixed `mcp__`). |
| `arguments` | `object` | はい | What the agent passed. |
| `readOnly` | `boolean` または `null` | はい | The risk the workspace declared for this tool: true read-only, false writing, null undeclared (approved as destructive). |
| `reason` | `string` または `null` | はい | Why the call waits for a person beyond the configuration asking, when there is one. |
| `createdAt` | `string (date-time)` | はい | — |

## ToolApprovalDecision

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `decision` | `string` | はい | 値: `approve`, `reject`. |

## RunOutputMessage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `role` | `string` | はい | 値: `assistant`. |
| `content` | `object`[] | はい | — |
| `content[].type` | `string` | はい | 値: `text`. |
| `content[].text` | `string` | はい | — |

## UsageReport

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `sinceDays` | `integer` | はい | The window the report covers, in days. |
| `items` | [AgentRefUsage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#AgentRefUsage)[] | はい | — |
| `truncated` | `boolean` | はい | There are more groups than the report lists. |

## AgentRefUsage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `agentRef` | `string` または `null` | はい | The configuration's `ref`; null for configurations passed without one. |
| `kind` | `string` | はい | `run` or `evaluation`. Clients tolerate values added later. |
| `turns` | `integer` | はい | Replies answered. |
| `modelCalls` | `integer` | はい | Model calls made for those replies; a reply that calls tools makes several. |
| `inputTokens` | `integer` | はい | Input tokens charged at the full rate (not read from or written to a cache). |
| `outputTokens` | `integer` | はい | — |
| `cachedReadTokens` | `integer` | はい | — |
| `cacheWriteTokens` | `integer` | はい | — |
| `cost` | `null` または [UsageCost](https://agentlab.cresclab.com/docs/ja/api/schemas.md#UsageCost) | はい | What it cost at the workspace's prices; null for a member who may not read cost. |

## UsageCost

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `amountUsd` | `number` | はい | — |
| `pricingComplete` | `boolean` | はい | Every model was priced at the workspace's prices. When false, the models in `unpricedModels` are counted at the platform's list price where it has one. |
| `unpricedModels` | `string`[] | はい | — |

## MemoryFact

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `kind` | `string` | はい | `standing` or `episodic`. Clients tolerate values added later. |
| `body` | `string` | はい | One sentence, at most 1000 characters. |
| `sourceLabel` | `string` | はい | Where it was learned, as the console names it. |
| `sourceTrusted` | `boolean` | はい | — |
| `explicit` | `boolean` | はい | Someone stated it deliberately, rather than an assistant inferring it. |
| `organizationWide` | `boolean` | はい | — |
| `capturedAt` | `string (date-time)` | はい | — |

## MemoryRevision

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `op` | `string` | はい | What the line records, such as `edit` or `delete`. Clients tolerate values added later. |
| `body` | `string` | はい | — |
| `authorAccountId` | `string` または `null` | はい | The member who made the change; null when an assistant made it. |
| `at` | `string (date-time)` | はい | — |

## MemoryNotebook

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `standing` | [MemoryFact](https://agentlab.cresclab.com/docs/ja/api/schemas.md#MemoryFact)[] | はい | — |
| `episodic` | [MemoryFact](https://agentlab.cresclab.com/docs/ja/api/schemas.md#MemoryFact)[] | はい | — |
| `history` | [MemoryRevision](https://agentlab.cresclab.com/docs/ja/api/schemas.md#MemoryRevision)[] | はい | The 50 newest history lines, newest first. |
| `historyTruncated` | `boolean` | はい | — |

## MemoryFactEdit

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `expectedBody` | `string` | はい | The fact's sentence as last read. |
| `body` | `string` | はい | — |

## TranscriptionCreate

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `audio` | `string` | はい | A mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded. |

## Transcription

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `text` | `string` | はい | — |

## OutreachSend

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `targetUserRef` | `string` | いいえ | A person, by their Slack user id. Exactly one of this and `targetChannelRef`. |
| `targetChannelRef` | `string` | いいえ | A channel, by its Slack id. Exactly one of this and `targetUserRef`. |
| `body` | `string` | はい | The message, at most 4000 characters. |
| `reason` | `string` | はい | Why it is sent, at most 300 characters; kept with the message. |

## OutreachMessage

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | — |
| `channelId` | `string` | はい | The channel it was sent through. |
| `targetRef` | `string` | はい | The Slack conversation it was posted to (a direct message's, for a person). |
| `body` | `string` | はい | — |
| `reason` | `string` | はい | — |
| `status` | `string` | はい | `pending`, `sent`, `abandoned` or `unknown`. Clients tolerate values added later. |
| `attempts` | `integer` | はい | — |
| `lastError` | `string` | はい | Why the latest attempt failed; empty when none did. |
| `createdAt` | `string (date-time)` | はい | — |

## OutreachList

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `items` | [OutreachMessage](https://agentlab.cresclab.com/docs/ja/api/schemas.md#OutreachMessage)[] | はい | — |
| `truncated` | `boolean` | はい | The member has older sends in the workspace than the 50 that were read. |

## Gateway

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `enabled` | `boolean` | はい | — |
| `operatorDisabled` | `boolean` | はい | Agent Lab turned the Gateway off for this workspace. |
| `plan` | `null` または [GatewayPlan](https://agentlab.cresclab.com/docs/ja/api/schemas.md#GatewayPlan) | はい | Null while the Gateway is off, and for a member who may not read usage. |

## GatewayPlan

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `plan` | `string` | はい | The plan's name. Clients tolerate values added later. |
| `source` | `string` | はい | Where the plan comes from. Clients tolerate values added later. |
| `includedRequests` | `integer` または `null` | はい | The requests the plan includes this month; null when it does not limit them. |
| `usedRequests` | `integer` または `null` | はい | The requests made this month; null when they are not counted. |
| `periodStart` | `string (date-time)` | はい | — |
| `periodEnd` | `string (date-time)` | はい | — |
| `asOf` | `string (date-time)` | はい | — |
| `spendCapUsd` | `number` または `null` | はい | The plan's model-spend ceiling; null without one. |
| `spentUsd` | `number` または `null` | はい | All Gateway spend the workspace made; null when some of it has no price. |
| `credit` | `null` または [GatewayCredit](https://agentlab.cresclab.com/docs/ja/api/schemas.md#GatewayCredit) | はい | The prepaid credit; null before the first credit. |

## GatewayCredit

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `creditedUsd` | `number` | はい | Every top-up, contract credit and redeemed code. |
| `spentUsd` | `number` または `null` | はい | What was drawn from it; null when some spend has no price. |
| `balanceUsd` | `number` または `null` | はい | What is left; null when the spend is not known. |
