@parcha/agentrun-client 0.1.0-beta.52 → 0.1.0-beta.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  /** Each operation as the runtime sends it, by operationId. */
2
2
  export const OPERATIONS = {
3
3
  archiveAgent: { "method": "POST", "path": "/agents/{agent_id}/archive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
4
+ bindSourceTool: { "method": "POST", "path": "/agents/{agent_id}/source/tools", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
4
5
  connectNative: { "method": "POST", "path": "/native/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
5
6
  createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
6
7
  deleteAgent: { "method": "DELETE", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -12,10 +13,16 @@ export const OPERATIONS = {
12
13
  getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
13
14
  getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
14
15
  getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
+ getSourceSync: { "method": "GET", "path": "/agents/{agent_id}/source", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
15
17
  listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
18
  listLearningAudits: { "method": "GET", "path": "/agents/{agent_id}/learning/audits", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
17
19
  listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
20
+ moveSourceAgent: { "method": "POST", "path": "/agents/{agent_id}/source/move", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
21
+ getAgentPackage: { "method": "GET", "path": "/agents/{agent_id}/package", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
22
+ resolveSourceSync: { "method": "POST", "path": "/agents/{agent_id}/source/resolve", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
23
+ reviewSourceProject: { "method": "POST", "path": "/agents/{agent_id}/source/project-review", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
18
24
  listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
25
+ setSourceSync: { "method": "PATCH", "path": "/agents/{agent_id}/source", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
19
26
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
20
27
  updateDefinition: { "method": "PUT", "path": "/agents/{agent_id}/definition", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
21
28
  verifyNative: { "method": "POST", "path": "/agents/{agent_id}/native/verify", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -29,13 +36,16 @@ export const OPERATIONS = {
29
36
  startCliLearningRun: { "method": "POST", "path": "/cli-learning/connections/{connection_id}/runs", "pathParams": ["connection_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
30
37
  completeRemoteCommand: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/complete", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
31
38
  enrollRemoteConnector: { "method": "POST", "path": "/connectors/enrollment", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
39
+ grantSourceSync: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync/grant", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
32
40
  importRemoteHistory: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/history", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
33
41
  importRemoteTarget: { "method": "POST", "path": "/connectors/{connector_id}/import", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
34
42
  listRemoteConnectors: { "method": "GET", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
35
43
  pollRemoteConnector: { "method": "POST", "path": "/connectors/{connector_id}/poll", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
44
+ publishSourceSync: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
36
45
  registerRemoteConnector: { "method": "POST", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
37
46
  remoteCommandEvents: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/events", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
38
47
  revokeRemoteConnector: { "method": "DELETE", "path": "/connectors/{connector_id}", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
48
+ sourceSyncFailure: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/sync/status", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
39
49
  createFile: { "method": "POST", "path": "/files", "pathParams": [], "multiSegment": [], "query": ["path", "content_type", "sha256"], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json", "application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
40
50
  deleteFile: { "method": "DELETE", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
41
51
  getFile: { "method": "GET", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -57,12 +67,14 @@ export const OPERATIONS = {
57
67
  putLearningCorrections: { "method": "PUT", "path": "/agents/{agent_id}/learning/corrections", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
58
68
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
59
69
  createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
70
+ createSuggestedAgent: { "method": "POST", "path": "/suggestions/{suggestion_id}/create", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
60
71
  deleteCalendar: { "method": "DELETE", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
61
72
  deleteComposioSubscription: { "method": "DELETE", "path": "/settings/mcp-servers/{name}/composio/subscription", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
62
73
  deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
63
74
  deleteEmailAccount: { "method": "DELETE", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
64
75
  deleteModelGateway: { "method": "DELETE", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
65
76
  deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
77
+ discardSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/discard", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
66
78
  disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
67
79
  finishChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in/finish", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
68
80
  getCalendar: { "method": "GET", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -71,6 +83,7 @@ export const OPERATIONS = {
71
83
  getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
72
84
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
73
85
  getModelGateway: { "method": "GET", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
+ getSuggestion: { "method": "GET", "path": "/suggestions/{suggestion_id}", "pathParams": ["suggestion_id"], "multiSegment": [], "query": ["name"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
74
87
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
75
88
  gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
76
89
  gitHubInstalled: { "method": "GET", "path": "/integrations/github/installed", "pathParams": [], "multiSegment": [], "query": ["installation_id", "setup_action", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -79,14 +92,19 @@ export const OPERATIONS = {
79
92
  listComposioTriggers: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/triggers", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
80
93
  listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
81
94
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
95
+ listGitHubRepositories: { "method": "GET", "path": "/integrations/github/repositories", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
96
+ listMcpServerNames: { "method": "GET", "path": "/settings/mcp-server-names", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
97
+ listSuggestions: { "method": "GET", "path": "/suggestions", "pathParams": [], "multiSegment": [], "query": ["repo", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
98
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
83
99
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
100
+ restoreSuggestion: { "method": "POST", "path": "/suggestions/{suggestion_id}/restore", "pathParams": ["suggestion_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
84
101
  rotateComposioSecret: { "method": "POST", "path": "/settings/mcp-servers/{name}/composio/rotate-secret", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
85
102
  saveCalendar: { "method": "PUT", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
103
  saveComposioServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}/composio", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit", "tools.[]", "user_id"], "tagged": false },
87
104
  saveComputerKeys: { "method": "PUT", "path": "/computers/{provider}/keys", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
88
105
  saveEmailAccount: { "method": "PUT", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
106
  saveModelGateway: { "method": "PUT", "path": "/settings/model-gateway", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["base_url", "ids", "models.default", "models.fast", "models.strong"], "tagged": false },
107
+ scanForSuggestions: { "method": "POST", "path": "/suggestions/scans", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
108
  signOutChatGPT: { "method": "DELETE", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
109
  startChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
92
110
  startClaudeLogin: { "method": "POST", "path": "/settings/claude-login/login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -154,6 +172,7 @@ export const OPERATIONS = {
154
172
  getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
155
173
  applyTemplate: { "method": "POST", "path": "/templates/{template}/apply", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
156
174
  deleteTemplate: { "method": "DELETE", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
175
+ getTemplate: { "method": "GET", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
157
176
  importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
158
177
  listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
159
178
  deleteToolKey: { "method": "DELETE", "path": "/settings/tool-keys/{key_id}", "pathParams": ["key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -185,6 +204,8 @@ export function resources(call) {
185
204
  agents: {
186
205
  /** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
187
206
  archive: (agentId, options) => call("archiveAgent", [agentId], undefined, undefined, options),
207
+ /** Choose the existing destination account for a required source tool (POST /agents/{agent_id}/source/tools). */
208
+ bindSourceTool: (agentId, body, options) => call("bindSourceTool", [agentId], body, undefined, options),
188
209
  /** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
189
210
  connectNative: (body, options) => call("connectNative", [], body, undefined, options),
190
211
  /** Create an agent home (POST /agents). */
@@ -207,14 +228,26 @@ export function resources(call) {
207
228
  getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
208
229
  /** Read a native connection (GET /agents/{agent_id}/native). */
209
230
  getNative: (agentId, options) => call("getNative", [agentId], undefined, undefined, options),
231
+ /** Read source sync and managed Move readiness (GET /agents/{agent_id}/source). */
232
+ getSourceSync: (agentId, options) => call("getSourceSync", [agentId], undefined, undefined, options),
210
233
  /** List agents (GET /agents). */
211
234
  list: (params, options) => call("listAgents", [], undefined, params, options),
212
235
  /** The audit ledger of the agent's serving learned workflows (GET /agents/{agent_id}/learning/audits). */
213
236
  listLearningAudits: (agentId, options) => call("listLearningAudits", [agentId], undefined, undefined, options),
214
237
  /** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
215
238
  listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
239
+ /** Move the same agent to server-managed execution from its complete synchronized setup (POST /agents/{agent_id}/source/move). */
240
+ moveSourceAgent: (agentId, body, options) => call("moveSourceAgent", [agentId], body, undefined, options),
241
+ /** The agent's current revision as a template package (GET /agents/{agent_id}/package). */
242
+ package: (agentId, options) => call("getAgentPackage", [agentId], undefined, undefined, options),
243
+ /** Use an explicitly reviewed source snapshot while retaining the prior managed revision in history (POST /agents/{agent_id}/source/resolve). */
244
+ resolveSourceSync: (agentId, body, options) => call("resolveSourceSync", [agentId], body, undefined, options),
245
+ /** Acknowledge exact unresolved run receipts and allow later runs to use the saved project (POST /agents/{agent_id}/source/project-review). */
246
+ reviewSourceProject: (agentId, body, options) => call("reviewSourceProject", [agentId], body, undefined, options),
216
247
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
217
248
  runs: (agentId, params, options) => call("listRuns", [agentId], undefined, params, options),
249
+ /** Enable or pause this agent’s source sync (PATCH /agents/{agent_id}/source). */
250
+ setSourceSync: (agentId, body, options) => call("setSourceSync", [agentId], body, undefined, options),
218
251
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
219
252
  unarchive: (agentId, options) => call("unarchiveAgent", [agentId], undefined, undefined, options),
220
253
  /** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
@@ -247,6 +280,8 @@ export function resources(call) {
247
280
  completeRemoteCommand: (connectorId, commandId, body, options) => call("completeRemoteCommand", [connectorId, commandId], body, undefined, options),
248
281
  /** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
249
282
  enrollRemoteConnector: (body, options) => call("enrollRemoteConnector", [], body, undefined, options),
283
+ /** Read or establish this explicitly authorized source sync grant without re-enabling a paused grant (POST /connectors/{connector_id}/targets/{target_id}/sync/grant). */
284
+ grantSourceSync: (connectorId, targetId, body, options) => call("grantSourceSync", [connectorId, targetId], body, undefined, options),
250
285
  /** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
251
286
  importRemoteHistory: (connectorId, targetId, body, options) => call("importRemoteHistory", [connectorId, targetId], body, undefined, options),
252
287
  /** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
@@ -255,12 +290,16 @@ export function resources(call) {
255
290
  listRemoteConnectors: (options) => call("listRemoteConnectors", [], undefined, undefined, options),
256
291
  /** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
257
292
  pollRemoteConnector: (connectorId, body, options) => call("pollRemoteConnector", [connectorId], body, undefined, options),
293
+ /** Publish a bounded source snapshot under its grant and sequence (POST /connectors/{connector_id}/targets/{target_id}/sync). */
294
+ publishSourceSync: (connectorId, targetId, body, options) => call("publishSourceSync", [connectorId, targetId], body, undefined, options),
258
295
  /** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
259
296
  registerRemoteConnector: (body, options) => call("registerRemoteConnector", [], body, undefined, options),
260
297
  /** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
261
298
  remoteCommandEvents: (connectorId, commandId, body, options) => call("remoteCommandEvents", [connectorId, commandId], body, undefined, options),
262
299
  /** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
263
300
  revokeRemoteConnector: (connectorId, options) => call("revokeRemoteConnector", [connectorId], undefined, undefined, options),
301
+ /** Record a fixed source failure while preserving its last complete snapshot (POST /connectors/{connector_id}/targets/{target_id}/sync/status). */
302
+ sourceSyncFailure: (connectorId, targetId, body, options) => call("sourceSyncFailure", [connectorId, targetId], body, undefined, options),
264
303
  },
265
304
  files: {
266
305
  /** Reserve an upload (POST /files). */
@@ -309,6 +348,8 @@ export function resources(call) {
309
348
  local: {
310
349
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
311
350
  createPairing: (options) => call("createPairing", [], undefined, undefined, options),
351
+ /** Create a suggested agent: a branch with its package and client, the agent made here, and a pull request (POST /suggestions/{suggestion_id}/create). */
352
+ createSuggestedAgent: (suggestionId, body, options) => call("createSuggestedAgent", [suggestionId], body, undefined, options),
312
353
  /** Forget this server's calendar (DELETE /settings/calendar). */
313
354
  deleteCalendar: (options) => call("deleteCalendar", [], undefined, undefined, options),
314
355
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
@@ -321,6 +362,8 @@ export function resources(call) {
321
362
  deleteModelGateway: (options) => call("deleteModelGateway", [], undefined, undefined, options),
322
363
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
323
364
  deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
365
+ /** Discard a suggested agent: it goes away, and later scans leave it out (POST /suggestions/{suggestion_id}/discard). */
366
+ discardSuggestion: (suggestionId, options) => call("discardSuggestion", [suggestionId], undefined, undefined, options),
324
367
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
325
368
  disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
326
369
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
@@ -337,6 +380,8 @@ export function resources(call) {
337
380
  getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
338
381
  /** The model gateway in force: the environment's, the one saved here, or none (GET /settings/model-gateway). */
339
382
  getModelGateway: (options) => call("getModelGateway", [], undefined, undefined, options),
383
+ /** One suggested agent whole: its instructions, the files a create adds, and whether GitHub lets it (GET /suggestions/{suggestion_id}). */
384
+ getSuggestion: (suggestionId, params, options) => call("getSuggestion", [suggestionId], undefined, params, options),
340
385
  /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
341
386
  getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
342
387
  /** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
@@ -349,10 +394,18 @@ export function resources(call) {
349
394
  listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
350
395
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
351
396
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
397
+ /** The repositories this server's GitHub App is installed on (GET /integrations/github/repositories). */
398
+ listGitHubRepositories: (options) => call("listGitHubRepositories", [], undefined, undefined, options),
399
+ /** The names of the MCP servers saved here, and nothing else of them (GET /settings/mcp-server-names). */
400
+ listMcpServerNames: (options) => call("listMcpServerNames", [], undefined, undefined, options),
401
+ /** Suggested agents: each repository's scan and the agents it suggests (GET /suggestions). */
402
+ listSuggestions: (params, options) => call("listSuggestions", [], undefined, params, options),
352
403
  /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
353
404
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
354
405
  /** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
355
406
  receiveHookComposio: (hook, body, options) => call("receiveHook_composio", [hook], body, undefined, options),
407
+ /** Bring a discarded suggestion back (an undo) (POST /suggestions/{suggestion_id}/restore). */
408
+ restoreSuggestion: (suggestionId, options) => call("restoreSuggestion", [suggestionId], undefined, undefined, options),
356
409
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
357
410
  rotateComposioSecret: (name, options) => call("rotateComposioSecret", [name], undefined, undefined, options),
358
411
  /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
@@ -365,6 +418,8 @@ export function resources(call) {
365
418
  saveEmailAccount: (body, options) => call("saveEmailAccount", [], body, undefined, options),
366
419
  /** Use a model gateway for every model, saved here (PUT /settings/model-gateway). */
367
420
  saveModelGateway: (body, options) => call("saveModelGateway", [], body, undefined, options),
421
+ /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
422
+ scanForSuggestions: (body, options) => call("scanForSuggestions", [], body, undefined, options),
368
423
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
369
424
  signOutChatGpt: (options) => call("signOutChatGPT", [], undefined, undefined, options),
370
425
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
@@ -515,7 +570,9 @@ export function resources(call) {
515
570
  apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
516
571
  /** Remove an imported template package (DELETE /templates/{template}). */
517
572
  delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
518
- /** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
573
+ /** One template package, whole: what it makes and needs, its instructions and every skill file it would give the agent (GET /templates/{template}). */
574
+ get: (template, options) => call("getTemplate", [template], undefined, undefined, options),
575
+ /** Import a template package from a public GitHub repository or upload it whole, or preview it (dry_run) (POST /templates/import). */
519
576
  import: (body, options) => call("importTemplate", [], body, undefined, options),
520
577
  /** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
521
578
  list: (options) => call("listTemplates", [], undefined, undefined, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.52",
3
+ "version": "0.1.0-beta.54",
4
4
  "description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -83,6 +83,6 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@parcha/agentrun-dsl": "0.1.0-beta.52"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.54"
87
87
  }
88
88
  }