@pushwoosh/rpc-v2-http-api-data 0.2.346 → 0.2.348

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
@@ -13983,6 +13983,18 @@ export const data = {
13983
13983
  "response": "pushwoosh.rpc_v2.emails_configurations.VerifyCustomTrackingDomainResponse",
13984
13984
  "method": "post",
13985
13985
  "path": "/api/emails_configurations/custom_tracking_domain:verify"
13986
+ },
13987
+ "DiagnoseDomain": {
13988
+ "request": "pushwoosh.rpc_v2.emails_configurations.DiagnoseDomainRequest",
13989
+ "response": "pushwoosh.rpc_v2.emails_configurations.DiagnoseDomainResponse",
13990
+ "method": "get",
13991
+ "path": "/api/emails_configurations/domains:diagnose"
13992
+ },
13993
+ "RestartDomainVerification": {
13994
+ "request": "pushwoosh.rpc_v2.emails_configurations.RestartDomainVerificationRequest",
13995
+ "response": "pushwoosh.rpc_v2.emails_configurations.RestartDomainVerificationResponse",
13996
+ "method": "post",
13997
+ "path": "/api/emails_configurations/domains:restart_verification"
13986
13998
  }
13987
13999
  }
13988
14000
  },
@@ -14150,6 +14162,103 @@ export const data = {
14150
14162
  }
14151
14163
  }
14152
14164
  },
14165
+ "pushwoosh.rpc_v2.emails_configurations.DiagnoseDomainRequest": {
14166
+ "type": "I",
14167
+ "fields": {
14168
+ "application": {
14169
+ "type": "string"
14170
+ },
14171
+ "domain": {
14172
+ "type": "string"
14173
+ }
14174
+ }
14175
+ },
14176
+ "pushwoosh.rpc_v2.emails_configurations.DomainDiagnosis": {
14177
+ "type": "E",
14178
+ "values": [
14179
+ "DOMAIN_DIAGNOSIS_UNSPECIFIED",
14180
+ "DOMAIN_DIAGNOSIS_VERIFIED",
14181
+ "DOMAIN_DIAGNOSIS_RECORDS_INCOMPLETE",
14182
+ "DOMAIN_DIAGNOSIS_WAITING_PROVIDER",
14183
+ "DOMAIN_DIAGNOSIS_PROVIDER_VERIFICATION_EXPIRED",
14184
+ "DOMAIN_DIAGNOSIS_DOMAIN_NOT_FOUND"
14185
+ ]
14186
+ },
14187
+ "pushwoosh.rpc_v2.emails_configurations.RecordDiagnosis": {
14188
+ "type": "E",
14189
+ "values": [
14190
+ "RECORD_DIAGNOSIS_UNSPECIFIED",
14191
+ "RECORD_DIAGNOSIS_OK",
14192
+ "RECORD_DIAGNOSIS_MISSING",
14193
+ "RECORD_DIAGNOSIS_WRONG_VALUE",
14194
+ "RECORD_DIAGNOSIS_DOUBLE_SUFFIX",
14195
+ "RECORD_DIAGNOSIS_TXT_INSTEAD_OF_CNAME",
14196
+ "RECORD_DIAGNOSIS_RESOLVE_ERROR"
14197
+ ]
14198
+ },
14199
+ "pushwoosh.rpc_v2.emails_configurations.DnsRecordCheck": {
14200
+ "type": "I",
14201
+ "fields": {
14202
+ "type": {
14203
+ "type": "string"
14204
+ },
14205
+ "host": {
14206
+ "type": "string"
14207
+ },
14208
+ "expectedValue": {
14209
+ "type": "string"
14210
+ },
14211
+ "foundValues": {
14212
+ "type": "string",
14213
+ "array": true
14214
+ },
14215
+ "diagnosis": {
14216
+ "type": "pushwoosh.rpc_v2.emails_configurations.RecordDiagnosis"
14217
+ },
14218
+ "required": {
14219
+ "type": "boolean"
14220
+ },
14221
+ "purpose": {
14222
+ "type": "string"
14223
+ },
14224
+ "provider": {
14225
+ "type": "string"
14226
+ }
14227
+ }
14228
+ },
14229
+ "pushwoosh.rpc_v2.emails_configurations.DiagnoseDomainResponse": {
14230
+ "type": "I",
14231
+ "fields": {
14232
+ "diagnosis": {
14233
+ "type": "pushwoosh.rpc_v2.emails_configurations.DomainDiagnosis"
14234
+ },
14235
+ "records": {
14236
+ "type": "pushwoosh.rpc_v2.emails_configurations.DnsRecordCheck",
14237
+ "array": true
14238
+ },
14239
+ "nameServer": {
14240
+ "type": "string"
14241
+ },
14242
+ "canRestartVerification": {
14243
+ "type": "boolean"
14244
+ }
14245
+ }
14246
+ },
14247
+ "pushwoosh.rpc_v2.emails_configurations.RestartDomainVerificationRequest": {
14248
+ "type": "I",
14249
+ "fields": {
14250
+ "application": {
14251
+ "type": "string"
14252
+ },
14253
+ "domain": {
14254
+ "type": "string"
14255
+ }
14256
+ }
14257
+ },
14258
+ "pushwoosh.rpc_v2.emails_configurations.RestartDomainVerificationResponse": {
14259
+ "type": "I",
14260
+ "fields": {}
14261
+ },
14153
14262
  "pushwoosh.rpc.errors.v3.I18NOptions": {
14154
14263
  "type": "I",
14155
14264
  "fields": {
@@ -7,6 +7,8 @@ export type EmailsConfigurationsService_GetCustomTrackingDomain = RpcMethod<GetC
7
7
  export type EmailsConfigurationsService_UpsertCustomTrackingDomain = RpcMethod<UpsertCustomTrackingDomainRequest, UpsertCustomTrackingDomainResponse>;
8
8
  export type EmailsConfigurationsService_DeleteCustomTrackingDomain = RpcMethod<DeleteCustomTrackingDomainRequest, DeleteCustomTrackingDomainResponse>;
9
9
  export type EmailsConfigurationsService_VerifyCustomTrackingDomain = RpcMethod<VerifyCustomTrackingDomainRequest, VerifyCustomTrackingDomainResponse>;
10
+ export type EmailsConfigurationsService_DiagnoseDomain = RpcMethod<DiagnoseDomainRequest, DiagnoseDomainResponse>;
11
+ export type EmailsConfigurationsService_RestartDomainVerification = RpcMethod<RestartDomainVerificationRequest, RestartDomainVerificationResponse>;
10
12
  export interface EmailsConfigurationsService {
11
13
  /** Lists the sender email domains configured for an application's account (format XXXXX-XXXXX) with their DKIM/SPF/DMARC statuses and the DNS CNAME records to add. Use to show email sender-domain setup; covers both Amazon SES and SMTP-service domains. */
12
14
  GetDomains: EmailsConfigurationsService_GetDomains;
@@ -24,6 +26,10 @@ export interface EmailsConfigurationsService {
24
26
  DeleteCustomTrackingDomain: EmailsConfigurationsService_DeleteCustomTrackingDomain;
25
27
  /** Checks via a live DNS CNAME lookup whether the given custom tracking domain points at api.pushwoosh.com, returning verified true/false without saving anything. Use before update_custom_tracking_domain to confirm the customer published the CNAME. */
26
28
  VerifyCustomTrackingDomain: EmailsConfigurationsService_VerifyCustomTrackingDomain;
29
+ /** Checks live DNS for every record a sender email domain needs (DKIM CNAMEs, SPF, DMARC) and explains what is missing or mistyped, e.g. a record created with the domain appended twice. Read-only; use when a domain stays unverified. */
30
+ DiagnoseDomain: EmailsConfigurationsService_DiagnoseDomain;
31
+ /** Restarts Amazon SES DKIM verification for a sender email domain that SES gave up on (it stops checking 72 hours after the domain is added). DNS records stay the same; the SMTP selector is not touched. */
32
+ RestartDomainVerification: EmailsConfigurationsService_RestartDomainVerification;
27
33
  }
28
34
  export type Domain_CName = {
29
35
  name: string;
@@ -93,3 +99,58 @@ export type VerifyCustomTrackingDomainRequest = {
93
99
  export type VerifyCustomTrackingDomainResponse = {
94
100
  verified: boolean;
95
101
  };
102
+ export type DiagnoseDomainRequest = {
103
+ /** Application code (format XXXXX-XXXXX). */
104
+ application?: string;
105
+ /** Sender email domain to check. */
106
+ domain?: string;
107
+ };
108
+ export type DomainDiagnosis = 'DOMAIN_DIAGNOSIS_UNSPECIFIED'
109
+ /** The provider the sender routes through has verified the domain. */
110
+ | 'DOMAIN_DIAGNOSIS_VERIFIED'
111
+ /** At least one required record is missing or wrong. */
112
+ | 'DOMAIN_DIAGNOSIS_RECORDS_INCOMPLETE'
113
+ /** Required records are in place; the provider has not re-checked them yet. */
114
+ | 'DOMAIN_DIAGNOSIS_WAITING_PROVIDER'
115
+ /** Required records are in place but the provider gave up; RestartDomainVerification fixes it. */
116
+ | 'DOMAIN_DIAGNOSIS_PROVIDER_VERIFICATION_EXPIRED'
117
+ /** The domain does not resolve at all. */
118
+ | 'DOMAIN_DIAGNOSIS_DOMAIN_NOT_FOUND';
119
+ export type RecordDiagnosis = 'RECORD_DIAGNOSIS_UNSPECIFIED' | 'RECORD_DIAGNOSIS_OK' | 'RECORD_DIAGNOSIS_MISSING'
120
+ /** The record exists but points elsewhere; see found_values. */
121
+ | 'RECORD_DIAGNOSIS_WRONG_VALUE'
122
+ /** The record was created as <host>.<domain>: the DNS panel appended the domain again. */
123
+ | 'RECORD_DIAGNOSIS_DOUBLE_SUFFIX'
124
+ /** A TXT record sits where a CNAME is expected. */
125
+ | 'RECORD_DIAGNOSIS_TXT_INSTEAD_OF_CNAME'
126
+ /** DNS did not answer; the result is unknown, not negative. */
127
+ | 'RECORD_DIAGNOSIS_RESOLVE_ERROR';
128
+ export type DnsRecordCheck = {
129
+ /** CNAME or TXT. */
130
+ type: string;
131
+ /** Fully qualified record name. */
132
+ host: string;
133
+ expectedValue: string;
134
+ foundValues: string[];
135
+ diagnosis: RecordDiagnosis;
136
+ /** Whether the provider the sender routes through needs this record to verify the domain. */
137
+ required: boolean;
138
+ /** dkim, spf or dmarc. */
139
+ purpose: string;
140
+ /** amazon, smtp or yandex; empty for SPF and DMARC. */
141
+ provider: string;
142
+ };
143
+ export type DiagnoseDomainResponse = {
144
+ diagnosis: DomainDiagnosis;
145
+ records: DnsRecordCheck[];
146
+ /** First NS host of the domain's zone, to tell which DNS panel the records belong in. */
147
+ nameServer: string;
148
+ canRestartVerification: boolean;
149
+ };
150
+ export type RestartDomainVerificationRequest = {
151
+ /** Application code (format XXXXX-XXXXX). */
152
+ application?: string;
153
+ /** Sender email domain to re-verify. */
154
+ domain?: string;
155
+ };
156
+ export type RestartDomainVerificationResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.346",
3
+ "version": "0.2.348",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",