@maxim_mazurok/gapi.client.gmailpostmastertools-v2 0.0.20260208

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.
Files changed (3) hide show
  1. package/index.d.ts +404 -0
  2. package/package.json +20 -0
  3. package/readme.md +101 -0
package/index.d.ts ADDED
@@ -0,0 +1,404 @@
1
+ /* Type definitions for non-npm package Gmail Postmaster Tools API v2 0.0 */
2
+ // Project: https://developers.google.com/workspace/gmail/postmaster
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://gmailpostmastertools.googleapis.com/$discovery/rest?version=v2
12
+ // Revision: 20260208
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Gmail Postmaster Tools API v2 */
18
+ function load(
19
+ urlOrObject: 'https://gmailpostmastertools.googleapis.com/$discovery/rest?version=v2',
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'gmailpostmastertools', version: 'v2'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'gmailpostmastertools',
26
+ version: 'v2',
27
+ callback: () => any,
28
+ ): void;
29
+
30
+ namespace gmailpostmastertools {
31
+ interface BaseMetric {
32
+ /** A predefined standard metric. */
33
+ standardMetric?: string;
34
+ }
35
+ interface BatchQueryDomainStatsRequest {
36
+ /** Required. A list of individual query requests. Each request can be for a different domain. A maximum of 100 requests can be included in a single batch. */
37
+ requests?: QueryDomainStatsRequest[];
38
+ }
39
+ interface BatchQueryDomainStatsResponse {
40
+ /** A list of responses, one for each query in the BatchQueryDomainStatsRequest. The order of responses will correspond to the order of requests. */
41
+ results?: BatchQueryDomainStatsResult[];
42
+ }
43
+ interface BatchQueryDomainStatsResult {
44
+ /** The error status if the individual query failed. */
45
+ error?: Status;
46
+ /** The successful response for the individual query. */
47
+ response?: QueryDomainStatsResponse;
48
+ }
49
+ interface ComplianceRowData {
50
+ /** The compliance requirement. */
51
+ requirement?: string;
52
+ /** The compliance status for the requirement. */
53
+ status?: ComplianceStatus;
54
+ }
55
+ interface ComplianceStatus {
56
+ /** Output only. The compliance status. */
57
+ status?: string;
58
+ }
59
+ interface Date {
60
+ /** 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. */
61
+ day?: number;
62
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
63
+ month?: number;
64
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
65
+ year?: number;
66
+ }
67
+ interface DateList {
68
+ /** Required. The list of specific dates for which to retrieve data. */
69
+ dates?: Date[];
70
+ }
71
+ interface DateRange {
72
+ /** Required. The inclusive end date of the date range. */
73
+ end?: Date;
74
+ /** Required. The inclusive start date of the date range. */
75
+ start?: Date;
76
+ }
77
+ interface DateRanges {
78
+ /** Required. The list of date ranges for which to retrieve data. */
79
+ dateRanges?: DateRange[];
80
+ }
81
+ interface Domain {
82
+ /** Output only. Immutable. The timestamp at which the domain was added to the user's account. */
83
+ createTime?: string;
84
+ /** The timestamp at which the domain was last verified by the user. */
85
+ lastVerifyTime?: string;
86
+ /** Identifier. The resource name of the domain. Format: `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). */
87
+ name?: string;
88
+ /** Output only. User's permission of this domain. */
89
+ permission?: string;
90
+ /** Output only. Information about a user's verification history and properties for the domain. */
91
+ verificationState?: string;
92
+ }
93
+ interface DomainComplianceData {
94
+ /** Domain that this data is for. */
95
+ domainId?: string;
96
+ /** Unsubscribe honoring compliance verdict. */
97
+ honorUnsubscribeVerdict?: HonorUnsubscribeVerdict;
98
+ /** One-click unsubscribe compliance verdict. */
99
+ oneClickUnsubscribeVerdict?: OneClickUnsubscribeVerdict;
100
+ /** Data for each of the rows of the table. Each message contains all the data that backs a single row. */
101
+ rowData?: ComplianceRowData[];
102
+ }
103
+ interface DomainComplianceStatus {
104
+ /** Compliance data for the registrable domain part of the domain in `name`. For example, if `name` is `domains/example.com/complianceStatus`, this field contains compliance data for `example.com`. */
105
+ complianceData?: DomainComplianceData;
106
+ /** Identifier. The resource name of the domain's compliance status. Format: `domains/{domain_id}/complianceStatus`. */
107
+ name?: string;
108
+ /** Compliance data calculated specifically for the subdomain in `name`. This field is only populated if the domain in `name` is a subdomain that differs from its registrable domain (e.g., `sub.example.com`), and if compliance data is available for that specific subdomain. */
109
+ subdomainComplianceData?: DomainComplianceData;
110
+ }
111
+ interface DomainStat {
112
+ /** Optional. The specific date for these stats, if granularity is DAILY. This field is populated if the QueryDomainStatsRequest specified a DAILY aggregation granularity. */
113
+ date?: Date;
114
+ /** The user-defined name from MetricDefinition.name in the request, used to correlate this result with the requested metric. */
115
+ metric?: string;
116
+ /** Output only. The resource name of the DomainStat resource. Format: domains/{domain}/domainStats/{domain_stat} The `{domain_stat}` segment is an opaque, server-generated ID. We recommend using the `metric` field to identify queried metrics instead of parsing the name. */
117
+ name?: string;
118
+ /** The value of the corresponding metric. */
119
+ value?: StatisticValue;
120
+ }
121
+ interface HonorUnsubscribeVerdict {
122
+ /** The specific reason for the compliance verdict. Must be empty if the status is compliant. */
123
+ reason?: string;
124
+ /** The compliance status. */
125
+ status?: ComplianceStatus;
126
+ }
127
+ interface ListDomainsResponse {
128
+ /** The domains that have been registered by the user. */
129
+ domains?: Domain[];
130
+ /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
131
+ nextPageToken?: string;
132
+ }
133
+ interface MetricDefinition {
134
+ /** Required. The underlying metric to query. */
135
+ baseMetric?: BaseMetric;
136
+ /** Optional. Optional filters to apply to the metric. */
137
+ filter?: string;
138
+ /** Required. The user-defined name for this metric. This name will be used as the key for this metric's value in the response. */
139
+ name?: string;
140
+ }
141
+ interface OneClickUnsubscribeVerdict {
142
+ /** The specific reason for the compliance verdict. Must be empty if the status is compliant. */
143
+ reason?: string;
144
+ /** The compliance status. */
145
+ status?: ComplianceStatus;
146
+ }
147
+ interface QueryDomainStatsRequest {
148
+ /** Optional. The granularity at which to aggregate the statistics. If unspecified, defaults to DAILY. */
149
+ aggregationGranularity?: string;
150
+ /** Required. The specific metrics to query. You can define a custom name for each metric, which will be used in the response. */
151
+ metricDefinitions?: MetricDefinition[];
152
+ /** Optional. The maximum number of DomainStats resources to return in the response. The server may return fewer than this value. If unspecified, a default value of 10 will be used. The maximum value is 200. */
153
+ pageSize?: number;
154
+ /** Optional. The next_page_token value returned from a previous List request, if any. If the aggregation granularity is DAILY, the page token will be the encoded date + "/" + metric name. If the aggregation granularity is OVERALL, the page token will be the encoded metric name. */
155
+ pageToken?: string;
156
+ /** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
157
+ parent?: string;
158
+ /** Required. The time range or specific dates for which to retrieve the metrics. */
159
+ timeQuery?: TimeQuery;
160
+ }
161
+ interface QueryDomainStatsResponse {
162
+ /** The list of domain statistics. Each DomainStat object contains the value for a metric requested in the QueryDomainStatsRequest. */
163
+ domainStats?: DomainStat[];
164
+ /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
165
+ nextPageToken?: string;
166
+ }
167
+ interface StatisticValue {
168
+ /** Double value. */
169
+ doubleValue?: number;
170
+ /** Float value. */
171
+ floatValue?: number;
172
+ /** Integer value. */
173
+ intValue?: string;
174
+ /** List of string values. */
175
+ stringList?: StringList;
176
+ /** String value. */
177
+ stringValue?: string;
178
+ }
179
+ interface Status {
180
+ /** The status code, which should be an enum value of google.rpc.Code. */
181
+ code?: number;
182
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
183
+ details?: Array<{[P in string]: any}>;
184
+ /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
185
+ message?: string;
186
+ }
187
+ interface StringList {
188
+ /** The string values. */
189
+ values?: string[];
190
+ }
191
+ interface TimeQuery {
192
+ /** A list of specific dates. */
193
+ dateList?: DateList;
194
+ /** A list of date ranges. */
195
+ dateRanges?: DateRanges;
196
+ }
197
+ interface DomainStatsResource {
198
+ /** Retrieves a list of domain statistics for a given domain and time period. Returns statistics only for dates where data is available. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for the domain. */
199
+ query(request: {
200
+ /** V1 error format. */
201
+ '$.xgafv'?: string;
202
+ /** OAuth access token. */
203
+ access_token?: string;
204
+ /** Data format for response. */
205
+ alt?: string;
206
+ /** JSONP */
207
+ callback?: string;
208
+ /** Selector specifying which fields to include in a partial response. */
209
+ fields?: string;
210
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
211
+ key?: string;
212
+ /** OAuth 2.0 token for the current user. */
213
+ oauth_token?: string;
214
+ /** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
215
+ parent: string;
216
+ /** Returns response with indentations and line breaks. */
217
+ prettyPrint?: boolean;
218
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
219
+ quotaUser?: string;
220
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
221
+ upload_protocol?: string;
222
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
223
+ uploadType?: string;
224
+ /** Request body */
225
+ resource: QueryDomainStatsRequest;
226
+ }): Request<QueryDomainStatsResponse>;
227
+ query(
228
+ request: {
229
+ /** V1 error format. */
230
+ '$.xgafv'?: string;
231
+ /** OAuth access token. */
232
+ access_token?: string;
233
+ /** Data format for response. */
234
+ alt?: string;
235
+ /** JSONP */
236
+ callback?: string;
237
+ /** Selector specifying which fields to include in a partial response. */
238
+ fields?: string;
239
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
240
+ key?: string;
241
+ /** OAuth 2.0 token for the current user. */
242
+ oauth_token?: string;
243
+ /** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
244
+ parent: string;
245
+ /** Returns response with indentations and line breaks. */
246
+ prettyPrint?: boolean;
247
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
248
+ quotaUser?: string;
249
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
250
+ upload_protocol?: string;
251
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
252
+ uploadType?: string;
253
+ },
254
+ body: QueryDomainStatsRequest,
255
+ ): Request<QueryDomainStatsResponse>;
256
+ }
257
+ interface DomainsResource {
258
+ /** Retrieves detailed information about a domain registered by you. Returns NOT_FOUND if the domain is not registered by you. Domain represents the metadata of a domain that has been registered within the system and linked to a user. */
259
+ get(request?: {
260
+ /** V1 error format. */
261
+ '$.xgafv'?: string;
262
+ /** OAuth access token. */
263
+ access_token?: string;
264
+ /** Data format for response. */
265
+ alt?: string;
266
+ /** JSONP */
267
+ callback?: string;
268
+ /** Selector specifying which fields to include in a partial response. */
269
+ fields?: string;
270
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
271
+ key?: string;
272
+ /** Required. The resource name of the domain. Format: `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). */
273
+ name: string;
274
+ /** OAuth 2.0 token for the current user. */
275
+ oauth_token?: string;
276
+ /** Returns response with indentations and line breaks. */
277
+ prettyPrint?: boolean;
278
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
279
+ quotaUser?: string;
280
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
281
+ upload_protocol?: string;
282
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
283
+ uploadType?: string;
284
+ }): Request<Domain>;
285
+ /** Retrieves the compliance status for a given domain. Returns PERMISSION_DENIED if you don't have permission to access compliance status for the domain. */
286
+ getComplianceStatus(request?: {
287
+ /** V1 error format. */
288
+ '$.xgafv'?: string;
289
+ /** OAuth access token. */
290
+ access_token?: string;
291
+ /** Data format for response. */
292
+ alt?: string;
293
+ /** JSONP */
294
+ callback?: string;
295
+ /** Selector specifying which fields to include in a partial response. */
296
+ fields?: string;
297
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
298
+ key?: string;
299
+ /** Required. The resource name of the domain's compliance status to retrieve. Format: `domains/{domain_id}/complianceStatus`. */
300
+ name: string;
301
+ /** OAuth 2.0 token for the current user. */
302
+ oauth_token?: string;
303
+ /** Returns response with indentations and line breaks. */
304
+ prettyPrint?: boolean;
305
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
306
+ quotaUser?: string;
307
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
308
+ upload_protocol?: string;
309
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
310
+ uploadType?: string;
311
+ }): Request<DomainComplianceStatus>;
312
+ /** Retrieves a list of all domains registered by you, along with their corresponding metadata. The order of domains in the response is unspecified and non-deterministic. Newly registered domains will not necessarily be added to the end of this list. */
313
+ list(request?: {
314
+ /** V1 error format. */
315
+ '$.xgafv'?: string;
316
+ /** OAuth access token. */
317
+ access_token?: string;
318
+ /** Data format for response. */
319
+ alt?: string;
320
+ /** JSONP */
321
+ callback?: string;
322
+ /** Selector specifying which fields to include in a partial response. */
323
+ fields?: string;
324
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
325
+ key?: string;
326
+ /** OAuth 2.0 token for the current user. */
327
+ oauth_token?: string;
328
+ /** Optional. Requested page size. Server may return fewer domains than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200. */
329
+ pageSize?: number;
330
+ /** Optional. The next_page_token value returned from a previous List request, if any. */
331
+ pageToken?: string;
332
+ /** Returns response with indentations and line breaks. */
333
+ prettyPrint?: boolean;
334
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
335
+ quotaUser?: string;
336
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
337
+ upload_protocol?: string;
338
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
339
+ uploadType?: string;
340
+ }): Request<ListDomainsResponse>;
341
+ domainStats: DomainStatsResource;
342
+ }
343
+ interface DomainStatsResource {
344
+ /** Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains. */
345
+ batchQuery(request: {
346
+ /** V1 error format. */
347
+ '$.xgafv'?: string;
348
+ /** OAuth access token. */
349
+ access_token?: string;
350
+ /** Data format for response. */
351
+ alt?: string;
352
+ /** JSONP */
353
+ callback?: string;
354
+ /** Selector specifying which fields to include in a partial response. */
355
+ fields?: string;
356
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
357
+ key?: string;
358
+ /** OAuth 2.0 token for the current user. */
359
+ oauth_token?: string;
360
+ /** Returns response with indentations and line breaks. */
361
+ prettyPrint?: boolean;
362
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
363
+ quotaUser?: string;
364
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
365
+ upload_protocol?: string;
366
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
367
+ uploadType?: string;
368
+ /** Request body */
369
+ resource: BatchQueryDomainStatsRequest;
370
+ }): Request<BatchQueryDomainStatsResponse>;
371
+ batchQuery(
372
+ request: {
373
+ /** V1 error format. */
374
+ '$.xgafv'?: string;
375
+ /** OAuth access token. */
376
+ access_token?: string;
377
+ /** Data format for response. */
378
+ alt?: string;
379
+ /** JSONP */
380
+ callback?: string;
381
+ /** Selector specifying which fields to include in a partial response. */
382
+ fields?: string;
383
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
384
+ key?: string;
385
+ /** OAuth 2.0 token for the current user. */
386
+ oauth_token?: string;
387
+ /** Returns response with indentations and line breaks. */
388
+ prettyPrint?: boolean;
389
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
390
+ quotaUser?: string;
391
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
392
+ upload_protocol?: string;
393
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
394
+ uploadType?: string;
395
+ },
396
+ body: BatchQueryDomainStatsRequest,
397
+ ): Request<BatchQueryDomainStatsResponse>;
398
+ }
399
+
400
+ const domainStats: DomainStatsResource;
401
+
402
+ const domains: DomainsResource;
403
+ }
404
+ }
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@maxim_mazurok/gapi.client.gmailpostmastertools-v2",
3
+ "version": "0.0.20260208",
4
+ "description": "TypeScript typings for Gmail Postmaster Tools API v2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
8
+ },
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Maxim Mazurok",
12
+ "email": "maxim@mazurok.com",
13
+ "url": "https://maxim.mazurok.com"
14
+ },
15
+ "types": "index.d.ts",
16
+ "dependencies": {
17
+ "@types/gapi.client": "*",
18
+ "@types/gapi.client.discovery-v1": "*"
19
+ }
20
+ }
package/readme.md ADDED
@@ -0,0 +1,101 @@
1
+ # TypeScript typings for Gmail Postmaster Tools API v2
2
+
3
+ The Postmaster Tools API is a RESTful API that provides programmatic access to email traffic metrics (like spam reports, delivery errors etc) otherwise available through the Gmail Postmaster Tools UI currently.
4
+ For detailed description please check [documentation](https://developers.google.com/workspace/gmail/postmaster).
5
+
6
+ ## Installing
7
+
8
+ Install typings for Gmail Postmaster Tools API:
9
+
10
+ ```
11
+ npm install @types/gapi.client.gmailpostmastertools-v2 --save-dev
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ You need to initialize Google API client in your code:
17
+
18
+ ```typescript
19
+ gapi.load('client', () => {
20
+ // now we can use gapi.client
21
+ // ...
22
+ });
23
+ ```
24
+
25
+ Then load api client wrapper:
26
+
27
+ ```typescript
28
+ gapi.client.load(
29
+ 'https://gmailpostmastertools.googleapis.com/$discovery/rest?version=v2',
30
+ () => {
31
+ // now we can use:
32
+ // gapi.client.gmailpostmastertools
33
+ },
34
+ );
35
+ ```
36
+
37
+ ```typescript
38
+ // Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
39
+ gapi.client.load('gmailpostmastertools', 'v2', () => {
40
+ // now we can use:
41
+ // gapi.client.gmailpostmastertools
42
+ });
43
+ ```
44
+
45
+ Don't forget to authenticate your client before sending any request to resources:
46
+
47
+ ```typescript
48
+ // declare client_id registered in Google Developers Console
49
+ var client_id = '',
50
+ scope = [
51
+ // Get email traffic metrics, manage domains, and manage domain users for the domains you have registered with Postmaster Tools
52
+ 'https://www.googleapis.com/auth/postmaster',
53
+
54
+ // View and manage the domains you have registered with Postmaster Tools
55
+ 'https://www.googleapis.com/auth/postmaster.domain',
56
+
57
+ // Get email traffic metrics for the domains you have registered with Postmaster Tools
58
+ 'https://www.googleapis.com/auth/postmaster.traffic.readonly',
59
+ ],
60
+ immediate = true;
61
+ // ...
62
+
63
+ gapi.auth.authorize(
64
+ {client_id: client_id, scope: scope, immediate: immediate},
65
+ authResult => {
66
+ if (authResult && !authResult.error) {
67
+ /* handle successful authorization */
68
+ } else {
69
+ /* handle authorization error */
70
+ }
71
+ },
72
+ );
73
+ ```
74
+
75
+ After that you can use Gmail Postmaster Tools API resources: <!-- TODO: make this work for multiple namespaces -->
76
+
77
+ ```typescript
78
+ /*
79
+ Retrieves detailed information about a domain registered by you. Returns NOT_FOUND if the domain is not registered by you. Domain represents the metadata of a domain that has been registered within the system and linked to a user.
80
+ */
81
+ await gapi.client.gmailpostmastertools.domains.get({name: 'name'});
82
+
83
+ /*
84
+ Retrieves the compliance status for a given domain. Returns PERMISSION_DENIED if you don't have permission to access compliance status for the domain.
85
+ */
86
+ await gapi.client.gmailpostmastertools.domains.getComplianceStatus({
87
+ name: 'name',
88
+ });
89
+
90
+ /*
91
+ Retrieves a list of all domains registered by you, along with their corresponding metadata. The order of domains in the response is unspecified and non-deterministic. Newly registered domains will not necessarily be added to the end of this list.
92
+ */
93
+ await gapi.client.gmailpostmastertools.domains.list({});
94
+
95
+ /*
96
+ Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains.
97
+ */
98
+ await gapi.client.gmailpostmastertools.domainStats.batchQuery({});
99
+ ```
100
+
101
+ For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.gmailpostmastertools-v2#Provenance:~:text=none-,Provenance,-Built%20and%20signed)