rizamo 1.2.0 → 1.3.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 (76) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/accounts/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/analytics/client/Client.d.ts +24 -0
  5. package/dist/cjs/api/resources/analytics/client/Client.js +98 -0
  6. package/dist/cjs/api/resources/analytics/client/requests/KeywordsAnalyticsRequest.d.ts +22 -0
  7. package/dist/cjs/api/resources/analytics/client/requests/KeywordsAnalyticsRequest.js +3 -0
  8. package/dist/cjs/api/resources/analytics/client/requests/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/analytics/types/KeywordsAnalyticsResponse.d.ts +36 -0
  10. package/dist/cjs/api/resources/analytics/types/KeywordsAnalyticsResponse.js +3 -0
  11. package/dist/cjs/api/resources/analytics/types/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/analytics/types/index.js +1 -0
  13. package/dist/cjs/api/resources/connect/types/LinkConnectRequestNetwork.d.ts +1 -0
  14. package/dist/cjs/api/resources/connect/types/LinkConnectRequestNetwork.js +1 -0
  15. package/dist/cjs/api/resources/events/client/Client.d.ts +1 -1
  16. package/dist/cjs/api/resources/events/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/inbox/client/requests/ListInboxRequest.d.ts +1 -1
  18. package/dist/cjs/api/resources/inbox/types/ListInboxRequestKind.d.ts +1 -1
  19. package/dist/cjs/api/resources/inbox/types/ListInboxRequestKind.js +1 -1
  20. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +1 -1
  21. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +1 -1
  22. package/dist/cjs/api/types/AnalyticsOverview.d.ts +25 -0
  23. package/dist/cjs/api/types/Event.d.ts +1 -1
  24. package/dist/cjs/api/types/EventType.d.ts +2 -0
  25. package/dist/cjs/api/types/EventType.js +2 -0
  26. package/dist/cjs/api/types/PostFormat.d.ts +3 -1
  27. package/dist/cjs/api/types/PostFormat.js +3 -1
  28. package/dist/cjs/api/types/PostTarget.d.ts +2 -0
  29. package/dist/cjs/api/types/PostTarget.js +2 -0
  30. package/dist/cjs/api/types/TargetOptions.d.ts +40 -0
  31. package/dist/cjs/api/types/TargetOptions.js +15 -0
  32. package/dist/cjs/api/types/Thread.d.ts +43 -2
  33. package/dist/cjs/api/types/Thread.js +23 -1
  34. package/dist/cjs/api/types/WebhookEventType.d.ts +2 -0
  35. package/dist/cjs/api/types/WebhookEventType.js +2 -0
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/esm/BaseClient.mjs +2 -2
  39. package/dist/esm/api/resources/accounts/client/Client.d.mts +1 -1
  40. package/dist/esm/api/resources/accounts/client/Client.mjs +1 -1
  41. package/dist/esm/api/resources/analytics/client/Client.d.mts +24 -0
  42. package/dist/esm/api/resources/analytics/client/Client.mjs +98 -0
  43. package/dist/esm/api/resources/analytics/client/requests/KeywordsAnalyticsRequest.d.mts +22 -0
  44. package/dist/esm/api/resources/analytics/client/requests/KeywordsAnalyticsRequest.mjs +2 -0
  45. package/dist/esm/api/resources/analytics/client/requests/index.d.mts +1 -0
  46. package/dist/esm/api/resources/analytics/types/KeywordsAnalyticsResponse.d.mts +36 -0
  47. package/dist/esm/api/resources/analytics/types/KeywordsAnalyticsResponse.mjs +2 -0
  48. package/dist/esm/api/resources/analytics/types/index.d.mts +1 -0
  49. package/dist/esm/api/resources/analytics/types/index.mjs +1 -0
  50. package/dist/esm/api/resources/connect/types/LinkConnectRequestNetwork.d.mts +1 -0
  51. package/dist/esm/api/resources/connect/types/LinkConnectRequestNetwork.mjs +1 -0
  52. package/dist/esm/api/resources/events/client/Client.d.mts +1 -1
  53. package/dist/esm/api/resources/events/client/Client.mjs +1 -1
  54. package/dist/esm/api/resources/inbox/client/requests/ListInboxRequest.d.mts +1 -1
  55. package/dist/esm/api/resources/inbox/types/ListInboxRequestKind.d.mts +1 -1
  56. package/dist/esm/api/resources/inbox/types/ListInboxRequestKind.mjs +1 -1
  57. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +1 -1
  58. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +1 -1
  59. package/dist/esm/api/types/AnalyticsOverview.d.mts +25 -0
  60. package/dist/esm/api/types/Event.d.mts +1 -1
  61. package/dist/esm/api/types/EventType.d.mts +2 -0
  62. package/dist/esm/api/types/EventType.mjs +2 -0
  63. package/dist/esm/api/types/PostFormat.d.mts +3 -1
  64. package/dist/esm/api/types/PostFormat.mjs +3 -1
  65. package/dist/esm/api/types/PostTarget.d.mts +2 -0
  66. package/dist/esm/api/types/PostTarget.mjs +2 -0
  67. package/dist/esm/api/types/TargetOptions.d.mts +40 -0
  68. package/dist/esm/api/types/TargetOptions.mjs +15 -0
  69. package/dist/esm/api/types/Thread.d.mts +43 -2
  70. package/dist/esm/api/types/Thread.mjs +23 -1
  71. package/dist/esm/api/types/WebhookEventType.d.mts +2 -0
  72. package/dist/esm/api/types/WebhookEventType.mjs +2 -0
  73. package/dist/esm/version.d.mts +1 -1
  74. package/dist/esm/version.mjs +1 -1
  75. package/package.json +1 -1
  76. package/reference.md +85 -2
@@ -4,8 +4,10 @@ export interface Thread {
4
4
  profileId: string;
5
5
  accountId: string;
6
6
  network: Rizamo.Network;
7
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
7
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
8
8
  kind: Thread.Kind;
9
+ /** Reviews: the stars, the reviewer's photos and videos, and Google's check of the reply. Null for every other kind. */
10
+ review: Thread.Review | null;
9
11
  /** The person on the other side. Null on a comment the account wrote itself ("Your comment"), which arrives done since there is nothing to answer, until someone replies to it: then it opens again with that person. */
10
12
  contact: Rizamo.Contact | null;
11
13
  /** Comments: the Rizamo post (`post_`) the comment is on, when it went out through Rizamo. Null on posts made elsewhere, and for messages. */
@@ -24,7 +26,7 @@ export interface Thread {
24
26
  replyWindowEndsAt: string | null;
25
27
  }
26
28
  export declare namespace Thread {
27
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
29
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
28
30
  const Kind: {
29
31
  readonly Comment: "comment";
30
32
  readonly Dm: "dm";
@@ -32,6 +34,45 @@ export declare namespace Thread {
32
34
  readonly Review: "review";
33
35
  };
34
36
  type Kind = (typeof Kind)[keyof typeof Kind];
37
+ interface Review {
38
+ /** The reviewer's stars, 1 to 5, as last read: a reviewer can change them. Null when Google gives none. */
39
+ rating: number | null;
40
+ /** Photos and videos the reviewer added, as Google's links. */
41
+ media: Review.Media.Item[];
42
+ /** The business's one reply, as Google last showed it: the thread's outbound message. Null before there is one. */
43
+ reply: Review.Reply | null;
44
+ }
45
+ namespace Review {
46
+ type Media = Media.Item[];
47
+ namespace Media {
48
+ interface Item {
49
+ type: Item.Type;
50
+ url: string;
51
+ }
52
+ namespace Item {
53
+ const Type: {
54
+ readonly Photo: "photo";
55
+ readonly Video: "video";
56
+ };
57
+ type Type = (typeof Type)[keyof typeof Type];
58
+ }
59
+ }
60
+ interface Reply {
61
+ /** Google's check of the business's reply: `pending` until Google approves it (usually minutes, at times up to 30 days), `approved`, or `rejected` with why in `issue`. */
62
+ state: Reply.State;
63
+ /** Why Google rejected the reply, in its words, when `state` is `rejected`. */
64
+ issue: string | null;
65
+ }
66
+ namespace Reply {
67
+ /** Google's check of the business's reply: `pending` until Google approves it (usually minutes, at times up to 30 days), `approved`, or `rejected` with why in `issue`. */
68
+ const State: {
69
+ readonly Pending: "pending";
70
+ readonly Approved: "approved";
71
+ readonly Rejected: "rejected";
72
+ };
73
+ type State = (typeof State)[keyof typeof State];
74
+ }
75
+ }
35
76
  const Status: {
36
77
  readonly Open: "open";
37
78
  readonly Done: "done";
@@ -4,13 +4,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Thread = void 0;
5
5
  var Thread;
6
6
  (function (Thread) {
7
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
7
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
8
8
  Thread.Kind = {
9
9
  Comment: "comment",
10
10
  Dm: "dm",
11
11
  Mention: "mention",
12
12
  Review: "review",
13
13
  };
14
+ let Review;
15
+ (function (Review) {
16
+ let Media;
17
+ (function (Media) {
18
+ let Item;
19
+ (function (Item) {
20
+ Item.Type = {
21
+ Photo: "photo",
22
+ Video: "video",
23
+ };
24
+ })(Item = Media.Item || (Media.Item = {}));
25
+ })(Media = Review.Media || (Review.Media = {}));
26
+ let Reply;
27
+ (function (Reply) {
28
+ /** Google's check of the business's reply: `pending` until Google approves it (usually minutes, at times up to 30 days), `approved`, or `rejected` with why in `issue`. */
29
+ Reply.State = {
30
+ Pending: "pending",
31
+ Approved: "approved",
32
+ Rejected: "rejected",
33
+ };
34
+ })(Reply = Review.Reply || (Review.Reply = {}));
35
+ })(Review = Thread.Review || (Thread.Review = {}));
14
36
  Thread.Status = {
15
37
  Open: "open",
16
38
  Done: "done",
@@ -14,6 +14,8 @@ export declare const WebhookEventType: {
14
14
  readonly CommentReceived: "comment.received";
15
15
  readonly MessageReceived: "message.received";
16
16
  readonly MessageSent: "message.sent";
17
+ readonly ReviewReceived: "review.received";
18
+ readonly ReviewUpdated: "review.updated";
17
19
  readonly CommentAutomationSent: "comment_automation.sent";
18
20
  readonly CommentAutomationFailed: "comment_automation.failed";
19
21
  readonly CommentAutomationPaused: "comment_automation.paused";
@@ -18,6 +18,8 @@ exports.WebhookEventType = {
18
18
  CommentReceived: "comment.received",
19
19
  MessageReceived: "message.received",
20
20
  MessageSent: "message.sent",
21
+ ReviewReceived: "review.received",
22
+ ReviewUpdated: "review.updated",
21
23
  CommentAutomationSent: "comment_automation.sent",
22
24
  CommentAutomationFailed: "comment_automation.failed",
23
25
  CommentAutomationPaused: "comment_automation.paused",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.0";
1
+ export declare const SDK_VERSION = "1.3.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.0";
4
+ exports.SDK_VERSION = "1.3.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "rizamo",
9
- "X-Fern-SDK-Version": "1.2.0",
10
- "User-Agent": "rizamo/1.2.0",
9
+ "X-Fern-SDK-Version": "1.3.0",
10
+ "User-Agent": "rizamo/1.3.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -59,7 +59,7 @@ export declare class AccountsClient {
59
59
  get(request: Rizamo.GetAccountsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Rizamo.Account>;
60
60
  private __get;
61
61
  /**
62
- * It stops publishing and is no longer billed, and nothing changes on its network. Its posts: one that goes to it alone moves to Deleted (`post.deleted`), scheduled, draft or published, and can be restored for 30 days; one with other accounts keeps them, loses this account's part that never went out (`post.updated`) and keeps the part that did, with its `url` and without its numbers (`accountRemoved` on the target). The answer counts them by status (`Preview removing an account` counts them before). Its name, picture and followers go at once; its handle stays to name those parts, with their links, for as long as their posts exist. What Rizamo read from the network about its posts there is deleted, and so are its comments and messages in the inbox, with the events that carry them (`comment.received`, `message.received`, `message.sent`, `comment_automation.*`) and their webhook deliveries. Its comment automations are paused (each with a `comment_automation.paused` event) and their runs deleted with the comments, so their numbers start again from zero and people they answered may be answered once more. It is told as `account.removed` with `reason` `removed_by_team`, never `account.disconnected`, which is a lost login. Connecting it again brings back the same account, its automations paused, to resume; posts in Deleted are restored by hand. Removing an account changes the bill, so only owners remove one, or an API key an owner let remove accounts and delete profiles when making it (Developers in the web app); other API keys are refused (403).
62
+ * It stops publishing and is no longer billed, and nothing changes on its network. Its posts: one that goes to it alone moves to Deleted (`post.deleted`), scheduled, draft or published, and can be restored for 30 days; one with other accounts keeps them, loses this account's part that never went out (`post.updated`) and keeps the part that did, with its `url` and without its numbers (`accountRemoved` on the target). The answer counts them by status (`Preview removing an account` counts them before). Its name, picture and followers go at once; its handle stays to name those parts, with their links, for as long as their posts exist. What Rizamo read from the network about its posts there is deleted, and so are its comments and messages in the inbox, with the events that carry them (`comment.received`, `message.received`, `message.sent`, `review.*`, `comment_automation.*`) and their webhook deliveries. Its comment automations are paused (each with a `comment_automation.paused` event) and their runs deleted with the comments, so their numbers start again from zero and people they answered may be answered once more. It is told as `account.removed` with `reason` `removed_by_team`, never `account.disconnected`, which is a lost login. Connecting it again brings back the same account, its automations paused, to resume; posts in Deleted are restored by hand. Removing an account changes the bill, so only owners remove one, or an API key an owner let remove accounts and delete profiles when making it (Developers in the web app); other API keys are refused (403).
63
63
  *
64
64
  * @param {Rizamo.RemoveAccountsRequest} request
65
65
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -197,7 +197,7 @@ export class AccountsClient {
197
197
  });
198
198
  }
199
199
  /**
200
- * It stops publishing and is no longer billed, and nothing changes on its network. Its posts: one that goes to it alone moves to Deleted (`post.deleted`), scheduled, draft or published, and can be restored for 30 days; one with other accounts keeps them, loses this account's part that never went out (`post.updated`) and keeps the part that did, with its `url` and without its numbers (`accountRemoved` on the target). The answer counts them by status (`Preview removing an account` counts them before). Its name, picture and followers go at once; its handle stays to name those parts, with their links, for as long as their posts exist. What Rizamo read from the network about its posts there is deleted, and so are its comments and messages in the inbox, with the events that carry them (`comment.received`, `message.received`, `message.sent`, `comment_automation.*`) and their webhook deliveries. Its comment automations are paused (each with a `comment_automation.paused` event) and their runs deleted with the comments, so their numbers start again from zero and people they answered may be answered once more. It is told as `account.removed` with `reason` `removed_by_team`, never `account.disconnected`, which is a lost login. Connecting it again brings back the same account, its automations paused, to resume; posts in Deleted are restored by hand. Removing an account changes the bill, so only owners remove one, or an API key an owner let remove accounts and delete profiles when making it (Developers in the web app); other API keys are refused (403).
200
+ * It stops publishing and is no longer billed, and nothing changes on its network. Its posts: one that goes to it alone moves to Deleted (`post.deleted`), scheduled, draft or published, and can be restored for 30 days; one with other accounts keeps them, loses this account's part that never went out (`post.updated`) and keeps the part that did, with its `url` and without its numbers (`accountRemoved` on the target). The answer counts them by status (`Preview removing an account` counts them before). Its name, picture and followers go at once; its handle stays to name those parts, with their links, for as long as their posts exist. What Rizamo read from the network about its posts there is deleted, and so are its comments and messages in the inbox, with the events that carry them (`comment.received`, `message.received`, `message.sent`, `review.*`, `comment_automation.*`) and their webhook deliveries. Its comment automations are paused (each with a `comment_automation.paused` event) and their runs deleted with the comments, so their numbers start again from zero and people they answered may be answered once more. It is told as `account.removed` with `reason` `removed_by_team`, never `account.disconnected`, which is a lost login. Connecting it again brings back the same account, its automations paused, to resume; posts in Deleted are restored by hand. Removing an account changes the bill, so only owners remove one, or an API key an owner let remove accounts and delete profiles when making it (Developers in the web app); other API keys are refused (403).
201
201
  *
202
202
  * @param {Rizamo.RemoveAccountsRequest} request
203
203
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -82,4 +82,28 @@ export declare class AnalyticsClient {
82
82
  */
83
83
  audience(request?: Rizamo.AudienceAnalyticsRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<Rizamo.Audience>;
84
84
  private __audience;
85
+ /**
86
+ * What people searched on Google Search and Maps when they found each Google Business Profile location in reach, by month, as Google ranks them: each keyword with the times the location showed for it, or under Google's threshold only that threshold. Rizamo reads the last 12 complete months, each again until a week into the next month (Google fills a month about 5 days in) and before it is 30 days old. A location with no month read yet has no items. A page at a time, the newest month first, a location and month an item.
87
+ *
88
+ * @param {Rizamo.KeywordsAnalyticsRequest} request
89
+ * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Rizamo.BadRequestError}
92
+ * @throws {@link Rizamo.UnauthorizedError}
93
+ * @throws {@link Rizamo.ForbiddenError}
94
+ * @throws {@link Rizamo.NotFoundError}
95
+ * @throws {@link Rizamo.TooManyRequestsError}
96
+ * @throws {@link Rizamo.InternalServerError}
97
+ * @throws {@link Rizamo.ServiceUnavailableError}
98
+ * @throws {@link errors.RizamoError}
99
+ * @throws {@link errors.RizamoTimeoutError}
100
+ *
101
+ * @example
102
+ * await client.analytics.keywords({
103
+ * profileId: "prof_01m40k9k80fxd8cvng8derm7g9",
104
+ * from: "2026-10",
105
+ * to: "2026-10"
106
+ * })
107
+ */
108
+ keywords(request?: Rizamo.KeywordsAnalyticsRequest, requestOptions?: AnalyticsClient.RequestOptions): Promise<core.Page<Rizamo.KeywordsAnalyticsResponse.Items.Item, Rizamo.KeywordsAnalyticsResponse>>;
85
109
  }
@@ -274,4 +274,102 @@ export class AnalyticsClient {
274
274
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/analytics/audience");
275
275
  });
276
276
  }
277
+ /**
278
+ * What people searched on Google Search and Maps when they found each Google Business Profile location in reach, by month, as Google ranks them: each keyword with the times the location showed for it, or under Google's threshold only that threshold. Rizamo reads the last 12 complete months, each again until a week into the next month (Google fills a month about 5 days in) and before it is 30 days old. A location with no month read yet has no items. A page at a time, the newest month first, a location and month an item.
279
+ *
280
+ * @param {Rizamo.KeywordsAnalyticsRequest} request
281
+ * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
282
+ *
283
+ * @throws {@link Rizamo.BadRequestError}
284
+ * @throws {@link Rizamo.UnauthorizedError}
285
+ * @throws {@link Rizamo.ForbiddenError}
286
+ * @throws {@link Rizamo.NotFoundError}
287
+ * @throws {@link Rizamo.TooManyRequestsError}
288
+ * @throws {@link Rizamo.InternalServerError}
289
+ * @throws {@link Rizamo.ServiceUnavailableError}
290
+ * @throws {@link errors.RizamoError}
291
+ * @throws {@link errors.RizamoTimeoutError}
292
+ *
293
+ * @example
294
+ * await client.analytics.keywords({
295
+ * profileId: "prof_01m40k9k80fxd8cvng8derm7g9",
296
+ * from: "2026-10",
297
+ * to: "2026-10"
298
+ * })
299
+ */
300
+ keywords() {
301
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
302
+ const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
304
+ const { profileId, accountId, from: from_, to, limit, cursor } = request;
305
+ const _queryParams = {
306
+ profileId,
307
+ accountId,
308
+ from: from_,
309
+ to,
310
+ limit,
311
+ cursor,
312
+ };
313
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
314
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
315
+ const _response = yield core.fetcher({
316
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RizamoEnvironment.Production, "analytics/keywords"),
317
+ method: "GET",
318
+ headers: _headers,
319
+ queryString: core.url
320
+ .queryBuilder()
321
+ .addMany(_queryParams)
322
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
323
+ .build(),
324
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
325
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
326
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
327
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
328
+ logging: this._options.logging,
329
+ });
330
+ if (_response.ok) {
331
+ return {
332
+ data: _response.body,
333
+ rawResponse: _response.rawResponse,
334
+ };
335
+ }
336
+ if (_response.error.reason === "status-code") {
337
+ switch (_response.error.statusCode) {
338
+ case 400:
339
+ throw new Rizamo.BadRequestError(_response.error.body, _response.rawResponse);
340
+ case 401:
341
+ throw new Rizamo.UnauthorizedError(_response.error.body, _response.rawResponse);
342
+ case 403:
343
+ throw new Rizamo.ForbiddenError(_response.error.body, _response.rawResponse);
344
+ case 404:
345
+ throw new Rizamo.NotFoundError(_response.error.body, _response.rawResponse);
346
+ case 429:
347
+ throw new Rizamo.TooManyRequestsError(_response.error.body, _response.rawResponse);
348
+ case 500:
349
+ throw new Rizamo.InternalServerError(_response.error.body, _response.rawResponse);
350
+ case 503:
351
+ throw new Rizamo.ServiceUnavailableError(_response.error.body, _response.rawResponse);
352
+ default:
353
+ throw new errors.RizamoError({
354
+ statusCode: _response.error.statusCode,
355
+ body: _response.error.body,
356
+ rawResponse: _response.rawResponse,
357
+ });
358
+ }
359
+ }
360
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/analytics/keywords");
361
+ }));
362
+ const dataWithRawResponse = yield list(request).withRawResponse();
363
+ return new core.Page({
364
+ response: dataWithRawResponse.data,
365
+ rawResponse: dataWithRawResponse.rawResponse,
366
+ hasNextPage: (response) => (response === null || response === void 0 ? void 0 : response.nextCursor) != null &&
367
+ !(typeof (response === null || response === void 0 ? void 0 : response.nextCursor) === "string" && (response === null || response === void 0 ? void 0 : response.nextCursor) === ""),
368
+ getItems: (response) => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; },
369
+ loadPage: (response) => {
370
+ return list(core.setObjectProperty(request, "cursor", response === null || response === void 0 ? void 0 : response.nextCursor));
371
+ },
372
+ });
373
+ });
374
+ }
277
375
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * profileId: "prof_01m40k9k80fxd8cvng8derm7g9",
5
+ * from: "2026-10",
6
+ * to: "2026-10"
7
+ * }
8
+ */
9
+ export interface KeywordsAnalyticsRequest {
10
+ /** Only this profile's (`prof_`): one brand or client, from List profiles. A profile you do not reach is refused as not found. */
11
+ profileId?: string;
12
+ /** Only this location (`acc_`). */
13
+ accountId?: string;
14
+ /** The first month, such as 2026-08. Left out: 3 months before `to`'s. */
15
+ from?: string;
16
+ /** The last month, such as 2026-10. Left out: last month. Up to 12 months in all. */
17
+ to?: string;
18
+ /** How many to return, up to 50: 12 when left out. */
19
+ limit?: number;
20
+ /** `nextCursor` from the page before, with the same filters. */
21
+ cursor?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
1
  export type { AudienceAnalyticsRequest } from "./AudienceAnalyticsRequest.mjs";
2
+ export type { KeywordsAnalyticsRequest } from "./KeywordsAnalyticsRequest.mjs";
2
3
  export type { OverviewAnalyticsRequest } from "./OverviewAnalyticsRequest.mjs";
3
4
  export type { PostsAnalyticsRequest } from "./PostsAnalyticsRequest.mjs";
@@ -0,0 +1,36 @@
1
+ export interface KeywordsAnalyticsResponse {
2
+ from: string;
3
+ to: string;
4
+ items: KeywordsAnalyticsResponse.Items.Item[];
5
+ /** Pass it as `cursor` for the next page; null on the last. */
6
+ nextCursor: string | null;
7
+ }
8
+ export declare namespace KeywordsAnalyticsResponse {
9
+ type Items = Items.Item[];
10
+ namespace Items {
11
+ interface Item {
12
+ /** The location (`acc_`). */
13
+ accountId: string;
14
+ profileId: string;
15
+ /** The month, such as 2026-10. */
16
+ month: string;
17
+ /** As Google ranks them, up to 300. Empty when Google had none for the month. */
18
+ keywords: Item.Keywords.Item[];
19
+ /** When Rizamo last read the month from Google. */
20
+ readAt: string;
21
+ }
22
+ namespace Item {
23
+ type Keywords = Keywords.Item[];
24
+ namespace Keywords {
25
+ interface Item {
26
+ /** What people searched on Google Search or Maps when they found the location. */
27
+ keyword: string;
28
+ /** How many times the location showed for it that month. Missing under Google's threshold: see `below`. */
29
+ impressions?: number | undefined;
30
+ /** Under Google's threshold: fewer than this many, and Google gives no exact count. */
31
+ below?: number | undefined;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from "./KeywordsAnalyticsResponse.mjs";
1
2
  export * from "./OverviewAnalyticsRequestAttribution.mjs";
2
3
  export * from "./OverviewAnalyticsRequestInterval.mjs";
3
4
  export * from "./PostsAnalyticsRequestOrder.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./KeywordsAnalyticsResponse.mjs";
1
2
  export * from "./OverviewAnalyticsRequestAttribution.mjs";
2
3
  export * from "./OverviewAnalyticsRequestInterval.mjs";
3
4
  export * from "./PostsAnalyticsRequestOrder.mjs";
@@ -5,5 +5,6 @@ export declare const LinkConnectRequestNetwork: {
5
5
  readonly Tiktok: "tiktok";
6
6
  readonly Threads: "threads";
7
7
  readonly Youtube: "youtube";
8
+ readonly Google: "google";
8
9
  };
9
10
  export type LinkConnectRequestNetwork = (typeof LinkConnectRequestNetwork)[keyof typeof LinkConnectRequestNetwork];
@@ -6,4 +6,5 @@ export const LinkConnectRequestNetwork = {
6
6
  Tiktok: "tiktok",
7
7
  Threads: "threads",
8
8
  Youtube: "youtube",
9
+ Google: "google",
9
10
  };
@@ -14,7 +14,7 @@ export declare class EventsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
15
15
  constructor(options?: EventsClient.Options);
16
16
  /**
17
- * Every change on the team's posts and accounts in the last 30 days, newest first, with who made it: a person, an API key, an agent, or Rizamo itself; and the inbox's comments and messages as they arrive, the replies sent from Rizamo, and what comment automations do. The same events webhooks send, each as one item of this list. A page at a time: pass `nextCursor` as `cursor` for the next one. Someone limited to some profiles sees only those profiles' events. The inbox's and comment automations' events carry what people wrote: a key or agent reads them only with `inbox:read` (`comment.received`, `message.received`, `message.sent`) or `automations:read` (`comment_automation.*`) too; asking for one of those types without it answers 403.
17
+ * Every change on the team's posts and accounts in the last 30 days, newest first, with who made it: a person, an API key, an agent, or Rizamo itself; and the inbox's comments and messages as they arrive, the replies sent from Rizamo, and what comment automations do. The same events webhooks send, each as one item of this list. A page at a time: pass `nextCursor` as `cursor` for the next one. Someone limited to some profiles sees only those profiles' events. The inbox's and comment automations' events carry what people wrote: a key or agent reads them only with `inbox:read` (`comment.received`, `message.received`, `message.sent`, `review.*`) or `automations:read` (`comment_automation.*`) too; asking for one of those types without it answers 403.
18
18
  *
19
19
  * @param {Rizamo.ListEventsRequest} request
20
20
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -23,7 +23,7 @@ export class EventsClient {
23
23
  this._options = normalizeClientOptionsWithAuth(options);
24
24
  }
25
25
  /**
26
- * Every change on the team's posts and accounts in the last 30 days, newest first, with who made it: a person, an API key, an agent, or Rizamo itself; and the inbox's comments and messages as they arrive, the replies sent from Rizamo, and what comment automations do. The same events webhooks send, each as one item of this list. A page at a time: pass `nextCursor` as `cursor` for the next one. Someone limited to some profiles sees only those profiles' events. The inbox's and comment automations' events carry what people wrote: a key or agent reads them only with `inbox:read` (`comment.received`, `message.received`, `message.sent`) or `automations:read` (`comment_automation.*`) too; asking for one of those types without it answers 403.
26
+ * Every change on the team's posts and accounts in the last 30 days, newest first, with who made it: a person, an API key, an agent, or Rizamo itself; and the inbox's comments and messages as they arrive, the replies sent from Rizamo, and what comment automations do. The same events webhooks send, each as one item of this list. A page at a time: pass `nextCursor` as `cursor` for the next one. Someone limited to some profiles sees only those profiles' events. The inbox's and comment automations' events carry what people wrote: a key or agent reads them only with `inbox:read` (`comment.received`, `message.received`, `message.sent`, `review.*`) or `automations:read` (`comment_automation.*`) too; asking for one of those types without it answers 403.
27
27
  *
28
28
  * @param {Rizamo.ListEventsRequest} request
29
29
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -6,7 +6,7 @@ import type * as Rizamo from "../../../../index.mjs";
6
6
  export interface ListInboxRequest {
7
7
  /** open: still needs an answer. done: answered or closed; a new message opens it again. */
8
8
  status?: Rizamo.ListInboxRequestStatus;
9
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
9
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
10
10
  kind?: Rizamo.ListInboxRequestKind;
11
11
  /** Only this profile's (`prof_`): one brand or client, from List profiles. A profile you do not reach is refused as not found. */
12
12
  profileId?: string;
@@ -1,4 +1,4 @@
1
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
1
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
2
2
  export declare const ListInboxRequestKind: {
3
3
  readonly Comment: "comment";
4
4
  readonly Dm: "dm";
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. mention and review: not collected yet. */
2
+ /** comment: a first comment on a post, with the replies under it. dm: private messages with one person. review: a Google Business Profile review (the first message), with the business's one reply, which replying again replaces. mention: not collected yet. */
3
3
  export const ListInboxRequestKind = {
4
4
  Comment: "comment",
5
5
  Dm: "dm",
@@ -12,7 +12,7 @@ export interface CreateWebhooksRequest {
12
12
  url: string;
13
13
  /** What it is for, for the people of the team. */
14
14
  description?: string;
15
- /** The event types it receives. Null: every type, those Rizamo adds later included. A key or agent lists the inbox's types (`comment.received`, `message.received`, `message.sent`) only with `inbox:read`, and `comment_automation.*` only with `automations:read`; with null, the endpoint gets none of those it cannot read. */
15
+ /** The event types it receives. Null: every type, those Rizamo adds later included. A key or agent lists the inbox's types (`comment.received`, `message.received`, `message.sent`, `review.*`) only with `inbox:read`, and `comment_automation.*` only with `automations:read`; with null, the endpoint gets none of those it cannot read. */
16
16
  events?: Rizamo.WebhookEventType[] | null;
17
17
  /** Only events of these profiles. Null: every profile's, and the events of no profile. Someone limited to some profiles gives some of theirs. */
18
18
  profileIds?: string[] | null;
@@ -12,7 +12,7 @@ export interface UpdateWebhooksRequest {
12
12
  url?: string;
13
13
  /** What it is for, for the people of the team. */
14
14
  description?: string;
15
- /** The event types it receives. Null: every type, those Rizamo adds later included. A key or agent lists the inbox's types (`comment.received`, `message.received`, `message.sent`) only with `inbox:read`, and `comment_automation.*` only with `automations:read`; with null, the endpoint gets none of those it cannot read. */
15
+ /** The event types it receives. Null: every type, those Rizamo adds later included. A key or agent lists the inbox's types (`comment.received`, `message.received`, `message.sent`, `review.*`) only with `inbox:read`, and `comment_automation.*` only with `automations:read`; with null, the endpoint gets none of those it cannot read. */
16
16
  events?: Rizamo.WebhookEventType[] | null;
17
17
  /** Only events of these profiles. Null: every profile's, and the events of no profile. Someone limited to some profiles gives some of theirs. */
18
18
  profileIds?: string[] | null;
@@ -13,6 +13,8 @@ export interface AnalyticsOverview {
13
13
  kpis: AnalyticsOverview.Kpis;
14
14
  /** The accounts' own numbers, added up over the period's days: views, engagements, follows, unfollows, profile_actions (taps on a profile's buttons) and more, as each network gives them, such as Facebook's profile_visits and video_views, Threads' views (its posts' views, which Meta's reference calls profile views), reposts, quotes and clicks (on links the profile shared), or YouTube's watch_time (in milliseconds, as every watch time) and follows and unfollows (subscribers gained and lost), 2 to 3 days late. Views and reach come split too, each part as the network gives it, so the parts need not add up to the whole: by followers (views_followers and views_non_followers on Instagram, Facebook Pages and YouTube, where they are subscribers or not; reach_followers and reach_non_followers on Instagram), by format (views_feed, views_carousel, views_reel and views_story on Instagram; views_short, views_video and views_live on YouTube) and by ads (views_paid on Instagram and Facebook Pages, views_organic on Facebook Pages). Only metrics in each network's reference are read. reach (people who saw the accounts' content: Instagram, Facebook Pages, and TikTok accounts with advanced access) and accounts_engaged (Instagram, and TikTok with advanced access) are each day's people added up, so someone reached on two days counts twice; missing where no account gives them. A day not collected adds nothing, and `notes` says so. */
15
15
  accountMetrics: Record<string, Rizamo.Kpi>;
16
+ /** Google Business Profile's own numbers, apart from every other network's, as Google asks: by Google's day, which come up to 6 days late (the last days fill in later). Missing when no Google Business Profile location is in reach. Google gives no numbers per post. */
17
+ google?: AnalyticsOverview.Google | undefined;
16
18
  /** Every day of the period, or with `interval` week or month every ISO week or calendar month, cut to the period. received: each account's own views of that day; each change between two of Rizamo's reads of a post (engagements, and views where an account's days give none) on the day it arrived, from the day its account was connected, a late network's first numbers (TikTok's, YouTube's) on the day the post went out, even a day before the period (left out of it then, and `notes` says so). publish: each post's numbers so far go on the day it was published. A week's or month's point is the period's totals over its days, as `kpis` and `byNetwork` count them: what arrived over them, a change over several of them included (by day it is in `combined`), followers on its last day, and the accounts' reach and accounts engaged added up. A number none of its days has is missing, never 0. */
17
19
  series: AnalyticsOverview.Series.Item[];
18
20
  /** received only (empty with publish): changes of posts Rizamo cannot place on one day (with `interval` week or month, in one week or month), never split, such as a stretch it could not read an account, or a post read every 30 days (YouTube every 28) after its first 90: engagements, and views only of accounts whose own days give none. In the totals and `byNetwork`, not in `series`. One that began before the period is left out, and what a post gathered before its account was connected is on no day. */
@@ -104,6 +106,29 @@ export declare namespace AnalyticsOverview {
104
106
  previous?: number | undefined;
105
107
  }
106
108
  }
109
+ /**
110
+ * Google Business Profile's own numbers, apart from every other network's, as Google asks: by Google's day, which come up to 6 days late (the last days fill in later). Missing when no Google Business Profile location is in reach. Google gives no numbers per post.
111
+ */
112
+ interface Google {
113
+ /** The locations' own numbers added up over the period's days: search_views_mobile, search_views_desktop, maps_views_mobile and maps_views_desktop (people who saw a Business Profile on Google Search or Maps, each once a day on each), calls, website_clicks, direction_requests, bookings and messaging_clicks. They count people who found the business, not views of posts, so they are never in `kpis.views` or `accountMetrics`. */
114
+ metrics: Record<string, Rizamo.Kpi>;
115
+ /** Each location in reach, with its own numbers. */
116
+ locations: Google.Locations.Item[];
117
+ }
118
+ namespace Google {
119
+ type Locations = Locations.Item[];
120
+ namespace Locations {
121
+ interface Item {
122
+ accountId: string;
123
+ /** The location's own numbers over the period's days, as `metrics` adds them up. */
124
+ metrics: Record<string, number>;
125
+ /** Its average review rating, 1 to 5 stars, as last read up to the period's last day. Missing before it was read. */
126
+ rating?: number | undefined;
127
+ /** Its reviews on Google, as last read up to the period's last day. Missing before it was read. */
128
+ reviewCount?: number | undefined;
129
+ }
130
+ }
131
+ }
107
132
  type Series = Series.Item[];
108
133
  namespace Series {
109
134
  interface Item {
@@ -8,7 +8,7 @@ export interface Event {
8
8
  /** What happened, in one line for a person: a post is named by its caption. */
9
9
  summary: string;
10
10
  resource: Event.Resource;
11
- /** The facts of the change, by type. `post.created`: `status`, `scheduledAt`, `targets` (`accountId`, `network`, `format`). `post.updated`: `changed` (`text`, `media`, `targets`, `scheduledAt`, `fields.<key>`), with the new `scheduledAt` and `fields` values that changed. `post.scheduled`: `scheduledAt`, `queued` when it took its time from the profile's queue, and `now` when it was sent to publish at once. `post.updated` carries `queued` with a new `scheduledAt`, or when only that changed. `post.unscheduled`: `status`. `post.deleted`: `stillLive`, the targets Rizamo does not take off their network. `post.restored`: `status`. Removing an account (ADR 0048): a post that went to it alone gets `post.deleted` with `accountRemoved` (`accountId`, `network`), its live targets in `stillLive`; a post with other accounts that lost the account's part that never went out gets `post.updated` with `changed: ["targets"]`, `accountRemoved`, and `status` when that changed it (the old one in `previous`). `post.published` and `post.failed`: `status`, `published` targets (`accountId`, `network`, `format`, `url`) and the others (with `error`, and `status`: `failed`, or `unknown` when it may have gone out and a person must check the network before publishing again). `post.target.*`: `accountId`, `network`, `format`; `url` and `networkPostId` when published, `error` and `status` (`failed`, or `unknown` when a person must check the network) when failed. A chain's (posts after the first, as replies) carry `part` and `of`, the part counted after the first post and how many there are: `post.target.published` once its last part is live, `post.target.failed` for the part that stopped it, while the target stays published. `comment.received` and `message.received`: a comment, a reply under one, or a message to the account from someone else, once, when Rizamo first stores it (never the account's own, never one stored before, never one written more than 72 hours before Rizamo found it, such as the history read when an account connects): `threadId`, `messageId`, `kind` (`comment` or `dm`), `network`, `accountId`, `networkPostId` and `postId` (the post it is on, when Rizamo knows it), `author` (`name`, `handle`; LinkedIn gives no handle, and a LinkedIn commenter Rizamo could not name is "LinkedIn member"), `text`, and for comments `reply` (under another comment) and `hidden`. `message.sent`: a reply sent from Rizamo, by a person, an API key, an agent or a comment automation (`actor`), once it is on the network (a Threads, LinkedIn or YouTube reply when it went out, not when it was asked for): the same ids, `kind` and `network`, `to` (the thread's person, `name` and `handle`, named as `author` is, or null under the account's own comment) and `text`. `comment_automation.sent` and `comment_automation.failed`: a run, by its automation (`actor`): `automationId`, `runId`, `accountId`, `network`, `threadId` (the comment's), `conversationId` (the private conversation, once there is one), `commenter` (`name`, `handle`) and `comment` (its text); `followGate` (`followed`) when it went out after the person followed; `reason` (`refused`, `unclear`) and `error` when it failed. `comment_automation.paused`: `automationId`, `name`, `accountId`, `network`, and `pausedReason`, why Rizamo paused it (null when a person did). Removing an account deletes its inbox and automation events, as it deletes its comments and messages; connecting it again reads its recent ones again, so those of the last hours come again as new events. A comment removed on its network takes its events, and the automation events that quote it. Events stay in the profile they happened in when an account moves. A key or agent reads the inbox's and automations' events only with `inbox:read` or `automations:read` too. `account.*`: `network`, `handle`; `reconnected` or `healed` when connected again; `profileId` when moved. `account.disconnected`: the account is still in the team and lost its login; `reason` says why (`needs_login`, `facebook_action_needed`, `permission_missing`, `account_gone`), and a new login brings it back with its posts. `account.removed`: the account left the team; `reason` says how. `removed_by_team`: a person, API key or agent removed it (`actor`), with `posts`, what happened to the posts that used it (as `Remove an account` answers). `data_deletion`: its network asked Rizamo to delete its data (`dataDeletion`, no `handle`), and its other events are deleted. Events from before 5 November 2026 have no `reason` on `account.removed`. */
11
+ /** The facts of the change, by type. `post.created`: `status`, `scheduledAt`, `targets` (`accountId`, `network`, `format`). `post.updated`: `changed` (`text`, `media`, `targets`, `scheduledAt`, `fields.<key>`), with the new `scheduledAt` and `fields` values that changed. `post.scheduled`: `scheduledAt`, `queued` when it took its time from the profile's queue, and `now` when it was sent to publish at once. `post.updated` carries `queued` with a new `scheduledAt`, or when only that changed. `post.unscheduled`: `status`. `post.deleted`: `stillLive`, the targets Rizamo does not take off their network. `post.restored`: `status`. Removing an account (ADR 0048): a post that went to it alone gets `post.deleted` with `accountRemoved` (`accountId`, `network`), its live targets in `stillLive`; a post with other accounts that lost the account's part that never went out gets `post.updated` with `changed: ["targets"]`, `accountRemoved`, and `status` when that changed it (the old one in `previous`). `post.published` and `post.failed`: `status`, `published` targets (`accountId`, `network`, `format`, `url`) and the others (with `error`, and `status`: `failed`, or `unknown` when it may have gone out and a person must check the network before publishing again). `post.target.*`: `accountId`, `network`, `format`; `url` and `networkPostId` when published, `error` and `status` (`failed`, or `unknown` when a person must check the network) when failed. A chain's (posts after the first, as replies) carry `part` and `of`, the part counted after the first post and how many there are: `post.target.published` once its last part is live, `post.target.failed` for the part that stopped it, while the target stays published. `comment.received` and `message.received`: a comment, a reply under one, or a message to the account from someone else, once, when Rizamo first stores it (never the account's own, never one stored before, never one written more than 72 hours before Rizamo found it, such as the history read when an account connects): `threadId`, `messageId`, `kind` (`comment` or `dm`), `network`, `accountId`, `networkPostId` and `postId` (the post it is on, when Rizamo knows it), `author` (`name`, `handle`; LinkedIn gives no handle, and a LinkedIn commenter Rizamo could not name is "LinkedIn member"), `text`, and for comments `reply` (under another comment) and `hidden`. `message.sent`: a reply sent from Rizamo, by a person, an API key, an agent or a comment automation (`actor`), once it is on the network (a Threads, LinkedIn or YouTube reply when it went out, not when it was asked for): the same ids, `kind` and `network`, `to` (the thread's person, `name` and `handle`, named as `author` is, or null under the account's own comment) and `text`. `review.received`: a Google Business Profile review, once, when Rizamo first stores it (never one written more than 72 hours before Rizamo found it, such as the reviews read when a location connects): `threadId`, `messageId`, `network`, `accountId`, `author` (`name`, empty for an anonymous reviewer), `rating` (1 to 5, or null), `text` (empty for stars alone). `review.updated`: the reviewer changed it (`changed` holds `text` and or `rating`), or Google decided on the business's reply (`changed`: `reply`, with `replyState`, `approved` or `rejected`, and `replyIssue`); the same ids, `rating` and `text` as they are now. A reply set or replaced from Rizamo is `message.sent`, with `kind` `review`. A review Google no longer shows takes its events with it, as a removed comment does. `comment_automation.sent` and `comment_automation.failed`: a run, by its automation (`actor`): `automationId`, `runId`, `accountId`, `network`, `threadId` (the comment's), `conversationId` (the private conversation, once there is one), `commenter` (`name`, `handle`) and `comment` (its text); `followGate` (`followed`) when it went out after the person followed; `reason` (`refused`, `unclear`) and `error` when it failed. `comment_automation.paused`: `automationId`, `name`, `accountId`, `network`, and `pausedReason`, why Rizamo paused it (null when a person did). Removing an account deletes its inbox and automation events, as it deletes its comments and messages; connecting it again reads its recent ones again, so those of the last hours come again as new events. A comment removed on its network takes its events, and the automation events that quote it. Events stay in the profile they happened in when an account moves. A key or agent reads the inbox's and automations' events only with `inbox:read` or `automations:read` too. `account.*`: `network`, `handle`; `reconnected` or `healed` when connected again; `profileId` when moved. `account.disconnected`: the account is still in the team and lost its login; `reason` says why (`needs_login`, `facebook_action_needed`, `permission_missing`, `account_gone`), and a new login brings it back with its posts. `account.removed`: the account left the team; `reason` says how. `removed_by_team`: a person, API key or agent removed it (`actor`), with `posts`, what happened to the posts that used it (as `Remove an account` answers). `data_deletion`: its network asked Rizamo to delete its data (`dataDeletion`, no `handle`), and its other events are deleted. Events from before 5 November 2026 have no `reason` on `account.removed`. */
12
12
  data: Record<string, unknown>;
13
13
  }
14
14
  export declare namespace Event {
@@ -14,6 +14,8 @@ export declare const EventType: {
14
14
  readonly CommentReceived: "comment.received";
15
15
  readonly MessageReceived: "message.received";
16
16
  readonly MessageSent: "message.sent";
17
+ readonly ReviewReceived: "review.received";
18
+ readonly ReviewUpdated: "review.updated";
17
19
  readonly CommentAutomationSent: "comment_automation.sent";
18
20
  readonly CommentAutomationFailed: "comment_automation.failed";
19
21
  readonly CommentAutomationPaused: "comment_automation.paused";
@@ -15,6 +15,8 @@ export const EventType = {
15
15
  CommentReceived: "comment.received",
16
16
  MessageReceived: "message.received",
17
17
  MessageSent: "message.sent",
18
+ ReviewReceived: "review.received",
19
+ ReviewUpdated: "review.updated",
18
20
  CommentAutomationSent: "comment_automation.sent",
19
21
  CommentAutomationFailed: "comment_automation.failed",
20
22
  CommentAutomationPaused: "comment_automation.paused",
@@ -1,4 +1,4 @@
1
- /** What a target publishes: feed, carousel, reel, story, video, short, photo, document or pin. */
1
+ /** What a target publishes: feed, carousel, reel, story, video, short, photo, document, pin, event or offer (event and offer: Google Business Profile, whose update is a feed post). */
2
2
  export declare const PostFormat: {
3
3
  readonly Feed: "feed";
4
4
  readonly Carousel: "carousel";
@@ -9,5 +9,7 @@ export declare const PostFormat: {
9
9
  readonly Photo: "photo";
10
10
  readonly Document: "document";
11
11
  readonly Pin: "pin";
12
+ readonly Event: "event";
13
+ readonly Offer: "offer";
12
14
  };
13
15
  export type PostFormat = (typeof PostFormat)[keyof typeof PostFormat];
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** What a target publishes: feed, carousel, reel, story, video, short, photo, document or pin. */
2
+ /** What a target publishes: feed, carousel, reel, story, video, short, photo, document, pin, event or offer (event and offer: Google Business Profile, whose update is a feed post). */
3
3
  export const PostFormat = {
4
4
  Feed: "feed",
5
5
  Carousel: "carousel",
@@ -10,4 +10,6 @@ export const PostFormat = {
10
10
  Photo: "photo",
11
11
  Document: "document",
12
12
  Pin: "pin",
13
+ Event: "event",
14
+ Offer: "offer",
13
15
  };