@getlatedev/node 0.2.885 → 0.2.887
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 +20 -3
- package/dist/index.d.ts +20 -3
- 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 +20 -3
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).
|
|
@@ -16802,7 +16806,7 @@ type GetConnectUrlData = {
|
|
|
16802
16806
|
* oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
|
|
16803
16807
|
* internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
|
|
16804
16808
|
* missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
|
|
16805
|
-
* reconnect_account_mismatch, invalid_request
|
|
16809
|
+
* reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
|
|
16806
16810
|
*
|
|
16807
16811
|
* Access and limits:
|
|
16808
16812
|
* profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
|
|
@@ -16847,6 +16851,11 @@ type GetConnectUrlData = {
|
|
|
16847
16851
|
* already-connected account needs, so nothing was changed and it keeps working as before.
|
|
16848
16852
|
* It is user-fixable: connect again and accept every permission on TikTok's screen.
|
|
16849
16853
|
*
|
|
16854
|
+
* 4. `instagram_login_method_mismatch` means an Instagram Login authorization landed on a
|
|
16855
|
+
* profile whose Instagram account is connected through Facebook Login, so nothing was
|
|
16856
|
+
* changed and it keeps working as before. To refresh it, connect again with
|
|
16857
|
+
* `loginMethod=facebook_login`. To move it to Instagram Login, disconnect it first.
|
|
16858
|
+
*
|
|
16850
16859
|
*/
|
|
16851
16860
|
redirect_url?: string;
|
|
16852
16861
|
/**
|
|
@@ -22305,6 +22314,10 @@ type CreateWebhookSettingsData = {
|
|
|
22305
22314
|
* 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
22315
|
*/
|
|
22307
22316
|
profileIds?: Array<(string)>;
|
|
22317
|
+
/**
|
|
22318
|
+
* 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.
|
|
22319
|
+
*/
|
|
22320
|
+
accountIds?: Array<(string)>;
|
|
22308
22321
|
};
|
|
22309
22322
|
};
|
|
22310
22323
|
type CreateWebhookSettingsResponse = ({
|
|
@@ -22363,9 +22376,13 @@ type UpdateWebhookSettingsData = {
|
|
|
22363
22376
|
*/
|
|
22364
22377
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
22365
22378
|
/**
|
|
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.
|
|
22379
|
+
* 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
22380
|
*/
|
|
22368
22381
|
profileIds?: Array<(string)>;
|
|
22382
|
+
/**
|
|
22383
|
+
* 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.
|
|
22384
|
+
*/
|
|
22385
|
+
accountIds?: Array<(string)>;
|
|
22369
22386
|
};
|
|
22370
22387
|
};
|
|
22371
22388
|
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).
|
|
@@ -16802,7 +16806,7 @@ type GetConnectUrlData = {
|
|
|
16802
16806
|
* oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
|
|
16803
16807
|
* internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
|
|
16804
16808
|
* missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
|
|
16805
|
-
* reconnect_account_mismatch, invalid_request
|
|
16809
|
+
* reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
|
|
16806
16810
|
*
|
|
16807
16811
|
* Access and limits:
|
|
16808
16812
|
* profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
|
|
@@ -16847,6 +16851,11 @@ type GetConnectUrlData = {
|
|
|
16847
16851
|
* already-connected account needs, so nothing was changed and it keeps working as before.
|
|
16848
16852
|
* It is user-fixable: connect again and accept every permission on TikTok's screen.
|
|
16849
16853
|
*
|
|
16854
|
+
* 4. `instagram_login_method_mismatch` means an Instagram Login authorization landed on a
|
|
16855
|
+
* profile whose Instagram account is connected through Facebook Login, so nothing was
|
|
16856
|
+
* changed and it keeps working as before. To refresh it, connect again with
|
|
16857
|
+
* `loginMethod=facebook_login`. To move it to Instagram Login, disconnect it first.
|
|
16858
|
+
*
|
|
16850
16859
|
*/
|
|
16851
16860
|
redirect_url?: string;
|
|
16852
16861
|
/**
|
|
@@ -22305,6 +22314,10 @@ type CreateWebhookSettingsData = {
|
|
|
22305
22314
|
* 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
22315
|
*/
|
|
22307
22316
|
profileIds?: Array<(string)>;
|
|
22317
|
+
/**
|
|
22318
|
+
* 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.
|
|
22319
|
+
*/
|
|
22320
|
+
accountIds?: Array<(string)>;
|
|
22308
22321
|
};
|
|
22309
22322
|
};
|
|
22310
22323
|
type CreateWebhookSettingsResponse = ({
|
|
@@ -22363,9 +22376,13 @@ type UpdateWebhookSettingsData = {
|
|
|
22363
22376
|
*/
|
|
22364
22377
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
22365
22378
|
/**
|
|
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.
|
|
22379
|
+
* 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
22380
|
*/
|
|
22368
22381
|
profileIds?: Array<(string)>;
|
|
22382
|
+
/**
|
|
22383
|
+
* 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.
|
|
22384
|
+
*/
|
|
22385
|
+
accountIds?: Array<(string)>;
|
|
22369
22386
|
};
|
|
22370
22387
|
};
|
|
22371
22388
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.887",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.887",
|
|
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
|
/**
|
|
@@ -15842,7 +15846,7 @@ export type GetConnectUrlData = {
|
|
|
15842
15846
|
* oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
|
|
15843
15847
|
* internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
|
|
15844
15848
|
* missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
|
|
15845
|
-
* reconnect_account_mismatch, invalid_request
|
|
15849
|
+
* reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
|
|
15846
15850
|
*
|
|
15847
15851
|
* Access and limits:
|
|
15848
15852
|
* profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
|
|
@@ -15887,6 +15891,11 @@ export type GetConnectUrlData = {
|
|
|
15887
15891
|
* already-connected account needs, so nothing was changed and it keeps working as before.
|
|
15888
15892
|
* It is user-fixable: connect again and accept every permission on TikTok's screen.
|
|
15889
15893
|
*
|
|
15894
|
+
* 4. `instagram_login_method_mismatch` means an Instagram Login authorization landed on a
|
|
15895
|
+
* profile whose Instagram account is connected through Facebook Login, so nothing was
|
|
15896
|
+
* changed and it keeps working as before. To refresh it, connect again with
|
|
15897
|
+
* `loginMethod=facebook_login`. To move it to Instagram Login, disconnect it first.
|
|
15898
|
+
*
|
|
15890
15899
|
*/
|
|
15891
15900
|
redirect_url?: string;
|
|
15892
15901
|
/**
|
|
@@ -21726,6 +21735,10 @@ export type CreateWebhookSettingsData = {
|
|
|
21726
21735
|
* 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
21736
|
*/
|
|
21728
21737
|
profileIds?: Array<(string)>;
|
|
21738
|
+
/**
|
|
21739
|
+
* 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.
|
|
21740
|
+
*/
|
|
21741
|
+
accountIds?: Array<(string)>;
|
|
21729
21742
|
};
|
|
21730
21743
|
};
|
|
21731
21744
|
|
|
@@ -21787,9 +21800,13 @@ export type UpdateWebhookSettingsData = {
|
|
|
21787
21800
|
*/
|
|
21788
21801
|
disabledResourceGroups?: Array<('publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks')>;
|
|
21789
21802
|
/**
|
|
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.
|
|
21803
|
+
* 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
21804
|
*/
|
|
21792
21805
|
profileIds?: Array<(string)>;
|
|
21806
|
+
/**
|
|
21807
|
+
* 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.
|
|
21808
|
+
*/
|
|
21809
|
+
accountIds?: Array<(string)>;
|
|
21793
21810
|
};
|
|
21794
21811
|
};
|
|
21795
21812
|
|