> ## Documentation Index
> Fetch the complete documentation index at: https://www.voiceflow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments

API operations for environments. Browse the routes below for parameters, request examples, and responses.

API version: Selected per operation

## List environments

Returns every environment in the project. An environment is one draft-and-published copy of the agent. The call takes no paging parameters, so one request yields the whole set.

### Endpoint

```http
GET /v1/stable/environment
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Returns every environment in the project, each with its name, alias, release history, whether it is the project's main environment, and the percentage of live traffic it currently takes.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentListResponse"
}
```

Example:

```json
{
  "environments": [
    {
      "name": "<string>",
      "alias": "<string>",
      "isMain": true,
      "releases": [
        {
          "name": "<string>",
          "backupID": 0,
          "createdAt": "2026-09-10T00:00:00.000Z",
          "description": "<string>",
          "autogenerated": true
        }
      ],
      "createdAt": "2026-09-10T00:00:00.000Z",
      "trafficPercentage": 0
    }
  ]
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment?projectID=<projectID>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/environment?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment list --project-id <projectID>
```


## Merge environments

Folds the contents of one environment into another, so work done in a clone can be brought back to the environment it was cloned from.

### Endpoint

```http
PUT /v1/stable/environment/merge
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEnvironmentMergeRequest"
      }
    }
  }
}
```

### Responses

#### 200

Returns the source and target environments as they stand after the merge, plus the resulting release on the target, with its name, description, and the ID of the backup that snapshots it.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentMergeResponse"
}
```

Example:

```json
{
  "sourceEnvironment": {
    "name": "<string>",
    "alias": "<string>",
    "isMain": true,
    "releases": [
      {
        "name": "<string>",
        "backupID": 0,
        "createdAt": "2026-09-10T00:00:00.000Z",
        "description": "<string>",
        "autogenerated": true
      }
    ],
    "createdAt": "2026-09-10T00:00:00.000Z",
    "trafficPercentage": 0
  },
  "targetEnvironment": {
    "name": "<string>",
    "alias": "<string>",
    "isMain": true,
    "releases": [
      {
        "name": "<string>",
        "backupID": 0,
        "createdAt": "2026-09-10T00:00:00.000Z",
        "description": "<string>",
        "autogenerated": true
      }
    ],
    "createdAt": "2026-09-10T00:00:00.000Z",
    "trafficPercentage": 0
  },
  "targetRelease": {
    "name": "<string>",
    "backupID": 0,
    "createdAt": "2026-09-10T00:00:00.000Z",
    "description": "<string>",
    "autogenerated": true
  }
}
```

### Request examples

#### cURL

```bash
curl --request PUT \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/merge?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceEnvironmentAlias": "<string>",
  "targetEnvironmentAlias": "<string>",
  "removeSourceEnvironment": false
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/merge?projectID=<projectID>', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "sourceEnvironmentAlias": "<string>",
    "targetEnvironmentAlias": "<string>",
    "removeSourceEnvironment": false
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.put(
    'https://realtime-api.voiceflow.com/v1/stable/environment/merge?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "sourceEnvironmentAlias": "<string>",
      "targetEnvironmentAlias": "<string>",
      "removeSourceEnvironment": False
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment merge --project-id <projectID> <<'JSON'
{
  "sourceEnvironmentAlias": "<string>",
  "targetEnvironmentAlias": "<string>",
  "removeSourceEnvironment": false
}
JSON
```


## Update traffic split

Changes an existing environment in place. The response carries only a confirmation message, so refetch the environment to read its new values.

### Endpoint

```http
PUT /v1/stable/environment/update-traffic-split
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEnvironmentUpdateTrafficSplitRequest"
      }
    }
  }
}
```

### Responses

#### 200

Confirms the new split was saved. The body is a message only, so read the environments back to see the trafficPercentage now recorded against each one.

Schema:

```json
{
  "$ref": "#/components/schemas/StableUpdateResponse"
}
```

Example:

```json
{
  "message": "<string>"
}
```

### Request examples

#### cURL

```bash
curl --request PUT \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/update-traffic-split?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "traffic": {}
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/update-traffic-split?projectID=<projectID>', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "traffic": {}
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.put(
    'https://realtime-api.voiceflow.com/v1/stable/environment/update-traffic-split?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "traffic": {}
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment update-traffic-split --project-id <projectID> <<'JSON'
{
  "traffic": {}
}
JSON
```


## Get environment

Returns a single environment by ID, with the fields that define it. An environment is one draft-and-published copy of the agent.

### Endpoint

```http
GET /v1/stable/environment/{environmentAlias}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Returns the one environment the alias resolves to, including its release history and the share of live traffic routed to it.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentResponse"
}
```

Example:

```json
{
  "environment": {
    "name": "<string>",
    "alias": "<string>",
    "isMain": true,
    "releases": [
      {
        "name": "<string>",
        "backupID": 0,
        "createdAt": "2026-09-10T00:00:00.000Z",
        "description": "<string>",
        "autogenerated": true
      }
    ],
    "createdAt": "2026-09-10T00:00:00.000Z",
    "trafficPercentage": 0
  }
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment get --environment-alias <environmentAlias> --project-id <projectID>
```


## Update environment

Changes an existing environment in place. The response carries only a confirmation message, so refetch the environment to read its new values.

### Endpoint

```http
PATCH /v1/stable/environment/{environmentAlias}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/StableEnvironmentUpdateRequest"
          }
        ]
      }
    }
  }
}
```

### Responses

#### 200

Confirms the environment was updated. The body carries a message, not the environment, so fetch it again to see the change alongside its releases and traffic percentage.

Schema:

```json
{
  "$ref": "#/components/schemas/StableUpdateResponse"
}
```

Example:

```json
{
  "message": "<string>"
}
```

### Request examples

#### cURL

```bash
curl --request PATCH \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>', {
  method: 'PATCH',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "<string>"
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.patch(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "name": "<string>"
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment update --environment-alias <environmentAlias> --project-id <projectID> <<'JSON'
{
  "name": "<string>"
}
JSON
```


## Delete environment

Deletes a single environment by ID. An environment is one draft-and-published copy of the agent. The response carries only a confirmation message, so refetch the environments to see what is left.

### Endpoint

```http
DELETE /v1/stable/environment/{environmentAlias}
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Confirms the environment was deleted. Only a message comes back, so list the project's environments again to see which aliases remain.

Schema:

```json
{
  "$ref": "#/components/schemas/StableDeleteResponse"
}
```

Example:

```json
{
  "message": "<string>"
}
```

### Request examples

#### cURL

```bash
curl --request DELETE \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>', {
  method: 'DELETE',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.delete(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment delete --environment-alias <environmentAlias> --project-id <projectID>
```


## Diff environment

Compare an environment's draft with its last publish.

### Endpoint

```http
GET /v1/stable/environment/{environmentAlias}/diff
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string



```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentDiffResponse"
}
```

Example:

```json
{
  "diff": {
    "created": 0,
    "updated": 0,
    "deleted": 0,
    "resources": [
      {
        "type": "<string>",
        "id": "<string>",
        "name": "<string>",
        "change": "<StableEnvironmentDiffChange>"
      }
    ],
    "truncated": true
  }
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/diff?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/diff?projectID=<projectID>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/diff?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment diff --environment-alias <environmentAlias> --project-id <projectID>
```


## Audit environment wiring

Check how tools, functions and variables connect.

### Endpoint

```http
GET /v1/stable/environment/{environmentAlias}/audit-wiring
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string



```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentAuditResponse"
}
```

Example:

```json
{
  "audit": {
    "phase1VarSetters": {},
    "phase2OrphanDefaults": [
      {
        "toolID": "<string>",
        "function": "<string>",
        "agent": "<string>",
        "input": "<string>",
        "defaultVar": "<string>",
        "note": "<string>"
      }
    ],
    "phase3ShouldFulfillWithCanonicalSource": [
      {
        "toolID": "<string>",
        "function": "<string>",
        "agent": "<string>",
        "input": "<string>",
        "suggestedDefaultVar": "<string>",
        "note": "<string>"
      }
    ],
    "phase4UncapturedOutputs": [
      {
        "function": "<string>",
        "output": "<string>",
        "toolCount": 0,
        "note": "<string>"
      }
    ],
    "phase5MalformedWiring": [
      {
        "toolID": "<string>",
        "function": "<string>",
        "agent": "<string>",
        "input": "<string>",
        "issue": "<string>",
        "current": "<string>",
        "shouldBe": "<string>"
      }
    ],
    "phase6SuggestedCaptures": [
      {
        "function": "<string>",
        "output": "<string>",
        "suggestedVar": "<string>",
        "currentCapturesTo": [
          "<string>"
        ],
        "note": "<string>"
      }
    ],
    "phase7SideEffectOnly": [
      {
        "function": "<string>",
        "agents": [
          "<string>"
        ],
        "note": "<string>"
      }
    ],
    "phase8OrphanFunctions": [
      {
        "function": "<string>",
        "inputCount": 0,
        "outputCount": 0,
        "note": "<string>"
      }
    ],
    "phase9ArgsSecretsReads": [
      {
        "function": "<string>",
        "attachments": [
          {
            "agent": "<string>",
            "toolID": "<string>"
          }
        ],
        "note": "<string>"
      }
    ],
    "phase10EmptyToolDescriptions": [
      {
        "toolID": "<string>",
        "function": "<string>",
        "agent": "<string>",
        "note": "<string>"
      }
    ]
  }
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/audit-wiring?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/audit-wiring?projectID=<projectID>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/audit-wiring?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment audit-wiring --environment-alias <environmentAlias> --project-id <projectID>
```


## Export environment

Serializes the whole environment - its agent, playbooks, tools and knowledge base - into a single document you can archive or move to another project. Rich text comes back as plain strings with `{name}` references.

### Endpoint

```http
GET /v2/stable/environment/{environmentAlias}/export
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Returns the whole environment as one JSON document: its project and version records, every workflow, agent, tool, function, variable and knowledge base document version, and its secrets. Rich text is a string, and most sections appear only when the environment has something of that kind.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentExportResponseV2"
}
```

Example:

```json
{
  "secrets": [
    {
      "id": "<string>",
      "name": "<string>",
      "visibility": "<SecretVisibility>",
      "hasValue": true,
      "assistantID": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0
    }
  ],
  "project": {
    "_id": "<string>",
    "nlu": "<string>",
    "type": "<string>",
    "name": "<string>",
    "image": "<string>",
    "teamID": "<string>",
    "members": [
      "<ProjectMember>"
    ],
    "privacy": "<ProjectPrivacy>",
    "platform": "<string>",
    "_version": 0,
    "linkType": "<string>",
    "stickers": [
      "<ProjectSticker>"
    ],
    "creatorID": 0,
    "updatedBy": 0,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "prototype": "<ProjectPrototype>",
    "apiPrivacy": "<ProjectPrivacy>",
    "reportTags": {},
    "nluSettings": "<ProjectNLUSettings>",
    "environments": {},
    "platformData": {},
    "customThemes": [
      "<ProjectCustomTheme>"
    ],
    "aiAssistSettings": "<ProjectAIAssistSettings>",
    "transcriptSettings": "<ProjectTranscriptSettings>",
    "analyticsSettings": "<ProjectAnalyticsSettings>",
    "objective": "<ProjectObjective>",
    "devVersion": "<string>",
    "liveVersion": "<string>",
    "stagingVersion": "<string>",
    "previewVersion": "<string>",
    "knowledgeBase": "<VersionKnowledgeBase>"
  },
  "_version": "<string>",
  "programs": {},
  "assistant": {
    "id": "<string>",
    "createdAt": "2026-09-10T00:00:00.000Z",
    "updatedAt": "2026-09-10T00:00:00.000Z",
    "updatedByID": 0,
    "assistantID": "<string>",
    "environmentID": "<string>",
    "name": "<string>",
    "version": 0,
    "folderID": null,
    "isDeleted": true,
    "description": null,
    "workspaceID": "<string>",
    "activeEnvironmentID": "<string>"
  },
  "variableStates": [
    {
      "_id": "<string>",
      "name": "<string>",
      "projectID": "<string>",
      "variables": {},
      "startFrom": "<VariableStateStartFrom>"
    }
  ],
  "transcriptEvaluations": [
    {
      "name": "<string>",
      "description": "<string>",
      "enabled": true,
      "prompt": "<string>",
      "settings": "<TranscriptEvaluationSettings>",
      "runScope": "<TranscriptEvaluationRunScope>",
      "type": "boolean",
      "truePrompt": "<string>",
      "falsePrompt": "<string>",
      "systemTag": "<string>",
      "id": "<string>",
      "default": true
    }
  ],
  "version": {
    "_id": "<string>",
    "name": "<string>",
    "model": "<VersionModel>",
    "legacyID": "<string>",
    "updatedAt": "<string>",
    "updatedBy": 0,
    "settings": "<StableExportVersionSettings>",
    "_version": 0,
    "creatorID": 0,
    "projectID": "<string>",
    "manualSave": true,
    "publishedAt": "<string>",
    "platformData": {
      "slots": [
        "<VersionSlot>"
      ],
      "intents": [
        "<VersionIntent>"
      ],
      "settings": "<VersionPlatformSettings>",
      "publishing": {}
    },
    "customBlocks": {},
    "rootDiagramID": "<string>",
    "canvasTemplates": [
      "<VersionCanvasTemplate>"
    ],
    "programResources": "<StableExportVersionProgramResources>",
    "templateDiagramID": "<string>",
    "defaultStepColors": {},
    "autoSaveFromRestore": true,
    "notes": {},
    "topics": [
      "<VersionFolderItem>"
    ],
    "folders": {},
    "domains": [
      "<VersionDomain>"
    ],
    "prototype": "<VersionPrototype>",
    "components": [
      "<VersionFolderItem>"
    ],
    "variables": [
      "<string>"
    ],
    "knowledgeBase": "<VersionKnowledgeBase>",
    "secondaryVersionID": 0,
    "compiledSourceHash": "<string>"
  },
  "diagrams": {},
  "intents": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "description": "<string>",
      "entityOrder": [
        "<string>"
      ],
      "automaticReprompt": true,
      "automaticRepromptSettings": "<AutomaticReprompt>"
    }
  ],
  "utterances": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "text": "<ExportTextString>",
      "language": "<Language>",
      "intentID": "<string>"
    }
  ],
  "requiredEntities": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "intentID": "<string>",
      "entityID": "<string>",
      "repromptID": "<string>"
    }
  ],
  "functions": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "code": "<string>",
      "image": "<string>",
      "pathOrder": [
        "<string>"
      ],
      "description": "<string>",
      "settings": "<FunctionSettings>"
    }
  ],
  "functionPaths": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "label": "<string>",
      "functionID": "<string>"
    }
  ],
  "functionVariables": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "type": "<FunctionVariableKind>",
      "functionID": "<string>",
      "description": "<string>"
    }
  ],
  "flows": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "name": "<string>",
      "diagramID": "<string>",
      "description": "<string>"
    }
  ],
  "agents": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "endTool": null,
      "settings": "<AgentSettings>",
      "cardTool": null,
      "isOperator": false,
      "buttonTool": null,
      "description": "<string>",
      "instructions": "<ExportTextString>",
      "skipTurnTool": null,
      "carouselTool": null,
      "pathToolOrder": [
        "<string>"
      ],
      "webSearchTool": "<StableExportAgentWebSearchTool>",
      "callForwardTool": null,
      "knowledgeBaseTool": "<StableExportAgentKnowledgeBaseTool>"
    }
  ],
  "agentAPITools": [],
  "agentFlowTools": [],
  "agentPathTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "agentID": "<string>",
      "description": "<string>",
      "variableOrder": [
        "<string>"
      ],
      "messages": null
    }
  ],
  "agentFunctionTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "functionID": "<string>",
      "description": "<string>",
      "inputVariables": {},
      "captureResponse": {},
      "toolSound": null,
      "agentID": "<string>",
      "messages": null,
      "asyncExecution": false,
      "captureInputVariables": {}
    }
  ],
  "agentIntegrationTools": [],
  "agentFlowToolVariables": [],
  "agentPathToolVariables": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "kind": "<AgentToolVariableKind>",
      "entityID": "<string>",
      "variableID": "<string>",
      "description": "<string>",
      "agentPathToolID": "<string>"
    }
  ],
  "agentMcpIntegrationTools": [],
  "events": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "name": "<string>",
      "flowID": null,
      "goesTo": null,
      "isSystem": true,
      "requestName": "<string>",
      "description": "<string>"
    }
  ],
  "entities": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "color": "<string>",
      "isArray": true,
      "classifier": "<string>",
      "description": "<string>"
    }
  ],
  "entityVariants": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "value": "<string>",
      "language": "<Language>",
      "synonyms": [
        "<string>"
      ],
      "entityID": "<string>"
    }
  ],
  "folders": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "scope": "<FolderScope>",
      "parentID": "<string>"
    }
  ],
  "apiTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "url": "<ExportTextString>",
      "body": "<StableExportAPIToolBody>",
      "image": "<string>",
      "headers": [
        "<StableExportAPIToolKeyValue>"
      ],
      "httpMethod": "<APIToolHTTPMethodType>",
      "description": "<string>",
      "queryParameters": [
        "<StableExportAPIToolKeyValue>"
      ],
      "settings": "<APIToolSettings>"
    }
  ],
  "apiToolInputVariables": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "apiToolID": "<string>",
      "description": "<string>"
    }
  ],
  "simulations": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "settings": "<SimulationSettings>",
      "turnOrder": [
        "<string>"
      ]
    }
  ],
  "simulationTurns": [
    "<UserSimulationTurn>"
  ],
  "simulationTurnTests": [
    "<ToolSimulationTurnTest>"
  ],
  "variables": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "color": "<string>",
      "isArray": true,
      "isSystem": true,
      "datatype": "<VariableDatatype>",
      "description": "<string>",
      "defaultValue": "<string>",
      "resetAfter": "never"
    }
  ],
  "workflows": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "status": "<WorkflowStatus>",
      "name": "<string>",
      "isStart": true,
      "diagramID": "<string>",
      "assigneeID": 0,
      "description": "<string>"
    }
  ],
  "attachments": [
    "<StableExportCardAttachment>"
  ],
  "cardButtons": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "label": "<ExportTextString>",
      "cardID": "<string>"
    }
  ],
  "integrationTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "toolName": "<IntegrationToolName>",
      "description": "<string>",
      "toolProvider": "<IntegrationToolProvider>"
    }
  ],
  "mcpIntegrationTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "description": "<string>",
      "mcpServerToolID": "<string>"
    }
  ],
  "mcpServers": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "image": null,
      "description": null,
      "specification": "2025-03-26",
      "url": null,
      "headers": null,
      "authType": "custom",
      "oauthMetadata": null
    }
  ],
  "mcpServerTools": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "folderID": "<string>",
      "createdByID": 0,
      "toolName": "<string>",
      "description": "<string>",
      "inputSchema": "<JsonSchema>",
      "mcpServerID": "<string>"
    }
  ],
  "personas": [
    {
      "id": "<string>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "updatedByID": 0,
      "assistantID": "<string>",
      "environmentID": "<string>",
      "name": "<string>",
      "items": [
        "<PersonaItem>"
      ]
    }
  ],
  "kbDocumentVersions": [
    {
      "id": "<string>",
      "documentID": "<string>",
      "versionID": "<string>",
      "folderID": "<string>"
    }
  ],
  "kbSettings": {
    "id": "<string>",
    "versionID": "<string>",
    "summarization": "<KnowledgeBaseSummarization>",
    "chunkStrategy": "<KnowledgeBaseChunkStrategy>",
    "search": "<KnowledgeBaseSearch>",
    "embeddingModel": "<KnowledgeBaseEmbeddingModel>"
  },
  "kbDocumentMetadataM2M": [
    {
      "id": "<string>",
      "metadataFieldID": "<string>",
      "documentID": "<string>",
      "versionID": "<string>"
    }
  ],
  "messages": [
    {
      "id": "<string>",
      "variants": [
        "<StableMessageVariant>"
      ],
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "createdByID": 0,
      "updatedByID": 0
    }
  ],
  "prompts": [
    {
      "id": "<string>",
      "name": "<string>",
      "system": "<VariableReferenceString>",
      "settings": "<PromptSettings>",
      "createdAt": "2026-09-10T00:00:00.000Z",
      "updatedAt": "2026-09-10T00:00:00.000Z",
      "createdByID": 0,
      "updatedByID": 0
    }
  ]
}
```

### Request examples

#### cURL

```bash
curl --request GET \
  --url 'https://realtime-api.voiceflow.com/v2/stable/environment/<environmentAlias>/export?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v2/stable/environment/<environmentAlias>/export?projectID=<projectID>', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.get(
    'https://realtime-api.voiceflow.com/v2/stable/environment/<environmentAlias>/export?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment export --environment-alias <environmentAlias> --project-id <projectID>
```


## Search project text

Finds a word, phrase, ID or regular expression across the text of the whole environment and returns where each match is. Results are paged with limit and offset: pass the previous response's nextOffset as offset to get the next page.

### Endpoint

```http
POST /v1/stable/environment/{environmentAlias}/search
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to search (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEnvironmentSearchTextRequest"
      }
    }
  }
}
```

### Responses

#### 200

Returns one page of matches with the resource, field and line of each, the total match count, a count per resource type, whether more pages exist, and the kinds of text that are never searched.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentSearchTextReadResponse"
}
```

Example:

```json
{
  "hits": [
    {
      "resourceType": "agent",
      "resourceID": "<string>",
      "resourceName": "<string>",
      "ownerID": "<string>",
      "blockID": "<string>",
      "stepID": "<string>",
      "stepKind": "<string>",
      "field": "<string>",
      "line": 0,
      "count": 0,
      "snippet": "<string>",
      "usedBy": [
        "<StableSearchTextHolder>"
      ]
    }
  ],
  "totalMatches": 0,
  "byResourceType": {},
  "hasMore": true,
  "nextOffset": 0,
  "incomplete": true,
  "notSearched": [
    "<string>"
  ]
}
```

### Request examples

#### cURL

```bash
curl --request POST \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/search?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pattern": "<string>",
  "regex": true,
  "ignoreCase": true,
  "wholeWord": true,
  "resourceTypes": [
    "agent"
  ],
  "limit": 0,
  "offset": 0
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/search?projectID=<projectID>', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "pattern": "<string>",
    "regex": true,
    "ignoreCase": true,
    "wholeWord": true,
    "resourceTypes": [
      "agent"
    ],
    "limit": 0,
    "offset": 0
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.post(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/search?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "pattern": "<string>",
      "regex": True,
      "ignoreCase": True,
      "wholeWord": True,
      "resourceTypes": [
        "agent"
      ],
      "limit": 0,
      "offset": 0
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment search-text --environment-alias <environmentAlias> --project-id <projectID> <<'JSON'
{
  "pattern": "<string>",
  "regex": true,
  "ignoreCase": true,
  "wholeWord": true,
  "resourceTypes": [
    "agent"
  ],
  "limit": 0,
  "offset": 0
}
JSON
```


## Compile environment

Rebuilds the environment’s runtime form from its current definition, which is what a conversation actually executes against.

### Endpoint

```http
PUT /v1/stable/environment/{environmentAlias}/compile
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Responses

#### 200

Returns a confirmation message and durationMs, how long the compilation took in milliseconds. The environment itself is not part of the response.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentCompileResponse"
}
```

Example:

```json
{
  "message": "<string>",
  "durationMs": 0
}
```

### Request examples

#### cURL

```bash
curl --request PUT \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/compile?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/compile?projectID=<projectID>', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer <token>',
  },
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.put(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/compile?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment compile --environment-alias <environmentAlias> --project-id <projectID>
```


## Clone environment

Copies an environment into a new one under an alias you choose, giving somewhere to change the agent without touching the environment being cloned.

### Endpoint

```http
POST /v1/stable/environment/{environmentAlias}/clone
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEnvironmentCloneRequest"
      }
    }
  }
}
```

### Responses

#### 201

Returns the new environment, including the alias that subsequent calls pass as environmentAlias to target it.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentResponse"
}
```

Example:

```json
{
  "environment": {
    "name": "<string>",
    "alias": "<string>",
    "isMain": true,
    "releases": [
      {
        "name": "<string>",
        "backupID": 0,
        "createdAt": "2026-09-10T00:00:00.000Z",
        "description": "<string>",
        "autogenerated": true
      }
    ],
    "createdAt": "2026-09-10T00:00:00.000Z",
    "trafficPercentage": 0
  }
}
```

### Request examples

#### cURL

```bash
curl --request POST \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/clone?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "alias": "<string>"
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/clone?projectID=<projectID>', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "<string>",
    "alias": "<string>"
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.post(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/clone?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "name": "<string>",
      "alias": "<string>"
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment clone --environment-alias <environmentAlias> --project-id <projectID> <<'JSON'
{
  "name": "<string>",
  "alias": "<string>"
}
JSON
```


## Publish environment

Promotes the environment’s draft to its published version, which is the copy real traffic reaches. The request names the release so it can be told apart in the history.

### Endpoint

```http
POST /v1/stable/environment/{environmentAlias}/publish
```

Server: https://realtime-api.voiceflow.com

### Authentication

```json
[
  {
    "token": []
  }
]
```

`token`:

```json
{
  "scheme": "bearer",
  "bearerFormat": "JWT",
  "type": "http",
  "description": "Voiceflow bearer token"
}
```

### Path parameters

#### `environmentAlias`

Required · string

The alias of the environment to operate on (e.g. `main`).

```json
{
  "type": "string"
}
```

### Query parameters

#### `projectID`

Required · string

The ID of the project to operate on.

```json
{
  "type": "string",
  "description": "The ID of the project to operate on."
}
```

### Request body

Required

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StableEnvironmentPublishRequest"
      }
    }
  }
}
```

### Responses

#### 201

Returns the environment together with the release the publish produced, giving the release name, its description, when it was created, and the ID of the backup that snapshots the environment at that release.

Schema:

```json
{
  "$ref": "#/components/schemas/StableEnvironmentPublishResponse"
}
```

Example:

```json
{
  "environment": {
    "name": "<string>",
    "alias": "<string>",
    "isMain": true,
    "releases": [
      {
        "name": "<string>",
        "backupID": 0,
        "createdAt": "2026-09-10T00:00:00.000Z",
        "description": "<string>",
        "autogenerated": true
      }
    ],
    "createdAt": "2026-09-10T00:00:00.000Z",
    "trafficPercentage": 0
  },
  "release": {
    "name": "<string>",
    "backupID": 0,
    "createdAt": "2026-09-10T00:00:00.000Z",
    "description": "<string>",
    "autogenerated": true
  }
}
```

### Request examples

#### cURL

```bash
curl --request POST \
  --url 'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/publish?projectID=<projectID>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": null
}'
```

#### JavaScript

```javascript
const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/publish?projectID=<projectID>', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "<string>",
    "description": null
  }),
});
const data = await response.json();
```

#### Python

```python
import requests

response = requests.post(
    'https://realtime-api.voiceflow.com/v1/stable/environment/<environmentAlias>/publish?projectID=<projectID>',
    headers={'Authorization': 'Bearer <token>'},
    json={
      "name": "<string>",
      "description": None
    },
)
data = response.json()
```

#### Voiceflow CLI

```bash
vf environment publish --environment-alias <environmentAlias> --project-id <projectID> <<'JSON'
{
  "name": "<string>",
  "description": null
}
JSON
```


## Schema definitions

### AIMessageSimple

```json
{
  "type": "object",
  "properties": {
    "cachePoint": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "default"
          ],
          "x-enumNames": [
            "DEFAULT"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "role": {
      "$ref": "#/components/schemas/AIMessageSimpleRole"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ContentPart"
          }
        }
      ]
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FileAttachmentMetadata"
      }
    }
  },
  "required": [
    "role",
    "content"
  ]
}
```

### AIMessageSimpleRole

```json
{
  "type": "string",
  "enum": [
    "user",
    "assistant",
    "system"
  ],
  "x-enumNames": [
    "USER",
    "ASSISTANT",
    "SYSTEM"
  ]
}
```

### AIModel

```json
{
  "type": "string",
  "enum": [
    "gpt-3.5-turbo-1106",
    "gpt-3.5-turbo",
    "gpt-4",
    "gpt-4o",
    "gpt-4o-mini",
    "gpt-4.1-2025-04-14",
    "gpt-4.1-mini-2025-04-14",
    "gpt-4.1-nano-2025-04-14",
    "gpt-o3-mini",
    "o3-2025-04-16",
    "o4-mini-2025-04-16",
    "gpt-5",
    "gpt-5-mini",
    "gpt-5-nano",
    "gpt-5.2",
    "gpt-5.4",
    "gpt-5.4-mini",
    "gpt-5.5",
    "gpt-5.6-sol",
    "gpt-5.6-terra",
    "gpt-5.6-luna",
    "gpt-6-sol",
    "gpt-6-luna",
    "gpt-6.1-sol",
    "gpt-realtime",
    "gpt-live-1",
    "claude-4-opus",
    "claude-4-sonnet",
    "claude-4.5-sonnet",
    "claude-4.6-sonnet",
    "claude-4.5-haiku",
    "claude-4.5-opus",
    "claude-4.7-opus",
    "bedrock-claude-4-sonnet",
    "bedrock-claude-4.5-sonnet",
    "bedrock-claude-4.6-sonnet",
    "bedrock-claude-5-sonnet",
    "bedrock-claude-5.5-sonnet",
    "bedrock-claude-4.5-haiku",
    "bedrock-claude-5.5-haiku",
    "bedrock-claude-4.5-opus",
    "bedrock-claude-4.7-opus",
    "bedrock-claude-4.8-opus",
    "voiceflow-core-4.0",
    "voiceflow-core-4.1",
    "voiceflow-core-4.2",
    "voiceflow-flash-4.2",
    "gemini-2.5-pro",
    "gemini-2.5-flash",
    "gemini-live-2.5-flash",
    "gemini-3-flash",
    "gemini-3.5-flash",
    "gemini-3.1-pro",
    "gpt-oss-20b",
    "gpt-oss-120b",
    "llama-guard-4",
    "llama-3.1-instant",
    "llama-3.3-versatile",
    "qwen3.6-27b",
    "grok-4.6",
    "voiceflow-flash-4.1",
    "kimi-k3",
    "gemini-flash-2",
    "gpt-4-turbo",
    "claude-3.5-haiku",
    "claude-3-opus",
    "claude-3.7-sonnet",
    "claude-v2",
    "llama-3.2-1b-preview",
    "gemini-pro-1.5",
    "claude-3-haiku",
    "claude-3-sonnet",
    "text-davinci-003",
    "claude-v1",
    "claude-instant-v1",
    "deep-seek-r1-distill-llama-70B",
    "claude-3.5-sonnet"
  ],
  "x-enumNames": [
    "GPT_3_5_TURBO_1106",
    "GPT_3_5_TURBO",
    "GPT_4",
    "GPT_4_O",
    "GPT_4_O_MINI",
    "GPT_4_1",
    "GPT_4_1_MINI",
    "GPT_4_1_NANO",
    "GPT_O_3_MINI",
    "GPT_O_3",
    "GPT_O_4_MINI",
    "GPT_5",
    "GPT_5_MINI",
    "GPT_5_NANO",
    "GPT_5_2",
    "GPT_5_4",
    "GPT_5_4_MINI",
    "GPT_5_5",
    "GPT_5_6_SOL",
    "GPT_5_6_TERRA",
    "GPT_5_6_LUNA",
    "GPT_6_SOL",
    "GPT_6_LUNA",
    "GPT_6_1_SOL",
    "GPT_REALTIME",
    "GPT_LIVE_1",
    "CLAUDE_4_OPUS",
    "CLAUDE_4_SONNET",
    "CLAUDE_4_5_SONNET",
    "CLAUDE_4_6_SONNET",
    "CLAUDE_4_5_HAIKU",
    "CLAUDE_4_5_OPUS",
    "CLAUDE_4_7_OPUS",
    "BEDROCK_CLAUDE_4_SONNET",
    "BEDROCK_CLAUDE_4_5_SONNET",
    "BEDROCK_CLAUDE_4_6_SONNET",
    "BEDROCK_CLAUDE_5_SONNET",
    "BEDROCK_CLAUDE_5_5_SONNET",
    "BEDROCK_CLAUDE_4_5_HAIKU",
    "BEDROCK_CLAUDE_5_5_HAIKU",
    "BEDROCK_CLAUDE_4_5_OPUS",
    "BEDROCK_CLAUDE_4_7_OPUS",
    "BEDROCK_CLAUDE_4_8_OPUS",
    "VOICEFLOW_CORE_4_0",
    "VOICEFLOW_CORE_4_1",
    "VOICEFLOW_CORE_4_2",
    "VOICEFLOW_FLASH_4_2",
    "GEMINI_2_5_PRO",
    "GEMINI_2_5_FLASH",
    "GEMINI_LIVE_2_5_FLASH",
    "GEMINI_3_FLASH",
    "GEMINI_3_5_FLASH",
    "GEMINI_3_1_PRO",
    "GPT_OSS_20_B",
    "GPT_OSS_120_B",
    "LLAMA_GUARD_4",
    "LLAMA_3_1_INSTANT",
    "LLAMA_3_3_VERSATILE",
    "QWEN_3_6_27_B",
    "GROK_4_6",
    "VOICEFLOW_FLASH_4_1",
    "KIMI_K_3",
    "GEMINI_FLASH_2",
    "GPT_4_TURBO",
    "CLAUDE_3_5_HAIKU",
    "CLAUDE_3_OPUS",
    "CLAUDE_3_7_SONNET",
    "CLAUDE_V_2",
    "LLAMA_3_2_1_B_PREVIEW",
    "GEMINI_PRO_1_5",
    "CLAUDE_3_HAIKU",
    "CLAUDE_3_SONNET",
    "DA_VINCI_003",
    "CLAUDE_V_1",
    "CLAUDE_INSTANT_V_1",
    "DEEP_SEEK_R_1_DISTILL_LLAMA_70_B",
    "CLAUDE_3_5_SONNET"
  ]
}
```

### AIParams

```json
{
  "type": "object",
  "properties": {
    "stop": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "system": {
      "type": "string"
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "responseFormat": {
      "type": "string"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    },
    "serviceTier": {
      "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIParamsServiceTier"
        }
      ]
    },
    "realtime": {
      "type": "object",
      "properties": {
        "voice": {
          "type": "string"
        },
        "eagerness": {
          "type": "string"
        }
      }
    },
    "webSearch": {
      "type": "object",
      "properties": {
        "allowedDomains": {
          "nullable": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

### AIParamsServiceTier

```json
{
  "type": "string",
  "enum": [
    "default",
    "flex",
    "priority"
  ],
  "x-enumNames": [
    "DEFAULT",
    "FLEX",
    "PRIORITY"
  ]
}
```

### AIPromptWrapper

```json
{
  "type": "object",
  "properties": {
    "content": {
      "type": "string"
    }
  },
  "required": [
    "content"
  ]
}
```

### AIProvider

```json
{
  "type": "string",
  "enum": [
    "groq",
    "azure",
    "google",
    "open-ai",
    "anthropic",
    "bedrock",
    "voiceflow",
    "xai",
    "openrouter"
  ],
  "x-enumNames": [
    "GROQ",
    "AZURE",
    "GOOGLE",
    "OPEN_AI",
    "ANTHROPIC",
    "BEDROCK",
    "VOICEFLOW",
    "XAI",
    "OPENROUTER"
  ]
}
```

### AIReasoningEffort

```json
{
  "type": "string",
  "enum": [
    "off",
    "adaptive",
    "minimal",
    "low",
    "medium",
    "high"
  ],
  "x-enumNames": [
    "OFF",
    "ADAPTIVE",
    "MINIMAL",
    "LOW",
    "MEDIUM",
    "HIGH"
  ]
}
```

### APINodeActionType

```json
{
  "type": "string",
  "enum": [
    "Make a GET Request",
    "Make a PUT Request",
    "Make a POST Request",
    "Make a PATCH Request",
    "Make a DELETE Request"
  ],
  "x-enumNames": [
    "GET",
    "PUT",
    "POST",
    "PATCH",
    "DELETE"
  ]
}
```

### APINodeBodyType

```json
{
  "type": "string",
  "enum": [
    "formData",
    "rawInput",
    "urlEncoded"
  ],
  "x-enumNames": [
    "FORM_DATA",
    "RAW_INPUT",
    "URL_ENCODED"
  ]
}
```

### APINodeMethodType

```json
{
  "type": "string",
  "enum": [
    "GET",
    "PUT",
    "POST",
    "PATCH",
    "DELETE"
  ],
  "x-enumNames": [
    "GET",
    "PUT",
    "POST",
    "PATCH",
    "DELETE"
  ]
}
```

### APIToolContentType

```json
{
  "type": "string",
  "enum": [
    "text",
    "json",
    "xml"
  ],
  "x-enumNames": [
    "TEXT",
    "JSON",
    "XML"
  ]
}
```

### APIToolHTTPMethodType

```json
{
  "type": "string",
  "enum": [
    "get",
    "put",
    "post",
    "patch",
    "delete"
  ],
  "x-enumNames": [
    "GET",
    "PUT",
    "POST",
    "PATCH",
    "DELETE"
  ]
}
```

### APIToolInputVariable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "apiToolID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "name",
    "apiToolID",
    "description"
  ]
}
```

### APIToolSettings

```json
{
  "type": "object",
  "properties": {
    "timeoutMs": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 600000
    }
  }
}
```

### AgentFlowTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "flowID": {
      "type": "string"
    },
    "agentID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "flowID",
    "agentID",
    "description"
  ]
}
```

### AgentFlowToolVariable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "kind": {
      "$ref": "#/components/schemas/AgentToolVariableKind"
    },
    "entityID": {
      "nullable": true,
      "type": "string"
    },
    "variableID": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "agentFlowToolID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "kind",
    "entityID",
    "variableID",
    "description",
    "agentFlowToolID"
  ]
}
```

### AgentKnowledgeBaseToolQueryMode

```json
{
  "type": "string",
  "enum": [
    "custom",
    "rewriting"
  ],
  "x-enumNames": [
    "CUSTOM",
    "REWRITING"
  ]
}
```

### AgentPathToolVariable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "kind": {
      "$ref": "#/components/schemas/AgentToolVariableKind"
    },
    "entityID": {
      "nullable": true,
      "type": "string"
    },
    "variableID": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "agentPathToolID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "kind",
    "entityID",
    "variableID",
    "description",
    "agentPathToolID"
  ]
}
```

### AgentSettings

```json
{
  "type": "object",
  "properties": {
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "realtime": {
      "type": "object",
      "properties": {
        "voice": {
          "type": "string"
        },
        "eagerness": {
          "type": "string"
        }
      }
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    },
    "serviceTier": {
      "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIParamsServiceTier"
        }
      ]
    }
  }
}
```

### AgentSimulationTurn

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "agent"
      ],
      "x-enumNames": [
        "AGENT"
      ]
    },
    "payload": {
      "$ref": "#/components/schemas/AgentSimulationTurnPayload"
    },
    "testOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "simulationID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "payload",
    "testOrder",
    "simulationID"
  ]
}
```

### AgentSimulationTurnPayload

```json
{
  "type": "object",
  "properties": {
    "testOrderMatters": {
      "type": "boolean"
    }
  },
  "required": [
    "testOrderMatters"
  ]
}
```

### AgentSkipTurnTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### AgentToolCaptureInputVariable

```json
{
  "type": "object",
  "properties": {
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "variableOrEntityID"
  ]
}
```

### AgentToolVariableKind

```json
{
  "type": "string",
  "enum": [
    "entity",
    "variable"
  ],
  "x-enumNames": [
    "ENTITY",
    "VARIABLE"
  ]
}
```

### AmazonVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "amazon"
      ],
      "x-enumNames": [
        "AMAZON"
      ]
    },
    "voice": {
      "type": "string"
    }
  },
  "required": [
    "provider",
    "voice"
  ]
}
```

### AnyCompiledCondition

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/CompiledScriptCondition"
    },
    {
      "$ref": "#/components/schemas/CompiledPromptCondition"
    },
    {
      "$ref": "#/components/schemas/CompiledValueVariableCondition"
    }
  ]
}
```

### AnyJumpProgramCommand

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/EventJumpProgramCommand"
    },
    {
      "$ref": "#/components/schemas/OnJumpProgramCommand"
    }
  ]
}
```

### AnyProgramCommand

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/AnyJumpProgramCommand"
    },
    {
      "$ref": "#/components/schemas/AnyPushProgramCommand"
    }
  ]
}
```

### AnyProgramEvent

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/IntentProgramEvent"
    },
    {
      "$ref": "#/components/schemas/EventProgramEvent"
    },
    {
      "$ref": "#/components/schemas/GeneralProgramEvent"
    }
  ]
}
```

### AnyPushProgramCommand

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/EventPushProgramCommand"
    },
    {
      "$ref": "#/components/schemas/OnPushProgramCommand"
    }
  ]
}
```

### ApiCallToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "api-call"
      ],
      "x-enumNames": [
        "API_CALL"
      ]
    },
    "toolID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "toolID"
  ]
}
```

### ApiNodeDataKeyValue

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "val": {
      "type": "string"
    }
  },
  "required": [
    "key",
    "val"
  ]
}
```

### AssemblyAISTTLanguage

```json
{
  "type": "string",
  "enum": [
    "multi",
    "en",
    "ar",
    "da",
    "nl",
    "fi",
    "fr",
    "de",
    "he",
    "hi",
    "it",
    "ja",
    "zh",
    "no",
    "pt",
    "es",
    "sv",
    "tr",
    "vi"
  ],
  "x-enumNames": [
    "MULTI",
    "ENGLISH",
    "ARABIC",
    "DANISH",
    "DUTCH",
    "FINNISH",
    "FRENCH",
    "GERMAN",
    "HEBREW",
    "HINDI",
    "ITALIAN",
    "JAPANESE",
    "MANDARIN",
    "NORWEGIAN",
    "PORTUGUESE",
    "SPANISH",
    "SWEDISH",
    "TURKISH",
    "VIETNAMESE"
  ]
}
```

### AssemblyAISTTMode

```json
{
  "type": "string",
  "enum": [
    "min_latency",
    "balanced",
    "max_accuracy"
  ],
  "x-enumNames": [
    "MIN_LATENCY",
    "BALANCED",
    "MAX_ACCURACY"
  ]
}
```

### AssemblyAISTTModel

```json
{
  "type": "string",
  "enum": [
    "universal-streaming-english",
    "universal-3-5-pro"
  ],
  "x-enumNames": [
    "UNIVERSAL_STREAMING_ENGLISH",
    "UNIVERSAL_3_5_PRO"
  ]
}
```

### AssemblyAISTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "assemblyai"
      ],
      "x-enumNames": [
        "ASSEMBLYAI"
      ]
    },
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AssemblyAISTTModel"
        }
      ]
    },
    "mode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AssemblyAISTTMode"
        }
      ]
    },
    "language": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AssemblyAISTTLanguage"
        }
      ]
    },
    "keyterms": {
      "type": "string"
    },
    "confidenceThreshold": {
      "default": 0.7,
      "type": "number"
    },
    "maxTurnSilence": {
      "default": 2400,
      "type": "number"
    },
    "minTurnSilence": {
      "default": 160,
      "type": "number"
    }
  },
  "required": [
    "provider"
  ]
}
```

### Assistant

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "version": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 9007199254740991
    },
    "folderID": {
      "default": null,
      "nullable": true,
      "type": "number"
    },
    "isDeleted": {
      "nullable": true,
      "type": "boolean"
    },
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "workspaceID": {
      "type": "string"
    },
    "activeEnvironmentID": {
      "type": "string",
      "description": "@deprecated use project.environments instead with environments projects"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "version",
    "workspaceID",
    "activeEnvironmentID"
  ]
}
```

### AutomaticReprompt

```json
{
  "type": "object",
  "properties": {
    "params": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AutomaticRepromptParams"
        }
      ]
    }
  },
  "required": [
    "params"
  ]
}
```

### AutomaticRepromptParams

```json
{
  "type": "object",
  "properties": {
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "system": {
      "type": "string"
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    }
  }
}
```

### BackgroundAudioSettings

```json
{
  "type": "object",
  "properties": {
    "volume": {
      "default": 0.75,
      "type": "number",
      "minimum": 0,
      "maximum": 1
    }
  }
}
```

### CallForwardAddressType

```json
{
  "type": "string",
  "enum": [
    "phone",
    "sip"
  ],
  "x-enumNames": [
    "PHONE",
    "SIP"
  ]
}
```

### CartesiaSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "en",
    "af",
    "ar",
    "hy",
    "az",
    "be",
    "bs",
    "bg",
    "ca",
    "zh",
    "hr",
    "cs",
    "da",
    "nl",
    "et",
    "fi",
    "fr",
    "gl",
    "de",
    "el",
    "he",
    "hi",
    "hu",
    "is",
    "id",
    "it",
    "ja",
    "kn",
    "kk",
    "ko",
    "lv",
    "lt",
    "mk",
    "ms",
    "mr",
    "mi",
    "ne",
    "no",
    "fa",
    "pl",
    "pt",
    "ro",
    "ru",
    "sr",
    "sk",
    "sl",
    "es",
    "sw",
    "sv",
    "tl",
    "ta",
    "th",
    "tr",
    "uk",
    "ur",
    "vi",
    "cy"
  ],
  "x-enumNames": [
    "ENGLISH",
    "AFRIKAANS",
    "ARABIC",
    "ARMENIAN",
    "AZERBAIJANI",
    "BELARUSIAN",
    "BOSNIAN",
    "BULGARIAN",
    "CATALAN",
    "CHINESE",
    "CROATIAN",
    "CZECH",
    "DANISH",
    "DUTCH",
    "ESTONIAN",
    "FINNISH",
    "FRENCH",
    "GALICIAN",
    "GERMAN",
    "GREEK",
    "HEBREW",
    "HINDI",
    "HUNGARIAN",
    "ICELANDIC",
    "INDONESIAN",
    "ITALIAN",
    "JAPANESE",
    "KANNADA",
    "KAZAKH",
    "KOREAN",
    "LATVIAN",
    "LITHUANIAN",
    "MACEDONIAN",
    "MALAY",
    "MARATHI",
    "MAORI",
    "NEPALI",
    "NORWEGIAN",
    "PERSIAN",
    "POLISH",
    "PORTUGUESE",
    "ROMANIAN",
    "RUSSIAN",
    "SERBIAN",
    "SLOVAK",
    "SLOVENIAN",
    "SPANISH",
    "SWAHILI",
    "SWEDISH",
    "TAGALOG",
    "TAMIL",
    "THAI",
    "TURKISH",
    "UKRAINIAN",
    "URDU",
    "VIETNAMESE",
    "WELSH"
  ]
}
```

### CartesiaSTTModel

```json
{
  "type": "string",
  "enum": [
    "ink-whisper",
    "ink-2"
  ],
  "x-enumNames": [
    "INK_WHISPER",
    "INK_2"
  ]
}
```

### CartesiaSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "cartesia"
      ],
      "x-enumNames": [
        "CARTESIA"
      ]
    },
    "model": {
      "$ref": "#/components/schemas/CartesiaSTTModel"
    },
    "language": {
      "$ref": "#/components/schemas/CartesiaSTTLanguage"
    }
  },
  "required": [
    "provider",
    "model",
    "language"
  ]
}
```

### CartesiaVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "cartesia"
      ],
      "x-enumNames": [
        "CARTESIA"
      ]
    },
    "model": {
      "type": "string"
    },
    "voice": {
      "type": "string"
    },
    "settings": {
      "type": "object",
      "properties": {
        "speed": {
          "type": "number",
          "minimum": 0.6,
          "maximum": 1.5
        }
      }
    }
  },
  "required": [
    "provider",
    "model",
    "voice"
  ]
}
```

### CompiledAPITool

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "apiCall": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "body": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ApiNodeDataKeyValue"
          }
        },
        "method": {
          "$ref": "#/components/schemas/APINodeMethodType"
        },
        "params": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ApiNodeDataKeyValue"
          }
        },
        "headers": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ApiNodeDataKeyValue"
          }
        },
        "content": {
          "type": "string"
        },
        "bodyInputType": {
          "$ref": "#/components/schemas/APINodeBodyType"
        },
        "selected_action": {
          "$ref": "#/components/schemas/APINodeActionType"
        }
      },
      "required": [
        "url",
        "body",
        "method",
        "params",
        "headers",
        "content",
        "bodyInputType",
        "selected_action"
      ]
    },
    "toolName": {
      "type": "string"
    },
    "timeoutMs": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 9007199254740991
    },
    "inputVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledAPIToolInputVariable"
      }
    },
    "hasToolNameWarning": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "description",
    "apiCall",
    "inputVariables"
  ]
}
```

### CompiledAPIToolInputVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "description"
  ]
}
```

### CompiledAgentFlowTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "flowID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "variables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledAgentFlowToolVariable"
      }
    }
  },
  "required": [
    "id",
    "flowID",
    "description",
    "variables"
  ]
}
```

### CompiledAgentFlowToolVariable

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "required": {
      "type": "boolean"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "name",
    "required",
    "description"
  ]
}
```

### CompiledAgentKnowledgeBaseMetadataKeyFilter

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "nullable": true,
      "type": "string"
    },
    "key": {
      "type": "string"
    }
  },
  "required": [
    "defaultValue",
    "key"
  ]
}
```

### CompiledAgentPathToolVariable

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "required": {
      "type": "boolean"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "name",
    "required",
    "description"
  ]
}
```

### CompiledAgentSkipTurnTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### CompiledConditionAssertion

```json
{
  "type": "object",
  "properties": {
    "lhs": {
      "type": "string"
    },
    "rhs": {
      "type": "string"
    },
    "operation": {
      "$ref": "#/components/schemas/ConditionOperation"
    }
  },
  "required": [
    "lhs",
    "rhs",
    "operation"
  ]
}
```

### CompiledCrewNodeDataAgent

```json
{
  "type": "object",
  "properties": {
    "agentID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "requiredVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledCrewNodeDataRequiredVariable"
      }
    },
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/CompiledValueVariableCondition"
        }
      ]
    }
  },
  "required": [
    "agentID",
    "description"
  ]
}
```

### CompiledCrewNodeDataFlow

```json
{
  "type": "object",
  "properties": {
    "flowID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "requiredVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledCrewNodeDataRequiredVariable"
      }
    },
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/CompiledValueVariableCondition"
        }
      ]
    }
  },
  "required": [
    "flowID",
    "description"
  ]
}
```

### CompiledCrewNodeDataRequiredVariable

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "name",
    "description"
  ]
}
```

### CompiledEntity

```json
{
  "type": "object",
  "properties": {
    "variants": {
      "nullable": true,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledEntityVariant"
      }
    },
    "classifier": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "variants",
    "classifier",
    "description"
  ]
}
```

### CompiledEntityVariant

```json
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    },
    "synonyms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "value",
    "synonyms"
  ]
}
```

### CompiledFlow

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "diagramID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "toolName": {
      "type": "string"
    },
    "hasToolNameWarning": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "diagramID",
    "description"
  ]
}
```

### CompiledFunctionDefinition

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "toolName": {
      "type": "string"
    },
    "hasToolNameWarning": {
      "type": "boolean"
    },
    "codeId": {
      "type": "string",
      "description": "Amazon S3 bucket key of the .js file containing this Function's code"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputVars": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledFunctionVariableDeclaration"
      },
      "description": "Mapping of input variable name to its variable declaration."
    },
    "outputVars": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledFunctionVariableDeclaration"
      },
      "description": "Mapping of output variable name to its variable declaration."
    },
    "pathCodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of valid return codes for a function"
    },
    "timeoutMs": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "codeId",
    "inputVars",
    "outputVars",
    "pathCodes"
  ]
}
```

### CompiledFunctionVariableDeclaration

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "any",
        "text",
        "date",
        "image",
        "number",
        "boolean",
        "string"
      ],
      "description": "The type of the Function variable. Used to render suitable UI and perform data validation.",
      "x-enumNames": [
        "ANY",
        "TEXT",
        "DATE",
        "IMAGE",
        "NUMBER",
        "BOOLEAN",
        "STRING"
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type"
  ]
}
```

### CompiledIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "toolName": {
      "$ref": "#/components/schemas/IntegrationToolName"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "toolProvider": {
      "$ref": "#/components/schemas/IntegrationToolProvider"
    }
  },
  "required": [
    "name",
    "toolName",
    "description",
    "toolProvider"
  ]
}
```

### CompiledMcpIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "type": "string"
    },
    "toolName": {
      "type": "string"
    },
    "inputSchema": {
      "$ref": "#/components/schemas/JsonSchema"
    },
    "mcpServerID": {
      "type": "string"
    }
  },
  "required": [
    "description",
    "toolName",
    "inputSchema",
    "mcpServerID"
  ]
}
```

### CompiledMcpServer

```json
{
  "type": "object",
  "properties": {
    "specification": {
      "default": "2025-03-26",
      "allOf": [
        {
          "$ref": "#/components/schemas/McpServerSpecification"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "authType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/McpServerAuthType"
        }
      ]
    }
  }
}
```

### CompiledMcpServerTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "toolName": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputSchema": {
      "$ref": "#/components/schemas/JsonSchema"
    },
    "mcpServerID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "folderID",
    "createdByID",
    "toolName",
    "inputSchema",
    "mcpServerID"
  ]
}
```

### CompiledMessage

```json
{
  "type": "object",
  "properties": {
    "variants": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CompiledResponseMessage"
        }
      }
    }
  },
  "required": [
    "variants"
  ]
}
```

### CompiledPrompt

```json
{
  "type": "object",
  "properties": {
    "settings": {
      "$ref": "#/components/schemas/PromptSettings"
    },
    "system": {
      "type": "string"
    },
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AIMessageSimple"
      }
    }
  },
  "required": [
    "settings",
    "system",
    "messages"
  ]
}
```

### CompiledPromptCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "prompt"
      ],
      "x-enumNames": [
        "PROMPT"
      ]
    },
    "data": {
      "$ref": "#/components/schemas/CompiledPromptConditionData"
    }
  },
  "required": [
    "type",
    "data"
  ]
}
```

### CompiledPromptConditionData

```json
{
  "type": "object",
  "properties": {
    "matchAll": {
      "type": "boolean"
    },
    "assertions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledConditionAssertion"
      }
    }
  },
  "required": [
    "matchAll",
    "assertions"
  ]
}
```

### CompiledResponseMessage

```json
{
  "type": "object",
  "properties": {
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AnyCompiledCondition"
        }
      ]
    },
    "data": {
      "$ref": "#/components/schemas/CompiledResponseMessageData"
    }
  },
  "required": [
    "condition",
    "data"
  ]
}
```

### CompiledResponseMessageData

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "array",
      "items": {}
    },
    "delay": {
      "nullable": true,
      "type": "number"
    }
  },
  "required": [
    "text",
    "delay"
  ]
}
```

### CompiledScriptCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "script"
      ],
      "x-enumNames": [
        "SCRIPT"
      ]
    },
    "data": {
      "$ref": "#/components/schemas/CompiledScriptConditionData"
    }
  },
  "required": [
    "type",
    "data"
  ]
}
```

### CompiledScriptConditionData

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    }
  },
  "required": [
    "code"
  ]
}
```

### CompiledSystemVariable

```json
{
  "type": "object",
  "properties": {
    "isSystem": {
      "type": "boolean",
      "enum": [
        true
      ],
      "x-enumNames": [
        "TRUE"
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "nullable": true,
      "type": "string"
    },
    "resetAfter": {
      "type": "string",
      "enum": [
        "never",
        "session"
      ],
      "x-enumNames": [
        "NEVER",
        "EACH_SESSION"
      ]
    }
  },
  "required": [
    "isSystem",
    "defaultValue",
    "resetAfter"
  ]
}
```

### CompiledToolNodeDataVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "shouldFulfill": {
      "description": "If true, then LLM will never ask user to fulfill an input variable. If false, then LLM will decide for itself whether user needs to provide a value for the input variable.",
      "type": "boolean"
    },
    "defaultValue": {
      "nullable": true,
      "type": "string"
    },
    "draftDefaultValue": {
      "type": "string"
    }
  },
  "required": [
    "defaultValue"
  ]
}
```

### CompiledUserVariable

```json
{
  "type": "object",
  "properties": {
    "isSystem": {
      "type": "boolean",
      "enum": [
        false
      ],
      "x-enumNames": [
        "FALSE"
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "nullable": true,
      "type": "string"
    },
    "resetAfter": {
      "type": "string",
      "enum": [
        "never",
        "session"
      ],
      "x-enumNames": [
        "NEVER",
        "EACH_SESSION"
      ]
    },
    "datatype": {
      "$ref": "#/components/schemas/VariableDatatype"
    },
    "isArray": {
      "type": "boolean"
    }
  },
  "required": [
    "isSystem",
    "defaultValue",
    "resetAfter",
    "datatype",
    "isArray"
  ]
}
```

### CompiledValueVariableCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "value-variable"
      ],
      "x-enumNames": [
        "VALUE_VARIABLE"
      ]
    },
    "data": {
      "$ref": "#/components/schemas/CompiledValueVariableConditionData"
    }
  },
  "required": [
    "type",
    "data"
  ]
}
```

### CompiledValueVariableConditionData

```json
{
  "type": "object",
  "properties": {
    "matchAll": {
      "type": "boolean"
    },
    "assertions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledConditionAssertion"
      }
    }
  },
  "required": [
    "matchAll",
    "assertions"
  ]
}
```

### CompiledVariable

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/CompiledSystemVariable"
    },
    {
      "$ref": "#/components/schemas/CompiledUserVariable"
    }
  ]
}
```

### ConditionAssertionLhs

```json
{
  "type": "object",
  "properties": {
    "variableID": {
      "nullable": true,
      "type": "string"
    },
    "path": {
      "type": "string"
    }
  },
  "required": [
    "variableID"
  ]
}
```

### ConditionOperation

```json
{
  "type": "string",
  "enum": [
    "is",
    "is_not",
    "greater_than",
    "greater_or_equal",
    "less_than",
    "less_or_equal",
    "contains",
    "not_contains",
    "starts_with",
    "ends_with",
    "is_empty",
    "is_not_empty"
  ],
  "x-enumNames": [
    "IS",
    "IS_NOT",
    "GREATER_THAN",
    "GREATER_OR_EQUAL",
    "LESS_THAN",
    "LESS_OR_EQUAL",
    "CONTAINS",
    "NOT_CONTAINS",
    "STARTS_WITH",
    "ENDS_WITH",
    "IS_EMPTY",
    "IS_NOT_EMPTY"
  ]
}
```

### ContentPart

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/TextContentPart"
    },
    {
      "$ref": "#/components/schemas/ImageContentPart"
    },
    {
      "$ref": "#/components/schemas/DocumentContentPart"
    }
  ]
}
```

### CrewNodeDataRequiredVariable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "description",
    "variableOrEntityID"
  ]
}
```

### DTMFDelimiter

```json
{
  "type": "string",
  "enum": [
    "#",
    "*"
  ],
  "x-enumNames": [
    "#",
    "*"
  ]
}
```

### DeepgramASRSettings

```json
{
  "type": "object",
  "properties": {
    "punctuationWaitMS": {
      "type": "number"
    },
    "partialWaitMS": {
      "type": "number"
    },
    "silenceWaitMS": {
      "type": "number"
    },
    "interruptionWaitWords": {
      "type": "number"
    },
    "audioCue": {
      "nullable": true,
      "type": "number"
    },
    "backgroundAudio": {
      "nullable": true,
      "type": "string"
    },
    "locale": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DeepgramSTTLanguage"
        }
      ]
    },
    "keywords": {
      "type": "string"
    }
  }
}
```

### DeepgramSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "multi",
    "ar",
    "ar-AE",
    "ar-DZ",
    "ar-EG",
    "ar-IQ",
    "ar-IR",
    "ar-JO",
    "ar-KW",
    "ar-LB",
    "ar-MA",
    "ar-PS",
    "ar-QA",
    "ar-SA",
    "ar-SD",
    "ar-SY",
    "ar-TD",
    "ar-TN",
    "be",
    "bg",
    "bn",
    "bs",
    "ca",
    "cs",
    "da",
    "da-DK",
    "de",
    "de-CH",
    "el",
    "en",
    "en-AU",
    "en-GB",
    "en-IN",
    "en-NZ",
    "en-US",
    "es",
    "es-419",
    "et",
    "fa",
    "fi",
    "fr",
    "fr-CA",
    "he",
    "hi",
    "hr",
    "hu",
    "id",
    "it",
    "ja",
    "kn",
    "ko",
    "ko-KR",
    "lt",
    "lv",
    "mk",
    "mr",
    "ms",
    "nl",
    "nl-BE",
    "no",
    "pl",
    "pt",
    "pt-BR",
    "pt-PT",
    "ro",
    "ru",
    "sk",
    "sl",
    "sr",
    "sv",
    "sv-SE",
    "ta",
    "te",
    "th",
    "tl",
    "tr",
    "uk",
    "ur",
    "vi",
    "zh",
    "zh-HK",
    "zh-TW"
  ],
  "x-enumNames": [
    "MULTI",
    "AR",
    "AR_AE",
    "AR_DZ",
    "AR_EG",
    "AR_IQ",
    "AR_IR",
    "AR_JO",
    "AR_KW",
    "AR_LB",
    "AR_MA",
    "AR_PS",
    "AR_QA",
    "AR_SA",
    "AR_SD",
    "AR_SY",
    "AR_TD",
    "AR_TN",
    "BE",
    "BG",
    "BN",
    "BS",
    "CA",
    "CS",
    "DA",
    "DA_DK",
    "DE",
    "DE_CH",
    "EL",
    "EN",
    "EN_AU",
    "EN_GB",
    "EN_IN",
    "EN_NZ",
    "EN_US",
    "ES",
    "ES_419",
    "ET",
    "FA",
    "FI",
    "FR",
    "FR_CA",
    "HE",
    "HI",
    "HR",
    "HU",
    "ID",
    "IT",
    "JA",
    "KN",
    "KO",
    "KO_KR",
    "LT",
    "LV",
    "MK",
    "MR",
    "MS",
    "NL",
    "NL_BE",
    "NO",
    "PL",
    "PT",
    "PT_BR",
    "PT_PT",
    "RO",
    "RU",
    "SK",
    "SL",
    "SR",
    "SV",
    "SV_SE",
    "TA",
    "TE",
    "TH",
    "TL",
    "TR",
    "UK",
    "UR",
    "VI",
    "ZH",
    "ZH_HK",
    "ZH_TW"
  ]
}
```

### DeepgramSTTModel

```json
{
  "type": "string",
  "enum": [
    "nova-2",
    "nova-3",
    "nova-3-medical",
    "flux"
  ],
  "x-enumNames": [
    "NOVA_2",
    "NOVA_3",
    "NOVA_3_MEDICAL",
    "FLUX"
  ]
}
```

### DeepgramSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "deepgram"
      ],
      "x-enumNames": [
        "DEEPGRAM"
      ]
    },
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DeepgramSTTModel"
        }
      ]
    },
    "locale": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DeepgramSTTLanguage"
        }
      ]
    },
    "keywords": {
      "type": "string"
    },
    "partialWaitMS": {
      "type": "number"
    },
    "silenceWaitMS": {
      "type": "number"
    },
    "punctuationWaitMS": {
      "type": "number"
    },
    "interruptionWaitWords": {
      "type": "number"
    },
    "EOTTimeout": {
      "type": "number"
    },
    "EOTThreshold": {
      "type": "number"
    },
    "languageHints": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DeepgramSTTLanguage"
      }
    }
  },
  "required": [
    "provider"
  ]
}
```

### DiagramMenuItem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "sourceID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "sourceID"
  ]
}
```

### DiagramNode

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "additionalProperties": {}
    },
    "nodeID": {
      "type": "string"
    },
    "coords": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "number"
          }
        ]
      },
      "minItems": 2,
      "maxItems": 2
    }
  },
  "required": [
    "type",
    "data",
    "nodeID"
  ]
}
```

### DiagramType

```json
{
  "type": "string",
  "enum": [
    "TOPIC",
    "GROUP",
    "TEMPLATE",
    "COMPONENT"
  ],
  "x-enumNames": [
    "TOPIC",
    "GROUP",
    "TEMPLATE",
    "COMPONENT"
  ]
}
```

### DocumentContentPart

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "document"
      ],
      "x-enumNames": [
        "DOCUMENT"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "string"
    },
    "mimeType": {
      "type": "string",
      "enum": [
        "application/pdf"
      ],
      "x-enumNames": [
        "APPLICATION_PDF"
      ]
    }
  },
  "required": [
    "type"
  ]
}
```

### DocumentMetadataEntry

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "values": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DocumentMetadataValue"
      }
    }
  },
  "required": [
    "key",
    "values"
  ]
}
```

### DocumentMetadataValue

```json
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    },
    "id": {
      "type": "string"
    }
  },
  "required": [
    "value",
    "id"
  ]
}
```

### ElevenLabsSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "afr",
    "amh",
    "ara",
    "hye",
    "asm",
    "ast",
    "aze",
    "bel",
    "ben",
    "bos",
    "bul",
    "mya",
    "yue",
    "cat",
    "ceb",
    "nya",
    "hrv",
    "ces",
    "dan",
    "nld",
    "eng",
    "est",
    "fil",
    "fin",
    "fra",
    "ful",
    "glg",
    "lug",
    "kat",
    "deu",
    "ell",
    "guj",
    "hau",
    "heb",
    "hin",
    "hun",
    "isl",
    "ibo",
    "ind",
    "gle",
    "ita",
    "jpn",
    "jav",
    "kea",
    "kan",
    "kaz",
    "khm",
    "kor",
    "kur",
    "kir",
    "lao",
    "lav",
    "lin",
    "lit",
    "luo",
    "ltz",
    "mkd",
    "msa",
    "mal",
    "mlt",
    "zho",
    "mri",
    "mar",
    "mon",
    "nep",
    "nso",
    "nor",
    "oci",
    "ori",
    "pus",
    "fas",
    "pol",
    "por",
    "pan",
    "ron",
    "rus",
    "srp",
    "sna",
    "snd",
    "slk",
    "slv",
    "som",
    "spa",
    "swa",
    "swe",
    "tam",
    "tgk",
    "tel",
    "tha",
    "tur",
    "ukr",
    "umb",
    "urd",
    "uzb",
    "vie",
    "cym",
    "wol",
    "xho",
    "zul"
  ],
  "x-enumNames": [
    "AFRIKAANS",
    "AMHARIC",
    "ARABIC",
    "ARMENIAN",
    "ASSAMESE",
    "ASTURIAN",
    "AZERBAIJANI",
    "BELARUSIAN",
    "BENGALI",
    "BOSNIAN",
    "BULGARIAN",
    "BURMESE",
    "CANTONESE",
    "CATALAN",
    "CEBUANO",
    "CHICHEWA",
    "CROATIAN",
    "CZECH",
    "DANISH",
    "DUTCH",
    "ENGLISH",
    "ESTONIAN",
    "FILIPINO",
    "FINNISH",
    "FRENCH",
    "FULAH",
    "GALICIAN",
    "GANDA",
    "GEORGIAN",
    "GERMAN",
    "GREEK",
    "GUJARATI",
    "HAUSA",
    "HEBREW",
    "HINDI",
    "HUNGARIAN",
    "ICELANDIC",
    "IGBO",
    "INDONESIAN",
    "IRISH",
    "ITALIAN",
    "JAPANESE",
    "JAVANESE",
    "KABUVERDIANU",
    "KANNADA",
    "KAZAKH",
    "KHMER",
    "KOREAN",
    "KURDISH",
    "KYRGYZ",
    "LAO",
    "LATVIAN",
    "LINGALA",
    "LITHUANIAN",
    "LUO",
    "LUXEMBOURGISH",
    "MACEDONIAN",
    "MALAY",
    "MALAYALAM",
    "MALTESE",
    "MANDARIN_CHINESE",
    "MAORI",
    "MARATHI",
    "MONGOLIAN",
    "NEPALI",
    "NORTHERN_SOTHO",
    "NORWEGIAN",
    "OCCITAN",
    "ODIA",
    "PASHTO",
    "PERSIAN",
    "POLISH",
    "PORTUGUESE",
    "PUNJABI",
    "ROMANIAN",
    "RUSSIAN",
    "SERBIAN",
    "SHONA",
    "SINDHI",
    "SLOVAK",
    "SLOVENIAN",
    "SOMALI",
    "SPANISH",
    "SWAHILI",
    "SWEDISH",
    "TAMIL",
    "TAJIK",
    "TELUGU",
    "THAI",
    "TURKISH",
    "UKRAINIAN",
    "UMBUNDU",
    "URDU",
    "UZBEK",
    "VIETNAMESE",
    "WELSH",
    "WOLOF",
    "XHOSA",
    "ZULU"
  ]
}
```

### ElevenLabsSTTModel

```json
{
  "type": "string",
  "enum": [
    "scribe_v2_realtime"
  ],
  "x-enumNames": [
    "SCRIBE_V_2_REALTIME"
  ]
}
```

### ElevenLabsSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "elevenlabs"
      ],
      "x-enumNames": [
        "ELEVENLABS"
      ]
    },
    "model": {
      "$ref": "#/components/schemas/ElevenLabsSTTModel"
    },
    "language": {
      "$ref": "#/components/schemas/ElevenLabsSTTLanguage"
    },
    "commitStrategy": {
      "type": "string",
      "enum": [
        "vad",
        "manual"
      ],
      "x-enumNames": [
        "VAD",
        "MANUAL"
      ]
    },
    "vadSilenceThresholdSecs": {
      "type": "number",
      "minimum": 0.3,
      "maximum": 3
    },
    "vadThreshold": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 0.9
    },
    "minSpeechDurationMS": {
      "type": "number",
      "minimum": 50,
      "maximum": 2000
    },
    "minSilenceDurationMS": {
      "type": "number",
      "minimum": 50,
      "maximum": 2000
    }
  },
  "required": [
    "provider",
    "model",
    "language"
  ]
}
```

### ElevenLabsVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "elevenlabs"
      ],
      "x-enumNames": [
        "ELEVENLABS"
      ]
    },
    "model": {
      "type": "string"
    },
    "voice": {
      "type": "string"
    },
    "useCustomVoice": {
      "type": "boolean"
    },
    "settings": {
      "type": "object",
      "properties": {
        "speed": {
          "type": "number",
          "minimum": 0.7,
          "maximum": 1.3
        },
        "style": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "stability": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "speaker_boost": {
          "type": "boolean"
        },
        "similarity_boost": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        }
      }
    },
    "pronunciation_dictionaries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pronunciation_dictionary_id": {
            "type": "string"
          },
          "version_id": {
            "type": "string"
          }
        },
        "required": [
          "pronunciation_dictionary_id"
        ]
      }
    }
  },
  "required": [
    "provider",
    "model",
    "voice",
    "settings"
  ]
}
```

### Entity

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "color": {
      "type": "string"
    },
    "isArray": {
      "type": "boolean"
    },
    "classifier": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "color",
    "isArray",
    "classifier",
    "description"
  ]
}
```

### EntityVariant

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "value": {
      "type": "string"
    },
    "language": {
      "$ref": "#/components/schemas/Language"
    },
    "synonyms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entityID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "value",
    "language",
    "synonyms",
    "entityID"
  ]
}
```

### Event

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "flowID": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "goesTo": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/EventGoesToType"
        }
      ]
    },
    "isSystem": {
      "type": "boolean"
    },
    "requestName": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "folderID",
    "createdByID",
    "name",
    "isSystem",
    "requestName",
    "description"
  ]
}
```

### EventGoesToType

```json
{
  "type": "string",
  "enum": [
    "global_agent",
    "flow",
    "continue"
  ],
  "x-enumNames": [
    "GLOBAL_AGENT",
    "FLOW",
    "CONTINUE"
  ]
}
```

### EventJumpProgramCommand

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "jump"
      ],
      "x-enumNames": [
        "JUMP"
      ]
    },
    "nextID": {
      "nullable": true,
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "diagramID": {
      "nullable": true,
      "type": "string"
    },
    "event": {
      "$ref": "#/components/schemas/AnyProgramEvent"
    }
  },
  "required": [
    "type",
    "nextID",
    "event"
  ]
}
```

### EventProgramEvent

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "event"
      ],
      "x-enumNames": [
        "EVENT"
      ]
    },
    "event": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "event"
  ]
}
```

### EventPushProgramCommand

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "push"
      ],
      "x-enumNames": [
        "PUSH"
      ]
    },
    "platform": {
      "type": "string"
    },
    "diagramID": {
      "nullable": true,
      "type": "string"
    },
    "event": {
      "$ref": "#/components/schemas/AnyProgramEvent"
    }
  },
  "required": [
    "type",
    "event"
  ]
}
```

### ExportTextString

```json
{
  "type": "string",
  "description": "Rich text rendered as a string, with {name} for a variable, entity or secret reference and `name` for a tool, playbook or workflow reference. A chat-text leaf (a tool message example, a card or attachment description, a static no-match or no-reply prompt) carries markdown marks and escapes a literal *, _, ~, [, <u> or </u> with a backslash, as a message read does. A prompt leaf (instructions, persona, guidelines) carries markdown. Every other leaf is plain text with {name} references, no marks and no escapes: a URL, a header, query or body value, a default value, a condition operand, a set value, a code leaf, and an utterance leaf (entity references only). Outside a prompt-kind leaf, a variable, entity or secret whose name is outside the token grammar (letters, digits and underscores, at most 64 characters) renders as its id. A secret inside a prompt-kind leaf renders as its id rather than its name, matching the dedicated agent read. The export is read-only. Inside diagrams{}.nodes{}.data only the node types whose data carries rich text are rendered; every other node type ships in its stored object form."
}
```

### FallbackMapping

```json
{
  "type": "object",
  "additionalProperties": {
    "type": "object",
    "additionalProperties": {
      "type": "object",
      "properties": {
        "provider": {
          "$ref": "#/components/schemas/AIProvider"
        },
        "model": {
          "$ref": "#/components/schemas/AIModel"
        }
      },
      "required": [
        "provider",
        "model"
      ]
    }
  }
}
```

### FileAttachmentMetadata

```json
{
  "type": "object",
  "properties": {
    "filename": {
      "type": "string"
    },
    "mimeType": {
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "filename",
    "mimeType",
    "description"
  ]
}
```

### Flow

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "diagramID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "folderID",
    "createdByID",
    "name",
    "diagramID",
    "description"
  ]
}
```

### Folder

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "scope": {
      "$ref": "#/components/schemas/FolderScope"
    },
    "parentID": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "name",
    "scope",
    "parentID"
  ]
}
```

### FolderScope

```json
{
  "type": "string",
  "enum": [
    "flow",
    "event",
    "agent",
    "prompt",
    "entity",
    "intent",
    "message",
    "workflow",
    "variable",
    "function",
    "simulation",
    "knowledge-base"
  ],
  "x-enumNames": [
    "FLOW",
    "EVENT",
    "AGENT",
    "PROMPT",
    "ENTITY",
    "INTENT",
    "MESSAGE",
    "WORKFLOW",
    "VARIABLE",
    "FUNCTION",
    "SIMULATION",
    "KNOWLEDGE_BASE"
  ]
}
```

### Function

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "code": {
      "type": "string"
    },
    "image": {
      "nullable": true,
      "type": "string"
    },
    "pathOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "settings": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/FunctionSettings"
        }
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "code",
    "image",
    "pathOrder",
    "description"
  ]
}
```

### FunctionPath

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "label": {
      "nullable": true,
      "type": "string"
    },
    "functionID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "name",
    "label",
    "functionID"
  ]
}
```

### FunctionSettings

```json
{
  "type": "object",
  "properties": {
    "timeoutMs": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 600000
    }
  }
}
```

### FunctionToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "function"
      ],
      "x-enumNames": [
        "FUNCTION"
      ]
    },
    "toolID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "toolID"
  ]
}
```

### FunctionVariable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "type": {
      "$ref": "#/components/schemas/FunctionVariableKind"
    },
    "functionID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "name",
    "type",
    "functionID",
    "description"
  ]
}
```

### FunctionVariableKind

```json
{
  "type": "string",
  "enum": [
    "input",
    "output"
  ],
  "x-enumNames": [
    "INPUT",
    "OUTPUT"
  ]
}
```

### GeneralProgramEvent

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ]
}
```

### GladiaSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "af",
    "am",
    "ar",
    "as",
    "az",
    "ba",
    "be",
    "bg",
    "bn",
    "bo",
    "br",
    "bs",
    "ca",
    "cs",
    "cy",
    "da",
    "de",
    "el",
    "en",
    "es",
    "et",
    "eu",
    "fa",
    "fi",
    "fo",
    "fr",
    "gl",
    "gu",
    "ha",
    "haw",
    "he",
    "hi",
    "hr",
    "ht",
    "hu",
    "hy",
    "id",
    "is",
    "it",
    "ja",
    "jw",
    "ka",
    "kk",
    "km",
    "kn",
    "ko",
    "la",
    "lb",
    "ln",
    "lo",
    "lt",
    "lv",
    "mg",
    "mi",
    "mk",
    "ml",
    "mn",
    "mr",
    "ms",
    "mt",
    "my",
    "ne",
    "nl",
    "nn",
    "no",
    "oc",
    "pa",
    "pl",
    "ps",
    "pt",
    "ro",
    "ru",
    "sa",
    "sd",
    "si",
    "sk",
    "sl",
    "sn",
    "so",
    "sq",
    "sr",
    "su",
    "sv",
    "sw",
    "ta",
    "te",
    "tg",
    "th",
    "tk",
    "tl",
    "tr",
    "tt",
    "uk",
    "ur",
    "uz",
    "vi",
    "yi",
    "yo",
    "zh"
  ],
  "x-enumNames": [
    "AFRIKAANS",
    "AMHARIC",
    "ARABIC",
    "ASSAMESE",
    "AZERBAIJANI",
    "BASHKIR",
    "BELARUSIAN",
    "BULGARIAN",
    "BENGALI",
    "TIBETAN",
    "BRETON",
    "BOSNIAN",
    "CATALAN",
    "CZECH",
    "WELSH",
    "DANISH",
    "GERMAN",
    "GREEK",
    "ENGLISH",
    "SPANISH",
    "ESTONIAN",
    "BASQUE",
    "PERSIAN",
    "FINNISH",
    "FAROESE",
    "FRENCH",
    "GALICIAN",
    "GUJARATI",
    "HAUSA",
    "HAWAIIAN",
    "HEBREW",
    "HINDI",
    "CROATIAN",
    "HAITIAN_CREOLE",
    "HUNGARIAN",
    "ARMENIAN",
    "INDONESIAN",
    "ICELANDIC",
    "ITALIAN",
    "JAPANESE",
    "JAVANESE",
    "GEORGIAN",
    "KAZAKH",
    "KHMER",
    "KANNADA",
    "KOREAN",
    "LATIN",
    "LUXEMBOURGISH",
    "LINGALA",
    "LAO",
    "LITHUANIAN",
    "LATVIAN",
    "MALAGASY",
    "MAORI",
    "MACEDONIAN",
    "MALAYALAM",
    "MONGOLIAN",
    "MARATHI",
    "MALAY",
    "MALTESE",
    "MYANMAR",
    "NEPALI",
    "DUTCH",
    "NORWEGIAN_NYNORSK",
    "NORWEGIAN",
    "OCCITAN",
    "PUNJABI",
    "POLISH",
    "PASHTO",
    "PORTUGUESE",
    "ROMANIAN",
    "RUSSIAN",
    "SANSKRIT",
    "SINDHI",
    "SINHALA",
    "SLOVAK",
    "SLOVENIAN",
    "SHONA",
    "SOMALI",
    "ALBANIAN",
    "SERBIAN",
    "SUNDANESE",
    "SWEDISH",
    "SWAHILI",
    "TAMIL",
    "TELUGU",
    "TAJIK",
    "THAI",
    "TURKMEN",
    "TAGALOG",
    "TURKISH",
    "TATAR",
    "UKRAINIAN",
    "URDU",
    "UZBEK",
    "VIETNAMESE",
    "YIDDISH",
    "YORUBA",
    "CHINESE"
  ]
}
```

### GladiaSTTModel

```json
{
  "type": "string",
  "enum": [
    "solaria-1"
  ],
  "x-enumNames": [
    "SOLARIA_1"
  ]
}
```

### GladiaSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "gladia"
      ],
      "x-enumNames": [
        "GLADIA"
      ]
    },
    "model": {
      "$ref": "#/components/schemas/GladiaSTTModel"
    },
    "endpointing": {
      "type": "number"
    },
    "maxDurationWithoutEndpointing": {
      "type": "number"
    },
    "languages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GladiaSTTLanguage"
      }
    }
  },
  "required": [
    "provider",
    "model",
    "endpointing",
    "maxDurationWithoutEndpointing",
    "languages"
  ]
}
```

### GoogleSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "auto",
    "ca-ES",
    "cmn-Hans-CN",
    "hr-HR",
    "da-DK",
    "nl-NL",
    "en-AU",
    "en-GB",
    "en-IN",
    "en-US",
    "fi-FI",
    "fr-CA",
    "fr-FR",
    "de-DE",
    "el-GR",
    "hi-IN",
    "it-IT",
    "ja-JP",
    "ko-KR",
    "pl-PL",
    "pt-BR",
    "pt-PT",
    "ro-RO",
    "ru-RU",
    "es-ES",
    "es-US",
    "sv-SE",
    "tr-TR",
    "uk-UA",
    "vi-VN",
    "ar-XA",
    "ar-DZ",
    "ar-BH",
    "ar-EG",
    "ar-IL",
    "ar-JO",
    "ar-KW",
    "ar-LB",
    "ar-MR",
    "ar-MA",
    "ar-OM",
    "ar-QA",
    "ar-SA",
    "ar-PS",
    "ar-SY",
    "ar-TN",
    "ar-AE",
    "ar-YE",
    "hy-AM",
    "bn-BD",
    "bn-IN",
    "bg-BG",
    "my-MM",
    "ar-IQ",
    "yue-Hant-HK",
    "cmn-Hant-TW",
    "cs-CZ",
    "en-PH",
    "et-EE",
    "fil-PH",
    "gu-IN",
    "iw-IL",
    "hu-HU",
    "id-ID",
    "kn-IN",
    "km-KH",
    "lo-LA",
    "lv-LV",
    "lt-LT",
    "ms-MY",
    "ml-IN",
    "mr-IN",
    "ne-NP",
    "no-NO",
    "fa-IR",
    "pa-Guru-IN",
    "sr-RS",
    "sk-SK",
    "sl-SI",
    "es-MX",
    "sw",
    "ta-IN",
    "te-IN",
    "th-TH",
    "uz-UZ"
  ],
  "x-enumNames": [
    "AUTO",
    "CA_ES",
    "CMN_HANS_CN",
    "HR_HR",
    "DA_DK",
    "NL_NL",
    "EN_AU",
    "EN_GB",
    "EN_IN",
    "EN_US",
    "FI_FI",
    "FR_CA",
    "FR_FR",
    "DE_DE",
    "EL_GR",
    "HI_IN",
    "IT_IT",
    "JA_JP",
    "KO_KR",
    "PL_PL",
    "PT_BR",
    "PT_PT",
    "RO_RO",
    "RU_RU",
    "ES_ES",
    "ES_US",
    "SV_SE",
    "TR_TR",
    "UK_UA",
    "VI_VN",
    "AR_XA",
    "AR_DZ",
    "AR_BH",
    "AR_EG",
    "AR_IL",
    "AR_JO",
    "AR_KW",
    "AR_LB",
    "AR_MR",
    "AR_MA",
    "AR_OM",
    "AR_QA",
    "AR_SA",
    "AR_PS",
    "AR_SY",
    "AR_TN",
    "AR_AE",
    "AR_YE",
    "HY_AM",
    "BN_BD",
    "BN_IN",
    "BG_BG",
    "MY_MM",
    "AR_IQ",
    "YUE_HANT_HK",
    "CMN_HANT_TW",
    "CS_CZ",
    "EN_PH",
    "ET_EE",
    "FIL_PH",
    "GU_IN",
    "IW_IL",
    "HU_HU",
    "ID_ID",
    "KN_IN",
    "KM_KH",
    "LO_LA",
    "LV_LV",
    "LT_LT",
    "MS_MY",
    "ML_IN",
    "MR_IN",
    "NE_NP",
    "NO_NO",
    "FA_IR",
    "PA_GURU_IN",
    "SR_RS",
    "SK_SK",
    "SL_SI",
    "ES_MX",
    "SW",
    "TA_IN",
    "TE_IN",
    "TH_TH",
    "UZ_UZ"
  ]
}
```

### GoogleSTTModel

```json
{
  "type": "string",
  "enum": [
    "chirp_3"
  ],
  "x-enumNames": [
    "CHIRP_3"
  ]
}
```

### GoogleSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "google"
      ],
      "x-enumNames": [
        "GOOGLE"
      ]
    },
    "model": {
      "$ref": "#/components/schemas/GoogleSTTModel"
    },
    "languages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GoogleSTTLanguage"
      }
    }
  },
  "required": [
    "provider",
    "model",
    "languages"
  ]
}
```

### GoogleTTSModelID

```json
{
  "type": "string",
  "enum": [
    "standard",
    "wavenet",
    "neural2",
    "polyglot",
    "studio",
    "Chirp3-HD",
    "gemini-2.5-flash"
  ],
  "x-enumNames": [
    "STANDARD",
    "WAVENET",
    "NEURAL_2",
    "POLYGLOT",
    "STUDIO",
    "CHIRP_3_HD",
    "GEMINI_2_5_FLASH"
  ]
}
```

### GoogleVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "google"
      ],
      "x-enumNames": [
        "GOOGLE"
      ]
    },
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/GoogleTTSModelID"
        }
      ]
    },
    "languageCode": {
      "type": "string"
    },
    "voice": {
      "type": "string"
    },
    "settings": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "provider",
    "voice"
  ]
}
```

### ImageContentPart

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "image"
      ],
      "x-enumNames": [
        "IMAGE"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "string"
    },
    "mimeType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ImageMimeType"
        }
      ]
    }
  },
  "required": [
    "type"
  ]
}
```

### ImageMimeType

```json
{
  "type": "string",
  "enum": [
    "image/jpeg",
    "image/png",
    "image/gif",
    "image/webp"
  ],
  "x-enumNames": [
    "IMAGE_JPEG",
    "IMAGE_PNG",
    "IMAGE_GIF",
    "IMAGE_WEBP"
  ]
}
```

### IntegrationTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "toolName": {
      "$ref": "#/components/schemas/IntegrationToolName"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "toolProvider": {
      "$ref": "#/components/schemas/IntegrationToolProvider"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "toolName",
    "description",
    "toolProvider"
  ]
}
```

### IntegrationToolName

```json
{
  "type": "string",
  "enum": [
    "example_dynamic_schema",
    "zendesk_find_user",
    "zendesk_find_group",
    "zendesk_find_ticket",
    "zendesk_create_ticket",
    "zendesk_update_ticket",
    "zendesk_add_ticket_comment",
    "zendesk_update_organization",
    "zendesk_find_latest_comment",
    "salesforce_create_lead",
    "salesforce_update_lead",
    "salesforce_create_contact",
    "salesforce_update_contact",
    "salesforce_create_case",
    "salesforce_update_case",
    "salesforce_add_comment_to_case",
    "shopify_get_products",
    "shopify_get_order",
    "shopify_cancel_order",
    "shopify_update_order",
    "google_sheets_create_spreadsheet",
    "google_sheets_update_spreadsheet",
    "google_sheets_read_spreadsheet",
    "google_sheets_append_spreadsheet",
    "google_sheets_read_row",
    "google_gmail_send_email",
    "airtable_create_records",
    "airtable_delete_records",
    "airtable_get_record",
    "airtable_list_records",
    "airtable_update_records",
    "make_run_scenario",
    "twilio_send_sms",
    "hubspot_create_contact",
    "hubspot_create_lead",
    "hubspot_create_ticket",
    "kustomer_find_customer",
    "kustomer_create_customer",
    "kustomer_update_customer",
    "kustomer_find_conversation",
    "kustomer_find_customer_conversations",
    "kustomer_create_conversation",
    "kustomer_update_conversation",
    "kustomer_add_conversation_note",
    "kustomer_add_conversation_tags",
    "kustomer_find_latest_message",
    "kustomer_find_team",
    "kustomer_update_company"
  ],
  "x-enumNames": [
    "EXAMPLE_DYNAMIC_SCHEMA",
    "ZENDESK_FIND_USER",
    "ZENDESK_FIND_GROUP",
    "ZENDESK_FIND_TICKET",
    "ZENDESK_CREATE_TICKET",
    "ZENDESK_UPDATE_TICKET",
    "ZENDESK_ADD_TICKET_COMMENT",
    "ZENDESK_UPDATE_ORGANIZATION",
    "ZENDESK_FIND_LATEST_TICKET_COMMENT",
    "SALESFORCE_CREATE_LEAD",
    "SALESFORCE_UPDATE_LEAD",
    "SALESFORCE_CREATE_CONTACT",
    "SALESFORCE_UPDATE_CONTACT",
    "SALESFORCE_CREATE_CASE",
    "SALESFORCE_UPDATE_CASE",
    "SALESFORCE_ADD_COMMENT_TO_CASE",
    "SHOPIFY_GET_PRODUCTS",
    "SHOPIFY_GET_ORDER",
    "SHOPIFY_CANCEL_ORDER",
    "SHOPIFY_UPDATE_ORDER",
    "GOOGLE_SHEETS_CREATE_SPREADSHEET",
    "GOOGLE_SHEETS_UPDATE_SPREADSHEET",
    "GOOGLE_SHEETS_READ_SPREADSHEET",
    "GOOGLE_SHEETS_APPEND_SPREADSHEET",
    "GOOGLE_SHEETS_READ_ROW",
    "GOOGLE_GMAIL_SEND_EMAIL",
    "AIRTABLE_CREATE_RECORDS",
    "AIRTABLE_DELETE_RECORDS",
    "AIRTABLE_GET_RECORD",
    "AIRTABLE_LIST_RECORDS",
    "AIRTABLE_UPDATE_RECORDS",
    "MAKE_RUN_SCENARIO",
    "TWILIO_SEND_SMS",
    "HUBSPOT_CREATE_CONTACT",
    "HUBSPOT_CREATE_LEAD",
    "HUBSPOT_CREATE_TICKET",
    "KUSTOMER_FIND_CUSTOMER",
    "KUSTOMER_CREATE_CUSTOMER",
    "KUSTOMER_UPDATE_CUSTOMER",
    "KUSTOMER_FIND_CONVERSATION",
    "KUSTOMER_FIND_CUSTOMER_CONVERSATIONS",
    "KUSTOMER_CREATE_CONVERSATION",
    "KUSTOMER_UPDATE_CONVERSATION",
    "KUSTOMER_ADD_CONVERSATION_NOTE",
    "KUSTOMER_ADD_CONVERSATION_TAGS",
    "KUSTOMER_FIND_LATEST_MESSAGE",
    "KUSTOMER_FIND_TEAM",
    "KUSTOMER_UPDATE_COMPANY"
  ]
}
```

### IntegrationToolProvider

```json
{
  "type": "string",
  "enum": [
    "make",
    "zendesk",
    "shopify",
    "airtable",
    "salesforce",
    "hubspot",
    "google_gmail",
    "google_sheets",
    "twilio",
    "ujet",
    "genesys",
    "kustomer",
    "dixa",
    "sunshine",
    "custom_handoff",
    "example"
  ],
  "x-enumNames": [
    "MAKE",
    "ZENDESK",
    "SHOPIFY",
    "AIRTABLE",
    "SALESFORCE",
    "HUBSPOT",
    "GOOGLE_GMAIL",
    "GOOGLE_SHEETS",
    "TWILIO",
    "UJET",
    "GENESYS",
    "KUSTOMER",
    "DIXA",
    "SUNSHINE",
    "CUSTOM_HANDOFF",
    "EXAMPLE"
  ]
}
```

### IntegrationToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "integration"
      ],
      "x-enumNames": [
        "INTEGRATION"
      ]
    },
    "toolID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "toolID"
  ]
}
```

### Intent

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "entityOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "automaticReprompt": {
      "type": "boolean"
    },
    "automaticRepromptSettings": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AutomaticReprompt"
        }
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "description",
    "entityOrder",
    "automaticReprompt",
    "automaticRepromptSettings"
  ]
}
```

### IntentAIParams

```json
{
  "type": "object",
  "properties": {
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "temperature": {
      "type": "number"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    }
  },
  "required": [
    "model",
    "temperature"
  ]
}
```

### IntentClassificationLLMSettings

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "llm"
      ],
      "x-enumNames": [
        "LLM"
      ]
    },
    "params": {
      "$ref": "#/components/schemas/IntentAIParams"
    },
    "promptWrapper": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIPromptWrapper"
        }
      ]
    }
  },
  "required": [
    "type",
    "params",
    "promptWrapper"
  ]
}
```

### IntentClassificationNLUSettings

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "nlu"
      ],
      "x-enumNames": [
        "NLU"
      ]
    },
    "params": {
      "type": "object",
      "properties": {
        "confidence": {
          "type": "number"
        }
      },
      "required": [
        "confidence"
      ]
    }
  },
  "required": [
    "type",
    "params"
  ]
}
```

### IntentClassificationRAGSettings

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "rag"
      ],
      "x-enumNames": [
        "RAG"
      ]
    },
    "params": {
      "$ref": "#/components/schemas/IntentAIParams"
    },
    "promptWrapper": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIPromptWrapper"
        }
      ]
    }
  },
  "required": [
    "type",
    "params",
    "promptWrapper"
  ]
}
```

### IntentClassificationSettings

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/IntentClassificationLLMSettings"
    },
    {
      "$ref": "#/components/schemas/IntentClassificationNLUSettings"
    },
    {
      "$ref": "#/components/schemas/IntentClassificationRAGSettings"
    },
    {
      "$ref": "#/components/schemas/IntentClassificationSystemOneSettings"
    }
  ]
}
```

### IntentClassificationSystemOneSettings

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "system-one"
      ],
      "x-enumNames": [
        "SYSTEM_ONE"
      ]
    },
    "params": {
      "type": "object",
      "properties": {
        "confidence": {
          "type": "number"
        },
        "model": {
          "$ref": "#/components/schemas/SystemOneModel"
        }
      },
      "required": [
        "confidence",
        "model"
      ]
    }
  },
  "required": [
    "type",
    "params"
  ]
}
```

### IntentProgramEvent

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "intent"
      ],
      "x-enumNames": [
        "INTENT"
      ]
    },
    "intent": {
      "type": "string"
    },
    "mappings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/IntentProgramEventMapping"
      }
    }
  },
  "required": [
    "type",
    "intent"
  ]
}
```

### IntentProgramEventMapping

```json
{
  "type": "object",
  "properties": {
    "slot": {
      "type": "string"
    },
    "variable": {
      "type": "string"
    }
  },
  "required": [
    "slot",
    "variable"
  ]
}
```

### InterfaceConfig

```json
{
  "type": "object",
  "properties": {
    "layout": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayout"
        }
      ]
    },
    "theme": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigTheme"
        }
      ]
    },
    "launcher": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncher"
        }
      ]
    },
    "header": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHeader"
        }
      ]
    },
    "buttons": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigButtons"
        }
      ]
    },
    "menu": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMenu"
        }
      ]
    },
    "start": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigStart"
        }
      ]
    },
    "messages": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessages"
        }
      ]
    },
    "composer": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposer"
        }
      ]
    },
    "end": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigEnd"
        }
      ]
    },
    "footer": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigFooter"
        }
      ]
    },
    "history": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHistory"
        }
      ]
    },
    "transcript": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigTranscript"
        }
      ]
    },
    "sounds": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigSounds"
        }
      ]
    },
    "locale": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocale"
        }
      ]
    },
    "voice": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoice"
        }
      ]
    },
    "consent": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigConsent"
        }
      ]
    },
    "site": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigSite"
        }
      ]
    },
    "css": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigButton

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]*$"
    },
    "action": {
      "type": "string",
      "minLength": 1
    },
    "args": {
      "type": "object",
      "additionalProperties": {}
    },
    "label": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "icon": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigButtonIcon"
        }
      ]
    },
    "when": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigButtonWhen"
        }
      ]
    },
    "emphasis": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigButtonEmphasis"
        }
      ]
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "action"
  ]
}
```

### InterfaceConfigButtonEmphasis

```json
{
  "type": "string",
  "enum": [
    "primary",
    "secondary"
  ],
  "x-enumNames": [
    "PRIMARY",
    "SECONDARY"
  ]
}
```

### InterfaceConfigButtonIcon

```json
{
  "type": "object",
  "properties": {
    "kind": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigButtonIconKind"
        }
      ]
    },
    "name": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigIcon"
        }
      ]
    },
    "url": {
      "type": "string"
    },
    "tint": {
      "type": "boolean"
    },
    "assetId": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigButtonIconKind

```json
{
  "type": "string",
  "enum": [
    "builtin",
    "asset"
  ],
  "x-enumNames": [
    "BUILTIN",
    "ASSET"
  ]
}
```

### InterfaceConfigButtonPhase

```json
{
  "type": "string",
  "enum": [
    "start",
    "ai",
    "handoff",
    "ended"
  ],
  "x-enumNames": [
    "START",
    "AI",
    "HANDOFF",
    "ENDED"
  ]
}
```

### InterfaceConfigButtonView

```json
{
  "type": "string",
  "enum": [
    "chat",
    "call"
  ],
  "x-enumNames": [
    "CHAT",
    "CALL"
  ]
}
```

### InterfaceConfigButtonWhen

```json
{
  "type": "object",
  "properties": {
    "views": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButtonView"
      }
    },
    "phases": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButtonPhase"
      }
    }
  }
}
```

### InterfaceConfigButtons

```json
{
  "type": "object",
  "properties": {
    "header": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "menu": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "composer": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "footer": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "handoff": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "handoff-end": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    },
    "conversation-end": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigButton"
      }
    }
  }
}
```

### InterfaceConfigComposer

```json
{
  "type": "object",
  "properties": {
    "layout": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerLayout"
        }
      ]
    },
    "dictation": {
      "type": "boolean"
    },
    "attachments": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerAttachments"
        }
      ]
    },
    "placeholder": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "shape": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerShape"
        }
      ]
    },
    "sendButton": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerSendButton"
        }
      ]
    },
    "maxLines": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "emptySize": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerEmptySize"
        }
      ]
    }
  }
}
```

### InterfaceConfigComposerAttachments

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "maxFiles": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  }
}
```

### InterfaceConfigComposerEmptySize

```json
{
  "type": "string",
  "enum": [
    "compact",
    "large"
  ],
  "x-enumNames": [
    "COMPACT",
    "LARGE"
  ]
}
```

### InterfaceConfigComposerLayout

```json
{
  "type": "string",
  "enum": [
    "inline",
    "two-tier"
  ],
  "x-enumNames": [
    "INLINE",
    "TWO_TIER"
  ]
}
```

### InterfaceConfigComposerSendButton

```json
{
  "type": "object",
  "properties": {
    "shape": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigComposerSendButtonShape"
        }
      ]
    },
    "icon": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigIcon"
        }
      ]
    }
  }
}
```

### InterfaceConfigComposerSendButtonShape

```json
{
  "type": "string",
  "enum": [
    "circle",
    "rounded",
    "square"
  ],
  "x-enumNames": [
    "CIRCLE",
    "ROUNDED",
    "SQUARE"
  ]
}
```

### InterfaceConfigComposerShape

```json
{
  "type": "string",
  "enum": [
    "card",
    "boxed",
    "pill"
  ],
  "x-enumNames": [
    "CARD",
    "BOXED",
    "PILL"
  ]
}
```

### InterfaceConfigConsent

```json
{
  "type": "object",
  "properties": {
    "chat": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigConsentChat"
        }
      ]
    }
  }
}
```

### InterfaceConfigConsentChat

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "title": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "acceptLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "declineLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "linkUrl": {
      "type": "string"
    },
    "linkLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "revision": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigEnd

```json
{
  "type": "object",
  "properties": {
    "survey": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigEndSurvey"
        }
      ]
    }
  }
}
```

### InterfaceConfigEndSurvey

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "comment": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigFooter

```json
{
  "type": "object",
  "properties": {
    "note": {
      "type": "boolean"
    },
    "noteText": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "poweredBy": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigHeader

```json
{
  "type": "object",
  "properties": {
    "layout": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHeaderLayout"
        }
      ]
    },
    "appearance": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHeaderAppearance"
        }
      ]
    },
    "buttonFill": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHeaderButtonFill"
        }
      ]
    },
    "imageUrl": {
      "type": "string"
    },
    "maxButtons": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  }
}
```

### InterfaceConfigHeaderAppearance

```json
{
  "type": "string",
  "enum": [
    "solid",
    "fade"
  ],
  "x-enumNames": [
    "SOLID",
    "FADE"
  ]
}
```

### InterfaceConfigHeaderButtonFill

```json
{
  "type": "string",
  "enum": [
    "plain",
    "filled"
  ],
  "x-enumNames": [
    "PLAIN",
    "FILLED"
  ]
}
```

### InterfaceConfigHeaderLayout

```json
{
  "type": "string",
  "enum": [
    "avatar-title",
    "orb-title",
    "title",
    "logo",
    "none"
  ],
  "x-enumNames": [
    "AVATAR_TITLE",
    "ORB_TITLE",
    "TITLE",
    "LOGO",
    "NONE"
  ]
}
```

### InterfaceConfigHistory

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "persistence": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHistoryPersistence"
        }
      ]
    },
    "allowDelete": {
      "type": "boolean"
    },
    "listStyle": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigHistoryListStyle"
        }
      ]
    }
  }
}
```

### InterfaceConfigHistoryListStyle

```json
{
  "type": "string",
  "enum": [
    "detailed",
    "grouped"
  ],
  "x-enumNames": [
    "DETAILED",
    "GROUPED"
  ]
}
```

### InterfaceConfigHistoryPersistence

```json
{
  "type": "string",
  "enum": [
    "memory",
    "tab",
    "browser"
  ],
  "x-enumNames": [
    "MEMORY",
    "TAB",
    "BROWSER"
  ]
}
```

### InterfaceConfigIcon

```json
{
  "type": "string",
  "enum": [
    "send",
    "plus",
    "stop",
    "download",
    "history",
    "globe",
    "menu",
    "external-link",
    "expand",
    "minimize",
    "close",
    "phone",
    "phone-end",
    "chat",
    "microphone",
    "microphone-muted",
    "speaker",
    "speaker-muted",
    "handoff",
    "arrow-left",
    "arrow-right",
    "arrow-up",
    "arrow-down",
    "chevron-down",
    "chevron-up",
    "checkmark",
    "copy",
    "attachment",
    "image",
    "document",
    "upload",
    "warning",
    "info",
    "help",
    "waveform",
    "thumbs-up",
    "thumbs-down",
    "reset",
    "settings",
    "search",
    "star",
    "cart",
    "gift",
    "user",
    "calendar",
    "mail",
    "home",
    "link",
    "package",
    "briefcase"
  ],
  "x-enumNames": [
    "SEND",
    "PLUS",
    "STOP",
    "DOWNLOAD",
    "HISTORY",
    "GLOBE",
    "MENU",
    "EXTERNAL_LINK",
    "EXPAND",
    "MINIMIZE",
    "CLOSE",
    "PHONE",
    "PHONE_END",
    "CHAT",
    "MICROPHONE",
    "MICROPHONE_MUTED",
    "SPEAKER",
    "SPEAKER_MUTED",
    "HANDOFF",
    "ARROW_LEFT",
    "ARROW_RIGHT",
    "ARROW_UP",
    "ARROW_DOWN",
    "CHEVRON_DOWN",
    "CHEVRON_UP",
    "CHECKMARK",
    "COPY",
    "ATTACHMENT",
    "IMAGE",
    "DOCUMENT",
    "UPLOAD",
    "WARNING",
    "INFO",
    "HELP",
    "WAVEFORM",
    "THUMBS_UP",
    "THUMBS_DOWN",
    "RESET",
    "SETTINGS",
    "SEARCH",
    "STAR",
    "CART",
    "GIFT",
    "USER",
    "CALENDAR",
    "MAIL",
    "HOME",
    "LINK",
    "PACKAGE",
    "BRIEFCASE"
  ]
}
```

### InterfaceConfigLauncher

```json
{
  "type": "object",
  "properties": {
    "content": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncherContent"
        }
      ]
    },
    "label": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "visual": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncherVisual"
        }
      ]
    },
    "entry": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncherEntry"
        }
      ]
    },
    "imageUrl": {
      "type": "string"
    },
    "hidden": {
      "type": "boolean"
    },
    "unreadBadge": {
      "type": "boolean"
    },
    "callEntry": {
      "type": "boolean"
    },
    "shape": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncherShape"
        }
      ]
    },
    "size": {
      "type": "string"
    },
    "openIcon": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLauncherOpenIcon"
        }
      ]
    }
  }
}
```

### InterfaceConfigLauncherContent

```json
{
  "type": "string",
  "enum": [
    "icon",
    "label",
    "icon-label"
  ],
  "x-enumNames": [
    "ICON",
    "LABEL",
    "ICON_LABEL"
  ]
}
```

### InterfaceConfigLauncherEntry

```json
{
  "type": "string",
  "enum": [
    "button",
    "input",
    "input-centred"
  ],
  "x-enumNames": [
    "BUTTON",
    "INPUT",
    "INPUT_CENTRED"
  ]
}
```

### InterfaceConfigLauncherOpenIcon

```json
{
  "type": "string",
  "enum": [
    "chevron",
    "close",
    "same"
  ],
  "x-enumNames": [
    "CHEVRON",
    "CLOSE",
    "SAME"
  ]
}
```

### InterfaceConfigLauncherShape

```json
{
  "type": "string",
  "enum": [
    "circle",
    "rounded",
    "pill"
  ],
  "x-enumNames": [
    "CIRCLE",
    "ROUNDED",
    "PILL"
  ]
}
```

### InterfaceConfigLauncherVisual

```json
{
  "type": "string",
  "enum": [
    "icon",
    "image",
    "orb"
  ],
  "x-enumNames": [
    "ICON",
    "IMAGE",
    "ORB"
  ]
}
```

### InterfaceConfigLayout

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutMode"
        }
      ]
    },
    "side": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutSide"
        }
      ]
    },
    "offset": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutOffset"
        }
      ]
    },
    "width": {
      "type": "string"
    },
    "height": {
      "type": "string"
    },
    "expandable": {
      "type": "boolean"
    },
    "resizable": {
      "type": "boolean"
    },
    "floating": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutFloating"
        }
      ]
    },
    "sidebar": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutSidebar"
        }
      ]
    },
    "sidebarInset": {
      "type": "string"
    },
    "embedded": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutEmbedded"
        }
      ]
    },
    "zIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  }
}
```

### InterfaceConfigLayoutEmbedded

```json
{
  "type": "object",
  "properties": {
    "fill": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutEmbeddedFill"
        }
      ]
    }
  }
}
```

### InterfaceConfigLayoutEmbeddedFill

```json
{
  "type": "string",
  "enum": [
    "container",
    "window"
  ],
  "x-enumNames": [
    "CONTAINER",
    "WINDOW"
  ]
}
```

### InterfaceConfigLayoutFloating

```json
{
  "type": "object",
  "properties": {
    "anchor": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutFloatingAnchor"
        }
      ]
    },
    "backdrop": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutFloatingBackdrop"
        }
      ]
    },
    "coversLauncher": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigLayoutFloatingAnchor

```json
{
  "type": "string",
  "enum": [
    "corner",
    "center"
  ],
  "x-enumNames": [
    "CORNER",
    "CENTER"
  ]
}
```

### InterfaceConfigLayoutFloatingBackdrop

```json
{
  "type": "string",
  "enum": [
    "none",
    "dim",
    "blur"
  ],
  "x-enumNames": [
    "NONE",
    "DIM",
    "BLUR"
  ]
}
```

### InterfaceConfigLayoutMode

```json
{
  "type": "string",
  "enum": [
    "floating",
    "sidebar",
    "embedded"
  ],
  "x-enumNames": [
    "FLOATING",
    "SIDEBAR",
    "EMBEDDED"
  ]
}
```

### InterfaceConfigLayoutOffset

```json
{
  "type": "object",
  "properties": {
    "x": {
      "type": "string"
    },
    "y": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigLayoutSide

```json
{
  "type": "string",
  "enum": [
    "left",
    "right"
  ],
  "x-enumNames": [
    "LEFT",
    "RIGHT"
  ]
}
```

### InterfaceConfigLayoutSidebar

```json
{
  "type": "object",
  "properties": {
    "behavior": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutSidebarBehavior"
        }
      ]
    },
    "style": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutSidebarStyle"
        }
      ]
    },
    "backdrop": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLayoutSidebarBackdrop"
        }
      ]
    }
  }
}
```

### InterfaceConfigLayoutSidebarBackdrop

```json
{
  "type": "string",
  "enum": [
    "none",
    "dim",
    "blur"
  ],
  "x-enumNames": [
    "NONE",
    "DIM",
    "BLUR"
  ]
}
```

### InterfaceConfigLayoutSidebarBehavior

```json
{
  "type": "string",
  "enum": [
    "overlay",
    "push"
  ],
  "x-enumNames": [
    "OVERLAY",
    "PUSH"
  ]
}
```

### InterfaceConfigLayoutSidebarStyle

```json
{
  "type": "string",
  "enum": [
    "flush",
    "inset"
  ],
  "x-enumNames": [
    "FLUSH",
    "INSET"
  ]
}
```

### InterfaceConfigLocale

```json
{
  "type": "object",
  "properties": {
    "default": {
      "type": "string"
    },
    "enabled": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "strings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigLocaleString"
      }
    },
    "timeFormat": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocaleTimeFormat"
        }
      ]
    },
    "dateFormat": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocaleDateFormat"
        }
      ]
    }
  }
}
```

### InterfaceConfigLocaleDateFormat

```json
{
  "type": "string",
  "enum": [
    "auto",
    "short",
    "long"
  ],
  "x-enumNames": [
    "AUTO",
    "SHORT",
    "LONG"
  ]
}
```

### InterfaceConfigLocaleString

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "translations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "key": {
      "type": "string"
    }
  },
  "required": [
    "key"
  ]
}
```

### InterfaceConfigLocaleTimeFormat

```json
{
  "type": "string",
  "enum": [
    "auto",
    "12h",
    "24h"
  ],
  "x-enumNames": [
    "AUTO",
    "TWELVE_HOUR",
    "TWENTY_FOUR_HOUR"
  ]
}
```

### InterfaceConfigLocalizedText

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "translations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}
```

### InterfaceConfigMenu

```json
{
  "type": "object",
  "properties": {
    "presentation": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMenuPresentation"
        }
      ]
    },
    "restartConfirmation": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMenuRestartConfirmation"
        }
      ]
    }
  }
}
```

### InterfaceConfigMenuPresentation

```json
{
  "type": "string",
  "enum": [
    "auto",
    "sheet",
    "popover",
    "title",
    "screen"
  ],
  "x-enumNames": [
    "AUTO",
    "SHEET",
    "POPOVER",
    "TITLE",
    "SCREEN"
  ]
}
```

### InterfaceConfigMenuRestartConfirmation

```json
{
  "type": "string",
  "enum": [
    "none",
    "dialog",
    "screen"
  ],
  "x-enumNames": [
    "NONE",
    "DIALOG",
    "SCREEN"
  ]
}
```

### InterfaceConfigMessages

```json
{
  "type": "object",
  "properties": {
    "agentStyle": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesAgentStyle"
        }
      ]
    },
    "avatar": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesAvatar"
        }
      ]
    },
    "timestamps": {
      "type": "boolean"
    },
    "aiDisclaimer": {
      "type": "boolean"
    },
    "feedback": {
      "type": "boolean"
    },
    "streaming": {
      "type": "boolean"
    },
    "choiceStyle": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesChoiceStyle"
        }
      ]
    },
    "loader": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesLoader"
        }
      ]
    },
    "html": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesHtml"
        }
      ]
    },
    "linkHosts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scrollToBottom": {
      "type": "boolean"
    },
    "avatarImageUrl": {
      "type": "string"
    },
    "citations": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigMessagesCitations"
        }
      ]
    }
  }
}
```

### InterfaceConfigMessagesAgentStyle

```json
{
  "type": "string",
  "enum": [
    "bubble",
    "plain",
    "card"
  ],
  "x-enumNames": [
    "BUBBLE",
    "PLAIN",
    "CARD"
  ]
}
```

### InterfaceConfigMessagesAvatar

```json
{
  "type": "string",
  "enum": [
    "none",
    "every",
    "last"
  ],
  "x-enumNames": [
    "NONE",
    "EVERY",
    "LAST"
  ]
}
```

### InterfaceConfigMessagesChoiceStyle

```json
{
  "type": "string",
  "enum": [
    "chips",
    "outlined",
    "links"
  ],
  "x-enumNames": [
    "CHIPS",
    "OUTLINED",
    "LINKS"
  ]
}
```

### InterfaceConfigMessagesCitations

```json
{
  "type": "string",
  "enum": [
    "none",
    "list",
    "sheet"
  ],
  "x-enumNames": [
    "NONE",
    "LIST",
    "SHEET"
  ]
}
```

### InterfaceConfigMessagesHtml

```json
{
  "type": "string",
  "enum": [
    "text",
    "safe"
  ],
  "x-enumNames": [
    "TEXT",
    "SAFE"
  ]
}
```

### InterfaceConfigMessagesLoader

```json
{
  "type": "string",
  "enum": [
    "dots",
    "spinner-text",
    "matrix",
    "none"
  ],
  "x-enumNames": [
    "DOTS",
    "SPINNER_TEXT",
    "MATRIX",
    "NONE"
  ]
}
```

### InterfaceConfigSite

```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigSounds

```json
{
  "type": "object",
  "properties": {
    "chime": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigStart

```json
{
  "type": "object",
  "properties": {
    "firstTurn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigStartFirstTurn"
        }
      ]
    },
    "welcomeBanner": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigStartWelcomeBanner"
        }
      ]
    },
    "homeScreen": {
      "type": "boolean"
    },
    "starters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InterfaceConfigStartStarter"
      }
    },
    "starterDisplay": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigStartStarterDisplay"
        }
      ]
    },
    "teaser": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigStartTeaser"
        }
      ]
    },
    "autoOpen": {
      "type": "boolean"
    },
    "headline": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### InterfaceConfigStartFirstTurn

```json
{
  "type": "string",
  "enum": [
    "agent",
    "user"
  ],
  "x-enumNames": [
    "AGENT",
    "USER"
  ]
}
```

### InterfaceConfigStartStarter

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "translations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]*$"
    },
    "icon": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigIcon"
        }
      ]
    },
    "description": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  },
  "required": [
    "id"
  ]
}
```

### InterfaceConfigStartStarterDisplay

```json
{
  "type": "string",
  "enum": [
    "chips",
    "cards",
    "links"
  ],
  "x-enumNames": [
    "CHIPS",
    "CARDS",
    "LINKS"
  ]
}
```

### InterfaceConfigStartTeaser

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigStartWelcomeBanner

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "imageUrl": {
      "type": "string"
    },
    "description": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### InterfaceConfigTheme

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeMode"
        }
      ]
    },
    "glass": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeGlass"
        }
      ]
    },
    "tokens": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeTokens"
        }
      ]
    },
    "dark": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeDark"
        }
      ]
    },
    "fontUrl": {
      "type": "string"
    },
    "background": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeBackground"
        }
      ]
    }
  }
}
```

### InterfaceConfigThemeBackground

```json
{
  "type": "object",
  "properties": {
    "imageUrl": {
      "type": "string"
    },
    "fit": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeBackgroundFit"
        }
      ]
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "scope": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeBackgroundScope"
        }
      ]
    }
  }
}
```

### InterfaceConfigThemeBackgroundFit

```json
{
  "type": "string",
  "enum": [
    "cover",
    "contain",
    "tile"
  ],
  "x-enumNames": [
    "COVER",
    "CONTAIN",
    "TILE"
  ]
}
```

### InterfaceConfigThemeBackgroundScope

```json
{
  "type": "string",
  "enum": [
    "panel",
    "home"
  ],
  "x-enumNames": [
    "PANEL",
    "HOME"
  ]
}
```

### InterfaceConfigThemeColors

```json
{
  "type": "object",
  "properties": {
    "brand": {
      "type": "string"
    },
    "surface": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "textMuted": {
      "type": "string"
    },
    "border": {
      "type": "string"
    },
    "link": {
      "type": "string"
    },
    "focus": {
      "type": "string"
    },
    "headerBg": {
      "type": "string"
    },
    "headerText": {
      "type": "string"
    },
    "launcherBg": {
      "type": "string"
    },
    "launcherIcon": {
      "type": "string"
    },
    "userBubble": {
      "type": "string"
    },
    "userText": {
      "type": "string"
    },
    "agentBubble": {
      "type": "string"
    },
    "agentText": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "success": {
      "type": "string"
    },
    "warning": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeDark

```json
{
  "type": "object",
  "properties": {
    "color": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeColors"
        }
      ]
    }
  }
}
```

### InterfaceConfigThemeFont

```json
{
  "type": "object",
  "properties": {
    "family": {
      "type": "string"
    },
    "sizeBase": {
      "type": "string"
    },
    "baselineOffset": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeGlass

```json
{
  "type": "string",
  "enum": [
    "none",
    "frosted",
    "clear",
    "sheer"
  ],
  "x-enumNames": [
    "NONE",
    "FROSTED",
    "CLEAR",
    "SHEER"
  ]
}
```

### InterfaceConfigThemeMode

```json
{
  "type": "string",
  "enum": [
    "light",
    "dark",
    "system"
  ],
  "x-enumNames": [
    "LIGHT",
    "DARK",
    "SYSTEM"
  ]
}
```

### InterfaceConfigThemeMotion

```json
{
  "type": "object",
  "properties": {
    "scale": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeRadius

```json
{
  "type": "object",
  "properties": {
    "panel": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeShadow

```json
{
  "type": "object",
  "properties": {
    "panel": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeSize

```json
{
  "type": "object",
  "properties": {
    "messageMaxWidth": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeSpace

```json
{
  "type": "object",
  "properties": {
    "scale": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeTokenColors

```json
{
  "type": "object",
  "properties": {
    "brand": {
      "type": "string"
    },
    "surface": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "textMuted": {
      "type": "string"
    },
    "border": {
      "type": "string"
    },
    "link": {
      "type": "string"
    },
    "focus": {
      "type": "string"
    },
    "headerBg": {
      "type": "string"
    },
    "headerText": {
      "type": "string"
    },
    "launcherBg": {
      "type": "string"
    },
    "launcherIcon": {
      "type": "string"
    },
    "userBubble": {
      "type": "string"
    },
    "userText": {
      "type": "string"
    },
    "agentBubble": {
      "type": "string"
    },
    "agentText": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "success": {
      "type": "string"
    },
    "warning": {
      "type": "string"
    },
    "brandGradient": {
      "type": "string"
    },
    "sendButton": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigThemeTokens

```json
{
  "type": "object",
  "properties": {
    "color": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeTokenColors"
        }
      ]
    },
    "font": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeFont"
        }
      ]
    },
    "radius": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeRadius"
        }
      ]
    },
    "space": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeSpace"
        }
      ]
    },
    "shadow": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeShadow"
        }
      ]
    },
    "motion": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeMotion"
        }
      ]
    },
    "size": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigThemeSize"
        }
      ]
    }
  }
}
```

### InterfaceConfigTranscript

```json
{
  "type": "object",
  "properties": {
    "download": {
      "type": "boolean"
    }
  }
}
```

### InterfaceConfigVoice

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "callToAction": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "orb": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoiceOrb"
        }
      ]
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoiceStatus"
        }
      ]
    },
    "interrupt": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoiceInterrupt"
        }
      ]
    },
    "microphoneDenied": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoiceMicrophoneDenied"
        }
      ]
    },
    "connectionError": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigVoiceConnectionError"
        }
      ]
    }
  }
}
```

### InterfaceConfigVoiceConnectionError

```json
{
  "type": "object",
  "properties": {
    "title": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "retryLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### InterfaceConfigVoiceInterrupt

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "label": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### InterfaceConfigVoiceMicrophoneDenied

```json
{
  "type": "object",
  "properties": {
    "title": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "retryLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "continueInChatLabel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### InterfaceConfigVoiceOrb

```json
{
  "type": "object",
  "properties": {
    "preset": {
      "type": "string"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "imageUrl": {
      "type": "string"
    }
  }
}
```

### InterfaceConfigVoiceStatus

```json
{
  "type": "object",
  "properties": {
    "connecting": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "listening": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "thinking": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "speaking": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    },
    "reconnecting": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfigLocalizedText"
        }
      ]
    }
  }
}
```

### JsonSchema

```json
{
  "type": "object",
  "additionalProperties": {}
}
```

### KBDocumentCSVData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "csv"
      ],
      "x-enumNames": [
        "CSV"
      ]
    },
    "name": {
      "type": "string"
    },
    "rowsCount": {
      "type": "number"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBDocumentChunk

```json
{
  "type": "object",
  "properties": {
    "chunkID": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "chunkID",
    "content"
  ]
}
```

### KBDocumentChunkSmartChunking

```json
{
  "type": "object",
  "properties": {
    "markdownConversion": {
      "type": "boolean"
    },
    "llmBasedChunks": {
      "type": "boolean"
    },
    "llmGeneratedQ": {
      "type": "boolean"
    },
    "llmContentSummarization": {
      "type": "boolean"
    },
    "llmPrependContext": {
      "type": "boolean"
    },
    "singleChunk": {
      "type": "boolean"
    }
  }
}
```

### KBDocumentData

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/KBDocumentUrlData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentDocxData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentPDFData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentTextData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentMarkdownData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentCSVData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentXLSXData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentTableData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentSitemapData"
    },
    {
      "$ref": "#/components/schemas/KBDocumentIntegrationData"
    }
  ]
}
```

### KBDocumentDocxData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "docx"
      ],
      "x-enumNames": [
        "DOCX"
      ]
    },
    "name": {
      "type": "string"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBDocumentIntegrationConfig

```json
{
  "type": "object",
  "properties": {
    "filters": {
      "type": "object",
      "additionalProperties": {}
    },
    "preserveStructure": {
      "type": "boolean"
    },
    "importMetadata": {
      "type": "boolean"
    },
    "connection": {
      "type": "object",
      "properties": {
        "fingerprint": {
          "type": "string"
        }
      },
      "required": [
        "fingerprint"
      ]
    },
    "exclude": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "name"
        ]
      }
    }
  },
  "required": [
    "filters",
    "preserveStructure",
    "importMetadata",
    "connection",
    "exclude"
  ]
}
```

### KBDocumentIntegrationData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "integration"
      ],
      "x-enumNames": [
        "INTEGRATION"
      ]
    },
    "name": {
      "type": "string"
    },
    "source": {
      "$ref": "#/components/schemas/KnowledgeBaseDocumentIntegrationType"
    },
    "config": {
      "$ref": "#/components/schemas/KBDocumentIntegrationConfig"
    },
    "refreshRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseDocumentRefreshRate"
        }
      ]
    },
    "lastSuccessUpdate": {
      "type": "string"
    },
    "sync": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KBDocumentSitemapSync"
        }
      ]
    }
  },
  "required": [
    "type",
    "name",
    "source",
    "config"
  ]
}
```

### KBDocumentMarkdownData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "md"
      ],
      "x-enumNames": [
        "MD"
      ]
    },
    "name": {
      "type": "string"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBDocumentMetadataM2MBackup

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "metadataFieldID": {
      "type": "string"
    },
    "documentID": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "metadataFieldID",
    "documentID",
    "versionID"
  ]
}
```

### KBDocumentPDFData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "pdf"
      ],
      "x-enumNames": [
        "PDF"
      ]
    },
    "name": {
      "type": "string"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBDocumentSitemapData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "sitemap"
      ],
      "x-enumNames": [
        "SITEMAP"
      ]
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "refreshRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseDocumentRefreshRate"
        }
      ]
    },
    "refreshTime": {
      "nullable": true,
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):(00|30)$"
    },
    "refreshTimezone": {
      "nullable": true,
      "type": "string"
    },
    "lastSuccessUpdate": {
      "type": "string"
    },
    "lastRefreshScheduledFor": {
      "nullable": true,
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "patterns": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KBDocumentSitemapPatterns"
        }
      ]
    },
    "sync": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KBDocumentSitemapSync"
        }
      ]
    }
  },
  "required": [
    "type",
    "name",
    "url"
  ]
}
```

### KBDocumentSitemapPatterns

```json
{
  "type": "object",
  "properties": {
    "include": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exclude": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "include",
    "exclude"
  ]
}
```

### KBDocumentSitemapSync

```json
{
  "type": "object",
  "properties": {
    "syncedAt": {
      "type": "string"
    },
    "startedAt": {
      "nullable": true,
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "addedCount": {
      "type": "number"
    },
    "removedCount": {
      "type": "number"
    },
    "failure": {
      "nullable": true,
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        },
        "at": {
          "type": "string"
        },
        "code": {
          "allOf": [
            {
              "$ref": "#/components/schemas/KBDocumentSitemapSyncFailureCode"
            }
          ]
        }
      },
      "required": [
        "message",
        "at"
      ]
    }
  },
  "required": [
    "syncedAt",
    "addedCount",
    "removedCount"
  ]
}
```

### KBDocumentSitemapSyncFailureCode

```json
{
  "type": "string",
  "enum": [
    "documentLimit",
    "integrationDisconnected",
    "integrationUnauthorized",
    "integrationAccountChanged",
    "rateLimited"
  ],
  "x-enumNames": [
    "DOCUMENT_LIMIT",
    "INTEGRATION_DISCONNECTED",
    "INTEGRATION_UNAUTHORIZED",
    "INTEGRATION_ACCOUNT_CHANGED",
    "RATE_LIMITED"
  ]
}
```

### KBDocumentStatus

```json
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/KnowledgeBaseDocumentStatus"
    },
    "data": {}
  },
  "required": [
    "type"
  ]
}
```

### KBDocumentTableData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "table"
      ],
      "x-enumNames": [
        "TABLE"
      ]
    },
    "name": {
      "type": "string"
    },
    "rowsCount": {
      "type": "number"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name",
    "rowsCount"
  ]
}
```

### KBDocumentTextData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "text"
      ],
      "x-enumNames": [
        "TEXT"
      ]
    },
    "name": {
      "type": "string"
    },
    "canEdit": {
      "type": "boolean"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBDocumentUrlData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "url"
      ],
      "x-enumNames": [
        "URL"
      ]
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "refreshRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseDocumentRefreshRate"
        }
      ]
    },
    "refreshTime": {
      "nullable": true,
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):(00|30)$"
    },
    "refreshTimezone": {
      "nullable": true,
      "type": "string"
    },
    "lastSuccessUpdate": {
      "type": "string"
    },
    "lastRefreshScheduledFor": {
      "nullable": true,
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "contentChangedAt": {
      "type": "string"
    },
    "accessTokenID": {
      "type": "number"
    },
    "integrationExternalID": {
      "type": "string"
    },
    "source": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseDocumentIntegrationType"
        }
      ]
    },
    "sitemapDocumentID": {
      "nullable": true,
      "type": "string"
    },
    "integrationDocumentID": {
      "nullable": true,
      "type": "string"
    },
    "integrationPath": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "type",
    "name",
    "url"
  ]
}
```

### KBDocumentVersionBackup

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "documentID": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "documentID",
    "versionID",
    "folderID"
  ]
}
```

### KBDocumentXLSXData

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "xlsx"
      ],
      "x-enumNames": [
        "XLSX"
      ]
    },
    "name": {
      "type": "string"
    },
    "rowsCount": {
      "type": "number"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type",
    "name"
  ]
}
```

### KBSettingsBackup

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    },
    "summarization": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseSummarization"
        }
      ]
    },
    "chunkStrategy": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseChunkStrategy"
        }
      ]
    },
    "search": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseSearch"
        }
      ]
    },
    "embeddingModel": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseEmbeddingModel"
        }
      ]
    }
  },
  "required": [
    "id",
    "versionID",
    "summarization",
    "chunkStrategy",
    "search"
  ]
}
```

### KBSettingsChunkStrategy

```json
{
  "type": "string",
  "enum": [
    "recursive_text_splitter"
  ],
  "x-enumNames": [
    "RECURSIVE_TEXT_SPLITTER"
  ]
}
```

### KBSettingsPromptMode

```json
{
  "type": "string",
  "enum": [
    "prompt",
    "memory",
    "memory_prompt"
  ],
  "x-enumNames": [
    "PROMPT",
    "MEMORY",
    "MEMORY_PROMPT"
  ]
}
```

### KnowledgeBaseChunkStrategy

```json
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/KBSettingsChunkStrategy"
    },
    "size": {
      "type": "number"
    },
    "overlap": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "size",
    "overlap"
  ]
}
```

### KnowledgeBaseDocument

```json
{
  "type": "object",
  "properties": {
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "creatorID": {
      "type": "number"
    },
    "documentID": {
      "type": "string"
    },
    "s3ObjectRef": {
      "type": "string"
    },
    "version": {
      "type": "number"
    },
    "status": {
      "$ref": "#/components/schemas/KBDocumentStatus"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "data": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KBDocumentData"
        }
      ]
    },
    "chunks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/KBDocumentChunk"
      }
    },
    "smartChunking": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KBDocumentChunkSmartChunking"
        }
      ]
    },
    "metadata": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DocumentMetadataEntry"
      }
    }
  },
  "required": [
    "creatorID",
    "documentID",
    "status",
    "data"
  ]
}
```

### KnowledgeBaseDocumentIntegrationType

```json
{
  "type": "string",
  "enum": [
    "zendesk",
    "shopify",
    "kustomer"
  ],
  "x-enumNames": [
    "ZENDESK",
    "SHOPIFY",
    "KUSTOMER"
  ]
}
```

### KnowledgeBaseDocumentRefreshRate

```json
{
  "type": "string",
  "enum": [
    "daily",
    "weekly",
    "monthly",
    "never"
  ],
  "x-enumNames": [
    "DAILY",
    "WEEKLY",
    "MONTHLY",
    "NEVER"
  ]
}
```

### KnowledgeBaseDocumentStatus

```json
{
  "type": "string",
  "enum": [
    "ERROR",
    "PENDING",
    "SUCCESS",
    "INITIALIZED"
  ],
  "x-enumNames": [
    "ERROR",
    "PENDING",
    "SUCCESS",
    "INITIALIZED"
  ]
}
```

### KnowledgeBaseEmbeddingModel

```json
{
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "size": {
      "type": "number"
    }
  },
  "required": [
    "model",
    "size"
  ]
}
```

### KnowledgeBaseSearch

```json
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "number"
    },
    "metric": {
      "type": "string"
    }
  },
  "required": [
    "limit",
    "metric"
  ]
}
```

### KnowledgeBaseSettings

```json
{
  "type": "object",
  "properties": {
    "summarization": {
      "$ref": "#/components/schemas/KnowledgeBaseSummarization"
    },
    "chunkStrategy": {
      "$ref": "#/components/schemas/KnowledgeBaseChunkStrategy"
    },
    "search": {
      "$ref": "#/components/schemas/KnowledgeBaseSearch"
    },
    "embeddingModel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseEmbeddingModel"
        }
      ]
    }
  },
  "required": [
    "summarization",
    "chunkStrategy",
    "search"
  ]
}
```

### KnowledgeBaseSummarization

```json
{
  "type": "object",
  "properties": {
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "system": {
      "type": "string"
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    },
    "mode": {
      "$ref": "#/components/schemas/KBSettingsPromptMode"
    },
    "prompt": {
      "type": "string"
    }
  },
  "required": [
    "mode",
    "prompt"
  ]
}
```

### LLMFallbackSettings

```json
{
  "type": "object",
  "properties": {
    "models": {
      "$ref": "#/components/schemas/FallbackMapping"
    }
  },
  "required": [
    "models"
  ]
}
```

### Language

```json
{
  "type": "string",
  "enum": [
    "en-us"
  ],
  "x-enumNames": [
    "ENGLISH_US"
  ]
}
```

### LegacyCanvasNodeVisibility

```json
{
  "type": "string",
  "enum": [
    "preview",
    "all-variants"
  ],
  "x-enumNames": [
    "PREVIEW",
    "ALL_VARIANTS"
  ]
}
```

### MarkdownLikeString

```json
{
  "type": "string",
  "description": "Message text shown to the end user. Limited markdown: **bold**, _italic_, <u>underline</u>, ~~strikethrough~~, [label](url). {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \\ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here."
}
```

### McpIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "mcpServerToolID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "description",
    "mcpServerToolID"
  ]
}
```

### McpIntegrationToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "mcp-integration"
      ],
      "x-enumNames": [
        "MCP_INTEGRATION"
      ]
    },
    "toolID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "toolID"
  ]
}
```

### McpServerAuthType

```json
{
  "type": "string",
  "enum": [
    "custom",
    "oauth"
  ],
  "x-enumNames": [
    "CUSTOM",
    "OAUTH"
  ]
}
```

### McpServerOAuthMetadata

```json
{
  "type": "object",
  "properties": {
    "connected": {
      "type": "boolean"
    },
    "expiresAt": {
      "nullable": true,
      "type": "string"
    },
    "scope": {
      "nullable": true,
      "type": "string"
    },
    "authServerUrl": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "connected"
  ]
}
```

### McpServerSpecification

```json
{
  "type": "string",
  "enum": [
    "2025-03-26",
    "2025-06-18"
  ],
  "x-enumNames": [
    "V_2025_03_26",
    "V_2025_06_18"
  ]
}
```

### McpServerTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "toolName": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputSchema": {
      "$ref": "#/components/schemas/JsonSchema"
    },
    "mcpServerID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "toolName",
    "inputSchema",
    "mcpServerID"
  ]
}
```

### MediaDatatype

```json
{
  "type": "string",
  "enum": [
    "image",
    "video"
  ],
  "x-enumNames": [
    "IMAGE",
    "VIDEO"
  ]
}
```

### MicrosoftVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "microsoft"
      ],
      "x-enumNames": [
        "MICROSOFT"
      ]
    },
    "voice": {
      "type": "string"
    }
  },
  "required": [
    "provider",
    "voice"
  ]
}
```

### NativeToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "native"
      ],
      "x-enumNames": [
        "NATIVE"
      ]
    },
    "kind": {
      "$ref": "#/components/schemas/SimulationTurnTestToolNativeKind"
    }
  },
  "required": [
    "type",
    "kind"
  ]
}
```

### OnJumpProgramCommand

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "jump"
      ],
      "x-enumNames": [
        "JUMP"
      ]
    },
    "nextID": {
      "nullable": true,
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "diagramID": {
      "nullable": true,
      "type": "string"
    },
    "on": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "type",
    "nextID",
    "on"
  ]
}
```

### OnPushProgramCommand

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "push"
      ],
      "x-enumNames": [
        "PUSH"
      ]
    },
    "platform": {
      "type": "string"
    },
    "diagramID": {
      "nullable": true,
      "type": "string"
    },
    "on": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "type",
    "on"
  ]
}
```

### Persona

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PersonaItem"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "items"
  ]
}
```

### PersonaItem

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "variableID": {
      "nullable": true,
      "type": "string"
    },
    "value": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "variableID",
    "value"
  ]
}
```

### Program

```json
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "lines": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ProgramLine"
      }
    },
    "startId": {
      "type": "string"
    },
    "legacyID": {
      "type": "string"
    },
    "commands": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnyProgramCommand"
      }
    },
    "diagramID": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "updatedAt": {}
  },
  "required": [
    "_id",
    "lines",
    "startId",
    "commands",
    "diagramID",
    "versionID",
    "variables"
  ]
}
```

### ProgramLine

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "type"
  ],
  "additionalProperties": {}
}
```

### Project

```json
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "nlu": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "teamID": {
      "type": "string"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectMember"
      }
    },
    "privacy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectPrivacy"
        }
      ]
    },
    "platform": {
      "type": "string"
    },
    "_version": {
      "type": "number"
    },
    "linkType": {
      "type": "string"
    },
    "stickers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectSticker"
      }
    },
    "creatorID": {
      "type": "number"
    },
    "updatedBy": {
      "type": "number"
    },
    "createdAt": {
      "nullable": true,
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "prototype": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectPrototype"
        }
      ]
    },
    "apiPrivacy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectPrivacy"
        }
      ]
    },
    "reportTags": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ProjectReportTag"
      }
    },
    "nluSettings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectNLUSettings"
        }
      ]
    },
    "environments": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ProjectEnvironment"
      }
    },
    "platformData": {
      "type": "object",
      "additionalProperties": {}
    },
    "customThemes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectCustomTheme"
      }
    },
    "aiAssistSettings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectAIAssistSettings"
        }
      ]
    },
    "transcriptSettings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectTranscriptSettings"
        }
      ]
    },
    "analyticsSettings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectAnalyticsSettings"
        }
      ]
    },
    "objective": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectObjective"
        }
      ]
    },
    "devVersion": {
      "description": "@deprecated use environments instead with environments projects",
      "type": "string"
    },
    "liveVersion": {
      "description": "@deprecated use environments instead with environments projects",
      "type": "string"
    },
    "stagingVersion": {
      "description": "@deprecated use environments instead with environments projects",
      "type": "string"
    },
    "previewVersion": {
      "description": "@deprecated won't be used anymore with environments projects",
      "type": "string"
    },
    "knowledgeBase": {
      "description": "@deprecated not used anymore",
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionKnowledgeBase"
        }
      ]
    }
  },
  "required": [
    "_id",
    "name",
    "teamID",
    "members",
    "platform",
    "creatorID",
    "platformData"
  ]
}
```

### ProjectAIAssistSettings

```json
{
  "type": "object",
  "properties": {
    "aiPlayground": {
      "type": "boolean"
    },
    "generateStep": {
      "type": "boolean"
    },
    "generativeTasks": {
      "type": "boolean"
    },
    "generateNoMatch": {
      "type": "boolean"
    }
  },
  "additionalProperties": {}
}
```

### ProjectAnalyticsSettings

```json
{
  "type": "object",
  "properties": {
    "topics": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "enabledAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        }
      },
      "required": [
        "enabled",
        "enabledAt"
      ]
    }
  }
}
```

### ProjectCustomTheme

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "palette": {
      "$ref": "#/components/schemas/ProjectCustomThemePalette"
    },
    "standardColor": {
      "type": "string"
    }
  },
  "required": [
    "palette",
    "standardColor"
  ]
}
```

### ProjectCustomThemePalette

```json
{
  "type": "object",
  "properties": {
    "50": {
      "type": "string"
    },
    "100": {
      "type": "string"
    },
    "200": {
      "type": "string"
    },
    "300": {
      "type": "string"
    },
    "400": {
      "type": "string"
    },
    "500": {
      "type": "string"
    },
    "600": {
      "type": "string"
    },
    "700": {
      "type": "string"
    },
    "800": {
      "type": "string"
    },
    "900": {
      "type": "string"
    }
  },
  "required": [
    "50",
    "100",
    "200",
    "300",
    "400",
    "500",
    "600",
    "700",
    "800",
    "900"
  ]
}
```

### ProjectEnvironment

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "alias": {
      "type": "string"
    },
    "isMain": {
      "type": "boolean"
    },
    "releases": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectEnvironmentRelease"
      }
    },
    "createdAt": {
      "type": "string"
    },
    "draftVersionID": {
      "type": "string"
    },
    "createdByUserID": {
      "type": "number"
    },
    "clonedFromMainAt": {
      "nullable": true,
      "type": "string"
    },
    "pullBase": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectEnvironmentPullBase"
        }
      ]
    },
    "pullStatus": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectEnvironmentPullStatus"
        }
      ]
    },
    "trafficPercentage": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "nextReleaseNumber": {
      "type": "number"
    },
    "publishedVersionID": {
      "type": "string"
    },
    "draftVersionIDsHistory": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "protected": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "name",
    "alias",
    "isMain",
    "releases",
    "createdAt",
    "draftVersionID",
    "createdByUserID",
    "trafficPercentage",
    "nextReleaseNumber",
    "publishedVersionID",
    "draftVersionIDsHistory"
  ]
}
```

### ProjectEnvironmentPullBase

```json
{
  "type": "object",
  "properties": {
    "backupID": {
      "type": "number"
    },
    "versionID": {
      "type": "string"
    },
    "sourceName": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "backupID",
    "versionID",
    "sourceName",
    "createdAt"
  ]
}
```

### ProjectEnvironmentPullConflict

```json
{
  "type": "object",
  "properties": {
    "collection": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "collection",
    "id",
    "name"
  ]
}
```

### ProjectEnvironmentPullStatus

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "running",
        "succeeded",
        "failed"
      ],
      "x-enumNames": [
        "RUNNING",
        "SUCCEEDED",
        "FAILED"
      ]
    },
    "actionID": {
      "type": "string"
    },
    "error": {
      "nullable": true,
      "type": "string"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "finishedAt": {
      "nullable": true,
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "startedByUserID": {
      "type": "number"
    },
    "sourceBackupID": {
      "nullable": true,
      "type": "number"
    },
    "sourceVersionID": {
      "type": "string"
    },
    "sourceName": {
      "type": "string"
    },
    "draftVersionID": {
      "nullable": true,
      "type": "string"
    },
    "summary": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectEnvironmentPullSummary"
        }
      ]
    },
    "conflicts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectEnvironmentPullConflict"
      }
    }
  },
  "required": [
    "status",
    "actionID",
    "error",
    "startedAt",
    "finishedAt",
    "startedByUserID",
    "sourceBackupID",
    "sourceVersionID",
    "sourceName",
    "draftVersionID",
    "summary",
    "conflicts"
  ]
}
```

### ProjectEnvironmentPullSummary

```json
{
  "type": "object",
  "properties": {
    "added": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "overwritten": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "deleted": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "conflicted": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "retained": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "dropped": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "renamed": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "added",
    "overwritten",
    "deleted",
    "conflicted",
    "retained",
    "dropped",
    "renamed"
  ]
}
```

### ProjectEnvironmentRelease

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "backupID": {
      "type": "number"
    },
    "createdAt": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "autogenerated": {
      "type": "boolean"
    },
    "createdByUserID": {
      "nullable": true,
      "type": "number"
    },
    "pullBase": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ProjectEnvironmentPullBase"
        }
      ]
    }
  },
  "required": [
    "name",
    "backupID",
    "createdAt",
    "versionID",
    "description",
    "autogenerated",
    "createdByUserID"
  ]
}
```

### ProjectFramework

```json
{
  "type": "string",
  "enum": [
    "agentic",
    "conversation"
  ],
  "x-enumNames": [
    "AGENTIC",
    "CONVERSATION"
  ]
}
```

### ProjectMember

```json
{
  "type": "object",
  "properties": {
    "creatorID": {
      "type": "number"
    },
    "platformData": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "creatorID",
    "platformData"
  ]
}
```

### ProjectNLUSettings

```json
{
  "type": "object",
  "properties": {
    "classifyStrategy": {
      "type": "string"
    }
  },
  "additionalProperties": {}
}
```

### ProjectObjective

```json
{
  "type": "string",
  "enum": [
    "resolution",
    "deflection",
    "customer-satisfaction",
    "conversion"
  ],
  "x-enumNames": [
    "RESOLUTION",
    "DEFLECTION",
    "CUSTOMER_SATISFACTION",
    "CONVERSION"
  ]
}
```

### ProjectPrivacy

```json
{
  "type": "string",
  "enum": [
    "public",
    "private"
  ],
  "x-enumNames": [
    "PUBLIC",
    "PRIVATE"
  ]
}
```

### ProjectPrototype

```json
{
  "type": "object",
  "properties": {
    "nlp": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "LUIS"
              ],
              "x-enumNames": [
                "LUIS"
              ]
            },
            "appID": {
              "type": "string"
            },
            "resourceID": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "appID"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "VFNLU"
              ],
              "x-enumNames": [
                "VFNLU"
              ]
            }
          },
          "required": [
            "type"
          ]
        }
      ]
    },
    "data": {},
    "trainedModel": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PrototypeModel"
        }
      ]
    },
    "lastTrainedTime": {
      "type": "number"
    }
  },
  "required": [
    "nlp",
    "data"
  ]
}
```

### ProjectReportTag

```json
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string"
    },
    "tagID": {
      "type": "string"
    }
  },
  "required": [
    "label",
    "tagID"
  ]
}
```

### ProjectSticker

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "url"
  ]
}
```

### ProjectTranscriptSettings

```json
{
  "type": "object",
  "properties": {
    "inactiveTimeout": {
      "default": 10,
      "type": "number",
      "minimum": 10,
      "maximum": 60
    },
    "saveTestTranscripts": {
      "type": "boolean"
    },
    "saveTranscriptsWithNoInteraction": {
      "default": true,
      "type": "boolean"
    }
  },
  "required": [
    "saveTestTranscripts"
  ]
}
```

### PromptSettings

```json
{
  "type": "object",
  "properties": {
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AIModel"
        }
      ]
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "responseFormat": {
      "type": "string"
    },
    "reasoningEffort": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        }
      ]
    },
    "serviceTier": {
      "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AIParamsServiceTier"
        }
      ]
    },
    "useStructuredOutput": {
      "type": "boolean"
    }
  }
}
```

### PronunciationDictionaryEntry

```json
{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "to": {
      "type": "string",
      "maxLength": 128
    }
  },
  "required": [
    "from",
    "to"
  ]
}
```

### PrototypeIntent

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeIntentSlot"
      }
    },
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeIntentInput"
      }
    },
    "noteID": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "key",
    "name",
    "inputs"
  ]
}
```

### PrototypeIntentInput

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "text"
  ]
}
```

### PrototypeIntentSlot

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "dialog": {
      "$ref": "#/components/schemas/PrototypeIntentSlotDialog"
    },
    "required": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "dialog",
    "required"
  ]
}
```

### PrototypeIntentSlotDialog

```json
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "array",
      "items": {}
    },
    "confirm": {
      "type": "array",
      "items": {}
    },
    "utterances": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeIntentInput"
      }
    },
    "confirmEnabled": {
      "type": "boolean"
    }
  },
  "required": [
    "prompt",
    "confirm",
    "utterances",
    "confirmEnabled"
  ]
}
```

### PrototypeModel

```json
{
  "type": "object",
  "properties": {
    "slots": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeSlot"
      }
    },
    "intents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeIntent"
      }
    }
  },
  "required": [
    "slots",
    "intents"
  ]
}
```

### PrototypeSlot

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        }
      }
    },
    "color": {
      "type": "string"
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "key",
    "name",
    "type",
    "inputs"
  ]
}
```

### RequiredEntity

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "intentID": {
      "type": "string"
    },
    "entityID": {
      "type": "string"
    },
    "repromptID": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "intentID",
    "entityID",
    "repromptID"
  ]
}
```

### ResponseSimulationTurnTest

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "response"
      ],
      "x-enumNames": [
        "RESPONSE"
      ]
    },
    "turnID": {
      "type": "string"
    },
    "payload": {
      "$ref": "#/components/schemas/ResponseSimulationTurnTestPayload"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "turnID",
    "payload"
  ]
}
```

### ResponseSimulationTurnTestPayload

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/SimulationTurnTestJudgeEqual"
    },
    {
      "$ref": "#/components/schemas/SimulationTurnTestJudgeLLMEval"
    }
  ]
}
```

### RimelabsVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "rimelabs"
      ],
      "x-enumNames": [
        "RIMELABS"
      ]
    },
    "model": {
      "type": "string"
    },
    "voice": {
      "type": "string"
    },
    "language": {
      "type": "string"
    }
  },
  "required": [
    "provider",
    "voice"
  ]
}
```

### RoutingSimulationTurnTest

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "routing"
      ],
      "x-enumNames": [
        "ROUTING"
      ]
    },
    "turnID": {
      "type": "string"
    },
    "payload": {
      "$ref": "#/components/schemas/RoutingSimulationTurnTestPayload"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "turnID",
    "payload"
  ]
}
```

### RoutingSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "routeTo": {
      "nullable": true,
      "type": "object",
      "properties": {
        "resourceID": {
          "type": "string"
        },
        "resourceType": {
          "$ref": "#/components/schemas/SimulationTurnTestResourceType"
        }
      },
      "required": [
        "resourceID",
        "resourceType"
      ]
    },
    "shouldRoute": {
      "type": "boolean"
    }
  },
  "required": [
    "routeTo",
    "shouldRoute"
  ]
}
```

### STTSettings

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/ElevenLabsSTTSettings"
    },
    {
      "$ref": "#/components/schemas/DeepgramSTTSettings"
    },
    {
      "$ref": "#/components/schemas/AssemblyAISTTSettings"
    },
    {
      "$ref": "#/components/schemas/CartesiaSTTSettings"
    },
    {
      "$ref": "#/components/schemas/GladiaSTTSettings"
    },
    {
      "$ref": "#/components/schemas/GoogleSTTSettings"
    },
    {
      "$ref": "#/components/schemas/SonioxSTTSettings"
    }
  ]
}
```

### Secret

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "visibility": {
      "$ref": "#/components/schemas/SecretVisibility"
    },
    "hasValue": {
      "type": "boolean"
    },
    "assistantID": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    }
  },
  "required": [
    "id",
    "name",
    "visibility",
    "assistantID",
    "createdAt",
    "updatedAt",
    "updatedByID"
  ]
}
```

### SecretVisibility

```json
{
  "type": "string",
  "enum": [
    "restricted",
    "masked"
  ],
  "x-enumNames": [
    "RESTRICTED",
    "MASKED"
  ]
}
```

### Simulation

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "settings": {
      "$ref": "#/components/schemas/SimulationSettings"
    },
    "turnOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "settings",
    "turnOrder"
  ]
}
```

### SimulationSettings

```json
{
  "type": "object",
  "properties": {
    "launchEvent": {
      "nullable": true,
      "type": "string"
    },
    "variableStates": {
      "default": [],
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/PersonaItem"
          }
        }
      ]
    }
  },
  "required": [
    "launchEvent"
  ]
}
```

### SimulationSimulationTurn

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "simulation"
      ],
      "x-enumNames": [
        "SIMULATION"
      ]
    },
    "payload": {
      "$ref": "#/components/schemas/SimulationSimulationTurnPayload"
    },
    "testOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "simulationID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "payload",
    "testOrder",
    "simulationID"
  ]
}
```

### SimulationSimulationTurnPayload

```json
{
  "type": "object",
  "properties": {
    "scenario": {
      "type": "string"
    },
    "maxTurns": {
      "type": "number"
    },
    "variableStates": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/PersonaItem"
          }
        }
      ]
    },
    "successCriteria": {
      "type": "string"
    }
  },
  "required": [
    "scenario",
    "maxTurns",
    "variableStates",
    "successCriteria"
  ]
}
```

### SimulationTurn

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/UserSimulationTurn"
    },
    {
      "$ref": "#/components/schemas/AgentSimulationTurn"
    },
    {
      "$ref": "#/components/schemas/SimulationSimulationTurn"
    }
  ]
}
```

### SimulationTurnTest

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/ToolSimulationTurnTest"
    },
    {
      "$ref": "#/components/schemas/RoutingSimulationTurnTest"
    },
    {
      "$ref": "#/components/schemas/ResponseSimulationTurnTest"
    }
  ]
}
```

### SimulationTurnTestJudgeEqual

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "equal"
      ],
      "x-enumNames": [
        "EQUAL"
      ]
    },
    "value": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "value"
  ]
}
```

### SimulationTurnTestJudgeLLMEval

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "llm_eval"
      ],
      "x-enumNames": [
        "LLM_EVAL"
      ]
    },
    "prompt": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "prompt"
  ]
}
```

### SimulationTurnTestResourceType

```json
{
  "type": "string",
  "enum": [
    "flow",
    "agent"
  ],
  "x-enumNames": [
    "FLOW",
    "AGENT"
  ]
}
```

### SimulationTurnTestToolNativeKind

```json
{
  "type": "string",
  "enum": [
    "end",
    "card",
    "button",
    "carousel",
    "skip-turn",
    "web-search",
    "call-forward",
    "knowledge-base"
  ],
  "x-enumNames": [
    "END",
    "CARD",
    "BUTTON",
    "CAROUSEL",
    "SKIP_TURN",
    "WEB_SEARCH",
    "CALL_FORWARD",
    "KNOWLEDGE_BASE"
  ]
}
```

### SonioxSTTLanguage

```json
{
  "type": "string",
  "enum": [
    "auto",
    "af",
    "sq",
    "ar",
    "az",
    "eu",
    "be",
    "bn",
    "bs",
    "bg",
    "ca",
    "zh",
    "hr",
    "cs",
    "da",
    "nl",
    "en",
    "et",
    "fi",
    "fr",
    "gl",
    "de",
    "el",
    "gu",
    "he",
    "hi",
    "hu",
    "id",
    "it",
    "ja",
    "kn",
    "kk",
    "ko",
    "lv",
    "lt",
    "mk",
    "ms",
    "ml",
    "mr",
    "no",
    "fa",
    "pl",
    "pt",
    "pa",
    "ro",
    "ru",
    "sr",
    "sk",
    "sl",
    "es",
    "sw",
    "sv",
    "tl",
    "ta",
    "te",
    "th",
    "tr",
    "uk",
    "ur",
    "vi",
    "cy"
  ],
  "x-enumNames": [
    "AUTO",
    "AFRIKAANS",
    "ALBANIAN",
    "ARABIC",
    "AZERBAIJANI",
    "BASQUE",
    "BELARUSIAN",
    "BENGALI",
    "BOSNIAN",
    "BULGARIAN",
    "CATALAN",
    "CHINESE",
    "CROATIAN",
    "CZECH",
    "DANISH",
    "DUTCH",
    "ENGLISH",
    "ESTONIAN",
    "FINNISH",
    "FRENCH",
    "GALICIAN",
    "GERMAN",
    "GREEK",
    "GUJARATI",
    "HEBREW",
    "HINDI",
    "HUNGARIAN",
    "INDONESIAN",
    "ITALIAN",
    "JAPANESE",
    "KANNADA",
    "KAZAKH",
    "KOREAN",
    "LATVIAN",
    "LITHUANIAN",
    "MACEDONIAN",
    "MALAY",
    "MALAYALAM",
    "MARATHI",
    "NORWEGIAN",
    "PERSIAN",
    "POLISH",
    "PORTUGUESE",
    "PUNJABI",
    "ROMANIAN",
    "RUSSIAN",
    "SERBIAN",
    "SLOVAK",
    "SLOVENIAN",
    "SPANISH",
    "SWAHILI",
    "SWEDISH",
    "TAGALOG",
    "TAMIL",
    "TELUGU",
    "THAI",
    "TURKISH",
    "UKRAINIAN",
    "URDU",
    "VIETNAMESE",
    "WELSH"
  ]
}
```

### SonioxSTTModel

```json
{
  "type": "string",
  "enum": [
    "stt-rt-v5"
  ],
  "x-enumNames": [
    "STT_RT_V_5"
  ]
}
```

### SonioxSTTSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "soniox"
      ],
      "x-enumNames": [
        "SONIOX"
      ]
    },
    "model": {
      "$ref": "#/components/schemas/SonioxSTTModel"
    },
    "maxEndpointDelayMS": {
      "type": "integer",
      "minimum": 500,
      "maximum": 3000
    },
    "endpointSensitivity": {
      "type": "number",
      "minimum": -1,
      "maximum": 1
    },
    "keyterms": {
      "type": "string"
    },
    "languages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SonioxSTTLanguage"
      }
    }
  },
  "required": [
    "provider",
    "model",
    "languages"
  ]
}
```

### SonioxVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "soniox"
      ],
      "x-enumNames": [
        "SONIOX"
      ]
    },
    "model": {
      "type": "string"
    },
    "voice": {
      "type": "string"
    },
    "language": {
      "type": "string"
    }
  },
  "required": [
    "provider",
    "voice"
  ]
}
```

### StableConditionAssertion

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "lhs": {
      "$ref": "#/components/schemas/ConditionAssertionLhs"
    },
    "rhs": {
      "$ref": "#/components/schemas/VariableReferenceString"
    },
    "operation": {
      "default": "is",
      "allOf": [
        {
          "$ref": "#/components/schemas/ConditionOperation"
        }
      ]
    }
  },
  "required": [
    "key",
    "lhs",
    "rhs"
  ]
}
```

### StableDeleteResponse

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable message confirming the deletion."
    }
  },
  "required": [
    "message"
  ]
}
```

### StableEnvironment

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "alias": {
      "type": "string",
      "description": "The URL-safe alias that identifies the environment (e.g. `main`)."
    },
    "isMain": {
      "type": "boolean",
      "description": "Whether this is the main (default) environment of the project."
    },
    "releases": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "backupID": {
            "type": "number",
            "description": "The ID of the backup that snapshots the environment for this release."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "description": {
            "nullable": true,
            "description": "An optional description of what changed in this release.",
            "type": "string"
          },
          "autogenerated": {
            "type": "boolean",
            "description": "Whether the release was created automatically by the system rather than published manually."
          }
        },
        "required": [
          "name",
          "backupID",
          "createdAt",
          "description",
          "autogenerated"
        ]
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "trafficPercentage": {
      "type": "number",
      "description": "The percentage of live traffic (0-100) currently routed to this environment."
    }
  },
  "required": [
    "name",
    "alias",
    "isMain",
    "releases",
    "createdAt",
    "trafficPercentage"
  ]
}
```

### StableEnvironmentAuditReport

```json
{
  "type": "object",
  "properties": {
    "phase1VarSetters": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "function": {
              "type": "string"
            },
            "agent": {
              "type": "string"
            },
            "output": {
              "type": "string"
            }
          },
          "required": [
            "function",
            "agent",
            "output"
          ]
        }
      }
    },
    "phase2OrphanDefaults": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "toolID": {
            "type": "string"
          },
          "function": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "defaultVar": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "toolID",
          "function",
          "agent",
          "input",
          "defaultVar",
          "note"
        ]
      }
    },
    "phase3ShouldFulfillWithCanonicalSource": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "toolID": {
            "type": "string"
          },
          "function": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "suggestedDefaultVar": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "toolID",
          "function",
          "agent",
          "input",
          "suggestedDefaultVar",
          "note"
        ]
      }
    },
    "phase4UncapturedOutputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "function": {
            "type": "string"
          },
          "output": {
            "type": "string"
          },
          "toolCount": {
            "type": "number"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "function",
          "output",
          "toolCount",
          "note"
        ]
      }
    },
    "phase5MalformedWiring": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "toolID": {
            "type": "string"
          },
          "function": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "input": {
            "type": "string"
          },
          "issue": {
            "type": "string"
          },
          "current": {
            "type": "string"
          },
          "shouldBe": {
            "type": "string"
          }
        },
        "required": [
          "toolID",
          "function",
          "agent",
          "input",
          "issue",
          "current",
          "shouldBe"
        ]
      }
    },
    "phase6SuggestedCaptures": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "function": {
            "type": "string"
          },
          "output": {
            "type": "string"
          },
          "suggestedVar": {
            "type": "string"
          },
          "currentCapturesTo": {
            "nullable": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "function",
          "output",
          "suggestedVar",
          "currentCapturesTo",
          "note"
        ]
      }
    },
    "phase7SideEffectOnly": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "function": {
            "type": "string"
          },
          "agents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "function",
          "agents",
          "note"
        ]
      }
    },
    "phase8OrphanFunctions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "function": {
            "type": "string"
          },
          "inputCount": {
            "type": "number"
          },
          "outputCount": {
            "type": "number"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "function",
          "inputCount",
          "outputCount",
          "note"
        ]
      }
    },
    "phase9ArgsSecretsReads": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "function": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agent": {
                  "type": "string"
                },
                "toolID": {
                  "type": "string"
                }
              },
              "required": [
                "agent",
                "toolID"
              ]
            }
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "function",
          "attachments",
          "note"
        ]
      }
    },
    "phase10EmptyToolDescriptions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "toolID": {
            "type": "string"
          },
          "function": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "toolID",
          "function",
          "agent",
          "note"
        ]
      }
    }
  },
  "required": [
    "phase1VarSetters",
    "phase2OrphanDefaults",
    "phase3ShouldFulfillWithCanonicalSource",
    "phase4UncapturedOutputs",
    "phase5MalformedWiring",
    "phase6SuggestedCaptures",
    "phase7SideEffectOnly",
    "phase8OrphanFunctions",
    "phase9ArgsSecretsReads",
    "phase10EmptyToolDescriptions"
  ],
  "description": "One list per check. Each entry names the function, agent or tool it is about and says why."
}
```

### StableEnvironmentAuditResponse

```json
{
  "type": "object",
  "properties": {
    "audit": {
      "$ref": "#/components/schemas/StableEnvironmentAuditReport"
    }
  },
  "required": [
    "audit"
  ]
}
```

### StableEnvironmentCloneRequest

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The display name of the new environment."
    },
    "alias": {
      "type": "string",
      "description": "Short URL-safe identifier; cannot be 'main' (reserved)."
    }
  },
  "required": [
    "name",
    "alias"
  ],
  "additionalProperties": false
}
```

### StableEnvironmentCompileResponse

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable message confirming the update."
    },
    "durationMs": {
      "type": "number",
      "description": "How long the compilation took, in milliseconds."
    }
  },
  "required": [
    "message",
    "durationMs"
  ]
}
```

### StableEnvironmentDiffChange

```json
{
  "type": "string",
  "enum": [
    "created",
    "updated",
    "deleted"
  ],
  "x-enumNames": [
    "CREATED",
    "UPDATED",
    "DELETED"
  ]
}
```

### StableEnvironmentDiffReport

```json
{
  "type": "object",
  "properties": {
    "created": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "updated": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "deleted": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableEnvironmentDiffResource"
      },
      "description": "The changed resources. Capped; `truncated` says when the list was cut. The three counts are always exact."
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "created",
    "updated",
    "deleted",
    "resources",
    "truncated"
  ]
}
```

### StableEnvironmentDiffResource

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "change": {
      "$ref": "#/components/schemas/StableEnvironmentDiffChange"
    }
  },
  "required": [
    "type",
    "id",
    "name",
    "change"
  ]
}
```

### StableEnvironmentDiffResponse

```json
{
  "type": "object",
  "properties": {
    "diff": {
      "$ref": "#/components/schemas/StableEnvironmentDiffReport"
    }
  },
  "required": [
    "diff"
  ]
}
```

### StableEnvironmentExportResponseV2

```json
{
  "description": "A full export of the environment. Rich text is rendered as a string, with {name} for a variable, entity or secret reference and `name` for a tool, playbook or workflow reference. A chat-text leaf (a tool message example, a card or attachment description, a static no-match or no-reply prompt) carries markdown marks and escapes a literal *, _, ~, [, <u> or </u> with a backslash, as a message read does. A prompt leaf (instructions, persona, guidelines) carries markdown. Every other leaf is plain text with {name} references, no marks and no escapes: a URL, a header, query or body value, a default value, a condition operand, a set value, a code leaf, and an utterance leaf (entity references only). Outside a prompt-kind leaf, a variable, entity or secret whose name is outside the token grammar (letters, digits and underscores, at most 64 characters) renders as its id. A secret inside a prompt-kind leaf renders as its id rather than its name, matching the dedicated agent read. Inside diagrams{}.nodes{}.data only the node types whose data carries rich text are rendered; every other node type ships in its stored object form. messages[] and prompts[] carry the same objects the message and prompt get reads return, rendered the same way, so the text fields of an item can be written back unchanged. The whole item cannot: the write schemas refuse its id, timestamps and user IDs. Read-only.",
  "allOf": [
    {
      "$ref": "#/components/schemas/StableExportAssistantExportDataV2"
    }
  ]
}
```

### StableEnvironmentListResponse

```json
{
  "type": "object",
  "properties": {
    "environments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableEnvironment"
      }
    }
  },
  "required": [
    "environments"
  ]
}
```

### StableEnvironmentMergeRequest

```json
{
  "type": "object",
  "properties": {
    "sourceEnvironmentAlias": {
      "type": "string",
      "description": "The alias of the environment whose changes are merged."
    },
    "targetEnvironmentAlias": {
      "type": "string",
      "description": "The alias of the environment that receives the merged changes."
    },
    "removeSourceEnvironment": {
      "default": false,
      "description": "If true, the source environment is deleted after the merge.",
      "type": "boolean"
    }
  },
  "required": [
    "sourceEnvironmentAlias",
    "targetEnvironmentAlias"
  ],
  "additionalProperties": false
}
```

### StableEnvironmentMergeResponse

```json
{
  "type": "object",
  "properties": {
    "sourceEnvironment": {
      "$ref": "#/components/schemas/StableEnvironment"
    },
    "targetEnvironment": {
      "$ref": "#/components/schemas/StableEnvironment"
    },
    "targetRelease": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "backupID": {
          "type": "number",
          "description": "The ID of the backup that snapshots the environment for this release."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        },
        "description": {
          "nullable": true,
          "description": "An optional description of what changed in this release.",
          "type": "string"
        },
        "autogenerated": {
          "type": "boolean",
          "description": "Whether the release was created automatically by the system rather than published manually."
        }
      },
      "required": [
        "name",
        "backupID",
        "createdAt",
        "description",
        "autogenerated"
      ]
    }
  },
  "required": [
    "sourceEnvironment",
    "targetEnvironment",
    "targetRelease"
  ]
}
```

### StableEnvironmentPublishRequest

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the release created by publishing."
    },
    "description": {
      "default": null,
      "description": "An optional description of what changed in this release.",
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
```

### StableEnvironmentPublishResponse

```json
{
  "type": "object",
  "properties": {
    "environment": {
      "$ref": "#/components/schemas/StableEnvironment"
    },
    "release": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "backupID": {
          "type": "number",
          "description": "The ID of the backup that snapshots the environment for this release."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        },
        "description": {
          "nullable": true,
          "description": "An optional description of what changed in this release.",
          "type": "string"
        },
        "autogenerated": {
          "type": "boolean",
          "description": "Whether the release was created automatically by the system rather than published manually."
        }
      },
      "required": [
        "name",
        "backupID",
        "createdAt",
        "description",
        "autogenerated"
      ]
    }
  },
  "required": [
    "environment",
    "release"
  ]
}
```

### StableEnvironmentResponse

```json
{
  "type": "object",
  "properties": {
    "environment": {
      "$ref": "#/components/schemas/StableEnvironment"
    }
  },
  "required": [
    "environment"
  ]
}
```

### StableEnvironmentSearchTextReadResponse

```json
{
  "type": "object",
  "properties": {
    "hits": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableSearchTextHit"
      }
    },
    "totalMatches": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Matches in everything searched, not only this page."
    },
    "byResourceType": {
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "description": "Matching lines per resource type, in everything searched."
    },
    "hasMore": {
      "type": "boolean"
    },
    "nextOffset": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "incomplete": {
      "description": "Present when the search did not read everything: it stopped at its time limit, or a regular expression read only the first 1,000 characters of a longer line. The counts cover only what it read.",
      "type": "boolean",
      "enum": [
        true
      ],
      "x-enumNames": [
        "TRUE"
      ]
    },
    "notSearched": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What this search never reads."
    }
  },
  "required": [
    "hits",
    "totalMatches",
    "byResourceType",
    "hasMore",
    "notSearched"
  ]
}
```

### StableEnvironmentSearchTextRequest

```json
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "The word, phrase or ID to find. With regex, a JavaScript regular expression."
    },
    "regex": {
      "description": "Read pattern as a regular expression. Default false: literal text.",
      "type": "boolean"
    },
    "ignoreCase": {
      "description": "Ignore case. Default true.",
      "type": "boolean"
    },
    "wholeWord": {
      "description": "Match only where no letter, digit or underscore touches the match on either side. Default false.",
      "type": "boolean"
    },
    "resourceTypes": {
      "description": "Search only these kinds of resource. Default: all of them.",
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableSearchResourceType"
      }
    },
    "limit": {
      "description": "Hits per page. Default 50.",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "offset": {
      "description": "Hits to skip: nextOffset from the previous page.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "pattern"
  ],
  "additionalProperties": false
}
```

### StableEnvironmentUpdateRequest

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

### StableEnvironmentUpdateTrafficSplitRequest

```json
{
  "type": "object",
  "properties": {
    "traffic": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "minimum": 0,
        "maximum": 100
      },
      "description": "Map of environmentAlias → traffic percentage (0-100). Values must sum to 100."
    }
  },
  "required": [
    "traffic"
  ],
  "additionalProperties": false
}
```

### StableExportAPITool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "url": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "body": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAPIToolBody"
        }
      ]
    },
    "image": {
      "nullable": true,
      "type": "string"
    },
    "headers": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAPIToolKeyValue"
      }
    },
    "httpMethod": {
      "$ref": "#/components/schemas/APIToolHTTPMethodType"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "queryParameters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAPIToolKeyValue"
      }
    },
    "settings": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/APIToolSettings"
        }
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "url",
    "body",
    "image",
    "headers",
    "httpMethod",
    "description",
    "queryParameters"
  ]
}
```

### StableExportAPIToolBody

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/StableExportAPIToolRawBody"
    },
    {
      "$ref": "#/components/schemas/StableExportAPIToolFormDataBody"
    },
    {
      "$ref": "#/components/schemas/StableExportAPIToolURLEncodedBody"
    }
  ]
}
```

### StableExportAPIToolFormDataBody

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "form-data"
      ],
      "x-enumNames": [
        "FORM_DATA"
      ]
    },
    "formData": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAPIToolKeyValue"
      }
    }
  },
  "required": [
    "type",
    "formData"
  ]
}
```

### StableExportAPIToolKeyValue

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "key": {
      "nullable": true,
      "type": "string"
    },
    "value": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    }
  },
  "required": [
    "id",
    "key",
    "value"
  ]
}
```

### StableExportAPIToolRawBody

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "raw-input"
      ],
      "x-enumNames": [
        "RAW_INPUT"
      ]
    },
    "contentType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/APIToolContentType"
        }
      ]
    },
    "content": {
      "$ref": "#/components/schemas/ExportTextString"
    }
  },
  "required": [
    "type",
    "content"
  ]
}
```

### StableExportAPIToolURLEncodedBody

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "url-encoded"
      ],
      "x-enumNames": [
        "URL_ENCODED"
      ]
    },
    "params": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAPIToolKeyValue"
      }
    }
  },
  "required": [
    "type",
    "params"
  ]
}
```

### StableExportAgent

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "endTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentEndTool"
        }
      ]
    },
    "settings": {
      "$ref": "#/components/schemas/AgentSettings"
    },
    "cardTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentCardTool"
        }
      ]
    },
    "isOperator": {
      "default": false,
      "type": "boolean"
    },
    "buttonTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentButtonTool"
        }
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "instructions": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "skipTurnTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/AgentSkipTurnTool"
        }
      ]
    },
    "carouselTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentCardTool"
        }
      ]
    },
    "pathToolOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "webSearchTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentWebSearchTool"
        }
      ]
    },
    "callForwardTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentCallForwardTool"
        }
      ]
    },
    "knowledgeBaseTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentKnowledgeBaseTool"
        }
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "settings",
    "description",
    "instructions",
    "pathToolOrder",
    "webSearchTool",
    "knowledgeBaseTool"
  ]
}
```

### StableExportAgentAPITool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "apiToolID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportToolNodeDataAPIInputVariable"
      }
    },
    "captureResponse": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolNodeDataAPICaptureResponse"
      }
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "agentID": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "asyncExecution": {
      "default": false,
      "type": "boolean"
    },
    "captureInputVariables": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/AgentToolCaptureInputVariable"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "apiToolID",
    "description",
    "inputVariables",
    "agentID"
  ]
}
```

### StableExportAgentButtonTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportAgentCallForwardTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "address": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "extension": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "addressType": {
      "$ref": "#/components/schemas/CallForwardAddressType"
    },
    "callerIDPassthrough": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled",
    "address",
    "description",
    "addressType"
  ]
}
```

### StableExportAgentCardTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportAgentEndTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportAgentFunctionTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "functionID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportToolNodeDataFunctionInputVariable"
      }
    },
    "captureResponse": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolNodeDataFunctionCaptureResponse"
      }
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "agentID": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "asyncExecution": {
      "default": false,
      "type": "boolean"
    },
    "captureInputVariables": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/AgentToolCaptureInputVariable"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "functionID",
    "description",
    "inputVariables",
    "agentID"
  ]
}
```

### StableExportAgentIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportToolNodeDataIntegrationStoredInputVariable"
      }
    },
    "captureResponse": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolNodeDataIntegrationCaptureResponse"
      }
    },
    "integrationToolID": {
      "type": "string"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "agentID": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "captureInputVariables": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/AgentToolCaptureInputVariable"
      }
    },
    "extendedInputVariables": {
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolExtendedInputVariable"
      }
    },
    "extendedInputSchema": {
      "nullable": true,
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "id",
    "createdAt",
    "description",
    "inputVariables",
    "integrationToolID",
    "agentID"
  ]
}
```

### StableExportAgentKnowledgeBaseMetadataKeyFilter

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "key": {
      "type": "string"
    }
  },
  "required": [
    "key"
  ]
}
```

### StableExportAgentKnowledgeBaseTool

```json
{
  "type": "object",
  "properties": {
    "query": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentKnowledgeBaseMetadataKeyFilter"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "chunkLimit": {
      "nullable": true,
      "type": "number"
    },
    "description": {
      "type": "string"
    },
    "queryMode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AgentKnowledgeBaseToolQueryMode"
        }
      ]
    },
    "sourceUrlsCount": {
      "nullable": true,
      "type": "number",
      "minimum": 1,
      "maximum": 5
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportAgentMcpIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "inputVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportToolNodeDataMcpIntegrationInputVariable"
      }
    },
    "captureResponse": {
      "default": null,
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolNodeDataMcpIntegrationCaptureResponse"
      }
    },
    "mcpIntegrationToolID": {
      "type": "string"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "agentID": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "captureInputVariables": {
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/AgentToolCaptureInputVariable"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "description",
    "inputVariables",
    "mcpIntegrationToolID",
    "agentID",
    "captureInputVariables"
  ]
}
```

### StableExportAgentPathTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "agentID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "variableOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "name",
    "agentID",
    "description",
    "variableOrder"
  ]
}
```

### StableExportAgentToolMessages

```json
{
  "type": "object",
  "properties": {
    "generative": {
      "type": "object",
      "properties": {
        "delay": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "failure": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "execution": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "completion": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        }
      }
    },
    "delayMessageID": {
      "nullable": true,
      "type": "string"
    },
    "failureMessageID": {
      "nullable": true,
      "type": "string"
    },
    "executionMessageID": {
      "nullable": true,
      "type": "string"
    },
    "completionMessageID": {
      "nullable": true,
      "type": "string"
    },
    "delayMessageSeconds": {
      "nullable": true,
      "type": "number"
    }
  },
  "required": [
    "delayMessageID",
    "failureMessageID",
    "executionMessageID",
    "completionMessageID",
    "delayMessageSeconds"
  ]
}
```

### StableExportAgentWebSearchTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportAgentToolMessages"
        }
      ]
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "allowedDomains": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceUrlsCount": {
      "nullable": true,
      "type": "number",
      "minimum": 1,
      "maximum": 5
    }
  },
  "required": [
    "enabled"
  ]
}
```

### StableExportAnyAttachment

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/StableExportCardAttachment"
    },
    {
      "$ref": "#/components/schemas/StableExportMediaAttachment"
    }
  ]
}
```

### StableExportAssistantExportDataV2

```json
{
  "type": "object",
  "properties": {
    "secrets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Secret"
      }
    },
    "project": {
      "$ref": "#/components/schemas/Project"
    },
    "_version": {
      "x-speakeasy-name-override": "schemaVersion",
      "type": "string"
    },
    "programs": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/Program"
      }
    },
    "assistant": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/Assistant"
        }
      ]
    },
    "variableStates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VariableState"
      }
    },
    "transcriptEvaluations": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Name of the evaluation."
              },
              "description": {
                "description": "Description of the evaluation.",
                "nullable": true,
                "type": "string",
                "maxLength": 250
              },
              "enabled": {
                "type": "boolean",
                "description": "When enabled, evaluations will be run on every new transcript."
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes how the LLM should apply this evaluation."
              },
              "settings": {
                "description": "The model settings passed when invoking this evaluation.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationSettings"
                  }
                ]
              },
              "runScope": {
                "description": "Which transcripts this evaluation runs on automatically, by the publish state of their version.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationRunScope"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "boolean"
                ],
                "description": "The type of binary evaluations.",
                "x-enumNames": [
                  "BOOLEAN"
                ]
              },
              "truePrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes which transcripts should evaluate as 'true'."
              },
              "falsePrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes which transcripts should evaluate as 'false'."
              },
              "systemTag": {
                "nullable": true,
                "type": "string",
                "maxLength": 255
              },
              "id": {
                "type": "string"
              },
              "default": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "enabled",
              "prompt",
              "type",
              "truePrompt",
              "falsePrompt",
              "default"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Name of the evaluation."
              },
              "description": {
                "description": "Description of the evaluation.",
                "nullable": true,
                "type": "string",
                "maxLength": 250
              },
              "enabled": {
                "type": "boolean",
                "description": "When enabled, evaluations will be run on every new transcript."
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes how the LLM should apply this evaluation."
              },
              "settings": {
                "description": "The model settings passed when invoking this evaluation.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationSettings"
                  }
                ]
              },
              "runScope": {
                "description": "Which transcripts this evaluation runs on automatically, by the publish state of their version.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationRunScope"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "number"
                ],
                "description": "The type of rating evaluations.",
                "x-enumNames": [
                  "NUMBER"
                ]
              },
              "minimumValue": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The lowest rating that can be applied."
              },
              "minimumPrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes which transcripts should receive lower ratings."
              },
              "maximumValue": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The highest rating that can be applied."
              },
              "maximumPrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes which transcripts should receive higher ratings."
              },
              "systemTag": {
                "nullable": true,
                "type": "string",
                "maxLength": 255
              },
              "id": {
                "type": "string"
              },
              "default": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "enabled",
              "prompt",
              "type",
              "minimumValue",
              "minimumPrompt",
              "maximumValue",
              "maximumPrompt",
              "default"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Name of the evaluation."
              },
              "description": {
                "description": "Description of the evaluation.",
                "nullable": true,
                "type": "string",
                "maxLength": 250
              },
              "enabled": {
                "type": "boolean",
                "description": "When enabled, evaluations will be run on every new transcript."
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes how the LLM should apply this evaluation."
              },
              "settings": {
                "description": "The model settings passed when invoking this evaluation.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationSettings"
                  }
                ]
              },
              "runScope": {
                "description": "Which transcripts this evaluation runs on automatically, by the publish state of their version.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationRunScope"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "string"
                ],
                "description": "The type of text evaluations.",
                "x-enumNames": [
                  "STRING"
                ]
              },
              "systemTag": {
                "nullable": true,
                "type": "string",
                "maxLength": 255
              },
              "id": {
                "type": "string"
              },
              "default": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "enabled",
              "prompt",
              "type",
              "default"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Name of the evaluation."
              },
              "description": {
                "description": "Description of the evaluation.",
                "nullable": true,
                "type": "string",
                "maxLength": 250
              },
              "enabled": {
                "type": "boolean",
                "description": "When enabled, evaluations will be run on every new transcript."
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "description": "This prompt describes how the LLM should apply this evaluation."
              },
              "settings": {
                "description": "The model settings passed when invoking this evaluation.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationSettings"
                  }
                ]
              },
              "runScope": {
                "description": "Which transcripts this evaluation runs on automatically, by the publish state of their version.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TranscriptEvaluationRunScope"
                  }
                ]
              },
              "type": {
                "type": "string",
                "enum": [
                  "option"
                ],
                "description": "The type of options evaluations.",
                "x-enumNames": [
                  "OPTION"
                ]
              },
              "options": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TranscriptEvaluationOptionSchema"
                },
                "description": "The options that should be evaluated for."
              },
              "systemTag": {
                "nullable": true,
                "type": "string",
                "maxLength": 255
              },
              "id": {
                "type": "string"
              },
              "default": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "enabled",
              "prompt",
              "type",
              "options",
              "default"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "version": {
      "$ref": "#/components/schemas/StableExportVersion"
    },
    "diagrams": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportDiagram"
      }
    },
    "intents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Intent"
      }
    },
    "utterances": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportUtterance"
      }
    },
    "requiredEntities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RequiredEntity"
      }
    },
    "functions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Function"
      }
    },
    "functionPaths": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FunctionPath"
      }
    },
    "functionVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FunctionVariable"
      }
    },
    "flows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Flow"
      }
    },
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgent"
      }
    },
    "agentAPITools": {
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentAPITool"
      }
    },
    "agentFlowTools": {
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentFlowTool"
      }
    },
    "agentPathTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentPathTool"
      }
    },
    "agentFunctionTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentFunctionTool"
      }
    },
    "agentIntegrationTools": {
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentIntegrationTool"
      }
    },
    "agentFlowToolVariables": {
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentFlowToolVariable"
      }
    },
    "agentPathToolVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentPathToolVariable"
      }
    },
    "agentMcpIntegrationTools": {
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAgentMcpIntegrationTool"
      }
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Event"
      }
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Entity"
      }
    },
    "entityVariants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EntityVariant"
      }
    },
    "folders": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Folder"
      }
    },
    "apiTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAPITool"
      }
    },
    "apiToolInputVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/APIToolInputVariable"
      }
    },
    "simulations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Simulation"
      }
    },
    "simulationTurns": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SimulationTurn"
      }
    },
    "simulationTurnTests": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SimulationTurnTest"
      }
    },
    "variables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Variable"
      }
    },
    "workflows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Workflow"
      }
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportAnyAttachment"
      }
    },
    "cardButtons": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCardButton"
      }
    },
    "integrationTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/IntegrationTool"
      }
    },
    "mcpIntegrationTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/McpIntegrationTool"
      }
    },
    "mcpServers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "updatedByID": {
            "type": "number"
          },
          "assistantID": {
            "type": "string"
          },
          "environmentID": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "folderID": {
            "nullable": true,
            "type": "string"
          },
          "createdByID": {
            "type": "number"
          },
          "image": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "description": {
            "default": null,
            "nullable": true,
            "type": "string"
          },
          "specification": {
            "default": "2025-03-26",
            "allOf": [
              {
                "$ref": "#/components/schemas/McpServerSpecification"
              }
            ]
          },
          "url": {
            "default": null,
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ExportTextString"
              }
            ]
          },
          "headers": {
            "default": null,
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StableExportMcpServerHeaderEntry"
            }
          },
          "authType": {
            "default": "custom",
            "allOf": [
              {
                "$ref": "#/components/schemas/McpServerAuthType"
              }
            ]
          },
          "oauthMetadata": {
            "default": null,
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/McpServerOAuthMetadata"
              }
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "updatedByID",
          "assistantID",
          "name",
          "folderID",
          "createdByID"
        ]
      }
    },
    "mcpServerTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/McpServerTool"
      }
    },
    "personas": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Persona"
      }
    },
    "kbDocumentVersions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/KBDocumentVersionBackup"
      }
    },
    "kbSettings": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/KBSettingsBackup"
        }
      ]
    },
    "kbDocumentMetadataM2M": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/KBDocumentMetadataM2MBackup"
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableMessage"
      }
    },
    "prompts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StablePrompt"
      }
    }
  },
  "required": [
    "project",
    "version",
    "diagrams",
    "messages",
    "prompts"
  ]
}
```

### StableExportCardAttachment

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "card"
      ],
      "x-enumNames": [
        "CARD"
      ]
    },
    "title": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "mediaID": {
      "nullable": true,
      "type": "string"
    },
    "description": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "buttonOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "title",
    "mediaID",
    "description",
    "buttonOrder"
  ]
}
```

### StableExportCardButton

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "label": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "cardID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "label",
    "cardID"
  ]
}
```

### StableExportCompiledAgent

```json
{
  "type": "object",
  "properties": {
    "settings": {
      "$ref": "#/components/schemas/AgentSettings"
    },
    "isOperator": {
      "default": false,
      "type": "boolean"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "skipTurnTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/CompiledAgentSkipTurnTool"
        }
      ]
    },
    "name": {
      "default": "",
      "type": "string",
      "maxLength": 255
    },
    "toolName": {
      "type": "string"
    },
    "endTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentEndTool"
        }
      ]
    },
    "cardTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentCardTool"
        }
      ]
    },
    "buttonTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentButtonTool"
        }
      ]
    },
    "carouselTool": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentCarouselTool"
        }
      ]
    },
    "webSearchTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentWebSearchTool"
        }
      ]
    },
    "apiTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCompiledAgentAPITool"
      }
    },
    "flowTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledAgentFlowTool"
      }
    },
    "pathTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCompiledAgentPathTool"
      }
    },
    "instructions": {
      "nullable": true,
      "type": "string"
    },
    "functionTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCompiledAgentFunctionTool"
      }
    },
    "callForwardTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentCallForwardTool"
        }
      ]
    },
    "integrationTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCompiledAgentIntegrationTool"
      }
    },
    "knowledgeBaseTool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentKnowledgeBaseTool"
        }
      ]
    },
    "hasToolNameWarning": {
      "type": "boolean"
    },
    "mcpIntegrationTools": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCompiledAgentMcpIntegrationTool"
      }
    }
  },
  "required": [
    "settings",
    "description",
    "webSearchTool",
    "pathTools",
    "instructions",
    "functionTools",
    "knowledgeBaseTool"
  ]
}
```

### StableExportCompiledAgentAPITool

```json
{
  "type": "object",
  "properties": {
    "apiToolID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "asyncExecution": {
      "default": false,
      "type": "boolean"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledToolNodeDataVariable"
      }
    },
    "toolSound": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "captureResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "capturePropertyResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "captureInputVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "captureInputProperties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "apiToolID",
    "description",
    "variables"
  ]
}
```

### StableExportCompiledAgentButtonTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportCompiledAgentCallForwardTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "address": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "extension": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "addressType": {
      "$ref": "#/components/schemas/CallForwardAddressType"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "callerIDPassthrough": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled",
    "address",
    "description",
    "addressType"
  ]
}
```

### StableExportCompiledAgentCardTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportCompiledAgentCarouselTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportCompiledAgentEndTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportCompiledAgentFunctionTool

```json
{
  "type": "object",
  "properties": {
    "functionID": {
      "type": "string"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "asyncExecution": {
      "default": false,
      "type": "boolean"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledToolNodeDataVariable"
      }
    },
    "toolSound": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "captureResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "capturePropertyResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "captureInputVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "captureInputProperties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "functionID",
    "description",
    "variables"
  ]
}
```

### StableExportCompiledAgentIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "type": "string"
    },
    "integrationToolID": {
      "type": "string"
    },
    "extendedInputVariables": {
      "nullable": true,
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ToolExtendedInputVariable"
      }
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledToolNodeDataVariable"
      }
    },
    "toolSound": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "captureResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "capturePropertyResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "captureInputVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "captureInputProperties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "description",
    "integrationToolID",
    "variables"
  ]
}
```

### StableExportCompiledAgentKnowledgeBaseTool

```json
{
  "type": "object",
  "properties": {
    "query": {
      "nullable": true,
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledAgentKnowledgeBaseMetadataKeyFilter"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "chunkLimit": {
      "nullable": true,
      "type": "number"
    },
    "queryMode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AgentKnowledgeBaseToolQueryMode"
        }
      ]
    },
    "sourceUrlsCount": {
      "nullable": true,
      "type": "number"
    },
    "description": {
      "type": "string"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    }
  },
  "required": [
    "enabled",
    "description"
  ]
}
```

### StableExportCompiledAgentMcpIntegrationTool

```json
{
  "type": "object",
  "properties": {
    "description": {
      "nullable": true,
      "type": "string"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledToolNodeDataVariable"
      }
    },
    "toolSound": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "captureResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "capturePropertyResponse": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "mcpIntegrationToolID": {
      "type": "string"
    },
    "captureInputVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "captureInputProperties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "description",
    "variables",
    "mcpIntegrationToolID"
  ]
}
```

### StableExportCompiledAgentPathTool

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    },
    "toolName": {
      "type": "string"
    },
    "variables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledAgentPathToolVariable"
      }
    },
    "hasToolNameWarning": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "variables"
  ]
}
```

### StableExportCompiledAgentToolMessages

```json
{
  "type": "object",
  "properties": {
    "delayMessageID": {
      "nullable": true,
      "type": "string"
    },
    "failureMessageID": {
      "nullable": true,
      "type": "string"
    },
    "executionMessageID": {
      "nullable": true,
      "type": "string"
    },
    "completionMessageID": {
      "nullable": true,
      "type": "string"
    },
    "delayMessageSeconds": {
      "nullable": true,
      "type": "number"
    },
    "prompts": {
      "nullable": true,
      "type": "object",
      "properties": {
        "delay": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "failure": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "execution": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "completion": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "generative": {
      "type": "object",
      "properties": {
        "delay": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "failure": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "execution": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        },
        "completion": {
          "allOf": [
            {
              "$ref": "#/components/schemas/StableExportToolMessageGenerative"
            }
          ]
        }
      }
    }
  },
  "required": [
    "delayMessageID",
    "failureMessageID",
    "executionMessageID",
    "completionMessageID",
    "delayMessageSeconds"
  ]
}
```

### StableExportCompiledAgentWebSearchTool

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "toolSound": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeDataToolSound"
        }
      ]
    },
    "description": {
      "type": "string"
    },
    "allowedDomains": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceUrlsCount": {
      "nullable": true,
      "type": "number",
      "minimum": 1,
      "maximum": 5
    },
    "messages": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportCompiledAgentToolMessages"
        }
      ]
    }
  },
  "required": [
    "enabled"
  ]
}
```

### StableExportConditionAssertion

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "lhs": {
      "$ref": "#/components/schemas/ConditionAssertionLhs"
    },
    "rhs": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "operation": {
      "default": "is",
      "allOf": [
        {
          "$ref": "#/components/schemas/ConditionOperation"
        }
      ]
    }
  },
  "required": [
    "key",
    "lhs",
    "rhs"
  ]
}
```

### StableExportCrewNodeDataAgent

```json
{
  "type": "object",
  "properties": {
    "agentID": {
      "type": "string"
    },
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportExpressionCondition"
        }
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "requiredVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CrewNodeDataRequiredVariable"
      }
    }
  },
  "required": [
    "agentID",
    "description"
  ]
}
```

### StableExportCrewNodeDataFlow

```json
{
  "type": "object",
  "properties": {
    "flowID": {
      "type": "string"
    },
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportExpressionCondition"
        }
      ]
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "requiredVariables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CrewNodeDataRequiredVariable"
      }
    }
  },
  "required": [
    "flowID",
    "description"
  ]
}
```

### StableExportDiagram

```json
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DiagramType"
        }
      ]
    },
    "zoom": {
      "type": "number"
    },
    "nodes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/DiagramNode"
      }
    },
    "offsetX": {
      "type": "number"
    },
    "offsetY": {
      "type": "number"
    },
    "modified": {
      "type": "number"
    },
    "diagramID": {
      "type": "string"
    },
    "versionID": {
      "type": "string"
    },
    "creatorID": {
      "type": "number"
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "children": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "menuItems": {
      "description": "@deprecated not used anymore",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DiagramMenuItem"
      }
    },
    "menuNodeIDs": {
      "description": "@deprecated in favor of menuItems",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "intentStepIDs": {
      "description": "@deprecated in favor of menuNodeIDs",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "_id",
    "name",
    "zoom",
    "nodes",
    "offsetX",
    "offsetY",
    "modified",
    "diagramID",
    "versionID",
    "creatorID",
    "variables"
  ]
}
```

### StableExportExpressionCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "value-variable"
      ],
      "x-enumNames": [
        "VALUE_VARIABLE"
      ]
    },
    "matchAll": {
      "type": "boolean"
    },
    "assertions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportConditionAssertion"
      }
    }
  },
  "required": [
    "type",
    "matchAll",
    "assertions"
  ]
}
```

### StableExportMcpServerHeaderEntry

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "key": {
      "nullable": true,
      "type": "string"
    },
    "value": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    }
  },
  "required": [
    "id",
    "key",
    "value"
  ]
}
```

### StableExportMediaAttachment

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "media"
      ],
      "x-enumNames": [
        "MEDIA"
      ]
    },
    "url": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "isAsset": {
      "type": "boolean"
    },
    "datatype": {
      "$ref": "#/components/schemas/MediaDatatype"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "url",
    "name",
    "isAsset",
    "datatype"
  ]
}
```

### StableExportToolMessageGenerative

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "examples": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ExportTextString"
      }
    }
  },
  "required": [
    "enabled"
  ]
}
```

### StableExportToolNodeDataAPIInputVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "shouldFulfill": {
      "description": "If true, then LLM will never ask user to fulfill an input variable. If false, then LLM will decide for itself whether user needs to provide a value for the input variable.",
      "type": "boolean"
    },
    "apiToolInputVariableID": {
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "apiToolInputVariableID"
  ]
}
```

### StableExportToolNodeDataFunctionInputVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "shouldFulfill": {
      "description": "If true, then LLM will never ask user to fulfill an input variable. If false, then LLM will decide for itself whether user needs to provide a value for the input variable.",
      "type": "boolean"
    },
    "functionInputVariableID": {
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "functionInputVariableID"
  ]
}
```

### StableExportToolNodeDataIntegrationStoredInputVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "shouldFulfill": {
      "description": "If true, then LLM will never ask user to fulfill an input variable. If false, then LLM will decide for itself whether user needs to provide a value for the input variable.",
      "type": "boolean"
    },
    "integrationToolVariableName": {
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    },
    "draftDefaultValue": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    }
  },
  "required": [
    "integrationToolVariableName"
  ]
}
```

### StableExportToolNodeDataMcpIntegrationInputVariable

```json
{
  "type": "object",
  "properties": {
    "description": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "default": null,
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ExportTextString"
        }
      ]
    },
    "shouldFulfill": {
      "description": "If true, then LLM will never ask user to fulfill an input variable. If false, then LLM will decide for itself whether user needs to provide a value for the input variable.",
      "type": "boolean"
    },
    "mcpIntegrationVariableName": {
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "mcpIntegrationVariableName"
  ]
}
```

### StableExportUtterance

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "text": {
      "$ref": "#/components/schemas/ExportTextString"
    },
    "language": {
      "$ref": "#/components/schemas/Language"
    },
    "intentID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "text",
    "language",
    "intentID"
  ]
}
```

### StableExportVersion

```json
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "model": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionModel"
        }
      ]
    },
    "legacyID": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "updatedBy": {
      "type": "number"
    },
    "settings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettings"
        }
      ]
    },
    "_version": {
      "type": "number"
    },
    "creatorID": {
      "type": "number"
    },
    "projectID": {
      "type": "string"
    },
    "manualSave": {
      "type": "boolean"
    },
    "publishedAt": {
      "nullable": true,
      "type": "string"
    },
    "platformData": {
      "$ref": "#/components/schemas/VersionPlatformData"
    },
    "customBlocks": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/VersionCustomBlock"
      }
    },
    "rootDiagramID": {
      "type": "string"
    },
    "canvasTemplates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionCanvasTemplate"
      }
    },
    "programResources": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionProgramResources"
        }
      ]
    },
    "templateDiagramID": {
      "type": "string"
    },
    "defaultStepColors": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "autoSaveFromRestore": {
      "type": "boolean"
    },
    "notes": {
      "description": "@deprecated not used",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/VersionNote"
      }
    },
    "topics": {
      "description": "@deprecated in favor of domains",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionFolderItem"
      }
    },
    "folders": {
      "description": "@deprecated not used",
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/VersionFolder"
      }
    },
    "domains": {
      "description": "@deprecated not used",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionDomain"
      }
    },
    "prototype": {
      "description": "@deprecated prefer adding version-level compiled artifacts to `programResources",
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionPrototype"
        }
      ]
    },
    "components": {
      "description": "@deprecated not used",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionFolderItem"
      }
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "@deprecated not used"
    },
    "knowledgeBase": {
      "description": "@deprecated not used",
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionKnowledgeBase"
        }
      ]
    },
    "secondaryVersionID": {
      "description": "@deprecated in favor of legacyID",
      "type": "number"
    },
    "compiledSourceHash": {
      "type": "string"
    }
  },
  "required": [
    "_id",
    "name",
    "_version",
    "creatorID",
    "projectID",
    "platformData",
    "rootDiagramID",
    "variables"
  ]
}
```

### StableExportVersionProgramResources

```json
{
  "type": "object",
  "properties": {
    "flows": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledFlow"
      }
    },
    "agents": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/StableExportCompiledAgent"
      }
    },
    "prompts": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledPrompt"
      }
    },
    "apiTools": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledAPITool"
      }
    },
    "messages": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledMessage"
      }
    },
    "globalCrew": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionProgramResourcesGlobalCrew"
        }
      ]
    },
    "globalPrompts": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionProgramResourcesGlobalPrompts"
        }
      ]
    },
    "costControl": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionProgramResourcesCostControl"
        }
      ]
    },
    "secretNameToId": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "mcpServers": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledMcpServer"
      }
    },
    "mcpServerTools": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledMcpServerTool"
      }
    },
    "integrationTools": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledIntegrationTool"
      }
    },
    "mcpIntegrationTools": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledMcpIntegrationTool"
      }
    }
  },
  "required": [
    "messages"
  ]
}
```

### StableExportVersionSettings

```json
{
  "type": "object",
  "properties": {
    "ui": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsUI"
        }
      ]
    },
    "llm": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettingsLLM"
        }
      ]
    },
    "time": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsTime"
        }
      ]
    },
    "voice": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsVoice"
        }
      ]
    },
    "widget": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettings"
        }
      ]
    },
    "interfaceConfig": {
      "allOf": [
        {
          "$ref": "#/components/schemas/InterfaceConfig"
        }
      ]
    },
    "defaultWidget": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsDefaultWidget"
        }
      ]
    },
    "memory": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsMemory"
        }
      ]
    },
    "session": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsSession"
        }
      ]
    },
    "security": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsSecurity"
        }
      ]
    },
    "framework": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsFramework"
        }
      ]
    },
    "analytics": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAnalytics"
        }
      ]
    },
    "costControl": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettingsCostControl"
        }
      ]
    },
    "globalCrew": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettingsGlobalCrew"
        }
      ]
    },
    "llmFallback": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LLMFallbackSettings"
        }
      ]
    },
    "globalNoReply": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettingsGlobalNoReply"
        }
      ]
    },
    "globalNoMatch": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StableExportVersionSettingsGlobalNoMatch"
        }
      ]
    },
    "shareableLink": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsShareableLink"
        }
      ]
    },
    "automaticReprompt": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAutomaticReprompt"
        }
      ]
    },
    "intentClassification": {
      "$ref": "#/components/schemas/IntentClassificationSettings"
    }
  },
  "required": [
    "intentClassification"
  ]
}
```

### StableExportVersionSettingsCostControl

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "maxDollars": {
      "type": "number",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 10000
    },
    "endMessage": {
      "$ref": "#/components/schemas/ExportTextString"
    }
  },
  "required": [
    "enabled",
    "maxDollars",
    "endMessage"
  ]
}
```

### StableExportVersionSettingsGlobalCrew

```json
{
  "type": "object",
  "properties": {
    "agentID": {
      "type": "string"
    },
    "agentDescription": {
      "deprecated": true,
      "description": "Should not be used, use global agent description instead",
      "nullable": true,
      "type": "string"
    },
    "subFlows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCrewNodeDataFlow"
      }
    },
    "subAgents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableExportCrewNodeDataAgent"
      }
    }
  },
  "required": [
    "agentID",
    "subFlows",
    "subAgents"
  ]
}
```

### StableExportVersionSettingsGlobalNoMatch

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/StableExportVersionSettingsGlobalNoMatchStatic"
    },
    {
      "$ref": "#/components/schemas/VersionSettingsGlobalNoMatchGenerative"
    }
  ]
}
```

### StableExportVersionSettingsGlobalNoMatchStatic

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "static"
      ],
      "x-enumNames": [
        "STATIC"
      ]
    },
    "prompt": {
      "$ref": "#/components/schemas/ExportTextString"
    }
  },
  "required": [
    "type",
    "prompt"
  ]
}
```

### StableExportVersionSettingsGlobalNoReply

```json
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/StableExportVersionSettingsGlobalNoReplyStatic"
    },
    {
      "$ref": "#/components/schemas/VersionSettingsGlobalNoReplyGenerative"
    }
  ]
}
```

### StableExportVersionSettingsGlobalNoReplyStatic

```json
{
  "type": "object",
  "properties": {
    "delay": {
      "nullable": true,
      "type": "number"
    },
    "enabled": {
      "type": "boolean"
    },
    "maxRetries": {
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "static"
      ],
      "x-enumNames": [
        "STATIC"
      ]
    },
    "prompt": {
      "$ref": "#/components/schemas/ExportTextString"
    }
  },
  "required": [
    "delay",
    "enabled",
    "prompt"
  ]
}
```

### StableExportVersionSettingsLLM

```json
{
  "type": "object",
  "properties": {
    "globalPrompts": {
      "type": "object",
      "properties": {
        "persona": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/ExportTextString"
            }
          ]
        },
        "guidelines": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/ExportTextString"
            }
          ]
        }
      }
    },
    "defaultModels": {
      "type": "object",
      "properties": {
        "global": {
          "type": "object",
          "properties": {
            "model": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AIModel"
                }
              ]
            },
            "maxTokens": {
              "type": "number"
            },
            "temperature": {
              "type": "number"
            },
            "reasoningEffort": {
              "nullable": true,
              "allOf": [
                {
                  "$ref": "#/components/schemas/AIReasoningEffort"
                }
              ]
            },
            "serviceTier": {
              "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
              "nullable": true,
              "allOf": [
                {
                  "$ref": "#/components/schemas/AIParamsServiceTier"
                }
              ]
            }
          }
        }
      }
    },
    "globalAgentID": {
      "description": "@deprecated Use globalCrew.agentID instead",
      "type": "string"
    },
    "priorityProcessing": {
      "description": "@deprecated Faster processing is set per model: use `serviceTier: 'priority'` in each model's settings. This project-level flag still applies to any model setting that leaves `serviceTier` unset.",
      "type": "boolean"
    }
  }
}
```

### StableExpressionCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "value-variable"
      ],
      "x-enumNames": [
        "VALUE_VARIABLE"
      ]
    },
    "matchAll": {
      "type": "boolean"
    },
    "assertions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableConditionAssertion"
      }
    }
  },
  "required": [
    "type",
    "matchAll",
    "assertions"
  ]
}
```

### StableMessage

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "variants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableMessageVariant"
      },
      "description": "Every variant, in stored order. Variants are alternatives: the runtime says one of them each time. The first variant cannot be given a condition."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "createdByID": {
      "type": "number",
      "description": "The user who created the message."
    },
    "updatedByID": {
      "type": "number",
      "description": "The user who last changed the message or one of its variants."
    }
  },
  "required": [
    "id",
    "variants",
    "createdAt",
    "updatedAt",
    "createdByID",
    "updatedByID"
  ]
}
```

### StableMessageVariant

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "text": {
      "$ref": "#/components/schemas/MarkdownLikeString"
    },
    "delay": {
      "nullable": true,
      "description": "Milliseconds to wait before this variant is sent.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "condition": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/StableMessageVariantCondition"
        }
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "description": "The user who last changed this variant.",
      "type": "number"
    }
  },
  "required": [
    "id",
    "text",
    "delay",
    "condition",
    "createdAt",
    "updatedAt",
    "updatedByID"
  ]
}
```

### StableMessageVariantCondition

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/StableExpressionCondition"
    },
    {
      "$ref": "#/components/schemas/StableScriptCondition"
    }
  ],
  "description": "When the runtime may use this variant. `value-variable` compares variables with values; `script` runs code in which {variable_name} reads a variable."
}
```

### StablePrompt

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "system": {
      "$ref": "#/components/schemas/VariableReferenceString"
    },
    "settings": {
      "$ref": "#/components/schemas/PromptSettings"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "createdByID": {
      "type": "number",
      "description": "The user who created the prompt."
    },
    "updatedByID": {
      "type": "number",
      "description": "The user who last changed the prompt, its settings or its system text."
    }
  },
  "required": [
    "id",
    "name",
    "system",
    "settings",
    "createdAt",
    "updatedAt",
    "createdByID",
    "updatedByID"
  ]
}
```

### StableScriptCondition

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "script"
      ],
      "x-enumNames": [
        "SCRIPT"
      ]
    },
    "code": {
      "$ref": "#/components/schemas/VariableReferenceString"
    }
  },
  "required": [
    "type",
    "code"
  ]
}
```

### StableSearchResourceType

```json
{
  "type": "string",
  "enum": [
    "agent",
    "playbook",
    "workflow",
    "message",
    "prompt",
    "agent_tool",
    "function",
    "api_tool",
    "integration_tool",
    "mcp_tool",
    "mcp_server",
    "variable",
    "entity",
    "intent",
    "event",
    "test",
    "evaluation",
    "persona",
    "attachment",
    "folder",
    "initialization_workflow",
    "canvas",
    "project"
  ],
  "x-enumNames": [
    "AGENT",
    "PLAYBOOK",
    "WORKFLOW",
    "MESSAGE",
    "PROMPT",
    "AGENT_TOOL",
    "FUNCTION",
    "API_TOOL",
    "INTEGRATION_TOOL",
    "MCP_TOOL",
    "MCP_SERVER",
    "VARIABLE",
    "ENTITY",
    "INTENT",
    "EVENT",
    "TEST",
    "EVALUATION",
    "PERSONA",
    "ATTACHMENT",
    "FOLDER",
    "INITIALIZATION_WORKFLOW",
    "CANVAS",
    "PROJECT"
  ]
}
```

### StableSearchTextHit

```json
{
  "type": "object",
  "properties": {
    "resourceType": {
      "$ref": "#/components/schemas/StableSearchResourceType"
    },
    "resourceID": {
      "type": "string",
      "description": "The ID to read the resource with. For a workflow, the workflow ID. A canvas no workflow owns carries its diagram ID and the Initialization Workflow its own ID; no workflow read takes either. When ownerID is set, the row lives inside that owner: read the owner."
    },
    "resourceName": {
      "type": "string"
    },
    "ownerID": {
      "description": "For a row inside another resource, such as a function path, a tool attachment or a test assertion: the owner to read it with.",
      "type": "string"
    },
    "blockID": {
      "description": "For a hit on a workflow canvas: the block.",
      "type": "string"
    },
    "stepID": {
      "description": "For a hit on a workflow canvas: the step or action.",
      "type": "string"
    },
    "stepKind": {
      "type": "string"
    },
    "field": {
      "type": "string",
      "description": "Where in the resource the text is, as a path such as instructions, data.name or variants[0].text."
    },
    "line": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "The 1-based line within that field."
    },
    "count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Matches on that line."
    },
    "snippet": {
      "type": "string",
      "description": "The line around the first match, at most 120 characters."
    },
    "usedBy": {
      "description": "For a message or prompt: the steps and resources that hold its ID, at most 20. A holder inside another resource carries ownerID.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StableSearchTextHolder"
      }
    }
  },
  "required": [
    "resourceType",
    "resourceID",
    "field",
    "line",
    "count",
    "snippet"
  ]
}
```

### StableSearchTextHolder

```json
{
  "type": "object",
  "properties": {
    "resourceType": {
      "$ref": "#/components/schemas/StableSearchResourceType"
    },
    "resourceID": {
      "type": "string"
    },
    "resourceName": {
      "type": "string"
    },
    "ownerID": {
      "description": "For a row inside another resource, such as a tool attachment: the owner to read it with.",
      "type": "string"
    },
    "blockID": {
      "type": "string"
    },
    "stepID": {
      "type": "string"
    }
  },
  "required": [
    "resourceType",
    "resourceID"
  ]
}
```

### StableUpdateResponse

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable message confirming the update."
    }
  },
  "required": [
    "message"
  ]
}
```

### SystemOneModel

```json
{
  "type": "string",
  "enum": [
    "clef-flash",
    "voiceflow-classify"
  ],
  "x-enumNames": [
    "CLEF_FLASH",
    "VOICEFLOW_CLASSIFY"
  ]
}
```

### TextContentPart

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "text"
      ],
      "x-enumNames": [
        "TEXT"
      ]
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "text"
  ]
}
```

### Timezone

```json
{
  "type": "string",
  "enum": [
    "Africa/Abidjan",
    "Africa/Accra",
    "Africa/Addis_Ababa",
    "Africa/Algiers",
    "Africa/Asmera",
    "Africa/Bamako",
    "Africa/Bangui",
    "Africa/Banjul",
    "Africa/Bissau",
    "Africa/Blantyre",
    "Africa/Brazzaville",
    "Africa/Bujumbura",
    "Africa/Cairo",
    "Africa/Casablanca",
    "Africa/Ceuta",
    "Africa/Conakry",
    "Africa/Dakar",
    "Africa/Dar_es_Salaam",
    "Africa/Djibouti",
    "Africa/Douala",
    "Africa/El_Aaiun",
    "Africa/Freetown",
    "Africa/Gaborone",
    "Africa/Harare",
    "Africa/Johannesburg",
    "Africa/Juba",
    "Africa/Kampala",
    "Africa/Khartoum",
    "Africa/Kigali",
    "Africa/Kinshasa",
    "Africa/Lagos",
    "Africa/Libreville",
    "Africa/Lome",
    "Africa/Luanda",
    "Africa/Lubumbashi",
    "Africa/Lusaka",
    "Africa/Malabo",
    "Africa/Maputo",
    "Africa/Maseru",
    "Africa/Mbabane",
    "Africa/Mogadishu",
    "Africa/Monrovia",
    "Africa/Nairobi",
    "Africa/Ndjamena",
    "Africa/Niamey",
    "Africa/Nouakchott",
    "Africa/Ouagadougou",
    "Africa/Porto-Novo",
    "Africa/Sao_Tome",
    "Africa/Tripoli",
    "Africa/Tunis",
    "Africa/Windhoek",
    "America/Adak",
    "America/Anchorage",
    "America/Anguilla",
    "America/Antigua",
    "America/Araguaina",
    "America/Argentina/Buenos_Aires",
    "America/Argentina/Catamarca",
    "America/Argentina/Cordoba",
    "America/Argentina/Jujuy",
    "America/Argentina/La_Rioja",
    "America/Argentina/Mendoza",
    "America/Argentina/Rio_Gallegos",
    "America/Argentina/Salta",
    "America/Argentina/San_Juan",
    "America/Argentina/San_Luis",
    "America/Argentina/Tucuman",
    "America/Argentina/Ushuaia",
    "America/Aruba",
    "America/Asuncion",
    "America/Atikokan",
    "America/Bahia",
    "America/Bahia_Banderas",
    "America/Barbados",
    "America/Belem",
    "America/Belize",
    "America/Blanc-Sablon",
    "America/Boa_Vista",
    "America/Bogota",
    "America/Boise",
    "America/Cambridge_Bay",
    "America/Campo_Grande",
    "America/Cancun",
    "America/Caracas",
    "America/Cayenne",
    "America/Cayman",
    "America/Chicago",
    "America/Chihuahua",
    "America/Ciudad_Juarez",
    "America/Costa_Rica",
    "America/Creston",
    "America/Cuiaba",
    "America/Curacao",
    "America/Danmarkshavn",
    "America/Dawson",
    "America/Dawson_Creek",
    "America/Denver",
    "America/Detroit",
    "America/Dominica",
    "America/Edmonton",
    "America/Eirunepe",
    "America/El_Salvador",
    "America/Fort_Nelson",
    "America/Fortaleza",
    "America/Glace_Bay",
    "America/Goose_Bay",
    "America/Grand_Turk",
    "America/Grenada",
    "America/Guadeloupe",
    "America/Guatemala",
    "America/Guayaquil",
    "America/Guyana",
    "America/Halifax",
    "America/Havana",
    "America/Hermosillo",
    "America/Indiana/Indianapolis",
    "America/Indiana/Knox",
    "America/Indiana/Marengo",
    "America/Indiana/Petersburg",
    "America/Indiana/Tell_City",
    "America/Indiana/Vevay",
    "America/Indiana/Vincennes",
    "America/Indiana/Winamac",
    "America/Inuvik",
    "America/Iqaluit",
    "America/Jamaica",
    "America/Juneau",
    "America/Kentucky/Louisville",
    "America/Kentucky/Monticello",
    "America/Kralendijk",
    "America/La_Paz",
    "America/Lima",
    "America/Los_Angeles",
    "America/Lower_Princes",
    "America/Maceio",
    "America/Managua",
    "America/Manaus",
    "America/Marigot",
    "America/Martinique",
    "America/Matamoros",
    "America/Mazatlan",
    "America/Menominee",
    "America/Merida",
    "America/Metlakatla",
    "America/Mexico_City",
    "America/Miquelon",
    "America/Moncton",
    "America/Monterrey",
    "America/Montevideo",
    "America/Montserrat",
    "America/Nassau",
    "America/New_York",
    "America/Nipigon",
    "America/Nome",
    "America/Noronha",
    "America/North_Dakota/Beulah",
    "America/North_Dakota/Center",
    "America/North_Dakota/New_Salem",
    "America/Nuuk",
    "America/Ojinaga",
    "America/Panama",
    "America/Pangnirtung",
    "America/Paramaribo",
    "America/Phoenix",
    "America/Port-au-Prince",
    "America/Port_of_Spain",
    "America/Porto_Velho",
    "America/Puerto_Rico",
    "America/Punta_Arenas",
    "America/Rainy_River",
    "America/Rankin_Inlet",
    "America/Recife",
    "America/Regina",
    "America/Resolute",
    "America/Rio_Branco",
    "America/Santarem",
    "America/Santiago",
    "America/Santo_Domingo",
    "America/Sao_Paulo",
    "America/Scoresbysund",
    "America/Sitka",
    "America/St_Barthelemy",
    "America/St_Johns",
    "America/St_Kitts",
    "America/St_Lucia",
    "America/St_Thomas",
    "America/St_Vincent",
    "America/Swift_Current",
    "America/Tegucigalpa",
    "America/Thule",
    "America/Thunder_Bay",
    "America/Tijuana",
    "America/Toronto",
    "America/Tortola",
    "America/Vancouver",
    "America/Whitehorse",
    "America/Winnipeg",
    "America/Yakutat",
    "America/Yellowknife",
    "Antarctica/Casey",
    "Antarctica/Davis",
    "Antarctica/DumontDUrville",
    "Antarctica/Macquarie",
    "Antarctica/Mawson",
    "Antarctica/McMurdo",
    "Antarctica/Palmer",
    "Antarctica/Rothera",
    "Antarctica/Syowa",
    "Antarctica/Troll",
    "Antarctica/Vostok",
    "Arctic/Longyearbyen",
    "Asia/Aden",
    "Asia/Almaty",
    "Asia/Amman",
    "Asia/Anadyr",
    "Asia/Aqtau",
    "Asia/Aqtobe",
    "Asia/Ashgabat",
    "Asia/Atyrau",
    "Asia/Baghdad",
    "Asia/Bahrain",
    "Asia/Baku",
    "Asia/Bangkok",
    "Asia/Barnaul",
    "Asia/Beirut",
    "Asia/Bishkek",
    "Asia/Brunei",
    "Asia/Chita",
    "Asia/Choibalsan",
    "Asia/Colombo",
    "Asia/Damascus",
    "Asia/Dhaka",
    "Asia/Dili",
    "Asia/Dubai",
    "Asia/Dushanbe",
    "Asia/Famagusta",
    "Asia/Gaza",
    "Asia/Hebron",
    "Asia/Ho_Chi_Minh",
    "Asia/Hong_Kong",
    "Asia/Hovd",
    "Asia/Irkutsk",
    "Asia/Jakarta",
    "Asia/Jayapura",
    "Asia/Jerusalem",
    "Asia/Kabul",
    "Asia/Kamchatka",
    "Asia/Karachi",
    "Asia/Kathmandu",
    "Asia/Khandyga",
    "Asia/Kolkata",
    "Asia/Krasnoyarsk",
    "Asia/Kuala_Lumpur",
    "Asia/Kuching",
    "Asia/Kuwait",
    "Asia/Macau",
    "Asia/Magadan",
    "Asia/Makassar",
    "Asia/Manila",
    "Asia/Muscat",
    "Asia/Nicosia",
    "Asia/Novokuznetsk",
    "Asia/Novosibirsk",
    "Asia/Omsk",
    "Asia/Oral",
    "Asia/Phnom_Penh",
    "Asia/Pontianak",
    "Asia/Pyongyang",
    "Asia/Qatar",
    "Asia/Qostanay",
    "Asia/Qyzylorda",
    "Asia/Riyadh",
    "Asia/Sakhalin",
    "Asia/Samarkand",
    "Asia/Seoul",
    "Asia/Shanghai",
    "Asia/Singapore",
    "Asia/Srednekolymsk",
    "Asia/Taipei",
    "Asia/Tashkent",
    "Asia/Tbilisi",
    "Asia/Tehran",
    "Asia/Thimphu",
    "Asia/Tokyo",
    "Asia/Tomsk",
    "Asia/Ulaanbaatar",
    "Asia/Urumqi",
    "Asia/Ust-Nera",
    "Asia/Vientiane",
    "Asia/Vladivostok",
    "Asia/Yakutsk",
    "Asia/Yangon",
    "Asia/Yekaterinburg",
    "Asia/Yerevan",
    "Atlantic/Azores",
    "Atlantic/Bermuda",
    "Atlantic/Canary",
    "Atlantic/Cape_Verde",
    "Atlantic/Faroe",
    "Atlantic/Madeira",
    "Atlantic/Reykjavik",
    "Atlantic/South_Georgia",
    "Atlantic/St_Helena",
    "Atlantic/Stanley",
    "Australia/Adelaide",
    "Australia/Brisbane",
    "Australia/Broken_Hill",
    "Australia/Darwin",
    "Australia/Eucla",
    "Australia/Hobart",
    "Australia/Lindeman",
    "Australia/Lord_Howe",
    "Australia/Melbourne",
    "Australia/Perth",
    "Australia/Sydney",
    "Europe/Amsterdam",
    "Europe/Andorra",
    "Europe/Astrakhan",
    "Europe/Athens",
    "Europe/Belgrade",
    "Europe/Berlin",
    "Europe/Bratislava",
    "Europe/Brussels",
    "Europe/Bucharest",
    "Europe/Budapest",
    "Europe/Busingen",
    "Europe/Chisinau",
    "Europe/Copenhagen",
    "Europe/Dublin",
    "Europe/Gibraltar",
    "Europe/Guernsey",
    "Europe/Helsinki",
    "Europe/Isle_of_Man",
    "Europe/Istanbul",
    "Europe/Jersey",
    "Europe/Kaliningrad",
    "Europe/Kyiv",
    "Europe/Kirov",
    "Europe/Lisbon",
    "Europe/Ljubljana",
    "Europe/London",
    "Europe/Luxembourg",
    "Europe/Madrid",
    "Europe/Malta",
    "Europe/Mariehamn",
    "Europe/Minsk",
    "Europe/Monaco",
    "Europe/Moscow",
    "Europe/Oslo",
    "Europe/Paris",
    "Europe/Podgorica",
    "Europe/Prague",
    "Europe/Riga",
    "Europe/Rome",
    "Europe/Samara",
    "Europe/San_Marino",
    "Europe/Sarajevo",
    "Europe/Saratov",
    "Europe/Simferopol",
    "Europe/Skopje",
    "Europe/Sofia",
    "Europe/Stockholm",
    "Europe/Tallinn",
    "Europe/Tirane",
    "Europe/Ulyanovsk",
    "Europe/Uzhgorod",
    "Europe/Vaduz",
    "Europe/Vatican",
    "Europe/Vienna",
    "Europe/Vilnius",
    "Europe/Volgograd",
    "Europe/Warsaw",
    "Europe/Zagreb",
    "Europe/Zaporozhye",
    "Europe/Zurich",
    "Indian/Antananarivo",
    "Indian/Chagos",
    "Indian/Christmas",
    "Indian/Cocos",
    "Indian/Comoro",
    "Indian/Kerguelen",
    "Indian/Mahe",
    "Indian/Maldives",
    "Indian/Mauritius",
    "Indian/Mayotte",
    "Indian/Reunion",
    "Pacific/Apia",
    "Pacific/Auckland",
    "Pacific/Bougainville",
    "Pacific/Chatham",
    "Pacific/Chuuk",
    "Pacific/Easter",
    "Pacific/Efate",
    "Pacific/Enderbury",
    "Pacific/Fakaofo",
    "Pacific/Fiji",
    "Pacific/Funafuti",
    "Pacific/Galapagos",
    "Pacific/Gambier",
    "Pacific/Guadalcanal",
    "Pacific/Guam",
    "Pacific/Honolulu",
    "Pacific/Kiritimati",
    "Pacific/Kosrae",
    "Pacific/Kwajalein",
    "Pacific/Majuro",
    "Pacific/Marquesas",
    "Pacific/Midway",
    "Pacific/Nauru",
    "Pacific/Niue",
    "Pacific/Norfolk",
    "Pacific/Noumea",
    "Pacific/Pago_Pago",
    "Pacific/Palau",
    "Pacific/Pitcairn",
    "Pacific/Pohnpei",
    "Pacific/Port_Moresby",
    "Pacific/Rarotonga",
    "Pacific/Saipan",
    "Pacific/Tahiti",
    "Pacific/Tarawa",
    "Pacific/Tongatapu",
    "Pacific/Wake",
    "Pacific/Wallis",
    "UTC"
  ],
  "x-enumNames": [
    "AFRICA_ABIDJAN",
    "AFRICA_ACCRA",
    "AFRICA_ADDIS_ABABA",
    "AFRICA_ALGIERS",
    "AFRICA_ASMERA",
    "AFRICA_BAMAKO",
    "AFRICA_BANGUI",
    "AFRICA_BANJUL",
    "AFRICA_BISSAU",
    "AFRICA_BLANTYRE",
    "AFRICA_BRAZZAVILLE",
    "AFRICA_BUJUMBURA",
    "AFRICA_CAIRO",
    "AFRICA_CASABLANCA",
    "AFRICA_CEUTA",
    "AFRICA_CONAKRY",
    "AFRICA_DAKAR",
    "AFRICA_DAR_ES_SALAAM",
    "AFRICA_DJIBOUTI",
    "AFRICA_DOUALA",
    "AFRICA_EL_AAIUN",
    "AFRICA_FREETOWN",
    "AFRICA_GABORONE",
    "AFRICA_HARARE",
    "AFRICA_JOHANNESBURG",
    "AFRICA_JUBA",
    "AFRICA_KAMPALA",
    "AFRICA_KHARTOUM",
    "AFRICA_KIGALI",
    "AFRICA_KINSHASA",
    "AFRICA_LAGOS",
    "AFRICA_LIBREVILLE",
    "AFRICA_LOME",
    "AFRICA_LUANDA",
    "AFRICA_LUBUMBASHI",
    "AFRICA_LUSAKA",
    "AFRICA_MALABO",
    "AFRICA_MAPUTO",
    "AFRICA_MASERU",
    "AFRICA_MBABANE",
    "AFRICA_MOGADISHU",
    "AFRICA_MONROVIA",
    "AFRICA_NAIROBI",
    "AFRICA_NDJAMENA",
    "AFRICA_NIAMEY",
    "AFRICA_NOUAKCHOTT",
    "AFRICA_OUAGADOUGOU",
    "AFRICA_PORTO_NOVO",
    "AFRICA_SAO_TOME",
    "AFRICA_TRIPOLI",
    "AFRICA_TUNIS",
    "AFRICA_WINDHOEK",
    "AMERICA_ADAK",
    "AMERICA_ANCHORAGE",
    "AMERICA_ANGUILLA",
    "AMERICA_ANTIGUA",
    "AMERICA_ARAGUAINA",
    "AMERICA_ARGENTINA_BUENOS_AIRES",
    "AMERICA_ARGENTINA_CATAMARCA",
    "AMERICA_ARGENTINA_CORDOBA",
    "AMERICA_ARGENTINA_JUJUY",
    "AMERICA_ARGENTINA_LA_RIOJA",
    "AMERICA_ARGENTINA_MENDOZA",
    "AMERICA_ARGENTINA_RIO_GALLEGOS",
    "AMERICA_ARGENTINA_SALTA",
    "AMERICA_ARGENTINA_SAN_JUAN",
    "AMERICA_ARGENTINA_SAN_LUIS",
    "AMERICA_ARGENTINA_TUCUMAN",
    "AMERICA_ARGENTINA_USHUAIA",
    "AMERICA_ARUBA",
    "AMERICA_ASUNCION",
    "AMERICA_ATIKOKAN",
    "AMERICA_BAHIA",
    "AMERICA_BAHIA_BANDERAS",
    "AMERICA_BARBADOS",
    "AMERICA_BELEM",
    "AMERICA_BELIZE",
    "AMERICA_BLANC_SABLON",
    "AMERICA_BOA_VISTA",
    "AMERICA_BOGOTA",
    "AMERICA_BOISE",
    "AMERICA_CAMBRIDGE_BAY",
    "AMERICA_CAMPO_GRANDE",
    "AMERICA_CANCUN",
    "AMERICA_CARACAS",
    "AMERICA_CAYENNE",
    "AMERICA_CAYMAN",
    "AMERICA_CHICAGO",
    "AMERICA_CHIHUAHUA",
    "AMERICA_CIUDAD_JUAREZ",
    "AMERICA_COSTA_RICA",
    "AMERICA_CRESTON",
    "AMERICA_CUIABA",
    "AMERICA_CURACAO",
    "AMERICA_DANMARKSHAVN",
    "AMERICA_DAWSON",
    "AMERICA_DAWSON_CREEK",
    "AMERICA_DENVER",
    "AMERICA_DETROIT",
    "AMERICA_DOMINICA",
    "AMERICA_EDMONTON",
    "AMERICA_EIRUNEPE",
    "AMERICA_EL_SALVADOR",
    "AMERICA_FORT_NELSON",
    "AMERICA_FORTALEZA",
    "AMERICA_GLACE_BAY",
    "AMERICA_GOOSE_BAY",
    "AMERICA_GRAND_TURK",
    "AMERICA_GRENADA",
    "AMERICA_GUADELOUPE",
    "AMERICA_GUATEMALA",
    "AMERICA_GUAYAQUIL",
    "AMERICA_GUYANA",
    "AMERICA_HALIFAX",
    "AMERICA_HAVANA",
    "AMERICA_HERMOSILLO",
    "AMERICA_INDIANA_INDIANAPOLIS",
    "AMERICA_INDIANA_KNOX",
    "AMERICA_INDIANA_MARENGO",
    "AMERICA_INDIANA_PETERSBURG",
    "AMERICA_INDIANA_TELL_CITY",
    "AMERICA_INDIANA_VEVAY",
    "AMERICA_INDIANA_VINCENNES",
    "AMERICA_INDIANA_WINAMAC",
    "AMERICA_INUVIK",
    "AMERICA_IQALUIT",
    "AMERICA_JAMAICA",
    "AMERICA_JUNEAU",
    "AMERICA_KENTUCKY_LOUISVILLE",
    "AMERICA_KENTUCKY_MONTICELLO",
    "AMERICA_KRALENDIJK",
    "AMERICA_LA_PAZ",
    "AMERICA_LIMA",
    "AMERICA_LOS_ANGELES",
    "AMERICA_LOWER_PRINCES",
    "AMERICA_MACEIO",
    "AMERICA_MANAGUA",
    "AMERICA_MANAUS",
    "AMERICA_MARIGOT",
    "AMERICA_MARTINIQUE",
    "AMERICA_MATAMOROS",
    "AMERICA_MAZATLAN",
    "AMERICA_MENOMINEE",
    "AMERICA_MERIDA",
    "AMERICA_METLAKATLA",
    "AMERICA_MEXICO_CITY",
    "AMERICA_MIQUELON",
    "AMERICA_MONCTON",
    "AMERICA_MONTERREY",
    "AMERICA_MONTEVIDEO",
    "AMERICA_MONTSERRAT",
    "AMERICA_NASSAU",
    "AMERICA_NEW_YORK",
    "AMERICA_NIPIGON",
    "AMERICA_NOME",
    "AMERICA_NORONHA",
    "AMERICA_NORTH_DAKOTA_BEULAH",
    "AMERICA_NORTH_DAKOTA_CENTER",
    "AMERICA_NORTH_DAKOTA_NEW_SALEM",
    "AMERICA_NUUK",
    "AMERICA_OJINAGA",
    "AMERICA_PANAMA",
    "AMERICA_PANGNIRTUNG",
    "AMERICA_PARAMARIBO",
    "AMERICA_PHOENIX",
    "AMERICA_PORT_AU_PRINCE",
    "AMERICA_PORT_OF_SPAIN",
    "AMERICA_PORTO_VELHO",
    "AMERICA_PUERTO_RICO",
    "AMERICA_PUNTA_ARENAS",
    "AMERICA_RAINY_RIVER",
    "AMERICA_RANKIN_INLET",
    "AMERICA_RECIFE",
    "AMERICA_REGINA",
    "AMERICA_RESOLUTE",
    "AMERICA_RIO_BRANCO",
    "AMERICA_SANTAREM",
    "AMERICA_SANTIAGO",
    "AMERICA_SANTO_DOMINGO",
    "AMERICA_SAO_PAULO",
    "AMERICA_SCORESBYSUND",
    "AMERICA_SITKA",
    "AMERICA_ST_BARTHELEMY",
    "AMERICA_ST_JOHNS",
    "AMERICA_ST_KITTS",
    "AMERICA_ST_LUCIA",
    "AMERICA_ST_THOMAS",
    "AMERICA_ST_VINCENT",
    "AMERICA_SWIFT_CURRENT",
    "AMERICA_TEGUCIGALPA",
    "AMERICA_THULE",
    "AMERICA_THUNDER_BAY",
    "AMERICA_TIJUANA",
    "AMERICA_TORONTO",
    "AMERICA_TORTOLA",
    "AMERICA_VANCOUVER",
    "AMERICA_WHITEHORSE",
    "AMERICA_WINNIPEG",
    "AMERICA_YAKUTAT",
    "AMERICA_YELLOWKNIFE",
    "ANTARCTICA_CASEY",
    "ANTARCTICA_DAVIS",
    "ANTARCTICA_DUMONTDURVILLE",
    "ANTARCTICA_MACQUARIE",
    "ANTARCTICA_MAWSON",
    "ANTARCTICA_MCMURDO",
    "ANTARCTICA_PALMER",
    "ANTARCTICA_ROTHERA",
    "ANTARCTICA_SYOWA",
    "ANTARCTICA_TROLL",
    "ANTARCTICA_VOSTOK",
    "ARCTIC_LONGYEARBYEN",
    "ASIA_ADEN",
    "ASIA_ALMATY",
    "ASIA_AMMAN",
    "ASIA_ANADYR",
    "ASIA_AQTAU",
    "ASIA_AQTOBE",
    "ASIA_ASHGABAT",
    "ASIA_ATYRAU",
    "ASIA_BAGHDAD",
    "ASIA_BAHRAIN",
    "ASIA_BAKU",
    "ASIA_BANGKOK",
    "ASIA_BARNAUL",
    "ASIA_BEIRUT",
    "ASIA_BISHKEK",
    "ASIA_BRUNEI",
    "ASIA_CHITA",
    "ASIA_CHOIBALSAN",
    "ASIA_COLOMBO",
    "ASIA_DAMASCUS",
    "ASIA_DHAKA",
    "ASIA_DILI",
    "ASIA_DUBAI",
    "ASIA_DUSHANBE",
    "ASIA_FAMAGUSTA",
    "ASIA_GAZA",
    "ASIA_HEBRON",
    "ASIA_HO_CHI_MINH",
    "ASIA_HONG_KONG",
    "ASIA_HOVD",
    "ASIA_IRKUTSK",
    "ASIA_JAKARTA",
    "ASIA_JAYAPURA",
    "ASIA_JERUSALEM",
    "ASIA_KABUL",
    "ASIA_KAMCHATKA",
    "ASIA_KARACHI",
    "ASIA_KATHMANDU",
    "ASIA_KHANDYGA",
    "ASIA_KOLKATA",
    "ASIA_KRASNOYARSK",
    "ASIA_KUALA_LUMPUR",
    "ASIA_KUCHING",
    "ASIA_KUWAIT",
    "ASIA_MACAU",
    "ASIA_MAGADAN",
    "ASIA_MAKASSAR",
    "ASIA_MANILA",
    "ASIA_MUSCAT",
    "ASIA_NICOSIA",
    "ASIA_NOVOKUZNETSK",
    "ASIA_NOVOSIBIRSK",
    "ASIA_OMSK",
    "ASIA_ORAL",
    "ASIA_PHNOM_PENH",
    "ASIA_PONTIANAK",
    "ASIA_PYONGYANG",
    "ASIA_QATAR",
    "ASIA_QOSTANAY",
    "ASIA_QYZYLORDA",
    "ASIA_RIYADH",
    "ASIA_SAKHALIN",
    "ASIA_SAMARKAND",
    "ASIA_SEOUL",
    "ASIA_SHANGHAI",
    "ASIA_SINGAPORE",
    "ASIA_SREDNEKOLYMSK",
    "ASIA_TAIPEI",
    "ASIA_TASHKENT",
    "ASIA_TBILISI",
    "ASIA_TEHRAN",
    "ASIA_THIMPHU",
    "ASIA_TOKYO",
    "ASIA_TOMSK",
    "ASIA_ULAANBAATAR",
    "ASIA_URUMQI",
    "ASIA_UST_NERA",
    "ASIA_VIENTIANE",
    "ASIA_VLADIVOSTOK",
    "ASIA_YAKUTSK",
    "ASIA_YANGON",
    "ASIA_YEKATERINBURG",
    "ASIA_YEREVAN",
    "ATLANTIC_AZORES",
    "ATLANTIC_BERMUDA",
    "ATLANTIC_CANARY",
    "ATLANTIC_CAPE_VERDE",
    "ATLANTIC_FAROE",
    "ATLANTIC_MADEIRA",
    "ATLANTIC_REYKJAVIK",
    "ATLANTIC_SOUTH_GEORGIA",
    "ATLANTIC_ST_HELENA",
    "ATLANTIC_STANLEY",
    "AUSTRALIA_ADELAIDE",
    "AUSTRALIA_BRISBANE",
    "AUSTRALIA_BROKEN_HILL",
    "AUSTRALIA_DARWIN",
    "AUSTRALIA_EUCLA",
    "AUSTRALIA_HOBART",
    "AUSTRALIA_LINDEMAN",
    "AUSTRALIA_LORD_HOWE",
    "AUSTRALIA_MELBOURNE",
    "AUSTRALIA_PERTH",
    "AUSTRALIA_SYDNEY",
    "EUROPE_AMSTERDAM",
    "EUROPE_ANDORRA",
    "EUROPE_ASTRAKHAN",
    "EUROPE_ATHENS",
    "EUROPE_BELGRADE",
    "EUROPE_BERLIN",
    "EUROPE_BRATISLAVA",
    "EUROPE_BRUSSELS",
    "EUROPE_BUCHAREST",
    "EUROPE_BUDAPEST",
    "EUROPE_BUSINGEN",
    "EUROPE_CHISINAU",
    "EUROPE_COPENHAGEN",
    "EUROPE_DUBLIN",
    "EUROPE_GIBRALTAR",
    "EUROPE_GUERNSEY",
    "EUROPE_HELSINKI",
    "EUROPE_ISLE_OF_MAN",
    "EUROPE_ISTANBUL",
    "EUROPE_JERSEY",
    "EUROPE_KALININGRAD",
    "EUROPE_KYIV",
    "EUROPE_KIROV",
    "EUROPE_LISBON",
    "EUROPE_LJUBLJANA",
    "EUROPE_LONDON",
    "EUROPE_LUXEMBOURG",
    "EUROPE_MADRID",
    "EUROPE_MALTA",
    "EUROPE_MARIEHAMN",
    "EUROPE_MINSK",
    "EUROPE_MONACO",
    "EUROPE_MOSCOW",
    "EUROPE_OSLO",
    "EUROPE_PARIS",
    "EUROPE_PODGORICA",
    "EUROPE_PRAGUE",
    "EUROPE_RIGA",
    "EUROPE_ROME",
    "EUROPE_SAMARA",
    "EUROPE_SAN_MARINO",
    "EUROPE_SARAJEVO",
    "EUROPE_SARATOV",
    "EUROPE_SIMFEROPOL",
    "EUROPE_SKOPJE",
    "EUROPE_SOFIA",
    "EUROPE_STOCKHOLM",
    "EUROPE_TALLINN",
    "EUROPE_TIRANE",
    "EUROPE_ULYANOVSK",
    "EUROPE_UZHGOROD",
    "EUROPE_VADUZ",
    "EUROPE_VATICAN",
    "EUROPE_VIENNA",
    "EUROPE_VILNIUS",
    "EUROPE_VOLGOGRAD",
    "EUROPE_WARSAW",
    "EUROPE_ZAGREB",
    "EUROPE_ZAPOROZHYE",
    "EUROPE_ZURICH",
    "INDIAN_ANTANANARIVO",
    "INDIAN_CHAGOS",
    "INDIAN_CHRISTMAS",
    "INDIAN_COCOS",
    "INDIAN_COMORO",
    "INDIAN_KERGUELEN",
    "INDIAN_MAHE",
    "INDIAN_MALDIVES",
    "INDIAN_MAURITIUS",
    "INDIAN_MAYOTTE",
    "INDIAN_REUNION",
    "PACIFIC_APIA",
    "PACIFIC_AUCKLAND",
    "PACIFIC_BOUGAINVILLE",
    "PACIFIC_CHATHAM",
    "PACIFIC_CHUUK",
    "PACIFIC_EASTER",
    "PACIFIC_EFATE",
    "PACIFIC_ENDERBURY",
    "PACIFIC_FAKAOFO",
    "PACIFIC_FIJI",
    "PACIFIC_FUNAFUTI",
    "PACIFIC_GALAPAGOS",
    "PACIFIC_GAMBIER",
    "PACIFIC_GUADALCANAL",
    "PACIFIC_GUAM",
    "PACIFIC_HONOLULU",
    "PACIFIC_KIRITIMATI",
    "PACIFIC_KOSRAE",
    "PACIFIC_KWAJALEIN",
    "PACIFIC_MAJURO",
    "PACIFIC_MARQUESAS",
    "PACIFIC_MIDWAY",
    "PACIFIC_NAURU",
    "PACIFIC_NIUE",
    "PACIFIC_NORFOLK",
    "PACIFIC_NOUMEA",
    "PACIFIC_PAGO_PAGO",
    "PACIFIC_PALAU",
    "PACIFIC_PITCAIRN",
    "PACIFIC_POHNPEI",
    "PACIFIC_PORT_MORESBY",
    "PACIFIC_RAROTONGA",
    "PACIFIC_SAIPAN",
    "PACIFIC_TAHITI",
    "PACIFIC_TARAWA",
    "PACIFIC_TONGATAPU",
    "PACIFIC_WAKE",
    "PACIFIC_WALLIS",
    "UTC"
  ]
}
```

### ToolExtendedInputVariable

```json
{
  "type": "object",
  "properties": {
    "schema": {},
    "metadata": {
      "type": "object",
      "additionalProperties": {}
    },
    "draft": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolExtendedInputVariableSlot"
        }
      ]
    }
  }
}
```

### ToolExtendedInputVariableSlot

```json
{
  "type": "object",
  "properties": {
    "schema": {},
    "metadata": {
      "type": "object",
      "additionalProperties": {}
    }
  }
}
```

### ToolNodeCaptureType

```json
{
  "type": "string",
  "enum": [
    "variable",
    "property"
  ],
  "x-enumNames": [
    "VARIABLE",
    "PROPERTY"
  ]
}
```

### ToolNodeDataAPICaptureResponse

```json
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string"
    },
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "path",
    "variableOrEntityID"
  ]
}
```

### ToolNodeDataFunctionCaptureResponse

```json
{
  "type": "object",
  "properties": {
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    },
    "functionOutputVariableID": {
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "variableOrEntityID",
    "functionOutputVariableID"
  ]
}
```

### ToolNodeDataIntegrationCaptureResponse

```json
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string"
    },
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "path",
    "variableOrEntityID"
  ]
}
```

### ToolNodeDataMcpIntegrationCaptureResponse

```json
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string"
    },
    "variableOrEntityID": {
      "nullable": true,
      "type": "string"
    },
    "captureType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolNodeCaptureType"
        }
      ]
    }
  },
  "required": [
    "path",
    "variableOrEntityID"
  ]
}
```

### ToolNodeDataToolSound

```json
{
  "type": "object",
  "properties": {
    "ref": {
      "nullable": true,
      "type": "string"
    },
    "volume": {
      "default": 0.75,
      "type": "number",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "ref"
  ]
}
```

### ToolSimulationTurnTest

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "tool"
      ],
      "x-enumNames": [
        "TOOL"
      ]
    },
    "turnID": {
      "type": "string"
    },
    "payload": {
      "$ref": "#/components/schemas/ToolSimulationTurnTestPayload"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "turnID",
    "payload"
  ]
}
```

### ToolSimulationTurnTestPayload

```json
{
  "type": "object",
  "properties": {
    "tool": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolSimulationTurnTestPayloadTool"
        }
      ]
    },
    "shouldCall": {
      "type": "boolean"
    }
  },
  "required": [
    "tool",
    "shouldCall"
  ]
}
```

### ToolSimulationTurnTestPayloadTool

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/NativeToolSimulationTurnTestPayload"
    },
    {
      "$ref": "#/components/schemas/ApiCallToolSimulationTurnTestPayload"
    },
    {
      "$ref": "#/components/schemas/FunctionToolSimulationTurnTestPayload"
    },
    {
      "$ref": "#/components/schemas/IntegrationToolSimulationTurnTestPayload"
    },
    {
      "$ref": "#/components/schemas/McpIntegrationToolSimulationTurnTestPayload"
    }
  ]
}
```

### TranscriptEvaluationOptionSchema

```json
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000
    },
    "included": {
      "type": "boolean"
    },
    "color": {
      "type": "string"
    }
  },
  "required": [
    "value",
    "prompt",
    "included",
    "color"
  ],
  "additionalProperties": false
}
```

### TranscriptEvaluationRunScope

```json
{
  "type": "string",
  "enum": [
    "both",
    "draft",
    "published"
  ],
  "x-enumNames": [
    "BOTH",
    "DRAFT",
    "PUBLISHED"
  ]
}
```

### TranscriptEvaluationSettings

```json
{
  "nullable": true,
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "realtime": {
      "type": "object",
      "properties": {
        "voice": {
          "type": "string"
        },
        "eagerness": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "maxTokens": {
      "type": "number"
    },
    "temperature": {
      "type": "number"
    },
    "reasoningEffort": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AIReasoningEffort"
        },
        {
          "type": "string",
          "nullable": true,
          "enum": [
            null
          ]
        }
      ]
    },
    "serviceTier": {
      "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
      "anyOf": [
        {
          "$ref": "#/components/schemas/AIParamsServiceTier"
        },
        {
          "type": "string",
          "nullable": true,
          "enum": [
            null
          ]
        }
      ]
    },
    "explainResults": {
      "description": "Whether each result includes a written explanation. Text evaluations always do.",
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### UserSimulationTurn

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "nullable": true,
      "type": "number"
    },
    "environmentID": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "user"
      ],
      "x-enumNames": [
        "USER"
      ]
    },
    "payload": {
      "$ref": "#/components/schemas/UserSimulationTurnPayload"
    },
    "testOrder": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "simulationID": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "type",
    "payload",
    "testOrder",
    "simulationID"
  ]
}
```

### UserSimulationTurnPayload

```json
{
  "type": "object",
  "properties": {
    "response": {
      "type": "string"
    },
    "variableStates": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/PersonaItem"
          }
        }
      ]
    }
  },
  "required": [
    "response",
    "variableStates"
  ]
}
```

### Variable

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "color": {
      "type": "string"
    },
    "isArray": {
      "type": "boolean"
    },
    "isSystem": {
      "type": "boolean"
    },
    "datatype": {
      "$ref": "#/components/schemas/VariableDatatype"
    },
    "description": {
      "nullable": true,
      "type": "string"
    },
    "defaultValue": {
      "nullable": true,
      "type": "string"
    },
    "resetAfter": {
      "default": "never",
      "type": "string",
      "enum": [
        "never",
        "session"
      ],
      "x-enumNames": [
        "NEVER",
        "EACH_SESSION"
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "name",
    "folderID",
    "createdByID",
    "color",
    "isArray",
    "isSystem",
    "datatype",
    "description",
    "defaultValue"
  ]
}
```

### VariableDatatype

```json
{
  "type": "string",
  "enum": [
    "any",
    "text",
    "date",
    "image",
    "number",
    "boolean",
    "string"
  ],
  "x-enumNames": [
    "ANY",
    "TEXT",
    "DATE",
    "IMAGE",
    "NUMBER",
    "BOOLEAN",
    "STRING"
  ]
}
```

### VariableReferenceString

```json
{
  "type": "string",
  "description": "Plain text; markdown is not interpreted. {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \\ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here."
}
```

### VariableState

```json
{
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "projectID": {
      "type": "string"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {}
    },
    "startFrom": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/VariableStateStartFrom"
        }
      ]
    }
  },
  "required": [
    "_id",
    "name",
    "projectID",
    "variables"
  ]
}
```

### VariableStateStartFrom

```json
{
  "type": "object",
  "properties": {
    "stepID": {
      "type": "string"
    },
    "diagramID": {
      "type": "string"
    }
  },
  "required": [
    "stepID",
    "diagramID"
  ]
}
```

### VersionCanvasTemplate

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "color": {
      "nullable": true,
      "type": "string"
    },
    "nodeIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "name",
    "color",
    "nodeIDs"
  ]
}
```

### VersionCustomBlock

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "stop": {
      "type": "boolean"
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/VersionCustomBlockParameter"
      }
    },
    "defaultPath": {
      "type": "number"
    }
  },
  "required": [
    "key",
    "name"
  ]
}
```

### VersionCustomBlockParameter

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name"
  ]
}
```

### VersionDomain

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "live": {
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "topicIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "updatedBy": {
      "type": "number"
    },
    "updatedAt": {
      "type": "string"
    },
    "rootDiagramID": {
      "type": "string"
    },
    "updatedByCreatorID": {
      "description": "@deprecated in favor of updatedBy",
      "type": "number"
    }
  },
  "required": [
    "id",
    "name",
    "live",
    "topicIDs",
    "rootDiagramID"
  ]
}
```

### VersionFolder

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionFolderItem"
      }
    }
  },
  "required": [
    "id",
    "name",
    "items"
  ]
}
```

### VersionFolderItem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "sourceID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "sourceID"
  ]
}
```

### VersionIntent

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionIntentSlot"
      }
    },
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionIntentInput"
      }
    },
    "noteID": {
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "key",
    "name",
    "inputs"
  ]
}
```

### VersionIntentInput

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "voice": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ]
}
```

### VersionIntentSlot

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "dialog": {
      "$ref": "#/components/schemas/VersionIntentSlotDialog"
    },
    "required": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "dialog",
    "required"
  ]
}
```

### VersionIntentSlotDialog

```json
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "array",
      "items": {}
    },
    "confirm": {
      "type": "array",
      "items": {}
    },
    "utterances": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionIntentInput"
      }
    },
    "confirmEnabled": {
      "type": "boolean"
    }
  },
  "required": [
    "prompt",
    "confirm",
    "utterances",
    "confirmEnabled"
  ]
}
```

### VersionKnowledgeBase

```json
{
  "type": "object",
  "properties": {
    "faqSets": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/VersionKnowledgeBaseSetFaq"
      }
    },
    "settings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/KnowledgeBaseSettings"
        }
      ]
    },
    "documents": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/KnowledgeBaseDocument"
      }
    }
  }
}
```

### VersionKnowledgeBaseSetFaq

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionKnowledgeBaseSetFaqStatus"
        }
      ]
    },
    "version": {
      "type": "number"
    },
    "faqSetID": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "creatorID": {
      "type": "number"
    }
  }
}
```

### VersionKnowledgeBaseSetFaqStatus

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    }
  },
  "additionalProperties": {}
}
```

### VersionModel

```json
{
  "type": "object",
  "properties": {
    "modelID": {
      "type": "string"
    }
  }
}
```

### VersionNote

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "meta": {
      "type": "object",
      "additionalProperties": {}
    },
    "mentions": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  },
  "required": [
    "id",
    "type",
    "text",
    "mentions"
  ]
}
```

### VersionPlatformData

```json
{
  "type": "object",
  "properties": {
    "slots": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionSlot"
      }
    },
    "intents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionIntent"
      }
    },
    "settings": {
      "$ref": "#/components/schemas/VersionPlatformSettings"
    },
    "publishing": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "slots",
    "intents",
    "settings",
    "publishing"
  ]
}
```

### VersionPlatformSettings

```json
{
  "type": "object",
  "properties": {
    "locales": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "deepgramASR": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DeepgramASRSettings"
        }
      ]
    },
    "globalNoReply": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "static"
              ],
              "x-enumNames": [
                "STATIC"
              ]
            },
            "delay": {
              "nullable": true,
              "type": "number"
            },
            "prompt": {
              "nullable": true
            },
            "enabled": {
              "type": "boolean"
            },
            "maxRetries": {
              "nullable": true,
              "type": "number"
            }
          }
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "generative"
              ],
              "x-enumNames": [
                "GENERATIVE"
              ]
            },
            "delay": {
              "nullable": true,
              "type": "number"
            },
            "prompt": {
              "$ref": "#/components/schemas/AIParams"
            },
            "enabled": {
              "type": "boolean"
            },
            "maxRetries": {
              "nullable": true,
              "type": "number"
            }
          },
          "required": [
            "type",
            "prompt"
          ]
        }
      ]
    },
    "defaultVoice": {
      "nullable": true,
      "type": "string"
    },
    "globalNoMatch": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "static"
              ],
              "x-enumNames": [
                "STATIC"
              ]
            },
            "prompt": {
              "nullable": true
            }
          },
          "required": [
            "type"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "generative"
              ],
              "x-enumNames": [
                "GENERATIVE"
              ]
            },
            "prompt": {
              "$ref": "#/components/schemas/AIParams"
            }
          },
          "required": [
            "type",
            "prompt"
          ]
        }
      ]
    },
    "messageDelay": {
      "type": "object",
      "properties": {
        "durationMilliseconds": {
          "type": "number"
        }
      },
      "required": [
        "durationMilliseconds"
      ]
    },
    "defaultCanvasNodeVisibility": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LegacyCanvasNodeVisibility"
        }
      ]
    }
  },
  "additionalProperties": {}
}
```

### VersionProgramResourcesCostControl

```json
{
  "type": "object",
  "properties": {
    "endMessage": {
      "nullable": true,
      "type": "string"
    }
  }
}
```

### VersionProgramResourcesGlobalCrew

```json
{
  "type": "object",
  "properties": {
    "nodeID": {
      "nullable": true,
      "type": "string"
    },
    "agentID": {
      "type": "string"
    },
    "subFlows": {
      "nullable": true,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledCrewNodeDataFlow"
      }
    },
    "diagramID": {
      "nullable": true,
      "type": "string"
    },
    "subAgents": {
      "nullable": true,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CompiledCrewNodeDataAgent"
      }
    },
    "agentDescription": {
      "deprecated": true,
      "description": "Use global agent description instead",
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "agentID"
  ]
}
```

### VersionProgramResourcesGlobalPrompts

```json
{
  "type": "object",
  "properties": {
    "persona": {
      "nullable": true,
      "type": "string"
    },
    "guidelines": {
      "nullable": true,
      "type": "string"
    }
  }
}
```

### VersionPrototype

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "data": {
      "$ref": "#/components/schemas/VersionPrototypeData"
    },
    "model": {
      "$ref": "#/components/schemas/PrototypeModel"
    },
    "context": {
      "$ref": "#/components/schemas/VersionPrototypeContext"
    },
    "platform": {
      "type": "string"
    },
    "settings": {
      "$ref": "#/components/schemas/VersionPrototypeSettings"
    },
    "surveyorContext": {
      "$ref": "#/components/schemas/VersionPrototypeSurveyorContext"
    }
  },
  "required": [
    "data",
    "model",
    "context",
    "platform",
    "settings",
    "surveyorContext"
  ],
  "additionalProperties": {}
}
```

### VersionPrototypeButtonLayout

```json
{
  "type": "string",
  "enum": [
    "stacked",
    "carousel"
  ],
  "x-enumNames": [
    "STACKED",
    "CAROUSEL"
  ]
}
```

### VersionPrototypeContext

```json
{
  "type": "object",
  "properties": {
    "turn": {
      "type": "object",
      "additionalProperties": {}
    },
    "stack": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VersionPrototypeStackFrame"
      }
    },
    "storage": {
      "type": "object",
      "additionalProperties": {}
    },
    "variables": {
      "type": "object",
      "additionalProperties": {}
    }
  }
}
```

### VersionPrototypeData

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "locales": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "messageDelay": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionPrototypeMessageDelay"
        }
      ]
    }
  },
  "required": [
    "name",
    "locales"
  ]
}
```

### VersionPrototypeMessageDelay

```json
{
  "type": "object",
  "properties": {
    "durationMilliseconds": {
      "type": "number"
    }
  },
  "required": [
    "durationMilliseconds"
  ]
}
```

### VersionPrototypeSettings

```json
{
  "type": "object",
  "properties": {
    "avatar": {
      "type": "string"
    },
    "layout": {
      "type": "string"
    },
    "buttons": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionPrototypeButtonLayout"
        }
      ]
    },
    "password": {
      "type": "string"
    },
    "brandColor": {
      "type": "string"
    },
    "brandImage": {
      "type": "string"
    },
    "hasPassword": {
      "type": "boolean"
    },
    "hasBranding": {
      "type": "boolean"
    },
    "buttonsOnly": {
      "type": "boolean"
    },
    "variableStateID": {
      "nullable": true,
      "type": "string"
    }
  }
}
```

### VersionPrototypeStackFrame

```json
{
  "type": "object",
  "properties": {
    "nodeID": {
      "nullable": true,
      "type": "string"
    },
    "programID": {
      "nullable": true,
      "type": "string"
    },
    "storage": {
      "type": "object",
      "additionalProperties": {}
    },
    "commands": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": {}
      }
    },
    "diagramID": {
      "type": "string"
    },
    "variables": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "diagramID"
  ]
}
```

### VersionPrototypeSurveyorContext

```json
{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string"
    },
    "slotsMap": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/PrototypeSlot"
      }
    },
    "extraSlots": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeSlot"
      }
    },
    "cmsEntities": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledEntity"
      }
    },
    "extraIntents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrototypeIntent"
      }
    },
    "cmsVariables": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledVariable"
      }
    },
    "usedIntentsSet": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "functionDefinitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/CompiledFunctionDefinition"
      }
    },
    "referencedAgentsIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referencedPromptIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referencedAPIToolIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referencedResponseIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referencedIntegrationToolIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "referencedMCPIntegrationToolIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "usedFunctionsMap": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "platform",
    "slotsMap",
    "extraSlots",
    "extraIntents"
  ],
  "additionalProperties": {}
}
```

### VersionSettingsAnalytics

```json
{
  "type": "object",
  "properties": {
    "estimatedSavings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAnalyticsEstimatedSavings"
        }
      ]
    }
  }
}
```

### VersionSettingsAnalyticsEstimatedSavings

```json
{
  "type": "object",
  "properties": {
    "resolutionRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAnalyticsEstimatedSavingsValue"
        }
      ]
    },
    "deflectionRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAnalyticsEstimatedSavingsValue"
        }
      ]
    },
    "conversionRate": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsAnalyticsEstimatedSavingsConversionValue"
        }
      ]
    }
  }
}
```

### VersionSettingsAnalyticsEstimatedSavingsConversionValue

```json
{
  "type": "object",
  "properties": {
    "dollars": {
      "type": "number"
    },
    "criteria": {
      "type": "string"
    }
  }
}
```

### VersionSettingsAnalyticsEstimatedSavingsValue

```json
{
  "type": "object",
  "properties": {
    "minutes": {
      "type": "number"
    },
    "dollars": {
      "type": "number"
    }
  }
}
```

### VersionSettingsAutomaticReprompt

```json
{
  "type": "object",
  "properties": {
    "params": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AutomaticRepromptParams"
        }
      ]
    }
  },
  "required": [
    "params"
  ]
}
```

### VersionSettingsDefaultWidget

```json
{
  "type": "string",
  "enum": [
    "webchat",
    "interface"
  ],
  "x-enumNames": [
    "WEBCHAT",
    "INTERFACE"
  ]
}
```

### VersionSettingsFramework

```json
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/ProjectFramework"
    },
    "agenticInitializeComponentID": {
      "default": null,
      "nullable": true,
      "type": "string"
    },
    "conversationInitializeComponentID": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "conversationInitializeComponentID"
  ]
}
```

### VersionSettingsGlobalNoMatchGenerative

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "generative"
      ],
      "x-enumNames": [
        "GENERATIVE"
      ]
    },
    "settings": {
      "type": "object",
      "properties": {
        "model": {
          "allOf": [
            {
              "$ref": "#/components/schemas/AIModel"
            }
          ]
        },
        "system": {
          "type": "string"
        },
        "maxTokens": {
          "type": "number"
        },
        "temperature": {
          "type": "number"
        },
        "reasoningEffort": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/AIReasoningEffort"
            }
          ]
        },
        "serviceTier": {
          "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/AIParamsServiceTier"
            }
          ]
        }
      }
    }
  },
  "required": [
    "type",
    "settings"
  ]
}
```

### VersionSettingsGlobalNoReplyGenerative

```json
{
  "type": "object",
  "properties": {
    "delay": {
      "nullable": true,
      "type": "number"
    },
    "enabled": {
      "type": "boolean"
    },
    "maxRetries": {
      "type": "number"
    },
    "type": {
      "type": "string",
      "enum": [
        "generative"
      ],
      "x-enumNames": [
        "GENERATIVE"
      ]
    },
    "settings": {
      "type": "object",
      "properties": {
        "model": {
          "allOf": [
            {
              "$ref": "#/components/schemas/AIModel"
            }
          ]
        },
        "system": {
          "type": "string"
        },
        "maxTokens": {
          "type": "number"
        },
        "temperature": {
          "type": "number"
        },
        "reasoningEffort": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/AIReasoningEffort"
            }
          ]
        },
        "serviceTier": {
          "description": "The service tier to request from models that support it. `priority` is faster processing: faster responses at a higher credit cost. When unset, the deprecated project-level `priorityProcessing` setting applies.",
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/components/schemas/AIParamsServiceTier"
            }
          ]
        }
      }
    }
  },
  "required": [
    "delay",
    "enabled",
    "type",
    "settings"
  ]
}
```

### VersionSettingsMemory

```json
{
  "type": "object",
  "properties": {
    "turns": {
      "default": 10,
      "type": "number"
    }
  }
}
```

### VersionSettingsSecurity

```json
{
  "type": "object",
  "properties": {
    "transcriptsPII": {
      "default": false,
      "type": "boolean"
    }
  }
}
```

### VersionSettingsSession

```json
{
  "type": "object",
  "properties": {
    "idleTimeout": {
      "$ref": "#/components/schemas/VersionSettingsSessionIdleTimeout"
    }
  },
  "required": [
    "idleTimeout"
  ]
}
```

### VersionSettingsSessionIdleTimeout

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "timeoutMs": {
      "type": "number"
    }
  },
  "required": [
    "enabled",
    "timeoutMs"
  ]
}
```

### VersionSettingsShareableLink

```json
{
  "type": "object",
  "properties": {
    "password": {
      "type": "string"
    },
    "variableStateID": {
      "nullable": true,
      "type": "string"
    }
  }
}
```

### VersionSettingsTime

```json
{
  "type": "object",
  "properties": {
    "timezone": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/Timezone"
        }
      ]
    },
    "injectInAgent": {
      "type": "boolean"
    }
  }
}
```

### VersionSettingsUI

```json
{
  "type": "object",
  "properties": {
    "transcripts": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsUITranscripts"
        }
      ]
    },
    "analytics": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsUIAnalytics"
        }
      ]
    }
  }
}
```

### VersionSettingsUIAnalytics

```json
{
  "type": "object",
  "properties": {
    "sectionsOrderIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

### VersionSettingsUITranscripts

```json
{
  "type": "object",
  "properties": {
    "sectionsOrderIDs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

### VersionSettingsVoice

```json
{
  "type": "object",
  "properties": {
    "stt": {
      "allOf": [
        {
          "$ref": "#/components/schemas/STTSettings"
        }
      ]
    },
    "tts": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VoiceSettings"
        }
      ]
    },
    "localeOverrides": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VoiceLocaleOverride"
      }
    },
    "pronunciationDictionary": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PronunciationDictionaryEntry"
      }
    },
    "failureMessage": {
      "nullable": true,
      "type": "string"
    },
    "hasCallRecording": {
      "default": true,
      "type": "boolean"
    },
    "hasProviderCallRecording": {
      "type": "boolean"
    },
    "audioCue": {
      "nullable": true,
      "type": "number"
    },
    "backgroundAudio": {
      "nullable": true,
      "type": "string"
    },
    "backgroundAudioSettings": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BackgroundAudioSettings"
        }
      ]
    },
    "audioSync": {
      "type": "boolean"
    },
    "keypadInput": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VoiceKeypadSettings"
        }
      ]
    },
    "silenceTimeoutMs": {
      "type": "number"
    },
    "maxDuration": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VoiceMaxDurationSettings"
        }
      ]
    },
    "callerIdentity": {
      "allOf": [
        {
          "$ref": "#/components/schemas/VersionSettingsVoiceCallerIdentity"
        }
      ]
    }
  }
}
```

### VersionSettingsVoiceCallerIdentity

```json
{
  "type": "string",
  "enum": [
    "phone-number",
    "call"
  ],
  "x-enumNames": [
    "PHONE_NUMBER",
    "CALL"
  ]
}
```

### VersionSlot

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "$ref": "#/components/schemas/VersionSlotType"
    },
    "color": {
      "type": "string"
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "key",
    "name",
    "type",
    "inputs"
  ]
}
```

### VersionSlotType

```json
{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    }
  }
}
```

### VoiceKeypadSettings

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "delimiter": {
      "maxItems": 2,
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DTMFDelimiter"
      }
    },
    "timeoutInSeconds": {
      "type": "number"
    }
  },
  "required": [
    "enabled",
    "delimiter",
    "timeoutInSeconds"
  ]
}
```

### VoiceLocaleOverride

```json
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "minLength": 1
    },
    "tts": {
      "$ref": "#/components/schemas/VoiceSettings"
    }
  },
  "required": [
    "locale",
    "tts"
  ]
}
```

### VoiceMaxDurationSettings

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "seconds": {
      "nullable": true,
      "type": "number"
    },
    "message": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "seconds",
    "message"
  ]
}
```

### VoiceSettings

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/AmazonVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/GoogleVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/CartesiaVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/RimelabsVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/SonioxVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/MicrosoftVoiceSettings"
    },
    {
      "$ref": "#/components/schemas/ElevenLabsVoiceSettings"
    }
  ]
}
```

### WidgetSettings

```json
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/WidgetSettingsWidgetType"
    },
    "chat": {
      "$ref": "#/components/schemas/WidgetSettingsChatSettings"
    },
    "voice": {
      "$ref": "#/components/schemas/WidgetSettingsVoiceSettings"
    },
    "common": {
      "$ref": "#/components/schemas/WidgetSettingsCommonSettings"
    },
    "security": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsSecuritySettings"
        }
      ]
    }
  },
  "required": [
    "type",
    "chat",
    "voice",
    "common"
  ]
}
```

### WidgetSettingsChatDisclaimer

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "primaryButtonText": {
      "type": "string"
    },
    "secondaryButtonText": {
      "type": "string"
    },
    "secondaryButtonURL": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "title",
    "description",
    "primaryButtonText",
    "secondaryButtonText",
    "secondaryButtonURL"
  ]
}
```

### WidgetSettingsChatPersistence

```json
{
  "type": "string",
  "enum": [
    "memory",
    "localStorage",
    "sessionStorage"
  ],
  "x-enumNames": [
    "MEMORY",
    "LOCAL_STORAGE",
    "SESSION_STORAGE"
  ]
}
```

### WidgetSettingsChatRenderMode

```json
{
  "type": "string",
  "enum": [
    "embed",
    "widget",
    "popover"
  ],
  "x-enumNames": [
    "EMBED",
    "WIDGET",
    "POPOVER"
  ]
}
```

### WidgetSettingsChatSettings

```json
{
  "type": "object",
  "properties": {
    "renderMode": {
      "$ref": "#/components/schemas/WidgetSettingsChatRenderMode"
    },
    "headerImage": {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsHeaderImage"
    },
    "agentImage": {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsAgentImage"
    },
    "banner": {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsBanner"
    },
    "placeholderText": {
      "type": "string"
    },
    "disclaimer": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsChatDisclaimer"
        }
      ]
    },
    "aiDisclaimer": {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsAIDisclaimer"
    },
    "handoffToAgentImageURL": {
      "nullable": true,
      "type": "string"
    },
    "streamingDisabled": {
      "type": "boolean"
    },
    "responseLoader": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsChatSettingsResponseLoader"
        }
      ]
    },
    "voiceInput": {
      "type": "boolean"
    },
    "voiceOutput": {
      "type": "boolean"
    },
    "voiceOutputMuted": {
      "type": "boolean"
    },
    "voiceMode": {
      "type": "boolean"
    },
    "notificationSound": {
      "type": "boolean"
    },
    "fileUpload": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsChatSettingsFileUpload"
        }
      ]
    },
    "csat": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsChatSettingsCSAT"
        }
      ]
    }
  },
  "required": [
    "renderMode",
    "headerImage",
    "agentImage",
    "banner",
    "placeholderText",
    "aiDisclaimer",
    "voiceInput",
    "voiceOutput"
  ]
}
```

### WidgetSettingsChatSettingsAIDisclaimer

```json
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "text",
    "enabled"
  ]
}
```

### WidgetSettingsChatSettingsAgentImage

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "enabled"
  ]
}
```

### WidgetSettingsChatSettingsBanner

```json
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "imageURL": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "title",
    "description",
    "enabled"
  ]
}
```

### WidgetSettingsChatSettingsCSAT

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "promptText": {
      "type": "string"
    },
    "includeFreetextFeedback": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled",
    "includeFreetextFeedback"
  ]
}
```

### WidgetSettingsChatSettingsFileUpload

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "maxFilesPerConversation": {
      "nullable": true,
      "type": "number"
    },
    "model": {
      "type": "string"
    }
  },
  "required": [
    "enabled"
  ]
}
```

### WidgetSettingsChatSettingsHeaderImage

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "url": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "enabled"
  ]
}
```

### WidgetSettingsChatSettingsResponseLoader

```json
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsResponseLoaderDots"
    },
    {
      "$ref": "#/components/schemas/WidgetSettingsChatSettingsResponseLoaderSpinnerWithText"
    }
  ]
}
```

### WidgetSettingsChatSettingsResponseLoaderDots

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "dots"
      ],
      "x-enumNames": [
        "DOTS"
      ]
    }
  },
  "required": [
    "type"
  ]
}
```

### WidgetSettingsChatSettingsResponseLoaderSpinnerWithText

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "spinner-with-text"
      ],
      "x-enumNames": [
        "SPINNER_WITH_TEXT"
      ]
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "text"
  ]
}
```

### WidgetSettingsColorPalette

```json
{
  "type": "object",
  "properties": {
    "50": {
      "type": "string"
    },
    "100": {
      "type": "string"
    },
    "200": {
      "type": "string"
    },
    "300": {
      "type": "string"
    },
    "400": {
      "type": "string"
    },
    "500": {
      "type": "string"
    },
    "600": {
      "type": "string"
    },
    "700": {
      "type": "string"
    },
    "800": {
      "type": "string"
    },
    "900": {
      "type": "string"
    }
  },
  "required": [
    "50",
    "100",
    "200",
    "300",
    "400",
    "500",
    "600",
    "700",
    "800",
    "900"
  ]
}
```

### WidgetSettingsCommonSettings

```json
{
  "type": "object",
  "properties": {
    "sideSpacing": {
      "type": "string"
    },
    "bottomSpacing": {
      "type": "string"
    },
    "width": {
      "type": "string"
    },
    "position": {
      "$ref": "#/components/schemas/WidgetSettingsWidgetPosition"
    },
    "fontFamily": {
      "type": "string"
    },
    "primaryColor": {
      "$ref": "#/components/schemas/WidgetSettingsPrimaryColor"
    },
    "poweredBy": {
      "type": "boolean"
    },
    "launcher": {
      "$ref": "#/components/schemas/WidgetSettingsCommonSettingsLauncher"
    },
    "footerLink": {
      "$ref": "#/components/schemas/WidgetSettingsCommonSettingsFooterLink"
    },
    "persistence": {
      "$ref": "#/components/schemas/WidgetSettingsChatPersistence"
    },
    "featureFlags": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WidgetSettingsCommonSettingsFeatureFlags"
        }
      ]
    }
  },
  "required": [
    "sideSpacing",
    "bottomSpacing",
    "position",
    "fontFamily",
    "primaryColor",
    "poweredBy",
    "launcher",
    "footerLink",
    "persistence"
  ]
}
```

### WidgetSettingsCommonSettingsFeatureFlags

```json
{
  "type": "object",
  "additionalProperties": {
    "type": "boolean"
  }
}
```

### WidgetSettingsCommonSettingsFooterLink

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "text": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "enabled"
  ]
}
```

### WidgetSettingsCommonSettingsLauncher

```json
{
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/components/schemas/WidgetSettingsLauncherType"
    },
    "text": {
      "type": "string"
    },
    "imageURL": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "type"
  ]
}
```

### WidgetSettingsLauncherType

```json
{
  "type": "string",
  "enum": [
    "icon",
    "label",
    "both"
  ],
  "x-enumNames": [
    "ICON",
    "LABEL",
    "BOTH"
  ]
}
```

### WidgetSettingsPrimaryColor

```json
{
  "type": "object",
  "properties": {
    "color": {
      "type": "string"
    },
    "palette": {
      "$ref": "#/components/schemas/WidgetSettingsColorPalette"
    }
  },
  "required": [
    "color",
    "palette"
  ]
}
```

### WidgetSettingsSecuritySettings

```json
{
  "type": "object",
  "properties": {
    "approvedDomains": {
      "$ref": "#/components/schemas/WidgetSettingsSecuritySettingsApprovedDomains"
    },
    "disableTranscript": {
      "type": "boolean"
    },
    "isTranscriptDownloadEnabled": {
      "type": "boolean"
    }
  },
  "required": [
    "approvedDomains",
    "disableTranscript"
  ]
}
```

### WidgetSettingsSecuritySettingsApprovedDomains

```json
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "domains": {
      "type": "string"
    }
  },
  "required": [
    "enabled",
    "domains"
  ]
}
```

### WidgetSettingsVoiceRenderMode

```json
{
  "type": "string",
  "enum": [
    "full",
    "compact",
    "expand"
  ],
  "x-enumNames": [
    "FULL",
    "COMPACT",
    "EXPAND"
  ]
}
```

### WidgetSettingsVoiceSettings

```json
{
  "type": "object",
  "properties": {
    "renderMode": {
      "$ref": "#/components/schemas/WidgetSettingsVoiceRenderMode"
    },
    "content": {
      "$ref": "#/components/schemas/WidgetSettingsVoiceSettingsContent"
    }
  },
  "required": [
    "renderMode",
    "content"
  ]
}
```

### WidgetSettingsVoiceSettingsContent

```json
{
  "type": "object",
  "properties": {
    "imageURL": {
      "nullable": true,
      "type": "string"
    },
    "talkingText": {
      "type": "string"
    },
    "endButtonText": {
      "type": "string"
    },
    "listeningText": {
      "type": "string"
    },
    "startButtonText": {
      "type": "string"
    },
    "callToActionText": {
      "type": "string"
    }
  },
  "required": [
    "talkingText",
    "endButtonText",
    "listeningText",
    "startButtonText",
    "callToActionText"
  ]
}
```

### WidgetSettingsWidgetPosition

```json
{
  "type": "string",
  "enum": [
    "right",
    "left"
  ],
  "x-enumNames": [
    "RIGHT",
    "LEFT"
  ]
}
```

### WidgetSettingsWidgetType

```json
{
  "type": "string",
  "enum": [
    "chat",
    "voice"
  ],
  "x-enumNames": [
    "CHAT",
    "VOICE"
  ]
}
```

### Workflow

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedByID": {
      "type": "number"
    },
    "assistantID": {
      "type": "string"
    },
    "environmentID": {
      "type": "string"
    },
    "folderID": {
      "nullable": true,
      "type": "string"
    },
    "createdByID": {
      "type": "number"
    },
    "status": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/WorkflowStatus"
        }
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "isStart": {
      "type": "boolean"
    },
    "diagramID": {
      "type": "string"
    },
    "assigneeID": {
      "nullable": true,
      "type": "number"
    },
    "description": {
      "nullable": true,
      "type": "string"
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "updatedByID",
    "folderID",
    "createdByID",
    "status",
    "name",
    "isStart",
    "diagramID",
    "assigneeID",
    "description"
  ]
}
```

### WorkflowStatus

```json
{
  "type": "string",
  "enum": [
    "to_do",
    "complete",
    "in_progress"
  ],
  "x-enumNames": [
    "TO_DO",
    "COMPLETE",
    "IN_PROGRESS"
  ]
}
```
