@getlatedev/node 0.2.915 → 0.2.917
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 +91 -5
- package/dist/index.d.ts +91 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -2
- package/src/generated/types.gen.ts +91 -4
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -5850,9 +5850,12 @@ export const appealSmsRegistration = <ThrowOnError extends boolean = false>(opti
|
|
|
5850
5850
|
* Reply to a change request
|
|
5851
5851
|
* Replies to a reviewer change request on a registration in
|
|
5852
5852
|
* `changes_requested` state: a note, hosted document URLs (from
|
|
5853
|
-
* `POST /v1/sms/opt-in-proof`), or both, sent together.
|
|
5853
|
+
* `POST /v1/sms/opt-in-proof`), or both, sent together. When the request
|
|
5854
|
+
* was written as points (`reviewRequest` on the registration), send one
|
|
5855
|
+
* entry in `answers` per point. The registration
|
|
5854
5856
|
* returns to `requested` (back in review), and you do not need to resubmit the
|
|
5855
|
-
* whole registration.
|
|
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
|
|
5856
5859
|
* themselves, resubmit via `POST /v1/sms/registrations` with
|
|
5857
5860
|
* `resubmitRequestId` instead.
|
|
5858
5861
|
*
|
|
@@ -7602,6 +7602,32 @@ export type SlackPlatformData = {
|
|
|
7602
7602
|
iconUrl?: string;
|
|
7603
7603
|
};
|
|
7604
7604
|
|
|
7605
|
+
/**
|
|
7606
|
+
* An open change request written as points. Answer each point with POST /v1/sms/registrations/{id}/respond: `answer` says what each point needs (text, a link, a hosted document, or a link or a document).
|
|
7607
|
+
*/
|
|
7608
|
+
export type SmsRegistrationReviewRequest = {
|
|
7609
|
+
/**
|
|
7610
|
+
* Changes with every request. Send it back as `requestId` when answering, so a reply to a replaced request is refused (409) instead of filed under the new points.
|
|
7611
|
+
*/
|
|
7612
|
+
id?: string;
|
|
7613
|
+
/**
|
|
7614
|
+
* Context from the reviewer, e.g. what was already fixed on our side.
|
|
7615
|
+
*/
|
|
7616
|
+
intro?: string;
|
|
7617
|
+
points?: Array<{
|
|
7618
|
+
/**
|
|
7619
|
+
* Point id to send back in `answers[].pointId`.
|
|
7620
|
+
*/
|
|
7621
|
+
id: string;
|
|
7622
|
+
title: string;
|
|
7623
|
+
/**
|
|
7624
|
+
* What exactly is needed.
|
|
7625
|
+
*/
|
|
7626
|
+
detail: string;
|
|
7627
|
+
answer: 'text' | 'link' | 'file' | 'link_or_file';
|
|
7628
|
+
}>;
|
|
7629
|
+
};
|
|
7630
|
+
|
|
7605
7631
|
/**
|
|
7606
7632
|
* Requires a Public Profile. Single media item only. Content types: story (ephemeral 24h), saved_story (permanent, title max 45 chars), spotlight (video, max 160 chars).
|
|
7607
7633
|
*/
|
|
@@ -8854,7 +8880,7 @@ export type Webhook = {
|
|
|
8854
8880
|
/**
|
|
8855
8881
|
* Events subscribed to
|
|
8856
8882
|
*/
|
|
8857
|
-
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')>;
|
|
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')>;
|
|
8858
8884
|
/**
|
|
8859
8885
|
* Whether webhook delivery is enabled
|
|
8860
8886
|
*/
|
|
@@ -21874,7 +21900,7 @@ export type CreateWebhookSettingsData = {
|
|
|
21874
21900
|
/**
|
|
21875
21901
|
* Events to subscribe to (at least one required)
|
|
21876
21902
|
*/
|
|
21877
|
-
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')>;
|
|
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' | 'sms.registration.status_updated')>;
|
|
21878
21904
|
/**
|
|
21879
21905
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
21880
21906
|
*/
|
|
@@ -21942,7 +21968,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
21942
21968
|
/**
|
|
21943
21969
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
21944
21970
|
*/
|
|
21945
|
-
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')>;
|
|
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' | 'sms.registration.status_updated')>;
|
|
21946
21972
|
/**
|
|
21947
21973
|
* Enable or disable webhook delivery
|
|
21948
21974
|
*/
|
|
@@ -27692,6 +27718,34 @@ export type ListSmsRegistrationsResponse = ({
|
|
|
27692
27718
|
* Sole-prop 10DLC only; the OTP step is still pending.
|
|
27693
27719
|
*/
|
|
27694
27720
|
awaitingOtp?: boolean;
|
|
27721
|
+
/**
|
|
27722
|
+
* The open change request as text (status changes_requested).
|
|
27723
|
+
*/
|
|
27724
|
+
adminReviewNote?: (string) | null;
|
|
27725
|
+
/**
|
|
27726
|
+
* When you last answered a change request.
|
|
27727
|
+
*/
|
|
27728
|
+
lastResponseAt?: (string) | null;
|
|
27729
|
+
/**
|
|
27730
|
+
* Rejected by the carriers at least once. A pending registration with this set is our fix, back with the carriers.
|
|
27731
|
+
*/
|
|
27732
|
+
previouslyRejected?: boolean;
|
|
27733
|
+
/**
|
|
27734
|
+
* When the carriers last rejected it.
|
|
27735
|
+
*/
|
|
27736
|
+
lastRejectedAt?: (string) | null;
|
|
27737
|
+
/**
|
|
27738
|
+
* Rejected in our review before anything was filed with the carriers (not a carrier rejection; nothing to fix or appeal).
|
|
27739
|
+
*/
|
|
27740
|
+
rejectedBeforeSubmission?: boolean;
|
|
27741
|
+
/**
|
|
27742
|
+
* 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.
|
|
27743
|
+
*/
|
|
27744
|
+
otpExpired?: boolean;
|
|
27745
|
+
/**
|
|
27746
|
+
* The same change request as points, when the reviewer wrote it that way; null otherwise.
|
|
27747
|
+
*/
|
|
27748
|
+
reviewRequest?: (SmsRegistrationReviewRequest | null);
|
|
27695
27749
|
/**
|
|
27696
27750
|
* Carrier-assigned brand trust score; drives throughput.
|
|
27697
27751
|
*/
|
|
@@ -27798,6 +27852,14 @@ export type GetSmsRegistrationResponse = ({
|
|
|
27798
27852
|
declineReason?: (string) | null;
|
|
27799
27853
|
phoneNumbers?: Array<(string)>;
|
|
27800
27854
|
awaitingOtp?: boolean;
|
|
27855
|
+
/**
|
|
27856
|
+
* The open change request as text (status changes_requested).
|
|
27857
|
+
*/
|
|
27858
|
+
adminReviewNote?: (string) | null;
|
|
27859
|
+
/**
|
|
27860
|
+
* The same change request as points, when the reviewer wrote it that way; null otherwise.
|
|
27861
|
+
*/
|
|
27862
|
+
reviewRequest?: (SmsRegistrationReviewRequest | null);
|
|
27801
27863
|
/**
|
|
27802
27864
|
* The submitted campaign content, present only for rejected
|
|
27803
27865
|
* registrations with a campaign. Edit and resubmit it via the
|
|
@@ -27882,6 +27944,28 @@ export type RespondToSmsRegistrationReviewData = {
|
|
|
27882
27944
|
* Hosted document URLs returned by POST /v1/sms/opt-in-proof.
|
|
27883
27945
|
*/
|
|
27884
27946
|
files?: Array<(string)>;
|
|
27947
|
+
/**
|
|
27948
|
+
* The `reviewRequest.id` you are answering. When it no longer matches the open request the reply is refused with 409.
|
|
27949
|
+
*/
|
|
27950
|
+
requestId?: string;
|
|
27951
|
+
/**
|
|
27952
|
+
* One answer per point of the open `reviewRequest`, each point at most once. Required (every point) when the request has points; a missing, repeated or unknown point is a 400 naming the point ids. At most 10 files per reply.
|
|
27953
|
+
*/
|
|
27954
|
+
answers?: Array<{
|
|
27955
|
+
pointId: string;
|
|
27956
|
+
/**
|
|
27957
|
+
* For `text` points (at least 3 characters).
|
|
27958
|
+
*/
|
|
27959
|
+
text?: string;
|
|
27960
|
+
/**
|
|
27961
|
+
* For `link` and `link_or_file` points.
|
|
27962
|
+
*/
|
|
27963
|
+
url?: string;
|
|
27964
|
+
/**
|
|
27965
|
+
* Hosted document URLs from POST /v1/sms/opt-in-proof, for `file` and `link_or_file` points.
|
|
27966
|
+
*/
|
|
27967
|
+
files?: Array<(string)>;
|
|
27968
|
+
}>;
|
|
27885
27969
|
};
|
|
27886
27970
|
path: {
|
|
27887
27971
|
id: string;
|
|
@@ -27889,7 +27973,10 @@ export type RespondToSmsRegistrationReviewData = {
|
|
|
27889
27973
|
};
|
|
27890
27974
|
|
|
27891
27975
|
export type RespondToSmsRegistrationReviewResponse = ({
|
|
27892
|
-
|
|
27976
|
+
/**
|
|
27977
|
+
* 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).
|
|
27978
|
+
*/
|
|
27979
|
+
status?: 'requested' | 'rejected';
|
|
27893
27980
|
});
|
|
27894
27981
|
|
|
27895
27982
|
export type RespondToSmsRegistrationReviewError = (ErrorResponse | {
|