@agentmc/api 0.1.1
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.
- package/LICENSE +21 -0
- package/README.md +197 -0
- package/bin/agentmc-api.mjs +8 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +6617 -0
- package/dist/cli.js.map +1 -0
- package/dist/generated/operations.d.ts +5039 -0
- package/dist/generated/operations.js +6366 -0
- package/dist/generated/operations.js.map +1 -0
- package/dist/index.d.ts +10618 -0
- package/dist/index.js +6517 -0
- package/dist/index.js.map +1 -0
- package/docs/operations/README.md +50 -0
- package/docs/operations/agentConnectedInstructions.md +127 -0
- package/docs/operations/agentHeartbeat.md +266 -0
- package/docs/operations/authenticateAgentRealtimeSocket.md +176 -0
- package/docs/operations/claimAgentRealtimeSession.md +168 -0
- package/docs/operations/closeAgentRealtimeSession.md +201 -0
- package/docs/operations/commentWorkspaceCalendarItem.md +163 -0
- package/docs/operations/connectAgent.md +199 -0
- package/docs/operations/createAgentBrief.md +215 -0
- package/docs/operations/createAgentRealtimeSignal.md +224 -0
- package/docs/operations/createBoard.md +160 -0
- package/docs/operations/createBoardColumn.md +163 -0
- package/docs/operations/createTask.md +195 -0
- package/docs/operations/createTaskComment.md +176 -0
- package/docs/operations/createWorkspaceCalendarItem.md +234 -0
- package/docs/operations/deleteAgentBrief.md +145 -0
- package/docs/operations/deleteBoard.md +126 -0
- package/docs/operations/deleteBoardColumn.md +155 -0
- package/docs/operations/deleteTask.md +126 -0
- package/docs/operations/deleteTaskComment.md +128 -0
- package/docs/operations/deleteWorkspaceCalendarItem.md +126 -0
- package/docs/operations/index.json +6358 -0
- package/docs/operations/listAgentBriefs.md +207 -0
- package/docs/operations/listAgentRealtimeRequestedSessions.md +166 -0
- package/docs/operations/listAgentRealtimeSignals.md +185 -0
- package/docs/operations/listAgents.md +162 -0
- package/docs/operations/listBoards.md +142 -0
- package/docs/operations/listHosts.md +156 -0
- package/docs/operations/listLogs.md +140 -0
- package/docs/operations/listNotifications.md +179 -0
- package/docs/operations/listTaskComments.md +170 -0
- package/docs/operations/listTasks.md +158 -0
- package/docs/operations/listTeamMembers.md +137 -0
- package/docs/operations/markAllNotificationsRead.md +107 -0
- package/docs/operations/markNotificationRead.md +160 -0
- package/docs/operations/showBoard.md +134 -0
- package/docs/operations/showHost.md +172 -0
- package/docs/operations/showTask.md +140 -0
- package/docs/operations/showWorkspaceCalendarItem.md +165 -0
- package/docs/operations/updateAgentBrief.md +257 -0
- package/docs/operations/updateBoard.md +169 -0
- package/docs/operations/updateBoardColumn.md +165 -0
- package/docs/operations/updateTask.md +175 -0
- package/docs/operations/updateTaskComment.md +174 -0
- package/docs/operations/updateWorkspaceCalendarItem.md +204 -0
- package/docs/operations/workspaceCalendar.md +185 -0
- package/examples/http/agentConnectedInstructions.ts +19 -0
- package/examples/http/agentHeartbeat.ts +67 -0
- package/examples/http/authenticateAgentRealtimeSocket.ts +24 -0
- package/examples/http/claimAgentRealtimeSession.ts +21 -0
- package/examples/http/closeAgentRealtimeSession.ts +28 -0
- package/examples/http/commentWorkspaceCalendarItem.ts +24 -0
- package/examples/http/connectAgent.ts +47 -0
- package/examples/http/createAgentBrief.ts +34 -0
- package/examples/http/createAgentRealtimeSignal.ts +33 -0
- package/examples/http/createBoard.ts +19 -0
- package/examples/http/createBoardColumn.ts +23 -0
- package/examples/http/createTask.ts +24 -0
- package/examples/http/createTaskComment.ts +24 -0
- package/examples/http/createWorkspaceCalendarItem.ts +31 -0
- package/examples/http/deleteAgentBrief.ts +19 -0
- package/examples/http/deleteBoard.ts +19 -0
- package/examples/http/deleteBoardColumn.ts +22 -0
- package/examples/http/deleteTask.ts +19 -0
- package/examples/http/deleteTaskComment.ts +20 -0
- package/examples/http/deleteWorkspaceCalendarItem.ts +19 -0
- package/examples/http/listAgentBriefs.ts +22 -0
- package/examples/http/listAgentRealtimeRequestedSessions.ts +22 -0
- package/examples/http/listAgentRealtimeSignals.ts +25 -0
- package/examples/http/listAgents.ts +20 -0
- package/examples/http/listBoards.ts +21 -0
- package/examples/http/listHosts.ts +21 -0
- package/examples/http/listLogs.ts +19 -0
- package/examples/http/listNotifications.ts +20 -0
- package/examples/http/listTaskComments.ts +22 -0
- package/examples/http/listTasks.ts +26 -0
- package/examples/http/listTeamMembers.ts +20 -0
- package/examples/http/markAllNotificationsRead.ts +15 -0
- package/examples/http/markNotificationRead.ts +20 -0
- package/examples/http/showBoard.ts +19 -0
- package/examples/http/showHost.ts +22 -0
- package/examples/http/showTask.ts +19 -0
- package/examples/http/showWorkspaceCalendarItem.ts +19 -0
- package/examples/http/updateAgentBrief.ts +47 -0
- package/examples/http/updateBoard.ts +25 -0
- package/examples/http/updateBoardColumn.ts +24 -0
- package/examples/http/updateTask.ts +25 -0
- package/examples/http/updateTaskComment.ts +23 -0
- package/examples/http/updateWorkspaceCalendarItem.ts +27 -0
- package/examples/http/workspaceCalendar.ts +27 -0
- package/package.json +64 -0
- package/spec/openapi.filtered.json +12925 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# deleteTask
|
|
2
|
+
|
|
3
|
+
- Method: `DELETE`
|
|
4
|
+
- Path: `/tasks/{task}`
|
|
5
|
+
- Summary: Delete a task.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
No additional description.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | In | Required | Description | Example |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| task | path | yes | Task identifier. | 1 |
|
|
17
|
+
|
|
18
|
+
## Request Example
|
|
19
|
+
|
|
20
|
+
None.
|
|
21
|
+
|
|
22
|
+
## Success Responses
|
|
23
|
+
|
|
24
|
+
### 204 (application/json)
|
|
25
|
+
No content.
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"data": {
|
|
30
|
+
"key": "value"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Error Responses
|
|
37
|
+
|
|
38
|
+
### 401 (application/json)
|
|
39
|
+
Missing or invalid credentials.
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"error": {
|
|
44
|
+
"code": "validation.failed",
|
|
45
|
+
"message": "Validation failed.",
|
|
46
|
+
"details": {
|
|
47
|
+
"fields": {
|
|
48
|
+
"title": [
|
|
49
|
+
"The title field is required."
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 403 (application/json)
|
|
58
|
+
Forbidden.
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"error": {
|
|
63
|
+
"code": "validation.failed",
|
|
64
|
+
"message": "Validation failed.",
|
|
65
|
+
"details": {
|
|
66
|
+
"fields": {
|
|
67
|
+
"title": [
|
|
68
|
+
"The title field is required."
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 404 (application/json)
|
|
77
|
+
Resource not found.
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"error": {
|
|
82
|
+
"code": "validation.failed",
|
|
83
|
+
"message": "Validation failed.",
|
|
84
|
+
"details": {
|
|
85
|
+
"fields": {
|
|
86
|
+
"title": [
|
|
87
|
+
"The title field is required."
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## SDK Example
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
100
|
+
|
|
101
|
+
const client = new AgentMCApi({
|
|
102
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const result = await client.operations.deleteTask({
|
|
106
|
+
"params": {
|
|
107
|
+
"path": {
|
|
108
|
+
"task": 1
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
if (result.error) {
|
|
114
|
+
console.error(result.status, result.error);
|
|
115
|
+
} else {
|
|
116
|
+
console.log(result.data);
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## cURL Example
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
curl -X DELETE "https://agentmc.ai/api/v1/tasks/1" \\
|
|
124
|
+
-H "Accept: application/json" \\
|
|
125
|
+
-H "X-Api-Key: $AGENTMC_API_KEY"
|
|
126
|
+
```
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# deleteTaskComment
|
|
2
|
+
|
|
3
|
+
- Method: `DELETE`
|
|
4
|
+
- Path: `/tasks/{task}/comments/{comment}`
|
|
5
|
+
- Summary: Delete one existing task comment.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
No additional description.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | In | Required | Description | Example |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| task | path | yes | Task identifier. | 1 |
|
|
17
|
+
| comment | path | yes | Task comment identifier. | 1 |
|
|
18
|
+
|
|
19
|
+
## Request Example
|
|
20
|
+
|
|
21
|
+
None.
|
|
22
|
+
|
|
23
|
+
## Success Responses
|
|
24
|
+
|
|
25
|
+
### 204 (application/json)
|
|
26
|
+
No content.
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"data": {
|
|
31
|
+
"key": "value"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Error Responses
|
|
38
|
+
|
|
39
|
+
### 401 (application/json)
|
|
40
|
+
Missing or invalid credentials.
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"error": {
|
|
45
|
+
"code": "validation.failed",
|
|
46
|
+
"message": "Validation failed.",
|
|
47
|
+
"details": {
|
|
48
|
+
"fields": {
|
|
49
|
+
"title": [
|
|
50
|
+
"The title field is required."
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 403 (application/json)
|
|
59
|
+
Forbidden.
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"error": {
|
|
64
|
+
"code": "validation.failed",
|
|
65
|
+
"message": "Validation failed.",
|
|
66
|
+
"details": {
|
|
67
|
+
"fields": {
|
|
68
|
+
"title": [
|
|
69
|
+
"The title field is required."
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 404 (application/json)
|
|
78
|
+
Resource not found.
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"error": {
|
|
83
|
+
"code": "validation.failed",
|
|
84
|
+
"message": "Validation failed.",
|
|
85
|
+
"details": {
|
|
86
|
+
"fields": {
|
|
87
|
+
"title": [
|
|
88
|
+
"The title field is required."
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## SDK Example
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
101
|
+
|
|
102
|
+
const client = new AgentMCApi({
|
|
103
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
const result = await client.operations.deleteTaskComment({
|
|
107
|
+
"params": {
|
|
108
|
+
"path": {
|
|
109
|
+
"task": 1,
|
|
110
|
+
"comment": 1
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
if (result.error) {
|
|
116
|
+
console.error(result.status, result.error);
|
|
117
|
+
} else {
|
|
118
|
+
console.log(result.data);
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## cURL Example
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
curl -X DELETE "https://agentmc.ai/api/v1/tasks/1/comments/1" \\
|
|
126
|
+
-H "Accept: application/json" \\
|
|
127
|
+
-H "X-Api-Key: $AGENTMC_API_KEY"
|
|
128
|
+
```
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# deleteWorkspaceCalendarItem
|
|
2
|
+
|
|
3
|
+
- Method: `DELETE`
|
|
4
|
+
- Path: `/calendar/items/{item}`
|
|
5
|
+
- Summary: Delete a calendar item.
|
|
6
|
+
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
No additional description.
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| Name | In | Required | Description | Example |
|
|
15
|
+
| --- | --- | --- | --- | --- |
|
|
16
|
+
| item | path | yes | Calendar item identifier. | 1 |
|
|
17
|
+
|
|
18
|
+
## Request Example
|
|
19
|
+
|
|
20
|
+
None.
|
|
21
|
+
|
|
22
|
+
## Success Responses
|
|
23
|
+
|
|
24
|
+
### 204 (application/json)
|
|
25
|
+
No content.
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"data": {
|
|
30
|
+
"key": "value"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Error Responses
|
|
37
|
+
|
|
38
|
+
### 401 (application/json)
|
|
39
|
+
Missing or invalid credentials.
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"error": {
|
|
44
|
+
"code": "validation.failed",
|
|
45
|
+
"message": "Validation failed.",
|
|
46
|
+
"details": {
|
|
47
|
+
"fields": {
|
|
48
|
+
"title": [
|
|
49
|
+
"The title field is required."
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 403 (application/json)
|
|
58
|
+
Forbidden.
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"error": {
|
|
63
|
+
"code": "validation.failed",
|
|
64
|
+
"message": "Validation failed.",
|
|
65
|
+
"details": {
|
|
66
|
+
"fields": {
|
|
67
|
+
"title": [
|
|
68
|
+
"The title field is required."
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 404 (application/json)
|
|
77
|
+
Resource not found.
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"error": {
|
|
82
|
+
"code": "validation.failed",
|
|
83
|
+
"message": "Validation failed.",
|
|
84
|
+
"details": {
|
|
85
|
+
"fields": {
|
|
86
|
+
"title": [
|
|
87
|
+
"The title field is required."
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## SDK Example
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import { AgentMCApi } from "@agentmc/api";
|
|
100
|
+
|
|
101
|
+
const client = new AgentMCApi({
|
|
102
|
+
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
const result = await client.operations.deleteWorkspaceCalendarItem({
|
|
106
|
+
"params": {
|
|
107
|
+
"path": {
|
|
108
|
+
"item": 1
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
if (result.error) {
|
|
114
|
+
console.error(result.status, result.error);
|
|
115
|
+
} else {
|
|
116
|
+
console.log(result.data);
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## cURL Example
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
curl -X DELETE "https://agentmc.ai/api/v1/calendar/items/1" \\
|
|
124
|
+
-H "Accept: application/json" \\
|
|
125
|
+
-H "X-Api-Key: $AGENTMC_API_KEY"
|
|
126
|
+
```
|