reply-cli 0.19.1 → 0.21.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 +104 -4
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/operations/account-call.d.ts +20 -0
- package/dist/operations/account-call.js +197 -0
- package/dist/operations/account-call.js.map +1 -0
- package/dist/operations/account-links.d.ts +14 -0
- package/dist/operations/account-links.js +209 -0
- package/dist/operations/account-links.js.map +1 -0
- package/dist/operations/account-manage.d.ts +20 -0
- package/dist/operations/account-manage.js +187 -0
- package/dist/operations/account-manage.js.map +1 -0
- package/dist/operations/accounts.d.ts +7 -1
- package/dist/operations/accounts.js +12 -1
- package/dist/operations/accounts.js.map +1 -1
- package/dist/operations/call.d.ts +2 -1
- package/dist/operations/call.js +1 -1
- package/dist/operations/call.js.map +1 -1
- package/dist/operations/commands.d.ts +2 -1
- package/dist/operations/commands.js +307 -3
- package/dist/operations/commands.js.map +1 -1
- package/dist/operations/contact-list.d.ts +12 -1
- package/dist/operations/contact-list.js +92 -4
- package/dist/operations/contact-list.js.map +1 -1
- package/dist/operations/live-data-preview.d.ts +10 -0
- package/dist/operations/live-data-preview.js +142 -0
- package/dist/operations/live-data-preview.js.map +1 -0
- package/dist/operations/live-data.d.ts +30 -0
- package/dist/operations/live-data.js +179 -0
- package/dist/operations/live-data.js.map +1 -0
- package/dist/operations/options.d.ts +1 -0
- package/dist/operations/options.js +1 -1
- package/dist/operations/options.js.map +1 -1
- package/dist/operations/sequence-by-name.js +2 -13
- package/dist/operations/sequence-by-name.js.map +1 -1
- package/dist/operations/shared-page.d.ts +12 -0
- package/dist/operations/shared-page.js +55 -0
- package/dist/operations/shared-page.js.map +1 -0
- package/dist/operations/stdin-input.d.ts +2 -1
- package/dist/operations/stdin-input.js +14 -1
- package/dist/operations/stdin-input.js.map +1 -1
- package/dist/utils/client.d.ts +2 -1
- package/dist/utils/client.js +2 -1
- package/dist/utils/client.js.map +1 -1
- package/package.json +1 -1
- package/skills/reply-adapter/reply-cli/SKILL.md +16 -5
- package/skills/reply-adapter/reply-operations-mapping/SKILL.md +22 -11
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const HOSTED_PROVIDERS: readonly ["gmail", "office365"];
|
|
2
|
+
type Hosted_provider = typeof HOSTED_PROVIDERS[number];
|
|
3
|
+
declare const SHARED_PAGE_WARNING = "this address does not expire and lets its holder manage all of this user's mailboxes, deletion included";
|
|
4
|
+
type Shared_page = {
|
|
5
|
+
index: string;
|
|
6
|
+
token: string;
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
declare const read_shared_page: (url: string) => Shared_page | null;
|
|
10
|
+
declare const shared_page_link: (page: Shared_page, provider: Hosted_provider | undefined, kind: "connect" | "reconnect") => string;
|
|
11
|
+
export { HOSTED_PROVIDERS, SHARED_PAGE_WARNING, read_shared_page, shared_page_link };
|
|
12
|
+
export type { Hosted_provider, Shared_page };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The addresses of Reply's hosted mailbox page, all built from the one address Reply's v1 shared-page
|
|
3
|
+
// route answers. Every form here carries the account user's hosted token: it does not expire, and it lets
|
|
4
|
+
// whoever holds it manage all of that user's mailboxes, deletion included. So none of them is ever
|
|
5
|
+
// written anywhere but the one stdout field that hands it over.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.shared_page_link = exports.read_shared_page = exports.SHARED_PAGE_WARNING = exports.HOSTED_PROVIDERS = void 0;
|
|
8
|
+
const HOSTED_PROVIDERS = ['gmail', 'office365'];
|
|
9
|
+
exports.HOSTED_PROVIDERS = HOSTED_PROVIDERS;
|
|
10
|
+
const SHARED_PAGE_WARNING = 'this address does not expire and lets its holder manage all of this user\'s mailboxes, deletion included';
|
|
11
|
+
exports.SHARED_PAGE_WARNING = SHARED_PAGE_WARNING;
|
|
12
|
+
// Reply answers the hosted index, `{origin}/hosted/eac/index/{token}`.
|
|
13
|
+
const INDEX_PATH = /^(.*)\/hosted\/eac\/index\/([^/]+)\/?$/i;
|
|
14
|
+
// The parts of the address Reply answered, or null when it is not in that form. Nothing of the
|
|
15
|
+
// address goes into an error, so a caller says only that it could not be read.
|
|
16
|
+
const read_shared_page = (url) => {
|
|
17
|
+
let parsed;
|
|
18
|
+
try {
|
|
19
|
+
parsed = new URL(url);
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const m = INDEX_PATH.exec(parsed.pathname);
|
|
25
|
+
if ((parsed.protocol !== 'https:' && parsed.protocol !== 'http:') || m === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
let token;
|
|
29
|
+
try {
|
|
30
|
+
token = decodeURIComponent(m[2]);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return token === '' ? null : { index: url, token, base: `${parsed.origin}${m[1]}` };
|
|
36
|
+
};
|
|
37
|
+
exports.read_shared_page = read_shared_page;
|
|
38
|
+
// The page to open: the provider's own connect when one is named, else the index of every mailbox. A
|
|
39
|
+
// provider's connect for a reconnect says so: without it the hosted page counts the sign-in as a new
|
|
40
|
+
// mailbox, and a user with no free mailbox slot is sent to that error instead of reconnecting. The index
|
|
41
|
+
// needs nothing: it adds the flag itself when the person reconnects a mailbox already on it.
|
|
42
|
+
const shared_page_link = (page, provider, kind) => {
|
|
43
|
+
const token = encodeURIComponent(page.token);
|
|
44
|
+
const reconnect = kind === 'reconnect' ? '&reconnect=true' : '';
|
|
45
|
+
switch (provider) {
|
|
46
|
+
case 'gmail':
|
|
47
|
+
return `${page.base}/hosted/eac/ConnectWithGMail?uidToken=${token}${reconnect}`;
|
|
48
|
+
case 'office365':
|
|
49
|
+
return `${page.base}/hosted/eac/ConnectWithOffice?uidToken=${token}&isExchange=false${reconnect}`;
|
|
50
|
+
default:
|
|
51
|
+
return page.index;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.shared_page_link = shared_page_link;
|
|
55
|
+
//# sourceMappingURL=shared-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-page.js","sourceRoot":"","sources":["../../src/operations/shared-page.ts"],"names":[],"mappings":";AAAA,sGAAsG;AACtG,0GAA0G;AAC1G,mGAAmG;AACnG,gEAAgE;;;AAEhE,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,WAAW,CAAU,CAAC;AAuDjD,4CAAgB;AApDxB,MAAM,mBAAmB,GAAG,0GAA0G,CAAC;AAoD7G,kDAAmB;AAlD7C,uEAAuE;AACvE,MAAM,UAAU,GAAG,yCAAyC,CAAC;AAQ7D,+FAA+F;AAC/F,+EAA+E;AAC/E,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAqB,EAAE;IACxD,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACD,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EAC/E,CAAC;QACG,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,KAAa,CAAC;IAClB,IAAI,CAAC;QACD,KAAK,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAC,CAAC;AACtF,CAAC,CAAC;AAoB6C,4CAAgB;AAlB/D,qGAAqG;AACrG,qGAAqG;AACrG,yGAAyG;AACzG,6FAA6F;AAC7F,MAAM,gBAAgB,GAAG,CAAC,IAAiB,EAAE,QAAqC,EAAE,IAA6B,EAAS,EAAE;IACxH,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,QAAQ,QAAQ,EAChB,CAAC;QACG,KAAK,OAAO;YACR,OAAO,GAAG,IAAI,CAAC,IAAI,yCAAyC,KAAK,GAAG,SAAS,EAAE,CAAC;QACpF,KAAK,WAAW;YACZ,OAAO,GAAG,IAAI,CAAC,IAAI,0CAA0C,KAAK,oBAAoB,SAAS,EAAE,CAAC;QACtG;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;IAC1B,CAAC;AACL,CAAC,CAAC;AAE+D,4CAAgB"}
|
|
@@ -10,5 +10,6 @@ declare const stdin_inputs: <K extends string>(sources: Record<K, string | undef
|
|
|
10
10
|
code: string;
|
|
11
11
|
hint: string;
|
|
12
12
|
}, read_stdin?: () => string) => Record<K, () => string>;
|
|
13
|
-
|
|
13
|
+
declare const read_stdin_name: (source: string | undefined, command: string, read_stdin?: () => string) => string;
|
|
14
|
+
export { read_stdin_object, stdin_inputs, read_stdin_name };
|
|
14
15
|
export type { Stdin_object_opts };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stdin_inputs = exports.read_stdin_object = void 0;
|
|
3
|
+
exports.read_stdin_name = exports.stdin_inputs = exports.read_stdin_object = void 0;
|
|
4
|
+
const config_1 = require("../config");
|
|
4
5
|
const errors_1 = require("../utils/errors");
|
|
5
6
|
const json_arg_1 = require("../utils/json-arg");
|
|
6
7
|
const call_1 = require("./call");
|
|
@@ -67,4 +68,16 @@ const stdin_inputs = (sources, o, read_stdin) => {
|
|
|
67
68
|
return Object.fromEntries(names.map(n => [n, sources[n] === '-' ? () => JSON.stringify(input[n]) : read]));
|
|
68
69
|
};
|
|
69
70
|
exports.stdin_inputs = stdin_inputs;
|
|
71
|
+
// A name a person gave (a sequence's, a list's) is read from stdin only, sent as given, never repeated in a message.
|
|
72
|
+
const read_stdin_name = (source, command, read_stdin) => {
|
|
73
|
+
const raw = read_stdin_object(source, {
|
|
74
|
+
flag: '--name', what: 'name', fields: ['name'], code: 'usage.name',
|
|
75
|
+
hint: `Pipe it in: echo '{"name":"…"}' | ${config_1.PROGRAM_NAME} ${command} --name -`,
|
|
76
|
+
}, read_stdin);
|
|
77
|
+
if (typeof raw.name !== 'string' || raw.name.trim() === '') {
|
|
78
|
+
throw new errors_1.UsageError('The name must be a string that is not blank.', { code: 'usage.name' });
|
|
79
|
+
}
|
|
80
|
+
return raw.name;
|
|
81
|
+
};
|
|
82
|
+
exports.read_stdin_name = read_stdin_name;
|
|
70
83
|
//# sourceMappingURL=stdin-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdin-input.js","sourceRoot":"","sources":["../../src/operations/stdin-input.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,gDAAiD;AACjD,iCAAiC;AAUjC,mGAAmG;AACnG,kGAAkG;AAClG,mCAAmC;AACnC,MAAM,iBAAiB,GAAG,CAAC,MAA0B,EAAE,CAAoB,EAAE,UAAyB,EAA0B,EAAE;IAC9H,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IACzC,IAAI,MAAM,KAAK,GAAG,EAClB,CAAC;QACG,MAAM,IAAI,mBAAU,CAAC,MA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ind?: Call_kind;
|
|
5
5
|
};
|
|
6
|
+
declare const sleep: (ms: number) => Promise<void>;
|
|
6
7
|
declare const parse_retry_after: (raw: string | null | undefined) => number | null;
|
|
7
8
|
declare const request: <T = unknown>(base_url: string, token: string, method: string, endpoint: string, body?: unknown, opts?: Request_opts) => Promise<T>;
|
|
8
9
|
declare const get: <T = unknown>(base_url: string, token: string, endpoint: string, opts?: Request_opts) => Promise<T>;
|
|
@@ -22,5 +23,5 @@ type Client = {
|
|
|
22
23
|
get<T = unknown>(endpoint: string, opts?: Request_opts): Promise<T>;
|
|
23
24
|
};
|
|
24
25
|
declare const create_client: (base_url: string, token: string, headers?: Record<string, string>) => Client;
|
|
25
|
-
export { request, get, request_raw, create_client, parse_retry_after };
|
|
26
|
+
export { request, get, request_raw, create_client, parse_retry_after, sleep };
|
|
26
27
|
export type { Request_opts, Client, Raw_response, Call_kind };
|
package/dist/utils/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parse_retry_after = exports.create_client = exports.request_raw = exports.get = exports.request = void 0;
|
|
3
|
+
exports.sleep = exports.parse_retry_after = exports.create_client = exports.request_raw = exports.get = exports.request = void 0;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const output_1 = require("./output");
|
|
6
6
|
const errors_1 = require("./errors");
|
|
@@ -41,6 +41,7 @@ const hint_for = (status) => {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
44
|
+
exports.sleep = sleep;
|
|
44
45
|
// Join base + endpoint with exactly one slash, tolerating a trailing slash on
|
|
45
46
|
// the base or a missing leading slash on the endpoint (a query string rides along).
|
|
46
47
|
const join_url = (base, endpoint) => `${base.replace(/\/+$/, '')}/${endpoint.replace(/^\/+/, '')}`;
|
package/dist/utils/client.js.map
CHANGED
|
@@ -1 +1 @@
|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ACX,OAAO,EAAE,EAAC,GAAG,OAAO,EAAE,aAAa,EAAE,UAAU,iBAAQ,EAAE,EAAC;QAC1D,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACtD,CAAC;IACF,MAAM,EAAC,GAAG,EAAE,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IACjE,OAAO;QACH,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;QACpC,gBAAgB,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC;QAChD,OAAO,EAAE,YAAY;KACxB,CAAC;AACN,CAAC,CAAC;AAaoB,kCAAW;AAPjC,MAAM,aAAa,GAAG,CAClB,QAAgB,EAAE,KAAa,EAAE,OAAgC,EAC5D,EAAE,CAAA,CAAC;IACR,GAAG,EAAE,CAAc,QAAgB,EAAE,IAAmB,EAAC,EAAE,CACvD,GAAG,CAAI,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAC,GAAG,IAAI,EAAE,OAAO,EAAE,EAAC,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAC,EAAC,CAAC;CAC5F,CAAC,CAAC;AAEgC,sCAAa"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ description: >
|
|
|
6
6
|
Use when executing any Reply.io operation from a shell, setting up authentication,
|
|
7
7
|
or when another Reply skill needs commands executed.
|
|
8
8
|
metadata:
|
|
9
|
-
version: 1.
|
|
9
|
+
version: 1.4.0
|
|
10
10
|
pack: reply-adapter
|
|
11
11
|
category: execution
|
|
12
12
|
maturity: reviewed
|
|
@@ -145,10 +145,16 @@ exit codes with their error `code` slugs.
|
|
|
145
145
|
- `Not authenticated` → run the auth setup above.
|
|
146
146
|
- `TEAM_REQUIRED` / `TEAM_NOT_ACCESSIBLE` / `USER_REQUIRED` / `USER_NOT_FOUND` → see
|
|
147
147
|
`reply-auth` skill; the CLI's stderr guidance shows the exact fix.
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
`reply-operations-mapping`.
|
|
148
|
+
- Work commands exist for the most common operations (`sequence`, `contact-list`, `live-data`,
|
|
149
|
+
`contact`, `inbox`, `account`, `schedule`, `direct-send`); `reply --help` lists them and each
|
|
150
|
+
command's `--help` gives its result and error codes. Don't invent one: reach any other operation
|
|
151
|
+
through `reply api`, using the endpoint mapping in `reply-operations-mapping`.
|
|
152
|
+
- `reply account connect` and `reply account reconnect` print a link for the person who signs in to
|
|
153
|
+
the account to open. The link is a credential: it is in the stdout field `link` once and nowhere
|
|
154
|
+
else (a `--verbose` trace shows `<link redacted>`). Hand it to that person and do not store, log
|
|
155
|
+
or repeat it. `email_link.not_available` means this Reply has no one-mailbox email link yet; pass
|
|
156
|
+
`--allow-shared-page` only when the user accepts the hosted mailbox page, whose address does not
|
|
157
|
+
expire and lets its holder manage all of that user's mailboxes, deletion included.
|
|
152
158
|
|
|
153
159
|
## Safety
|
|
154
160
|
|
|
@@ -165,6 +171,11 @@ explicit confirmation its Safety section requires.
|
|
|
165
171
|
|
|
166
172
|
## Changelog
|
|
167
173
|
|
|
174
|
+
- 1.4.0 (2026-11-11): *Failure modes* says how to treat the link `account connect` and `account
|
|
175
|
+
reconnect` print, and when `--allow-shared-page` is right.
|
|
176
|
+
- 1.3.2 (2026-11-06): *Failure modes* no longer says the work commands don't exist: it names the groups
|
|
177
|
+
(`sequence`, `contact-list`, `live-data`, `contact`, `inbox`, `account`, `schedule`, `direct-send`) and
|
|
178
|
+
keeps `reply api` for every other operation.
|
|
168
179
|
- 1.3.1 (2026-11-05): `reply api` says that a 429 naming a `reference` or saying a daily or weekly
|
|
169
180
|
limit was reached is never resent and comes back at once as the refusal it is.
|
|
170
181
|
- 1.3.0 (2026-08-10): said plainly that reaching the whole API is not reaching the whole job — the
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
interpreting in business terms, or when you need to know whether Reply can do a thing at all
|
|
9
9
|
before promising it to a user.
|
|
10
10
|
metadata:
|
|
11
|
-
version: 2.3.
|
|
11
|
+
version: 2.3.1
|
|
12
12
|
pack: reply-adapter
|
|
13
13
|
category: execution
|
|
14
14
|
maturity: draft
|
|
@@ -261,18 +261,23 @@ them wrong:
|
|
|
261
261
|
and the AI-SDR cluster are documented Beta or Coming soon. That belongs in the sentence where
|
|
262
262
|
the user chooses the route, before they commit to it — not in a caveat after the work. Fetch
|
|
263
263
|
the doc page and confirm the endpoint is callable, exactly as with any other surface.
|
|
264
|
-
3. **One
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
3. **One unfinished search per filter set.** Reply refuses a start while an unfinished search of
|
|
265
|
+
the same team has the same filters, running or paused; searches with different filters run side
|
|
266
|
+
by side, and the target lists don't count. This is a Reply fact and it belongs nowhere else. An
|
|
267
|
+
agent that does not know it will read the refusal as a failure and retry it. Before running the
|
|
268
|
+
same filters again, let the earlier search finish, or delete it once its final counts are read;
|
|
269
|
+
a resumed search is unfinished again and still holds its filters.
|
|
268
270
|
|
|
269
271
|
Build the filter from the typeahead values — departments, industries, job titles, locations,
|
|
270
272
|
seniorities — rather than guessing accepted ones. Check the existing searches before starting a
|
|
271
|
-
near-identical one: a repeat spends again and returns a different world.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
near-identical one: a repeat spends again and returns a different world. A start adds the people it
|
|
274
|
+
finds as contacts and puts them on the lists it names itself, so nothing it finds goes through
|
|
275
|
+
`contact.create` or `import.apply`: hold the start to the approval gate of an import before it
|
|
276
|
+
runs, and read the people back off its list. Start can optionally drop the found people straight
|
|
277
|
+
into a sequence; treat that as `campaign.enroll` and hold it to the enrolment gate rather than
|
|
278
|
+
letting it ride along. With reply-cli these are `reply live-data preview`, `start`, `get`, `list`,
|
|
279
|
+
`pause`, `resume`, `delete` and `filter-values`, and `reply contact-list contacts` reads a list's
|
|
280
|
+
people back.
|
|
276
281
|
|
|
277
282
|
**Contact enrichment is documented as available late August 2026 and is not callable today.**
|
|
278
283
|
`contact.enrich`, `company.enrich` and `phone_number.verify` are `absent` for that reason. Say
|
|
@@ -388,7 +393,8 @@ says — never let it disappear from the report because nothing was called.
|
|
|
388
393
|
what *this credential* may do is `capability.list`, and here that is answered by an
|
|
389
394
|
`insufficient_scope` refusal rather than by a listing.
|
|
390
395
|
- **Parallelising measurement** reads and hitting `429`, then retrying harder.
|
|
391
|
-
- **
|
|
396
|
+
- **Running the same Live Data filters twice at once.** The second start is refused while the first
|
|
397
|
+
search is unfinished, running or paused; searches with different filters run side by side.
|
|
392
398
|
- **Starting a Live Data search without previewing it.** Start spends the user's allowance; the
|
|
393
399
|
mistake is only visible once it is already paid for.
|
|
394
400
|
- **Presenting a beta surface as settled**, or a *coming soon* one as callable. Contact enrichment
|
|
@@ -424,6 +430,11 @@ those as irreversible with no window and say so before acting rather than after.
|
|
|
424
430
|
|
|
425
431
|
## Changelog
|
|
426
432
|
|
|
433
|
+
- 2.3.1 (2026-11-06): Live Data's limit stated as Reply enforces it: one unfinished search per filter
|
|
434
|
+
set, not one per team; searches with different filters run side by side, and only an earlier
|
|
435
|
+
search that finished or was deleted frees its filters. A start puts the people it finds on its
|
|
436
|
+
lists itself, so nothing goes through `contact.create` or `import.apply`; the reply-cli commands
|
|
437
|
+
are named.
|
|
427
438
|
- 2.3.0 (2026-10-30): `message.send` in the fulfilment register says that a message composed as a
|
|
428
439
|
template goes by the same command and that Reply fills it in, before anything goes or when it
|
|
429
440
|
goes, and points to reply-api's *Templates* for the rest.
|