@maxim_mazurok/gapi.client.gmailpostmastertools-v1 0.0.20260312 → 0.1.20260312
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/index.d.ts +37 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -30,11 +30,25 @@ declare namespace gapi.client {
|
|
|
30
30
|
namespace gmailpostmastertools {
|
|
31
31
|
interface DeliveryError {
|
|
32
32
|
/** The class of delivery error. */
|
|
33
|
-
errorClass?:
|
|
33
|
+
errorClass?:
|
|
34
|
+
| 'DELIVERY_ERROR_CLASS_UNSPECIFIED'
|
|
35
|
+
| 'PERMANENT_ERROR'
|
|
36
|
+
| 'TEMPORARY_ERROR';
|
|
34
37
|
/** The ratio of messages where the error occurred vs all authenticated traffic. */
|
|
35
38
|
errorRatio?: number;
|
|
36
39
|
/** The type of delivery error. */
|
|
37
|
-
errorType?:
|
|
40
|
+
errorType?:
|
|
41
|
+
| 'DELIVERY_ERROR_TYPE_UNSPECIFIED'
|
|
42
|
+
| 'RATE_LIMIT_EXCEEDED'
|
|
43
|
+
| 'SUSPECTED_SPAM'
|
|
44
|
+
| 'CONTENT_SPAMMY'
|
|
45
|
+
| 'BAD_ATTACHMENT'
|
|
46
|
+
| 'BAD_DMARC_POLICY'
|
|
47
|
+
| 'LOW_IP_REPUTATION'
|
|
48
|
+
| 'LOW_DOMAIN_REPUTATION'
|
|
49
|
+
| 'IP_IN_RBL'
|
|
50
|
+
| 'DOMAIN_IN_RBL'
|
|
51
|
+
| 'BAD_PTR_RECORD';
|
|
38
52
|
}
|
|
39
53
|
interface Domain {
|
|
40
54
|
/** Timestamp when the user registered this domain. Assigned by the server. */
|
|
@@ -42,7 +56,7 @@ declare namespace gapi.client {
|
|
|
42
56
|
/** The resource name of the Domain. Domain names have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). */
|
|
43
57
|
name?: string;
|
|
44
58
|
/** User’s permission for this domain. Assigned by the server. */
|
|
45
|
-
permission?:
|
|
59
|
+
permission?: 'PERMISSION_UNSPECIFIED' | 'OWNER' | 'READER' | 'NONE';
|
|
46
60
|
}
|
|
47
61
|
interface FeedbackLoop {
|
|
48
62
|
/** Feedback loop identifier that uniquely identifies individual campaigns. */
|
|
@@ -54,7 +68,12 @@ declare namespace gapi.client {
|
|
|
54
68
|
/** Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). */
|
|
55
69
|
ipCount?: string;
|
|
56
70
|
/** The reputation category this IP reputation represents. */
|
|
57
|
-
reputation?:
|
|
71
|
+
reputation?:
|
|
72
|
+
| 'REPUTATION_CATEGORY_UNSPECIFIED'
|
|
73
|
+
| 'HIGH'
|
|
74
|
+
| 'MEDIUM'
|
|
75
|
+
| 'LOW'
|
|
76
|
+
| 'BAD';
|
|
58
77
|
/** A sample of IPs in this reputation category. */
|
|
59
78
|
sampleIps?: string[];
|
|
60
79
|
}
|
|
@@ -78,7 +97,12 @@ declare namespace gapi.client {
|
|
|
78
97
|
/** The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks vs all mail received from the domain that successfully authenticated with either of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). */
|
|
79
98
|
dmarcSuccessRatio?: number;
|
|
80
99
|
/** Reputation of the domain. */
|
|
81
|
-
domainReputation?:
|
|
100
|
+
domainReputation?:
|
|
101
|
+
| 'REPUTATION_CATEGORY_UNSPECIFIED'
|
|
102
|
+
| 'HIGH'
|
|
103
|
+
| 'MEDIUM'
|
|
104
|
+
| 'LOW'
|
|
105
|
+
| 'BAD';
|
|
82
106
|
/** The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/). */
|
|
83
107
|
inboundEncryptionRatio?: number;
|
|
84
108
|
/** Reputation information pertaining to the IP addresses of the email servers for the domain. There is exactly one entry for each reputation category except REPUTATION_CATEGORY_UNSPECIFIED. */
|
|
@@ -102,11 +126,11 @@ declare namespace gapi.client {
|
|
|
102
126
|
/** Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain. */
|
|
103
127
|
get(request?: {
|
|
104
128
|
/** V1 error format. */
|
|
105
|
-
'$.xgafv'?:
|
|
129
|
+
'$.xgafv'?: '1' | '2';
|
|
106
130
|
/** OAuth access token. */
|
|
107
131
|
access_token?: string;
|
|
108
132
|
/** Data format for response. */
|
|
109
|
-
alt?:
|
|
133
|
+
alt?: 'json' | 'media' | 'proto';
|
|
110
134
|
/** JSONP */
|
|
111
135
|
callback?: string;
|
|
112
136
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -129,11 +153,11 @@ declare namespace gapi.client {
|
|
|
129
153
|
/** List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain. */
|
|
130
154
|
list(request?: {
|
|
131
155
|
/** V1 error format. */
|
|
132
|
-
'$.xgafv'?:
|
|
156
|
+
'$.xgafv'?: '1' | '2';
|
|
133
157
|
/** OAuth access token. */
|
|
134
158
|
access_token?: string;
|
|
135
159
|
/** Data format for response. */
|
|
136
|
-
alt?:
|
|
160
|
+
alt?: 'json' | 'media' | 'proto';
|
|
137
161
|
/** JSONP */
|
|
138
162
|
callback?: string;
|
|
139
163
|
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
@@ -174,11 +198,11 @@ declare namespace gapi.client {
|
|
|
174
198
|
/** Gets a specific domain registered by the client. Returns NOT_FOUND if the domain does not exist. */
|
|
175
199
|
get(request?: {
|
|
176
200
|
/** V1 error format. */
|
|
177
|
-
'$.xgafv'?:
|
|
201
|
+
'$.xgafv'?: '1' | '2';
|
|
178
202
|
/** OAuth access token. */
|
|
179
203
|
access_token?: string;
|
|
180
204
|
/** Data format for response. */
|
|
181
|
-
alt?:
|
|
205
|
+
alt?: 'json' | 'media' | 'proto';
|
|
182
206
|
/** JSONP */
|
|
183
207
|
callback?: string;
|
|
184
208
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -201,11 +225,11 @@ declare namespace gapi.client {
|
|
|
201
225
|
/** Lists the domains that have been registered by the client. The order of domains in the response is unspecified and non-deterministic. Newly created domains will not necessarily be added to the end of this list. */
|
|
202
226
|
list(request?: {
|
|
203
227
|
/** V1 error format. */
|
|
204
|
-
'$.xgafv'?:
|
|
228
|
+
'$.xgafv'?: '1' | '2';
|
|
205
229
|
/** OAuth access token. */
|
|
206
230
|
access_token?: string;
|
|
207
231
|
/** Data format for response. */
|
|
208
|
-
alt?:
|
|
232
|
+
alt?: 'json' | 'media' | 'proto';
|
|
209
233
|
/** JSONP */
|
|
210
234
|
callback?: string;
|
|
211
235
|
/** Selector specifying which fields to include in a partial response. */
|