@scaleway/sdk-mailbox 1.15.0 → 1.16.1
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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +2 -5
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1alpha1/api.gen.d.ts +210 -158
- package/dist/v1alpha1/api.gen.js +52 -5
- package/dist/v1alpha1/constants.gen.d.ts +7 -1
- package/dist/v1alpha1/constants.gen.js +19 -1
- package/dist/v1alpha1/content.gen.d.ts +5 -1
- package/dist/v1alpha1/content.gen.js +8 -1
- package/dist/v1alpha1/index.gen.d.ts +11 -6
- package/dist/v1alpha1/index.gen.js +16 -5
- package/dist/v1alpha1/marshalling.gen.d.ts +10 -2
- package/dist/v1alpha1/marshalling.gen.js +40 -1
- package/dist/v1alpha1/metadata.gen.d.ts +124 -88
- package/dist/v1alpha1/metadata.gen.js +39 -1
- package/dist/v1alpha1/types.gen.d.ts +540 -392
- package/dist/v1alpha1/validation-rules.gen.d.ts +73 -47
- package/dist/v1alpha1/validation-rules.gen.js +21 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1alpha1/types.gen.js +0 -0
|
@@ -1,456 +1,604 @@
|
|
|
1
|
+
//#region src/v1alpha1/types.gen.d.ts
|
|
1
2
|
export type AliasStatus = 'unknown_status' | 'provisioning' | 'deleting' | 'ready';
|
|
2
3
|
export type DomainRecordDNSType = 'unknown_dns_type' | 'cname_dns_type' | 'mx_dns_type' | 'srv_dns_type' | 'txt_dns_type';
|
|
3
4
|
export type DomainRecordLevel = 'unknown_level' | 'required' | 'recommended' | 'optional';
|
|
4
5
|
export type DomainRecordStatus = 'unknown_status' | 'validating' | 'valid' | 'invalid' | 'not_found';
|
|
5
6
|
export type DomainStatus = 'unknown_status' | 'creating' | 'waiting_validation' | 'validating' | 'validation_failed' | 'provisioning' | 'ready' | 'deleting';
|
|
7
|
+
export type ForwardingStatus = 'unknown_status' | 'provisioning' | 'ready' | 'updating' | 'deleting';
|
|
6
8
|
export type ListAliasesRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'name_desc' | 'name_asc';
|
|
7
9
|
export type ListDomainsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'name_desc' | 'name_asc' | 'mailbox_total_count_desc' | 'mailbox_total_count_asc';
|
|
10
|
+
export type ListForwardingsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'email_desc' | 'email_asc';
|
|
8
11
|
export type ListMailboxesRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'email_desc' | 'email_asc';
|
|
9
12
|
export type MailboxStatus = 'unknown_status' | 'creating' | 'waiting_payment' | 'waiting_domain' | 'ready' | 'deletion_scheduled' | 'locked' | 'renewing' | 'deleting' | 'restoring' | 'payment_failed';
|
|
10
13
|
export type MailboxSubscriptionPeriod = 'unknown_subscription_period' | 'canceled' | 'monthly' | 'yearly';
|
|
11
14
|
export interface BatchCreateMailboxesRequestMailboxParameters {
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
localPart: string;
|
|
16
|
+
password: string;
|
|
14
17
|
}
|
|
15
18
|
export interface Mailbox {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier of the mailbox.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* ID of the Project to which the mailbox belongs.
|
|
25
|
+
*/
|
|
26
|
+
projectId: string;
|
|
27
|
+
/**
|
|
28
|
+
* ID of the Organization to which the mailbox belongs.
|
|
29
|
+
*/
|
|
30
|
+
organizationId: string;
|
|
31
|
+
/**
|
|
32
|
+
* ID of the domain to which the mailbox belongs.
|
|
33
|
+
*/
|
|
34
|
+
domainId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Email address of the mailbox as local_part@domain.
|
|
37
|
+
*/
|
|
38
|
+
email: string;
|
|
39
|
+
/**
|
|
40
|
+
* Status of the mailbox.
|
|
41
|
+
*/
|
|
42
|
+
status: MailboxStatus;
|
|
43
|
+
/**
|
|
44
|
+
* Subscription renewal period, it can be monthly, yearly or canceled if the subscription has been canceled.
|
|
45
|
+
*/
|
|
46
|
+
subscriptionPeriod: MailboxSubscriptionPeriod;
|
|
47
|
+
/**
|
|
48
|
+
* Date and time of subscription period start.
|
|
49
|
+
*/
|
|
50
|
+
subscriptionPeriodStartedAt?: Date;
|
|
51
|
+
/**
|
|
52
|
+
* Next subscription renewal period, it can be monthly or yearly or canceled if the subscription has been canceled.
|
|
53
|
+
*/
|
|
54
|
+
nextSubscriptionPeriod: MailboxSubscriptionPeriod;
|
|
55
|
+
/**
|
|
56
|
+
* Date and time when the next subscription period starts.
|
|
57
|
+
*/
|
|
58
|
+
nextSubscriptionPeriodStartsAt?: Date;
|
|
59
|
+
/**
|
|
60
|
+
* Date and time of mailbox creation.
|
|
61
|
+
*/
|
|
62
|
+
createdAt?: Date;
|
|
63
|
+
/**
|
|
64
|
+
* Date and time when the mailbox was last updated.
|
|
65
|
+
*/
|
|
66
|
+
updatedAt?: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Date and time of the unrecoverable mailbox deletion.
|
|
69
|
+
*/
|
|
70
|
+
deletionScheduledAt?: Date;
|
|
68
71
|
}
|
|
69
72
|
export interface DomainRecord {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier of the DNS record.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* ID of the domain to which the record belongs.
|
|
79
|
+
*/
|
|
80
|
+
domainId: string;
|
|
81
|
+
/**
|
|
82
|
+
* Status of the record.
|
|
83
|
+
*/
|
|
84
|
+
status: DomainRecordStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Level of requirement of the record.
|
|
87
|
+
*/
|
|
88
|
+
level: DomainRecordLevel;
|
|
89
|
+
/**
|
|
90
|
+
* DNS type of the record.
|
|
91
|
+
*/
|
|
92
|
+
dnsType: DomainRecordDNSType;
|
|
93
|
+
/**
|
|
94
|
+
* DNS name of the record.
|
|
95
|
+
*/
|
|
96
|
+
dnsName: string;
|
|
97
|
+
/**
|
|
98
|
+
* DNS value of the record.
|
|
99
|
+
*/
|
|
100
|
+
dnsValue: string;
|
|
101
|
+
/**
|
|
102
|
+
* Error associated in case the record is not valid.
|
|
103
|
+
*/
|
|
104
|
+
error?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Date and time of record creation.
|
|
107
|
+
*/
|
|
108
|
+
createdAt?: Date;
|
|
109
|
+
/**
|
|
110
|
+
* Date and time of record last updated.
|
|
111
|
+
*/
|
|
112
|
+
updatedAt?: Date;
|
|
110
113
|
}
|
|
111
114
|
export interface Alias {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Unique identifier of the alias.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
/**
|
|
120
|
+
* Email address of the alias as local_part@domain.
|
|
121
|
+
*/
|
|
122
|
+
email: string;
|
|
123
|
+
/**
|
|
124
|
+
* ID of the mailbox to which the alias belongs.
|
|
125
|
+
*/
|
|
126
|
+
mailboxId: string;
|
|
127
|
+
/**
|
|
128
|
+
* Description of the alias.
|
|
129
|
+
*/
|
|
130
|
+
description: string;
|
|
131
|
+
/**
|
|
132
|
+
* Current status of the alias.
|
|
133
|
+
*/
|
|
134
|
+
status: AliasStatus;
|
|
135
|
+
/**
|
|
136
|
+
* Date and time of alias creation.
|
|
137
|
+
*/
|
|
138
|
+
createdAt?: Date;
|
|
139
|
+
/**
|
|
140
|
+
* Date and time when the alias was last updated.
|
|
141
|
+
*/
|
|
142
|
+
updatedAt?: Date;
|
|
140
143
|
}
|
|
141
144
|
export interface Domain {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
145
|
+
/**
|
|
146
|
+
* Unique identifier of the domain.
|
|
147
|
+
*/
|
|
148
|
+
id: string;
|
|
149
|
+
/**
|
|
150
|
+
* ID of the Project to which the domain belongs.
|
|
151
|
+
*/
|
|
152
|
+
projectId: string;
|
|
153
|
+
/**
|
|
154
|
+
* ID of the Organization to which the domain belongs.
|
|
155
|
+
*/
|
|
156
|
+
organizationId: string;
|
|
157
|
+
/**
|
|
158
|
+
* Fully qualified domain name.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
/**
|
|
162
|
+
* Status of the domain.
|
|
163
|
+
*/
|
|
164
|
+
status: DomainStatus;
|
|
165
|
+
/**
|
|
166
|
+
* Number of mailboxes of the domain.
|
|
167
|
+
*/
|
|
168
|
+
mailboxTotalCount: number;
|
|
169
|
+
/**
|
|
170
|
+
* Date and time of domain creation.
|
|
171
|
+
*/
|
|
172
|
+
createdAt?: Date;
|
|
173
|
+
/**
|
|
174
|
+
* Date and time of the domain's last update.
|
|
175
|
+
*/
|
|
176
|
+
updatedAt?: Date;
|
|
177
|
+
/**
|
|
178
|
+
* URL of the domain's webmail.
|
|
179
|
+
*/
|
|
180
|
+
webmailUrl: string;
|
|
181
|
+
/**
|
|
182
|
+
* URL of the domain's IMAP service.
|
|
183
|
+
*/
|
|
184
|
+
imapUrl: string;
|
|
185
|
+
/**
|
|
186
|
+
* URL of the domain's POP3 service.
|
|
187
|
+
*/
|
|
188
|
+
pop3Url: string;
|
|
189
|
+
/**
|
|
190
|
+
* URL of the domain's SMTP service.
|
|
191
|
+
*/
|
|
192
|
+
smtpUrl: string;
|
|
193
|
+
}
|
|
194
|
+
export interface Forwarding {
|
|
195
|
+
/**
|
|
196
|
+
* Unique identifier of the forwarding rule.
|
|
197
|
+
*/
|
|
198
|
+
id: string;
|
|
199
|
+
/**
|
|
200
|
+
* Date and time of forwarding rule creation.
|
|
201
|
+
*/
|
|
202
|
+
createdAt?: Date;
|
|
203
|
+
/**
|
|
204
|
+
* Date and time when the forwarding rule was last updated.
|
|
205
|
+
*/
|
|
206
|
+
updatedAt?: Date;
|
|
207
|
+
/**
|
|
208
|
+
* ID of the mailbox to which the forwarding rule belongs.
|
|
209
|
+
*/
|
|
210
|
+
mailboxId: string;
|
|
211
|
+
/**
|
|
212
|
+
* Destination email address to which incoming emails are forwarded.
|
|
213
|
+
*/
|
|
214
|
+
email: string;
|
|
215
|
+
/**
|
|
216
|
+
* Status of the forwarding rule.
|
|
217
|
+
*/
|
|
218
|
+
status: ForwardingStatus;
|
|
190
219
|
}
|
|
191
220
|
export type BatchCreateMailboxesRequest = {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Parameters for the mailboxes to create.
|
|
223
|
+
*/
|
|
224
|
+
mailboxes?: BatchCreateMailboxesRequestMailboxParameters[];
|
|
225
|
+
/**
|
|
226
|
+
* ID of the domain in which to create the mailboxes.
|
|
227
|
+
*/
|
|
228
|
+
domainId: string;
|
|
229
|
+
/**
|
|
230
|
+
* Subscription renewal period, it can be monthly or yearly.
|
|
231
|
+
*/
|
|
232
|
+
subscriptionPeriod?: MailboxSubscriptionPeriod;
|
|
204
233
|
};
|
|
205
234
|
export interface BatchCreateMailboxesResponse {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
235
|
+
/**
|
|
236
|
+
* Mailboxes created.
|
|
237
|
+
*/
|
|
238
|
+
mailboxes: Mailbox[];
|
|
210
239
|
}
|
|
211
240
|
export type CreateAliasRequest = {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
241
|
+
/**
|
|
242
|
+
* Local part of the email address (e.g. local_part@domain.com).
|
|
243
|
+
*/
|
|
244
|
+
localPart: string;
|
|
245
|
+
/**
|
|
246
|
+
* ID of the mailbox to associate with the alias.
|
|
247
|
+
*/
|
|
248
|
+
mailboxId: string;
|
|
249
|
+
/**
|
|
250
|
+
* (Optional) Description of the alias.
|
|
251
|
+
*/
|
|
252
|
+
description?: string;
|
|
224
253
|
};
|
|
225
254
|
export type CreateDomainRequest = {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
255
|
+
/**
|
|
256
|
+
* ID of the project to which the domain belongs.
|
|
257
|
+
*/
|
|
258
|
+
projectId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Fully qualified domain name.
|
|
261
|
+
*/
|
|
262
|
+
name: string;
|
|
263
|
+
};
|
|
264
|
+
export type CreateForwardingRequest = {
|
|
265
|
+
/**
|
|
266
|
+
* ID of the mailbox for which to create the forwarding rule.
|
|
267
|
+
*/
|
|
268
|
+
mailboxId: string;
|
|
269
|
+
/**
|
|
270
|
+
* Destination email address to which incoming emails will be forwarded. Must not be the same as the mailbox's own email address.
|
|
271
|
+
*/
|
|
272
|
+
email: string;
|
|
234
273
|
};
|
|
235
274
|
export type DeleteAliasRequest = {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
275
|
+
/**
|
|
276
|
+
* ID of the alias to delete.
|
|
277
|
+
*/
|
|
278
|
+
aliasId: string;
|
|
240
279
|
};
|
|
241
280
|
export type DeleteDomainRequest = {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
281
|
+
/**
|
|
282
|
+
* ID of the domain to delete.
|
|
283
|
+
*/
|
|
284
|
+
domainId: string;
|
|
285
|
+
};
|
|
286
|
+
export type DeleteForwardingRequest = {
|
|
287
|
+
/**
|
|
288
|
+
* ID of the forwarding rule to delete.
|
|
289
|
+
*/
|
|
290
|
+
forwardingId: string;
|
|
246
291
|
};
|
|
247
292
|
export type DeleteMailboxRequest = {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
293
|
+
/**
|
|
294
|
+
* ID of the mailbox to delete.
|
|
295
|
+
*/
|
|
296
|
+
mailboxId: string;
|
|
252
297
|
};
|
|
253
298
|
export type GetAliasRequest = {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
299
|
+
/**
|
|
300
|
+
* ID of the alias to get.
|
|
301
|
+
*/
|
|
302
|
+
aliasId: string;
|
|
258
303
|
};
|
|
259
304
|
export type GetDomainRecordsRequest = {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
305
|
+
/**
|
|
306
|
+
* (Optional) ID of the domain in which to get the records.
|
|
307
|
+
*/
|
|
308
|
+
domainId: string;
|
|
264
309
|
};
|
|
265
310
|
export interface GetDomainRecordsResponse {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
/**
|
|
312
|
+
* Record designed to automatically configure an email client with the appropriate mail server settings using a standardized XML file format.
|
|
313
|
+
*/
|
|
314
|
+
autoconfig?: DomainRecord;
|
|
315
|
+
/**
|
|
316
|
+
* Record designed to automate the discovery of server settings to configure email clients like Outlook.
|
|
317
|
+
*/
|
|
318
|
+
autodiscover?: DomainRecord;
|
|
319
|
+
/**
|
|
320
|
+
* Record that allows clients to interact with calendar data stored on a server.
|
|
321
|
+
*/
|
|
322
|
+
caldav?: DomainRecord;
|
|
323
|
+
/**
|
|
324
|
+
* Record that allows clients to interact with contact data stored on a server.
|
|
325
|
+
*/
|
|
326
|
+
carddav?: DomainRecord;
|
|
327
|
+
/**
|
|
328
|
+
* Record that allows the DKIM email authentication method to be employed to verify the authenticity of an email message.
|
|
329
|
+
*/
|
|
330
|
+
dkim?: DomainRecord;
|
|
331
|
+
/**
|
|
332
|
+
* Record that provides a mechanism for email receivers to determine if incoming messages are legitimate and were sent from authorized sources.
|
|
333
|
+
*/
|
|
334
|
+
dmarc?: DomainRecord;
|
|
335
|
+
/**
|
|
336
|
+
* Record that provides a unique token to validate a domain ownership.
|
|
337
|
+
*/
|
|
338
|
+
domainValidation?: DomainRecord;
|
|
339
|
+
/**
|
|
340
|
+
* Record that allows accessing the mailbox with the IMAP protocol.
|
|
341
|
+
*/
|
|
342
|
+
imap?: DomainRecord;
|
|
343
|
+
/**
|
|
344
|
+
* Record that directs emails to a mail server.
|
|
345
|
+
*/
|
|
346
|
+
mx?: DomainRecord;
|
|
347
|
+
/**
|
|
348
|
+
* Record that allows accessing the mailbox with the POP3 protocol.
|
|
349
|
+
*/
|
|
350
|
+
pop3?: DomainRecord;
|
|
351
|
+
/**
|
|
352
|
+
* Record that lists all the servers authorized to send emails from a particular domain.
|
|
353
|
+
*/
|
|
354
|
+
spf?: DomainRecord;
|
|
355
|
+
/**
|
|
356
|
+
* Record that allows the use of the SMTP submission mechanism.
|
|
357
|
+
*/
|
|
358
|
+
submission?: DomainRecord;
|
|
314
359
|
}
|
|
315
360
|
export type GetDomainRequest = {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
361
|
+
/**
|
|
362
|
+
* ID of the domain to get.
|
|
363
|
+
*/
|
|
364
|
+
domainId: string;
|
|
365
|
+
};
|
|
366
|
+
export type GetForwardingRequest = {
|
|
367
|
+
/**
|
|
368
|
+
* ID of the forwarding rule to get.
|
|
369
|
+
*/
|
|
370
|
+
forwardingId: string;
|
|
371
|
+
};
|
|
372
|
+
export type GetMailboxForwardingRequest = {
|
|
373
|
+
/**
|
|
374
|
+
* ID of the mailbox to get the forwarding settings for.
|
|
375
|
+
*/
|
|
376
|
+
mailboxId: string;
|
|
320
377
|
};
|
|
321
378
|
export type GetMailboxRequest = {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
379
|
+
/**
|
|
380
|
+
* ID of the mailbox to get.
|
|
381
|
+
*/
|
|
382
|
+
mailboxId: string;
|
|
326
383
|
};
|
|
327
384
|
export type ListAliasesRequest = {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
385
|
+
/**
|
|
386
|
+
* Order aliases by specific criteria.
|
|
387
|
+
*/
|
|
388
|
+
orderBy?: ListAliasesRequestOrderBy;
|
|
389
|
+
/**
|
|
390
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
391
|
+
*/
|
|
392
|
+
page?: number;
|
|
393
|
+
/**
|
|
394
|
+
* Requested page size. Value must be between 1 and 100.
|
|
395
|
+
*/
|
|
396
|
+
pageSize?: number;
|
|
397
|
+
/**
|
|
398
|
+
* ID of the mailbox for which to list aliases.
|
|
399
|
+
*/
|
|
400
|
+
mailboxId?: string;
|
|
401
|
+
/**
|
|
402
|
+
* (Optional) Filter aliases by their status.
|
|
403
|
+
*/
|
|
404
|
+
status?: AliasStatus;
|
|
405
|
+
/**
|
|
406
|
+
* Project ID to filter on.
|
|
407
|
+
*/
|
|
408
|
+
projectId?: string;
|
|
352
409
|
};
|
|
353
410
|
export interface ListAliasesResponse {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
411
|
+
/**
|
|
412
|
+
* Number of aliases that match the request (without pagination).
|
|
413
|
+
*/
|
|
414
|
+
totalCount: number;
|
|
415
|
+
/**
|
|
416
|
+
* Single page of aliases matching the requested criteria.
|
|
417
|
+
*/
|
|
418
|
+
aliases: Alias[];
|
|
362
419
|
}
|
|
363
420
|
export type ListDomainsRequest = {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
421
|
+
orderBy?: ListDomainsRequestOrderBy;
|
|
422
|
+
page?: number;
|
|
423
|
+
pageSize?: number;
|
|
424
|
+
projectId?: string;
|
|
425
|
+
statuses?: DomainStatus[];
|
|
426
|
+
search?: string;
|
|
370
427
|
};
|
|
371
428
|
export interface ListDomainsResponse {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
429
|
+
/**
|
|
430
|
+
* Number of domains that match the request (without pagination).
|
|
431
|
+
*/
|
|
432
|
+
totalCount: number;
|
|
433
|
+
/**
|
|
434
|
+
* Single page of domains matching the requested criteria.
|
|
435
|
+
*/
|
|
436
|
+
domains: Domain[];
|
|
437
|
+
}
|
|
438
|
+
export type ListForwardingsRequest = {
|
|
439
|
+
/**
|
|
440
|
+
* Order forwardings by specific criteria.
|
|
441
|
+
*/
|
|
442
|
+
orderBy?: ListForwardingsRequestOrderBy;
|
|
443
|
+
/**
|
|
444
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
445
|
+
*/
|
|
446
|
+
page?: number;
|
|
447
|
+
/**
|
|
448
|
+
* Requested page size. Value must be between 1 and 100.
|
|
449
|
+
*/
|
|
450
|
+
pageSize?: number;
|
|
451
|
+
/**
|
|
452
|
+
* (Optional) ID of the mailbox for which to list forwarding rules.
|
|
453
|
+
*/
|
|
454
|
+
mailboxId?: string;
|
|
455
|
+
/**
|
|
456
|
+
* (Optional) Filter forwarding rules by their status.
|
|
457
|
+
*/
|
|
458
|
+
status?: ForwardingStatus;
|
|
459
|
+
/**
|
|
460
|
+
* ID of the Project to filter on.
|
|
461
|
+
*
|
|
462
|
+
* One-of ('scope'): at most one of 'projectId', 'organizationId' could be set.
|
|
463
|
+
*/
|
|
464
|
+
projectId?: string;
|
|
465
|
+
/**
|
|
466
|
+
* ID of the Organization to filter on.
|
|
467
|
+
*
|
|
468
|
+
* One-of ('scope'): at most one of 'projectId', 'organizationId' could be set.
|
|
469
|
+
*/
|
|
470
|
+
organizationId?: string;
|
|
471
|
+
};
|
|
472
|
+
export interface ListForwardingsResponse {
|
|
473
|
+
/**
|
|
474
|
+
* Number of forwarding rules that match the request (without pagination).
|
|
475
|
+
*/
|
|
476
|
+
totalCount: number;
|
|
477
|
+
/**
|
|
478
|
+
* Single page of forwarding rules matching the requested criteria.
|
|
479
|
+
*/
|
|
480
|
+
forwardings: Forwarding[];
|
|
380
481
|
}
|
|
381
482
|
export type ListMailboxesRequest = {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
483
|
+
/**
|
|
484
|
+
* Order matching mailbox by different criteria.
|
|
485
|
+
*/
|
|
486
|
+
orderBy?: ListMailboxesRequestOrderBy;
|
|
487
|
+
/**
|
|
488
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
489
|
+
*/
|
|
490
|
+
page?: number;
|
|
491
|
+
/**
|
|
492
|
+
* Requested page size. Value must be between 1 and 1000.
|
|
493
|
+
*/
|
|
494
|
+
pageSize?: number;
|
|
495
|
+
/**
|
|
496
|
+
* (Optional) ID of the domain in which to list the mailboxes.
|
|
497
|
+
*/
|
|
498
|
+
domainId?: string;
|
|
499
|
+
/**
|
|
500
|
+
* (Optional) Filter mailboxes by their statuses.
|
|
501
|
+
*/
|
|
502
|
+
statuses?: MailboxStatus[];
|
|
503
|
+
/**
|
|
504
|
+
* (Optional) Search term to filter mailboxes on name and local_part.
|
|
505
|
+
*/
|
|
506
|
+
search?: string;
|
|
507
|
+
/**
|
|
508
|
+
* (Optional) Project ID to filter mailboxes on.
|
|
509
|
+
*/
|
|
510
|
+
projectId?: string;
|
|
410
511
|
};
|
|
411
512
|
export interface ListMailboxesResponse {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
513
|
+
/**
|
|
514
|
+
* Number of mailboxes that match the request (without pagination).
|
|
515
|
+
*/
|
|
516
|
+
totalCount: number;
|
|
517
|
+
/**
|
|
518
|
+
* Mailboxes matching the requested criteria.
|
|
519
|
+
*/
|
|
520
|
+
mailboxes: Mailbox[];
|
|
521
|
+
}
|
|
522
|
+
export interface MailboxForwarding {
|
|
523
|
+
/**
|
|
524
|
+
* ID of the mailbox to which the forwarding settings belong.
|
|
525
|
+
*/
|
|
526
|
+
mailboxId: string;
|
|
527
|
+
/**
|
|
528
|
+
* Whether to keep a copy of forwarded emails in the local mailbox.
|
|
529
|
+
*/
|
|
530
|
+
keepCopy: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Whether forwarding is enabled for the mailbox. When disabled, no emails are forwarded.
|
|
533
|
+
*/
|
|
534
|
+
enabled: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* Date and time of the forwarding settings creation.
|
|
537
|
+
*/
|
|
538
|
+
createdAt?: Date;
|
|
539
|
+
/**
|
|
540
|
+
* Date and time when the forwarding settings were last updated.
|
|
541
|
+
*/
|
|
542
|
+
updatedAt?: Date;
|
|
420
543
|
}
|
|
421
544
|
export type RestoreMailboxRequest = {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
545
|
+
/**
|
|
546
|
+
* ID of the mailbox to restore.
|
|
547
|
+
*/
|
|
548
|
+
mailboxId: string;
|
|
426
549
|
};
|
|
427
550
|
export type UpdateAliasRequest = {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
551
|
+
/**
|
|
552
|
+
* ID of the alias to update.
|
|
553
|
+
*/
|
|
554
|
+
aliasId: string;
|
|
555
|
+
/**
|
|
556
|
+
* (Optional) Description of the alias.
|
|
557
|
+
*/
|
|
558
|
+
description?: string;
|
|
559
|
+
};
|
|
560
|
+
export type UpdateForwardingRequest = {
|
|
561
|
+
/**
|
|
562
|
+
* ID of the forwarding rule to update.
|
|
563
|
+
*/
|
|
564
|
+
forwardingId: string;
|
|
565
|
+
/**
|
|
566
|
+
* (Optional) New destination email address for the forwarding rule. Must not be the same as the mailbox's own email address.
|
|
567
|
+
*/
|
|
568
|
+
email?: string;
|
|
569
|
+
};
|
|
570
|
+
export type UpdateMailboxForwardingRequest = {
|
|
571
|
+
/**
|
|
572
|
+
* ID of the mailbox to update the forwarding settings for.
|
|
573
|
+
*/
|
|
574
|
+
mailboxId: string;
|
|
575
|
+
/**
|
|
576
|
+
* (Optional) Whether to keep a copy of forwarded emails in the local mailbox.
|
|
577
|
+
*/
|
|
578
|
+
keepCopy?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* (Optional) Enable or disable forwarding for the mailbox.
|
|
581
|
+
*/
|
|
582
|
+
enabled?: boolean;
|
|
436
583
|
};
|
|
437
584
|
export type UpdateMailboxRequest = {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
585
|
+
/**
|
|
586
|
+
* ID of the mailbox to update.
|
|
587
|
+
*/
|
|
588
|
+
mailboxId: string;
|
|
589
|
+
/**
|
|
590
|
+
* (Optional) New subscription period for the mailbox.
|
|
591
|
+
*/
|
|
592
|
+
subscriptionPeriod?: MailboxSubscriptionPeriod;
|
|
593
|
+
/**
|
|
594
|
+
* (Optional) New password of the mailbox.
|
|
595
|
+
*/
|
|
596
|
+
newPassword?: string;
|
|
450
597
|
};
|
|
451
598
|
export type ValidateDomainRecordsRequest = {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
599
|
+
/**
|
|
600
|
+
* ID of the domain with which to validate the records.
|
|
601
|
+
*/
|
|
602
|
+
domainId: string;
|
|
456
603
|
};
|
|
604
|
+
//#endregion
|