@fulldivevr/workcord-cli 1.3.0 → 1.6.0

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.
Files changed (36) hide show
  1. package/README.md +5 -0
  2. package/dist/cli.js +4 -0
  3. package/dist/client.js +8 -1
  4. package/dist/commands/agent-skills.js +127 -0
  5. package/dist/commands/messages.js +150 -4
  6. package/dist/commands/reflections.js +96 -0
  7. package/dist/commands/rooms.js +7 -3
  8. package/dist/generated/commands/agent-feedback-admin.js +69 -0
  9. package/dist/generated/commands/ai.js +31 -0
  10. package/dist/generated/commands/call-recordings.js +56 -0
  11. package/dist/generated/commands/contact-match.js +20 -1
  12. package/dist/generated/commands/credit-packs.js +112 -0
  13. package/dist/generated/commands/custom-agents.js +483 -1
  14. package/dist/generated/commands/desktop-releases.js +2 -2
  15. package/dist/generated/commands/edge-sizecheck.js +25 -0
  16. package/dist/generated/commands/feed.js +6 -0
  17. package/dist/generated/commands/interactive-events.js +47 -0
  18. package/dist/generated/commands/internal.js +191 -0
  19. package/dist/generated/commands/meetings.js +12 -0
  20. package/dist/generated/commands/messages.js +15 -0
  21. package/dist/generated/commands/my-feedback.js +18 -0
  22. package/dist/generated/commands/pinned-messages.js +6 -0
  23. package/dist/generated/commands/proxy-nodes.js +83 -0
  24. package/dist/generated/commands/push.js +20 -0
  25. package/dist/generated/commands/reviews.js +96 -0
  26. package/dist/generated/commands/room-agents.js +243 -1
  27. package/dist/generated/commands/room-invites.js +12 -0
  28. package/dist/generated/commands/rooms.js +79 -1
  29. package/dist/generated/commands/search.js +1 -1
  30. package/dist/generated/commands/shadow-dispatch-push.js +20 -0
  31. package/dist/generated/commands/shadow-reflections.js +111 -0
  32. package/dist/generated/index.js +20 -0
  33. package/dist/http.js +6 -2
  34. package/dist/room-types.js +10 -0
  35. package/package.json +1 -1
  36. package/dist/generated/commands/health.js +0 -29
@@ -15,6 +15,48 @@ export function register(program) {
15
15
  process.stdout.write(JSON.stringify(data) + "\n");
16
16
  });
17
17
  }
18
+ if (!hasSubcommand(group, "set-cues")) {
19
+ group
20
+ .command("set-cues")
21
+ .description("POST /api/v1/rooms/{roomId}/call/cues")
22
+ .requiredOption("--room-id <value>", "roomId (path param)")
23
+ .option("--body <json>", "request body as JSON (no schema available)")
24
+ .action(async (opts) => {
25
+ const as = actingUserId(program);
26
+ const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/call/cues`;
27
+ const body = opts.body ? JSON.parse(opts.body) : undefined;
28
+ const data = await call({ method: "POST", path, asUserId: as, body });
29
+ process.stdout.write(JSON.stringify(data) + "\n");
30
+ });
31
+ }
32
+ if (!hasSubcommand(group, "set-voice-agent")) {
33
+ group
34
+ .command("set-voice-agent")
35
+ .description("POST /api/v1/rooms/{roomId}/call/voice-agent")
36
+ .requiredOption("--room-id <value>", "roomId (path param)")
37
+ .option("--body <json>", "request body as JSON (no schema available)")
38
+ .action(async (opts) => {
39
+ const as = actingUserId(program);
40
+ const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/call/voice-agent`;
41
+ const body = opts.body ? JSON.parse(opts.body) : undefined;
42
+ const data = await call({ method: "POST", path, asUserId: as, body });
43
+ process.stdout.write(JSON.stringify(data) + "\n");
44
+ });
45
+ }
46
+ if (!hasSubcommand(group, "silence-voice-agent")) {
47
+ group
48
+ .command("silence-voice-agent")
49
+ .description("POST /api/v1/rooms/{roomId}/call/voice-agent/silence")
50
+ .requiredOption("--room-id <value>", "roomId (path param)")
51
+ .option("--body <json>", "request body as JSON (no schema available)")
52
+ .action(async (opts) => {
53
+ const as = actingUserId(program);
54
+ const path = `/api/v1/rooms/${encodeURIComponent(opts.roomId)}/call/voice-agent/silence`;
55
+ const body = opts.body ? JSON.parse(opts.body) : undefined;
56
+ const data = await call({ method: "POST", path, asUserId: as, body });
57
+ process.stdout.write(JSON.stringify(data) + "\n");
58
+ });
59
+ }
18
60
  if (!hasSubcommand(group, "live-segments")) {
19
61
  group
20
62
  .command("live-segments")
@@ -59,5 +101,19 @@ export function register(program) {
59
101
  process.stdout.write(JSON.stringify(data) + "\n");
60
102
  });
61
103
  }
104
+ if (!hasSubcommand(group, "ask-cue-agent")) {
105
+ group
106
+ .command("ask-cue-agent")
107
+ .description("POST /api/v1/rooms/{roomId}/call/cues/ask")
108
+ .requiredOption("--room-id <value>", "roomId (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/rooms/${encodeURIComponent(opts.roomId)}/call/cues/ask`;
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
+ }
62
118
  }
63
119
  //# sourceMappingURL=call-recordings.js.map
@@ -20,10 +20,29 @@ export function register(program) {
20
20
  group
21
21
  .command("list")
22
22
  .description("GET /api/v1/users/me/contacts")
23
+ .option("--limit <value>", "string")
24
+ .option("--cursor <value>", "string")
25
+ .option("--search <value>", "string")
23
26
  .action(async (opts) => {
24
27
  const as = actingUserId(program);
25
28
  const path = `/api/v1/users/me/contacts`;
26
- const data = await call({ method: "GET", path, asUserId: as });
29
+ const query = {};
30
+ {
31
+ const v = opts.limit;
32
+ if (v !== undefined)
33
+ query["limit"] = v;
34
+ }
35
+ {
36
+ const v = opts.cursor;
37
+ if (v !== undefined)
38
+ query["cursor"] = v;
39
+ }
40
+ {
41
+ const v = opts.search;
42
+ if (v !== undefined)
43
+ query["search"] = v;
44
+ }
45
+ const data = await call({ method: "GET", path, asUserId: as, query });
27
46
  process.stdout.write(JSON.stringify(data) + "\n");
28
47
  });
29
48
  }
@@ -0,0 +1,112 @@
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, "credit-packs", "CreditPacks operations");
6
+ if (!hasSubcommand(group, "list")) {
7
+ group
8
+ .command("list")
9
+ .description("GET /api/v1/credit-packs")
10
+ .action(async (opts) => {
11
+ const as = actingUserId(program);
12
+ const path = `/api/v1/credit-packs`;
13
+ const data = await call({ method: "GET", path, asUserId: as });
14
+ process.stdout.write(JSON.stringify(data) + "\n");
15
+ });
16
+ }
17
+ if (!hasSubcommand(group, "verify-apple")) {
18
+ group
19
+ .command("verify-apple")
20
+ .description("POST /api/v1/credit-packs/apple/verify")
21
+ .requiredOption("--signed-transaction-jws <value>", "string")
22
+ .action(async (opts) => {
23
+ const as = actingUserId(program);
24
+ const path = `/api/v1/credit-packs/apple/verify`;
25
+ const body = {};
26
+ {
27
+ const v = opts.signedTransactionJws;
28
+ if (v !== undefined)
29
+ body["signedTransactionJws"] = v;
30
+ }
31
+ const data = await call({ method: "POST", path, asUserId: as, body });
32
+ process.stdout.write(JSON.stringify(data) + "\n");
33
+ });
34
+ }
35
+ if (!hasSubcommand(group, "verify-google")) {
36
+ group
37
+ .command("verify-google")
38
+ .description("POST /api/v1/credit-packs/google/verify")
39
+ .requiredOption("--purchase-token <value>", "string")
40
+ .requiredOption("--product-id <value>", "string")
41
+ .action(async (opts) => {
42
+ const as = actingUserId(program);
43
+ const path = `/api/v1/credit-packs/google/verify`;
44
+ const body = {};
45
+ {
46
+ const v = opts.purchaseToken;
47
+ if (v !== undefined)
48
+ body["purchaseToken"] = v;
49
+ }
50
+ {
51
+ const v = opts.productId;
52
+ if (v !== undefined)
53
+ body["productId"] = v;
54
+ }
55
+ const data = await call({ method: "POST", path, asUserId: as, body });
56
+ process.stdout.write(JSON.stringify(data) + "\n");
57
+ });
58
+ }
59
+ if (!hasSubcommand(group, "create-stripe-checkout")) {
60
+ group
61
+ .command("create-stripe-checkout")
62
+ .description("POST /api/v1/credit-packs/stripe/checkout-session")
63
+ .requiredOption("--product-id <value>", "string")
64
+ .action(async (opts) => {
65
+ const as = actingUserId(program);
66
+ const path = `/api/v1/credit-packs/stripe/checkout-session`;
67
+ const body = {};
68
+ {
69
+ const v = opts.productId;
70
+ if (v !== undefined)
71
+ body["productId"] = v;
72
+ }
73
+ const data = await call({ method: "POST", path, asUserId: as, body });
74
+ process.stdout.write(JSON.stringify(data) + "\n");
75
+ });
76
+ }
77
+ if (!hasSubcommand(group, "stripe-purchase")) {
78
+ group
79
+ .command("stripe-purchase")
80
+ .description("GET /api/v1/credit-packs/stripe/purchase/{sessionId}")
81
+ .requiredOption("--session-id <value>", "sessionId (path param)")
82
+ .action(async (opts) => {
83
+ const as = actingUserId(program);
84
+ const path = `/api/v1/credit-packs/stripe/purchase/${encodeURIComponent(opts.sessionId)}`;
85
+ const data = await call({ method: "GET", path, asUserId: as });
86
+ process.stdout.write(JSON.stringify(data) + "\n");
87
+ });
88
+ }
89
+ if (!hasSubcommand(group, "success-page")) {
90
+ group
91
+ .command("success-page")
92
+ .description("GET /api/v1/credit-packs/success")
93
+ .action(async (opts) => {
94
+ const as = actingUserId(program);
95
+ const path = `/api/v1/credit-packs/success`;
96
+ const data = await call({ method: "GET", path, asUserId: as });
97
+ process.stdout.write(JSON.stringify(data) + "\n");
98
+ });
99
+ }
100
+ if (!hasSubcommand(group, "cancel-page")) {
101
+ group
102
+ .command("cancel-page")
103
+ .description("GET /api/v1/credit-packs/cancel")
104
+ .action(async (opts) => {
105
+ const as = actingUserId(program);
106
+ const path = `/api/v1/credit-packs/cancel`;
107
+ const data = await call({ method: "GET", path, asUserId: as });
108
+ process.stdout.write(JSON.stringify(data) + "\n");
109
+ });
110
+ }
111
+ }
112
+ //# sourceMappingURL=credit-packs.js.map