@zernio/node 0.2.885 → 0.2.886
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/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -6
- package/src/generated/types.gen.ts +14 -2
package/dist/index.d.mts
CHANGED
|
@@ -10139,9 +10139,13 @@ type Webhook = {
|
|
|
10139
10139
|
*/
|
|
10140
10140
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
10141
10141
|
/**
|
|
10142
|
-
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile
|
|
10142
|
+
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile. An aggregate `post.*` event is attributed to the profile of every account the post targets, so a post spanning two scoped endpoints' profiles reaches both. Events with no profile behind them (`verification.*`, `phone_number.*`, a legacy post whose accounts were deleted) are not delivered to it. Applied when the event is emitted: a redelivery replays a delivery already made to this endpoint, and a test fire ignores the list.
|
|
10143
10143
|
*/
|
|
10144
10144
|
profileIds?: Array<(string)>;
|
|
10145
|
+
/**
|
|
10146
|
+
* Connected accounts this subscription receives events for (allowlist). Absent or empty means every account. Same semantics as `profileIds`, keyed on the account: an aggregate `post.*` event is attributed to every account the post targets. A subscription with both lists must be satisfied on both. Applied when the event is emitted; a redelivery replays a delivery already made to this endpoint and a test fire ignores the list.
|
|
10147
|
+
*/
|
|
10148
|
+
accountIds?: Array<(string)>;
|
|
10145
10149
|
};
|
|
10146
10150
|
/**
|
|
10147
10151
|
* A single webhook delivery attempt recorded by Zernio (30-day retention).
|
|
@@ -22305,6 +22309,10 @@ type CreateWebhookSettingsData = {
|
|
|
22305
22309
|
* Profiles this subscription receives events for. Omit or send an empty array to receive every profile. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing is created. Typical use is routing the profile that holds test accounts to a staging endpoint.
|
|
22306
22310
|
*/
|
|
22307
22311
|
profileIds?: Array<(string)>;
|
|
22312
|
+
/**
|
|
22313
|
+
* Connected accounts this subscription receives events for. Omit or send an empty array to receive every account. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing is created. Combine with `profileIds` to narrow further; both must match.
|
|
22314
|
+
*/
|
|
22315
|
+
accountIds?: Array<(string)>;
|
|
22308
22316
|
};
|
|
22309
22317
|
};
|
|
22310
22318
|
type CreateWebhookSettingsResponse = ({
|
|
@@ -22363,9 +22371,13 @@ type UpdateWebhookSettingsData = {
|
|
|
22363
22371
|
*/
|
|
22364
22372
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
22365
22373
|
/**
|
|
22366
|
-
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update.
|
|
22374
|
+
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update. Sending the stored list back unchanged is accepted without re-validation, so an endpoint stays editable after a listed profile is deleted.
|
|
22367
22375
|
*/
|
|
22368
22376
|
profileIds?: Array<(string)>;
|
|
22377
|
+
/**
|
|
22378
|
+
* Replaces the subscription's account allowlist. Send an empty array to receive every account again. Omitting the field leaves the current list untouched. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing changes. Sending the stored list back unchanged is accepted without re-validation.
|
|
22379
|
+
*/
|
|
22380
|
+
accountIds?: Array<(string)>;
|
|
22369
22381
|
};
|
|
22370
22382
|
};
|
|
22371
22383
|
type UpdateWebhookSettingsResponse = ({
|
package/dist/index.d.ts
CHANGED
|
@@ -10139,9 +10139,13 @@ type Webhook = {
|
|
|
10139
10139
|
*/
|
|
10140
10140
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
10141
10141
|
/**
|
|
10142
|
-
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile
|
|
10142
|
+
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile. An aggregate `post.*` event is attributed to the profile of every account the post targets, so a post spanning two scoped endpoints' profiles reaches both. Events with no profile behind them (`verification.*`, `phone_number.*`, a legacy post whose accounts were deleted) are not delivered to it. Applied when the event is emitted: a redelivery replays a delivery already made to this endpoint, and a test fire ignores the list.
|
|
10143
10143
|
*/
|
|
10144
10144
|
profileIds?: Array<(string)>;
|
|
10145
|
+
/**
|
|
10146
|
+
* Connected accounts this subscription receives events for (allowlist). Absent or empty means every account. Same semantics as `profileIds`, keyed on the account: an aggregate `post.*` event is attributed to every account the post targets. A subscription with both lists must be satisfied on both. Applied when the event is emitted; a redelivery replays a delivery already made to this endpoint and a test fire ignores the list.
|
|
10147
|
+
*/
|
|
10148
|
+
accountIds?: Array<(string)>;
|
|
10145
10149
|
};
|
|
10146
10150
|
/**
|
|
10147
10151
|
* A single webhook delivery attempt recorded by Zernio (30-day retention).
|
|
@@ -22305,6 +22309,10 @@ type CreateWebhookSettingsData = {
|
|
|
22305
22309
|
* Profiles this subscription receives events for. Omit or send an empty array to receive every profile. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing is created. Typical use is routing the profile that holds test accounts to a staging endpoint.
|
|
22306
22310
|
*/
|
|
22307
22311
|
profileIds?: Array<(string)>;
|
|
22312
|
+
/**
|
|
22313
|
+
* Connected accounts this subscription receives events for. Omit or send an empty array to receive every account. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing is created. Combine with `profileIds` to narrow further; both must match.
|
|
22314
|
+
*/
|
|
22315
|
+
accountIds?: Array<(string)>;
|
|
22308
22316
|
};
|
|
22309
22317
|
};
|
|
22310
22318
|
type CreateWebhookSettingsResponse = ({
|
|
@@ -22363,9 +22371,13 @@ type UpdateWebhookSettingsData = {
|
|
|
22363
22371
|
*/
|
|
22364
22372
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
22365
22373
|
/**
|
|
22366
|
-
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update.
|
|
22374
|
+
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update. Sending the stored list back unchanged is accepted without re-validation, so an endpoint stays editable after a listed profile is deleted.
|
|
22367
22375
|
*/
|
|
22368
22376
|
profileIds?: Array<(string)>;
|
|
22377
|
+
/**
|
|
22378
|
+
* Replaces the subscription's account allowlist. Send an empty array to receive every account again. Omitting the field leaves the current list untouched. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing changes. Sending the stored list back unchanged is accepted without re-validation.
|
|
22379
|
+
*/
|
|
22380
|
+
accountIds?: Array<(string)>;
|
|
22369
22381
|
};
|
|
22370
22382
|
};
|
|
22371
22383
|
type UpdateWebhookSettingsResponse = ({
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.886",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.886",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3547,10 +3547,12 @@ export const getWebhookSettings = <ThrowOnError extends boolean = false>(options
|
|
|
3547
3547
|
* subscriptions behave. A restricted key's own disabled groups are always
|
|
3548
3548
|
* unioned in.
|
|
3549
3549
|
*
|
|
3550
|
-
* `profileIds` pins the subscription to a set of profiles
|
|
3551
|
-
*
|
|
3552
|
-
*
|
|
3553
|
-
*
|
|
3550
|
+
* `profileIds` pins the subscription to a set of profiles and `accountIds`
|
|
3551
|
+
* to a set of connected accounts: only events attributable to one of the
|
|
3552
|
+
* listed ids are delivered, and a subscription with both lists must match
|
|
3553
|
+
* on both. Use them to send test accounts to a staging endpoint. Ids
|
|
3554
|
+
* outside your team are rejected with 404 (`profile_not_found`,
|
|
3555
|
+
* `account_not_found`).
|
|
3554
3556
|
*
|
|
3555
3557
|
*/
|
|
3556
3558
|
export const createWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWebhookSettingsData, ThrowOnError>) => {
|
|
@@ -3586,8 +3588,9 @@ export const createWebhookSettings = <ThrowOnError extends boolean = false>(opti
|
|
|
3586
3588
|
* subscription. Retries beyond that window, dead-letter replays, test fires,
|
|
3587
3589
|
* and redeliveries are all checked against the current denylist.
|
|
3588
3590
|
*
|
|
3589
|
-
* `profileIds`
|
|
3590
|
-
* clears
|
|
3591
|
+
* `profileIds` and `accountIds` replace the subscription's allowlists; an
|
|
3592
|
+
* empty array clears one. Ids outside your team are rejected with 404
|
|
3593
|
+
* (`profile_not_found`, `account_not_found`).
|
|
3591
3594
|
*
|
|
3592
3595
|
*/
|
|
3593
3596
|
export const updateWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWebhookSettingsData, ThrowOnError>) => {
|
|
@@ -8803,9 +8803,13 @@ export type Webhook = {
|
|
|
8803
8803
|
*/
|
|
8804
8804
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
8805
8805
|
/**
|
|
8806
|
-
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile
|
|
8806
|
+
* Profiles this subscription receives events for (allowlist). Absent or empty means every profile, which is how every subscription created before this field existed behaves. A scoped subscription is only sent events attributable to a listed profile. An aggregate `post.*` event is attributed to the profile of every account the post targets, so a post spanning two scoped endpoints' profiles reaches both. Events with no profile behind them (`verification.*`, `phone_number.*`, a legacy post whose accounts were deleted) are not delivered to it. Applied when the event is emitted: a redelivery replays a delivery already made to this endpoint, and a test fire ignores the list.
|
|
8807
8807
|
*/
|
|
8808
8808
|
profileIds?: Array<(string)>;
|
|
8809
|
+
/**
|
|
8810
|
+
* Connected accounts this subscription receives events for (allowlist). Absent or empty means every account. Same semantics as `profileIds`, keyed on the account: an aggregate `post.*` event is attributed to every account the post targets. A subscription with both lists must be satisfied on both. Applied when the event is emitted; a redelivery replays a delivery already made to this endpoint and a test fire ignores the list.
|
|
8811
|
+
*/
|
|
8812
|
+
accountIds?: Array<(string)>;
|
|
8809
8813
|
};
|
|
8810
8814
|
|
|
8811
8815
|
/**
|
|
@@ -21726,6 +21730,10 @@ export type CreateWebhookSettingsData = {
|
|
|
21726
21730
|
* Profiles this subscription receives events for. Omit or send an empty array to receive every profile. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing is created. Typical use is routing the profile that holds test accounts to a staging endpoint.
|
|
21727
21731
|
*/
|
|
21728
21732
|
profileIds?: Array<(string)>;
|
|
21733
|
+
/**
|
|
21734
|
+
* Connected accounts this subscription receives events for. Omit or send an empty array to receive every account. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing is created. Combine with `profileIds` to narrow further; both must match.
|
|
21735
|
+
*/
|
|
21736
|
+
accountIds?: Array<(string)>;
|
|
21729
21737
|
};
|
|
21730
21738
|
};
|
|
21731
21739
|
|
|
@@ -21787,9 +21795,13 @@ export type UpdateWebhookSettingsData = {
|
|
|
21787
21795
|
*/
|
|
21788
21796
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
21789
21797
|
/**
|
|
21790
|
-
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update.
|
|
21798
|
+
* Replaces the subscription's profile allowlist. Send an empty array to receive every profile again. Omitting the field leaves the current list untouched. Every id must be a profile in your team, otherwise the request fails with 404 `profile_not_found` and nothing changes. Applies to events emitted after the update. Sending the stored list back unchanged is accepted without re-validation, so an endpoint stays editable after a listed profile is deleted.
|
|
21791
21799
|
*/
|
|
21792
21800
|
profileIds?: Array<(string)>;
|
|
21801
|
+
/**
|
|
21802
|
+
* Replaces the subscription's account allowlist. Send an empty array to receive every account again. Omitting the field leaves the current list untouched. Every id must be an account in your team, otherwise the request fails with 404 `account_not_found` and nothing changes. Sending the stored list back unchanged is accepted without re-validation.
|
|
21803
|
+
*/
|
|
21804
|
+
accountIds?: Array<(string)>;
|
|
21793
21805
|
};
|
|
21794
21806
|
};
|
|
21795
21807
|
|