@fulldivevr/workcord-cli 2.17.0 → 3.0.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/README.md +5 -20
- package/dist/auth.js +8 -0
- package/dist/cli.js +2 -0
- package/dist/commands/machine.js +226 -0
- package/dist/config.js +53 -1
- package/dist/generated/commands/browser-assistance.js +65 -0
- package/dist/generated/commands/call-recordings.js +13 -0
- package/dist/generated/commands/client-config.js +18 -0
- package/dist/generated/commands/dashboard-actions.js +33 -0
- package/dist/generated/commands/internal.js +25 -0
- package/dist/generated/commands/local-folders.js +157 -0
- package/dist/generated/commands/machine-agents.js +134 -0
- package/dist/generated/commands/messages.js +35 -1
- package/dist/generated/commands/room-agents.js +6 -0
- package/dist/generated/commands/room-call.js +14 -0
- package/dist/generated/commands/rooms.js +6 -0
- package/dist/generated/commands/users.js +24 -0
- package/dist/generated/index.js +10 -0
- package/dist/machine/adapters/claude.js +183 -0
- package/dist/machine/adapters/codex.js +168 -0
- package/dist/machine/agents.js +30 -0
- package/dist/machine/chunks.js +57 -0
- package/dist/machine/handler.js +90 -0
- package/dist/machine/lock.js +36 -0
- package/dist/machine/pair.js +67 -0
- package/dist/machine/policy.js +36 -0
- package/dist/machine/relay.js +243 -0
- package/dist/machine/rotate.js +36 -0
- package/dist/machine/service.js +115 -0
- package/dist/machine/sessions.js +143 -0
- package/dist/machine/threads.js +68 -0
- package/package.json +4 -3
- package/dist/commands/hermes.js +0 -649
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { call } from "../../client.js";
|
|
2
|
+
import { actingUserId } from "../../auth.js";
|
|
3
|
+
import { getOrCreateGroup, hasSubcommand } from "../_helpers.js";
|
|
4
|
+
export function register(program) {
|
|
5
|
+
const group = getOrCreateGroup(program, "local-folders", "LocalFolders operations");
|
|
6
|
+
if (!hasSubcommand(group, "eligibility")) {
|
|
7
|
+
group
|
|
8
|
+
.command("eligibility")
|
|
9
|
+
.description("GET /api/v1/local-folders/eligibility/{roomId}")
|
|
10
|
+
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const as = actingUserId(program);
|
|
13
|
+
const path = `/api/v1/local-folders/eligibility/${encodeURIComponent(opts.roomId)}`;
|
|
14
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
15
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
if (!hasSubcommand(group, "create")) {
|
|
19
|
+
group
|
|
20
|
+
.command("create")
|
|
21
|
+
.description("POST /api/v1/local-folders")
|
|
22
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
23
|
+
.action(async (opts) => {
|
|
24
|
+
const as = actingUserId(program);
|
|
25
|
+
const path = `/api/v1/local-folders`;
|
|
26
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
27
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
28
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
if (!hasSubcommand(group, "list")) {
|
|
32
|
+
group
|
|
33
|
+
.command("list")
|
|
34
|
+
.description("GET /api/v1/local-folders")
|
|
35
|
+
.requiredOption("--device-id <value>", "string")
|
|
36
|
+
.action(async (opts) => {
|
|
37
|
+
const as = actingUserId(program);
|
|
38
|
+
const path = `/api/v1/local-folders`;
|
|
39
|
+
const query = {};
|
|
40
|
+
{
|
|
41
|
+
const v = opts.deviceId;
|
|
42
|
+
if (v !== undefined)
|
|
43
|
+
query["deviceId"] = v;
|
|
44
|
+
}
|
|
45
|
+
const data = await call({ method: "GET", path, asUserId: as, query });
|
|
46
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (!hasSubcommand(group, "mine")) {
|
|
50
|
+
group
|
|
51
|
+
.command("mine")
|
|
52
|
+
.description("GET /api/v1/local-folders/mine")
|
|
53
|
+
.action(async (opts) => {
|
|
54
|
+
const as = actingUserId(program);
|
|
55
|
+
const path = `/api/v1/local-folders/mine`;
|
|
56
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
57
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (!hasSubcommand(group, "room")) {
|
|
61
|
+
group
|
|
62
|
+
.command("room")
|
|
63
|
+
.description("GET /api/v1/local-folders/rooms/{roomId}")
|
|
64
|
+
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
65
|
+
.action(async (opts) => {
|
|
66
|
+
const as = actingUserId(program);
|
|
67
|
+
const path = `/api/v1/local-folders/rooms/${encodeURIComponent(opts.roomId)}`;
|
|
68
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
69
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (!hasSubcommand(group, "pending")) {
|
|
73
|
+
group
|
|
74
|
+
.command("pending")
|
|
75
|
+
.description("GET /api/v1/local-folder-requests")
|
|
76
|
+
.requiredOption("--device-id <value>", "string")
|
|
77
|
+
.action(async (opts) => {
|
|
78
|
+
const as = actingUserId(program);
|
|
79
|
+
const path = `/api/v1/local-folder-requests`;
|
|
80
|
+
const query = {};
|
|
81
|
+
{
|
|
82
|
+
const v = opts.deviceId;
|
|
83
|
+
if (v !== undefined)
|
|
84
|
+
query["deviceId"] = v;
|
|
85
|
+
}
|
|
86
|
+
const data = await call({ method: "GET", path, asUserId: as, query });
|
|
87
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (!hasSubcommand(group, "claim")) {
|
|
91
|
+
group
|
|
92
|
+
.command("claim")
|
|
93
|
+
.description("POST /api/v1/local-folder-requests/{requestId}/claim")
|
|
94
|
+
.requiredOption("--request-id <value>", "requestId (path param)")
|
|
95
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
96
|
+
.action(async (opts) => {
|
|
97
|
+
const as = actingUserId(program);
|
|
98
|
+
const path = `/api/v1/local-folder-requests/${encodeURIComponent(opts.requestId)}/claim`;
|
|
99
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
100
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
101
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (!hasSubcommand(group, "upload-session")) {
|
|
105
|
+
group
|
|
106
|
+
.command("upload-session")
|
|
107
|
+
.description("POST /api/v1/local-folder-requests/{requestId}/upload-session")
|
|
108
|
+
.requiredOption("--request-id <value>", "requestId (path param)")
|
|
109
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
110
|
+
.action(async (opts) => {
|
|
111
|
+
const as = actingUserId(program);
|
|
112
|
+
const path = `/api/v1/local-folder-requests/${encodeURIComponent(opts.requestId)}/upload-session`;
|
|
113
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
114
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
115
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (!hasSubcommand(group, "complete")) {
|
|
119
|
+
group
|
|
120
|
+
.command("complete")
|
|
121
|
+
.description("POST /api/v1/local-folder-requests/{requestId}/complete")
|
|
122
|
+
.requiredOption("--request-id <value>", "requestId (path param)")
|
|
123
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
124
|
+
.action(async (opts) => {
|
|
125
|
+
const as = actingUserId(program);
|
|
126
|
+
const path = `/api/v1/local-folder-requests/${encodeURIComponent(opts.requestId)}/complete`;
|
|
127
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
128
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
129
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (!hasSubcommand(group, "revoke-device")) {
|
|
133
|
+
group
|
|
134
|
+
.command("revoke-device")
|
|
135
|
+
.description("DELETE /api/v1/local-folders/device/{deviceId}")
|
|
136
|
+
.requiredOption("--device-id <value>", "deviceId (path param)")
|
|
137
|
+
.action(async (opts) => {
|
|
138
|
+
const as = actingUserId(program);
|
|
139
|
+
const path = `/api/v1/local-folders/device/${encodeURIComponent(opts.deviceId)}`;
|
|
140
|
+
const data = await call({ method: "DELETE", path, asUserId: as });
|
|
141
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
if (!hasSubcommand(group, "revoke")) {
|
|
145
|
+
group
|
|
146
|
+
.command("revoke")
|
|
147
|
+
.description("DELETE /api/v1/local-folders/{grantId}")
|
|
148
|
+
.requiredOption("--grant-id <value>", "grantId (path param)")
|
|
149
|
+
.action(async (opts) => {
|
|
150
|
+
const as = actingUserId(program);
|
|
151
|
+
const path = `/api/v1/local-folders/${encodeURIComponent(opts.grantId)}`;
|
|
152
|
+
const data = await call({ method: "DELETE", path, asUserId: as });
|
|
153
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=local-folders.js.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { call } from "../../client.js";
|
|
2
|
+
import { actingUserId } from "../../auth.js";
|
|
3
|
+
import { getOrCreateGroup, hasSubcommand } from "../_helpers.js";
|
|
4
|
+
export function register(program) {
|
|
5
|
+
const group = getOrCreateGroup(program, "machine-agents", "MachineAgents operations");
|
|
6
|
+
if (!hasSubcommand(group, "enroll")) {
|
|
7
|
+
group
|
|
8
|
+
.command("enroll")
|
|
9
|
+
.description("POST /api/v1/machine-agents")
|
|
10
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const as = actingUserId(program);
|
|
13
|
+
const path = `/api/v1/machine-agents`;
|
|
14
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
15
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
16
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (!hasSubcommand(group, "list")) {
|
|
20
|
+
group
|
|
21
|
+
.command("list")
|
|
22
|
+
.description("GET /api/v1/machine-agents")
|
|
23
|
+
.action(async (opts) => {
|
|
24
|
+
const as = actingUserId(program);
|
|
25
|
+
const path = `/api/v1/machine-agents`;
|
|
26
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
27
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (!hasSubcommand(group, "self")) {
|
|
31
|
+
group
|
|
32
|
+
.command("self")
|
|
33
|
+
.description("GET /api/v1/machine-agents/self")
|
|
34
|
+
.action(async (opts) => {
|
|
35
|
+
const as = actingUserId(program);
|
|
36
|
+
const path = `/api/v1/machine-agents/self`;
|
|
37
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
38
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (!hasSubcommand(group, "create-pairing")) {
|
|
42
|
+
group
|
|
43
|
+
.command("create-pairing")
|
|
44
|
+
.description("POST /api/v1/machine-agents/pairings")
|
|
45
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
46
|
+
.action(async (opts) => {
|
|
47
|
+
const as = actingUserId(program);
|
|
48
|
+
const path = `/api/v1/machine-agents/pairings`;
|
|
49
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
50
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
51
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (!hasSubcommand(group, "claim-pairing")) {
|
|
55
|
+
group
|
|
56
|
+
.command("claim-pairing")
|
|
57
|
+
.description("POST /api/v1/machine-agents/pairings/claim")
|
|
58
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
59
|
+
.action(async (opts) => {
|
|
60
|
+
const as = actingUserId(program);
|
|
61
|
+
const path = `/api/v1/machine-agents/pairings/claim`;
|
|
62
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
63
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
64
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (!hasSubcommand(group, "pairing-status")) {
|
|
68
|
+
group
|
|
69
|
+
.command("pairing-status")
|
|
70
|
+
.description("GET /api/v1/machine-agents/pairings/{pairingId}")
|
|
71
|
+
.requiredOption("--pairing-id <value>", "pairingId (path param)")
|
|
72
|
+
.action(async (opts) => {
|
|
73
|
+
const as = actingUserId(program);
|
|
74
|
+
const path = `/api/v1/machine-agents/pairings/${encodeURIComponent(opts.pairingId)}`;
|
|
75
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
76
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (!hasSubcommand(group, "rotate")) {
|
|
80
|
+
group
|
|
81
|
+
.command("rotate")
|
|
82
|
+
.description("POST /api/v1/machine-agents/{machineId}/rotate")
|
|
83
|
+
.requiredOption("--machine-id <value>", "machineId (path param)")
|
|
84
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
85
|
+
.action(async (opts) => {
|
|
86
|
+
const as = actingUserId(program);
|
|
87
|
+
const path = `/api/v1/machine-agents/${encodeURIComponent(opts.machineId)}/rotate`;
|
|
88
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
89
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
90
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (!hasSubcommand(group, "revoke")) {
|
|
94
|
+
group
|
|
95
|
+
.command("revoke")
|
|
96
|
+
.description("DELETE /api/v1/machine-agents/{machineId}")
|
|
97
|
+
.requiredOption("--machine-id <value>", "machineId (path param)")
|
|
98
|
+
.action(async (opts) => {
|
|
99
|
+
const as = actingUserId(program);
|
|
100
|
+
const path = `/api/v1/machine-agents/${encodeURIComponent(opts.machineId)}`;
|
|
101
|
+
const data = await call({ method: "DELETE", path, asUserId: as });
|
|
102
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (!hasSubcommand(group, "card")) {
|
|
106
|
+
group
|
|
107
|
+
.command("card")
|
|
108
|
+
.description("GET /api/v1/users/{userId}/machines/{machineId}/.well-known/agent.json")
|
|
109
|
+
.requiredOption("--user-id <value>", "userId (path param)")
|
|
110
|
+
.requiredOption("--machine-id <value>", "machineId (path param)")
|
|
111
|
+
.action(async (opts) => {
|
|
112
|
+
const as = actingUserId(program);
|
|
113
|
+
const path = `/api/v1/users/${encodeURIComponent(opts.userId)}/machines/${encodeURIComponent(opts.machineId)}/.well-known/agent.json`;
|
|
114
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
115
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (!hasSubcommand(group, "a2a")) {
|
|
119
|
+
group
|
|
120
|
+
.command("a2a")
|
|
121
|
+
.description("POST /api/v1/users/{userId}/machines/{machineId}/a2a")
|
|
122
|
+
.requiredOption("--user-id <value>", "userId (path param)")
|
|
123
|
+
.requiredOption("--machine-id <value>", "machineId (path param)")
|
|
124
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
125
|
+
.action(async (opts) => {
|
|
126
|
+
const as = actingUserId(program);
|
|
127
|
+
const path = `/api/v1/users/${encodeURIComponent(opts.userId)}/machines/${encodeURIComponent(opts.machineId)}/a2a`;
|
|
128
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
129
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
130
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=machine-agents.js.map
|
|
@@ -178,6 +178,18 @@ export function register(program) {
|
|
|
178
178
|
process.stdout.write(JSON.stringify(data) + "\n");
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
+
if (!hasSubcommand(group, "unread-anchor")) {
|
|
182
|
+
group
|
|
183
|
+
.command("unread-anchor")
|
|
184
|
+
.description("GET /api/v1/rooms/{roomId}/messages/unread-anchor")
|
|
185
|
+
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
186
|
+
.action(async (opts) => {
|
|
187
|
+
const as = actingUserId(program);
|
|
188
|
+
const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/messages/unread-anchor`;
|
|
189
|
+
const data = await call({ method: "GET", path, asUserId: as });
|
|
190
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
191
|
+
});
|
|
192
|
+
}
|
|
181
193
|
if (!hasSubcommand(group, "messages-around")) {
|
|
182
194
|
group
|
|
183
195
|
.command("messages-around")
|
|
@@ -204,10 +216,32 @@ export function register(program) {
|
|
|
204
216
|
.description("GET /api/v1/rooms/{roomId}/messages/{messageId}/a2ui")
|
|
205
217
|
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
206
218
|
.requiredOption("--message-id <value>", "messageId (path param)")
|
|
219
|
+
.option("--supported-components <value>", "string")
|
|
207
220
|
.action(async (opts) => {
|
|
208
221
|
const as = actingUserId(program);
|
|
209
222
|
const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/messages/${encodeURIComponent(opts.messageId)}/a2ui`;
|
|
210
|
-
const
|
|
223
|
+
const query = {};
|
|
224
|
+
{
|
|
225
|
+
const v = opts.supportedComponents;
|
|
226
|
+
if (v !== undefined)
|
|
227
|
+
query["supportedComponents"] = v;
|
|
228
|
+
}
|
|
229
|
+
const data = await call({ method: "GET", path, asUserId: as, query });
|
|
230
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
if (!hasSubcommand(group, "post-a2-uiaction")) {
|
|
234
|
+
group
|
|
235
|
+
.command("post-a2-uiaction")
|
|
236
|
+
.description("POST /api/v1/rooms/{roomId}/messages/{messageId}/a2ui/actions")
|
|
237
|
+
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
238
|
+
.requiredOption("--message-id <value>", "messageId (path param)")
|
|
239
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
240
|
+
.action(async (opts) => {
|
|
241
|
+
const as = actingUserId(program);
|
|
242
|
+
const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/messages/${encodeURIComponent(opts.messageId)}/a2ui/actions`;
|
|
243
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
244
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
211
245
|
process.stdout.write(JSON.stringify(data) + "\n");
|
|
212
246
|
});
|
|
213
247
|
}
|
|
@@ -366,6 +366,7 @@ export function register(program) {
|
|
|
366
366
|
.option("--card-description <value>", "string, ≤1000 chars")
|
|
367
367
|
.option("--enabled <true|false>", "boolean")
|
|
368
368
|
.option("--api-key <value>", "string")
|
|
369
|
+
.option("--dashboard-action-credential <json>", "object (JSON)")
|
|
369
370
|
.option("--reply-in-thread <true|false>", "boolean")
|
|
370
371
|
.addOption(new Option("--mode <value>", "string, enum").choices(["silent", "proactive", "suggest"]))
|
|
371
372
|
.option("--trigger-rule <value>", "string, ≤500 chars")
|
|
@@ -396,6 +397,11 @@ export function register(program) {
|
|
|
396
397
|
if (v !== undefined)
|
|
397
398
|
body["apiKey"] = v;
|
|
398
399
|
}
|
|
400
|
+
{
|
|
401
|
+
const v = opts.dashboardActionCredential === undefined ? undefined : JSON.parse(opts.dashboardActionCredential);
|
|
402
|
+
if (v !== undefined)
|
|
403
|
+
body["dashboardActionCredential"] = v;
|
|
404
|
+
}
|
|
399
405
|
{
|
|
400
406
|
const v = opts.replyInThread === undefined ? undefined : opts.replyInThread === "true";
|
|
401
407
|
if (v !== undefined)
|
|
@@ -17,6 +17,20 @@ export function register(program) {
|
|
|
17
17
|
process.stdout.write(JSON.stringify(data) + "\n");
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
if (!hasSubcommand(group, "decline")) {
|
|
21
|
+
group
|
|
22
|
+
.command("decline")
|
|
23
|
+
.description("POST /api/v1/rooms/{roomId}/call/decline")
|
|
24
|
+
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
25
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
26
|
+
.action(async (opts) => {
|
|
27
|
+
const as = actingUserId(program);
|
|
28
|
+
const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/call/decline`;
|
|
29
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
30
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
31
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
32
|
+
});
|
|
33
|
+
}
|
|
20
34
|
if (!hasSubcommand(group, "state")) {
|
|
21
35
|
group
|
|
22
36
|
.command("state")
|
|
@@ -396,6 +396,7 @@ export function register(program) {
|
|
|
396
396
|
.command("update-room")
|
|
397
397
|
.description("PATCH /api/v1/rooms/{roomId}")
|
|
398
398
|
.requiredOption("--room-id <value>", "roomId (path param)")
|
|
399
|
+
.option("--call-ring-enabled <true|false>", "boolean")
|
|
399
400
|
.option("--name <value>", "string, ≥1 chars")
|
|
400
401
|
.option("--briefing-time <value>", "string")
|
|
401
402
|
.option("--briefing-languages <comma-separated>", "array")
|
|
@@ -428,6 +429,11 @@ export function register(program) {
|
|
|
428
429
|
const as = actingUserId(program);
|
|
429
430
|
const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}`;
|
|
430
431
|
const body = {};
|
|
432
|
+
{
|
|
433
|
+
const v = opts.callRingEnabled === undefined ? undefined : opts.callRingEnabled === "true";
|
|
434
|
+
if (v !== undefined)
|
|
435
|
+
body["callRingEnabled"] = v;
|
|
436
|
+
}
|
|
431
437
|
{
|
|
432
438
|
const v = opts.name;
|
|
433
439
|
if (v !== undefined)
|
|
@@ -316,6 +316,30 @@ export function register(program) {
|
|
|
316
316
|
process.stdout.write(JSON.stringify(data) + "\n");
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
+
if (!hasSubcommand(group, "register-voip-token")) {
|
|
320
|
+
group
|
|
321
|
+
.command("register-voip-token")
|
|
322
|
+
.description("POST /api/v1/users/me/voip-token")
|
|
323
|
+
.option("--body <json>", "request body as JSON (no schema available)")
|
|
324
|
+
.action(async (opts) => {
|
|
325
|
+
const as = actingUserId(program);
|
|
326
|
+
const path = `/api/v1/users/me/voip-token`;
|
|
327
|
+
const body = opts.body ? JSON.parse(opts.body) : undefined;
|
|
328
|
+
const data = await call({ method: "POST", path, asUserId: as, body });
|
|
329
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
if (!hasSubcommand(group, "remove-voip-token")) {
|
|
333
|
+
group
|
|
334
|
+
.command("remove-voip-token")
|
|
335
|
+
.description("DELETE /api/v1/users/me/voip-token")
|
|
336
|
+
.action(async (opts) => {
|
|
337
|
+
const as = actingUserId(program);
|
|
338
|
+
const path = `/api/v1/users/me/voip-token`;
|
|
339
|
+
const data = await call({ method: "DELETE", path, asUserId: as });
|
|
340
|
+
process.stdout.write(JSON.stringify(data) + "\n");
|
|
341
|
+
});
|
|
342
|
+
}
|
|
319
343
|
if (!hasSubcommand(group, "get-public-user-public")) {
|
|
320
344
|
group
|
|
321
345
|
.command("get-public-user-public")
|
package/dist/generated/index.js
CHANGED
|
@@ -5,13 +5,16 @@ import { register as register_ambassador } from "./commands/ambassador.js";
|
|
|
5
5
|
import { register as register_apple_iap } from "./commands/apple-iap.js";
|
|
6
6
|
import { register as register_attribution } from "./commands/attribution.js";
|
|
7
7
|
import { register as register_auth } from "./commands/auth.js";
|
|
8
|
+
import { register as register_browser_assistance } from "./commands/browser-assistance.js";
|
|
8
9
|
import { register as register_call_recordings } from "./commands/call-recordings.js";
|
|
9
10
|
import { register as register_challenges } from "./commands/challenges.js";
|
|
11
|
+
import { register as register_client_config } from "./commands/client-config.js";
|
|
10
12
|
import { register as register_clips } from "./commands/clips.js";
|
|
11
13
|
import { register as register_contact_match } from "./commands/contact-match.js";
|
|
12
14
|
import { register as register_content_crawler } from "./commands/content-crawler.js";
|
|
13
15
|
import { register as register_credit_packs } from "./commands/credit-packs.js";
|
|
14
16
|
import { register as register_custom_agents } from "./commands/custom-agents.js";
|
|
17
|
+
import { register as register_dashboard_actions } from "./commands/dashboard-actions.js";
|
|
15
18
|
import { register as register_desktop_releases } from "./commands/desktop-releases.js";
|
|
16
19
|
import { register as register_discover } from "./commands/discover.js";
|
|
17
20
|
import { register as register_dm } from "./commands/dm.js";
|
|
@@ -31,6 +34,8 @@ import { register as register_jesuscord_admin } from "./commands/jesuscord-admin
|
|
|
31
34
|
import { register as register_join } from "./commands/join.js";
|
|
32
35
|
import { register as register_kits } from "./commands/kits.js";
|
|
33
36
|
import { register as register_live_kit_webhook } from "./commands/live-kit-webhook.js";
|
|
37
|
+
import { register as register_local_folders } from "./commands/local-folders.js";
|
|
38
|
+
import { register as register_machine_agents } from "./commands/machine-agents.js";
|
|
34
39
|
import { register as register_meetings } from "./commands/meetings.js";
|
|
35
40
|
import { register as register_message_folders } from "./commands/message-folders.js";
|
|
36
41
|
import { register as register_messages } from "./commands/messages.js";
|
|
@@ -82,13 +87,16 @@ export function registerAll(program) {
|
|
|
82
87
|
register_apple_iap(program);
|
|
83
88
|
register_attribution(program);
|
|
84
89
|
register_auth(program);
|
|
90
|
+
register_browser_assistance(program);
|
|
85
91
|
register_call_recordings(program);
|
|
86
92
|
register_challenges(program);
|
|
93
|
+
register_client_config(program);
|
|
87
94
|
register_clips(program);
|
|
88
95
|
register_contact_match(program);
|
|
89
96
|
register_content_crawler(program);
|
|
90
97
|
register_credit_packs(program);
|
|
91
98
|
register_custom_agents(program);
|
|
99
|
+
register_dashboard_actions(program);
|
|
92
100
|
register_desktop_releases(program);
|
|
93
101
|
register_discover(program);
|
|
94
102
|
register_dm(program);
|
|
@@ -108,6 +116,8 @@ export function registerAll(program) {
|
|
|
108
116
|
register_join(program);
|
|
109
117
|
register_kits(program);
|
|
110
118
|
register_live_kit_webhook(program);
|
|
119
|
+
register_local_folders(program);
|
|
120
|
+
register_machine_agents(program);
|
|
111
121
|
register_meetings(program);
|
|
112
122
|
register_message_folders(program);
|
|
113
123
|
register_messages(program);
|