@curviate/cli 0.56.0 → 0.57.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.
- package/CHANGELOG.md +36 -0
- package/dist/{account-ZF5NEMID.js → account-IRIYB2SG.js} +11 -11
- package/dist/{analytics-M7JWS67A.js → analytics-IRSCLVOL.js} +5 -5
- package/dist/{beta-consent-4Q2LZZQC.js → beta-consent-NQVGFZL3.js} +4 -4
- package/dist/{billing-LYPSX5SR.js → billing-TCTP44ZB.js} +58 -6
- package/dist/{chunk-UOWOKEB2.js → chunk-3B5M2RUN.js} +1 -1
- package/dist/{chunk-UWRWZG4N.js → chunk-3ZQNOKEK.js} +2 -2
- package/dist/{chunk-MWVTFTWV.js → chunk-5LGKZBAY.js} +5 -3
- package/dist/{chunk-XP6S6E55.js → chunk-6OT6TS7N.js} +2 -2
- package/dist/{chunk-J4SFOFMT.js → chunk-A6JGJGDF.js} +16 -16
- package/dist/{chunk-L3RJU7C3.js → chunk-AG6G3PRQ.js} +110 -13
- package/dist/{chunk-CRO7PJ4I.js → chunk-F7CLAS5Y.js} +2 -2
- package/dist/{chunk-MIOEYSBQ.js → chunk-OE4CY3ZL.js} +1 -1
- package/dist/{chunk-EI64VFBE.js → chunk-RTT75CXE.js} +44 -6
- package/dist/{chunk-7PLTQHNO.js → chunk-RXDG57B2.js} +1 -1
- package/dist/{chunk-RDKTHFQ6.js → chunk-SCUTAREU.js} +4 -0
- package/dist/{chunk-VEMK4MJM.js → chunk-VPFV7YV3.js} +5 -5
- package/dist/cli.js +32 -30
- package/dist/{comment-D6RSZTVK.js → comment-PNHEKGZX.js} +7 -7
- package/dist/{company-3Z6PXGTW.js → company-OUFF23SU.js} +20 -9
- package/dist/company-record-ULPDDB6L.js +128 -0
- package/dist/{config-VY5MCJMN.js → config-U6VDNL2P.js} +2 -2
- package/dist/{connect-G2RTLV7G.js → connect-ICNXC37R.js} +11 -11
- package/dist/{contact-QSLJCBDE.js → contact-K6RIVQWU.js} +9 -9
- package/dist/{contact-groups-OITAD73K.js → contact-groups-CNH2VB6A.js} +11 -11
- package/dist/{contact-import-LT7BKESC.js → contact-import-FK22UTN2.js} +10 -10
- package/dist/core-MPEBYNSL.js +46 -0
- package/dist/{do-not-contact-ZA7KS5WD.js → do-not-contact-BQHXNHTV.js} +13 -13
- package/dist/{doctor-JQT3DO6G.js → doctor-ZYPZF5BE.js} +21 -4
- package/dist/{domain-7EX4E34B.js → domain-HLOT6Y4A.js} +8 -8
- package/dist/{draft-7U6H4BPF.js → draft-JGQ36JSH.js} +4 -4
- package/dist/{enrollment-AZ6XGVVL.js → enrollment-CF634DB4.js} +9 -9
- package/dist/{examples-IGQJCSNL.js → examples-J4X5NEIE.js} +1 -1
- package/dist/{exit-codes-ZSOLAXQO.js → exit-codes-P2FLCKM7.js} +1 -1
- package/dist/{export-OYMQXL62.js → export-ZQLDQYUZ.js} +4 -4
- package/dist/{feed-M5D4SJW7.js → feed-RQHEDZVL.js} +6 -6
- package/dist/{group-UTC3YBKE.js → group-LRMG76FN.js} +6 -6
- package/dist/{inbox-VSGNHSLG.js → inbox-5RGG5RQG.js} +6 -6
- package/dist/{inboxes-23C2MJK4.js → inboxes-ZFY6ZP33.js} +6 -6
- package/dist/{incoming-QVPP32K7.js → incoming-3MJ4CP6H.js} +8 -8
- package/dist/{job-ZHVFFRWE.js → job-QFIUTHHT.js} +6 -6
- package/dist/{login-6OTNXEJZ.js → login-THXWX5HZ.js} +2 -2
- package/dist/{mailbox-HD2UXZCA.js → mailbox-54DPLNXA.js} +23 -16
- package/dist/{message-PIV77W47.js → message-DM5OUKQS.js} +6 -6
- package/dist/{motion-AHYF34DP.js → motion-NKOAK7NU.js} +10 -10
- package/dist/{network-RJHJFZEY.js → network-VKJUMZ2L.js} +8 -8
- package/dist/{notification-XGR4NT3S.js → notification-XW5J6KFA.js} +6 -6
- package/dist/{notifications-BHRWSHPR.js → notifications-USYOV54R.js} +17 -12
- package/dist/{post-Z7AVDDKA.js → post-M2G3BK4A.js} +7 -7
- package/dist/{profile-YZNBX2RP.js → profile-3SG64IEG.js} +11 -11
- package/dist/{recruiter-EXM4P7X7.js → recruiter-7OUGZ776.js} +6 -6
- package/dist/{sales-nav-CKDSEXV2.js → sales-nav-HHQLLM5C.js} +6 -6
- package/dist/{search-B7FB6674.js → search-5LMSLUH4.js} +14 -14
- package/dist/{setup-VZVPLJ4V.js → setup-6F4HYUSZ.js} +4 -4
- package/dist/signal-LVODDBOY.js +331 -0
- package/dist/{team-PYABBUHO.js → team-MSOPELF6.js} +62 -8
- package/dist/{tier-PRK4WQKR.js → tier-RXHOAQ6L.js} +6 -5
- package/dist/{unibox-ZNKX2EKL.js → unibox-UAA6WIGZ.js} +65 -12
- package/dist/{webhook-V74EV4E2.js → webhook-J2H7X766.js} +8 -8
- package/package.json +2 -2
- package/dist/core-RFTNNB6P.js +0 -46
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
buildPreviewOutput
|
|
11
|
-
} from "./chunk-TCUYH5GO.js";
|
|
8
|
+
} from "./chunk-3ZQNOKEK.js";
|
|
12
9
|
import {
|
|
13
10
|
intFlag
|
|
14
11
|
} from "./chunk-NNV2OYEF.js";
|
|
12
|
+
import {
|
|
13
|
+
buildPreviewOutput
|
|
14
|
+
} from "./chunk-TCUYH5GO.js";
|
|
15
15
|
import {
|
|
16
16
|
pageDelayFromFlags,
|
|
17
17
|
readCursorFlag,
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
24
24
|
import {
|
|
25
25
|
renderSuccess,
|
|
26
26
|
writeNdjsonItem
|
|
27
27
|
} from "./chunk-QM57YDJE.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-RXDG57B2.js";
|
|
29
29
|
import {
|
|
30
30
|
GLOBAL_FLAGS,
|
|
31
31
|
READ_SINGLE_FLAGS,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-QLKGOIWS.js";
|
|
35
35
|
import {
|
|
36
36
|
DESCRIPTIONS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5LGKZBAY.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
39
|
|
|
40
40
|
// src/commands/enrollment.ts
|
|
@@ -208,7 +208,7 @@ async function runBulk(c, f) {
|
|
|
208
208
|
}
|
|
209
209
|
const firstError = results.find((r) => r.outcome !== "ok");
|
|
210
210
|
if (firstError) {
|
|
211
|
-
const { getExitCode } = await import("./exit-codes-
|
|
211
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
212
212
|
process.stderr.write(`error: ${results.filter((r) => r.outcome !== "ok").length} of ${results.length} Enrollments were refused; each refusal is listed.
|
|
213
213
|
`);
|
|
214
214
|
process.exit(getExitCode(firstError.error?.code ?? "INTERNAL"));
|
|
@@ -475,7 +475,7 @@ var enrollmentCommand = defineCommand({
|
|
|
475
475
|
bulk: bulkCmd
|
|
476
476
|
},
|
|
477
477
|
async run() {
|
|
478
|
-
const { showHelp } = await import("./examples-
|
|
478
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
479
479
|
await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
|
|
480
480
|
}
|
|
481
481
|
});
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3ZQNOKEK.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
13
|
} from "./chunk-QM57YDJE.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RXDG57B2.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS,
|
|
19
19
|
READ_SINGLE_FLAGS,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-QLKGOIWS.js";
|
|
22
22
|
import {
|
|
23
23
|
DESCRIPTIONS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5LGKZBAY.js";
|
|
25
25
|
import "./chunk-ZYURL5VK.js";
|
|
26
26
|
|
|
27
27
|
// src/commands/export.ts
|
|
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
|
|
|
87
87
|
meta: { name: "export", description: DESCRIPTIONS.export },
|
|
88
88
|
subCommands: { get: getCmd, download: downloadCmd },
|
|
89
89
|
async run() {
|
|
90
|
-
const { showHelp } = await import("./examples-
|
|
90
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
91
91
|
await showHelp(exportCommand, ["curviate", "export"]);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F7CLAS5Y.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readablePage,
|
|
10
10
|
rejectPaginationModifiersWithoutAll,
|
|
11
11
|
streamAll
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
13
13
|
import {
|
|
14
14
|
renderError,
|
|
15
15
|
renderSuccess,
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createClient,
|
|
21
21
|
resolveEffectiveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RXDG57B2.js";
|
|
23
23
|
import {
|
|
24
24
|
GLOBAL_FLAGS,
|
|
25
25
|
readOnly
|
|
26
26
|
} from "./chunk-QLKGOIWS.js";
|
|
27
27
|
import {
|
|
28
28
|
DESCRIPTIONS
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5LGKZBAY.js";
|
|
30
30
|
import "./chunk-ZYURL5VK.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-SCUTAREU.js";
|
|
32
32
|
|
|
33
33
|
// src/commands/feed.ts
|
|
34
34
|
import { defineCommand } from "citty";
|
|
@@ -49,7 +49,7 @@ function resolveOutputOpts(flags) {
|
|
|
49
49
|
async function handleSdkError(err, outOpts, out) {
|
|
50
50
|
const { CurviateError } = await import("@curviate/sdk");
|
|
51
51
|
if (err instanceof CurviateError) {
|
|
52
|
-
const { getExitCode } = await import("./exit-codes-
|
|
52
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
53
53
|
renderError(err, outOpts, out);
|
|
54
54
|
process.exit(getExitCode(err));
|
|
55
55
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F7CLAS5Y.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readablePage,
|
|
14
14
|
rejectPaginationModifiersWithoutAll,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
17
17
|
import {
|
|
18
18
|
renderError,
|
|
19
19
|
renderSuccess,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
createClient,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RXDG57B2.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
} from "./chunk-QLKGOIWS.js";
|
|
32
32
|
import {
|
|
33
33
|
DESCRIPTIONS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5LGKZBAY.js";
|
|
35
35
|
import "./chunk-ZYURL5VK.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-SCUTAREU.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/group.ts
|
|
39
39
|
import { defineCommand } from "citty";
|
|
@@ -60,7 +60,7 @@ function resolveOutputOpts(flags) {
|
|
|
60
60
|
async function handleSdkError(err, outOpts, out) {
|
|
61
61
|
const { CurviateError } = await import("@curviate/sdk");
|
|
62
62
|
if (err instanceof CurviateError) {
|
|
63
|
-
const { getExitCode } = await import("./exit-codes-
|
|
63
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
64
64
|
renderError(err, outOpts, out);
|
|
65
65
|
process.exit(getExitCode(err));
|
|
66
66
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3ZPRFUX.js";
|
|
13
13
|
import {
|
|
14
14
|
requireAccount
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-F7CLAS5Y.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
28
28
|
import {
|
|
29
29
|
renderError,
|
|
30
30
|
renderSuccess,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
createClient,
|
|
36
36
|
resolveEffectiveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RXDG57B2.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
} from "./chunk-QLKGOIWS.js";
|
|
44
44
|
import {
|
|
45
45
|
DESCRIPTIONS
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-5LGKZBAY.js";
|
|
47
47
|
import "./chunk-ZYURL5VK.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-SCUTAREU.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/inbox.ts
|
|
51
51
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function validateInboxFolder(raw, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F7CLAS5Y.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readablePage,
|
|
11
11
|
rejectPaginationModifiersWithoutAll,
|
|
12
12
|
streamAll
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
14
14
|
import {
|
|
15
15
|
renderError,
|
|
16
16
|
renderSuccess,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createClient,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RXDG57B2.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
READ_SINGLE_FLAGS,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
} from "./chunk-QLKGOIWS.js";
|
|
29
29
|
import {
|
|
30
30
|
DESCRIPTIONS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5LGKZBAY.js";
|
|
32
32
|
import "./chunk-ZYURL5VK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-SCUTAREU.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/inboxes.ts
|
|
36
36
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
buildPreviewOutput
|
|
10
|
-
} from "./chunk-TCUYH5GO.js";
|
|
7
|
+
} from "./chunk-3ZQNOKEK.js";
|
|
11
8
|
import {
|
|
12
9
|
intFlag
|
|
13
10
|
} from "./chunk-NNV2OYEF.js";
|
|
11
|
+
import {
|
|
12
|
+
buildPreviewOutput
|
|
13
|
+
} from "./chunk-TCUYH5GO.js";
|
|
14
14
|
import {
|
|
15
15
|
pageDelayFromFlags,
|
|
16
16
|
readCursorFlag,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RXDG57B2.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-QLKGOIWS.js";
|
|
33
33
|
import {
|
|
34
34
|
DESCRIPTIONS
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5LGKZBAY.js";
|
|
36
36
|
import "./chunk-ZYURL5VK.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/incoming.ts
|
|
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
|
|
|
209
209
|
meta: { name: "incoming", description: DESCRIPTIONS.incoming },
|
|
210
210
|
subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
|
|
211
211
|
async run() {
|
|
212
|
-
const { showHelp } = await import("./examples-
|
|
212
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-JXDEV33Z.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F7CLAS5Y.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
33
33
|
import {
|
|
34
34
|
renderError,
|
|
35
35
|
renderSuccess,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
createClient,
|
|
41
41
|
downloadBinary,
|
|
42
42
|
resolveEffectiveConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RXDG57B2.js";
|
|
44
44
|
import {
|
|
45
45
|
GLOBAL_FLAGS,
|
|
46
46
|
READ_SINGLE_FLAGS,
|
|
@@ -49,9 +49,9 @@ import {
|
|
|
49
49
|
} from "./chunk-QLKGOIWS.js";
|
|
50
50
|
import {
|
|
51
51
|
DESCRIPTIONS
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-5LGKZBAY.js";
|
|
53
53
|
import "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-SCUTAREU.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/job.ts
|
|
57
57
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function requireEnum(value, allowed, flag, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
baseUrlProblem,
|
|
7
7
|
writeProfile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RXDG57B2.js";
|
|
9
9
|
import {
|
|
10
10
|
GLOBAL_FLAGS
|
|
11
11
|
} from "./chunk-QLKGOIWS.js";
|
|
12
12
|
import {
|
|
13
13
|
DESCRIPTIONS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5LGKZBAY.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultReadStdin,
|
|
17
17
|
resolveTextOrStdin
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
buildPreviewOutput
|
|
13
|
-
} from "./chunk-TCUYH5GO.js";
|
|
10
|
+
} from "./chunk-3ZQNOKEK.js";
|
|
14
11
|
import {
|
|
15
12
|
intFlag
|
|
16
13
|
} from "./chunk-NNV2OYEF.js";
|
|
14
|
+
import {
|
|
15
|
+
buildPreviewOutput
|
|
16
|
+
} from "./chunk-TCUYH5GO.js";
|
|
17
17
|
import {
|
|
18
18
|
pageDelayFromFlags,
|
|
19
19
|
readCursorFlag,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
readablePage,
|
|
23
23
|
rejectPaginationModifiersWithoutAll,
|
|
24
24
|
streamAll
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
26
26
|
import {
|
|
27
27
|
renderSuccess,
|
|
28
28
|
writeNdjsonItem
|
|
29
29
|
} from "./chunk-QM57YDJE.js";
|
|
30
30
|
import "./chunk-IB6ARI3R.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-RXDG57B2.js";
|
|
32
32
|
import {
|
|
33
33
|
GLOBAL_FLAGS,
|
|
34
34
|
READ_SINGLE_FLAGS,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-QLKGOIWS.js";
|
|
38
38
|
import {
|
|
39
39
|
DESCRIPTIONS
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5LGKZBAY.js";
|
|
41
41
|
import {
|
|
42
42
|
readFileFlag
|
|
43
43
|
} from "./chunk-RKNW4UX4.js";
|
|
@@ -45,7 +45,7 @@ import "./chunk-FDJMAF7D.js";
|
|
|
45
45
|
import "./chunk-ZYURL5VK.js";
|
|
46
46
|
import {
|
|
47
47
|
getExitCode
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SCUTAREU.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/mailbox.ts
|
|
51
51
|
import { defineCommand } from "citty";
|
|
@@ -100,7 +100,10 @@ async function runUpdate(c, f) {
|
|
|
100
100
|
}
|
|
101
101
|
if (f["daily-cap"] !== void 0) body["daily_cap"] = intFlag("daily-cap", f["daily-cap"]);
|
|
102
102
|
if (f["signature-file"] !== void 0) body["signature"] = (await readFileFlag("signature-file", f["signature-file"], { maxBytes: SIGNATURE_MAX_BYTES, others: f })).trimEnd();
|
|
103
|
-
if (
|
|
103
|
+
if (f["display-name"] !== void 0 && f["clear-display-name"]) usage("--display-name and --clear-display-name cannot be combined.");
|
|
104
|
+
if (f["display-name"] !== void 0) body["display_name"] = f["display-name"];
|
|
105
|
+
if (f["clear-display-name"]) body["display_name"] = null;
|
|
106
|
+
if (Object.keys(body).length === 0) usage("pass at least one of --sends-for, --daily-cap, --signature-file, --display-name, --clear-display-name.");
|
|
104
107
|
if (f.preview) return preview("mailboxes.update", { id }, body);
|
|
105
108
|
try {
|
|
106
109
|
renderSuccess(readableObject(await c.mailboxes.update(id, body)), outputOpts(f), process);
|
|
@@ -168,6 +171,7 @@ async function runConnect(c, f) {
|
|
|
168
171
|
if (!CONNECTIONS.includes(connection)) usage(`--connection takes one of ${CONNECTIONS.join(", ")}.`);
|
|
169
172
|
if (f["password-stdin"] && !PASSWORD_CONNECTIONS.includes(connection)) usage(`--password-stdin does not apply to ${connection}: the person signs in on the provider's page. It takes ${PASSWORD_CONNECTIONS.join(" or ")}.`);
|
|
170
173
|
const mailbox = { connection, address };
|
|
174
|
+
if (f["display-name"] !== void 0) mailbox["display_name"] = f["display-name"];
|
|
171
175
|
if (connection === "imap_smtp") {
|
|
172
176
|
const missing = SERVER_FLAGS.filter((k) => f[k] === void 0 || f[k].trim() === "");
|
|
173
177
|
if (missing.length > 0) usage(`--connection imap_smtp needs ${missing.map((k) => `--${k}`).join(", ")} (the settings from \`curviate mailbox discover\`, as the person confirmed them).`);
|
|
@@ -225,10 +229,10 @@ var getCmd = defineCommand({
|
|
|
225
229
|
var updateCmd = defineCommand({
|
|
226
230
|
meta: {
|
|
227
231
|
name: "update",
|
|
228
|
-
description: "Change one Mailbox: who it sends for (--sends-for an Account id, or shared), its daily cap (--daily-cap, 1 to 50, one cap across every Campaign and Account, a hard maximum for every caller)
|
|
232
|
+
description: "Change one Mailbox: who it sends for (--sends-for an Account id, or shared), its daily cap (--daily-cap, 1 to 50, one cap across every Campaign and Account, a hard maximum for every caller) its signature (--signature-file, plain text, up to 2,000 characters, available as {{mailbox.signature}}; nothing adds it to an email by itself) and its From name (--display-name, one line, up to 100 characters; --clear-display-name sends with the name of the Account it sends for). Flags you leave out stay as they are. A Mailbox linked to no Account sends nothing. Owners and Managers change any Mailbox; a Member only the ones they connected.",
|
|
229
233
|
risk: "write",
|
|
230
234
|
rules: {
|
|
231
|
-
changes: "The Mailbox's link, daily cap or
|
|
235
|
+
changes: "The Mailbox's link, daily cap, signature or From name, from the next email on. Open threads stay on it.",
|
|
232
236
|
visible_to: "Your Team; the signature reaches recipients where a step uses {{mailbox.signature}}.",
|
|
233
237
|
budget_rows: [],
|
|
234
238
|
retry: "Safe: the same flags leave the same Mailbox.",
|
|
@@ -240,16 +244,18 @@ var updateCmd = defineCommand({
|
|
|
240
244
|
examples: [
|
|
241
245
|
"curviate mailbox update mbx_YOUR_MAILBOX_ID --sends-for acc_YOUR_ACCOUNT_ID",
|
|
242
246
|
"curviate mailbox update mbx_YOUR_MAILBOX_ID --sends-for shared --daily-cap 40",
|
|
243
|
-
|
|
247
|
+
'curviate mailbox update mbx_YOUR_MAILBOX_ID --display-name "Ana from Acme"'
|
|
244
248
|
],
|
|
245
|
-
requires: ["at least one of --sends-for, --daily-cap, --signature-file."]
|
|
249
|
+
requires: ["at least one of --sends-for, --daily-cap, --signature-file, --display-name, --clear-display-name."]
|
|
246
250
|
},
|
|
247
251
|
args: {
|
|
248
252
|
...WRITE_SINGLE_FLAGS,
|
|
249
253
|
id: ID,
|
|
250
254
|
"sends-for": { type: "string", description: "An Account id (acc_..., it then sends only for that Account) or shared (any Account of your Team may send from it)." },
|
|
251
255
|
"daily-cap": { type: "string", description: "Emails a day across every Campaign and Account, 1 to 50. The API refuses a higher value (exit 2, the message names 50)." },
|
|
252
|
-
"signature-file": { type: "string", stdinArg: true, description: "A plain-text file with the sign-off: a path, or - to read it from stdin. Up to 2,000 characters." }
|
|
256
|
+
"signature-file": { type: "string", stdinArg: true, description: "A plain-text file with the sign-off: a path, or - to read it from stdin. Up to 2,000 characters." },
|
|
257
|
+
"display-name": { type: "string", description: "The name recipients see in From, one line, up to 100 characters." },
|
|
258
|
+
"clear-display-name": { type: "boolean", description: "Clear the From name: the Mailbox sends with the name of the Account it sends for." }
|
|
253
259
|
},
|
|
254
260
|
run: online(runUpdate)
|
|
255
261
|
});
|
|
@@ -322,7 +328,7 @@ var PASSWORD_STDIN = {
|
|
|
322
328
|
var discoverCmd = defineCommand({
|
|
323
329
|
meta: {
|
|
324
330
|
name: "discover",
|
|
325
|
-
description: "Find the IMAP and SMTP settings for an email address, to show the person and confirm before connecting. An address on Google or Microsoft answers with its connection. confirm_required marks settings that arrived unencrypted. Takes no password and the answer holds none.",
|
|
331
|
+
description: "Find the IMAP and SMTP settings for an email address, to show the person and confirm before connecting. An address on Google or Microsoft answers with its connection. confirm_required marks settings that arrived unencrypted or are a guess; a domain with nothing usable answers source none with no settings. Takes no password and the answer holds none.",
|
|
326
332
|
risk: "read",
|
|
327
333
|
seeAlso: ["curviate mailbox connect"],
|
|
328
334
|
examples: ["curviate mailbox discover anna@acme.example"]
|
|
@@ -362,6 +368,7 @@ var connectCmd = defineCommand({
|
|
|
362
368
|
address: ADDRESS,
|
|
363
369
|
connection: { type: "string", description: `How the Mailbox connects: ${CONNECTIONS.join(" | ")}.` },
|
|
364
370
|
"password-stdin": PASSWORD_STDIN,
|
|
371
|
+
"display-name": { type: "string", description: 'The name recipients see in From ("Name" <address>), one line, up to 100 characters. Default: the name of the Account the Mailbox sends for, else the bare address.' },
|
|
365
372
|
"imap-host": { type: "string", description: "imap_smtp only: the IMAP host." },
|
|
366
373
|
"imap-port": { type: "string", description: "imap_smtp only: the IMAP port (usually 993 with tls, 143 with starttls)." },
|
|
367
374
|
"imap-security": { type: "string", description: "imap_smtp only: tls (TLS from the first byte) or starttls. Never cleartext." },
|
|
@@ -394,7 +401,7 @@ var mailboxCommand = defineCommand({
|
|
|
394
401
|
meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
|
|
395
402
|
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd },
|
|
396
403
|
async run() {
|
|
397
|
-
const { showHelp } = await import("./examples-
|
|
404
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
398
405
|
await showHelp(mailboxCommand, ["curviate", "mailbox"]);
|
|
399
406
|
}
|
|
400
407
|
});
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VPFV7YV3.js";
|
|
17
17
|
import "./chunk-UWO2D4HW.js";
|
|
18
18
|
import "./chunk-UEAX6KUB.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-VHNF6OZD.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-F7CLAS5Y.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-OE4CY3ZL.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RXDG57B2.js";
|
|
26
26
|
import "./chunk-QLKGOIWS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-5LGKZBAY.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-SCUTAREU.js";
|
|
31
31
|
export {
|
|
32
32
|
guardBareMessageForm,
|
|
33
33
|
messageCommand,
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
} from "./chunk-VHNF6OZD.js";
|
|
6
6
|
import {
|
|
7
7
|
sendInChunks
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6OT6TS7N.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
rootClient,
|
|
14
14
|
usage
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
buildPreviewOutput
|
|
18
|
-
} from "./chunk-TCUYH5GO.js";
|
|
15
|
+
} from "./chunk-3ZQNOKEK.js";
|
|
19
16
|
import {
|
|
20
17
|
intFlag
|
|
21
18
|
} from "./chunk-NNV2OYEF.js";
|
|
19
|
+
import {
|
|
20
|
+
buildPreviewOutput
|
|
21
|
+
} from "./chunk-TCUYH5GO.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_PAGE_DELAY_MS,
|
|
24
24
|
pageDelayFromFlags,
|
|
@@ -28,12 +28,12 @@ import {
|
|
|
28
28
|
readablePage,
|
|
29
29
|
rejectPaginationModifiersWithoutAll,
|
|
30
30
|
streamAll
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OE4CY3ZL.js";
|
|
32
32
|
import {
|
|
33
33
|
renderSuccess,
|
|
34
34
|
writeNdjsonItem
|
|
35
35
|
} from "./chunk-QM57YDJE.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-RXDG57B2.js";
|
|
37
37
|
import {
|
|
38
38
|
GLOBAL_FLAGS,
|
|
39
39
|
READ_SINGLE_FLAGS,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-QLKGOIWS.js";
|
|
43
43
|
import {
|
|
44
44
|
DESCRIPTIONS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5LGKZBAY.js";
|
|
46
46
|
import {
|
|
47
47
|
documentSchema,
|
|
48
48
|
parseDocument,
|
|
@@ -1003,7 +1003,7 @@ var voiceClipCommand = defineCommand({
|
|
|
1003
1003
|
meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
|
|
1004
1004
|
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
1005
1005
|
async run() {
|
|
1006
|
-
const { showHelp } = await import("./examples-
|
|
1006
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
1007
1007
|
await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
@@ -1028,7 +1028,7 @@ var campaignCommand = defineCommand({
|
|
|
1028
1028
|
"voice-clip": voiceClipCommand
|
|
1029
1029
|
},
|
|
1030
1030
|
async run() {
|
|
1031
|
-
const { showHelp } = await import("./examples-
|
|
1031
|
+
const { showHelp } = await import("./examples-J4X5NEIE.js");
|
|
1032
1032
|
await showHelp(campaignCommand, ["curviate", "campaign"]);
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|