@audienti/cli 0.1.110 → 0.1.113
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 +18 -0
- package/package.json +1 -1
- package/src/api-client.js +4 -0
- package/src/cli.js +26 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to the Audienti CLI are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.113] - 2026-10-10
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Cohort stage output orders the new `request_not_accepted` stage between `connect_request` and `connected` (#2767).
|
|
12
|
+
|
|
13
|
+
## [0.1.112] - 2026-10-09
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `social-cookies activity` reads account-scoped action, sync, and browser activity with paging and filters.
|
|
18
|
+
|
|
19
|
+
## [0.1.111] - 2026-10-09
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Record shared setup API fixes in this CLI release: bare public domains normalize to HTTPS, and valid same-site retries preserve trusted website evidence and explicitly scoped corrections.
|
|
24
|
+
|
|
7
25
|
## [0.1.110] - 2026-10-08
|
|
8
26
|
|
|
9
27
|
### Added
|
package/package.json
CHANGED
package/src/api-client.js
CHANGED
|
@@ -78,6 +78,10 @@ export class AudientiClient {
|
|
|
78
78
|
return this.requestJson(accountPath(accountId, ["social_cookies", socialCookieId]));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
socialCookieActivity(accountId, socialCookieId, query = {}) {
|
|
82
|
+
return this.requestJson(accountPath(accountId, ["social_cookies", socialCookieId, "activity"], query));
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
createSocialCookie(accountId, body) {
|
|
82
86
|
return this.requestJson(accountPath(accountId, ["social_cookies"]), { method: "POST", body });
|
|
83
87
|
}
|
package/src/cli.js
CHANGED
|
@@ -277,6 +277,7 @@ const COHORT_STAGE_ORDER = [
|
|
|
277
277
|
"identified",
|
|
278
278
|
"pre_connect",
|
|
279
279
|
"connect_request",
|
|
280
|
+
"request_not_accepted",
|
|
280
281
|
"connected",
|
|
281
282
|
"engaged",
|
|
282
283
|
"meeting_requested",
|
|
@@ -15934,6 +15935,31 @@ const PARITY_ACTION_COMMANDS = new Map([
|
|
|
15934
15935
|
run: (client, accountId, [id]) => client.socialCookie(accountId, id),
|
|
15935
15936
|
done: (_positionals, payload) => describeSocialCookie(payload?.social_cookie)
|
|
15936
15937
|
}],
|
|
15938
|
+
["social-cookies activity", {
|
|
15939
|
+
usage: "audienti social-cookies activity <scok_id> [--section <actions|status|sync|browser>] [--window <1h|24h|7d|30d>] [--task-type <type>] [--page <n>]",
|
|
15940
|
+
purpose: "Read a social account's action, sync, and browser activity without changing work.",
|
|
15941
|
+
api: "GET /api/v1/accounts/:account_id/social_cookies/:id/activity.json",
|
|
15942
|
+
json: true,
|
|
15943
|
+
options: {
|
|
15944
|
+
section: { type: "string" }, window: { type: "string" }, "task-type": { type: "string" },
|
|
15945
|
+
page: { type: "string" }, "per-page": { type: "string" }, "event-id": { type: "string" },
|
|
15946
|
+
"task-id": { type: "string" }, "session-id": { type: "string" }, status: { type: "string" },
|
|
15947
|
+
"action-type": { type: "string" }, "automation-filter": { type: "string" }, query: { type: "string" },
|
|
15948
|
+
"created-from": { type: "string" }, "created-to": { type: "string" }
|
|
15949
|
+
},
|
|
15950
|
+
run: (client, accountId, [id], values) => client.socialCookieActivity(accountId, id, compactObject({
|
|
15951
|
+
section: values.section, window: values.window, task_type: values["task-type"], page: values.page,
|
|
15952
|
+
per_page: values["per-page"], event_id: values["event-id"], task_id: values["task-id"],
|
|
15953
|
+
session_id: values["session-id"], status: values.status, action_type: values["action-type"],
|
|
15954
|
+
automation_filter: values["automation-filter"], query: values.query,
|
|
15955
|
+
created_from: values["created-from"], created_to: values["created-to"]
|
|
15956
|
+
})),
|
|
15957
|
+
done: (_positionals, payload) => {
|
|
15958
|
+
const section = payload?.section || "activity";
|
|
15959
|
+
const count = payload?.total_count ?? payload?.groups?.length ?? payload?.history?.length ?? payload?.rows?.length ?? 0;
|
|
15960
|
+
return `Loaded ${count} ${section} activity rows.`;
|
|
15961
|
+
}
|
|
15962
|
+
}],
|
|
15937
15963
|
["social-cookies pause", {
|
|
15938
15964
|
usage: "audienti social-cookies pause <scok_id>",
|
|
15939
15965
|
purpose: "Pause one social account so no activity runs until it is resumed.",
|