@pushwoosh/rpc-v2-http-api-data 0.2.234 → 0.2.236

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/data.js CHANGED
@@ -10652,6 +10652,108 @@ export const data = {
10652
10652
  "response": "pushwoosh.rpc_v2.email_suppressions.GetEmailSuppressionResponse",
10653
10653
  "method": "get",
10654
10654
  "path": "/api/email_suppressions/status"
10655
+ },
10656
+ "ReactivateEmail": {
10657
+ "request": "pushwoosh.rpc_v2.email_suppressions.ReactivateEmailRequest",
10658
+ "response": "pushwoosh.rpc_v2.email_suppressions.ReactivateEmailResponse",
10659
+ "method": "post",
10660
+ "path": "/api/email_suppressions:reactivate"
10661
+ },
10662
+ "ListEmailReactivations": {
10663
+ "request": "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsRequest",
10664
+ "response": "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsResponse",
10665
+ "method": "get",
10666
+ "path": "/api/email_suppressions/reactivations"
10667
+ }
10668
+ }
10669
+ },
10670
+ "pushwoosh.rpc_v2.email_suppressions.ReactivateEmailRequest": {
10671
+ "type": "I",
10672
+ "fields": {
10673
+ "application": {
10674
+ "type": "string"
10675
+ },
10676
+ "email": {
10677
+ "type": "string"
10678
+ },
10679
+ "reasonComment": {
10680
+ "type": "string"
10681
+ },
10682
+ "consentConfirmed": {
10683
+ "type": "boolean"
10684
+ }
10685
+ }
10686
+ },
10687
+ "pushwoosh.rpc_v2.email_suppressions.ReactivateEmailResponse": {
10688
+ "type": "I",
10689
+ "fields": {
10690
+ "reactivatedSources": {
10691
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource",
10692
+ "array": true
10693
+ },
10694
+ "deviceRegistered": {
10695
+ "type": "boolean"
10696
+ }
10697
+ }
10698
+ },
10699
+ "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsRequest": {
10700
+ "type": "I",
10701
+ "fields": {
10702
+ "application": {
10703
+ "type": "string"
10704
+ },
10705
+ "email": {
10706
+ "type": "string"
10707
+ },
10708
+ "limit": {
10709
+ "type": "number"
10710
+ },
10711
+ "offset": {
10712
+ "type": "number"
10713
+ }
10714
+ }
10715
+ },
10716
+ "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsResponse": {
10717
+ "type": "I",
10718
+ "fields": {
10719
+ "reactivations": {
10720
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailReactivation",
10721
+ "array": true
10722
+ },
10723
+ "total": {
10724
+ "type": "number"
10725
+ }
10726
+ }
10727
+ },
10728
+ "pushwoosh.rpc_v2.email_suppressions.EmailReactivation": {
10729
+ "type": "I",
10730
+ "fields": {
10731
+ "email": {
10732
+ "type": "string"
10733
+ },
10734
+ "source": {
10735
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource"
10736
+ },
10737
+ "createdAt": {
10738
+ "type": "Date"
10739
+ },
10740
+ "comment": {
10741
+ "type": "string"
10742
+ },
10743
+ "consentConfirmed": {
10744
+ "type": "boolean"
10745
+ },
10746
+ "actorType": {
10747
+ "type": "string"
10748
+ },
10749
+ "actorId": {
10750
+ "type": "number"
10751
+ },
10752
+ "channel": {
10753
+ "type": "string"
10754
+ },
10755
+ "application": {
10756
+ "type": "string"
10655
10757
  }
10656
10758
  }
10657
10759
  },
@@ -1,9 +1,57 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type EmailSuppressionsService_GetEmailSuppression = RpcMethod<GetEmailSuppressionRequest, GetEmailSuppressionResponse>;
3
+ export type EmailSuppressionsService_ReactivateEmail = RpcMethod<ReactivateEmailRequest, ReactivateEmailResponse>;
4
+ export type EmailSuppressionsService_ListEmailReactivations = RpcMethod<ListEmailReactivationsRequest, ListEmailReactivationsResponse>;
3
5
  export interface EmailSuppressionsService {
4
6
  /** Returns whether an email address is suppressed (spam complaint or hard bounce) for the application's account, with the source, date and the provider's verbatim reason including SMTP and diagnostic codes. Use to explain why emails to a subscriber are not going out while the profile still looks subscribed. */
5
7
  GetEmailSuppression: EmailSuppressionsService_GetEmailSuppression;
8
+ /** Takes an email address off the suppression lists for the account: removes the complaint and hard-bounce records, clears the Bounced Email tag and re-registers the email device when the complaint had unregistered it. Requires the ManageEmailSuppression right, and consent_confirmed for an address suppressed by a spam complaint. */
9
+ ReactivateEmail: EmailSuppressionsService_ReactivateEmail;
10
+ /** Returns the journal of suppression removals for the account — who reactivated which address, from which list, with what comment and through which channel. Use to prove to a mailbox provider that returns were deliberate. */
11
+ ListEmailReactivations: EmailSuppressionsService_ListEmailReactivations;
6
12
  }
13
+ export type ReactivateEmailRequest = {
14
+ /** Pushwoosh application code (XXXXX-XXXXX) the reactivation is performed from. */
15
+ application?: string;
16
+ /** Email address to reactivate; matched case-insensitively. */
17
+ email?: string;
18
+ /** Free-text note stored in the journal, up to 255 characters. */
19
+ reasonComment?: string;
20
+ /** Confirms the recipient asked to be mailed again; required when the address is on the complaint list. */
21
+ consentConfirmed?: boolean;
22
+ };
23
+ export type ReactivateEmailResponse = {
24
+ /** Lists the address was removed from; empty when it was not suppressed. */
25
+ reactivatedSources: EmailSuppressionSource[];
26
+ /** True when the email device was registered again because the complaint had removed it. */
27
+ deviceRegistered: boolean;
28
+ };
29
+ export type ListEmailReactivationsRequest = {
30
+ /** Pushwoosh application code (XXXXX-XXXXX); the journal itself is account-wide. */
31
+ application?: string;
32
+ /** Optional exact address filter, matched case-insensitively. */
33
+ email?: string;
34
+ /** Page size, 100 by default, 1000 at most. */
35
+ limit?: number;
36
+ offset?: number;
37
+ };
38
+ export type ListEmailReactivationsResponse = {
39
+ reactivations: EmailReactivation[];
40
+ total: number;
41
+ };
42
+ export type EmailReactivation = {
43
+ email: string;
44
+ source: EmailSuppressionSource;
45
+ createdAt: Date;
46
+ comment: string;
47
+ consentConfirmed: boolean;
48
+ /** Who did it: account_user or pushwoosh_staff. */
49
+ actorType: string;
50
+ actorId: number;
51
+ /** How it was done: ui, api or service (an internal service-token call). */
52
+ channel: string;
53
+ application: string;
54
+ };
7
55
  export type GetEmailSuppressionRequest = {
8
56
  /** Pushwoosh application code (XXXXX-XXXXX). */
9
57
  application?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.234",
3
+ "version": "0.2.236",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",