@scaleway/sdk-mailbox 1.15.0 → 1.16.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.
@@ -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
- localPart: string;
13
- password: string;
15
+ localPart: string;
16
+ password: string;
14
17
  }
15
18
  export interface Mailbox {
16
- /**
17
- * Unique identifier of the mailbox.
18
- */
19
- id: string;
20
- /**
21
- * ID of the Project to which the mailbox belongs.
22
- */
23
- projectId: string;
24
- /**
25
- * ID of the Organization to which the mailbox belongs.
26
- */
27
- organizationId: string;
28
- /**
29
- * ID of the domain to which the mailbox belongs.
30
- */
31
- domainId: string;
32
- /**
33
- * Email address of the mailbox as local_part@domain.
34
- */
35
- email: string;
36
- /**
37
- * Status of the mailbox.
38
- */
39
- status: MailboxStatus;
40
- /**
41
- * Subscription renewal period, it can be monthly, yearly or canceled if the subscription has been canceled.
42
- */
43
- subscriptionPeriod: MailboxSubscriptionPeriod;
44
- /**
45
- * Date and time of subscription period start.
46
- */
47
- subscriptionPeriodStartedAt?: Date;
48
- /**
49
- * Next subscription renewal period, it can be monthly or yearly or canceled if the subscription has been canceled.
50
- */
51
- nextSubscriptionPeriod: MailboxSubscriptionPeriod;
52
- /**
53
- * Date and time when the next subscription period starts.
54
- */
55
- nextSubscriptionPeriodStartsAt?: Date;
56
- /**
57
- * Date and time of mailbox creation.
58
- */
59
- createdAt?: Date;
60
- /**
61
- * Date and time when the mailbox was last updated.
62
- */
63
- updatedAt?: Date;
64
- /**
65
- * Date and time of the unrecoverable mailbox deletion.
66
- */
67
- deletionScheduledAt?: Date;
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
- * Unique identifier of the DNS record.
72
- */
73
- id: string;
74
- /**
75
- * ID of the domain to which the record belongs.
76
- */
77
- domainId: string;
78
- /**
79
- * Status of the record.
80
- */
81
- status: DomainRecordStatus;
82
- /**
83
- * Level of requirement of the record.
84
- */
85
- level: DomainRecordLevel;
86
- /**
87
- * DNS type of the record.
88
- */
89
- dnsType: DomainRecordDNSType;
90
- /**
91
- * DNS name of the record.
92
- */
93
- dnsName: string;
94
- /**
95
- * DNS value of the record.
96
- */
97
- dnsValue: string;
98
- /**
99
- * Error associated in case the record is not valid.
100
- */
101
- error?: string;
102
- /**
103
- * Date and time of record creation.
104
- */
105
- createdAt?: Date;
106
- /**
107
- * Date and time of record last updated.
108
- */
109
- updatedAt?: Date;
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
- * Unique identifier of the alias.
114
- */
115
- id: string;
116
- /**
117
- * Email address of the alias as local_part@domain.
118
- */
119
- email: string;
120
- /**
121
- * ID of the mailbox to which the alias belongs.
122
- */
123
- mailboxId: string;
124
- /**
125
- * Description of the alias.
126
- */
127
- description: string;
128
- /**
129
- * Current status of the alias.
130
- */
131
- status: AliasStatus;
132
- /**
133
- * Date and time of alias creation.
134
- */
135
- createdAt?: Date;
136
- /**
137
- * Date and time when the alias was last updated.
138
- */
139
- updatedAt?: Date;
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
- * Unique identifier of the domain.
144
- */
145
- id: string;
146
- /**
147
- * ID of the Project to which the domain belongs.
148
- */
149
- projectId: string;
150
- /**
151
- * ID of the Organization to which the domain belongs.
152
- */
153
- organizationId: string;
154
- /**
155
- * Fully qualified domain name.
156
- */
157
- name: string;
158
- /**
159
- * Status of the domain.
160
- */
161
- status: DomainStatus;
162
- /**
163
- * Number of mailboxes of the domain.
164
- */
165
- mailboxTotalCount: number;
166
- /**
167
- * Date and time of domain creation.
168
- */
169
- createdAt?: Date;
170
- /**
171
- * Date and time of the domain's last update.
172
- */
173
- updatedAt?: Date;
174
- /**
175
- * URL of the domain's webmail.
176
- */
177
- webmailUrl: string;
178
- /**
179
- * URL of the domain's IMAP service.
180
- */
181
- imapUrl: string;
182
- /**
183
- * URL of the domain's POP3 service.
184
- */
185
- pop3Url: string;
186
- /**
187
- * URL of the domain's SMTP service.
188
- */
189
- smtpUrl: string;
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
- * Parameters for the mailboxes to create.
194
- */
195
- mailboxes?: BatchCreateMailboxesRequestMailboxParameters[];
196
- /**
197
- * ID of the domain in which to create the mailboxes.
198
- */
199
- domainId: string;
200
- /**
201
- * Subscription renewal period, it can be monthly or yearly.
202
- */
203
- subscriptionPeriod?: MailboxSubscriptionPeriod;
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
- * Mailboxes created.
208
- */
209
- mailboxes: Mailbox[];
235
+ /**
236
+ * Mailboxes created.
237
+ */
238
+ mailboxes: Mailbox[];
210
239
  }
211
240
  export type CreateAliasRequest = {
212
- /**
213
- * Local part of the email address (e.g. local_part@domain.com).
214
- */
215
- localPart: string;
216
- /**
217
- * ID of the mailbox to associate with the alias.
218
- */
219
- mailboxId: string;
220
- /**
221
- * (Optional) Description of the alias.
222
- */
223
- description?: string;
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
- * ID of the project to which the domain belongs.
228
- */
229
- projectId?: string;
230
- /**
231
- * Fully qualified domain name.
232
- */
233
- name: string;
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
- * ID of the alias to delete.
238
- */
239
- aliasId: string;
275
+ /**
276
+ * ID of the alias to delete.
277
+ */
278
+ aliasId: string;
240
279
  };
241
280
  export type DeleteDomainRequest = {
242
- /**
243
- * ID of the domain to delete.
244
- */
245
- domainId: string;
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
- * ID of the mailbox to delete.
250
- */
251
- mailboxId: string;
293
+ /**
294
+ * ID of the mailbox to delete.
295
+ */
296
+ mailboxId: string;
252
297
  };
253
298
  export type GetAliasRequest = {
254
- /**
255
- * ID of the alias to get.
256
- */
257
- aliasId: string;
299
+ /**
300
+ * ID of the alias to get.
301
+ */
302
+ aliasId: string;
258
303
  };
259
304
  export type GetDomainRecordsRequest = {
260
- /**
261
- * (Optional) ID of the domain in which to get the records.
262
- */
263
- domainId: string;
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
- * Record designed to automatically configure an email client with the appropriate mail server settings using a standardized XML file format.
268
- */
269
- autoconfig?: DomainRecord;
270
- /**
271
- * Record designed to automate the discovery of server settings to configure email clients like Outlook.
272
- */
273
- autodiscover?: DomainRecord;
274
- /**
275
- * Record that allows clients to interact with calendar data stored on a server.
276
- */
277
- caldav?: DomainRecord;
278
- /**
279
- * Record that allows clients to interact with contact data stored on a server.
280
- */
281
- carddav?: DomainRecord;
282
- /**
283
- * Record that allows the DKIM email authentication method to be employed to verify the authenticity of an email message.
284
- */
285
- dkim?: DomainRecord;
286
- /**
287
- * Record that provides a mechanism for email receivers to determine if incoming messages are legitimate and were sent from authorized sources.
288
- */
289
- dmarc?: DomainRecord;
290
- /**
291
- * Record that provides a unique token to validate a domain ownership.
292
- */
293
- domainValidation?: DomainRecord;
294
- /**
295
- * Record that allows accessing the mailbox with the IMAP protocol.
296
- */
297
- imap?: DomainRecord;
298
- /**
299
- * Record that directs emails to a mail server.
300
- */
301
- mx?: DomainRecord;
302
- /**
303
- * Record that allows accessing the mailbox with the POP3 protocol.
304
- */
305
- pop3?: DomainRecord;
306
- /**
307
- * Record that lists all the servers authorized to send emails from a particular domain.
308
- */
309
- spf?: DomainRecord;
310
- /**
311
- * Record that allows the use of the SMTP submission mechanism.
312
- */
313
- submission?: DomainRecord;
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
- * ID of the domain to get.
318
- */
319
- domainId: string;
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
- * ID of the mailbox to get.
324
- */
325
- mailboxId: string;
379
+ /**
380
+ * ID of the mailbox to get.
381
+ */
382
+ mailboxId: string;
326
383
  };
327
384
  export type ListAliasesRequest = {
328
- /**
329
- * Order aliases by specific criteria.
330
- */
331
- orderBy?: ListAliasesRequestOrderBy;
332
- /**
333
- * Requested page number. Value must be greater or equal to 1.
334
- */
335
- page?: number;
336
- /**
337
- * Requested page size. Value must be between 1 and 100.
338
- */
339
- pageSize?: number;
340
- /**
341
- * ID of the mailbox for which to list aliases.
342
- */
343
- mailboxId?: string;
344
- /**
345
- * (Optional) Filter aliases by their status.
346
- */
347
- status?: AliasStatus;
348
- /**
349
- * Project ID to filter on.
350
- */
351
- projectId?: string;
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
- * Number of aliases that match the request (without pagination).
356
- */
357
- totalCount: number;
358
- /**
359
- * Single page of aliases matching the requested criteria.
360
- */
361
- aliases: Alias[];
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
- orderBy?: ListDomainsRequestOrderBy;
365
- page?: number;
366
- pageSize?: number;
367
- projectId?: string;
368
- statuses?: DomainStatus[];
369
- search?: string;
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
- * Number of domains that match the request (without pagination).
374
- */
375
- totalCount: number;
376
- /**
377
- * Single page of domains matching the requested criteria.
378
- */
379
- domains: Domain[];
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
- * Order matching mailbox by different criteria.
384
- */
385
- orderBy?: ListMailboxesRequestOrderBy;
386
- /**
387
- * Requested page number. Value must be greater or equal to 1.
388
- */
389
- page?: number;
390
- /**
391
- * Requested page size. Value must be between 1 and 1000.
392
- */
393
- pageSize?: number;
394
- /**
395
- * (Optional) ID of the domain in which to list the mailboxes.
396
- */
397
- domainId?: string;
398
- /**
399
- * (Optional) Filter mailboxes by their statuses.
400
- */
401
- statuses?: MailboxStatus[];
402
- /**
403
- * (Optional) Search term to filter mailboxes on name and local_part.
404
- */
405
- search?: string;
406
- /**
407
- * (Optional) Project ID to filter mailboxes on.
408
- */
409
- projectId?: string;
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
- * Number of mailboxes that match the request (without pagination).
414
- */
415
- totalCount: number;
416
- /**
417
- * Mailboxes matching the requested criteria.
418
- */
419
- mailboxes: Mailbox[];
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
- * ID of the mailbox to restore.
424
- */
425
- mailboxId: string;
545
+ /**
546
+ * ID of the mailbox to restore.
547
+ */
548
+ mailboxId: string;
426
549
  };
427
550
  export type UpdateAliasRequest = {
428
- /**
429
- * ID of the alias to update.
430
- */
431
- aliasId: string;
432
- /**
433
- * (Optional) Description of the alias.
434
- */
435
- description?: string;
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
- * ID of the mailbox to update.
440
- */
441
- mailboxId: string;
442
- /**
443
- * (Optional) New subscription period for the mailbox.
444
- */
445
- subscriptionPeriod?: MailboxSubscriptionPeriod;
446
- /**
447
- * (Optional) New password of the mailbox.
448
- */
449
- newPassword?: string;
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
- * ID of the domain with which to validate the records.
454
- */
455
- domainId: string;
599
+ /**
600
+ * ID of the domain with which to validate the records.
601
+ */
602
+ domainId: string;
456
603
  };
604
+ //#endregion