reply-cli 0.21.0 → 0.23.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/README.md +60 -19
- package/dist/operations/account-call.d.ts +2 -5
- package/dist/operations/account-call.js +12 -60
- package/dist/operations/account-call.js.map +1 -1
- package/dist/operations/account-links.js +22 -83
- package/dist/operations/account-links.js.map +1 -1
- package/dist/operations/commands.js +65 -28
- package/dist/operations/commands.js.map +1 -1
- package/dist/operations/direct-send.d.ts +1 -0
- package/dist/operations/direct-send.js +107 -13
- package/dist/operations/direct-send.js.map +1 -1
- package/dist/operations/direct-sends.js +13 -1
- package/dist/operations/direct-sends.js.map +1 -1
- package/dist/operations/stdin-input.d.ts +1 -0
- package/dist/operations/stdin-input.js +6 -0
- package/dist/operations/stdin-input.js.map +1 -1
- package/dist/utils/client.js +3 -2
- package/dist/utils/client.js.map +1 -1
- package/package.json +1 -1
- package/skills/reply-adapter/reply-api/SKILL.md +8 -1
- package/skills/reply-adapter/reply-cli/SKILL.md +9 -6
- package/dist/operations/shared-page.d.ts +0 -12
- package/dist/operations/shared-page.js +0 -55
- package/dist/operations/shared-page.js.map +0 -1
package/README.md
CHANGED
|
@@ -210,6 +210,7 @@ prints JSON (indented; compact with `--json`) and says what happened in a stable
|
|
|
210
210
|
| `reply contact delete <id>` | → `deleted` |
|
|
211
211
|
| `reply contact opt-out <contact>` | → `opted_out` |
|
|
212
212
|
| `reply contact send-email <contact> --email-account-id N --message - [--track-links] [--track-opens]` | one email outside any sequence → `sent` |
|
|
213
|
+
| `reply contact send-email <contact> --email-account-id N --follows email-<n> --message -` | a follow-up in an earlier direct email's thread, its `{body}` alone → `sent`, with its `reference` |
|
|
213
214
|
| `reply contact linkedin-connect <contact> --linkedin-account-id N [--message -]` | a LinkedIn invitation, with or without a note → `sent` / `already_connected` |
|
|
214
215
|
| `reply contact linkedin-message …` · `linkedin-inmail …` · `linkedin-voice …` | a LinkedIn message, an InMail, or an AI voice message spoken from a script → `sent` |
|
|
215
216
|
| any direct send `… [--send-after <moment>] [--schedule-id N] [--idempotency-key K]` | the send held until a moment, timed by a schedule, under a key of yours → `sent`, with its `reference` and `state` |
|
|
@@ -339,6 +340,39 @@ Reply cannot fill is `contact.missing_variables`, with the names under the error
|
|
|
339
340
|
# {"error":{"code":"contact.missing_variables",…,"details":{"missing_variables":["FirstName","Company"]}}}
|
|
340
341
|
```
|
|
341
342
|
|
|
343
|
+
Reply holds a direct email to the mailbox's limits. `email.limit_reached` (`429`) is one of them
|
|
344
|
+
reached, with `details.limit` saying which: `daily`, the mailbox's day, which Reply counts in UTC,
|
|
345
|
+
or `active_contacts`, the contacts the account may email in its billing period. A send for later is
|
|
346
|
+
also refused `daily` when the day it is due already holds as many sends as the mailbox's limit.
|
|
347
|
+
`retry_after` passes on Reply's `Retry-After`, the seconds until the limit clears, and the CLI never
|
|
348
|
+
repeats the send itself. `email.sending_disabled` (`403`) is a mailbox or team that cannot send
|
|
349
|
+
direct emails now: the mailbox's daily limit is 0, or the team's plan does not send; no wait clears
|
|
350
|
+
it. Neither sends anything, and `reply_code` keeps Reply's own code, as on every refusal:
|
|
351
|
+
|
|
352
|
+
```sh
|
|
353
|
+
# {"error":{"status":429,"code":"email.limit_reached",…,"reply_code":"contact.dailyLimitReached","retry_after":43200,"details":{"limit":"daily"}}}
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
`contact send-email --follows <reference>` sends the email as a follow-up in the thread of an earlier
|
|
357
|
+
direct email, named by the `reference` that send answered: `email-<n>`, `n` from 1 with no leading
|
|
358
|
+
zero; any other form is refused before any call (`usage.reference`). The follow-up goes under its
|
|
359
|
+
thread's subject, so its message is `{body}` alone, and one carrying a `subject` is refused
|
|
360
|
+
(`usage.message`, exit 2). It goes to the contact and from the mailbox of the email it follows, takes
|
|
361
|
+
every other flag of a plain send, and its answer always carries Reply's `reference`. Reply refuses it,
|
|
362
|
+
and nothing is sent, when that email is none this account can see (`follows.not_found`) or a
|
|
363
|
+
teammate's this user may not act for (`follows.not_owned`), went to another contact or goes from
|
|
364
|
+
another mailbox (`follows.other_contact`, `follows.other_mailbox`), was cancelled or failed for good
|
|
365
|
+
(`follows.never_sent`), has not gone out yet while the follow-up would go at once (`follows.not_sent`:
|
|
366
|
+
give it a later `--send-after` or a `--schedule-id`), is due no earlier than the follow-up's
|
|
367
|
+
`--send-after` (`follows.too_early`), or went out but can no longer be found (`follows.not_placed`).
|
|
368
|
+
A Reply without follow-ups answers the route with a `404` and no code of its own: that is
|
|
369
|
+
`follows.not_available`, and nothing else is tried in its place.
|
|
370
|
+
|
|
371
|
+
```sh
|
|
372
|
+
echo '{"body":"<p>Hi Ann, just bringing this back up.</p>"}' | reply contact send-email --contact-id 456 --email-account-id 12 --follows email-1001 --message - --send-after 2026-11-06T14:00:00Z
|
|
373
|
+
# {"status":"sent",…,"reference":"email-1002","send_after":"2026-11-06T14:00:00Z","state":"queued"}
|
|
374
|
+
```
|
|
375
|
+
|
|
342
376
|
Every direct send also takes `--send-after <moment>`, `--schedule-id <id>` and
|
|
343
377
|
`--idempotency-key <key>`. Reply holds the send until the moment, given with its offset
|
|
344
378
|
(`2026-11-03T14:00:00Z`, `2026-11-03T16:00:00+02:00`) and sent to Reply in UTC; a moment without an
|
|
@@ -406,12 +440,22 @@ reply direct-send cancel linkedin-1042
|
|
|
406
440
|
Both answer the send under the CLI's names, each null when Reply gives none: `reference`, `channel`,
|
|
407
441
|
`contact_id`, `state`, `send_after`, `sent_at`, `message_id`, `failure_reason` and `cancelled_at`.
|
|
408
442
|
`failure_code`, `missing_variables`, `rendered_subject` and `rendered_body` are added only when
|
|
409
|
-
Reply gives them, and so
|
|
410
|
-
|
|
411
|
-
|
|
443
|
+
Reply gives them, and so are `bounced`, `bounce_type` and `bounced_at`: whether a bounce came back
|
|
444
|
+
for the email after it went out (false until one does, and always false for LinkedIn), Reply's own
|
|
445
|
+
word for the kind of the latest bounce as given (`hard`, `soft`, `mailboxFull`, `unknown`, …), and
|
|
446
|
+
when it came. Reply leaves `bounce_type` and `bounced_at` null while `bounced` is false, and
|
|
447
|
+
`bounced_at` null when the bounce carried no date; the CLI passes on what Reply gives and checks
|
|
448
|
+
neither. So is `estimated_send_at`, read the same way as on the send but as of the read: set in
|
|
449
|
+
`waitingForSchedule` only and null in every other state, and null there too when the schedule does
|
|
450
|
+
not open within 30 days counted from `--send-after`, or from now once that has passed.
|
|
412
451
|
`failure_reason` is a sentence for a person and never parsed; `failure_code` is Reply's code for the
|
|
413
452
|
failure, the one to branch on. A failed send may carry no `failure_code`: it is then null, and
|
|
414
|
-
`failure_reason` is all Reply says of it. `
|
|
453
|
+
`failure_reason` is all Reply says of it. `follows` is added only when Reply gives it: the reference
|
|
454
|
+
of the email a follow-up went in the thread of, or null for a send that follows none. A follow-up
|
|
455
|
+
that failed may carry the `failure_code` `contact.followedSendNotSent` (that email had not gone out
|
|
456
|
+
when the follow-up was due), `contact.followedSendNeverSent` (it was cancelled or failed for good) or
|
|
457
|
+
`contact.followUpNotPlaced` (Reply could not find it to answer in its thread), passed on as given.
|
|
458
|
+
`direct-send cancel` of a send already cancelled answers
|
|
415
459
|
it again. A send already gone out, failed or going out is `direct_send.already_sent`,
|
|
416
460
|
`direct_send.already_failed` or `direct_send.already_sending`; the last is a LinkedIn send made for
|
|
417
461
|
later that Reply is handing to the account's queue or that waits or runs there, even while
|
|
@@ -529,17 +573,13 @@ is in `account list`. An email link needs `--provider`; a reconnect takes the pr
|
|
|
529
573
|
mailbox, and the person must sign in with the same address. A LinkedIn connect needs `--name`, which
|
|
530
574
|
Reply lists the pending account under.
|
|
531
575
|
|
|
532
|
-
A Reply without one-mailbox email links answers that route with a 404 and no code.
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
slot reconnects the mailbox rather than being refused a new one; on the index, the person opens the
|
|
540
|
-
mailbox and reconnects it from there.
|
|
541
|
-
`shared_page.not_enabled` means the plan does not include hosted pages. `account pending` then lists
|
|
542
|
-
no email entries and answers `"supported":false` with `"unsupported_channels":["email"]`.
|
|
576
|
+
A Reply without one-mailbox email links answers that route with a 404 and no code. `account
|
|
577
|
+
connect`, `account reconnect` and `account pending` then refuse with `email_link.not_available`
|
|
578
|
+
(exit 1), print nothing and offer nothing else. `"link_kind"` is always `"connection_link"`, and
|
|
579
|
+
`account pending` always answers `"supported":true` with `"unsupported_channels":[]`; the fields are
|
|
580
|
+
kept for callers that read them. `--allow-shared-page`, which printed the account user's hosted
|
|
581
|
+
mailbox page on such a Reply, is deprecated: it is still accepted, does nothing and is hidden from
|
|
582
|
+
the help, and a later release removes it. So is `--provider` on `account reconnect`.
|
|
543
583
|
|
|
544
584
|
```sh
|
|
545
585
|
reply account connect --channel email --provider gmail --name "Sales mailbox"
|
|
@@ -575,9 +615,10 @@ the others checks or relies on Reply's own state rather than repeating an effect
|
|
|
575
615
|
|
|
576
616
|
**Retries.** Reads are retried on errors. A write is retried only when it can't have reached Reply:
|
|
577
617
|
the connection was never made, or a `429` asked to wait 3 seconds or less. A longer `429` comes back
|
|
578
|
-
as `rate_limited` with `retry_after`. A `429` that names a `reference` or says a daily
|
|
579
|
-
was reached is never resent, whatever it asks to wait: Reply may have
|
|
580
|
-
would record another. Each comes back at once as the refusal it
|
|
618
|
+
as `rate_limited` with `retry_after`. A `429` that names a `reference` or says a daily, weekly or
|
|
619
|
+
active contacts limit was reached is never resent, whatever it asks to wait: Reply may have
|
|
620
|
+
recorded the attempt, and a repeat would record another. Each comes back at once as the refusal it
|
|
621
|
+
is.
|
|
581
622
|
|
|
582
623
|
## Raw API access
|
|
583
624
|
|
|
@@ -611,7 +652,7 @@ connection that broke after sending. That last case exits 3: the write may have
|
|
|
611
652
|
goes by the method alone, so this includes a POST that only reads, such as the `…/filter` calls; run
|
|
612
653
|
it again yourself if it failed. A `429` is waited out only when `Retry-After` asks for 3 seconds or
|
|
613
654
|
less; a longer one is printed as the `429` it is, and so is one whose body names a `reference` or a
|
|
614
|
-
daily or
|
|
655
|
+
daily, weekly or active contacts limit.
|
|
615
656
|
|
|
616
657
|
### Windows: Git Bash rewrites the path
|
|
617
658
|
|
|
@@ -6,10 +6,7 @@ declare const LINK_REDACTED = "<link redacted>";
|
|
|
6
6
|
declare const add_link: (link: string, found: Set<string>) => void;
|
|
7
7
|
declare const links_in: (data: unknown, found?: Set<string>) => Set<string>;
|
|
8
8
|
declare const redact_links: (text: string, secrets: Iterable<string>) => string;
|
|
9
|
-
declare const account_call: (s: Op_session, g: Op_globals, method: string, path: string, kind: Call_kind, body?: unknown
|
|
10
|
-
secret_body?: boolean;
|
|
11
|
-
}) => Promise<Answer>;
|
|
12
|
-
declare const without_secrets: (a: Answer) => Answer;
|
|
9
|
+
declare const account_call: (s: Op_session, g: Op_globals, method: string, path: string, kind: Call_kind, body?: unknown) => Promise<Answer>;
|
|
13
10
|
declare const ACCOUNT_REFUSALS: Record<string, {
|
|
14
11
|
status: number;
|
|
15
12
|
code: string;
|
|
@@ -17,4 +14,4 @@ declare const ACCOUNT_REFUSALS: Record<string, {
|
|
|
17
14
|
}>;
|
|
18
15
|
declare const account_refusal: (a: Answer, kind: Call_kind) => Operation_error;
|
|
19
16
|
declare const route_missing: (a: Answer) => boolean;
|
|
20
|
-
export { LINK_REDACTED, ACCOUNT_REFUSALS, account_call, account_refusal, route_missing, links_in, redact_links, add_link
|
|
17
|
+
export { LINK_REDACTED, ACCOUNT_REFUSALS, account_call, account_refusal, route_missing, links_in, redact_links, add_link };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.add_link = exports.redact_links = exports.links_in = exports.route_missing = exports.account_refusal = exports.account_call = exports.ACCOUNT_REFUSALS = exports.LINK_REDACTED = void 0;
|
|
4
4
|
const output_1 = require("../utils/output");
|
|
5
5
|
const errors_1 = require("../utils/errors");
|
|
6
6
|
const call_1 = require("./call");
|
|
7
|
-
// The calls of the account commands, and what they write to stderr under --verbose. A connection link
|
|
8
|
-
//
|
|
9
|
-
//
|
|
7
|
+
// The calls of the account commands, and what they write to stderr under --verbose. A connection link
|
|
8
|
+
// and any token in it are handed over once, in the stdout field `link`: in a trace each is replaced by
|
|
9
|
+
// LINK_REDACTED, wherever it appears.
|
|
10
10
|
const LINK_REDACTED = '<link redacted>';
|
|
11
11
|
exports.LINK_REDACTED = LINK_REDACTED;
|
|
12
|
-
// The
|
|
13
|
-
const LINK_FIELDS = ['connectionlink'
|
|
12
|
+
// The field Reply hands a link in: v3's connectionLink.
|
|
13
|
+
const LINK_FIELDS = ['connectionlink'];
|
|
14
14
|
// Too short to be a token, and short enough to be an ordinary word of a URL.
|
|
15
15
|
const SHORTEST_TOKEN = 8;
|
|
16
16
|
const SHORTEST_INNER_TOKEN = 16;
|
|
17
|
-
const URL_IN_TEXT = /https?:\/\/[^\s"'<>]+/gi;
|
|
18
17
|
const safe_decode = (part) => {
|
|
19
18
|
try {
|
|
20
19
|
return decodeURIComponent(part);
|
|
@@ -72,38 +71,10 @@ const links_in = (data, found = new Set()) => {
|
|
|
72
71
|
return found;
|
|
73
72
|
};
|
|
74
73
|
exports.links_in = links_in;
|
|
75
|
-
// Every string of a body at any depth, the body itself when it is one.
|
|
76
|
-
const strings_of = (data, found = []) => {
|
|
77
|
-
if (typeof data === 'string') {
|
|
78
|
-
found.push(data);
|
|
79
|
-
}
|
|
80
|
-
else if (Array.isArray(data)) {
|
|
81
|
-
data.forEach(d => strings_of(d, found));
|
|
82
|
-
}
|
|
83
|
-
else if ((0, call_1.is_object)(data)) {
|
|
84
|
-
Object.values(data).forEach(v => strings_of(v, found));
|
|
85
|
-
}
|
|
86
|
-
return found;
|
|
87
|
-
};
|
|
88
|
-
// The secrets of a body that is secret whatever its shape: every address inside any of its strings,
|
|
89
|
-
// with its tokens, and every string that is wholly one value, such as a bare token.
|
|
90
|
-
const body_secrets = (data) => {
|
|
91
|
-
const found = links_in(data);
|
|
92
|
-
for (const text of strings_of(data)) {
|
|
93
|
-
for (const url of text.match(URL_IN_TEXT) ?? []) {
|
|
94
|
-
add_link(url, found);
|
|
95
|
-
}
|
|
96
|
-
if (!/\s/.test(text.trim()) && text.trim().length >= SHORTEST_TOKEN) {
|
|
97
|
-
add_link(text.trim(), found);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return found;
|
|
101
|
-
};
|
|
102
74
|
const redact_links = (text, secrets) => [...secrets].sort((a, b) => b.length - a.length).reduce((t, s) => t.split(s).join(LINK_REDACTED), text);
|
|
103
75
|
exports.redact_links = redact_links;
|
|
104
|
-
// curl -v style, as `reply api --verbose` writes it, with the answer's body after its headers.
|
|
105
|
-
|
|
106
|
-
const trace_lines = (a, secret_body) => {
|
|
76
|
+
// curl -v style, as `reply api --verbose` writes it, with the answer's body after its headers.
|
|
77
|
+
const trace_lines = (a) => {
|
|
107
78
|
const lines = [];
|
|
108
79
|
if (a.request) {
|
|
109
80
|
lines.push(`> ${a.request.method} ${a.request.url}`);
|
|
@@ -119,39 +90,20 @@ const trace_lines = (a, secret_body) => {
|
|
|
119
90
|
lines.push(`< ${k}: ${/cookie/i.test(k) ? output_1.REDACTED : v}`);
|
|
120
91
|
}
|
|
121
92
|
if (a.data !== null && a.data !== '') {
|
|
122
|
-
const shown =
|
|
93
|
+
const shown = typeof a.data === 'string' ? a.data : JSON.stringify(a.data);
|
|
123
94
|
lines.push('<', `< ${shown}`);
|
|
124
95
|
}
|
|
125
96
|
return lines;
|
|
126
97
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
// (the shared page, whose answer is the address in whatever shape Reply gives it) the trace shows none
|
|
130
|
-
// of the body, and nothing of it appears anywhere else in the trace either.
|
|
131
|
-
const account_call = async (s, g, method, path, kind, body, opts = {}) => {
|
|
98
|
+
// One call of an account command. The links in its answer never reach the trace.
|
|
99
|
+
const account_call = async (s, g, method, path, kind, body) => {
|
|
132
100
|
const a = await (0, call_1.call_reply)(s, method, path, kind, body);
|
|
133
101
|
if (g.verbose) {
|
|
134
|
-
|
|
135
|
-
console.error(redact_links(trace_lines(a, secret_body).join('\n'), secrets_of(a, secret_body)));
|
|
102
|
+
console.error(redact_links(trace_lines(a).join('\n'), links_in(a.data)));
|
|
136
103
|
}
|
|
137
104
|
return a;
|
|
138
105
|
};
|
|
139
106
|
exports.account_call = account_call;
|
|
140
|
-
// The same answer with every secret of its body replaced, for an error built from a secret body.
|
|
141
|
-
const without_secrets = (a) => {
|
|
142
|
-
const secrets = body_secrets(a.data);
|
|
143
|
-
const clean = (v) => {
|
|
144
|
-
if (typeof v === 'string') {
|
|
145
|
-
return redact_links(v, secrets);
|
|
146
|
-
}
|
|
147
|
-
if (Array.isArray(v)) {
|
|
148
|
-
return v.map(clean);
|
|
149
|
-
}
|
|
150
|
-
return (0, call_1.is_object)(v) ? Object.fromEntries(Object.entries(v).map(([k, x]) => [k, clean(x)])) : v;
|
|
151
|
-
};
|
|
152
|
-
return { ...a, data: clean(a.data) };
|
|
153
|
-
};
|
|
154
|
-
exports.without_secrets = without_secrets;
|
|
155
107
|
// Reply's refusals of the account routes, each at the status Reply answers it with, under the CLI's
|
|
156
108
|
// code. Reply's own code always travels in reply_code; any other answer reads as every operation reads it.
|
|
157
109
|
const ACCOUNT_REFUSALS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-call.js","sourceRoot":"","sources":["../../src/operations/account-call.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,4CAAgD;AAChD,iCAA8G;AAI9G,uGAAuG;AACvG,
|
|
1
|
+
{"version":3,"file":"account-call.js","sourceRoot":"","sources":["../../src/operations/account-call.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,4CAAgD;AAChD,iCAA8G;AAI9G,sGAAsG;AACtG,uGAAuG;AACvG,sCAAsC;AAEtC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAiKhC,sCAAa;AA/JrB,wDAAwD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,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAA,gBAAS,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC;AAC9G,CAAC,CAAC;AAKqD,0CAAe;AAHtE,oGAAoG;AACpG,MAAM,aAAa,GAAG,CAAC,CAAS,EAAU,EAAE,CAAA,CAAC,CAAC,MAAM,KAAK,GAAG,IAAI,IAAA,oBAAa,EAAC,CAAC,CAAC,KAAK,SAAS,CAAC;AAEvB,sCAAa"}
|
|
@@ -4,16 +4,16 @@ exports.handle_account_pending = exports.handle_account_reconnect = exports.hand
|
|
|
4
4
|
const errors_1 = require("../utils/errors");
|
|
5
5
|
const call_1 = require("./call");
|
|
6
6
|
const account_call_1 = require("./account-call");
|
|
7
|
-
const shared_page_1 = require("./shared-page");
|
|
8
7
|
const accounts_1 = require("./accounts");
|
|
9
8
|
const options_1 = require("./options");
|
|
10
9
|
const result_1 = require("./result");
|
|
10
|
+
// connect, reconnect and pending. A link is a credential for whoever opens it: it is printed once, in the
|
|
11
|
+
// stdout field `link`, and nowhere else (see account-call.ts for the trace).
|
|
12
|
+
// The providers a one-mailbox email link is made for.
|
|
13
|
+
const EMAIL_PROVIDERS = ['gmail', 'office365'];
|
|
11
14
|
const EMAIL_NAME_MAX = 100; // Reply's limit on a connection link's label
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hint: 'With --allow-shared-page the account\'s hosted mailbox page is printed instead; '
|
|
15
|
-
+ `${shared_page_1.SHARED_PAGE_WARNING}.`,
|
|
16
|
-
});
|
|
15
|
+
// A Reply without one-mailbox email links: its route answers 404 with no code of Reply's own. Nothing else is offered.
|
|
16
|
+
const email_link_not_available = () => new errors_1.Operation_error('email_link.not_available', 'This Reply does not issue one-mailbox email connection links, so no link was made.', { status: 404 });
|
|
17
17
|
const text_or_null = (v) => (typeof v === 'string' && v.trim() !== '' ? v : null);
|
|
18
18
|
const positive_or_null = (v) => (typeof v === 'number' && Number.isSafeInteger(v) && v > 0 ? v : null);
|
|
19
19
|
// The link of a v3 answer, or an unreadable answer: the write was made, so a link Reply did not give back
|
|
@@ -32,36 +32,10 @@ const connection_link = (channel, kind, a, id) => {
|
|
|
32
32
|
kind, link_kind: 'connection_link',
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
// else the index. Reply's v1 gives no code, so the plan's refusal is named here.
|
|
37
|
-
const shared_page = async (s, g, kind, provider, id) => {
|
|
38
|
-
// Its answer is the address, in whatever shape Reply gives it, so the whole body is a secret.
|
|
39
|
-
const a = await (0, account_call_1.account_call)(s, g, 'GET', '/v1/SharedPageUrl', 'read', undefined, { secret_body: true });
|
|
40
|
-
if (a.status === 403 && /shared page is not enabled/i.test(JSON.stringify(a.data ?? ''))) {
|
|
41
|
-
throw new errors_1.Operation_error('shared_page.not_enabled', 'The account\'s plan does not include hosted pages, so there is no shared page.', {
|
|
42
|
-
status: 403,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
if (a.status !== 200) {
|
|
46
|
-
throw (0, call_1.refusal)((0, account_call_1.without_secrets)(a), 'read');
|
|
47
|
-
}
|
|
48
|
-
// {"url": …} as Reply's v1 answers it; a bare string is read as the address too.
|
|
49
|
-
const url = typeof a.data === 'string' ? a.data.trim() : (0, call_1.is_object)(a.data) ? a.data.url ?? a.data.Url : undefined;
|
|
50
|
-
const page = typeof url === 'string' ? (0, shared_page_1.read_shared_page)(url) : null;
|
|
51
|
-
if (page === null) {
|
|
52
|
-
throw (0, call_1.unreadable)(a, 'read');
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
channel: 'email', ...(id === undefined ? {} : { id }), link: (0, shared_page_1.shared_page_link)(page, provider, kind),
|
|
56
|
-
expires_at: null, pending_id: null, kind, link_kind: 'shared_page', warning: shared_page_1.SHARED_PAGE_WARNING,
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
const parse_provider = (raw) => (0, options_1.parse_choice)(raw, '--provider', shared_page_1.HOSTED_PROVIDERS);
|
|
35
|
+
const parse_provider = (raw) => (0, options_1.parse_choice)(raw, '--provider', EMAIL_PROVIDERS);
|
|
60
36
|
const email_only = (opts) => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
throw new errors_1.UsageError(`${flag} applies to --channel email only.`, { code: 'usage.channel' });
|
|
64
|
-
}
|
|
37
|
+
if (opts.provider !== undefined) {
|
|
38
|
+
throw new errors_1.UsageError('--provider applies to --channel email only.', { code: 'usage.channel' });
|
|
65
39
|
}
|
|
66
40
|
};
|
|
67
41
|
const connect_linkedin = async (s, g, name) => {
|
|
@@ -72,32 +46,12 @@ const connect_linkedin = async (s, g, name) => {
|
|
|
72
46
|
}
|
|
73
47
|
return connection_link('linkedin', 'connect', a);
|
|
74
48
|
};
|
|
75
|
-
const connect_email = async (s, g, provider, name
|
|
76
|
-
if (provider === undefined) {
|
|
77
|
-
// Reply's one-mailbox link is made for one provider. The shared page's index needs none, and is
|
|
78
|
-
// given only by a Reply without those links: a read of their list says which Reply this is.
|
|
79
|
-
const probe = await (0, account_call_1.account_call)(s, g, 'GET', '/v3/email-accounts/pending', 'read');
|
|
80
|
-
if (!(0, account_call_1.route_missing)(probe)) {
|
|
81
|
-
if (probe.status === 401 || probe.status === 429 || probe.status >= 500) {
|
|
82
|
-
throw (0, call_1.refusal)(probe, 'read');
|
|
83
|
-
}
|
|
84
|
-
throw new errors_1.Operation_error('email_link.provider_required', 'This Reply issues one-mailbox connection links, and each is made for one provider, so none was made.', {
|
|
85
|
-
status: probe.status, hint: 'Name the mailbox\'s provider: --provider gmail or --provider office365.',
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return shared_page(s, g, 'connect', undefined);
|
|
89
|
-
}
|
|
49
|
+
const connect_email = async (s, g, provider, name) => {
|
|
90
50
|
const a = await (0, account_call_1.account_call)(s, g, 'POST', '/v3/email-accounts/connection-link', 'write', { provider, ...(name === undefined ? {} : { name }) });
|
|
91
51
|
if (a.status === 201 || a.status === 200) {
|
|
92
52
|
return connection_link('email', 'connect', a);
|
|
93
53
|
}
|
|
94
|
-
|
|
95
|
-
throw (0, account_call_1.account_refusal)(a, 'write');
|
|
96
|
-
}
|
|
97
|
-
if (!allow_shared_page) {
|
|
98
|
-
throw email_link_not_available();
|
|
99
|
-
}
|
|
100
|
-
return shared_page(s, g, 'connect', provider);
|
|
54
|
+
throw (0, account_call_1.route_missing)(a) ? email_link_not_available() : (0, account_call_1.account_refusal)(a, 'write');
|
|
101
55
|
};
|
|
102
56
|
const handle_account_connect = async (opts, ctx, g) => {
|
|
103
57
|
const channel = (0, accounts_1.require_channel)(opts.channel);
|
|
@@ -117,15 +71,11 @@ const handle_account_connect = async (opts, ctx, g) => {
|
|
|
117
71
|
if (name !== undefined && name.length > EMAIL_NAME_MAX) {
|
|
118
72
|
throw new errors_1.UsageError(`--name must be at most ${EMAIL_NAME_MAX} characters.`, { code: 'usage.name' });
|
|
119
73
|
}
|
|
120
|
-
if (provider === undefined
|
|
121
|
-
throw new errors_1.UsageError('--provider is required for an email connection link: gmail or office365.', {
|
|
122
|
-
code: 'usage.provider',
|
|
123
|
-
hint: 'Only with --allow-shared-page, and only on a Reply without one-mailbox links, does the CLI print the hosted '
|
|
124
|
-
+ 'mailbox page without a provider.',
|
|
125
|
-
});
|
|
74
|
+
if (provider === undefined) {
|
|
75
|
+
throw new errors_1.UsageError('--provider is required for an email connection link: gmail or office365.', { code: 'usage.provider' });
|
|
126
76
|
}
|
|
127
77
|
const s = await (0, call_1.open_session)(ctx, g);
|
|
128
|
-
(0, result_1.print_result)(await connect_email(s, g, provider, name
|
|
78
|
+
(0, result_1.print_result)(await connect_email(s, g, provider, name), g);
|
|
129
79
|
};
|
|
130
80
|
exports.handle_account_connect = handle_account_connect;
|
|
131
81
|
const handle_account_reconnect = async (id_arg, opts, ctx, g) => {
|
|
@@ -145,21 +95,14 @@ const handle_account_reconnect = async (id_arg, opts, ctx, g) => {
|
|
|
145
95
|
return;
|
|
146
96
|
}
|
|
147
97
|
const id = (0, options_1.parse_id)(id_arg, 'Email account id', options_1.LARGEST_SAFE_ID);
|
|
148
|
-
const provider = parse_provider(opts.provider);
|
|
149
98
|
const s = await (0, call_1.open_session)(ctx, g);
|
|
150
|
-
// Reply takes the provider from the mailbox itself
|
|
99
|
+
// Reply takes the provider from the mailbox itself.
|
|
151
100
|
const a = await (0, account_call_1.account_call)(s, g, 'POST', `/v3/email-accounts/${id}/reconnect`, 'write');
|
|
152
101
|
if (a.status === 200 || a.status === 201) {
|
|
153
102
|
(0, result_1.print_result)(connection_link('email', 'reconnect', a, id), g);
|
|
154
103
|
return;
|
|
155
104
|
}
|
|
156
|
-
|
|
157
|
-
throw (0, account_call_1.account_refusal)(a, 'write');
|
|
158
|
-
}
|
|
159
|
-
if (opts.allowSharedPage !== true) {
|
|
160
|
-
throw email_link_not_available();
|
|
161
|
-
}
|
|
162
|
-
(0, result_1.print_result)(await shared_page(s, g, 'reconnect', provider, id), g);
|
|
105
|
+
throw (0, account_call_1.route_missing)(a) ? email_link_not_available() : (0, account_call_1.account_refusal)(a, 'write');
|
|
163
106
|
};
|
|
164
107
|
exports.handle_account_reconnect = handle_account_reconnect;
|
|
165
108
|
const pending_items = (a, channel) => {
|
|
@@ -183,18 +126,12 @@ const handle_account_pending = async (opts, ctx, g) => {
|
|
|
183
126
|
const only = (0, options_1.parse_choice)(opts.channel, '--channel', accounts_1.ACCOUNT_CHANNELS);
|
|
184
127
|
const s = await (0, call_1.open_session)(ctx, g);
|
|
185
128
|
const items = [];
|
|
186
|
-
const unsupported = [];
|
|
187
129
|
if (only !== 'linkedin') {
|
|
188
130
|
const a = await (0, account_call_1.account_call)(s, g, 'GET', '/v3/email-accounts/pending', 'read');
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
else if (a.status === 200) {
|
|
193
|
-
items.push(...pending_items(a, 'email'));
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
throw (0, account_call_1.account_refusal)(a, 'read');
|
|
131
|
+
if (a.status !== 200) {
|
|
132
|
+
throw (0, account_call_1.route_missing)(a) ? email_link_not_available() : (0, account_call_1.account_refusal)(a, 'read');
|
|
197
133
|
}
|
|
134
|
+
items.push(...pending_items(a, 'email'));
|
|
198
135
|
}
|
|
199
136
|
if (only !== 'email') {
|
|
200
137
|
const a = await (0, account_call_1.account_call)(s, g, 'GET', '/v3/linkedin-accounts/pending', 'read');
|
|
@@ -203,7 +140,9 @@ const handle_account_pending = async (opts, ctx, g) => {
|
|
|
203
140
|
}
|
|
204
141
|
items.push(...pending_items(a, 'linkedin'));
|
|
205
142
|
}
|
|
206
|
-
|
|
143
|
+
// supported and unsupported_channels are kept so a caller that reads them reads what it always read; a Reply
|
|
144
|
+
// without one-mailbox email links is refused above, so every channel listed is supported.
|
|
145
|
+
(0, result_1.print_result)({ items, supported: true, unsupported_channels: [] }, g);
|
|
207
146
|
};
|
|
208
147
|
exports.handle_account_pending = handle_account_pending;
|
|
209
148
|
//# sourceMappingURL=account-links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-links.js","sourceRoot":"","sources":["../../src/operations/account-links.ts"],"names":[],"mappings":";;;AAAA,4CAA4D;AAC5D,iCAAkG;AAClG,iDAA6F;AAC7F,+CAA8H;AAC9H,yCAAmF;AACnF,uCAAmF;AACnF,qCAAsC;AAatC,MAAM,cAAc,GAAG,GAAG,CAAC,CAAK,6CAA6C;AAE7E,MAAM,wBAAwB,GAAG,GAAmB,EAAE,CAAA,IAAI,wBAAe,CAAC,0BAA0B,EAChG,wFAAwF,EAAE;IACtF,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,kFAAkF;UAClF,GAAG,iCAAmB,GAAG;CAClC,CAAC,CAAC;AAEP,MAAM,YAAY,GAAG,CAAC,CAAU,EAAgB,EAAE,CAAA,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CA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