@getlatedev/node 0.2.916 → 0.2.918

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 CHANGED
@@ -10214,7 +10214,7 @@ type Webhook = {
10214
10214
  /**
10215
10215
  * Events subscribed to
10216
10216
  */
10217
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
10217
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
10218
10218
  /**
10219
10219
  * Whether webhook delivery is enabled
10220
10220
  */
@@ -16958,6 +16958,10 @@ type GetConnectUrlData = {
16958
16958
  * After your framework decodes the query string once, run one more decodeURIComponent (or
16959
16959
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.
16960
16960
  *
16961
+ * `code_already_redeemed` means the same authorization code arrived more than once and an earlier
16962
+ * request already processed it (the code is never sent to the platform twice). It is not a
16963
+ * failure: check GET /v1/accounts or wait for the `account.connected` webhook.
16964
+ *
16961
16965
  * `missing_google_permissions` (YouTube, Google Business and Google Ads) means the user unchecked one or more
16962
16966
  * permissions on Google's consent screen. It always comes with `is_user_fixable=true`. When Google
16963
16967
  * reported the granted scopes, `missing_scopes` is also present: a comma-separated list of the
@@ -16978,7 +16982,8 @@ type GetConnectUrlData = {
16978
16982
  * oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
16979
16983
  * internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
16980
16984
  * missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
16981
- * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
16985
+ * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request,
16986
+ * code_already_redeemed
16982
16987
  *
16983
16988
  * Access and limits:
16984
16989
  * profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
@@ -22477,7 +22482,7 @@ type CreateWebhookSettingsData = {
22477
22482
  /**
22478
22483
  * Events to subscribe to (at least one required)
22479
22484
  */
22480
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
22485
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22481
22486
  /**
22482
22487
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
22483
22488
  */
@@ -22542,7 +22547,7 @@ type UpdateWebhookSettingsData = {
22542
22547
  /**
22543
22548
  * Events to subscribe to. Must contain at least one event if provided.
22544
22549
  */
22545
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
22550
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22546
22551
  /**
22547
22552
  * Enable or disable webhook delivery
22548
22553
  */
@@ -27953,6 +27958,26 @@ type ListSmsRegistrationsResponse = ({
27953
27958
  * The open change request as text (status changes_requested).
27954
27959
  */
27955
27960
  adminReviewNote?: (string) | null;
27961
+ /**
27962
+ * When you last answered a change request.
27963
+ */
27964
+ lastResponseAt?: (string) | null;
27965
+ /**
27966
+ * Rejected by the carriers at least once. A pending registration with this set is our fix, back with the carriers.
27967
+ */
27968
+ previouslyRejected?: boolean;
27969
+ /**
27970
+ * When the carriers last rejected it.
27971
+ */
27972
+ lastRejectedAt?: (string) | null;
27973
+ /**
27974
+ * Rejected in our review before anything was filed with the carriers (not a carrier rejection; nothing to fix or appeal).
27975
+ */
27976
+ rejectedBeforeSubmission?: boolean;
27977
+ /**
27978
+ * Sole proprietor only: the verification code was never entered within 30 days. Start SMS setup again; it revives the same brand with no second brand fee.
27979
+ */
27980
+ otpExpired?: boolean;
27956
27981
  /**
27957
27982
  * The same change request as points, when the reviewer wrote it that way; null otherwise.
27958
27983
  */
@@ -28163,7 +28188,10 @@ type RespondToSmsRegistrationReviewData = {
28163
28188
  };
28164
28189
  };
28165
28190
  type RespondToSmsRegistrationReviewResponse = ({
28166
- status?: 'requested';
28191
+ /**
28192
+ * requested = back in our review; rejected = a registration the carriers rejected, where we asked for these answers to fix it (it stays rejected while we do).
28193
+ */
28194
+ status?: 'requested' | 'rejected';
28167
28195
  });
28168
28196
  type RespondToSmsRegistrationReviewError = (ErrorResponse | {
28169
28197
  error?: string;
package/dist/index.d.ts CHANGED
@@ -10214,7 +10214,7 @@ type Webhook = {
10214
10214
  /**
10215
10215
  * Events subscribed to
10216
10216
  */
10217
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
10217
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
10218
10218
  /**
10219
10219
  * Whether webhook delivery is enabled
10220
10220
  */
@@ -16958,6 +16958,10 @@ type GetConnectUrlData = {
16958
16958
  * After your framework decodes the query string once, run one more decodeURIComponent (or
16959
16959
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.
16960
16960
  *
16961
+ * `code_already_redeemed` means the same authorization code arrived more than once and an earlier
16962
+ * request already processed it (the code is never sent to the platform twice). It is not a
16963
+ * failure: check GET /v1/accounts or wait for the `account.connected` webhook.
16964
+ *
16961
16965
  * `missing_google_permissions` (YouTube, Google Business and Google Ads) means the user unchecked one or more
16962
16966
  * permissions on Google's consent screen. It always comes with `is_user_fixable=true`. When Google
16963
16967
  * reported the granted scopes, `missing_scopes` is also present: a comma-separated list of the
@@ -16978,7 +16982,8 @@ type GetConnectUrlData = {
16978
16982
  * oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
16979
16983
  * internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
16980
16984
  * missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
16981
- * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
16985
+ * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request,
16986
+ * code_already_redeemed
16982
16987
  *
16983
16988
  * Access and limits:
16984
16989
  * profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
@@ -22477,7 +22482,7 @@ type CreateWebhookSettingsData = {
22477
22482
  /**
22478
22483
  * Events to subscribe to (at least one required)
22479
22484
  */
22480
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
22485
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22481
22486
  /**
22482
22487
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
22483
22488
  */
@@ -22542,7 +22547,7 @@ type UpdateWebhookSettingsData = {
22542
22547
  /**
22543
22548
  * Events to subscribe to. Must contain at least one event if provided.
22544
22549
  */
22545
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
22550
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22546
22551
  /**
22547
22552
  * Enable or disable webhook delivery
22548
22553
  */
@@ -27953,6 +27958,26 @@ type ListSmsRegistrationsResponse = ({
27953
27958
  * The open change request as text (status changes_requested).
27954
27959
  */
27955
27960
  adminReviewNote?: (string) | null;
27961
+ /**
27962
+ * When you last answered a change request.
27963
+ */
27964
+ lastResponseAt?: (string) | null;
27965
+ /**
27966
+ * Rejected by the carriers at least once. A pending registration with this set is our fix, back with the carriers.
27967
+ */
27968
+ previouslyRejected?: boolean;
27969
+ /**
27970
+ * When the carriers last rejected it.
27971
+ */
27972
+ lastRejectedAt?: (string) | null;
27973
+ /**
27974
+ * Rejected in our review before anything was filed with the carriers (not a carrier rejection; nothing to fix or appeal).
27975
+ */
27976
+ rejectedBeforeSubmission?: boolean;
27977
+ /**
27978
+ * Sole proprietor only: the verification code was never entered within 30 days. Start SMS setup again; it revives the same brand with no second brand fee.
27979
+ */
27980
+ otpExpired?: boolean;
27956
27981
  /**
27957
27982
  * The same change request as points, when the reviewer wrote it that way; null otherwise.
27958
27983
  */
@@ -28163,7 +28188,10 @@ type RespondToSmsRegistrationReviewData = {
28163
28188
  };
28164
28189
  };
28165
28190
  type RespondToSmsRegistrationReviewResponse = ({
28166
- status?: 'requested';
28191
+ /**
28192
+ * requested = back in our review; rejected = a registration the carriers rejected, where we asked for these answers to fix it (it stays rejected while we do).
28193
+ */
28194
+ status?: 'requested' | 'rejected';
28167
28195
  });
28168
28196
  type RespondToSmsRegistrationReviewError = (ErrorResponse | {
28169
28197
  error?: string;
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.916",
39
+ version: "0.2.918",
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.916",
8
+ version: "0.2.918",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.916",
3
+ "version": "0.2.918",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -5854,7 +5854,8 @@ export const appealSmsRegistration = <ThrowOnError extends boolean = false>(opti
5854
5854
  * was written as points (`reviewRequest` on the registration), send one
5855
5855
  * entry in `answers` per point. The registration
5856
5856
  * returns to `requested` (back in review), and you do not need to resubmit the
5857
- * whole registration. To change the submitted brand/campaign fields
5857
+ * whole registration. A `rejected` registration can also be answered when
5858
+ * we asked for changes to fix it (`reviewRequest` set); it stays `rejected`. To change the submitted brand/campaign fields
5858
5859
  * themselves, resubmit via `POST /v1/sms/registrations` with
5859
5860
  * `resubmitRequestId` instead.
5860
5861
  *
@@ -8880,7 +8880,7 @@ export type Webhook = {
8880
8880
  /**
8881
8881
  * Events subscribed to
8882
8882
  */
8883
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
8883
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
8884
8884
  /**
8885
8885
  * Whether webhook delivery is enabled
8886
8886
  */
@@ -16000,6 +16000,10 @@ export type GetConnectUrlData = {
16000
16000
  * After your framework decodes the query string once, run one more decodeURIComponent (or
16001
16001
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.
16002
16002
  *
16003
+ * `code_already_redeemed` means the same authorization code arrived more than once and an earlier
16004
+ * request already processed it (the code is never sent to the platform twice). It is not a
16005
+ * failure: check GET /v1/accounts or wait for the `account.connected` webhook.
16006
+ *
16003
16007
  * `missing_google_permissions` (YouTube, Google Business and Google Ads) means the user unchecked one or more
16004
16008
  * permissions on Google's consent screen. It always comes with `is_user_fixable=true`. When Google
16005
16009
  * reported the granted scopes, `missing_scopes` is also present: a comma-separated list of the
@@ -16020,7 +16024,8 @@ export type GetConnectUrlData = {
16020
16024
  * oauth_denied, invalid_callback, invalid_state, unsupported_platform, connection_failed,
16021
16025
  * internal_error, token_exchange_failed, byok_config_error, personal_account_not_supported,
16022
16026
  * missing_google_permissions, missing_tiktok_permissions, platform_requires_destination,
16023
- * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request
16027
+ * reconnect_account_mismatch, instagram_login_method_mismatch, invalid_request,
16028
+ * code_already_redeemed
16024
16029
  *
16025
16030
  * Access and limits:
16026
16031
  * profile_not_found, invalid_profile_id, access_denied, account_limit_exceeded,
@@ -21900,7 +21905,7 @@ export type CreateWebhookSettingsData = {
21900
21905
  /**
21901
21906
  * Events to subscribe to (at least one required)
21902
21907
  */
21903
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
21908
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
21904
21909
  /**
21905
21910
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
21906
21911
  */
@@ -21968,7 +21973,7 @@ export type UpdateWebhookSettingsData = {
21968
21973
  /**
21969
21974
  * Events to subscribe to. Must contain at least one event if provided.
21970
21975
  */
21971
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required')>;
21976
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'analytics.synced' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
21972
21977
  /**
21973
21978
  * Enable or disable webhook delivery
21974
21979
  */
@@ -27722,6 +27727,26 @@ export type ListSmsRegistrationsResponse = ({
27722
27727
  * The open change request as text (status changes_requested).
27723
27728
  */
27724
27729
  adminReviewNote?: (string) | null;
27730
+ /**
27731
+ * When you last answered a change request.
27732
+ */
27733
+ lastResponseAt?: (string) | null;
27734
+ /**
27735
+ * Rejected by the carriers at least once. A pending registration with this set is our fix, back with the carriers.
27736
+ */
27737
+ previouslyRejected?: boolean;
27738
+ /**
27739
+ * When the carriers last rejected it.
27740
+ */
27741
+ lastRejectedAt?: (string) | null;
27742
+ /**
27743
+ * Rejected in our review before anything was filed with the carriers (not a carrier rejection; nothing to fix or appeal).
27744
+ */
27745
+ rejectedBeforeSubmission?: boolean;
27746
+ /**
27747
+ * Sole proprietor only: the verification code was never entered within 30 days. Start SMS setup again; it revives the same brand with no second brand fee.
27748
+ */
27749
+ otpExpired?: boolean;
27725
27750
  /**
27726
27751
  * The same change request as points, when the reviewer wrote it that way; null otherwise.
27727
27752
  */
@@ -27953,7 +27978,10 @@ export type RespondToSmsRegistrationReviewData = {
27953
27978
  };
27954
27979
 
27955
27980
  export type RespondToSmsRegistrationReviewResponse = ({
27956
- status?: 'requested';
27981
+ /**
27982
+ * requested = back in our review; rejected = a registration the carriers rejected, where we asked for these answers to fix it (it stays rejected while we do).
27983
+ */
27984
+ status?: 'requested' | 'rejected';
27957
27985
  });
27958
27986
 
27959
27987
  export type RespondToSmsRegistrationReviewError = (ErrorResponse | {