@getlatedev/node 0.2.1657 → 0.2.1658

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.
@@ -18357,6 +18357,17 @@ export type SlackPlatformData = {
18357
18357
  iconUrl?: string;
18358
18358
  };
18359
18359
 
18360
+ export type SmsOptOutRequest = {
18361
+ /**
18362
+ * ID of the SMS number account the opt-out applies to (from `GET /v1/accounts`).
18363
+ */
18364
+ accountId: string;
18365
+ /**
18366
+ * Recipient phone number in E.164 format, e.g. +13105559999.
18367
+ */
18368
+ phone: string;
18369
+ };
18370
+
18360
18371
  /**
18361
18372
  * 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).
18362
18373
  */
@@ -50562,12 +50573,54 @@ export type ListSmsOptOutsResponse = ({
50562
50573
  * Which of your numbers the recipient opted out from.
50563
50574
  */
50564
50575
  from?: (string) | null;
50576
+ /**
50577
+ * `inbound_stop` when the recipient texted an opt-out keyword, `api` when recorded with `POST /v1/sms/opt-outs`. Null when unknown.
50578
+ */
50579
+ source?: ('inbound_stop' | 'api') | null;
50565
50580
  }>;
50566
50581
  count?: number;
50567
50582
  });
50568
50583
 
50569
50584
  export type ListSmsOptOutsError = (ErrorResponse);
50570
50585
 
50586
+ export type CreateSmsOptOutData = {
50587
+ body: SmsOptOutRequest;
50588
+ };
50589
+
50590
+ export type CreateSmsOptOutResponse = ({
50591
+ accountId?: string;
50592
+ phoneNumber?: string;
50593
+ /**
50594
+ * Always true.
50595
+ */
50596
+ optedOut?: boolean;
50597
+ /**
50598
+ * What set the current opt-out.
50599
+ */
50600
+ source?: 'api' | 'inbound_stop';
50601
+ });
50602
+
50603
+ export type CreateSmsOptOutError = (ErrorResponse | {
50604
+ error?: string;
50605
+ });
50606
+
50607
+ export type DeleteSmsOptOutData = {
50608
+ body: SmsOptOutRequest;
50609
+ };
50610
+
50611
+ export type DeleteSmsOptOutResponse = ({
50612
+ accountId?: string;
50613
+ phoneNumber?: string;
50614
+ /**
50615
+ * Always false.
50616
+ */
50617
+ optedOut?: boolean;
50618
+ });
50619
+
50620
+ export type DeleteSmsOptOutError = (ErrorResponse | {
50621
+ error?: string;
50622
+ });
50623
+
50571
50624
  export type CreateSmsSenderIdData = {
50572
50625
  body: {
50573
50626
  /**