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

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
@@ -10643,6 +10643,86 @@ export const data = {
10643
10643
  }
10644
10644
  }
10645
10645
  },
10646
+ "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionsService": {
10647
+ "type": "S",
10648
+ "key": "emailSuppressions",
10649
+ "methods": {
10650
+ "GetEmailSuppression": {
10651
+ "request": "pushwoosh.rpc_v2.email_suppressions.GetEmailSuppressionRequest",
10652
+ "response": "pushwoosh.rpc_v2.email_suppressions.GetEmailSuppressionResponse",
10653
+ "method": "get",
10654
+ "path": "/api/email_suppressions/status"
10655
+ }
10656
+ }
10657
+ },
10658
+ "pushwoosh.rpc_v2.email_suppressions.GetEmailSuppressionRequest": {
10659
+ "type": "I",
10660
+ "fields": {
10661
+ "application": {
10662
+ "type": "string"
10663
+ },
10664
+ "email": {
10665
+ "type": "string"
10666
+ }
10667
+ }
10668
+ },
10669
+ "pushwoosh.rpc_v2.email_suppressions.GetEmailSuppressionResponse": {
10670
+ "type": "I",
10671
+ "fields": {
10672
+ "state": {
10673
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionState"
10674
+ },
10675
+ "suppressions": {
10676
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppression",
10677
+ "array": true
10678
+ }
10679
+ }
10680
+ },
10681
+ "pushwoosh.rpc_v2.email_suppressions.EmailSuppression": {
10682
+ "type": "I",
10683
+ "fields": {
10684
+ "source": {
10685
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource"
10686
+ },
10687
+ "occurredAt": {
10688
+ "type": "Date"
10689
+ },
10690
+ "reason": {
10691
+ "type": "string"
10692
+ },
10693
+ "rawReason": {
10694
+ "type": "string"
10695
+ },
10696
+ "smtpCode": {
10697
+ "type": "string"
10698
+ },
10699
+ "diagnosticCode": {
10700
+ "type": "string"
10701
+ },
10702
+ "application": {
10703
+ "type": "string"
10704
+ },
10705
+ "accountWide": {
10706
+ "type": "boolean"
10707
+ }
10708
+ }
10709
+ },
10710
+ "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionState": {
10711
+ "type": "E",
10712
+ "values": [
10713
+ "EMAIL_SUPPRESSION_STATE_UNSPECIFIED",
10714
+ "EMAIL_SUPPRESSION_STATE_DELIVERABLE",
10715
+ "EMAIL_SUPPRESSION_STATE_SUPPRESSED"
10716
+ ]
10717
+ },
10718
+ "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource": {
10719
+ "type": "E",
10720
+ "values": [
10721
+ "EMAIL_SUPPRESSION_SOURCE_UNSPECIFIED",
10722
+ "EMAIL_SUPPRESSION_SOURCE_SPAM_COMPLAINT",
10723
+ "EMAIL_SUPPRESSION_SOURCE_HARD_BOUNCE"
10724
+ ]
10725
+ },
10646
10726
  "pushwoosh.rpc_v2.accounts.EmailTemplatesService": {
10647
10727
  "type": "S",
10648
10728
  "key": "emailTemplates",
@@ -0,0 +1,33 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type EmailSuppressionsService_GetEmailSuppression = RpcMethod<GetEmailSuppressionRequest, GetEmailSuppressionResponse>;
3
+ export interface EmailSuppressionsService {
4
+ /** 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
+ GetEmailSuppression: EmailSuppressionsService_GetEmailSuppression;
6
+ }
7
+ export type GetEmailSuppressionRequest = {
8
+ /** Pushwoosh application code (XXXXX-XXXXX). */
9
+ application?: string;
10
+ /** Email address to look up; matched case-insensitively. */
11
+ email?: string;
12
+ };
13
+ export type GetEmailSuppressionResponse = {
14
+ state: EmailSuppressionState;
15
+ /** One entry per list the address is on — an address can be both complained and bounced. */
16
+ suppressions: EmailSuppression[];
17
+ };
18
+ export type EmailSuppression = {
19
+ source: EmailSuppressionSource;
20
+ occurredAt: Date;
21
+ /** Human-readable reason extracted from the provider feedback. */
22
+ reason: string;
23
+ /** Provider feedback verbatim, for support and for reasons the parser did not recognise. */
24
+ rawReason: string;
25
+ smtpCode: string;
26
+ diagnosticCode: string;
27
+ /** Application the suppression was recorded in; empty when that application is gone. */
28
+ application: string;
29
+ /** Suppression is enforced for the whole account, not only for the recorded application. */
30
+ accountWide: boolean;
31
+ };
32
+ export type EmailSuppressionState = 'EMAIL_SUPPRESSION_STATE_UNSPECIFIED' | 'EMAIL_SUPPRESSION_STATE_DELIVERABLE' | 'EMAIL_SUPPRESSION_STATE_SUPPRESSED';
33
+ export type EmailSuppressionSource = 'EMAIL_SUPPRESSION_SOURCE_UNSPECIFIED' | 'EMAIL_SUPPRESSION_SOURCE_SPAM_COMPLAINT' | 'EMAIL_SUPPRESSION_SOURCE_HARD_BOUNCE';
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
package/index.d.ts CHANGED
@@ -26,6 +26,7 @@ import { DeeplinksService as pushwoosh_rpc_v2_deeplinks_DeeplinksService } from
26
26
  import { DeliverabilityCheckerService as pushwoosh_rpc_v2_deliverability_checker_DeliverabilityCheckerService } from './deliverability_checker';
27
27
  import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './devices';
28
28
  import { EmailCategoriesService as pushwoosh_rpc_v2_email_categories_EmailCategoriesService } from './email_categories';
29
+ import { EmailSuppressionsService as pushwoosh_rpc_v2_email_suppressions_EmailSuppressionsService } from './email_suppressions';
29
30
  import { EmailTemplatesService as pushwoosh_rpc_v2_accounts_EmailTemplatesService } from './accounts';
30
31
  import { EmailsConfigurationsService as pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService } from './emails_configurations';
31
32
  import { EventsService as pushwoosh_rpc_v2_events_EventsService } from './events';
@@ -96,6 +97,7 @@ export type API = {
96
97
  deliverabilityChecker: pushwoosh_rpc_v2_deliverability_checker_DeliverabilityCheckerService;
97
98
  devices: pushwoosh_rpc_v2_devices_DevicesService;
98
99
  emailCategories: pushwoosh_rpc_v2_email_categories_EmailCategoriesService;
100
+ emailSuppressions: pushwoosh_rpc_v2_email_suppressions_EmailSuppressionsService;
99
101
  emailTemplates: pushwoosh_rpc_v2_accounts_EmailTemplatesService;
100
102
  emailsConfigurations: pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService;
101
103
  events: pushwoosh_rpc_v2_events_EventsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.232",
3
+ "version": "0.2.234",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1399,8 +1399,8 @@ export type AppBadge = {
1399
1399
  /** Reusable brand footer data; never LLM-generated. */
1400
1400
  export type FooterContent = {
1401
1401
  /**
1402
- * Optional because a writer that omits an empty string is the norm, not a
1403
- * bug: 217 of the 236 stored documents with a footer lack at least one.
1402
+ * Absent means the writer never set the string, empty means it was cleared;
1403
+ * renderers fall back to their own defaults for both.
1404
1404
  */
1405
1405
  companyName?: string;
1406
1406
  address?: string;