@curviate/cli 0.50.0-next.4 → 0.50.0-next.5

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 (52) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +14 -0
  3. package/dist/{account-7KKJEHAM.js → account-WF27VTZF.js} +4 -4
  4. package/dist/{analytics-XBAFRYSC.js → analytics-Z7AE5JEI.js} +4 -4
  5. package/dist/{beta-consent-FP2QGN6M.js → beta-consent-VETVR6KP.js} +2 -2
  6. package/dist/{billing-AQ5VNIYA.js → billing-TYXPR6ZC.js} +3 -3
  7. package/dist/{chunk-COYDNWKF.js → chunk-5YQXZIFH.js} +1 -1
  8. package/dist/{chunk-Q5GVXN7Z.js → chunk-EHTSCHKM.js} +1 -1
  9. package/dist/{chunk-3SF6JIMA.js → chunk-GGJTO3PN.js} +1 -1
  10. package/dist/{chunk-JYCNHE72.js → chunk-HOS3JH4L.js} +1 -1
  11. package/dist/{chunk-56JSZNRW.js → chunk-I3HD5UFH.js} +1 -1
  12. package/dist/{chunk-2MWTZLAG.js → chunk-QLBNUWM2.js} +82 -32
  13. package/dist/{chunk-QL6VKMTA.js → chunk-RLZP2PL4.js} +9 -9
  14. package/dist/{chunk-FO54X4T2.js → chunk-UFHZGBFD.js} +1 -1
  15. package/dist/{chunk-RRSWFGXM.js → chunk-X62K5XDP.js} +3 -3
  16. package/dist/cli.js +21 -21
  17. package/dist/{comment-OZZGWNIV.js → comment-YAQSZNYS.js} +4 -4
  18. package/dist/{company-HM23JZT4.js → company-4K75VGBM.js} +4 -4
  19. package/dist/{config-KHXQZD6F.js → config-OESEJHKZ.js} +1 -1
  20. package/dist/{connect-HBQ4PLTS.js → connect-LZJQOYX2.js} +3 -3
  21. package/dist/{contact-325QZ5IB.js → contact-XE7HK4RI.js} +6 -6
  22. package/dist/{contact-groups-TXPUYQYC.js → contact-groups-IHF7GMNG.js} +6 -6
  23. package/dist/{contact-import-6G2DUCIN.js → contact-import-SSPUBHAH.js} +6 -6
  24. package/dist/{core-HXREJJCJ.js → core-524AMFTQ.js} +16 -16
  25. package/dist/{do-not-contact-CP6WKW5T.js → do-not-contact-LOUCA7JT.js} +3 -3
  26. package/dist/{doctor-GDBH2PH7.js → doctor-Q3434Q7N.js} +2 -2
  27. package/dist/{draft-IWI7E5VJ.js → draft-SOO3UJIO.js} +2 -2
  28. package/dist/{enrollment-2JVHRUNI.js → enrollment-YQMSDXVJ.js} +3 -3
  29. package/dist/{export-URIKCSIO.js → export-F6ZFNZ7L.js} +2 -2
  30. package/dist/{feed-ZBATBTD2.js → feed-YE4HOQ2M.js} +3 -3
  31. package/dist/{group-D43R5JQU.js → group-OCKSOR65.js} +3 -3
  32. package/dist/{inbox-6DTW4XJE.js → inbox-VGCODDRH.js} +3 -3
  33. package/dist/{inboxes-TFZQ57MK.js → inboxes-XHP6F3MQ.js} +3 -3
  34. package/dist/{incoming-RHKXXZQE.js → incoming-AA3MTRAG.js} +3 -3
  35. package/dist/{job-ARXJVJID.js → job-KFZNTBXT.js} +3 -3
  36. package/dist/{login-CH75UC6I.js → login-BD7JQXGX.js} +1 -1
  37. package/dist/{message-WTGOJZGL.js → message-IXUDKHBW.js} +4 -4
  38. package/dist/{motion-TQU6ZS6N.js → motion-QSANYJKR.js} +4 -4
  39. package/dist/{network-JUQA3X5S.js → network-A5M6SLRI.js} +3 -3
  40. package/dist/{notification-GN5Y25GL.js → notification-XRCV5XNX.js} +3 -3
  41. package/dist/{notifications-C5CBK574.js → notifications-SU7NKFGF.js} +3 -3
  42. package/dist/{post-HT2UWXXO.js → post-YWXQ2MVL.js} +4 -4
  43. package/dist/{profile-ZSBAZPFQ.js → profile-JVNJAAZ7.js} +4 -4
  44. package/dist/{recruiter-CSG4XSZ4.js → recruiter-34G433BX.js} +3 -3
  45. package/dist/{sales-nav-LDI7MTGU.js → sales-nav-34WK5HF6.js} +3 -3
  46. package/dist/{search-NLIL5SXI.js → search-43YUBUEH.js} +3 -3
  47. package/dist/{setup-UGELD4FZ.js → setup-RFSXQVN6.js} +2 -2
  48. package/dist/{team-LWDBXG4K.js → team-WSRM74PS.js} +3 -3
  49. package/dist/{tier-LOI4ZOVV.js → tier-JQYS4MMF.js} +3 -3
  50. package/dist/{unibox-IL6SRMK2.js → unibox-LFTLITLA.js} +11 -4
  51. package/dist/{webhook-TAXMQNEK.js → webhook-HX2NOPNE.js} +3 -3
  52. package/package.json +2 -2
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  resolveMemberOrMeProviderId,
9
9
  resolveMemberProviderId
10
- } from "./chunk-Q5GVXN7Z.js";
10
+ } from "./chunk-EHTSCHKM.js";
11
11
  import {
12
12
  AttachError,
13
13
  readAttachment,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-XDG3TOKG.js";
30
30
  import {
31
31
  requireAccount
32
- } from "./chunk-JYCNHE72.js";
32
+ } from "./chunk-HOS3JH4L.js";
33
33
  import {
34
34
  buildPreviewOutput
35
35
  } from "./chunk-TCUYH5GO.js";
@@ -42,7 +42,7 @@ import {
42
42
  readablePage,
43
43
  rejectPaginationModifiersWithoutAll,
44
44
  streamAll
45
- } from "./chunk-FO54X4T2.js";
45
+ } from "./chunk-UFHZGBFD.js";
46
46
  import {
47
47
  renderError,
48
48
  renderSuccess,
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  createClient,
54
54
  resolveEffectiveConfig
55
- } from "./chunk-56JSZNRW.js";
55
+ } from "./chunk-I3HD5UFH.js";
56
56
  import {
57
57
  GLOBAL_FLAGS,
58
58
  READ_SINGLE_FLAGS,
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-XDG3TOKG.js";
28
28
  import {
29
29
  requireAccount
30
- } from "./chunk-JYCNHE72.js";
30
+ } from "./chunk-HOS3JH4L.js";
31
31
  import {
32
32
  buildPreviewOutput
33
33
  } from "./chunk-TCUYH5GO.js";
@@ -39,7 +39,7 @@ import {
39
39
  readablePage,
40
40
  rejectPaginationModifiersWithoutAll,
41
41
  streamAll
42
- } from "./chunk-FO54X4T2.js";
42
+ } from "./chunk-UFHZGBFD.js";
43
43
  import {
44
44
  isJsonMode,
45
45
  renderError,
@@ -51,7 +51,7 @@ import {
51
51
  createClient,
52
52
  downloadBinary,
53
53
  resolveEffectiveConfig
54
- } from "./chunk-56JSZNRW.js";
54
+ } from "./chunk-I3HD5UFH.js";
55
55
  import {
56
56
  GLOBAL_FLAGS,
57
57
  NON_STREAM_FLAGS,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-6SBO4WXA.js";
20
20
  import {
21
21
  requireAccount
22
- } from "./chunk-JYCNHE72.js";
22
+ } from "./chunk-HOS3JH4L.js";
23
23
  import {
24
24
  buildPreviewOutput
25
25
  } from "./chunk-TCUYH5GO.js";
@@ -31,7 +31,7 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-FO54X4T2.js";
34
+ } from "./chunk-UFHZGBFD.js";
35
35
  import {
36
36
  renderError,
37
37
  renderSuccess,
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  createClient,
43
43
  resolveEffectiveConfig
44
- } from "./chunk-56JSZNRW.js";
44
+ } from "./chunk-I3HD5UFH.js";
45
45
  import {
46
46
  GLOBAL_FLAGS,
47
47
  READ_SINGLE_FLAGS,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-XDG3TOKG.js";
17
17
  import {
18
18
  requireAccount
19
- } from "./chunk-JYCNHE72.js";
19
+ } from "./chunk-HOS3JH4L.js";
20
20
  import {
21
21
  intFlag,
22
22
  intListFlag
@@ -28,7 +28,7 @@ import {
28
28
  readablePage,
29
29
  rejectPaginationModifiersWithoutAll,
30
30
  streamAll
31
- } from "./chunk-FO54X4T2.js";
31
+ } from "./chunk-UFHZGBFD.js";
32
32
  import {
33
33
  renderError,
34
34
  renderSuccess,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  createClient,
40
40
  resolveEffectiveConfig
41
- } from "./chunk-56JSZNRW.js";
41
+ } from "./chunk-I3HD5UFH.js";
42
42
  import {
43
43
  GLOBAL_FLAGS,
44
44
  readOnly
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-FO54X4T2.js";
4
+ } from "./chunk-UFHZGBFD.js";
5
5
  import "./chunk-QM57YDJE.js";
6
6
  import {
7
7
  readlineSync
@@ -12,7 +12,7 @@ import {
12
12
  isPlainObject,
13
13
  resolveEffectiveConfig,
14
14
  writeProfile
15
- } from "./chunk-56JSZNRW.js";
15
+ } from "./chunk-I3HD5UFH.js";
16
16
  import {
17
17
  GLOBAL_FLAGS,
18
18
  getTeamFlag
@@ -5,7 +5,7 @@ import {
5
5
  outputOpts,
6
6
  rootClient,
7
7
  usage
8
- } from "./chunk-3SF6JIMA.js";
8
+ } from "./chunk-GGJTO3PN.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -20,7 +20,7 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-FO54X4T2.js";
23
+ } from "./chunk-UFHZGBFD.js";
24
24
  import {
25
25
  renderSuccess,
26
26
  writeNdjsonItem
@@ -30,7 +30,7 @@ import {
30
30
  readConfig,
31
31
  resolveEffectiveConfig,
32
32
  writeProfile
33
- } from "./chunk-56JSZNRW.js";
33
+ } from "./chunk-I3HD5UFH.js";
34
34
  import {
35
35
  GLOBAL_FLAGS,
36
36
  READ_SINGLE_FLAGS,
@@ -3,14 +3,14 @@ import {
3
3
  fail,
4
4
  outputOpts,
5
5
  rootClient
6
- } from "./chunk-3SF6JIMA.js";
6
+ } from "./chunk-GGJTO3PN.js";
7
7
  import {
8
8
  readableObject
9
- } from "./chunk-FO54X4T2.js";
9
+ } from "./chunk-UFHZGBFD.js";
10
10
  import {
11
11
  renderSuccess
12
12
  } from "./chunk-QM57YDJE.js";
13
- import "./chunk-56JSZNRW.js";
13
+ import "./chunk-I3HD5UFH.js";
14
14
  import {
15
15
  READ_SINGLE_FLAGS,
16
16
  readOnly
@@ -9,7 +9,7 @@ import {
9
9
  outputOpts,
10
10
  rootClient,
11
11
  usage
12
- } from "./chunk-3SF6JIMA.js";
12
+ } from "./chunk-GGJTO3PN.js";
13
13
  import {
14
14
  buildPreviewOutput
15
15
  } from "./chunk-TCUYH5GO.js";
@@ -23,12 +23,12 @@ import {
23
23
  readablePage,
24
24
  rejectPaginationModifiersWithoutAll,
25
25
  streamAll
26
- } from "./chunk-FO54X4T2.js";
26
+ } from "./chunk-UFHZGBFD.js";
27
27
  import {
28
28
  renderSuccess,
29
29
  writeNdjsonItem
30
30
  } from "./chunk-QM57YDJE.js";
31
- import "./chunk-56JSZNRW.js";
31
+ import "./chunk-I3HD5UFH.js";
32
32
  import {
33
33
  GLOBAL_FLAGS,
34
34
  WRITE_SINGLE_FLAGS,
@@ -56,6 +56,13 @@ async function paged(f, params, fetch, human) {
56
56
  human(page);
57
57
  if (page["cursor"]) print(`next page: --cursor ${String(page["cursor"])}`);
58
58
  }
59
+ function chatWith(i) {
60
+ const g = i["group"];
61
+ if (!g) return i["counterpart"]?.["name"];
62
+ if (g["title"]) return g["title"];
63
+ const members = g["members"] ?? [];
64
+ return g["members_known"] && members.length ? members.map((m) => m["name"] ?? "Name pending").join(", ") : "Group chat";
65
+ }
59
66
  async function runList(c, f) {
60
67
  const q = {};
61
68
  if (f.accounts !== void 0) q["account_ids"] = listFlag("accounts", f.accounts);
@@ -74,7 +81,7 @@ async function runList(c, f) {
74
81
  const motion = (i) => i["motion_context"]?.["motion_name"];
75
82
  print(table(
76
83
  ["ACCOUNT", "CHAT", "WITH", "UNREAD", "LAST", "FROM", "MOTION", "TAGS"],
77
- page.items.map((i) => [i["account_id"], i["chat_id"], i["counterpart"]?.["name"], unread(i), i["last_activity_at"], i["last_message_from"], motion(i), i["tags"]?.join(", ")])
84
+ page.items.map((i) => [i["account_id"], i["chat_id"], chatWith(i), unread(i), i["last_activity_at"], i["last_message_from"], motion(i), i["tags"]?.join(", ")])
78
85
  ));
79
86
  if (typeof page["total"] === "number") print(`total: ${page["total"]} chats match`);
80
87
  });
@@ -5,7 +5,7 @@ import {
5
5
  outputOpts,
6
6
  rootClient,
7
7
  usage
8
- } from "./chunk-3SF6JIMA.js";
8
+ } from "./chunk-GGJTO3PN.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -20,7 +20,7 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-FO54X4T2.js";
23
+ } from "./chunk-UFHZGBFD.js";
24
24
  import {
25
25
  renderError,
26
26
  renderSuccess,
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  createClient,
32
32
  resolveEffectiveConfig
33
- } from "./chunk-56JSZNRW.js";
33
+ } from "./chunk-I3HD5UFH.js";
34
34
  import {
35
35
  GLOBAL_FLAGS,
36
36
  READ_SINGLE_FLAGS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.50.0-next.4",
3
+ "version": "0.50.0-next.5",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "clean": "rm -rf dist *.tsbuildinfo"
48
48
  },
49
49
  "dependencies": {
50
- "@curviate/sdk": "0.45.0-next.1",
50
+ "@curviate/sdk": "0.45.0-next.2",
51
51
  "citty": "^0.1.6",
52
52
  "open": "^10.1.0"
53
53
  },