## POST /v1/agents/{id}/link

Open a pull request containing the definition. Git takes ownership when that pull request merges and syncs.

Required permissions: write:configs.
API key: Supported.
CLI user token: Supported.
Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
Higher permission levels include lower levels: read < write < delete.
Grant match patterns can further restrict access to individual resources.

### Request

```text
{
  "path": str,
  "repository": str
}
```

### Response

```text
{
  "agent": { # StandardAgent | SlackAgent | GithubAgent | LinearAgent |
  # SentryAgent
    "config": {
      "ellipsis": {
        "description": str,
        "enabled": bool,
        "kind": "agent",
        "metadata": {
          "annotations": {
            "[str]": str
          },
          "labels": [
            str
          ]
        },
        "name": str,
        "version": str
      },
      "input": {
        "json_schema": {
          "[str]": any
        }
      },
      "session": {
        "budget": {
          "day": float,
          "month": float,
          "session": float,
          "week": float
        },
        "claude_code": {
          "effort": str,
          "fallback_model": str,
          "max_turns": int,
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          },
          "settings": {
            "path": str,
            "repository": {
              "name": str,
              "owner": str,
              "ref": str
            }
          }
        },
        "codex": {
          "effort": str,
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          }
        },
        "conversation": {
          "interactive": bool
        },
        "environment": { # str
          "compute": {
            "cpu": int,
            "idle": str,
            "memory": { # str | null
              "gb": int,
              "mb": int
            },
            "timeout": str
          },
          "hooks": {
            "after_checkout": { # str | null
              "run": str
            },
            "before_start": { # str | null
              "run": str
            },
            "build_base": { # str | null
              "inputs": [
                str
              ],
              "run": str
            },
            "post_clone": str,
            "post_start": str,
            "validate": { # str | null
              "run": str
            }
          },
          "mcp": [ # list[str | McpServerRef | McpRemoteServer |
          # McpCommandServer]
            {
              "args": [
                str
              ],
              "command": str,
              "env": {
                "[str]": str
              },
              "name": str
            }
          ],
          "repositories": [
            {
              "name": str,
              "owner": str,
              "ref": str
            }
          ],
          "variables": [
            {
              "name": str,
              "value": str
            }
          ]
        },
        "gemini": {
          "model": str,
          "prompt": { # str | null
            "builtin": "find_bugs"
          }
        },
        "mcp": [ # list[str | McpServerRef | McpRemoteServer | McpCommandServer]
          {
            "args": [
              str
            ],
            "command": str,
            "env": {
              "[str]": str
            },
            "name": str
          }
        ],
        "metadata": {
          "annotations": {
            "[str]": str
          },
          "labels": [
            str
          ]
        },
        "output": {
          "json_schema": {
            "[str]": any
          }
        },
        "permissions": {
          "ellipsis": [ # str | null | list[str | EllipsisGrant]
            {
              "allow": [ # str
                str
              ]
            }
          ],
          "github": [ # str | null | list[str | GithubGrant]
            {
              "allow": [ # str
                str
              ],
              "base": str,
              "branch": str,
              "issue": [ # int | null
                int
              ],
              "limit": int,
              "pull_request": [ # int | null
                int
              ],
              "repository": [ # str | null
                str
              ]
            }
          ]
        },
        "skills": [
          {
            "path": str,
            "repository": {
              "name": str,
              "owner": str,
              "ref": str
            }
          }
        ]
      },
      "trigger": { # null | ReactTrigger | CronTrigger
        "check_run": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "check_suite": {
          "apps": [
            str
          ],
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "enabled": bool,
        "issue": {
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "labels": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "linear_issue": {
          "assignee": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "changed": {
            "assignee": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "labels": {
              "added": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "removed": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "priority": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "project": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            },
            "state": {
              "from": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              },
              "to": { # null | list[str] | str
                "exclude": [
                  str
                ],
                "include": [
                  str
                ]
              }
            }
          },
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "labels": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "on": [
            str
          ],
          "priority": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "project": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "state": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "team": { # null | list[str] | str
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "pull_request": {
          "base": [
            str
          ],
          "draft": bool,
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "head": [
            str
          ],
          "labels": [
            str
          ],
          "on": [
            str
          ],
          "paths": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "push": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "paths": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "release": {
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "on": [
            str
          ],
          "prerelease": bool,
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          },
          "tag": [
            str
          ]
        },
        "sentry": {
          "on": [
            str
          ],
          "projects": [
            str
          ]
        },
        "slack_channel": {},
        "status": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "type": "react",
        "workflow_run": {
          "branch": [
            str
          ],
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "names": [
            str
          ],
          "on": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        }
      }
    },
    "created_at": str,
    "display_name": str,
    "edited_by": {
      "avatar_url": str,
      "id": int,
      "login": str,
      "name": str,
      "type": str
    },
    "id": str,
    "kind": "agent",
    "last_session_created_at": str,
    "last_session_id": str,
    "last_sync_error": str,
    "last_synced_commit_sha": str,
    "managed_by": str,
    "name": str,
    "next_run_at": str,
    "pending_pull_request_url": str,
    "raw_yaml": str,
    "sha": str,
    "source_details": {
      "branch": str,
      "path": str,
      "repo_id": int
    },
    "updated_at": str,
    "url": str
  },
  "path": str,
  "pull_request_url": str
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.agents.link("...", "api-repo")
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const request: Parameters<typeof client.agents.link>[1] = {
  repository: 'api-repo',
};

const result = await client.agents.link('...', request);
console.log(result);
```

### cURL

```bash
curl -X POST "https://api.ellipsis.dev/v1/agents/{id}/link" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "repository": "api-repo"
}'
```

### Request schema

```json
{
  "properties": {
    "path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "repository": {
      "type": "string"
    }
  },
  "required": [
    "repository"
  ],
  "type": "object"
}
```

### Response schema

```json
{
  "properties": {
    "agent": {
      "oneOf": [
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "agent",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "AgentIdentity"
                },
                "input": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "json_schema": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "json_schema"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conversation": {
                      "additionalProperties": false,
                      "properties": {
                        "interactive": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "interactive"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "SessionConversationConfig"
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ],
                      "default": {
                        "compute": {},
                        "hooks": {},
                        "mcp": [],
                        "repositories": [],
                        "variables": []
                      }
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "default": [],
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "output": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "default": [],
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "conversation",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "output",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SessionConfig"
                },
                "trigger": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "ellipsis",
                "input",
                "session",
                "trigger"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "AgentConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "agent",
              "default": "agent",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "slack",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SlackIdentity"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                },
                "slack": {
                  "additionalProperties": false,
                  "properties": {
                    "channels": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "direct_messages": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "channels",
                    "direct_messages"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SlackRoutes"
                }
              },
              "required": [
                "ellipsis",
                "session",
                "slack"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "SlackConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "slack",
              "default": "slack",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "github",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "GithubIdentity"
                },
                "github": {
                  "additionalProperties": false,
                  "properties": {
                    "mentions": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_leading_ellipsis": {
                          "type": "boolean"
                        },
                        "for": {
                          "type": "object"
                        },
                        "require_leading_mention": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "allow_leading_ellipsis",
                        "for",
                        "require_leading_mention"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "GithubMentionPolicy"
                    },
                    "repositories": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "mentions",
                    "repositories"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "GithubRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "github",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "GithubConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "github",
              "default": "github",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "linear",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "LinearIdentity"
                },
                "linear": {
                  "additionalProperties": false,
                  "properties": {
                    "projects": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "teams": {
                      "default": [],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "projects",
                    "teams"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "LinearRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "linear",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "LinearConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "linear",
              "default": "linear",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        },
        {
          "properties": {
            "config": {
              "additionalProperties": false,
              "properties": {
                "ellipsis": {
                  "additionalProperties": false,
                  "properties": {
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "default": true,
                      "type": "boolean"
                    },
                    "kind": {
                      "const": "sentry",
                      "type": "string",
                      "x-ellipsis-enum": "AgentKind"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "default": "v1",
                      "type": "string"
                    }
                  },
                  "required": [
                    "description",
                    "enabled",
                    "kind",
                    "metadata",
                    "name",
                    "version"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SentryIdentity"
                },
                "sentry": {
                  "additionalProperties": false,
                  "properties": {
                    "on": {
                      "default": [
                        "issue_alert",
                        "metric_alert"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "organizations": {
                      "default": [
                        "*"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "projects": {
                      "items": {
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "on",
                    "organizations",
                    "projects"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "SentryRoutes"
                },
                "session": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    }
                  ],
                  "properties": {
                    "budget": {
                      "additionalProperties": false,
                      "properties": {
                        "day": {
                          "type": "object"
                        },
                        "month": {
                          "type": "object"
                        },
                        "session": {
                          "type": "object"
                        },
                        "week": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "day",
                        "month",
                        "session",
                        "week"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "BudgetConfig"
                    },
                    "claude_code": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "codex": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "environment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object"
                        }
                      ]
                    },
                    "gemini": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mcp": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "additionalProperties": false,
                      "properties": {
                        "annotations": {
                          "type": "object"
                        },
                        "labels": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "annotations",
                        "labels"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "ConfigMetadata"
                    },
                    "permissions": {
                      "additionalProperties": false,
                      "properties": {
                        "ellipsis": {
                          "type": "object"
                        },
                        "github": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "ellipsis",
                        "github"
                      ],
                      "type": "object",
                      "x-ellipsis-returned-form-of": "PermissionsConfig"
                    },
                    "skills": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "budget",
                    "claude_code",
                    "codex",
                    "environment",
                    "gemini",
                    "mcp",
                    "metadata",
                    "permissions",
                    "skills"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "IntegrationSessionConfig"
                }
              },
              "required": [
                "ellipsis",
                "sentry",
                "session"
              ],
              "type": "object",
              "x-ellipsis-returned-form-of": "SentryConfig"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "display_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "edited_by": {
              "anyOf": [
                {
                  "properties": {
                    "avatar_url": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "login": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "type": {
                      "enum": [
                        "User",
                        "Organization",
                        "Bot",
                        "Mannequin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "avatar_url",
                    "id",
                    "login",
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "const": "sentry",
              "default": "sentry",
              "type": "string",
              "x-ellipsis-enum": "AgentKind"
            },
            "last_session_created_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_session_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_sync_error": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "last_synced_commit_sha": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "managed_by": {
              "enum": [
                "github",
                "api",
                "ellipsis"
              ],
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "next_run_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pending_pull_request_url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "raw_yaml": {
              "type": "string"
            },
            "sha": {
              "type": "string"
            },
            "source_details": {
              "anyOf": [
                {
                  "properties": {
                    "branch": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "repo_id": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "repo_id",
                    "path",
                    "branch"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "sha",
            "config",
            "url",
            "created_at",
            "updated_at",
            "managed_by",
            "raw_yaml"
          ],
          "type": "object"
        }
      ]
    },
    "path": {
      "type": "string"
    },
    "pull_request_url": {
      "type": "string"
    }
  },
  "required": [
    "agent",
    "path",
    "pull_request_url"
  ],
  "type": "object"
}
```
