@getlatedev/node 0.2.914 → 0.2.916
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 +74 -5
- package/dist/index.d.ts +74 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -1
- package/src/generated/types.gen.ts +74 -4
|
@@ -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')>;
|
|
8858
8884
|
/**
|
|
8859
8885
|
* Whether webhook delivery is enabled
|
|
8860
8886
|
*/
|
|
@@ -15980,6 +16006,12 @@ export type GetConnectUrlData = {
|
|
|
15980
16006
|
* requested Google scopes that were not granted. Ask the user to connect again and keep every
|
|
15981
16007
|
* permission checked.
|
|
15982
16008
|
*
|
|
16009
|
+
* `no_youtube_channel` means Google authorized the account but it has no YouTube channel we can
|
|
16010
|
+
* connect. It always comes with `is_user_fixable=true` and an `error_message`. The usual causes: the
|
|
16011
|
+
* user picked their personal Google identity instead of the Brand Account in Google's account
|
|
16012
|
+
* chooser, they only have YouTube Studio access (not Brand Account owner or manager), or the
|
|
16013
|
+
* account has no channel yet.
|
|
16014
|
+
*
|
|
15983
16015
|
* This list is NOT exhaustive and new values may be added at any time. Treat an unrecognized
|
|
15984
16016
|
* value as a generic failure rather than matching it exhaustively. Existing values are not
|
|
15985
16017
|
* renamed or removed without notice.
|
|
@@ -15997,7 +16029,7 @@ export type GetConnectUrlData = {
|
|
|
15997
16029
|
* Destination selection:
|
|
15998
16030
|
* no_facebook_pages, facebook_pages_error, no_google_locations, google_locations_error,
|
|
15999
16031
|
* google_permission_denied, no_snapchat_public_profiles, snapchat_profiles_error,
|
|
16000
|
-
* discord_no_guild, slack_no_team
|
|
16032
|
+
* no_youtube_channel, discord_no_guild, slack_no_team
|
|
16001
16033
|
*
|
|
16002
16034
|
* WhatsApp:
|
|
16003
16035
|
* whatsapp_error, one_whatsapp_per_profile, whatsapp_number_already_connected,
|
|
@@ -21868,7 +21900,7 @@ export type CreateWebhookSettingsData = {
|
|
|
21868
21900
|
/**
|
|
21869
21901
|
* Events to subscribe to (at least one required)
|
|
21870
21902
|
*/
|
|
21871
|
-
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')>;
|
|
21872
21904
|
/**
|
|
21873
21905
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
21874
21906
|
*/
|
|
@@ -21936,7 +21968,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
21936
21968
|
/**
|
|
21937
21969
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
21938
21970
|
*/
|
|
21939
|
-
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')>;
|
|
21940
21972
|
/**
|
|
21941
21973
|
* Enable or disable webhook delivery
|
|
21942
21974
|
*/
|
|
@@ -27686,6 +27718,14 @@ export type ListSmsRegistrationsResponse = ({
|
|
|
27686
27718
|
* Sole-prop 10DLC only; the OTP step is still pending.
|
|
27687
27719
|
*/
|
|
27688
27720
|
awaitingOtp?: boolean;
|
|
27721
|
+
/**
|
|
27722
|
+
* The open change request as text (status changes_requested).
|
|
27723
|
+
*/
|
|
27724
|
+
adminReviewNote?: (string) | null;
|
|
27725
|
+
/**
|
|
27726
|
+
* The same change request as points, when the reviewer wrote it that way; null otherwise.
|
|
27727
|
+
*/
|
|
27728
|
+
reviewRequest?: (SmsRegistrationReviewRequest | null);
|
|
27689
27729
|
/**
|
|
27690
27730
|
* Carrier-assigned brand trust score; drives throughput.
|
|
27691
27731
|
*/
|
|
@@ -27792,6 +27832,14 @@ export type GetSmsRegistrationResponse = ({
|
|
|
27792
27832
|
declineReason?: (string) | null;
|
|
27793
27833
|
phoneNumbers?: Array<(string)>;
|
|
27794
27834
|
awaitingOtp?: boolean;
|
|
27835
|
+
/**
|
|
27836
|
+
* The open change request as text (status changes_requested).
|
|
27837
|
+
*/
|
|
27838
|
+
adminReviewNote?: (string) | null;
|
|
27839
|
+
/**
|
|
27840
|
+
* The same change request as points, when the reviewer wrote it that way; null otherwise.
|
|
27841
|
+
*/
|
|
27842
|
+
reviewRequest?: (SmsRegistrationReviewRequest | null);
|
|
27795
27843
|
/**
|
|
27796
27844
|
* The submitted campaign content, present only for rejected
|
|
27797
27845
|
* registrations with a campaign. Edit and resubmit it via the
|
|
@@ -27876,6 +27924,28 @@ export type RespondToSmsRegistrationReviewData = {
|
|
|
27876
27924
|
* Hosted document URLs returned by POST /v1/sms/opt-in-proof.
|
|
27877
27925
|
*/
|
|
27878
27926
|
files?: Array<(string)>;
|
|
27927
|
+
/**
|
|
27928
|
+
* The `reviewRequest.id` you are answering. When it no longer matches the open request the reply is refused with 409.
|
|
27929
|
+
*/
|
|
27930
|
+
requestId?: string;
|
|
27931
|
+
/**
|
|
27932
|
+
* 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.
|
|
27933
|
+
*/
|
|
27934
|
+
answers?: Array<{
|
|
27935
|
+
pointId: string;
|
|
27936
|
+
/**
|
|
27937
|
+
* For `text` points (at least 3 characters).
|
|
27938
|
+
*/
|
|
27939
|
+
text?: string;
|
|
27940
|
+
/**
|
|
27941
|
+
* For `link` and `link_or_file` points.
|
|
27942
|
+
*/
|
|
27943
|
+
url?: string;
|
|
27944
|
+
/**
|
|
27945
|
+
* Hosted document URLs from POST /v1/sms/opt-in-proof, for `file` and `link_or_file` points.
|
|
27946
|
+
*/
|
|
27947
|
+
files?: Array<(string)>;
|
|
27948
|
+
}>;
|
|
27879
27949
|
};
|
|
27880
27950
|
path: {
|
|
27881
27951
|
id: string;
|