@curviate/cli 0.59.0 → 0.61.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 (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/{account-EUHYWIDH.js → account-6NFNYQGU.js} +11 -11
  4. package/dist/{analytics-SQQIMSLF.js → analytics-C5OX6KCD.js} +6 -6
  5. package/dist/{beta-consent-DFS7YMZR.js → beta-consent-IVLBQJSH.js} +5 -5
  6. package/dist/{billing-3FRIQFY3.js → billing-4ULWWTS2.js} +6 -6
  7. package/dist/{chunk-QM57YDJE.js → chunk-2JHRIBHB.js} +2 -2
  8. package/dist/{chunk-VKHAL6WT.js → chunk-4KJT6S7G.js} +1 -1
  9. package/dist/{chunk-HG2G5OAZ.js → chunk-7B3ZEBID.js} +2 -2
  10. package/dist/{chunk-F3FEY4D5.js → chunk-BF3SCQNZ.js} +3 -3
  11. package/dist/{chunk-KD2XY7RS.js → chunk-BVVWFW3P.js} +1 -1
  12. package/dist/{chunk-EWSOIFG2.js → chunk-DLYVUDNF.js} +1 -1
  13. package/dist/{chunk-JXDEV33Z.js → chunk-EIPQUQK2.js} +1 -1
  14. package/dist/{chunk-HJ7YY4HE.js → chunk-NPXJ6WZB.js} +2 -2
  15. package/dist/{chunk-TNLIV3SW.js → chunk-R7CHBBYM.js} +9 -9
  16. package/dist/{chunk-7CSXYRSO.js → chunk-S26N4XUE.js} +8 -8
  17. package/dist/{chunk-R2MIDSMB.js → chunk-TEQHHNTJ.js} +6 -6
  18. package/dist/{chunk-72PYX57P.js → chunk-THV7IFCQ.js} +15 -15
  19. package/dist/{chunk-QRTMRTKA.js → chunk-YBGQWI2R.js} +9 -8
  20. package/dist/{chunk-ZC4S4B32.js → chunk-Z647LR4F.js} +5 -5
  21. package/dist/{chunk-5AJS2V4T.js → chunk-ZFOJU6NF.js} +2 -2
  22. package/dist/cli.js +29 -29
  23. package/dist/{comment-DA6XPY4F.js → comment-IGLA7IER.js} +8 -8
  24. package/dist/{company-IWVNUBWS.js → company-JTTRUG7I.js} +9 -9
  25. package/dist/{company-record-ZJMW3NC6.js → company-record-4UODUGB4.js} +11 -11
  26. package/dist/{config-P4HKPOCW.js → config-XZYVBBYM.js} +2 -2
  27. package/dist/{connect-AELFEVR7.js → connect-P2EVA7Q6.js} +13 -13
  28. package/dist/{contact-FHN3A7MJ.js → contact-CPLFJEQ5.js} +9 -9
  29. package/dist/{contact-groups-HNZTN6I6.js → contact-groups-VMMHQLIH.js} +17 -17
  30. package/dist/{contact-import-PJFRLCHR.js → contact-import-DTQE2YEN.js} +10 -10
  31. package/dist/core-WUCCQ5AP.js +46 -0
  32. package/dist/{do-not-contact-KSH36NMT.js → do-not-contact-ZGGDXFHU.js} +17 -17
  33. package/dist/{doctor-BEO4E227.js → doctor-VJYRO75Z.js} +5 -5
  34. package/dist/{domain-HF3WXWUT.js → domain-47LTUTRM.js} +6 -6
  35. package/dist/{draft-2KBRHBBH.js → draft-QEIV3EJF.js} +11 -11
  36. package/dist/{enrollment-QPE54QQN.js → enrollment-GSXNYWUP.js} +11 -11
  37. package/dist/{examples-5FJS47QF.js → examples-G4IC5TJU.js} +1 -1
  38. package/dist/{exit-codes-LQDMGDII.js → exit-codes-MMGNZCJ5.js} +1 -1
  39. package/dist/{export-J4JQRE2A.js → export-ZILQ2G66.js} +5 -5
  40. package/dist/{feed-PHF2ROIT.js → feed-H64BWKHD.js} +7 -7
  41. package/dist/{group-SLXDOCHV.js → group-UENN2D2V.js} +7 -7
  42. package/dist/{inbox-IDILZLPC.js → inbox-5LFGUDR3.js} +7 -7
  43. package/dist/{inboxes-QLP5PWTS.js → inboxes-3S3Q5P55.js} +7 -7
  44. package/dist/{incoming-XG6IBPU6.js → incoming-FT5DG475.js} +9 -9
  45. package/dist/{job-WUYHK6OX.js → job-T2Y2FI2J.js} +8 -8
  46. package/dist/{login-3RIU257N.js → login-J3UDO2U5.js} +2 -2
  47. package/dist/{mailbox-CJRCYZGL.js → mailbox-3AIW2MNF.js} +14 -13
  48. package/dist/{message-EBVO4ZZI.js → message-ZTG5NLFM.js} +7 -7
  49. package/dist/{motion-7XQ3E4GI.js → motion-PPDJRNPY.js} +21 -21
  50. package/dist/{network-X5XL44GB.js → network-6O7UMQUV.js} +7 -7
  51. package/dist/{notification-QNGHG5EO.js → notification-OSFARVWS.js} +7 -7
  52. package/dist/{notifications-MOLNELNE.js → notifications-P23SNSOA.js} +7 -7
  53. package/dist/{post-XYSFN5OP.js → post-3IHALP6D.js} +8 -8
  54. package/dist/{profile-7LJLU4Y5.js → profile-SVX32KM7.js} +13 -13
  55. package/dist/{recruiter-ALQNIRYR.js → recruiter-FXNHAGUQ.js} +8 -8
  56. package/dist/{sales-nav-HYZXNYCC.js → sales-nav-LZGY3JNR.js} +7 -7
  57. package/dist/{search-DNCPCFRR.js → search-DE7LXAGY.js} +16 -16
  58. package/dist/{setup-QI5FW6VD.js → setup-JLARWHGX.js} +5 -5
  59. package/dist/{signal-J2TLIT47.js → signal-EKNNW7M5.js} +6 -6
  60. package/dist/{team-PPPCJ5HT.js → team-QUJTRZCS.js} +7 -7
  61. package/dist/{tier-NFWWW34H.js → tier-6P7DE7QF.js} +5 -5
  62. package/dist/{unibox-52C7G5LK.js → unibox-Q6IUUCPH.js} +20 -20
  63. package/dist/{webhook-J3JYMSY2.js → webhook-COOQJOQB.js} +6 -6
  64. package/package.json +2 -2
  65. package/dist/core-R7R44CVA.js +0 -46
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-HG2G5OAZ.js";
4
+ } from "./chunk-7B3ZEBID.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -9,26 +9,26 @@ import {
9
9
  readablePage,
10
10
  rejectPaginationModifiersWithoutAll,
11
11
  streamAll
12
- } from "./chunk-5AJS2V4T.js";
12
+ } from "./chunk-ZFOJU6NF.js";
13
13
  import {
14
14
  renderError,
15
15
  renderSuccess,
16
16
  renderUnexpectedError,
17
17
  writeNdjsonItem
18
- } from "./chunk-QM57YDJE.js";
18
+ } from "./chunk-2JHRIBHB.js";
19
19
  import {
20
20
  createClient,
21
21
  resolveEffectiveConfig
22
- } from "./chunk-KD2XY7RS.js";
22
+ } from "./chunk-BVVWFW3P.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-ZC4S4B32.js";
29
+ } from "./chunk-Z647LR4F.js";
30
30
  import "./chunk-ZYURL5VK.js";
31
- import "./chunk-EWSOIFG2.js";
31
+ import "./chunk-DLYVUDNF.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-LQDMGDII.js");
52
+ const { getExitCode } = await import("./exit-codes-MMGNZCJ5.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-HG2G5OAZ.js";
7
+ } from "./chunk-7B3ZEBID.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
@@ -13,17 +13,17 @@ import {
13
13
  readablePage,
14
14
  rejectPaginationModifiersWithoutAll,
15
15
  streamAll
16
- } from "./chunk-5AJS2V4T.js";
16
+ } from "./chunk-ZFOJU6NF.js";
17
17
  import {
18
18
  renderError,
19
19
  renderSuccess,
20
20
  renderUnexpectedError,
21
21
  writeNdjsonItem
22
- } from "./chunk-QM57YDJE.js";
22
+ } from "./chunk-2JHRIBHB.js";
23
23
  import {
24
24
  createClient,
25
25
  resolveEffectiveConfig
26
- } from "./chunk-KD2XY7RS.js";
26
+ } from "./chunk-BVVWFW3P.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-ZC4S4B32.js";
34
+ } from "./chunk-Z647LR4F.js";
35
35
  import "./chunk-ZYURL5VK.js";
36
- import "./chunk-EWSOIFG2.js";
36
+ import "./chunk-DLYVUDNF.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-LQDMGDII.js");
63
+ const { getExitCode } = await import("./exit-codes-MMGNZCJ5.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-HG2G5OAZ.js";
15
+ } from "./chunk-7B3ZEBID.js";
16
16
  import {
17
17
  buildPreviewOutput
18
18
  } from "./chunk-TCUYH5GO.js";
@@ -24,17 +24,17 @@ import {
24
24
  readablePage,
25
25
  rejectPaginationModifiersWithoutAll,
26
26
  streamAll
27
- } from "./chunk-5AJS2V4T.js";
27
+ } from "./chunk-ZFOJU6NF.js";
28
28
  import {
29
29
  renderError,
30
30
  renderSuccess,
31
31
  renderUnexpectedError,
32
32
  writeNdjsonItem
33
- } from "./chunk-QM57YDJE.js";
33
+ } from "./chunk-2JHRIBHB.js";
34
34
  import {
35
35
  createClient,
36
36
  resolveEffectiveConfig
37
- } from "./chunk-KD2XY7RS.js";
37
+ } from "./chunk-BVVWFW3P.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-ZC4S4B32.js";
46
+ } from "./chunk-Z647LR4F.js";
47
47
  import "./chunk-ZYURL5VK.js";
48
- import "./chunk-EWSOIFG2.js";
48
+ import "./chunk-DLYVUDNF.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-LQDMGDII.js");
110
+ const { getExitCode } = await import("./exit-codes-MMGNZCJ5.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-HG2G5OAZ.js";
4
+ } from "./chunk-7B3ZEBID.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -10,17 +10,17 @@ import {
10
10
  readablePage,
11
11
  rejectPaginationModifiersWithoutAll,
12
12
  streamAll
13
- } from "./chunk-5AJS2V4T.js";
13
+ } from "./chunk-ZFOJU6NF.js";
14
14
  import {
15
15
  renderError,
16
16
  renderSuccess,
17
17
  renderUnexpectedError,
18
18
  writeNdjsonItem
19
- } from "./chunk-QM57YDJE.js";
19
+ } from "./chunk-2JHRIBHB.js";
20
20
  import {
21
21
  createClient,
22
22
  resolveEffectiveConfig
23
- } from "./chunk-KD2XY7RS.js";
23
+ } from "./chunk-BVVWFW3P.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-ZC4S4B32.js";
31
+ } from "./chunk-Z647LR4F.js";
32
32
  import "./chunk-ZYURL5VK.js";
33
- import "./chunk-EWSOIFG2.js";
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-LQDMGDII.js");
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-F3FEY4D5.js";
7
+ } from "./chunk-BF3SCQNZ.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-5AJS2V4T.js";
21
+ } from "./chunk-ZFOJU6NF.js";
22
22
  import {
23
23
  renderSuccess,
24
24
  writeNdjsonItem
25
- } from "./chunk-QM57YDJE.js";
26
- import "./chunk-KD2XY7RS.js";
25
+ } from "./chunk-2JHRIBHB.js";
26
+ import "./chunk-BVVWFW3P.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-ZC4S4B32.js";
35
+ } from "./chunk-Z647LR4F.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 Automate.",
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 Automate.",
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 Automate.",
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-5FJS47QF.js");
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-JXDEV33Z.js";
15
+ } from "./chunk-EIPQUQK2.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-HG2G5OAZ.js";
18
+ } from "./chunk-7B3ZEBID.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -29,18 +29,18 @@ import {
29
29
  readablePage,
30
30
  rejectPaginationModifiersWithoutAll,
31
31
  streamAll
32
- } from "./chunk-5AJS2V4T.js";
32
+ } from "./chunk-ZFOJU6NF.js";
33
33
  import {
34
34
  renderError,
35
35
  renderSuccess,
36
36
  renderUnexpectedError,
37
37
  writeNdjsonItem
38
- } from "./chunk-QM57YDJE.js";
38
+ } from "./chunk-2JHRIBHB.js";
39
39
  import {
40
40
  createClient,
41
41
  downloadBinary,
42
42
  resolveEffectiveConfig
43
- } from "./chunk-KD2XY7RS.js";
43
+ } from "./chunk-BVVWFW3P.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-ZC4S4B32.js";
52
+ } from "./chunk-Z647LR4F.js";
53
53
  import "./chunk-ZYURL5VK.js";
54
- import "./chunk-EWSOIFG2.js";
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-LQDMGDII.js");
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-KD2XY7RS.js";
8
+ } from "./chunk-BVVWFW3P.js";
9
9
  import {
10
10
  GLOBAL_FLAGS
11
11
  } from "./chunk-QLKGOIWS.js";
12
12
  import {
13
13
  DESCRIPTIONS
14
- } from "./chunk-ZC4S4B32.js";
14
+ } from "./chunk-Z647LR4F.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-7CSXYRSO.js";
4
+ } from "./chunk-S26N4XUE.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-F3FEY4D5.js";
14
+ } from "./chunk-BF3SCQNZ.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-5AJS2V4T.js";
29
+ } from "./chunk-ZFOJU6NF.js";
30
30
  import {
31
31
  renderSuccess,
32
32
  writeNdjsonItem
33
- } from "./chunk-QM57YDJE.js";
33
+ } from "./chunk-2JHRIBHB.js";
34
34
  import "./chunk-IB6ARI3R.js";
35
- import "./chunk-KD2XY7RS.js";
35
+ import "./chunk-BVVWFW3P.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-ZC4S4B32.js";
44
+ } from "./chunk-Z647LR4F.js";
45
45
  import {
46
46
  readFileFlag
47
47
  } from "./chunk-JKOQX46J.js";
@@ -49,7 +49,7 @@ import "./chunk-FDJMAF7D.js";
49
49
  import "./chunk-ZYURL5VK.js";
50
50
  import {
51
51
  getExitCode
52
- } from "./chunk-EWSOIFG2.js";
52
+ } from "./chunk-DLYVUDNF.js";
53
53
 
54
54
  // src/commands/mailbox.ts
55
55
  import { defineCommand } from "citty";
@@ -172,7 +172,7 @@ function priceLine(p) {
172
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
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
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" ? "a Team on a trial cannot order" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.` : "";
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
176
  return head + when + waits + closed;
177
177
  }
178
178
  async function runQuote(c, f) {
@@ -231,6 +231,7 @@ async function runBuy(c, f) {
231
231
  }
232
232
  }
233
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.";
234
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.`;
235
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.";
236
237
  return null;
@@ -627,7 +628,7 @@ var buyCmd = defineCommand({
627
628
  errors: {
628
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.",
629
630
  INSUFFICIENT_ROLE: "only a Team Owner orders.",
630
- MAILBOX_PURCHASE_TRIAL: "a Team on a trial cannot order.",
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.",
631
632
  MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
632
633
  DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or an order; name another domain.",
633
634
  DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
@@ -658,7 +659,7 @@ var quoteCmd = defineCommand({
658
659
  risk: "read",
659
660
  errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
660
661
  output: [
661
- "`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, sales_paused), `charge_waits_for` (payment, subscription). The same in one sentence on stderr."
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."
662
663
  ],
663
664
  seeAlso: ["curviate mailbox buy", "curviate billing cap"],
664
665
  examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
@@ -685,7 +686,7 @@ var purchaseListCmd = defineCommand({
685
686
  var purchaseGetCmd = defineCommand({
686
687
  meta: {
687
688
  name: "get",
688
- 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). Every role reads. One API call.",
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.",
689
690
  risk: "read",
690
691
  errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
691
692
  seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
@@ -749,7 +750,7 @@ var purchaseCmd = defineCommand({
749
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)." },
750
751
  subCommands: { list: purchaseListCmd, get: purchaseGetCmd, check: purchaseCheckCmd, cancel: purchaseCancelCmd },
751
752
  async run() {
752
- const { showHelp } = await import("./examples-5FJS47QF.js");
753
+ const { showHelp } = await import("./examples-G4IC5TJU.js");
753
754
  await showHelp(purchaseCmd, ["curviate", "mailbox", "purchase"]);
754
755
  }
755
756
  });
@@ -757,7 +758,7 @@ var mailboxCommand = defineCommand({
757
758
  meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
758
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 },
759
760
  async run() {
760
- const { showHelp } = await import("./examples-5FJS47QF.js");
761
+ const { showHelp } = await import("./examples-G4IC5TJU.js");
761
762
  await showHelp(mailboxCommand, ["curviate", "mailbox"]);
762
763
  }
763
764
  });
@@ -13,21 +13,21 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-R2MIDSMB.js";
16
+ } from "./chunk-TEQHHNTJ.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-HG2G5OAZ.js";
21
+ import "./chunk-7B3ZEBID.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-5AJS2V4T.js";
24
- import "./chunk-QM57YDJE.js";
25
- import "./chunk-KD2XY7RS.js";
23
+ import "./chunk-ZFOJU6NF.js";
24
+ import "./chunk-2JHRIBHB.js";
25
+ import "./chunk-BVVWFW3P.js";
26
26
  import "./chunk-QLKGOIWS.js";
27
- import "./chunk-ZC4S4B32.js";
27
+ import "./chunk-Z647LR4F.js";
28
28
  import "./chunk-FDJMAF7D.js";
29
29
  import "./chunk-ZYURL5VK.js";
30
- import "./chunk-EWSOIFG2.js";
30
+ import "./chunk-DLYVUDNF.js";
31
31
  export {
32
32
  guardBareMessageForm,
33
33
  messageCommand,