@curviate/cli 0.58.0 → 0.60.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 +30 -0
- package/dist/{account-GSL6BCNX.js → account-BGFQH7MZ.js} +10 -10
- package/dist/{analytics-4FUMJSMC.js → analytics-SLZF5CUV.js} +5 -5
- package/dist/{beta-consent-EC2QF6CM.js → beta-consent-WT5HRWAP.js} +4 -4
- package/dist/{billing-STRNXA4H.js → billing-EY6SVYLK.js} +5 -5
- package/dist/{chunk-KUVJM5CP.js → chunk-2NYGMKWI.js} +1 -1
- package/dist/{chunk-XXB4MAX3.js → chunk-3WXR6WEO.js} +10 -8
- package/dist/{chunk-7F6B7P32.js → chunk-4MGTH4FK.js} +9 -9
- package/dist/{chunk-5OAJ4D65.js → chunk-65UHJVXP.js} +2 -2
- package/dist/{chunk-KS4I4B3Z.js → chunk-7HOSWMH2.js} +5 -5
- package/dist/{chunk-CQHCPZ5I.js → chunk-AJVFJAOR.js} +1 -1
- package/dist/{chunk-EWSOIFG2.js → chunk-DLYVUDNF.js} +1 -1
- package/dist/{chunk-JXDEV33Z.js → chunk-EIPQUQK2.js} +1 -1
- package/dist/{chunk-3IL3D5IZ.js → chunk-ER5Y2SS5.js} +2 -2
- package/dist/{chunk-XDPU2YAF.js → chunk-GZMSX7CA.js} +4 -4
- package/dist/{chunk-MLZSXQZC.js → chunk-KQMTZIXC.js} +2 -2
- package/dist/{chunk-WITIJCUU.js → chunk-L6MTOKXI.js} +8 -8
- package/dist/{chunk-WGGZWJPO.js → chunk-OEMFSUEI.js} +14 -14
- package/dist/{chunk-PBJZQZPO.js → chunk-RQ6KL2ZU.js} +1 -1
- package/dist/cli.js +29 -29
- package/dist/{comment-MUELYZYN.js → comment-MIH3WEH2.js} +7 -7
- package/dist/{company-5N7CXORR.js → company-H6UDF2HF.js} +8 -8
- package/dist/{company-record-HWLTP4TV.js → company-record-L6DI7B6I.js} +10 -10
- package/dist/{config-PI7JMQ2L.js → config-C757QH2N.js} +2 -2
- package/dist/{connect-NNZOOPWV.js → connect-GRYHFCF3.js} +12 -12
- package/dist/{contact-VNG7HRCN.js → contact-5LYCPTQH.js} +8 -8
- package/dist/{contact-groups-6JF7VX6Q.js → contact-groups-GZML25CV.js} +16 -16
- package/dist/{contact-import-TMJWY2VD.js → contact-import-VM4RS475.js} +9 -9
- package/dist/core-3ZYU463V.js +46 -0
- package/dist/{do-not-contact-GDVIUNMT.js → do-not-contact-AWDCWC2D.js} +16 -16
- package/dist/{doctor-ZNAR5AZ2.js → doctor-ZW6M7YXP.js} +4 -4
- package/dist/{domain-62YUYVDW.js → domain-CW7G5NS2.js} +5 -5
- package/dist/{draft-ED6RL67K.js → draft-VUNBMMTW.js} +10 -10
- package/dist/{enrollment-LN3Z3RC5.js → enrollment-R2T4GBXR.js} +10 -10
- package/dist/{examples-5FJS47QF.js → examples-G4IC5TJU.js} +1 -1
- package/dist/{exit-codes-LQDMGDII.js → exit-codes-MMGNZCJ5.js} +1 -1
- package/dist/{export-S6D4FEAG.js → export-IYXSEGKH.js} +4 -4
- package/dist/{feed-AC7HWUCD.js → feed-3MMVHTB4.js} +6 -6
- package/dist/{group-6N37Q5ZS.js → group-24VZ4XIM.js} +6 -6
- package/dist/{inbox-JFRBROQ2.js → inbox-7N2JKEAC.js} +6 -6
- package/dist/{inboxes-IBZHZKSD.js → inboxes-EPD3JMO3.js} +6 -6
- package/dist/{incoming-YDRPPO24.js → incoming-T2PZOUBL.js} +8 -8
- package/dist/{job-CSRHIFZM.js → job-UD4FBCE2.js} +7 -7
- package/dist/{login-M7ZLOR2U.js → login-GMNDQODN.js} +2 -2
- package/dist/{mailbox-E2K3I2VH.js → mailbox-XC73FZQ6.js} +82 -21
- package/dist/{message-SX6RDGWP.js → message-XFAFZZGT.js} +6 -6
- package/dist/{motion-4HH3OFI6.js → motion-C7WTTC6E.js} +20 -20
- package/dist/{network-JQYLSQDH.js → network-T2H7S3GL.js} +6 -6
- package/dist/{notification-ZAQM463D.js → notification-GMFRGQLD.js} +6 -6
- package/dist/{notifications-N55F3DP3.js → notifications-55U3PGJN.js} +6 -6
- package/dist/{post-SIHHJX3P.js → post-LZ74DJDI.js} +7 -7
- package/dist/{profile-VBHX3QGP.js → profile-HCT4JEIA.js} +12 -12
- package/dist/{recruiter-7AGFKQPI.js → recruiter-UWZM3UMU.js} +7 -7
- package/dist/{sales-nav-ADVFBKWB.js → sales-nav-ZA7CBHRD.js} +6 -6
- package/dist/{search-THJFPGOH.js → search-ZPJLTGM4.js} +15 -15
- package/dist/{setup-D6D7SNND.js → setup-L7EC5V73.js} +4 -4
- package/dist/{signal-TGSF7WEP.js → signal-JVUGQOEV.js} +5 -5
- package/dist/{team-MVNHCWJP.js → team-45R6ZOR7.js} +5 -5
- package/dist/{tier-DAF7Y2HN.js → tier-LQ5UYRUE.js} +4 -4
- package/dist/{unibox-7B6B4SXB.js → unibox-RGMMGAFR.js} +58 -34
- package/dist/{webhook-NUVSTDXF.js → webhook-5MNKEBOQ.js} +5 -5
- package/package.json +2 -2
- package/dist/core-ZRJY3HTF.js +0 -46
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KQMTZIXC.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-2NYGMKWI.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-RQ6KL2ZU.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-GZMSX7CA.js";
|
|
32
32
|
import "./chunk-ZYURL5VK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DLYVUDNF.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-MMGNZCJ5.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-65UHJVXP.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2NYGMKWI.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RQ6KL2ZU.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-GZMSX7CA.js";
|
|
36
36
|
import "./chunk-ZYURL5VK.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/incoming.ts
|
|
@@ -106,7 +106,7 @@ var FIELDS = {
|
|
|
106
106
|
var createCmd = defineCommand({
|
|
107
107
|
meta: {
|
|
108
108
|
name: "create",
|
|
109
|
-
description: "Create an incoming event: a private URL, printed once, that any tool posts to. Treat the URL like a password. Needs
|
|
109
|
+
description: "Create an incoming event: a private URL, printed once, that any tool posts to. Treat the URL like a password. Needs a subscription.",
|
|
110
110
|
risk: "write",
|
|
111
111
|
rules: {
|
|
112
112
|
changes: "Creates the URL; posts to it move the matching Enrollments waiting for the event.",
|
|
@@ -171,7 +171,7 @@ var deleteCmd = defineCommand({
|
|
|
171
171
|
var rotateCmd = defineCommand({
|
|
172
172
|
meta: {
|
|
173
173
|
name: "rotate",
|
|
174
|
-
description: "Replace the URL's secret: the new URL is printed once and the old one stops working at once. Needs
|
|
174
|
+
description: "Replace the URL's secret: the new URL is printed once and the old one stops working at once. Needs a subscription.",
|
|
175
175
|
risk: "high",
|
|
176
176
|
rules: {
|
|
177
177
|
changes: "A new URL; posts to the old one answer 404.",
|
|
@@ -191,7 +191,7 @@ var rotateCmd = defineCommand({
|
|
|
191
191
|
var captureCmd = defineCommand({
|
|
192
192
|
meta: {
|
|
193
193
|
name: "capture",
|
|
194
|
-
description: "Capture the next post as the sample: its field paths (never its values' meaning) become the shape the match paths and Sequences are checked against. Needs
|
|
194
|
+
description: "Capture the next post as the sample: its field paths (never its values' meaning) become the shape the match paths and Sequences are checked against. Needs a subscription.",
|
|
195
195
|
risk: "write",
|
|
196
196
|
rules: { changes: "The next post's shape replaces the captured sample.", visible_to: "Your Team.", budget_rows: [], retry: "Safe to repeat: it waits for the next post.", undo: "Capture again." },
|
|
197
197
|
errors: EDITOR,
|
|
@@ -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-G4IC5TJU.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3ZPRFUX.js";
|
|
13
13
|
import {
|
|
14
14
|
slimJob
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EIPQUQK2.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KQMTZIXC.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-2NYGMKWI.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-RQ6KL2ZU.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-GZMSX7CA.js";
|
|
53
53
|
import "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-DLYVUDNF.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-MMGNZCJ5.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-RQ6KL2ZU.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-GZMSX7CA.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultReadStdin,
|
|
17
17
|
resolveTextOrStdin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
confirmMoney
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4MGTH4FK.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveSecret
|
|
7
7
|
} from "./chunk-DENWYJK2.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
outputOpts,
|
|
12
12
|
rootClient,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-65UHJVXP.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
readablePage,
|
|
27
27
|
rejectPaginationModifiersWithoutAll,
|
|
28
28
|
streamAll
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2NYGMKWI.js";
|
|
30
30
|
import {
|
|
31
31
|
renderSuccess,
|
|
32
32
|
writeNdjsonItem
|
|
33
33
|
} from "./chunk-QM57YDJE.js";
|
|
34
34
|
import "./chunk-IB6ARI3R.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
READ_SINGLE_FLAGS,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-QLKGOIWS.js";
|
|
42
42
|
import {
|
|
43
43
|
DESCRIPTIONS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GZMSX7CA.js";
|
|
45
45
|
import {
|
|
46
46
|
readFileFlag
|
|
47
47
|
} from "./chunk-JKOQX46J.js";
|
|
@@ -49,13 +49,12 @@ import "./chunk-FDJMAF7D.js";
|
|
|
49
49
|
import "./chunk-ZYURL5VK.js";
|
|
50
50
|
import {
|
|
51
51
|
getExitCode
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-DLYVUDNF.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/mailbox.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
56
56
|
var TEST_BODY_MAX_BYTES = 64 * 1024;
|
|
57
57
|
var PURCHASE_STATES = ["awaiting_dns", "provisioning", "active", "cancelled"];
|
|
58
|
-
var MAILBOX_PRICE_CENTS = 500;
|
|
59
58
|
var STATES = ["connected", "ramping", "paused", "paused_by_bounces", "paused_by_provider", "reconnect_needed"];
|
|
60
59
|
var SIGNATURE_MAX_BYTES = 64 * 1024;
|
|
61
60
|
var online = (fn) => async ({ args }) => {
|
|
@@ -165,6 +164,29 @@ function parseMailboxSpec(raw) {
|
|
|
165
164
|
return { local_part: raw.slice(0, at), display_name: name, ...sendsFor ? { sends_for: sendsFor } : {} };
|
|
166
165
|
}
|
|
167
166
|
var BUY_PAST_CAP = "This order would take your Team past its cap on Mailboxes from Curviate. Nothing was ordered. Only a Team Owner raises the cap, in the dashboard.";
|
|
167
|
+
var money = (minor, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(minor / 100);
|
|
168
|
+
function priceLine(p) {
|
|
169
|
+
const n = p.mailboxes ?? 0;
|
|
170
|
+
const cur = p.currency ?? "usd";
|
|
171
|
+
const per = p.billing_period === "annual" ? "a year" : "a month";
|
|
172
|
+
const head = p.charged === "never" ? `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: nothing is charged for your Team.` : `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: ${money(p.amount ?? 0, cur)} ${per} (${money(p.unit_amount ?? 0, cur)} each)${p.plus_tax ? ", plus tax where it applies" : ""}.`;
|
|
173
|
+
const when = p.charged === "when_records_found" ? ` Charged the day the records are found at your domain${p.prorated ? ", for the rest of your billing year" : ""}, then each year.` : p.charged === "with_next_invoice" ? ` Added to your next invoice${p.prorated ? ", prorated for the rest of this month" : ""}, then each month.` : "";
|
|
174
|
+
const waits = p.charge_waits_for === "payment" ? " The charge waits until your Team's open payment is settled." : p.charge_waits_for === "subscription" ? " The charge waits until your Team has a subscription." : "";
|
|
175
|
+
const closed = p.orderable === false ? ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "available once your Team pays (a Team on a trial, without a paid plan, or with a payment past due)" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.` : "";
|
|
176
|
+
return head + when + waits + closed;
|
|
177
|
+
}
|
|
178
|
+
async function runQuote(c, f) {
|
|
179
|
+
const n = /^\d+$/.test(f.count ?? "") ? Number(f.count) : NaN;
|
|
180
|
+
if (!(n >= 1 && n <= 50)) usage("the count must be a whole number from 1 to 50: how many Mailboxes to price.");
|
|
181
|
+
if (f.preview) return preview("mailboxes.purchases.quote", { mailboxes: n });
|
|
182
|
+
try {
|
|
183
|
+
const q = await c.mailboxes.purchases.quote(n);
|
|
184
|
+
renderSuccess(readableObject(q), outputOpts(f), process);
|
|
185
|
+
process.stderr.write(priceLine(q) + "\n");
|
|
186
|
+
} catch (err) {
|
|
187
|
+
await fail(err, f);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
168
190
|
async function runBuy(c, f) {
|
|
169
191
|
const domain = f.domain ?? "";
|
|
170
192
|
if (domain.trim() === "") usage("--domain is required: the domain the Mailboxes send from, one your Team owns.");
|
|
@@ -172,12 +194,32 @@ async function runBuy(c, f) {
|
|
|
172
194
|
if (specs.length === 0) usage('pass at least one --mailbox local:"Name", up to 50.');
|
|
173
195
|
if (specs.length > 50) usage("at most 50 --mailbox in one order.");
|
|
174
196
|
const body = { domain, mailboxes: specs.map(parseMailboxSpec) };
|
|
197
|
+
const expect = f["expect-amount"] === void 0 ? void 0 : intFlag("expect-amount", f["expect-amount"], 0);
|
|
175
198
|
if (f.preview) return preview("mailboxes.purchases.create", {}, body);
|
|
176
199
|
const n = specs.length;
|
|
177
|
-
|
|
178
|
-
if (!await confirmMoney(f, `Order ${n} Mailbox${n === 1 ? "" : "es"} on ${domain} at ${monthly} a month? Nothing is charged until the records are found at your domain.`, "Each Mailbox costs $5 a month.")) return;
|
|
200
|
+
let agreed = expect;
|
|
179
201
|
try {
|
|
180
|
-
|
|
202
|
+
if (!f.yes) {
|
|
203
|
+
if (!process.stdin.isTTY) usage(`this orders Mailboxes that cost money: pass --yes to confirm (no terminal to ask at). Read the price first with: curviate mailbox quote ${n}`);
|
|
204
|
+
const q = await c.mailboxes.purchases.quote(n);
|
|
205
|
+
agreed ?? (agreed = q.amount);
|
|
206
|
+
if (!await confirmMoney(f, `Order on ${domain}? ${priceLine(q)}`)) return;
|
|
207
|
+
}
|
|
208
|
+
const order = await c.mailboxes.purchases.create(body);
|
|
209
|
+
renderSuccess(readableObject(order), outputOpts(f), process);
|
|
210
|
+
if (agreed !== void 0 && order.price?.amount !== agreed) {
|
|
211
|
+
process.stderr.write(`error [PRICE_CHANGED] This order costs ${order.price ? priceLine(order.price) : "an unstated price"} That is not the ${agreed} (minor units) agreed to, so the order is being cancelled.
|
|
212
|
+
`);
|
|
213
|
+
try {
|
|
214
|
+
await c.mailboxes.purchases.cancel(order.id);
|
|
215
|
+
process.stderr.write(`Cancelled ${order.id}; nothing was charged. Read the price again with: curviate mailbox quote ${n}
|
|
216
|
+
`);
|
|
217
|
+
} catch (cancelErr) {
|
|
218
|
+
process.stderr.write(`Cancelling ${order.id} failed: ${cancelErr.message} Do not order again; read it with: curviate mailbox purchase get ${order.id}
|
|
219
|
+
`);
|
|
220
|
+
}
|
|
221
|
+
process.exit(11);
|
|
222
|
+
}
|
|
181
223
|
} catch (err) {
|
|
182
224
|
const { CurviateError } = await import("@curviate/sdk");
|
|
183
225
|
if (err instanceof CurviateError && err.code === "SPENDING_CAP_REACHED") {
|
|
@@ -189,6 +231,7 @@ async function runBuy(c, f) {
|
|
|
189
231
|
}
|
|
190
232
|
}
|
|
191
233
|
function purchaseNote(order) {
|
|
234
|
+
if (order.charge_unknown === true) return "We are checking whether this order was charged. If it was, the charge is given back in full.";
|
|
192
235
|
if (order.state === "provisioning") return `The Mailboxes are being set up. If that fails, the charge is undone in full and the order ends cancelled (host_failed). Read it again later: curviate mailbox purchase get ${String(order.id ?? "<id>")}. Do not order again meanwhile.`;
|
|
193
236
|
if (order.state === "cancelled" && order.reason === "host_failed") return "Setting up these Mailboxes failed, so the charge was undone in full. Nothing to retry.";
|
|
194
237
|
return null;
|
|
@@ -333,7 +376,7 @@ var listCmd = defineCommand({
|
|
|
333
376
|
var getCmd = defineCommand({
|
|
334
377
|
meta: {
|
|
335
378
|
name: "get",
|
|
336
|
-
description: "One Mailbox: address, state, Sends for and its suggestion, daily cap (and cap_lowered_to when a spam reading lowered it), sent today, bounces over 7 days, signature, which Accounts and Campaigns used it, warm_up (state, day, reason: paused_by_curviate, reconnect_needed, trial, app_password, warm_up_app, allowance, address_check: the address is being confirmed, nothing to do, or address_unconfirmed: check the connection settings, Curviate tries again), reputation (0 to 100, or null
|
|
379
|
+
description: "One Mailbox: address, state, Sends for and its suggestion, daily cap (and cap_lowered_to when a spam reading lowered it), sent today, bounces over 7 days, signature, which Accounts and Campaigns used it, warm_up (state: off, warming (day N; past its days it stays warming until ready), ready (the warm-up's bar is met; sending does not change) or waiting; day; reason: paused_by_curviate, reconnect_needed, trial, app_password, warm_up_app, allowance, address_check: the address is being confirmed, nothing to do, or address_unconfirmed: check the connection settings, Curviate tries again), reputation (0 to 100, or null: with reputation_reason warm_up_off there is no score because warm-up is off, else gathering, never 0), and landing: where its own warm-up mail lands per receiving provider over 7 days (google, microsoft, other: inbox, partly_spam, spam, or gathering while there is not enough to say; landing.reason warm_up_off: warm-up is off, nothing to read). Every role reads.",
|
|
337
380
|
risk: "read",
|
|
338
381
|
errors: NOT_FOUND,
|
|
339
382
|
seeAlso: ["curviate mailbox list", "curviate mailbox update"],
|
|
@@ -420,7 +463,7 @@ var resumeCmd = defineCommand({
|
|
|
420
463
|
var removeCmd = defineCommand({
|
|
421
464
|
meta: {
|
|
422
465
|
name: "remove",
|
|
423
|
-
description: `Remove a Mailbox and delete its stored credentials in one step. Changes no seat count. Connect it again to use the address afterwards. A Mailbox from Curviate is an Owner's to remove: it is deleted with its mail, and its
|
|
466
|
+
description: `Remove a Mailbox and delete its stored credentials in one step. Changes no seat count. Connect it again to use the address afterwards. A Mailbox from Curviate is an Owner's to remove: it is deleted with its mail, and its charge stops at the end of the billing period. MAILBOX_STATE_CONFLICT (exit 8) "Too many Mailbox changes are still settling with billing" changed nothing: the person may try again later; never resend it on your own.`,
|
|
424
467
|
risk: "high",
|
|
425
468
|
rules: {
|
|
426
469
|
changes: "The Mailbox and its credentials are deleted; emails due from it are not sent. A Mailbox from Curviate is deleted with its mail; its charge ends at the period's end.",
|
|
@@ -572,10 +615,10 @@ var testsCmd = defineCommand({
|
|
|
572
615
|
var buyCmd = defineCommand({
|
|
573
616
|
meta: {
|
|
574
617
|
name: "buy",
|
|
575
|
-
description: "Order 1 to 50 Mailboxes from Curviate on one domain your Team owns,
|
|
618
|
+
description: "Order 1 to 50 Mailboxes from Curviate on one domain your Team owns, warm-up included. The price is your Team's, read from the server: `curviate mailbox quote <count>`, which a terminal prompt also shows; --expect-amount <amount> (the quote's `amount`) cancels the order at once when its `price` differs (exit 11). The order waits in awaiting_dns until the records it lists (mx, spf, dkim, dmarc, verify, and tracking, which is optional) are found at your domain, each added exactly as shown; nothing is charged before, and an order still waiting after 14 days is cancelled. Team Owners only. An order through an API key counts under the Team's cap on Mailboxes from Curviate (`curviate billing cap` shows mailbox_cap), which only an Owner raises, in the dashboard: from 80% of it the order carries a SPENDING_CAP_NEAR notice, past it the order is refused (exit 5) and nothing is ordered. Read orders with `curviate mailbox purchase list`.",
|
|
576
619
|
risk: "high",
|
|
577
620
|
rules: {
|
|
578
|
-
changes: "An order in awaiting_dns; once its records are found, the Mailboxes are created and
|
|
621
|
+
changes: "An order in awaiting_dns; once its records are found, the Mailboxes are created and charged as its `price` says (a yearly Team pays the rest of its year that day).",
|
|
579
622
|
visible_to: "Your Team.",
|
|
580
623
|
budget_rows: [],
|
|
581
624
|
retry: "Never retried. A second order for the same domain while one waits is refused (MAILBOX_PURCHASE_PENDING).",
|
|
@@ -585,13 +628,14 @@ var buyCmd = defineCommand({
|
|
|
585
628
|
errors: {
|
|
586
629
|
SPENDING_CAP_REACHED: "the order would pass the Team's cap on Mailboxes from Curviate; only an Owner raises it, in the dashboard. Nothing was ordered.",
|
|
587
630
|
INSUFFICIENT_ROLE: "only a Team Owner orders.",
|
|
588
|
-
MAILBOX_PURCHASE_TRIAL: "a Team on a trial
|
|
631
|
+
MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, never subscribed, or with a payment past due. Buy a seat or update the payment method, then order. Nothing was charged.",
|
|
589
632
|
MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
|
|
590
633
|
DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or an order; name another domain.",
|
|
591
634
|
DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
|
|
635
|
+
INVALID_REQUEST: "among others, a subdomain (mail.acme.com): Mailboxes from Curviate go on a domain of your own, such as acme-mail.com.",
|
|
592
636
|
MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment."
|
|
593
637
|
},
|
|
594
|
-
output: ["The order: id, domain, state (awaiting_dns), mailboxes[], records[] (mx, spf, dkim, dmarc, tracking), amount_monthly, expires_at."],
|
|
638
|
+
output: ["The order: id, domain, state (awaiting_dns), mailboxes[], records[] (mx, spf, dkim, dmarc, verify, tracking), price (as `curviate mailbox quote`), amount_monthly (the monthly equivalent), expires_at."],
|
|
595
639
|
seeAlso: ["curviate mailbox purchase list", "curviate domain check"],
|
|
596
640
|
examples: [
|
|
597
641
|
"curviate mailbox buy --domain acme-mail.example --mailbox 'anna:Anna Weber:shared' --yes",
|
|
@@ -603,10 +647,26 @@ var buyCmd = defineCommand({
|
|
|
603
647
|
...WRITE_SINGLE_FLAGS,
|
|
604
648
|
domain: { type: "string", description: "The domain the Mailboxes send from, one your Team owns and not the one your company email runs on." },
|
|
605
649
|
mailbox: { type: "string", description: "One Mailbox, repeatable up to 50: local:Name, the part before the @ and the name recipients see; add :acc_... (the Account it sends for) or :shared at the end." },
|
|
606
|
-
yes: { type: "boolean", description: "Confirm the order without a prompt (needed when no terminal can ask)." }
|
|
650
|
+
yes: { type: "boolean", description: "Confirm the order without a prompt (needed when no terminal can ask)." },
|
|
651
|
+
"expect-amount": { type: "string", description: "The quote's `amount` the person agreed to (minor units): an order whose `price.amount` differs is cancelled at once, exit 11." }
|
|
607
652
|
},
|
|
608
653
|
run: online(runBuy)
|
|
609
654
|
});
|
|
655
|
+
var quoteCmd = defineCommand({
|
|
656
|
+
meta: {
|
|
657
|
+
name: "quote",
|
|
658
|
+
description: "What a number of Mailboxes from Curviate cost your Team, read now from the price the charge uses: the amount for your Team's billing period (a yearly Team pays the rest of its year the day the records are found), when it is charged, and whether your Team can order now. Show this to the person before `curviate mailbox buy`, never a price of your own. Charges nothing. Owners only.",
|
|
659
|
+
risk: "read",
|
|
660
|
+
errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
|
|
661
|
+
output: [
|
|
662
|
+
"`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan or a payment past due; sales_paused), `charge_waits_for` (payment, subscription). The same in one sentence on stderr."
|
|
663
|
+
],
|
|
664
|
+
seeAlso: ["curviate mailbox buy", "curviate billing cap"],
|
|
665
|
+
examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
|
|
666
|
+
},
|
|
667
|
+
args: { ...readOnly(READ_SINGLE_FLAGS), count: { type: "positional", description: "How many Mailboxes, 1 to 50." } },
|
|
668
|
+
run: online(runQuote)
|
|
669
|
+
});
|
|
610
670
|
var purchaseListCmd = defineCommand({
|
|
611
671
|
meta: {
|
|
612
672
|
name: "list",
|
|
@@ -626,7 +686,7 @@ var purchaseListCmd = defineCommand({
|
|
|
626
686
|
var purchaseGetCmd = defineCommand({
|
|
627
687
|
meta: {
|
|
628
688
|
name: "get",
|
|
629
|
-
description: "One order of Mailboxes from Curviate: its state, the
|
|
689
|
+
description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits for the records; provisioning means charged and being set up; active is done; cancelled carries its reason (requested, expired, host_failed: setting up failed and the charge was undone in full). charge_unknown is true while Curviate cannot tell whether the order's charge was made: it is being checked, and a charge that was made is given back in full; do not order again. Every role reads. One API call.",
|
|
630
690
|
risk: "read",
|
|
631
691
|
errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
|
|
632
692
|
seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
|
|
@@ -690,15 +750,15 @@ var purchaseCmd = defineCommand({
|
|
|
690
750
|
meta: { name: "purchase", description: "Your Team's orders of Mailboxes from Curviate: list, get, check (look the records up now), cancel (an order still waiting for its records)." },
|
|
691
751
|
subCommands: { list: purchaseListCmd, get: purchaseGetCmd, check: purchaseCheckCmd, cancel: purchaseCancelCmd },
|
|
692
752
|
async run() {
|
|
693
|
-
const { showHelp } = await import("./examples-
|
|
753
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
694
754
|
await showHelp(purchaseCmd, ["curviate", "mailbox", "purchase"]);
|
|
695
755
|
}
|
|
696
756
|
});
|
|
697
757
|
var mailboxCommand = defineCommand({
|
|
698
758
|
meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
|
|
699
|
-
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, buy: buyCmd, purchase: purchaseCmd },
|
|
759
|
+
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, quote: quoteCmd, buy: buyCmd, purchase: purchaseCmd },
|
|
700
760
|
async run() {
|
|
701
|
-
const { showHelp } = await import("./examples-
|
|
761
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
702
762
|
await showHelp(mailboxCommand, ["curviate", "mailbox"]);
|
|
703
763
|
}
|
|
704
764
|
});
|
|
@@ -707,6 +767,7 @@ export {
|
|
|
707
767
|
MAILBOX_REQUEST_INSTRUCTION,
|
|
708
768
|
mailboxCommand,
|
|
709
769
|
parseMailboxSpec,
|
|
770
|
+
priceLine,
|
|
710
771
|
purchaseNote,
|
|
711
772
|
requestLines
|
|
712
773
|
};
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7HOSWMH2.js";
|
|
17
17
|
import "./chunk-UWO2D4HW.js";
|
|
18
18
|
import "./chunk-UEAX6KUB.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-JY26SUNH.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-KQMTZIXC.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-2NYGMKWI.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
26
26
|
import "./chunk-QLKGOIWS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-GZMSX7CA.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DLYVUDNF.js";
|
|
31
31
|
export {
|
|
32
32
|
guardBareMessageForm,
|
|
33
33
|
messageCommand,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-JY26SUNH.js";
|
|
7
7
|
import {
|
|
8
8
|
sendInChunks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ER5Y2SS5.js";
|
|
10
10
|
import {
|
|
11
11
|
fail,
|
|
12
12
|
listFlag,
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-65UHJVXP.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2NYGMKWI.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
36
|
} from "./chunk-QM57YDJE.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-QLKGOIWS.js";
|
|
44
44
|
import {
|
|
45
45
|
DESCRIPTIONS
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GZMSX7CA.js";
|
|
47
47
|
import {
|
|
48
48
|
documentSchema,
|
|
49
49
|
parseDocument,
|
|
@@ -742,7 +742,7 @@ var CAMPAIGN_DOC = `{
|
|
|
742
742
|
var createCmd = defineCommand({
|
|
743
743
|
meta: {
|
|
744
744
|
name: "create",
|
|
745
|
-
description: "Create a Campaign from a Campaign file, always as a draft: nothing runs until `curviate campaign start`. The file is checked before anything is sent, its Sequence as `curviate campaign lint` checks it. settings.priority (normal or prioritized) sets the Campaign's weight in each Account's budgets: 1 or 1.5, on every budget; every Campaign with work due still progresses and no limit is passed. Needs
|
|
745
|
+
description: "Create a Campaign from a Campaign file, always as a draft: nothing runs until `curviate campaign start`. The file is checked before anything is sent, its Sequence as `curviate campaign lint` checks it. settings.priority (normal or prioritized) sets the Campaign's weight in each Account's budgets: 1 or 1.5, on every budget; every Campaign with work due still progresses and no limit is passed. Needs a subscription.",
|
|
746
746
|
risk: "write",
|
|
747
747
|
rules: {
|
|
748
748
|
changes: "Creates a draft Campaign. No Lead is enrolled and nothing reaches LinkedIn until it is started.",
|
|
@@ -751,7 +751,7 @@ var createCmd = defineCommand({
|
|
|
751
751
|
retry: "A retry creates a second draft: list with `curviate campaign list --status draft` first.",
|
|
752
752
|
undo: "`curviate campaign delete <campaign_id>` deletes a draft."
|
|
753
753
|
},
|
|
754
|
-
errors: { ...SEQUENCE_ERRORS, ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need
|
|
754
|
+
errors: { ...SEQUENCE_ERRORS, ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need a subscription." },
|
|
755
755
|
seeAlso: ["curviate campaign lint", "curviate campaign init", "curviate campaign preview"],
|
|
756
756
|
document: "campaign create",
|
|
757
757
|
examples: [
|
|
@@ -770,7 +770,7 @@ EOF`
|
|
|
770
770
|
var updateCmd = defineCommand({
|
|
771
771
|
meta: {
|
|
772
772
|
name: "update",
|
|
773
|
-
description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). --one-lead-per-company enrolls at most one Lead per company (a Lead whose company already has one in the Campaign is skipped, same_company, naming the Lead kept; one with no known company never is); --no-one-lead-per-company turns it off; either works with or without --file. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs
|
|
773
|
+
description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). --one-lead-per-company enrolls at most one Lead per company (a Lead whose company already has one in the Campaign is skipped, same_company, naming the Lead kept; one with no known company never is); --no-one-lead-per-company turns it off; either works with or without --file. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs a subscription.",
|
|
774
774
|
risk: "write",
|
|
775
775
|
rules: {
|
|
776
776
|
changes: "Changes the Campaign. A running Campaign picks the change up at each Enrollment's next Step.",
|
|
@@ -820,7 +820,7 @@ var lifecycleCmd = (name, meta) => defineCommand({
|
|
|
820
820
|
run: online(lifecycle(name))
|
|
821
821
|
});
|
|
822
822
|
var startCmd = lifecycleCmd("start", {
|
|
823
|
-
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. With an email step it needs `curviate campaign check` at the current Sequence revision, and is refused while Leads have no email address unless --skip-missing-email. Needs
|
|
823
|
+
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. With an email step it needs `curviate campaign check` at the current Sequence revision, and is refused while Leads have no email address unless --skip-missing-email. Needs a subscription.",
|
|
824
824
|
risk: "high",
|
|
825
825
|
rules: {
|
|
826
826
|
changes: "The Campaign starts enrolling its Leads and running its Steps from its sending Accounts, paced on its schedule.",
|
|
@@ -834,7 +834,7 @@ var startCmd = lifecycleCmd("start", {
|
|
|
834
834
|
CAMPAIGN_NOT_STARTABLE: "a gap stops it (Lead list, sending Account, Sequence, with an email step the Lead check and Leads without an address); each is listed.",
|
|
835
835
|
CAMPAIGN_STATUS_CONFLICT: "only a draft starts.",
|
|
836
836
|
...ROLE_ERRORS,
|
|
837
|
-
TIER_REQUIRED: "Campaigns need
|
|
837
|
+
TIER_REQUIRED: "Campaigns need a subscription."
|
|
838
838
|
},
|
|
839
839
|
seeAlso: ["curviate campaign check", "curviate campaign preview", "curviate campaign pause"]
|
|
840
840
|
});
|
|
@@ -852,7 +852,7 @@ var pauseCmd = lifecycleCmd("pause", {
|
|
|
852
852
|
seeAlso: SEE_LIFECYCLE
|
|
853
853
|
});
|
|
854
854
|
var resumeCmd = lifecycleCmd("resume", {
|
|
855
|
-
description: "Resume a paused Campaign. Runs the start checks again, the Lead check and --skip-missing-email included. Needs
|
|
855
|
+
description: "Resume a paused Campaign. Runs the start checks again, the Lead check and --skip-missing-email included. Needs a subscription.",
|
|
856
856
|
risk: "high",
|
|
857
857
|
rules: {
|
|
858
858
|
changes: "The Campaign's Steps run again from its sending Accounts.",
|
|
@@ -862,7 +862,7 @@ var resumeCmd = lifecycleCmd("resume", {
|
|
|
862
862
|
undo: "`curviate campaign pause <campaign_id>`; what was sent stays sent.",
|
|
863
863
|
blast_radius: "Every open Enrollment of the Campaign."
|
|
864
864
|
},
|
|
865
|
-
errors: { CAMPAIGN_NOT_STARTABLE: "a gap stops it; each is listed.", CAMPAIGN_STATUS_CONFLICT: "only a paused Campaign resumes.", ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need
|
|
865
|
+
errors: { CAMPAIGN_NOT_STARTABLE: "a gap stops it; each is listed.", CAMPAIGN_STATUS_CONFLICT: "only a paused Campaign resumes.", ...ROLE_ERRORS, TIER_REQUIRED: "Campaigns need a subscription." },
|
|
866
866
|
seeAlso: SEE_LIFECYCLE
|
|
867
867
|
});
|
|
868
868
|
var archiveCmd = lifecycleCmd("archive", {
|
|
@@ -946,7 +946,7 @@ var placementCmd = defineCommand({
|
|
|
946
946
|
var membershipCmd = (kind) => defineCommand({
|
|
947
947
|
meta: {
|
|
948
948
|
name: kind,
|
|
949
|
-
description: kind === "add" ? "Enroll Leads directly, on an Account of the Campaign (--account) or one Curviate assigns. Every exclusion and filter applies; each Lead's outcome says what happened. Sent in requests of up to 1000 ids, in order. Needs
|
|
949
|
+
description: kind === "add" ? "Enroll Leads directly, on an Account of the Campaign (--account) or one Curviate assigns. Every exclusion and filter applies; each Lead's outcome says what happened. Sent in requests of up to 1000 ids, in order. Needs a subscription." : "Take Leads out of the Campaign: their open Enrollments end (removed). Sent in requests of up to 1000 ids, in order.",
|
|
950
950
|
risk: "high",
|
|
951
951
|
rules: kind === "add" ? {
|
|
952
952
|
changes: "Each queued Lead becomes a pending Enrollment; a running Campaign reaches it on its schedule.",
|
|
@@ -1013,7 +1013,7 @@ var initCmd = defineCommand({
|
|
|
1013
1013
|
var voiceClipUploadCmd = defineCommand({
|
|
1014
1014
|
meta: {
|
|
1015
1015
|
name: "upload",
|
|
1016
|
-
description: "Upload one audio file (MP3, WAV, M4A, WebM or Ogg) and print the clip: its `id` (vc_...) is the `clip_id` of a `voice.send` step. 1 to 120 seconds, up to 20 MiB, 100 uploads per Team per 24 hours. The file is converted once and the original is discarded. Nothing reaches LinkedIn. Needs
|
|
1016
|
+
description: "Upload one audio file (MP3, WAV, M4A, WebM or Ogg) and print the clip: its `id` (vc_...) is the `clip_id` of a `voice.send` step. 1 to 120 seconds, up to 20 MiB, 100 uploads per Team per 24 hours. The file is converted once and the original is discarded. Nothing reaches LinkedIn. Needs a subscription.",
|
|
1017
1017
|
risk: "write",
|
|
1018
1018
|
rules: {
|
|
1019
1019
|
changes: "Stores one converted clip for your Team. No Campaign changes and nothing is sent to anyone.",
|
|
@@ -1027,7 +1027,7 @@ var voiceClipUploadCmd = defineCommand({
|
|
|
1027
1027
|
VOICE_CLIP_INVALID: "the file is empty, is not audio, cannot be decoded, is under 1 second or is over 120 seconds; the message names the reason. A clip is never shortened.",
|
|
1028
1028
|
PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
|
|
1029
1029
|
RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
|
|
1030
|
-
TIER_REQUIRED: "Voice clips need
|
|
1030
|
+
TIER_REQUIRED: "Voice clips need a subscription.",
|
|
1031
1031
|
...ROLE_ERRORS
|
|
1032
1032
|
},
|
|
1033
1033
|
seeAlso: ["curviate campaign voice-clip get", "curviate campaign lint", "curviate campaign create"],
|
|
@@ -1056,14 +1056,14 @@ var voiceClipCommand = defineCommand({
|
|
|
1056
1056
|
meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
|
|
1057
1057
|
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
1058
1058
|
async run() {
|
|
1059
|
-
const { showHelp } = await import("./examples-
|
|
1059
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1060
1060
|
await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
1063
|
var attachmentUploadCmd = defineCommand({
|
|
1064
1064
|
meta: {
|
|
1065
1065
|
name: "upload",
|
|
1066
|
-
description: "Upload one file and print it: its `id` (cat_...) goes in an email step's `attachment_ids` (at most 10 a step, 20 MiB in total). Up to 20 MiB, 100 uploads per Team per 24 hours. Curviate reads the type from the file's bytes; executables, scripts, installers and macro-enabled Office files are refused. A link usually lands better than a file. Nothing is sent. Needs
|
|
1066
|
+
description: "Upload one file and print it: its `id` (cat_...) goes in an email step's `attachment_ids` (at most 10 a step, 20 MiB in total). Up to 20 MiB, 100 uploads per Team per 24 hours. Curviate reads the type from the file's bytes; executables, scripts, installers and macro-enabled Office files are refused. A link usually lands better than a file. Nothing is sent. Needs a subscription. The CLI reads the path here, on your machine, and streams it in one request; a file over 20 MiB is refused before it leaves (exit 2). Curviate never fetches a path or a URL. From a Microsoft sign-in Mailbox, files of about 2.2 MB in all go today; a step's files above that are refused at send (attachment_refused).",
|
|
1067
1067
|
risk: "write",
|
|
1068
1068
|
rules: {
|
|
1069
1069
|
changes: "Stores one file for your Team. No Campaign changes and nothing is sent to anyone.",
|
|
@@ -1077,7 +1077,7 @@ var attachmentUploadCmd = defineCommand({
|
|
|
1077
1077
|
UNSUPPORTED_MEDIA_TYPE: "an executable, a script, an installer, a shortcut, a disk image or a macro-enabled Office file; the message names the type. Nothing is stored.",
|
|
1078
1078
|
PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
|
|
1079
1079
|
RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
|
|
1080
|
-
TIER_REQUIRED: "Campaign attachments need
|
|
1080
|
+
TIER_REQUIRED: "Campaign attachments need a subscription.",
|
|
1081
1081
|
...ROLE_ERRORS
|
|
1082
1082
|
},
|
|
1083
1083
|
seeAlso: ["curviate campaign attachment get", "curviate campaign lint", "curviate campaign check"],
|
|
@@ -1106,7 +1106,7 @@ var attachmentCommand = defineCommand({
|
|
|
1106
1106
|
meta: { name: "attachment", description: DESCRIPTIONS.campaignAttachment },
|
|
1107
1107
|
subCommands: { upload: attachmentUploadCmd, get: attachmentGetCmd },
|
|
1108
1108
|
async run() {
|
|
1109
|
-
const { showHelp } = await import("./examples-
|
|
1109
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1110
1110
|
await showHelp(attachmentCommand, ["curviate", "campaign", "attachment"]);
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
@@ -1133,7 +1133,7 @@ var campaignCommand = defineCommand({
|
|
|
1133
1133
|
attachment: attachmentCommand
|
|
1134
1134
|
},
|
|
1135
1135
|
async run() {
|
|
1136
|
-
const { showHelp } = await import("./examples-
|
|
1136
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
1137
1137
|
await showHelp(campaignCommand, ["curviate", "campaign"]);
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|