# Get source catalog (/api-reference/catalog/getSourceCatalog)

`GET /api/v2/workspaces/{workspaceId}/workflows/source/catalog`

Get the source catalog, the block catalog that workflow source is compiled and type-checked against: every block type the caller may place in the workspace, with its fields, visibility conditions, outputs, triggers, and SDK builder names. Pass `workflowId` to add the block types already placed in that workflow. The response carries the catalog `hash` as an `ETag`; send it back in `If-None-Match` to receive `304 Not Modified` with no body when the catalog is unchanged. Returns `403` while workflows as code is not enabled.

OAuth scope: `api:read`.

## Authentication

```json

{
  "requirements": [
    {
      "apiKey": []
    },
    {
      "oauthBearer": [
        "api:read"
      ]
    }
  ],
  "schemes": {
    "apiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "X-API-Key",
      "description": "Send a personal or workspace API key in `X-API-Key`. See [key types and access](https://docs.sim.ai/api-reference/authentication#key-types); operations that reject workspace keys say so in their description."
    },
    "oauthBearer": {
      "type": "oauth2",
      "description": "Send a Sim OAuth access token in `Authorization: Bearer`. See [OAuth authentication and scopes](https://docs.sim.ai/api-reference/authentication#oauth-access-tokens).",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
          "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
          "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
          "scopes": {
            "api:read": "Read your workspaces, workflows, files, tables, and logs",
            "api:write": "Read, create, change, run, and delete resources in your workspaces",
            "offline_access": "Stay signed in without asking again"
          }
        }
      }
    }
  }
}

```

Required OAuth scope: `api:read`.

## Request examples

### cURL

```bash
curl --request GET 'https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog' \
  --header 'X-API-Key: YOUR_API_KEY'
```

### JavaScript

```javascript
const response = await fetch("https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog", {
  "method": "GET",
  "headers": {
    "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
```

### Python

```python
import requests

response = requests.request(
    "GET",
    "https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog",
    headers={
  "X-API-Key": "YOUR_API_KEY"
},
)
response.raise_for_status()
result = response.json()
```

### Go

```go
package main

import (
  "io"
  "net/http"
  "os"
)

func check(err error) {
  if err != nil { panic(err) }
}

func must[T any](value T, err error) T {
  check(err)
  return value
}

func main() {

  request := must(http.NewRequest("GET", "https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog", nil))
  request.Header.Set("X-API-Key", "YOUR_API_KEY")
  response := must(http.DefaultClient.Do(request))
  defer response.Body.Close()
  if response.StatusCode >= 400 { panic(response.Status) }
  must(io.Copy(os.Stdout, response.Body))
}
```

### Java

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Example {
  public static void main(String[] args) throws Exception {
    var builder = HttpRequest.newBuilder(URI.create("https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog"));
    builder.header("X-API-Key", "YOUR_API_KEY");
    var request = builder.method("GET", HttpRequest.BodyPublishers.noBody()).build();
    var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofInputStream());
    try (var body = response.body()) {
      if (response.statusCode() >= 400) throw new IllegalStateException("HTTP " + response.statusCode());
      body.transferTo(System.out);
    }
  }
}
```

### C#

```csharp
using System;
using System.IO;
using System.Net.Http;
using System.Text;

using var client = new HttpClient();
using var request = new HttpRequestMessage(new HttpMethod("GET"), "https://www.sim.ai/api/v2/workspaces/string/workflows/source/catalog");
request.Headers.TryAddWithoutValidation("X-API-Key", "YOUR_API_KEY");
using var response = await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead);
response.EnsureSuccessStatusCode();
await response.Content.CopyToAsync(Console.OpenStandardOutput());
```

## Parameters

```json

[
  {
    "name": "workspaceId",
    "in": "path",
    "required": true,
    "description": "Workspace whose integration allowlist, revealed preview blocks, and deployed custom blocks decide what the catalog contains.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Workspace whose integration allowlist, revealed preview blocks, and deployed custom blocks decide what the catalog contains."
    }
  },
  {
    "name": "workflowId",
    "in": "query",
    "required": false,
    "description": "Return the source catalog for this workflow: the workspace catalog plus every block type already placed in it, the ones the caller could not add marked `addable: false`.",
    "schema": {
      "description": "Return the source catalog for this workflow: the workspace catalog plus every block type already placed in it, the ones the caller could not add marked `addable: false`.",
      "type": "string",
      "minLength": 1
    }
  },
  {
    "name": "if-none-match",
    "in": "header",
    "required": false,
    "description": "A catalog `hash` (quoted, as sent in `ETag`) the caller already holds.",
    "schema": {
      "description": "A catalog `hash` (quoted, as sent in `ETag`) the caller already holds.",
      "type": "string",
      "maxLength": 1024
    }
  }
]

```

## Responses

### 200

```json

{
  "description": "The source catalog.",
  "headers": {
    "ETag": {
      "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog.",
      "schema": {
        "type": "string",
        "minLength": 1,
        "title": "Entity tag",
        "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog."
      }
    },
    "X-RateLimit-Limit": {
      "description": "Maximum requests allowed in the current window.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Rate limit",
        "description": "Maximum requests allowed in the current window."
      }
    },
    "X-RateLimit-Remaining": {
      "description": "Requests remaining in the current window.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Rate limit remaining",
        "description": "Requests remaining in the current window."
      }
    },
    "X-RateLimit-Reset": {
      "description": "ISO 8601 timestamp when the current rate-limit window resets.",
      "schema": {
        "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))$",
        "title": "Rate limit reset",
        "description": "ISO 8601 timestamp when the current rate-limit window resets."
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "catalogVersion": {
                "type": "number",
                "const": 1,
                "description": "Catalog format version."
              },
              "hash": {
                "type": "string",
                "description": "SHA-256 of the catalog content; the response `ETag`."
              },
              "sdkMajor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Workflow SDK major version this catalog serves."
              },
              "blocks": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Block type id."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "blocks",
                        "tools",
                        "triggers"
                      ],
                      "description": "Block category."
                    },
                    "addable": {
                      "description": "Present when new blocks of this type are refused; existing ones still compile.",
                      "type": "boolean",
                      "const": false
                    },
                    "lifecycle": {
                      "description": "Lifecycle flags.",
                      "type": "object",
                      "properties": {
                        "hidden": {
                          "description": "Hidden from the toolbar.",
                          "type": "boolean",
                          "const": true
                        },
                        "preview": {
                          "description": "Unreleased preview block.",
                          "type": "boolean",
                          "const": true
                        },
                        "sunset": {
                          "description": "Post-GA lifecycle state.",
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "legacy",
                                "deprecated"
                              ],
                              "description": "Lifecycle state."
                            },
                            "replacedBy": {
                              "description": "Successor block type.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "status"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "triggerAllowed": {
                      "description": "Whether the block can start a workflow.",
                      "type": "boolean"
                    },
                    "triggers": {
                      "description": "Trigger mode support.",
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether trigger mode is available."
                        },
                        "available": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Trigger ids the block supports."
                        }
                      },
                      "required": [
                        "enabled",
                        "available"
                      ],
                      "additionalProperties": false
                    },
                    "singleInstance": {
                      "description": "At most one per workflow.",
                      "type": "boolean"
                    },
                    "subBlocks": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Field id; the param name unless the field is in a basic/advanced pair."
                              },
                              "type": {
                                "type": "string",
                                "description": "Editor control type, e.g. `short-input`."
                              },
                              "title": {
                                "description": "Display title.",
                                "type": "string"
                              },
                              "mode": {
                                "description": "Which editor mode shows the field.",
                                "type": "string",
                                "enum": [
                                  "basic",
                                  "advanced",
                                  "both",
                                  "trigger",
                                  "trigger-advanced"
                                ]
                              },
                              "canonicalParamId": {
                                "description": "Shared param name of a basic/advanced pair.",
                                "type": "string"
                              },
                              "surface": {
                                "description": "Whether this declaration belongs to action or trigger mode.",
                                "type": "string",
                                "enum": [
                                  "action",
                                  "trigger"
                                ]
                              },
                              "condition": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Sibling field id whose value decides the condition."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the match.",
                                        "type": "boolean"
                                      },
                                      "and": {
                                        "description": "A second clause that must hold as well.",
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Second field id."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the second match.",
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "field"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Holds when `field` holds `value`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ],
                                "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                              },
                              "visibleFor": {
                                "description": "Per operation id: whether an opaque condition can show this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "boolean"
                                }
                              },
                              "visibleWhen": {
                                "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "field": {
                                      "type": "string",
                                      "description": "Sibling field id whose value decides the condition."
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "list": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991,
                                              "description": "Index into the catalog `lists` table."
                                            }
                                          },
                                          "required": [
                                            "list"
                                          ],
                                          "additionalProperties": false,
                                          "description": "A value list stored once in the catalog `lists` table."
                                        }
                                      ],
                                      "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                    },
                                    "not": {
                                      "description": "Invert the match.",
                                      "type": "boolean"
                                    },
                                    "and": {
                                      "description": "A second clause that must hold as well.",
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "description": "Second field id."
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            },
                                            {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "list": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991,
                                                  "description": "Index into the catalog `lists` table."
                                                }
                                              },
                                              "required": [
                                                "list"
                                              ],
                                              "additionalProperties": false,
                                              "description": "A value list stored once in the catalog `lists` table."
                                            }
                                          ],
                                          "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                        },
                                        "not": {
                                          "description": "Invert the second match.",
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "field",
                                    "value"
                                  ],
                                  "additionalProperties": false,
                                  "description": "Holds when `field` holds `value`."
                                }
                              },
                              "visibleForModel": {
                                "description": "Per model id: whether an opaque condition shows this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "boolean"
                                }
                              },
                              "required": {
                                "description": "Whether a value is required, or the condition under which it is.",
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Sibling field id whose value decides the condition."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the match.",
                                            "type": "boolean"
                                          },
                                          "and": {
                                            "description": "A second clause that must hold as well.",
                                            "type": "object",
                                            "properties": {
                                              "field": {
                                                "type": "string",
                                                "description": "Second field id."
                                              },
                                              "value": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "boolean"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "number"
                                                        },
                                                        {
                                                          "type": "boolean"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "list": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 9007199254740991,
                                                        "description": "Index into the catalog `lists` table."
                                                      }
                                                    },
                                                    "required": [
                                                      "list"
                                                    ],
                                                    "additionalProperties": false,
                                                    "description": "A value list stored once in the catalog `lists` table."
                                                  }
                                                ],
                                                "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                              },
                                              "not": {
                                                "description": "Invert the second match.",
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "field"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "value"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Holds when `field` holds `value`."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "opaque": {
                                            "type": "boolean",
                                            "const": true,
                                            "description": "Always true."
                                          }
                                        },
                                        "required": [
                                          "opaque"
                                        ],
                                        "additionalProperties": false,
                                        "description": "A function the catalog could not evaluate to data."
                                      }
                                    ],
                                    "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                                  }
                                ]
                              },
                              "dependsOn": {
                                "description": "Editor clearing and fetch ordering hints; never visibility.",
                                "type": "object",
                                "properties": {
                                  "all": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Fields that must all hold values."
                                  },
                                  "any": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Fields of which one must hold a value."
                                  }
                                },
                                "required": [
                                  "all",
                                  "any"
                                ],
                                "additionalProperties": false
                              },
                              "defaultValue": {
                                "description": "Editor default value (any JSON)."
                              },
                              "valueDefault": {
                                "description": "The registry value thunk, evaluated where it is constant.",
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "computed": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      },
                                      "initial": {
                                        "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                                      }
                                    },
                                    "required": [
                                      "computed"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A value thunk derived from other params."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "constant": {
                                        "description": "The constant value (any JSON)."
                                      }
                                    },
                                    "required": [
                                      "constant"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A value thunk that always returns this."
                                  }
                                ]
                              },
                              "options": {
                                "description": "Selectable options.",
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "description": "Stored option id."
                                        },
                                        "label": {
                                          "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ],
                                      "additionalProperties": false,
                                      "description": "One static option."
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "dynamic": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "dynamic"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Options fetched per workspace through `selectorKey`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ]
                              },
                              "optionsVary": {
                                "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                                "type": "boolean",
                                "const": true
                              },
                              "hidden": {
                                "description": "Hidden from the editor.",
                                "type": "boolean"
                              },
                              "readOnly": {
                                "description": "Display-only.",
                                "type": "boolean"
                              },
                              "password": {
                                "description": "Holds a secret.",
                                "type": "boolean"
                              },
                              "hideFromCopilot": {
                                "description": "Not offered to Copilot.",
                                "type": "boolean"
                              },
                              "context": {
                                "description": "Only meaningful as an agent tool.",
                                "type": "string",
                                "const": "tool-input"
                              },
                              "paramVisibility": {
                                "description": "Tool param visibility override.",
                                "type": "string"
                              },
                              "emptyIsValid": {
                                "description": "An empty value satisfies `required`.",
                                "type": "boolean"
                              },
                              "language": {
                                "description": "Code field language.",
                                "type": "string"
                              },
                              "multiple": {
                                "description": "Accepts several files.",
                                "type": "boolean"
                              },
                              "min": {
                                "description": "Minimum numeric value.",
                                "type": "number"
                              },
                              "max": {
                                "description": "Maximum numeric value.",
                                "type": "number"
                              },
                              "step": {
                                "description": "Slider increment.",
                                "type": "number"
                              },
                              "integer": {
                                "description": "Integers only.",
                                "type": "boolean"
                              },
                              "columns": {
                                "description": "Table column headers.",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "selectorKey": {
                                "description": "Selector that lists the options.",
                                "type": "string"
                              },
                              "serviceId": {
                                "description": "OAuth service the field binds.",
                                "type": "string"
                              },
                              "credentialProviders": {
                                "description": "Provider ids of the saved credentials the field accepts.",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "valueKind": {
                                "type": "string",
                                "enum": [
                                  "string",
                                  "number",
                                  "boolean",
                                  "array",
                                  "object",
                                  "json",
                                  "code",
                                  "branches",
                                  "tools",
                                  "resource",
                                  "picked",
                                  "upload",
                                  "none"
                                ],
                                "description": "How a value for this field is written in source."
                              },
                              "resourceKind": {
                                "description": "Workspace resource kind, for `resource` fields.",
                                "type": "string"
                              },
                              "storage": {
                                "type": "string",
                                "enum": [
                                  "native",
                                  "json-string"
                                ],
                                "description": "Encoding a new value is stored with."
                              },
                              "structured": {
                                "description": "Structured value the canonical model decodes.",
                                "type": "string",
                                "enum": [
                                  "tools",
                                  "branches",
                                  "tableRows",
                                  "inputFormat",
                                  "variables",
                                  "skills"
                                ]
                              },
                              "acceptsNumber": {
                                "description": "Free text that also takes a number, which the runtime coerces.",
                                "type": "boolean"
                              },
                              "neverDecoded": {
                                "description": "User text whose JSON-looking content is never decoded.",
                                "type": "boolean"
                              },
                              "tableFilter": {
                                "description": "A table filter: builder rows or a predicate.",
                                "type": "boolean"
                              },
                              "valueShape": {
                                "description": "Shape of the value in an agent tool entry; absent means string.",
                                "type": "string",
                                "enum": [
                                  "number",
                                  "boolean",
                                  "json"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "valueKind",
                              "storage"
                            ],
                            "additionalProperties": false,
                            "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "shared": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Index into the catalog `subBlocks` table."
                              }
                            },
                            "required": [
                              "shared"
                            ],
                            "additionalProperties": false,
                            "description": "A field stored once in the catalog `subBlocks` table."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "trigger": {
                                "type": "string",
                                "description": "Trigger id in the catalog `triggers` table."
                              },
                              "start": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "First of that trigger’s fields in the run."
                              },
                              "count": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "description": "How many consecutive fields the run holds."
                              }
                            },
                            "required": [
                              "trigger",
                              "start",
                              "count"
                            ],
                            "additionalProperties": false,
                            "description": "A run of a shared trigger’s fields, spliced in place, each with `surface: \"trigger\"`."
                          }
                        ]
                      },
                      "description": "Configuration fields in declared order, inline or by reference."
                    },
                    "tools": {
                      "type": "object",
                      "properties": {
                        "access": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Tool ids the block can call."
                        },
                        "selector": {
                          "type": "string",
                          "enum": [
                            "single",
                            "operation",
                            "opaque"
                          ],
                          "description": "How the tool is chosen: fixed, by operation, or by an unevaluated function."
                        }
                      },
                      "required": [
                        "access",
                        "selector"
                      ],
                      "additionalProperties": false,
                      "description": "Tools the block calls."
                    },
                    "outputs": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Output value type."
                          },
                          "description": {
                            "description": "What the output holds.",
                            "type": "string"
                          },
                          "condition": {
                            "description": "When the output is present: `{ field, value, not?, and? }`."
                          },
                          "hiddenFromDisplay": {
                            "description": "Hidden from the output picker.",
                            "type": "boolean"
                          },
                          "properties": {
                            "description": "Nested outputs by name, each of this same shape.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "description": "A nested output, of this same shape."
                            }
                          },
                          "sharedProperties": {
                            "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "items": {
                            "description": "Array element output, of this same shape."
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false,
                        "description": "One output field."
                      },
                      "description": "Declared outputs by name."
                    },
                    "sharedOutputs": {
                      "description": "In place of `outputs`: index of the outputs in the catalog `outputs` table.",
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "operationOutputs": {
                      "description": "Per operation id: the outputs its tool returns, where they differ.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "names": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Block outputs the operation returns, in order."
                          },
                          "nullable": {
                            "description": "Those of them the operation may return as null.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "names"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "dynamicOutputs": {
                      "description": "Present when outputs derive from a param at run time.",
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "responseFormat",
                            "inputFormat",
                            "humanForm",
                            "tableRows"
                          ],
                          "description": "What shapes the outputs."
                        },
                        "param": {
                          "type": "string",
                          "description": "Param holding that shape."
                        }
                      },
                      "required": [
                        "source",
                        "param"
                      ],
                      "additionalProperties": false
                    },
                    "graph": {
                      "type": "object",
                      "properties": {
                        "canBeTarget": {
                          "type": "boolean",
                          "description": "Whether an edge may connect into the block."
                        },
                        "errorPort": {
                          "type": "boolean",
                          "description": "Whether the block has an error port."
                        },
                        "container": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "loop",
                                "parallel"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The subflow kind for a container, else null."
                        },
                        "annotationOnly": {
                          "type": "boolean",
                          "description": "A canvas note: no edges at all."
                        },
                        "branches": {
                          "description": "The field lifted into named branches.",
                          "type": "object",
                          "properties": {
                            "subBlockId": {
                              "type": "string",
                              "description": "Field holding the branches."
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "condition",
                                "router"
                              ],
                              "description": "Branch kind."
                            }
                          },
                          "required": [
                            "subBlockId",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "canBeTarget",
                        "errorPort",
                        "container",
                        "annotationOnly"
                      ],
                      "additionalProperties": false,
                      "description": "Edge rules for the block."
                    },
                    "legacyIds": {
                      "description": "Field id renames applied on load.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string",
                            "description": "Legacy field id."
                          },
                          "to": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Current field id, or null when removed."
                          },
                          "whenOperation": {
                            "description": "Operations the rename applies to.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "conditional": {
                            "description": "Applies only to some values.",
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": [
                          "from",
                          "to"
                        ],
                        "additionalProperties": false,
                        "description": "One field id rename."
                      }
                    },
                    "legacyCanonicalIds": {
                      "description": "Basic/advanced pair id renames applied on load.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "string",
                            "description": "Legacy pair id."
                          },
                          "to": {
                            "type": "string",
                            "description": "Current pair id."
                          }
                        },
                        "required": [
                          "from",
                          "to"
                        ],
                        "additionalProperties": false,
                        "description": "One pair id rename."
                      }
                    },
                    "paramAliases": {
                      "description": "The name source writes for a param, by param name: oauthCredential → credential.",
                      "type": "object",
                      "properties": {
                        "action": {
                          "description": "Action-surface aliases.",
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "trigger": {
                          "description": "Trigger-surface aliases.",
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "custom": {
                      "description": "Present for organization custom blocks.",
                      "type": "object",
                      "properties": {
                        "sourceWorkflowId": {
                          "description": "Workflow the custom block runs.",
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type",
                    "name",
                    "category",
                    "subBlocks",
                    "tools",
                    "graph"
                  ],
                  "additionalProperties": false,
                  "description": "One placeable block type."
                },
                "description": "Placeable block types by type id."
              },
              "triggers": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Trigger id."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Provider the trigger belongs to."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name."
                    },
                    "polling": {
                      "description": "Poll-based rather than webhook-based.",
                      "type": "boolean"
                    },
                    "webhook": {
                      "description": "Receives webhooks.",
                      "type": "boolean"
                    },
                    "subBlocks": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Field id; the param name unless the field is in a basic/advanced pair."
                              },
                              "type": {
                                "type": "string",
                                "description": "Editor control type, e.g. `short-input`."
                              },
                              "title": {
                                "description": "Display title.",
                                "type": "string"
                              },
                              "mode": {
                                "description": "Which editor mode shows the field.",
                                "type": "string",
                                "enum": [
                                  "basic",
                                  "advanced",
                                  "both",
                                  "trigger",
                                  "trigger-advanced"
                                ]
                              },
                              "canonicalParamId": {
                                "description": "Shared param name of a basic/advanced pair.",
                                "type": "string"
                              },
                              "surface": {
                                "description": "Whether this declaration belongs to action or trigger mode.",
                                "type": "string",
                                "enum": [
                                  "action",
                                  "trigger"
                                ]
                              },
                              "condition": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Sibling field id whose value decides the condition."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the match.",
                                        "type": "boolean"
                                      },
                                      "and": {
                                        "description": "A second clause that must hold as well.",
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Second field id."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the second match.",
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "field"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Holds when `field` holds `value`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ],
                                "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                              },
                              "visibleFor": {
                                "description": "Per operation id: whether an opaque condition can show this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "boolean"
                                }
                              },
                              "visibleWhen": {
                                "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "field": {
                                      "type": "string",
                                      "description": "Sibling field id whose value decides the condition."
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "list": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991,
                                              "description": "Index into the catalog `lists` table."
                                            }
                                          },
                                          "required": [
                                            "list"
                                          ],
                                          "additionalProperties": false,
                                          "description": "A value list stored once in the catalog `lists` table."
                                        }
                                      ],
                                      "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                    },
                                    "not": {
                                      "description": "Invert the match.",
                                      "type": "boolean"
                                    },
                                    "and": {
                                      "description": "A second clause that must hold as well.",
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "description": "Second field id."
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            },
                                            {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "list": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991,
                                                  "description": "Index into the catalog `lists` table."
                                                }
                                              },
                                              "required": [
                                                "list"
                                              ],
                                              "additionalProperties": false,
                                              "description": "A value list stored once in the catalog `lists` table."
                                            }
                                          ],
                                          "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                        },
                                        "not": {
                                          "description": "Invert the second match.",
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "field",
                                    "value"
                                  ],
                                  "additionalProperties": false,
                                  "description": "Holds when `field` holds `value`."
                                }
                              },
                              "visibleForModel": {
                                "description": "Per model id: whether an opaque condition shows this field.",
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "boolean"
                                }
                              },
                              "required": {
                                "description": "Whether a value is required, or the condition under which it is.",
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Sibling field id whose value decides the condition."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the match.",
                                            "type": "boolean"
                                          },
                                          "and": {
                                            "description": "A second clause that must hold as well.",
                                            "type": "object",
                                            "properties": {
                                              "field": {
                                                "type": "string",
                                                "description": "Second field id."
                                              },
                                              "value": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "boolean"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string"
                                                        },
                                                        {
                                                          "type": "number"
                                                        },
                                                        {
                                                          "type": "boolean"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "list": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 9007199254740991,
                                                        "description": "Index into the catalog `lists` table."
                                                      }
                                                    },
                                                    "required": [
                                                      "list"
                                                    ],
                                                    "additionalProperties": false,
                                                    "description": "A value list stored once in the catalog `lists` table."
                                                  }
                                                ],
                                                "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                              },
                                              "not": {
                                                "description": "Invert the second match.",
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "field"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "value"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Holds when `field` holds `value`."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "opaque": {
                                            "type": "boolean",
                                            "const": true,
                                            "description": "Always true."
                                          }
                                        },
                                        "required": [
                                          "opaque"
                                        ],
                                        "additionalProperties": false,
                                        "description": "A function the catalog could not evaluate to data."
                                      }
                                    ],
                                    "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                                  }
                                ]
                              },
                              "dependsOn": {
                                "description": "Editor clearing and fetch ordering hints; never visibility.",
                                "type": "object",
                                "properties": {
                                  "all": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Fields that must all hold values."
                                  },
                                  "any": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Fields of which one must hold a value."
                                  }
                                },
                                "required": [
                                  "all",
                                  "any"
                                ],
                                "additionalProperties": false
                              },
                              "defaultValue": {
                                "description": "Editor default value (any JSON)."
                              },
                              "valueDefault": {
                                "description": "The registry value thunk, evaluated where it is constant.",
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "computed": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      },
                                      "initial": {
                                        "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                                      }
                                    },
                                    "required": [
                                      "computed"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A value thunk derived from other params."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "constant": {
                                        "description": "The constant value (any JSON)."
                                      }
                                    },
                                    "required": [
                                      "constant"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A value thunk that always returns this."
                                  }
                                ]
                              },
                              "options": {
                                "description": "Selectable options.",
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "description": "Stored option id."
                                        },
                                        "label": {
                                          "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ],
                                      "additionalProperties": false,
                                      "description": "One static option."
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "dynamic": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "dynamic"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Options fetched per workspace through `selectorKey`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ]
                              },
                              "optionsVary": {
                                "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                                "type": "boolean",
                                "const": true
                              },
                              "hidden": {
                                "description": "Hidden from the editor.",
                                "type": "boolean"
                              },
                              "readOnly": {
                                "description": "Display-only.",
                                "type": "boolean"
                              },
                              "password": {
                                "description": "Holds a secret.",
                                "type": "boolean"
                              },
                              "hideFromCopilot": {
                                "description": "Not offered to Copilot.",
                                "type": "boolean"
                              },
                              "context": {
                                "description": "Only meaningful as an agent tool.",
                                "type": "string",
                                "const": "tool-input"
                              },
                              "paramVisibility": {
                                "description": "Tool param visibility override.",
                                "type": "string"
                              },
                              "emptyIsValid": {
                                "description": "An empty value satisfies `required`.",
                                "type": "boolean"
                              },
                              "language": {
                                "description": "Code field language.",
                                "type": "string"
                              },
                              "multiple": {
                                "description": "Accepts several files.",
                                "type": "boolean"
                              },
                              "min": {
                                "description": "Minimum numeric value.",
                                "type": "number"
                              },
                              "max": {
                                "description": "Maximum numeric value.",
                                "type": "number"
                              },
                              "step": {
                                "description": "Slider increment.",
                                "type": "number"
                              },
                              "integer": {
                                "description": "Integers only.",
                                "type": "boolean"
                              },
                              "columns": {
                                "description": "Table column headers.",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "selectorKey": {
                                "description": "Selector that lists the options.",
                                "type": "string"
                              },
                              "serviceId": {
                                "description": "OAuth service the field binds.",
                                "type": "string"
                              },
                              "credentialProviders": {
                                "description": "Provider ids of the saved credentials the field accepts.",
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "valueKind": {
                                "type": "string",
                                "enum": [
                                  "string",
                                  "number",
                                  "boolean",
                                  "array",
                                  "object",
                                  "json",
                                  "code",
                                  "branches",
                                  "tools",
                                  "resource",
                                  "picked",
                                  "upload",
                                  "none"
                                ],
                                "description": "How a value for this field is written in source."
                              },
                              "resourceKind": {
                                "description": "Workspace resource kind, for `resource` fields.",
                                "type": "string"
                              },
                              "storage": {
                                "type": "string",
                                "enum": [
                                  "native",
                                  "json-string"
                                ],
                                "description": "Encoding a new value is stored with."
                              },
                              "structured": {
                                "description": "Structured value the canonical model decodes.",
                                "type": "string",
                                "enum": [
                                  "tools",
                                  "branches",
                                  "tableRows",
                                  "inputFormat",
                                  "variables",
                                  "skills"
                                ]
                              },
                              "acceptsNumber": {
                                "description": "Free text that also takes a number, which the runtime coerces.",
                                "type": "boolean"
                              },
                              "neverDecoded": {
                                "description": "User text whose JSON-looking content is never decoded.",
                                "type": "boolean"
                              },
                              "tableFilter": {
                                "description": "A table filter: builder rows or a predicate.",
                                "type": "boolean"
                              },
                              "valueShape": {
                                "description": "Shape of the value in an agent tool entry; absent means string.",
                                "type": "string",
                                "enum": [
                                  "number",
                                  "boolean",
                                  "json"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "valueKind",
                              "storage"
                            ],
                            "additionalProperties": false,
                            "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "shared": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Index into the catalog `subBlocks` table."
                              }
                            },
                            "required": [
                              "shared"
                            ],
                            "additionalProperties": false,
                            "description": "A field stored once in the catalog `subBlocks` table."
                          }
                        ]
                      },
                      "description": "Configuration fields in declared order, inline or by reference."
                    },
                    "outputs": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "description": "Output value type."
                          },
                          "description": {
                            "description": "What the output holds.",
                            "type": "string"
                          },
                          "condition": {
                            "description": "When the output is present: `{ field, value, not?, and? }`."
                          },
                          "hiddenFromDisplay": {
                            "description": "Hidden from the output picker.",
                            "type": "boolean"
                          },
                          "properties": {
                            "description": "Nested outputs by name, each of this same shape.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "description": "A nested output, of this same shape."
                            }
                          },
                          "sharedProperties": {
                            "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "items": {
                            "description": "Array element output, of this same shape."
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false,
                        "description": "One output field."
                      },
                      "description": "Declared outputs by name."
                    },
                    "sharedOutputs": {
                      "description": "In place of `outputs`: index of the outputs in the catalog `outputs` table.",
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "id",
                    "provider",
                    "name",
                    "subBlocks"
                  ],
                  "additionalProperties": false,
                  "description": "One trigger a block can run in trigger mode."
                },
                "description": "Triggers the listed blocks can run, by trigger id."
              },
              "builders": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Block type the builder creates."
                    },
                    "operation": {
                      "description": "Stored operation id the builder pins.",
                      "type": "string"
                    },
                    "triggerMode": {
                      "description": "Whether the builder creates a trigger-mode block.",
                      "type": "boolean"
                    },
                    "fixed": {
                      "description": "Other field values the builder pins, such as the selected trigger.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "One SDK builder method."
                },
                "description": "SDK builder methods keyed by dotted path, e.g. `slack.sendMessage`."
              },
              "subBlocks": {
                "description": "Fields declared identically by several blocks or triggers, stored once.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Field id; the param name unless the field is in a basic/advanced pair."
                    },
                    "type": {
                      "type": "string",
                      "description": "Editor control type, e.g. `short-input`."
                    },
                    "title": {
                      "description": "Display title.",
                      "type": "string"
                    },
                    "mode": {
                      "description": "Which editor mode shows the field.",
                      "type": "string",
                      "enum": [
                        "basic",
                        "advanced",
                        "both",
                        "trigger",
                        "trigger-advanced"
                      ]
                    },
                    "canonicalParamId": {
                      "description": "Shared param name of a basic/advanced pair.",
                      "type": "string"
                    },
                    "surface": {
                      "description": "Whether this declaration belongs to action or trigger mode.",
                      "type": "string",
                      "enum": [
                        "action",
                        "trigger"
                      ]
                    },
                    "condition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "description": "Sibling field id whose value decides the condition."
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "list": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991,
                                      "description": "Index into the catalog `lists` table."
                                    }
                                  },
                                  "required": [
                                    "list"
                                  ],
                                  "additionalProperties": false,
                                  "description": "A value list stored once in the catalog `lists` table."
                                }
                              ],
                              "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                            },
                            "not": {
                              "description": "Invert the match.",
                              "type": "boolean"
                            },
                            "and": {
                              "description": "A second clause that must hold as well.",
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "Second field id."
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "list": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index into the catalog `lists` table."
                                        }
                                      },
                                      "required": [
                                        "list"
                                      ],
                                      "additionalProperties": false,
                                      "description": "A value list stored once in the catalog `lists` table."
                                    }
                                  ],
                                  "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                },
                                "not": {
                                  "description": "Invert the second match.",
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "field"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "field",
                            "value"
                          ],
                          "additionalProperties": false,
                          "description": "Holds when `field` holds `value`."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "opaque": {
                              "type": "boolean",
                              "const": true,
                              "description": "Always true."
                            }
                          },
                          "required": [
                            "opaque"
                          ],
                          "additionalProperties": false,
                          "description": "A function the catalog could not evaluate to data."
                        }
                      ],
                      "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                    },
                    "visibleFor": {
                      "description": "Per operation id: whether an opaque condition can show this field.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "boolean"
                      }
                    },
                    "visibleWhen": {
                      "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "Sibling field id whose value decides the condition."
                          },
                          "value": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "list": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991,
                                    "description": "Index into the catalog `lists` table."
                                  }
                                },
                                "required": [
                                  "list"
                                ],
                                "additionalProperties": false,
                                "description": "A value list stored once in the catalog `lists` table."
                              }
                            ],
                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                          },
                          "not": {
                            "description": "Invert the match.",
                            "type": "boolean"
                          },
                          "and": {
                            "description": "A second clause that must hold as well.",
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "description": "Second field id."
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "list": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991,
                                        "description": "Index into the catalog `lists` table."
                                      }
                                    },
                                    "required": [
                                      "list"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A value list stored once in the catalog `lists` table."
                                  }
                                ],
                                "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                              },
                              "not": {
                                "description": "Invert the second match.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "field",
                          "value"
                        ],
                        "additionalProperties": false,
                        "description": "Holds when `field` holds `value`."
                      }
                    },
                    "visibleForModel": {
                      "description": "Per model id: whether an opaque condition shows this field.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "boolean"
                      }
                    },
                    "required": {
                      "description": "Whether a value is required, or the condition under which it is.",
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "Sibling field id whose value decides the condition."
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "list": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index into the catalog `lists` table."
                                        }
                                      },
                                      "required": [
                                        "list"
                                      ],
                                      "additionalProperties": false,
                                      "description": "A value list stored once in the catalog `lists` table."
                                    }
                                  ],
                                  "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                },
                                "not": {
                                  "description": "Invert the match.",
                                  "type": "boolean"
                                },
                                "and": {
                                  "description": "A second clause that must hold as well.",
                                  "type": "object",
                                  "properties": {
                                    "field": {
                                      "type": "string",
                                      "description": "Second field id."
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "list": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991,
                                              "description": "Index into the catalog `lists` table."
                                            }
                                          },
                                          "required": [
                                            "list"
                                          ],
                                          "additionalProperties": false,
                                          "description": "A value list stored once in the catalog `lists` table."
                                        }
                                      ],
                                      "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                    },
                                    "not": {
                                      "description": "Invert the second match.",
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "field"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "field",
                                "value"
                              ],
                              "additionalProperties": false,
                              "description": "Holds when `field` holds `value`."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "opaque": {
                                  "type": "boolean",
                                  "const": true,
                                  "description": "Always true."
                                }
                              },
                              "required": [
                                "opaque"
                              ],
                              "additionalProperties": false,
                              "description": "A function the catalog could not evaluate to data."
                            }
                          ],
                          "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                        }
                      ]
                    },
                    "dependsOn": {
                      "description": "Editor clearing and fetch ordering hints; never visibility.",
                      "type": "object",
                      "properties": {
                        "all": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Fields that must all hold values."
                        },
                        "any": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Fields of which one must hold a value."
                        }
                      },
                      "required": [
                        "all",
                        "any"
                      ],
                      "additionalProperties": false
                    },
                    "defaultValue": {
                      "description": "Editor default value (any JSON)."
                    },
                    "valueDefault": {
                      "description": "The registry value thunk, evaluated where it is constant.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "computed": {
                              "type": "boolean",
                              "const": true,
                              "description": "Always true."
                            },
                            "initial": {
                              "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                            }
                          },
                          "required": [
                            "computed"
                          ],
                          "additionalProperties": false,
                          "description": "A value thunk derived from other params."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "constant": {
                              "description": "The constant value (any JSON)."
                            }
                          },
                          "required": [
                            "constant"
                          ],
                          "additionalProperties": false,
                          "description": "A value thunk that always returns this."
                        }
                      ]
                    },
                    "options": {
                      "description": "Selectable options.",
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Stored option id."
                              },
                              "label": {
                                "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": false,
                            "description": "One static option."
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "dynamic": {
                              "type": "boolean",
                              "const": true,
                              "description": "Always true."
                            }
                          },
                          "required": [
                            "dynamic"
                          ],
                          "additionalProperties": false,
                          "description": "Options fetched per workspace through `selectorKey`."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "opaque": {
                              "type": "boolean",
                              "const": true,
                              "description": "Always true."
                            }
                          },
                          "required": [
                            "opaque"
                          ],
                          "additionalProperties": false,
                          "description": "A function the catalog could not evaluate to data."
                        }
                      ]
                    },
                    "optionsVary": {
                      "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                      "type": "boolean",
                      "const": true
                    },
                    "hidden": {
                      "description": "Hidden from the editor.",
                      "type": "boolean"
                    },
                    "readOnly": {
                      "description": "Display-only.",
                      "type": "boolean"
                    },
                    "password": {
                      "description": "Holds a secret.",
                      "type": "boolean"
                    },
                    "hideFromCopilot": {
                      "description": "Not offered to Copilot.",
                      "type": "boolean"
                    },
                    "context": {
                      "description": "Only meaningful as an agent tool.",
                      "type": "string",
                      "const": "tool-input"
                    },
                    "paramVisibility": {
                      "description": "Tool param visibility override.",
                      "type": "string"
                    },
                    "emptyIsValid": {
                      "description": "An empty value satisfies `required`.",
                      "type": "boolean"
                    },
                    "language": {
                      "description": "Code field language.",
                      "type": "string"
                    },
                    "multiple": {
                      "description": "Accepts several files.",
                      "type": "boolean"
                    },
                    "min": {
                      "description": "Minimum numeric value.",
                      "type": "number"
                    },
                    "max": {
                      "description": "Maximum numeric value.",
                      "type": "number"
                    },
                    "step": {
                      "description": "Slider increment.",
                      "type": "number"
                    },
                    "integer": {
                      "description": "Integers only.",
                      "type": "boolean"
                    },
                    "columns": {
                      "description": "Table column headers.",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "selectorKey": {
                      "description": "Selector that lists the options.",
                      "type": "string"
                    },
                    "serviceId": {
                      "description": "OAuth service the field binds.",
                      "type": "string"
                    },
                    "credentialProviders": {
                      "description": "Provider ids of the saved credentials the field accepts.",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "valueKind": {
                      "type": "string",
                      "enum": [
                        "string",
                        "number",
                        "boolean",
                        "array",
                        "object",
                        "json",
                        "code",
                        "branches",
                        "tools",
                        "resource",
                        "picked",
                        "upload",
                        "none"
                      ],
                      "description": "How a value for this field is written in source."
                    },
                    "resourceKind": {
                      "description": "Workspace resource kind, for `resource` fields.",
                      "type": "string"
                    },
                    "storage": {
                      "type": "string",
                      "enum": [
                        "native",
                        "json-string"
                      ],
                      "description": "Encoding a new value is stored with."
                    },
                    "structured": {
                      "description": "Structured value the canonical model decodes.",
                      "type": "string",
                      "enum": [
                        "tools",
                        "branches",
                        "tableRows",
                        "inputFormat",
                        "variables",
                        "skills"
                      ]
                    },
                    "acceptsNumber": {
                      "description": "Free text that also takes a number, which the runtime coerces.",
                      "type": "boolean"
                    },
                    "neverDecoded": {
                      "description": "User text whose JSON-looking content is never decoded.",
                      "type": "boolean"
                    },
                    "tableFilter": {
                      "description": "A table filter: builder rows or a predicate.",
                      "type": "boolean"
                    },
                    "valueShape": {
                      "description": "Shape of the value in an agent tool entry; absent means string.",
                      "type": "string",
                      "enum": [
                        "number",
                        "boolean",
                        "json"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "valueKind",
                    "storage"
                  ],
                  "additionalProperties": false,
                  "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
                }
              },
              "lists": {
                "description": "Condition value lists used by several fields, stored once.",
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  }
                }
              },
              "outputs": {
                "description": "Output records repeated across blocks and triggers, stored once.",
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Output value type."
                      },
                      "description": {
                        "description": "What the output holds.",
                        "type": "string"
                      },
                      "condition": {
                        "description": "When the output is present: `{ field, value, not?, and? }`."
                      },
                      "hiddenFromDisplay": {
                        "description": "Hidden from the output picker.",
                        "type": "boolean"
                      },
                      "properties": {
                        "description": "Nested outputs by name, each of this same shape.",
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "description": "A nested output, of this same shape."
                        }
                      },
                      "sharedProperties": {
                        "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "items": {
                        "description": "Array element output, of this same shape."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false,
                    "description": "One output field."
                  },
                  "description": "Declared outputs by name."
                }
              },
              "scope": {
                "description": "Present when the catalog includes an organization’s custom blocks.",
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "description": "Organization whose custom blocks are included."
                  }
                },
                "required": [
                  "organizationId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "catalogVersion",
              "hash",
              "sdkMajor",
              "blocks",
              "triggers",
              "builders"
            ],
            "additionalProperties": false,
            "description": "Response data."
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "Get source catalog response",
        "description": "The source catalog core shard.",
        "examples": [
          {
            "data": {
              "catalogVersion": 1,
              "hash": "3f0c1a9e5b7d2c4f6a8e0b1d3c5f7a9e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a",
              "sdkMajor": 1,
              "blocks": {
                "slack_v2": {
                  "type": "slack_v2",
                  "name": "Slack",
                  "category": "tools",
                  "subBlocks": [
                    {
                      "id": "operation",
                      "type": "dropdown",
                      "valueKind": "string",
                      "storage": "native",
                      "options": [
                        {
                          "id": "send",
                          "label": "Send Message"
                        }
                      ]
                    }
                  ],
                  "tools": {
                    "access": [
                      "slack_message"
                    ],
                    "selector": "operation"
                  },
                  "outputs": {
                    "ts": {
                      "type": "string",
                      "description": "Message timestamp"
                    }
                  },
                  "graph": {
                    "canBeTarget": true,
                    "errorPort": true,
                    "container": null,
                    "annotationOnly": false
                  }
                }
              },
              "triggers": {},
              "builders": {
                "slack.sendMessage": {
                  "type": "slack_v2",
                  "operation": "send"
                }
              }
            }
          }
        ]
      },
      "examples": {
        "example1": {
          "summary": "Response example 1",
          "value": {
            "data": {
              "catalogVersion": 1,
              "hash": "3f0c1a9e5b7d2c4f6a8e0b1d3c5f7a9e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a",
              "sdkMajor": 1,
              "blocks": {
                "slack_v2": {
                  "type": "slack_v2",
                  "name": "Slack",
                  "category": "tools",
                  "subBlocks": [
                    {
                      "id": "operation",
                      "type": "dropdown",
                      "valueKind": "string",
                      "storage": "native",
                      "options": [
                        {
                          "id": "send",
                          "label": "Send Message"
                        }
                      ]
                    }
                  ],
                  "tools": {
                    "access": [
                      "slack_message"
                    ],
                    "selector": "operation"
                  },
                  "outputs": {
                    "ts": {
                      "type": "string",
                      "description": "Message timestamp"
                    }
                  },
                  "graph": {
                    "canBeTarget": true,
                    "errorPort": true,
                    "container": null,
                    "annotationOnly": false
                  }
                }
              },
              "triggers": {},
              "builders": {
                "slack.sendMessage": {
                  "type": "slack_v2",
                  "operation": "send"
                }
              }
            }
          }
        }
      }
    }
  }
}

```

### 304

```json

{
  "description": "The caller already holds the current catalog: `If-None-Match` names the current `ETag`. The response has no body.",
  "headers": {
    "ETag": {
      "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog.",
      "schema": {
        "type": "string",
        "minLength": 1,
        "title": "Entity tag",
        "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog."
      }
    }
  }
}

```

### 400

```json

{
  "description": "The request is invalid. This includes a query parameter sent with no value (`?limit=`, `?search=`), which is rejected rather than read as zero, empty, or the parameter default — omit the parameter instead.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "BAD_REQUEST",
          "message": "Invalid request"
        }
      }
    }
  }
}

```

### 401

```json

{
  "description": "The API credential is missing or invalid.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "UNAUTHORIZED",
          "message": "Authentication required"
        }
      }
    }
  }
}

```

### 403

```json

{
  "description": "The caller lacks the rights this operation requires. When the cause is one a caller can act on, `error.details.code` names it. A resource in a workspace the caller cannot reach at all answers `404` instead, so absence and denial are indistinguishable.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "FORBIDDEN",
          "message": "Insufficient workspace permissions",
          "details": {
            "code": "INSUFFICIENT_WORKSPACE_ROLE"
          }
        }
      }
    }
  }
}

```

### 404

```json

{
  "description": "The requested resource was not found.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "NOT_FOUND",
          "message": "Not found"
        }
      }
    }
  }
}

```

### 429

```json

{
  "description": "The caller exceeded the request rate limit.",
  "headers": {
    "Retry-After": {
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Retry after",
        "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "RATE_LIMITED",
          "message": "API rate limit exceeded",
          "details": {
            "retryAfter": "2026-01-01T00:00:30.000Z"
          }
        }
      }
    }
  }
}

```

### 500

```json

{
  "description": "An unexpected server error occurred.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "INTERNAL_ERROR",
          "message": "Internal server error"
        }
      }
    }
  }
}

```

### 503

```json

{
  "description": "A required service is temporarily unavailable. When present, `Retry-After` gives the minimum seconds to wait; add jitter before retrying. Check operation-specific guidance before repeating a change after an uncertain response.",
  "headers": {
    "Retry-After": {
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "title": "Retry after",
        "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation of the error."
              },
              "details": {
                "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "INSUFFICIENT_WORKSPACE_ROLE",
                          "PERSONAL_API_KEYS_DISABLED",
                          "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
                          "PRINCIPAL_KIND_NOT_PERMITTED",
                          "ORGANIZATION_MEMBERSHIP_REQUIRED",
                          "ORGANIZATION_ADMIN_REQUIRED",
                          "ENTERPRISE_PLAN_REQUIRED",
                          "SSO_DISABLED",
                          "SSO_DOMAIN_NOT_VERIFIED",
                          "SSO_PROVIDER_LIMIT_REACHED",
                          "ORGANIZATION_PLAN_REQUIRED",
                          "AUDIT_LOGS_DISABLED",
                          "ACCESS_REQUESTS_DISABLED",
                          "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
                          "SKILL_EDITOR_ACCESS_REQUIRED",
                          "SECRET_ADMIN_ACCESS_REQUIRED",
                          "WORKSPACE_RESOURCE_LIMIT_REACHED",
                          "PUBLIC_SHARING_NOT_ALLOWED",
                          "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
                          "MCP_SERVER_URL_NOT_ALLOWED",
                          "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
                          "CHAT_AUTH_MODE_NOT_PERMITTED",
                          "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
                          "PERMISSION_GROUP_CAPABILITY_BLOCKED",
                          "INTEGRATION_NOT_ALLOWED",
                          "INSUFFICIENT_SCOPE",
                          "READ_ONLY_API_KEY",
                          "SCIM_MANAGED_MEMBERSHIP",
                          "FEATURE_NOT_ENABLED"
                        ],
                        "title": "Forbidden detail code",
                        "description": "Stable cause code for an actionable `403` response."
                      }
                    },
                    "required": [
                      "code"
                    ],
                    "additionalProperties": {
                      "description": "Additional context for this refusal."
                    },
                    "title": "Actionable forbidden details",
                    "description": "Machine-readable cause and optional context for an actionable `403` response."
                  },
                  {
                    "description": "Other structured context defined by the specific error."
                  }
                ]
              },
              "requestId": {
                "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "description": "Canonical error details."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "title": "v2 error response",
        "description": "Canonical error envelope returned by the public v2 API.",
        "examples": [
          {
            "error": {
              "code": "BAD_REQUEST",
              "message": "The request is invalid."
            }
          }
        ]
      },
      "example": {
        "error": {
          "code": "SERVICE_UNAVAILABLE",
          "message": "Service temporarily unavailable"
        }
      }
    }
  }
}

```

## Referenced schemas

The following definitions preserve recursive references and composition exactly.

```json

{
  "#/components/headers/ETag": {
    "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "title": "Entity tag",
      "description": "The catalog `hash`, quoted. Send it back in `If-None-Match` to revalidate the catalog."
    }
  },
  "#/components/headers/X-RateLimit-Limit": {
    "description": "Maximum requests allowed in the current window.",
    "schema": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "title": "Rate limit",
      "description": "Maximum requests allowed in the current window."
    }
  },
  "#/components/headers/X-RateLimit-Remaining": {
    "description": "Requests remaining in the current window.",
    "schema": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "title": "Rate limit remaining",
      "description": "Requests remaining in the current window."
    }
  },
  "#/components/headers/X-RateLimit-Reset": {
    "description": "ISO 8601 timestamp when the current rate-limit window resets.",
    "schema": {
      "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))$",
      "title": "Rate limit reset",
      "description": "ISO 8601 timestamp when the current rate-limit window resets."
    }
  },
  "#/components/schemas/GetSourceCatalogResponse": {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "catalogVersion": {
            "type": "number",
            "const": 1,
            "description": "Catalog format version."
          },
          "hash": {
            "type": "string",
            "description": "SHA-256 of the catalog content; the response `ETag`."
          },
          "sdkMajor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Workflow SDK major version this catalog serves."
          },
          "blocks": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Block type id."
                },
                "name": {
                  "type": "string",
                  "description": "Display name."
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "blocks",
                    "tools",
                    "triggers"
                  ],
                  "description": "Block category."
                },
                "addable": {
                  "description": "Present when new blocks of this type are refused; existing ones still compile.",
                  "type": "boolean",
                  "const": false
                },
                "lifecycle": {
                  "description": "Lifecycle flags.",
                  "type": "object",
                  "properties": {
                    "hidden": {
                      "description": "Hidden from the toolbar.",
                      "type": "boolean",
                      "const": true
                    },
                    "preview": {
                      "description": "Unreleased preview block.",
                      "type": "boolean",
                      "const": true
                    },
                    "sunset": {
                      "description": "Post-GA lifecycle state.",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "legacy",
                            "deprecated"
                          ],
                          "description": "Lifecycle state."
                        },
                        "replacedBy": {
                          "description": "Successor block type.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "triggerAllowed": {
                  "description": "Whether the block can start a workflow.",
                  "type": "boolean"
                },
                "triggers": {
                  "description": "Trigger mode support.",
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "description": "Whether trigger mode is available."
                    },
                    "available": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Trigger ids the block supports."
                    }
                  },
                  "required": [
                    "enabled",
                    "available"
                  ],
                  "additionalProperties": false
                },
                "singleInstance": {
                  "description": "At most one per workflow.",
                  "type": "boolean"
                },
                "subBlocks": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Field id; the param name unless the field is in a basic/advanced pair."
                          },
                          "type": {
                            "type": "string",
                            "description": "Editor control type, e.g. `short-input`."
                          },
                          "title": {
                            "description": "Display title.",
                            "type": "string"
                          },
                          "mode": {
                            "description": "Which editor mode shows the field.",
                            "type": "string",
                            "enum": [
                              "basic",
                              "advanced",
                              "both",
                              "trigger",
                              "trigger-advanced"
                            ]
                          },
                          "canonicalParamId": {
                            "description": "Shared param name of a basic/advanced pair.",
                            "type": "string"
                          },
                          "surface": {
                            "description": "Whether this declaration belongs to action or trigger mode.",
                            "type": "string",
                            "enum": [
                              "action",
                              "trigger"
                            ]
                          },
                          "condition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "description": "Sibling field id whose value decides the condition."
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "list": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991,
                                            "description": "Index into the catalog `lists` table."
                                          }
                                        },
                                        "required": [
                                          "list"
                                        ],
                                        "additionalProperties": false,
                                        "description": "A value list stored once in the catalog `lists` table."
                                      }
                                    ],
                                    "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                  },
                                  "not": {
                                    "description": "Invert the match.",
                                    "type": "boolean"
                                  },
                                  "and": {
                                    "description": "A second clause that must hold as well.",
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Second field id."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the second match.",
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "additionalProperties": false,
                                "description": "Holds when `field` holds `value`."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "opaque": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "opaque"
                                ],
                                "additionalProperties": false,
                                "description": "A function the catalog could not evaluate to data."
                              }
                            ],
                            "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                          },
                          "visibleFor": {
                            "description": "Per operation id: whether an opaque condition can show this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "boolean"
                            }
                          },
                          "visibleWhen": {
                            "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "Sibling field id whose value decides the condition."
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "list": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index into the catalog `lists` table."
                                        }
                                      },
                                      "required": [
                                        "list"
                                      ],
                                      "additionalProperties": false,
                                      "description": "A value list stored once in the catalog `lists` table."
                                    }
                                  ],
                                  "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                },
                                "not": {
                                  "description": "Invert the match.",
                                  "type": "boolean"
                                },
                                "and": {
                                  "description": "A second clause that must hold as well.",
                                  "type": "object",
                                  "properties": {
                                    "field": {
                                      "type": "string",
                                      "description": "Second field id."
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "list": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991,
                                              "description": "Index into the catalog `lists` table."
                                            }
                                          },
                                          "required": [
                                            "list"
                                          ],
                                          "additionalProperties": false,
                                          "description": "A value list stored once in the catalog `lists` table."
                                        }
                                      ],
                                      "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                    },
                                    "not": {
                                      "description": "Invert the second match.",
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "field"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "field",
                                "value"
                              ],
                              "additionalProperties": false,
                              "description": "Holds when `field` holds `value`."
                            }
                          },
                          "visibleForModel": {
                            "description": "Per model id: whether an opaque condition shows this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "boolean"
                            }
                          },
                          "required": {
                            "description": "Whether a value is required, or the condition under which it is.",
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Sibling field id whose value decides the condition."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the match.",
                                        "type": "boolean"
                                      },
                                      "and": {
                                        "description": "A second clause that must hold as well.",
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Second field id."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the second match.",
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "field"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Holds when `field` holds `value`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ],
                                "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                              }
                            ]
                          },
                          "dependsOn": {
                            "description": "Editor clearing and fetch ordering hints; never visibility.",
                            "type": "object",
                            "properties": {
                              "all": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Fields that must all hold values."
                              },
                              "any": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Fields of which one must hold a value."
                              }
                            },
                            "required": [
                              "all",
                              "any"
                            ],
                            "additionalProperties": false
                          },
                          "defaultValue": {
                            "description": "Editor default value (any JSON)."
                          },
                          "valueDefault": {
                            "description": "The registry value thunk, evaluated where it is constant.",
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "computed": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  },
                                  "initial": {
                                    "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                                  }
                                },
                                "required": [
                                  "computed"
                                ],
                                "additionalProperties": false,
                                "description": "A value thunk derived from other params."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "constant": {
                                    "description": "The constant value (any JSON)."
                                  }
                                },
                                "required": [
                                  "constant"
                                ],
                                "additionalProperties": false,
                                "description": "A value thunk that always returns this."
                              }
                            ]
                          },
                          "options": {
                            "description": "Selectable options.",
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Stored option id."
                                    },
                                    "label": {
                                      "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id"
                                  ],
                                  "additionalProperties": false,
                                  "description": "One static option."
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "dynamic": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "dynamic"
                                ],
                                "additionalProperties": false,
                                "description": "Options fetched per workspace through `selectorKey`."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "opaque": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "opaque"
                                ],
                                "additionalProperties": false,
                                "description": "A function the catalog could not evaluate to data."
                              }
                            ]
                          },
                          "optionsVary": {
                            "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                            "type": "boolean",
                            "const": true
                          },
                          "hidden": {
                            "description": "Hidden from the editor.",
                            "type": "boolean"
                          },
                          "readOnly": {
                            "description": "Display-only.",
                            "type": "boolean"
                          },
                          "password": {
                            "description": "Holds a secret.",
                            "type": "boolean"
                          },
                          "hideFromCopilot": {
                            "description": "Not offered to Copilot.",
                            "type": "boolean"
                          },
                          "context": {
                            "description": "Only meaningful as an agent tool.",
                            "type": "string",
                            "const": "tool-input"
                          },
                          "paramVisibility": {
                            "description": "Tool param visibility override.",
                            "type": "string"
                          },
                          "emptyIsValid": {
                            "description": "An empty value satisfies `required`.",
                            "type": "boolean"
                          },
                          "language": {
                            "description": "Code field language.",
                            "type": "string"
                          },
                          "multiple": {
                            "description": "Accepts several files.",
                            "type": "boolean"
                          },
                          "min": {
                            "description": "Minimum numeric value.",
                            "type": "number"
                          },
                          "max": {
                            "description": "Maximum numeric value.",
                            "type": "number"
                          },
                          "step": {
                            "description": "Slider increment.",
                            "type": "number"
                          },
                          "integer": {
                            "description": "Integers only.",
                            "type": "boolean"
                          },
                          "columns": {
                            "description": "Table column headers.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "selectorKey": {
                            "description": "Selector that lists the options.",
                            "type": "string"
                          },
                          "serviceId": {
                            "description": "OAuth service the field binds.",
                            "type": "string"
                          },
                          "credentialProviders": {
                            "description": "Provider ids of the saved credentials the field accepts.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "valueKind": {
                            "type": "string",
                            "enum": [
                              "string",
                              "number",
                              "boolean",
                              "array",
                              "object",
                              "json",
                              "code",
                              "branches",
                              "tools",
                              "resource",
                              "picked",
                              "upload",
                              "none"
                            ],
                            "description": "How a value for this field is written in source."
                          },
                          "resourceKind": {
                            "description": "Workspace resource kind, for `resource` fields.",
                            "type": "string"
                          },
                          "storage": {
                            "type": "string",
                            "enum": [
                              "native",
                              "json-string"
                            ],
                            "description": "Encoding a new value is stored with."
                          },
                          "structured": {
                            "description": "Structured value the canonical model decodes.",
                            "type": "string",
                            "enum": [
                              "tools",
                              "branches",
                              "tableRows",
                              "inputFormat",
                              "variables",
                              "skills"
                            ]
                          },
                          "acceptsNumber": {
                            "description": "Free text that also takes a number, which the runtime coerces.",
                            "type": "boolean"
                          },
                          "neverDecoded": {
                            "description": "User text whose JSON-looking content is never decoded.",
                            "type": "boolean"
                          },
                          "tableFilter": {
                            "description": "A table filter: builder rows or a predicate.",
                            "type": "boolean"
                          },
                          "valueShape": {
                            "description": "Shape of the value in an agent tool entry; absent means string.",
                            "type": "string",
                            "enum": [
                              "number",
                              "boolean",
                              "json"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "valueKind",
                          "storage"
                        ],
                        "additionalProperties": false,
                        "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "shared": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991,
                            "description": "Index into the catalog `subBlocks` table."
                          }
                        },
                        "required": [
                          "shared"
                        ],
                        "additionalProperties": false,
                        "description": "A field stored once in the catalog `subBlocks` table."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "trigger": {
                            "type": "string",
                            "description": "Trigger id in the catalog `triggers` table."
                          },
                          "start": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991,
                            "description": "First of that trigger’s fields in the run."
                          },
                          "count": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "description": "How many consecutive fields the run holds."
                          }
                        },
                        "required": [
                          "trigger",
                          "start",
                          "count"
                        ],
                        "additionalProperties": false,
                        "description": "A run of a shared trigger’s fields, spliced in place, each with `surface: \"trigger\"`."
                      }
                    ]
                  },
                  "description": "Configuration fields in declared order, inline or by reference."
                },
                "tools": {
                  "type": "object",
                  "properties": {
                    "access": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Tool ids the block can call."
                    },
                    "selector": {
                      "type": "string",
                      "enum": [
                        "single",
                        "operation",
                        "opaque"
                      ],
                      "description": "How the tool is chosen: fixed, by operation, or by an unevaluated function."
                    }
                  },
                  "required": [
                    "access",
                    "selector"
                  ],
                  "additionalProperties": false,
                  "description": "Tools the block calls."
                },
                "outputs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Output value type."
                      },
                      "description": {
                        "description": "What the output holds.",
                        "type": "string"
                      },
                      "condition": {
                        "description": "When the output is present: `{ field, value, not?, and? }`."
                      },
                      "hiddenFromDisplay": {
                        "description": "Hidden from the output picker.",
                        "type": "boolean"
                      },
                      "properties": {
                        "description": "Nested outputs by name, each of this same shape.",
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "description": "A nested output, of this same shape."
                        }
                      },
                      "sharedProperties": {
                        "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "items": {
                        "description": "Array element output, of this same shape."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false,
                    "description": "One output field."
                  },
                  "description": "Declared outputs by name."
                },
                "sharedOutputs": {
                  "description": "In place of `outputs`: index of the outputs in the catalog `outputs` table.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "operationOutputs": {
                  "description": "Per operation id: the outputs its tool returns, where they differ.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "names": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Block outputs the operation returns, in order."
                      },
                      "nullable": {
                        "description": "Those of them the operation may return as null.",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "names"
                    ],
                    "additionalProperties": false
                  }
                },
                "dynamicOutputs": {
                  "description": "Present when outputs derive from a param at run time.",
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "responseFormat",
                        "inputFormat",
                        "humanForm",
                        "tableRows"
                      ],
                      "description": "What shapes the outputs."
                    },
                    "param": {
                      "type": "string",
                      "description": "Param holding that shape."
                    }
                  },
                  "required": [
                    "source",
                    "param"
                  ],
                  "additionalProperties": false
                },
                "graph": {
                  "type": "object",
                  "properties": {
                    "canBeTarget": {
                      "type": "boolean",
                      "description": "Whether an edge may connect into the block."
                    },
                    "errorPort": {
                      "type": "boolean",
                      "description": "Whether the block has an error port."
                    },
                    "container": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "loop",
                            "parallel"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The subflow kind for a container, else null."
                    },
                    "annotationOnly": {
                      "type": "boolean",
                      "description": "A canvas note: no edges at all."
                    },
                    "branches": {
                      "description": "The field lifted into named branches.",
                      "type": "object",
                      "properties": {
                        "subBlockId": {
                          "type": "string",
                          "description": "Field holding the branches."
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "condition",
                            "router"
                          ],
                          "description": "Branch kind."
                        }
                      },
                      "required": [
                        "subBlockId",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "canBeTarget",
                    "errorPort",
                    "container",
                    "annotationOnly"
                  ],
                  "additionalProperties": false,
                  "description": "Edge rules for the block."
                },
                "legacyIds": {
                  "description": "Field id renames applied on load.",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "description": "Legacy field id."
                      },
                      "to": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Current field id, or null when removed."
                      },
                      "whenOperation": {
                        "description": "Operations the rename applies to.",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "conditional": {
                        "description": "Applies only to some values.",
                        "type": "boolean",
                        "const": true
                      }
                    },
                    "required": [
                      "from",
                      "to"
                    ],
                    "additionalProperties": false,
                    "description": "One field id rename."
                  }
                },
                "legacyCanonicalIds": {
                  "description": "Basic/advanced pair id renames applied on load.",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "description": "Legacy pair id."
                      },
                      "to": {
                        "type": "string",
                        "description": "Current pair id."
                      }
                    },
                    "required": [
                      "from",
                      "to"
                    ],
                    "additionalProperties": false,
                    "description": "One pair id rename."
                  }
                },
                "paramAliases": {
                  "description": "The name source writes for a param, by param name: oauthCredential → credential.",
                  "type": "object",
                  "properties": {
                    "action": {
                      "description": "Action-surface aliases.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "trigger": {
                      "description": "Trigger-surface aliases.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "custom": {
                  "description": "Present for organization custom blocks.",
                  "type": "object",
                  "properties": {
                    "sourceWorkflowId": {
                      "description": "Workflow the custom block runs.",
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "name",
                "category",
                "subBlocks",
                "tools",
                "graph"
              ],
              "additionalProperties": false,
              "description": "One placeable block type."
            },
            "description": "Placeable block types by type id."
          },
          "triggers": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Trigger id."
                },
                "provider": {
                  "type": "string",
                  "description": "Provider the trigger belongs to."
                },
                "name": {
                  "type": "string",
                  "description": "Display name."
                },
                "polling": {
                  "description": "Poll-based rather than webhook-based.",
                  "type": "boolean"
                },
                "webhook": {
                  "description": "Receives webhooks.",
                  "type": "boolean"
                },
                "subBlocks": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Field id; the param name unless the field is in a basic/advanced pair."
                          },
                          "type": {
                            "type": "string",
                            "description": "Editor control type, e.g. `short-input`."
                          },
                          "title": {
                            "description": "Display title.",
                            "type": "string"
                          },
                          "mode": {
                            "description": "Which editor mode shows the field.",
                            "type": "string",
                            "enum": [
                              "basic",
                              "advanced",
                              "both",
                              "trigger",
                              "trigger-advanced"
                            ]
                          },
                          "canonicalParamId": {
                            "description": "Shared param name of a basic/advanced pair.",
                            "type": "string"
                          },
                          "surface": {
                            "description": "Whether this declaration belongs to action or trigger mode.",
                            "type": "string",
                            "enum": [
                              "action",
                              "trigger"
                            ]
                          },
                          "condition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "description": "Sibling field id whose value decides the condition."
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "list": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991,
                                            "description": "Index into the catalog `lists` table."
                                          }
                                        },
                                        "required": [
                                          "list"
                                        ],
                                        "additionalProperties": false,
                                        "description": "A value list stored once in the catalog `lists` table."
                                      }
                                    ],
                                    "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                  },
                                  "not": {
                                    "description": "Invert the match.",
                                    "type": "boolean"
                                  },
                                  "and": {
                                    "description": "A second clause that must hold as well.",
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Second field id."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the second match.",
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "additionalProperties": false,
                                "description": "Holds when `field` holds `value`."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "opaque": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "opaque"
                                ],
                                "additionalProperties": false,
                                "description": "A function the catalog could not evaluate to data."
                              }
                            ],
                            "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                          },
                          "visibleFor": {
                            "description": "Per operation id: whether an opaque condition can show this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "boolean"
                            }
                          },
                          "visibleWhen": {
                            "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "Sibling field id whose value decides the condition."
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "list": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index into the catalog `lists` table."
                                        }
                                      },
                                      "required": [
                                        "list"
                                      ],
                                      "additionalProperties": false,
                                      "description": "A value list stored once in the catalog `lists` table."
                                    }
                                  ],
                                  "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                },
                                "not": {
                                  "description": "Invert the match.",
                                  "type": "boolean"
                                },
                                "and": {
                                  "description": "A second clause that must hold as well.",
                                  "type": "object",
                                  "properties": {
                                    "field": {
                                      "type": "string",
                                      "description": "Second field id."
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "list": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991,
                                              "description": "Index into the catalog `lists` table."
                                            }
                                          },
                                          "required": [
                                            "list"
                                          ],
                                          "additionalProperties": false,
                                          "description": "A value list stored once in the catalog `lists` table."
                                        }
                                      ],
                                      "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                    },
                                    "not": {
                                      "description": "Invert the second match.",
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "field"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "field",
                                "value"
                              ],
                              "additionalProperties": false,
                              "description": "Holds when `field` holds `value`."
                            }
                          },
                          "visibleForModel": {
                            "description": "Per model id: whether an opaque condition shows this field.",
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "boolean"
                            }
                          },
                          "required": {
                            "description": "Whether a value is required, or the condition under which it is.",
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "description": "Sibling field id whose value decides the condition."
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                }
                                              ]
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "list": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991,
                                                "description": "Index into the catalog `lists` table."
                                              }
                                            },
                                            "required": [
                                              "list"
                                            ],
                                            "additionalProperties": false,
                                            "description": "A value list stored once in the catalog `lists` table."
                                          }
                                        ],
                                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                      },
                                      "not": {
                                        "description": "Invert the match.",
                                        "type": "boolean"
                                      },
                                      "and": {
                                        "description": "A second clause that must hold as well.",
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "description": "Second field id."
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  }
                                                ]
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "list": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991,
                                                    "description": "Index into the catalog `lists` table."
                                                  }
                                                },
                                                "required": [
                                                  "list"
                                                ],
                                                "additionalProperties": false,
                                                "description": "A value list stored once in the catalog `lists` table."
                                              }
                                            ],
                                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                          },
                                          "not": {
                                            "description": "Invert the second match.",
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "field"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Holds when `field` holds `value`."
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "opaque": {
                                        "type": "boolean",
                                        "const": true,
                                        "description": "Always true."
                                      }
                                    },
                                    "required": [
                                      "opaque"
                                    ],
                                    "additionalProperties": false,
                                    "description": "A function the catalog could not evaluate to data."
                                  }
                                ],
                                "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                              }
                            ]
                          },
                          "dependsOn": {
                            "description": "Editor clearing and fetch ordering hints; never visibility.",
                            "type": "object",
                            "properties": {
                              "all": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Fields that must all hold values."
                              },
                              "any": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Fields of which one must hold a value."
                              }
                            },
                            "required": [
                              "all",
                              "any"
                            ],
                            "additionalProperties": false
                          },
                          "defaultValue": {
                            "description": "Editor default value (any JSON)."
                          },
                          "valueDefault": {
                            "description": "The registry value thunk, evaluated where it is constant.",
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "computed": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  },
                                  "initial": {
                                    "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                                  }
                                },
                                "required": [
                                  "computed"
                                ],
                                "additionalProperties": false,
                                "description": "A value thunk derived from other params."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "constant": {
                                    "description": "The constant value (any JSON)."
                                  }
                                },
                                "required": [
                                  "constant"
                                ],
                                "additionalProperties": false,
                                "description": "A value thunk that always returns this."
                              }
                            ]
                          },
                          "options": {
                            "description": "Selectable options.",
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Stored option id."
                                    },
                                    "label": {
                                      "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id"
                                  ],
                                  "additionalProperties": false,
                                  "description": "One static option."
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "dynamic": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "dynamic"
                                ],
                                "additionalProperties": false,
                                "description": "Options fetched per workspace through `selectorKey`."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "opaque": {
                                    "type": "boolean",
                                    "const": true,
                                    "description": "Always true."
                                  }
                                },
                                "required": [
                                  "opaque"
                                ],
                                "additionalProperties": false,
                                "description": "A function the catalog could not evaluate to data."
                              }
                            ]
                          },
                          "optionsVary": {
                            "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                            "type": "boolean",
                            "const": true
                          },
                          "hidden": {
                            "description": "Hidden from the editor.",
                            "type": "boolean"
                          },
                          "readOnly": {
                            "description": "Display-only.",
                            "type": "boolean"
                          },
                          "password": {
                            "description": "Holds a secret.",
                            "type": "boolean"
                          },
                          "hideFromCopilot": {
                            "description": "Not offered to Copilot.",
                            "type": "boolean"
                          },
                          "context": {
                            "description": "Only meaningful as an agent tool.",
                            "type": "string",
                            "const": "tool-input"
                          },
                          "paramVisibility": {
                            "description": "Tool param visibility override.",
                            "type": "string"
                          },
                          "emptyIsValid": {
                            "description": "An empty value satisfies `required`.",
                            "type": "boolean"
                          },
                          "language": {
                            "description": "Code field language.",
                            "type": "string"
                          },
                          "multiple": {
                            "description": "Accepts several files.",
                            "type": "boolean"
                          },
                          "min": {
                            "description": "Minimum numeric value.",
                            "type": "number"
                          },
                          "max": {
                            "description": "Maximum numeric value.",
                            "type": "number"
                          },
                          "step": {
                            "description": "Slider increment.",
                            "type": "number"
                          },
                          "integer": {
                            "description": "Integers only.",
                            "type": "boolean"
                          },
                          "columns": {
                            "description": "Table column headers.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "selectorKey": {
                            "description": "Selector that lists the options.",
                            "type": "string"
                          },
                          "serviceId": {
                            "description": "OAuth service the field binds.",
                            "type": "string"
                          },
                          "credentialProviders": {
                            "description": "Provider ids of the saved credentials the field accepts.",
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "valueKind": {
                            "type": "string",
                            "enum": [
                              "string",
                              "number",
                              "boolean",
                              "array",
                              "object",
                              "json",
                              "code",
                              "branches",
                              "tools",
                              "resource",
                              "picked",
                              "upload",
                              "none"
                            ],
                            "description": "How a value for this field is written in source."
                          },
                          "resourceKind": {
                            "description": "Workspace resource kind, for `resource` fields.",
                            "type": "string"
                          },
                          "storage": {
                            "type": "string",
                            "enum": [
                              "native",
                              "json-string"
                            ],
                            "description": "Encoding a new value is stored with."
                          },
                          "structured": {
                            "description": "Structured value the canonical model decodes.",
                            "type": "string",
                            "enum": [
                              "tools",
                              "branches",
                              "tableRows",
                              "inputFormat",
                              "variables",
                              "skills"
                            ]
                          },
                          "acceptsNumber": {
                            "description": "Free text that also takes a number, which the runtime coerces.",
                            "type": "boolean"
                          },
                          "neverDecoded": {
                            "description": "User text whose JSON-looking content is never decoded.",
                            "type": "boolean"
                          },
                          "tableFilter": {
                            "description": "A table filter: builder rows or a predicate.",
                            "type": "boolean"
                          },
                          "valueShape": {
                            "description": "Shape of the value in an agent tool entry; absent means string.",
                            "type": "string",
                            "enum": [
                              "number",
                              "boolean",
                              "json"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "valueKind",
                          "storage"
                        ],
                        "additionalProperties": false,
                        "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "shared": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991,
                            "description": "Index into the catalog `subBlocks` table."
                          }
                        },
                        "required": [
                          "shared"
                        ],
                        "additionalProperties": false,
                        "description": "A field stored once in the catalog `subBlocks` table."
                      }
                    ]
                  },
                  "description": "Configuration fields in declared order, inline or by reference."
                },
                "outputs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Output value type."
                      },
                      "description": {
                        "description": "What the output holds.",
                        "type": "string"
                      },
                      "condition": {
                        "description": "When the output is present: `{ field, value, not?, and? }`."
                      },
                      "hiddenFromDisplay": {
                        "description": "Hidden from the output picker.",
                        "type": "boolean"
                      },
                      "properties": {
                        "description": "Nested outputs by name, each of this same shape.",
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "description": "A nested output, of this same shape."
                        }
                      },
                      "sharedProperties": {
                        "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "items": {
                        "description": "Array element output, of this same shape."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false,
                    "description": "One output field."
                  },
                  "description": "Declared outputs by name."
                },
                "sharedOutputs": {
                  "description": "In place of `outputs`: index of the outputs in the catalog `outputs` table.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id",
                "provider",
                "name",
                "subBlocks"
              ],
              "additionalProperties": false,
              "description": "One trigger a block can run in trigger mode."
            },
            "description": "Triggers the listed blocks can run, by trigger id."
          },
          "builders": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Block type the builder creates."
                },
                "operation": {
                  "description": "Stored operation id the builder pins.",
                  "type": "string"
                },
                "triggerMode": {
                  "description": "Whether the builder creates a trigger-mode block.",
                  "type": "boolean"
                },
                "fixed": {
                  "description": "Other field values the builder pins, such as the selected trigger.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false,
              "description": "One SDK builder method."
            },
            "description": "SDK builder methods keyed by dotted path, e.g. `slack.sendMessage`."
          },
          "subBlocks": {
            "description": "Fields declared identically by several blocks or triggers, stored once.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Field id; the param name unless the field is in a basic/advanced pair."
                },
                "type": {
                  "type": "string",
                  "description": "Editor control type, e.g. `short-input`."
                },
                "title": {
                  "description": "Display title.",
                  "type": "string"
                },
                "mode": {
                  "description": "Which editor mode shows the field.",
                  "type": "string",
                  "enum": [
                    "basic",
                    "advanced",
                    "both",
                    "trigger",
                    "trigger-advanced"
                  ]
                },
                "canonicalParamId": {
                  "description": "Shared param name of a basic/advanced pair.",
                  "type": "string"
                },
                "surface": {
                  "description": "Whether this declaration belongs to action or trigger mode.",
                  "type": "string",
                  "enum": [
                    "action",
                    "trigger"
                  ]
                },
                "condition": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Sibling field id whose value decides the condition."
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "list": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991,
                                  "description": "Index into the catalog `lists` table."
                                }
                              },
                              "required": [
                                "list"
                              ],
                              "additionalProperties": false,
                              "description": "A value list stored once in the catalog `lists` table."
                            }
                          ],
                          "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                        },
                        "not": {
                          "description": "Invert the match.",
                          "type": "boolean"
                        },
                        "and": {
                          "description": "A second clause that must hold as well.",
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "description": "Second field id."
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "list": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991,
                                      "description": "Index into the catalog `lists` table."
                                    }
                                  },
                                  "required": [
                                    "list"
                                  ],
                                  "additionalProperties": false,
                                  "description": "A value list stored once in the catalog `lists` table."
                                }
                              ],
                              "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                            },
                            "not": {
                              "description": "Invert the second match.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "field"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "field",
                        "value"
                      ],
                      "additionalProperties": false,
                      "description": "Holds when `field` holds `value`."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "opaque": {
                          "type": "boolean",
                          "const": true,
                          "description": "Always true."
                        }
                      },
                      "required": [
                        "opaque"
                      ],
                      "additionalProperties": false,
                      "description": "A function the catalog could not evaluate to data."
                    }
                  ],
                  "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                },
                "visibleFor": {
                  "description": "Per operation id: whether an opaque condition can show this field.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "boolean"
                  }
                },
                "visibleWhen": {
                  "description": "Per operation id: the clause on other fields an opaque condition still asks to show this field.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string",
                        "description": "Sibling field id whose value decides the condition."
                      },
                      "value": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          },
                          {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "list": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991,
                                "description": "Index into the catalog `lists` table."
                              }
                            },
                            "required": [
                              "list"
                            ],
                            "additionalProperties": false,
                            "description": "A value list stored once in the catalog `lists` table."
                          }
                        ],
                        "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                      },
                      "not": {
                        "description": "Invert the match.",
                        "type": "boolean"
                      },
                      "and": {
                        "description": "A second clause that must hold as well.",
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "Second field id."
                          },
                          "value": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "list": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991,
                                    "description": "Index into the catalog `lists` table."
                                  }
                                },
                                "required": [
                                  "list"
                                ],
                                "additionalProperties": false,
                                "description": "A value list stored once in the catalog `lists` table."
                              }
                            ],
                            "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                          },
                          "not": {
                            "description": "Invert the second match.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "field"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false,
                    "description": "Holds when `field` holds `value`."
                  }
                },
                "visibleForModel": {
                  "description": "Per model id: whether an opaque condition shows this field.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "boolean"
                  }
                },
                "required": {
                  "description": "Whether a value is required, or the condition under which it is.",
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "description": "Sibling field id whose value decides the condition."
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "list": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991,
                                      "description": "Index into the catalog `lists` table."
                                    }
                                  },
                                  "required": [
                                    "list"
                                  ],
                                  "additionalProperties": false,
                                  "description": "A value list stored once in the catalog `lists` table."
                                }
                              ],
                              "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                            },
                            "not": {
                              "description": "Invert the match.",
                              "type": "boolean"
                            },
                            "and": {
                              "description": "A second clause that must hold as well.",
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "description": "Second field id."
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "list": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index into the catalog `lists` table."
                                        }
                                      },
                                      "required": [
                                        "list"
                                      ],
                                      "additionalProperties": false,
                                      "description": "A value list stored once in the catalog `lists` table."
                                    }
                                  ],
                                  "description": "Value, or set of accepted values, the named field must hold; a set may be a `lists` reference."
                                },
                                "not": {
                                  "description": "Invert the second match.",
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "field"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "field",
                            "value"
                          ],
                          "additionalProperties": false,
                          "description": "Holds when `field` holds `value`."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "opaque": {
                              "type": "boolean",
                              "const": true,
                              "description": "Always true."
                            }
                          },
                          "required": [
                            "opaque"
                          ],
                          "additionalProperties": false,
                          "description": "A function the catalog could not evaluate to data."
                        }
                      ],
                      "description": "A condition clause, or `{ opaque: true }` (treat as possibly holding)."
                    }
                  ]
                },
                "dependsOn": {
                  "description": "Editor clearing and fetch ordering hints; never visibility.",
                  "type": "object",
                  "properties": {
                    "all": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Fields that must all hold values."
                    },
                    "any": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Fields of which one must hold a value."
                    }
                  },
                  "required": [
                    "all",
                    "any"
                  ],
                  "additionalProperties": false
                },
                "defaultValue": {
                  "description": "Editor default value (any JSON)."
                },
                "valueDefault": {
                  "description": "The registry value thunk, evaluated where it is constant.",
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "computed": {
                          "type": "boolean",
                          "const": true,
                          "description": "Always true."
                        },
                        "initial": {
                          "description": "What the thunk returns for a new block with no values (any JSON), when stable."
                        }
                      },
                      "required": [
                        "computed"
                      ],
                      "additionalProperties": false,
                      "description": "A value thunk derived from other params."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "constant": {
                          "description": "The constant value (any JSON)."
                        }
                      },
                      "required": [
                        "constant"
                      ],
                      "additionalProperties": false,
                      "description": "A value thunk that always returns this."
                    }
                  ]
                },
                "options": {
                  "description": "Selectable options.",
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Stored option id."
                          },
                          "label": {
                            "description": "Display label; absent when it equals `id`, and on a block's non-`operation` fields.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false,
                        "description": "One static option."
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "dynamic": {
                          "type": "boolean",
                          "const": true,
                          "description": "Always true."
                        }
                      },
                      "required": [
                        "dynamic"
                      ],
                      "additionalProperties": false,
                      "description": "Options fetched per workspace through `selectorKey`."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "opaque": {
                          "type": "boolean",
                          "const": true,
                          "description": "Always true."
                        }
                      },
                      "required": [
                        "opaque"
                      ],
                      "additionalProperties": false,
                      "description": "A function the catalog could not evaluate to data."
                    }
                  ]
                },
                "optionsVary": {
                  "description": "The options depend on deployment settings and were evaluated where this catalog was built; the write-time check evaluates them again.",
                  "type": "boolean",
                  "const": true
                },
                "hidden": {
                  "description": "Hidden from the editor.",
                  "type": "boolean"
                },
                "readOnly": {
                  "description": "Display-only.",
                  "type": "boolean"
                },
                "password": {
                  "description": "Holds a secret.",
                  "type": "boolean"
                },
                "hideFromCopilot": {
                  "description": "Not offered to Copilot.",
                  "type": "boolean"
                },
                "context": {
                  "description": "Only meaningful as an agent tool.",
                  "type": "string",
                  "const": "tool-input"
                },
                "paramVisibility": {
                  "description": "Tool param visibility override.",
                  "type": "string"
                },
                "emptyIsValid": {
                  "description": "An empty value satisfies `required`.",
                  "type": "boolean"
                },
                "language": {
                  "description": "Code field language.",
                  "type": "string"
                },
                "multiple": {
                  "description": "Accepts several files.",
                  "type": "boolean"
                },
                "min": {
                  "description": "Minimum numeric value.",
                  "type": "number"
                },
                "max": {
                  "description": "Maximum numeric value.",
                  "type": "number"
                },
                "step": {
                  "description": "Slider increment.",
                  "type": "number"
                },
                "integer": {
                  "description": "Integers only.",
                  "type": "boolean"
                },
                "columns": {
                  "description": "Table column headers.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "selectorKey": {
                  "description": "Selector that lists the options.",
                  "type": "string"
                },
                "serviceId": {
                  "description": "OAuth service the field binds.",
                  "type": "string"
                },
                "credentialProviders": {
                  "description": "Provider ids of the saved credentials the field accepts.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "valueKind": {
                  "type": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "array",
                    "object",
                    "json",
                    "code",
                    "branches",
                    "tools",
                    "resource",
                    "picked",
                    "upload",
                    "none"
                  ],
                  "description": "How a value for this field is written in source."
                },
                "resourceKind": {
                  "description": "Workspace resource kind, for `resource` fields.",
                  "type": "string"
                },
                "storage": {
                  "type": "string",
                  "enum": [
                    "native",
                    "json-string"
                  ],
                  "description": "Encoding a new value is stored with."
                },
                "structured": {
                  "description": "Structured value the canonical model decodes.",
                  "type": "string",
                  "enum": [
                    "tools",
                    "branches",
                    "tableRows",
                    "inputFormat",
                    "variables",
                    "skills"
                  ]
                },
                "acceptsNumber": {
                  "description": "Free text that also takes a number, which the runtime coerces.",
                  "type": "boolean"
                },
                "neverDecoded": {
                  "description": "User text whose JSON-looking content is never decoded.",
                  "type": "boolean"
                },
                "tableFilter": {
                  "description": "A table filter: builder rows or a predicate.",
                  "type": "boolean"
                },
                "valueShape": {
                  "description": "Shape of the value in an agent tool entry; absent means string.",
                  "type": "string",
                  "enum": [
                    "number",
                    "boolean",
                    "json"
                  ]
                }
              },
              "required": [
                "id",
                "type",
                "valueKind",
                "storage"
              ],
              "additionalProperties": false,
              "description": "One configuration field, in declared order; duplicate ids are kept with `surface`."
            }
          },
          "lists": {
            "description": "Condition value lists used by several fields, stored once.",
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              }
            }
          },
          "outputs": {
            "description": "Output records repeated across blocks and triggers, stored once.",
            "type": "array",
            "items": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Output value type."
                  },
                  "description": {
                    "description": "What the output holds.",
                    "type": "string"
                  },
                  "condition": {
                    "description": "When the output is present: `{ field, value, not?, and? }`."
                  },
                  "hiddenFromDisplay": {
                    "description": "Hidden from the output picker.",
                    "type": "boolean"
                  },
                  "properties": {
                    "description": "Nested outputs by name, each of this same shape.",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "description": "A nested output, of this same shape."
                    }
                  },
                  "sharedProperties": {
                    "description": "In place of `properties`: index of the nested outputs in the catalog `outputs`.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "items": {
                    "description": "Array element output, of this same shape."
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false,
                "description": "One output field."
              },
              "description": "Declared outputs by name."
            }
          },
          "scope": {
            "description": "Present when the catalog includes an organization’s custom blocks.",
            "type": "object",
            "properties": {
              "organizationId": {
                "type": "string",
                "description": "Organization whose custom blocks are included."
              }
            },
            "required": [
              "organizationId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "catalogVersion",
          "hash",
          "sdkMajor",
          "blocks",
          "triggers",
          "builders"
        ],
        "additionalProperties": false,
        "description": "Response data."
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false,
    "title": "Get source catalog response",
    "description": "The source catalog core shard.",
    "examples": [
      {
        "data": {
          "catalogVersion": 1,
          "hash": "3f0c1a9e5b7d2c4f6a8e0b1d3c5f7a9e2b4d6f8a0c2e4b6d8f0a2c4e6b8d0f2a",
          "sdkMajor": 1,
          "blocks": {
            "slack_v2": {
              "type": "slack_v2",
              "name": "Slack",
              "category": "tools",
              "subBlocks": [
                {
                  "id": "operation",
                  "type": "dropdown",
                  "valueKind": "string",
                  "storage": "native",
                  "options": [
                    {
                      "id": "send",
                      "label": "Send Message"
                    }
                  ]
                }
              ],
              "tools": {
                "access": [
                  "slack_message"
                ],
                "selector": "operation"
              },
              "outputs": {
                "ts": {
                  "type": "string",
                  "description": "Message timestamp"
                }
              },
              "graph": {
                "canBeTarget": true,
                "errorPort": true,
                "container": null,
                "annotationOnly": false
              }
            }
          },
          "triggers": {},
          "builders": {
            "slack.sendMessage": {
              "type": "slack_v2",
              "operation": "send"
            }
          }
        }
      }
    ]
  },
  "#/components/responses/BadRequest": {
    "description": "The request is invalid. This includes a query parameter sent with no value (`?limit=`, `?search=`), which is rejected rather than read as zero, empty, or the parameter default — omit the parameter instead.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "BAD_REQUEST",
            "message": "Invalid request"
          }
        }
      }
    }
  },
  "#/components/schemas/V2Error": {
    "type": "object",
    "properties": {
      "error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of the error."
          },
          "details": {
            "description": "Structured error context whose keys depend on the error. Actionable `403` responses use the `V2ActionableForbiddenDetails` shape; validation failures may return issue arrays instead.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/V2ActionableForbiddenDetails"
              },
              {
                "description": "Other structured context defined by the specific error."
              }
            ]
          },
          "requestId": {
            "description": "Identifier of this request, the same id as the `x-request-id` response header. Quote it when contacting support.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false,
        "description": "Canonical error details."
      }
    },
    "required": [
      "error"
    ],
    "additionalProperties": false,
    "title": "v2 error response",
    "description": "Canonical error envelope returned by the public v2 API.",
    "examples": [
      {
        "error": {
          "code": "BAD_REQUEST",
          "message": "The request is invalid."
        }
      }
    ]
  },
  "#/components/schemas/V2ActionableForbiddenDetails": {
    "type": "object",
    "properties": {
      "code": {
        "$ref": "#/components/schemas/V2ForbiddenDetailCode"
      }
    },
    "required": [
      "code"
    ],
    "additionalProperties": {
      "description": "Additional context for this refusal."
    },
    "title": "Actionable forbidden details",
    "description": "Machine-readable cause and optional context for an actionable `403` response."
  },
  "#/components/schemas/V2ForbiddenDetailCode": {
    "type": "string",
    "enum": [
      "INSUFFICIENT_WORKSPACE_ROLE",
      "PERSONAL_API_KEYS_DISABLED",
      "WORKSPACE_KEY_OPERATION_NOT_PERMITTED",
      "PRINCIPAL_KIND_NOT_PERMITTED",
      "ORGANIZATION_MEMBERSHIP_REQUIRED",
      "ORGANIZATION_ADMIN_REQUIRED",
      "ENTERPRISE_PLAN_REQUIRED",
      "SSO_DISABLED",
      "SSO_DOMAIN_NOT_VERIFIED",
      "SSO_PROVIDER_LIMIT_REACHED",
      "ORGANIZATION_PLAN_REQUIRED",
      "AUDIT_LOGS_DISABLED",
      "ACCESS_REQUESTS_DISABLED",
      "ACCESS_REQUEST_ORGANIZATION_REQUIRED",
      "SKILL_EDITOR_ACCESS_REQUIRED",
      "SECRET_ADMIN_ACCESS_REQUIRED",
      "WORKSPACE_RESOURCE_LIMIT_REACHED",
      "PUBLIC_SHARING_NOT_ALLOWED",
      "CREDENTIAL_ADMIN_ACCESS_REQUIRED",
      "MCP_SERVER_URL_NOT_ALLOWED",
      "WORKSPACE_PLAN_CAPABILITY_REQUIRED",
      "CHAT_AUTH_MODE_NOT_PERMITTED",
      "CONNECTOR_MANAGED_RESOURCE_READ_ONLY",
      "PERMISSION_GROUP_CAPABILITY_BLOCKED",
      "INTEGRATION_NOT_ALLOWED",
      "INSUFFICIENT_SCOPE",
      "READ_ONLY_API_KEY",
      "SCIM_MANAGED_MEMBERSHIP",
      "FEATURE_NOT_ENABLED"
    ],
    "title": "Forbidden detail code",
    "description": "Stable cause code for an actionable `403` response."
  },
  "#/components/responses/Unauthorized": {
    "description": "The API credential is missing or invalid.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "UNAUTHORIZED",
            "message": "Authentication required"
          }
        }
      }
    }
  },
  "#/components/responses/Forbidden": {
    "description": "The caller lacks the rights this operation requires. When the cause is one a caller can act on, `error.details.code` names it. A resource in a workspace the caller cannot reach at all answers `404` instead, so absence and denial are indistinguishable.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "FORBIDDEN",
            "message": "Insufficient workspace permissions",
            "details": {
              "code": "INSUFFICIENT_WORKSPACE_ROLE"
            }
          }
        }
      }
    }
  },
  "#/components/responses/NotFound": {
    "description": "The requested resource was not found.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "NOT_FOUND",
            "message": "Not found"
          }
        }
      }
    }
  },
  "#/components/responses/RateLimited": {
    "description": "The caller exceeded the request rate limit.",
    "headers": {
      "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
      }
    },
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "RATE_LIMITED",
            "message": "API rate limit exceeded",
            "details": {
              "retryAfter": "2026-01-01T00:00:30.000Z"
            }
          }
        }
      }
    }
  },
  "#/components/headers/Retry-After": {
    "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset.",
    "schema": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "title": "Retry after",
      "description": "Seconds to wait before retrying, sent on `429` and `503`. Add jitter rather than retrying at exactly this offset."
    }
  },
  "#/components/responses/InternalError": {
    "description": "An unexpected server error occurred.",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "INTERNAL_ERROR",
            "message": "Internal server error"
          }
        }
      }
    }
  },
  "#/components/responses/ServiceUnavailable": {
    "description": "A required service is temporarily unavailable. When present, `Retry-After` gives the minimum seconds to wait; add jitter before retrying. Check operation-specific guidance before repeating a change after an uncertain response.",
    "headers": {
      "Retry-After": {
        "$ref": "#/components/headers/Retry-After"
      }
    },
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/V2Error"
        },
        "example": {
          "error": {
            "code": "SERVICE_UNAVAILABLE",
            "message": "Service temporarily unavailable"
          }
        }
      }
    }
  }
}

```

[Download OpenAPI specification](/openapi.json)

Source: `openapi-v2-resources.json`, operation `getSourceCatalog`.