Mutation
mutation SyncDinoAiAgentDefinitionsFromCode($input: SyncDinoAiAgentDefinitionsFromCodeInput!) {
syncDinoAiAgentDefinitionsFromCode(input: $input) {
job {
id
kind
status
failure {
code
reason
}
result {
__typename
... on DeployBoltSchedulesResult {
__typename
}
}
createdAt
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"syncDinoAiAgentDefinitionsFromCode": {
"job": {
"id": "string",
"kind": "DEPLOY_BOLT_SCHEDULES",
"status": "QUEUED",
"failure": {
"code": "UNAUTHENTICATED",
"reason": "string"
},
"result": {
"__typename": "DeployBoltSchedulesResult"
},
"createdAt": "value"
}
}
}
}syncDinoAiAgentDefinitionsFromCode
Starts a job that imports, by slug, the DinoAI agent definitions committed under .dinoai/agents/ into the workspace the key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header. It creates agents and replaces those with the same slug, and never deletes. The branch’s files replace an agent with the same slug even when it was authored in Paradime or through this API. Poll the job with adminJob. Needs dinoai:admin:write.
MUTATION
syncDinoAiAgentDefinitionsFromCode(input: SyncDinoAiAgentDefinitionsFromCodeInput!): SyncDinoAiAgentDefinitionsFromCodePayload!Arguments
input
The branch to read.
job
The sync's job. Its result is a DinoAiAgentSyncResult: the agents created and updated, the files skipped as invalid, the branch and commit read, and whether the repository was fetched first.
Mutation
mutation SyncDinoAiAgentDefinitionsFromCode($input: SyncDinoAiAgentDefinitionsFromCodeInput!) {
syncDinoAiAgentDefinitionsFromCode(input: $input) {
job {
id
kind
status
failure {
code
reason
}
result {
__typename
... on DeployBoltSchedulesResult {
__typename
}
}
createdAt
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"syncDinoAiAgentDefinitionsFromCode": {
"job": {
"id": "string",
"kind": "DEPLOY_BOLT_SCHEDULES",
"status": "QUEUED",
"failure": {
"code": "UNAUTHENTICATED",
"reason": "string"
},
"result": {
"__typename": "DeployBoltSchedulesResult"
},
"createdAt": "value"
}
}
}
}