@scaleway/sdk-tem 1.1.0 → 1.3.0
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/dist/index.gen.d.ts +1 -1
- package/dist/v1alpha1/api.gen.cjs +1 -1
- package/dist/v1alpha1/api.gen.d.ts +9 -9
- package/dist/v1alpha1/api.gen.js +1 -1
- package/dist/v1alpha1/content.gen.d.ts +1 -1
- package/dist/v1alpha1/index.gen.d.ts +5 -5
- package/dist/v1alpha1/marshalling.gen.cjs +50 -1
- package/dist/v1alpha1/marshalling.gen.d.ts +1 -1
- package/dist/v1alpha1/marshalling.gen.js +50 -1
- package/dist/v1alpha1/types.gen.d.ts +61 -1
- package/package.json +4 -4
package/dist/index.gen.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ class API extends sdkClient.API {
|
|
|
225
225
|
marshalling_gen.unmarshalDomain
|
|
226
226
|
);
|
|
227
227
|
/**
|
|
228
|
-
* Display SPF and
|
|
228
|
+
* Display SPF, DKIM, DMARC and MX records status and potential errors. Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
|
|
229
229
|
*
|
|
230
230
|
* @param request - The request {@link GetDomainLastStatusRequest}
|
|
231
231
|
* @returns A Promise of DomainLastStatus
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
+
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, Email, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectConsumptionRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListOfferSubscriptionsRequest, ListOfferSubscriptionsResponse, ListOffersRequest, ListOffersResponse, ListPoolsRequest, ListPoolsResponse, ListWebhookEventsRequest, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksResponse, OfferSubscription, ProjectConsumption, ProjectSettings, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Transactional Email API.
|
|
6
6
|
|
|
@@ -107,7 +107,7 @@ export declare class API extends ParentAPI {
|
|
|
107
107
|
*/
|
|
108
108
|
checkDomain: (request: Readonly<CheckDomainRequest>) => Promise<Domain>;
|
|
109
109
|
/**
|
|
110
|
-
* Display SPF and
|
|
110
|
+
* Display SPF, DKIM, DMARC and MX records status and potential errors. Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
|
|
111
111
|
*
|
|
112
112
|
* @param request - The request {@link GetDomainLastStatusRequest}
|
|
113
113
|
* @returns A Promise of DomainLastStatus
|
|
@@ -166,8 +166,8 @@ export declare class API extends ParentAPI {
|
|
|
166
166
|
* @returns A Promise of ListWebhookEventsResponse
|
|
167
167
|
*/
|
|
168
168
|
listWebhookEvents: (request: Readonly<ListWebhookEventsRequest>) => Promise<ListWebhookEventsResponse> & {
|
|
169
|
-
all: () => Promise<import("./types.gen").WebhookEvent[]>;
|
|
170
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").WebhookEvent[], void, void>;
|
|
169
|
+
all: () => Promise<import("./types.gen.js").WebhookEvent[]>;
|
|
170
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").WebhookEvent[], void, void>;
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
173
173
|
* List project settings. Retrieve the project settings including periodic reports.
|
|
@@ -191,8 +191,8 @@ export declare class API extends ParentAPI {
|
|
|
191
191
|
* @returns A Promise of ListBlocklistsResponse
|
|
192
192
|
*/
|
|
193
193
|
listBlocklists: (request: Readonly<ListBlocklistsRequest>) => Promise<ListBlocklistsResponse> & {
|
|
194
|
-
all: () => Promise<import("./types.gen").Blocklist[]>;
|
|
195
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Blocklist[], void, void>;
|
|
194
|
+
all: () => Promise<import("./types.gen.js").Blocklist[]>;
|
|
195
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").Blocklist[], void, void>;
|
|
196
196
|
};
|
|
197
197
|
/**
|
|
198
198
|
* Bulk create blocklists. Create multiple blocklists in a specific Project or Organization using the `region` parameter.
|
|
@@ -236,8 +236,8 @@ export declare class API extends ParentAPI {
|
|
|
236
236
|
* @returns A Promise of ListPoolsResponse
|
|
237
237
|
*/
|
|
238
238
|
listPools: (request?: Readonly<ListPoolsRequest>) => Promise<ListPoolsResponse> & {
|
|
239
|
-
all: () => Promise<import("./types.gen").Pool[]>;
|
|
240
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Pool[], void, void>;
|
|
239
|
+
all: () => Promise<import("./types.gen.js").Pool[]>;
|
|
240
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").Pool[], void, void>;
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
243
|
* Get project resource consumption.. Get project resource consumption.
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -223,7 +223,7 @@ class API extends API$1 {
|
|
|
223
223
|
unmarshalDomain
|
|
224
224
|
);
|
|
225
225
|
/**
|
|
226
|
-
* Display SPF and
|
|
226
|
+
* Display SPF, DKIM, DMARC and MX records status and potential errors. Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
|
|
227
227
|
*
|
|
228
228
|
* @param request - The request {@link GetDomainLastStatusRequest}
|
|
229
229
|
* @returns A Promise of DomainLastStatus
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DomainStatus, EmailStatus } from './types.gen';
|
|
1
|
+
import type { DomainStatus, EmailStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
|
3
3
|
export declare const DOMAIN_TRANSIENT_STATUSES: DomainStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link EmailStatus}. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
4
|
-
export type { Blocklist, BlocklistType, BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailRequestAddress, CreateEmailRequestAttachment, CreateEmailRequestHeader, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, DomainLastStatusAutoconfigState, DomainLastStatusAutoconfigStateReason, DomainLastStatusDkimRecord, DomainLastStatusDmarcRecord, DomainLastStatusRecordStatus, DomainLastStatusSpfRecord, DomainRecords, DomainRecordsDMARC, DomainReputation, DomainReputationStatus, DomainStatistics, DomainStatus, Email, EmailFlag, EmailRcptType, EmailStatus, EmailTry, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectConsumptionRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsRequestOrderBy, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsRequestOrderBy, ListEmailsResponse, ListOfferSubscriptionsRequest, ListOfferSubscriptionsResponse, ListOffersRequest, ListOffersResponse, ListPoolsRequest, ListPoolsResponse, ListWebhookEventsRequest, ListWebhookEventsRequestOrderBy, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksRequestOrderBy, ListWebhooksResponse, Offer, OfferName, OfferSubscription, Pool, PoolStatus, ProjectConsumption, ProjectSettings, ProjectSettingsPeriodicReport, ProjectSettingsPeriodicReportFrequency, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateProjectSettingsRequestUpdatePeriodicReport, UpdateWebhookRequest, Webhook, WebhookEvent, WebhookEventStatus, WebhookEventType, } from './types.gen';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { Blocklist, BlocklistType, BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailRequestAddress, CreateEmailRequestAttachment, CreateEmailRequestHeader, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, DomainLastStatusAutoconfigState, DomainLastStatusAutoconfigStateReason, DomainLastStatusDkimRecord, DomainLastStatusDmarcRecord, DomainLastStatusMXRecord, DomainLastStatusRecordStatus, DomainLastStatusSpfRecord, DomainRecords, DomainRecordsDKIM, DomainRecordsDMARC, DomainRecordsMX, DomainRecordsSPF, DomainReputation, DomainReputationStatus, DomainStatistics, DomainStatus, Email, EmailFlag, EmailRcptType, EmailStatus, EmailTry, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectConsumptionRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsRequestOrderBy, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsRequestOrderBy, ListEmailsResponse, ListOfferSubscriptionsRequest, ListOfferSubscriptionsResponse, ListOffersRequest, ListOffersResponse, ListPoolsRequest, ListPoolsResponse, ListWebhookEventsRequest, ListWebhookEventsRequestOrderBy, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksRequestOrderBy, ListWebhooksResponse, Offer, OfferName, OfferSubscription, Pool, PoolStatus, ProjectConsumption, ProjectSettings, ProjectSettingsPeriodicReport, ProjectSettingsPeriodicReportFrequency, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateProjectSettingsRequestUpdatePeriodicReport, UpdateWebhookRequest, Webhook, WebhookEvent, WebhookEventStatus, WebhookEventType, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -38,6 +38,17 @@ const unmarshalEmail = (data) => {
|
|
|
38
38
|
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
const unmarshalDomainRecordsDKIM = (data) => {
|
|
42
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
43
|
+
throw new TypeError(
|
|
44
|
+
`Unmarshalling the type 'DomainRecordsDKIM' failed as data isn't a dictionary.`
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
name: data.name,
|
|
49
|
+
value: data.value
|
|
50
|
+
};
|
|
51
|
+
};
|
|
41
52
|
const unmarshalDomainRecordsDMARC = (data) => {
|
|
42
53
|
if (!sdkClient.isJSONObject(data)) {
|
|
43
54
|
throw new TypeError(
|
|
@@ -49,6 +60,28 @@ const unmarshalDomainRecordsDMARC = (data) => {
|
|
|
49
60
|
value: data.value
|
|
50
61
|
};
|
|
51
62
|
};
|
|
63
|
+
const unmarshalDomainRecordsMX = (data) => {
|
|
64
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
65
|
+
throw new TypeError(
|
|
66
|
+
`Unmarshalling the type 'DomainRecordsMX' failed as data isn't a dictionary.`
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
name: data.name,
|
|
71
|
+
value: data.value
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
const unmarshalDomainRecordsSPF = (data) => {
|
|
75
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
76
|
+
throw new TypeError(
|
|
77
|
+
`Unmarshalling the type 'DomainRecordsSPF' failed as data isn't a dictionary.`
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
name: data.name,
|
|
82
|
+
value: data.value
|
|
83
|
+
};
|
|
84
|
+
};
|
|
52
85
|
const unmarshalDomainRecords = (data) => {
|
|
53
86
|
if (!sdkClient.isJSONObject(data)) {
|
|
54
87
|
throw new TypeError(
|
|
@@ -56,7 +89,10 @@ const unmarshalDomainRecords = (data) => {
|
|
|
56
89
|
);
|
|
57
90
|
}
|
|
58
91
|
return {
|
|
59
|
-
|
|
92
|
+
dkim: data.dkim ? unmarshalDomainRecordsDKIM(data.dkim) : void 0,
|
|
93
|
+
dmarc: data.dmarc ? unmarshalDomainRecordsDMARC(data.dmarc) : void 0,
|
|
94
|
+
mx: data.mx ? unmarshalDomainRecordsMX(data.mx) : void 0,
|
|
95
|
+
spf: data.spf ? unmarshalDomainRecordsSPF(data.spf) : void 0
|
|
60
96
|
};
|
|
61
97
|
};
|
|
62
98
|
const unmarshalDomainReputation = (data) => {
|
|
@@ -224,6 +260,18 @@ const unmarshalDomainLastStatusDmarcRecord = (data) => {
|
|
|
224
260
|
status: data.status
|
|
225
261
|
};
|
|
226
262
|
};
|
|
263
|
+
const unmarshalDomainLastStatusMXRecord = (data) => {
|
|
264
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
265
|
+
throw new TypeError(
|
|
266
|
+
`Unmarshalling the type 'DomainLastStatusMXRecord' failed as data isn't a dictionary.`
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
return {
|
|
270
|
+
error: data.error,
|
|
271
|
+
lastValidAt: sdkClient.unmarshalDate(data.last_valid_at),
|
|
272
|
+
status: data.status
|
|
273
|
+
};
|
|
274
|
+
};
|
|
227
275
|
const unmarshalDomainLastStatusSpfRecord = (data) => {
|
|
228
276
|
if (!sdkClient.isJSONObject(data)) {
|
|
229
277
|
throw new TypeError(
|
|
@@ -248,6 +296,7 @@ const unmarshalDomainLastStatus = (data) => {
|
|
|
248
296
|
dmarcRecord: data.dmarc_record ? unmarshalDomainLastStatusDmarcRecord(data.dmarc_record) : void 0,
|
|
249
297
|
domainId: data.domain_id,
|
|
250
298
|
domainName: data.domain_name,
|
|
299
|
+
mxRecord: data.mx_record ? unmarshalDomainLastStatusMXRecord(data.mx_record) : void 0,
|
|
251
300
|
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : void 0
|
|
252
301
|
};
|
|
253
302
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, Domain, DomainLastStatus, Email, ListBlocklistsResponse, ListDomainsResponse, ListEmailsResponse, ListOfferSubscriptionsResponse, ListOffersResponse, ListPoolsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OfferSubscription, ProjectConsumption, ProjectSettings, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
|
|
2
|
+
import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, Domain, DomainLastStatus, Email, ListBlocklistsResponse, ListDomainsResponse, ListEmailsResponse, ListOfferSubscriptionsResponse, ListOffersResponse, ListPoolsResponse, ListWebhookEventsResponse, ListWebhooksResponse, OfferSubscription, ProjectConsumption, ProjectSettings, Statistics, UpdateDomainRequest, UpdateOfferSubscriptionRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalEmail: (data: unknown) => Email;
|
|
4
4
|
export declare const unmarshalDomain: (data: unknown) => Domain;
|
|
5
5
|
export declare const unmarshalOfferSubscription: (data: unknown) => OfferSubscription;
|
|
@@ -36,6 +36,17 @@ const unmarshalEmail = (data) => {
|
|
|
36
36
|
updatedAt: unmarshalDate(data.updated_at)
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
const unmarshalDomainRecordsDKIM = (data) => {
|
|
40
|
+
if (!isJSONObject(data)) {
|
|
41
|
+
throw new TypeError(
|
|
42
|
+
`Unmarshalling the type 'DomainRecordsDKIM' failed as data isn't a dictionary.`
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
name: data.name,
|
|
47
|
+
value: data.value
|
|
48
|
+
};
|
|
49
|
+
};
|
|
39
50
|
const unmarshalDomainRecordsDMARC = (data) => {
|
|
40
51
|
if (!isJSONObject(data)) {
|
|
41
52
|
throw new TypeError(
|
|
@@ -47,6 +58,28 @@ const unmarshalDomainRecordsDMARC = (data) => {
|
|
|
47
58
|
value: data.value
|
|
48
59
|
};
|
|
49
60
|
};
|
|
61
|
+
const unmarshalDomainRecordsMX = (data) => {
|
|
62
|
+
if (!isJSONObject(data)) {
|
|
63
|
+
throw new TypeError(
|
|
64
|
+
`Unmarshalling the type 'DomainRecordsMX' failed as data isn't a dictionary.`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
name: data.name,
|
|
69
|
+
value: data.value
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
const unmarshalDomainRecordsSPF = (data) => {
|
|
73
|
+
if (!isJSONObject(data)) {
|
|
74
|
+
throw new TypeError(
|
|
75
|
+
`Unmarshalling the type 'DomainRecordsSPF' failed as data isn't a dictionary.`
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
name: data.name,
|
|
80
|
+
value: data.value
|
|
81
|
+
};
|
|
82
|
+
};
|
|
50
83
|
const unmarshalDomainRecords = (data) => {
|
|
51
84
|
if (!isJSONObject(data)) {
|
|
52
85
|
throw new TypeError(
|
|
@@ -54,7 +87,10 @@ const unmarshalDomainRecords = (data) => {
|
|
|
54
87
|
);
|
|
55
88
|
}
|
|
56
89
|
return {
|
|
57
|
-
|
|
90
|
+
dkim: data.dkim ? unmarshalDomainRecordsDKIM(data.dkim) : void 0,
|
|
91
|
+
dmarc: data.dmarc ? unmarshalDomainRecordsDMARC(data.dmarc) : void 0,
|
|
92
|
+
mx: data.mx ? unmarshalDomainRecordsMX(data.mx) : void 0,
|
|
93
|
+
spf: data.spf ? unmarshalDomainRecordsSPF(data.spf) : void 0
|
|
58
94
|
};
|
|
59
95
|
};
|
|
60
96
|
const unmarshalDomainReputation = (data) => {
|
|
@@ -222,6 +258,18 @@ const unmarshalDomainLastStatusDmarcRecord = (data) => {
|
|
|
222
258
|
status: data.status
|
|
223
259
|
};
|
|
224
260
|
};
|
|
261
|
+
const unmarshalDomainLastStatusMXRecord = (data) => {
|
|
262
|
+
if (!isJSONObject(data)) {
|
|
263
|
+
throw new TypeError(
|
|
264
|
+
`Unmarshalling the type 'DomainLastStatusMXRecord' failed as data isn't a dictionary.`
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
error: data.error,
|
|
269
|
+
lastValidAt: unmarshalDate(data.last_valid_at),
|
|
270
|
+
status: data.status
|
|
271
|
+
};
|
|
272
|
+
};
|
|
225
273
|
const unmarshalDomainLastStatusSpfRecord = (data) => {
|
|
226
274
|
if (!isJSONObject(data)) {
|
|
227
275
|
throw new TypeError(
|
|
@@ -246,6 +294,7 @@ const unmarshalDomainLastStatus = (data) => {
|
|
|
246
294
|
dmarcRecord: data.dmarc_record ? unmarshalDomainLastStatusDmarcRecord(data.dmarc_record) : void 0,
|
|
247
295
|
domainId: data.domain_id,
|
|
248
296
|
domainName: data.domain_name,
|
|
297
|
+
mxRecord: data.mx_record ? unmarshalDomainLastStatusMXRecord(data.mx_record) : void 0,
|
|
249
298
|
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : void 0
|
|
250
299
|
};
|
|
251
300
|
};
|
|
@@ -16,6 +16,16 @@ export type PoolStatus = 'unknown_status' | 'disabled' | 'creating' | 'ready' |
|
|
|
16
16
|
export type ProjectSettingsPeriodicReportFrequency = 'unknown_frequency' | 'monthly' | 'weekly' | 'daily';
|
|
17
17
|
export type WebhookEventStatus = 'unknown_status' | 'sending' | 'sent' | 'failed';
|
|
18
18
|
export type WebhookEventType = 'unknown_type' | 'email_queued' | 'email_dropped' | 'email_deferred' | 'email_delivered' | 'email_spam' | 'email_mailbox_not_found' | 'email_blocklisted' | 'blocklist_created';
|
|
19
|
+
export interface DomainRecordsDKIM {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the DKIM TXT record.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Value of the DKIM TXT record.
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
}
|
|
19
29
|
export interface DomainRecordsDMARC {
|
|
20
30
|
/**
|
|
21
31
|
* Name of the DMARC TXT record.
|
|
@@ -26,6 +36,26 @@ export interface DomainRecordsDMARC {
|
|
|
26
36
|
*/
|
|
27
37
|
value: string;
|
|
28
38
|
}
|
|
39
|
+
export interface DomainRecordsMX {
|
|
40
|
+
/**
|
|
41
|
+
* Name of the MX record.
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Value of the MX record.
|
|
46
|
+
*/
|
|
47
|
+
value: string;
|
|
48
|
+
}
|
|
49
|
+
export interface DomainRecordsSPF {
|
|
50
|
+
/**
|
|
51
|
+
* Name of the SPF TXT record.
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
* Value of the SPF TXT record.
|
|
56
|
+
*/
|
|
57
|
+
value: string;
|
|
58
|
+
}
|
|
29
59
|
export interface EmailTry {
|
|
30
60
|
/**
|
|
31
61
|
* Rank number of this attempt to send the email.
|
|
@@ -49,6 +79,18 @@ export interface DomainRecords {
|
|
|
49
79
|
* DMARC TXT record specification.
|
|
50
80
|
*/
|
|
51
81
|
dmarc?: DomainRecordsDMARC;
|
|
82
|
+
/**
|
|
83
|
+
* DKIM TXT record specification.
|
|
84
|
+
*/
|
|
85
|
+
dkim?: DomainRecordsDKIM;
|
|
86
|
+
/**
|
|
87
|
+
* SPF TXT record specification.
|
|
88
|
+
*/
|
|
89
|
+
spf?: DomainRecordsSPF;
|
|
90
|
+
/**
|
|
91
|
+
* MX record specification.
|
|
92
|
+
*/
|
|
93
|
+
mx?: DomainRecordsMX;
|
|
52
94
|
}
|
|
53
95
|
export interface DomainReputation {
|
|
54
96
|
/**
|
|
@@ -254,6 +296,20 @@ export interface DomainLastStatusDmarcRecord {
|
|
|
254
296
|
*/
|
|
255
297
|
error?: string;
|
|
256
298
|
}
|
|
299
|
+
export interface DomainLastStatusMXRecord {
|
|
300
|
+
/**
|
|
301
|
+
* Status of the MX record's configuration. This record is optional to validate a domain, but highly recommended.
|
|
302
|
+
*/
|
|
303
|
+
status: DomainLastStatusRecordStatus;
|
|
304
|
+
/**
|
|
305
|
+
* Time and date the MX record was last valid.
|
|
306
|
+
*/
|
|
307
|
+
lastValidAt?: Date;
|
|
308
|
+
/**
|
|
309
|
+
* An error text displays in case the record is not valid.
|
|
310
|
+
*/
|
|
311
|
+
error?: string;
|
|
312
|
+
}
|
|
257
313
|
export interface DomainLastStatusSpfRecord {
|
|
258
314
|
/**
|
|
259
315
|
* Status of the SPF record's configuration.
|
|
@@ -761,6 +817,10 @@ export interface DomainLastStatus {
|
|
|
761
817
|
* The DMARC record verification data.
|
|
762
818
|
*/
|
|
763
819
|
dmarcRecord?: DomainLastStatusDmarcRecord;
|
|
820
|
+
/**
|
|
821
|
+
* The MX record verification data.
|
|
822
|
+
*/
|
|
823
|
+
mxRecord?: DomainLastStatusMXRecord;
|
|
764
824
|
/**
|
|
765
825
|
* The verification state of domain auto-configuration.
|
|
766
826
|
*/
|
|
@@ -772,7 +832,7 @@ export type GetDomainLastStatusRequest = {
|
|
|
772
832
|
*/
|
|
773
833
|
region?: ScwRegion;
|
|
774
834
|
/**
|
|
775
|
-
* ID of the domain to
|
|
835
|
+
* ID of the domain to get records status.
|
|
776
836
|
*/
|
|
777
837
|
domainId: string;
|
|
778
838
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-tem",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Scaleway SDK tem",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.0
|
|
33
|
+
"@scaleway/sdk-std": "1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|