@scaleway/sdk-mailbox 1.8.0 → 1.10.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/.vite/license.md +3 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +2 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1alpha1/api.gen.d.ts +164 -0
- package/dist/v1alpha1/api.gen.js +108 -0
- package/dist/v1alpha1/content.gen.d.ts +9 -0
- package/dist/v1alpha1/content.gen.js +23 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +29 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +15 -0
- package/dist/v1alpha1/marshalling.gen.js +128 -0
- package/dist/v1alpha1/metadata.gen.d.ts +92 -0
- package/dist/v1alpha1/metadata.gen.js +102 -0
- package/dist/v1alpha1/types.gen.d.ts +444 -0
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +63 -0
- package/dist/v1alpha1/validation-rules.gen.js +61 -0
- package/package.json +4 -4
- package/LICENSE +0 -191
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
//#region src/v1alpha1/metadata.gen.ts
|
|
2
|
+
const queriesMetadata = {
|
|
3
|
+
namespace: "mailbox",
|
|
4
|
+
version: "v1alpha1",
|
|
5
|
+
folderName: "mailboxv1alpha1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "listDomains",
|
|
11
|
+
protoName: "ListDomains",
|
|
12
|
+
paramsType: "ListDomainsRequest",
|
|
13
|
+
returnType: "ListDomainsResponse",
|
|
14
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
15
|
+
isList: true,
|
|
16
|
+
paginationType: "offset",
|
|
17
|
+
pageParamKey: "page",
|
|
18
|
+
listItemType: "Domain",
|
|
19
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
20
|
+
isPrivate: false,
|
|
21
|
+
description: "\""
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
methodName: "getDomain",
|
|
25
|
+
protoName: "GetDomain",
|
|
26
|
+
paramsType: "GetDomainRequest",
|
|
27
|
+
returnType: "Domain",
|
|
28
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
29
|
+
isList: false,
|
|
30
|
+
paginationType: "none",
|
|
31
|
+
isPrivate: false,
|
|
32
|
+
description: "\"",
|
|
33
|
+
hasWaiter: true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
methodName: "getDomainRecords",
|
|
37
|
+
protoName: "GetDomainRecords",
|
|
38
|
+
paramsType: "GetDomainRecordsRequest",
|
|
39
|
+
returnType: "GetDomainRecordsResponse",
|
|
40
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
41
|
+
isList: false,
|
|
42
|
+
paginationType: "none",
|
|
43
|
+
isPrivate: false,
|
|
44
|
+
description: "\""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
methodName: "listMailboxes",
|
|
48
|
+
protoName: "ListMailboxes",
|
|
49
|
+
paramsType: "ListMailboxesRequest",
|
|
50
|
+
returnType: "ListMailboxesResponse",
|
|
51
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
52
|
+
isList: true,
|
|
53
|
+
paginationType: "offset",
|
|
54
|
+
pageParamKey: "page",
|
|
55
|
+
listItemType: "Mailbox",
|
|
56
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
57
|
+
isPrivate: false,
|
|
58
|
+
description: "\""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
methodName: "getMailbox",
|
|
62
|
+
protoName: "GetMailbox",
|
|
63
|
+
paramsType: "GetMailboxRequest",
|
|
64
|
+
returnType: "Mailbox",
|
|
65
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
66
|
+
isList: false,
|
|
67
|
+
paginationType: "none",
|
|
68
|
+
isPrivate: false,
|
|
69
|
+
description: "\"",
|
|
70
|
+
hasWaiter: true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
methodName: "listAliases",
|
|
74
|
+
protoName: "ListAliases",
|
|
75
|
+
paramsType: "ListAliasesRequest",
|
|
76
|
+
returnType: "ListAliasesResponse",
|
|
77
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
78
|
+
isList: true,
|
|
79
|
+
paginationType: "offset",
|
|
80
|
+
pageParamKey: "page",
|
|
81
|
+
listItemType: "Alias",
|
|
82
|
+
listItemTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
83
|
+
isPrivate: false,
|
|
84
|
+
description: "\""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
methodName: "getAlias",
|
|
88
|
+
protoName: "GetAlias",
|
|
89
|
+
paramsType: "GetAliasRequest",
|
|
90
|
+
returnType: "Alias",
|
|
91
|
+
returnTypeNamespace: "@scaleway-internal/sdk-mailbox/v1alpha1",
|
|
92
|
+
isList: false,
|
|
93
|
+
paginationType: "none",
|
|
94
|
+
isPrivate: false,
|
|
95
|
+
description: "\"",
|
|
96
|
+
hasWaiter: true
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}]
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
export { queriesMetadata };
|
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
export type AliasStatus = 'unknown_status' | 'provisioning' | 'deleting' | 'ready';
|
|
2
|
+
export type DomainRecordDNSType = 'unknown_dns_type' | 'cname_dns_type' | 'mx_dns_type' | 'srv_dns_type' | 'txt_dns_type';
|
|
3
|
+
export type DomainRecordLevel = 'unknown_level' | 'required' | 'recommended' | 'optional';
|
|
4
|
+
export type DomainRecordStatus = 'unknown_status' | 'validating' | 'valid' | 'invalid' | 'not_found';
|
|
5
|
+
export type DomainStatus = 'unknown_status' | 'creating' | 'waiting_validation' | 'validating' | 'validation_failed' | 'provisioning' | 'ready' | 'deleting';
|
|
6
|
+
export type ListAliasesRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'name_desc' | 'name_asc';
|
|
7
|
+
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';
|
|
8
|
+
export type ListMailboxesRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'email_desc' | 'email_asc';
|
|
9
|
+
export type MailboxStatus = 'unknown_status' | 'creating' | 'waiting_payment' | 'waiting_domain' | 'ready' | 'deletion_scheduled' | 'locked' | 'renewing' | 'deleting' | 'restoring' | 'payment_failed';
|
|
10
|
+
export type MailboxSubscriptionPeriod = 'unknown_subscription_period' | 'canceled' | 'monthly' | 'yearly';
|
|
11
|
+
export interface BatchCreateMailboxesRequestMailboxParameters {
|
|
12
|
+
localPart: string;
|
|
13
|
+
password: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Mailbox {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier of the mailbox.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the domain to which the mailbox belongs.
|
|
22
|
+
*/
|
|
23
|
+
domainId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Email address of the mailbox as local_part@domain.
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
* Status of the mailbox.
|
|
30
|
+
*/
|
|
31
|
+
status: MailboxStatus;
|
|
32
|
+
/**
|
|
33
|
+
* Subscription renewal period, it can be monthly, yearly or canceled if the subscription has been canceled.
|
|
34
|
+
*/
|
|
35
|
+
subscriptionPeriod: MailboxSubscriptionPeriod;
|
|
36
|
+
/**
|
|
37
|
+
* Date and time of subscription period start.
|
|
38
|
+
*/
|
|
39
|
+
subscriptionPeriodStartedAt?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* Next subscription renewal period, it can be monthly or yearly or canceled if the subscription has been canceled.
|
|
42
|
+
*/
|
|
43
|
+
nextSubscriptionPeriod: MailboxSubscriptionPeriod;
|
|
44
|
+
/**
|
|
45
|
+
* Date and time when the next subscription period starts.
|
|
46
|
+
*/
|
|
47
|
+
nextSubscriptionPeriodStartsAt?: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Date and time of mailbox creation.
|
|
50
|
+
*/
|
|
51
|
+
createdAt?: Date;
|
|
52
|
+
/**
|
|
53
|
+
* Date and time when the mailbox was last updated.
|
|
54
|
+
*/
|
|
55
|
+
updatedAt?: Date;
|
|
56
|
+
/**
|
|
57
|
+
* Date and time of the unrecoverable mailbox deletion.
|
|
58
|
+
*/
|
|
59
|
+
deletionScheduledAt?: Date;
|
|
60
|
+
}
|
|
61
|
+
export interface DomainRecord {
|
|
62
|
+
/**
|
|
63
|
+
* Unique identifier of the DNS record.
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* ID of the domain to which the record belongs.
|
|
68
|
+
*/
|
|
69
|
+
domainId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Status of the record.
|
|
72
|
+
*/
|
|
73
|
+
status: DomainRecordStatus;
|
|
74
|
+
/**
|
|
75
|
+
* Level of requirement of the record.
|
|
76
|
+
*/
|
|
77
|
+
level: DomainRecordLevel;
|
|
78
|
+
/**
|
|
79
|
+
* DNS type of the record.
|
|
80
|
+
*/
|
|
81
|
+
dnsType: DomainRecordDNSType;
|
|
82
|
+
/**
|
|
83
|
+
* DNS name of the record.
|
|
84
|
+
*/
|
|
85
|
+
dnsName: string;
|
|
86
|
+
/**
|
|
87
|
+
* DNS value of the record.
|
|
88
|
+
*/
|
|
89
|
+
dnsValue: string;
|
|
90
|
+
/**
|
|
91
|
+
* Error associated in case the record is not valid.
|
|
92
|
+
*/
|
|
93
|
+
error?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Date and time of record creation.
|
|
96
|
+
*/
|
|
97
|
+
createdAt?: Date;
|
|
98
|
+
/**
|
|
99
|
+
* Date and time of record last updated.
|
|
100
|
+
*/
|
|
101
|
+
updatedAt?: Date;
|
|
102
|
+
}
|
|
103
|
+
export interface Alias {
|
|
104
|
+
/**
|
|
105
|
+
* Unique identifier of the alias.
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Email address of the alias as local_part@domain.
|
|
110
|
+
*/
|
|
111
|
+
email: string;
|
|
112
|
+
/**
|
|
113
|
+
* ID of the mailbox to which the alias belongs.
|
|
114
|
+
*/
|
|
115
|
+
mailboxId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Description of the alias.
|
|
118
|
+
*/
|
|
119
|
+
description: string;
|
|
120
|
+
/**
|
|
121
|
+
* Current status of the alias.
|
|
122
|
+
*/
|
|
123
|
+
status: AliasStatus;
|
|
124
|
+
/**
|
|
125
|
+
* Date and time of alias creation.
|
|
126
|
+
*/
|
|
127
|
+
createdAt?: Date;
|
|
128
|
+
/**
|
|
129
|
+
* Date and time when the alias was last updated.
|
|
130
|
+
*/
|
|
131
|
+
updatedAt?: Date;
|
|
132
|
+
}
|
|
133
|
+
export interface Domain {
|
|
134
|
+
/**
|
|
135
|
+
* Unique identifier of the domain.
|
|
136
|
+
*/
|
|
137
|
+
id: string;
|
|
138
|
+
/**
|
|
139
|
+
* ID of the Project to which the domain belongs.
|
|
140
|
+
*/
|
|
141
|
+
projectId: string;
|
|
142
|
+
/**
|
|
143
|
+
* Fully qualified domain name.
|
|
144
|
+
*/
|
|
145
|
+
name: string;
|
|
146
|
+
/**
|
|
147
|
+
* Status of the domain.
|
|
148
|
+
*/
|
|
149
|
+
status: DomainStatus;
|
|
150
|
+
/**
|
|
151
|
+
* Number of mailboxes of the domain.
|
|
152
|
+
*/
|
|
153
|
+
mailboxTotalCount: number;
|
|
154
|
+
/**
|
|
155
|
+
* Date and time of domain creation.
|
|
156
|
+
*/
|
|
157
|
+
createdAt?: Date;
|
|
158
|
+
/**
|
|
159
|
+
* Date and time of the domain's last update.
|
|
160
|
+
*/
|
|
161
|
+
updatedAt?: Date;
|
|
162
|
+
/**
|
|
163
|
+
* URL of the domain's webmail.
|
|
164
|
+
*/
|
|
165
|
+
webmailUrl: string;
|
|
166
|
+
/**
|
|
167
|
+
* URL of the domain's IMAP service.
|
|
168
|
+
*/
|
|
169
|
+
imapUrl: string;
|
|
170
|
+
/**
|
|
171
|
+
* URL of the domain's POP3 service.
|
|
172
|
+
*/
|
|
173
|
+
pop3Url: string;
|
|
174
|
+
/**
|
|
175
|
+
* URL of the domain's SMTP service.
|
|
176
|
+
*/
|
|
177
|
+
smtpUrl: string;
|
|
178
|
+
}
|
|
179
|
+
export type BatchCreateMailboxesRequest = {
|
|
180
|
+
/**
|
|
181
|
+
* Parameters for the mailboxes to create.
|
|
182
|
+
*/
|
|
183
|
+
mailboxes?: BatchCreateMailboxesRequestMailboxParameters[];
|
|
184
|
+
/**
|
|
185
|
+
* ID of the domain in which to create the mailboxes.
|
|
186
|
+
*/
|
|
187
|
+
domainId: string;
|
|
188
|
+
/**
|
|
189
|
+
* Subscription renewal period, it can be monthly or yearly.
|
|
190
|
+
*/
|
|
191
|
+
subscriptionPeriod?: MailboxSubscriptionPeriod;
|
|
192
|
+
};
|
|
193
|
+
export interface BatchCreateMailboxesResponse {
|
|
194
|
+
/**
|
|
195
|
+
* Mailboxes created.
|
|
196
|
+
*/
|
|
197
|
+
mailboxes: Mailbox[];
|
|
198
|
+
}
|
|
199
|
+
export type CreateAliasRequest = {
|
|
200
|
+
/**
|
|
201
|
+
* Local part of the email address (e.g. local_part@domain.com).
|
|
202
|
+
*/
|
|
203
|
+
localPart: string;
|
|
204
|
+
/**
|
|
205
|
+
* ID of the mailbox to associate with the alias.
|
|
206
|
+
*/
|
|
207
|
+
mailboxId: string;
|
|
208
|
+
/**
|
|
209
|
+
* (Optional) Description of the alias.
|
|
210
|
+
*/
|
|
211
|
+
description?: string;
|
|
212
|
+
};
|
|
213
|
+
export type CreateDomainRequest = {
|
|
214
|
+
/**
|
|
215
|
+
* ID of the project to which the domain belongs.
|
|
216
|
+
*/
|
|
217
|
+
projectId?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Fully qualified domain name.
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
export type DeleteAliasRequest = {
|
|
224
|
+
/**
|
|
225
|
+
* ID of the alias to delete.
|
|
226
|
+
*/
|
|
227
|
+
aliasId: string;
|
|
228
|
+
};
|
|
229
|
+
export type DeleteDomainRequest = {
|
|
230
|
+
/**
|
|
231
|
+
* ID of the domain to delete.
|
|
232
|
+
*/
|
|
233
|
+
domainId: string;
|
|
234
|
+
};
|
|
235
|
+
export type DeleteMailboxRequest = {
|
|
236
|
+
/**
|
|
237
|
+
* ID of the mailbox to delete.
|
|
238
|
+
*/
|
|
239
|
+
mailboxId: string;
|
|
240
|
+
};
|
|
241
|
+
export type GetAliasRequest = {
|
|
242
|
+
/**
|
|
243
|
+
* ID of the alias to get.
|
|
244
|
+
*/
|
|
245
|
+
aliasId: string;
|
|
246
|
+
};
|
|
247
|
+
export type GetDomainRecordsRequest = {
|
|
248
|
+
/**
|
|
249
|
+
* (Optional) ID of the domain in which to get the records.
|
|
250
|
+
*/
|
|
251
|
+
domainId: string;
|
|
252
|
+
};
|
|
253
|
+
export interface GetDomainRecordsResponse {
|
|
254
|
+
/**
|
|
255
|
+
* Record designed to automatically configure an email client with the appropriate mail server settings using a standardized XML file format.
|
|
256
|
+
*/
|
|
257
|
+
autoconfig?: DomainRecord;
|
|
258
|
+
/**
|
|
259
|
+
* Record designed to automate the discovery of server settings to configure email clients like Outlook.
|
|
260
|
+
*/
|
|
261
|
+
autodiscover?: DomainRecord;
|
|
262
|
+
/**
|
|
263
|
+
* Record that allows clients to interact with calendar data stored on a server.
|
|
264
|
+
*/
|
|
265
|
+
caldav?: DomainRecord;
|
|
266
|
+
/**
|
|
267
|
+
* Record that allows clients to interact with contact data stored on a server.
|
|
268
|
+
*/
|
|
269
|
+
carddav?: DomainRecord;
|
|
270
|
+
/**
|
|
271
|
+
* Record that allows the DKIM email authentication method to be employed to verify the authenticity of an email message.
|
|
272
|
+
*/
|
|
273
|
+
dkim?: DomainRecord;
|
|
274
|
+
/**
|
|
275
|
+
* Record that provides a mechanism for email receivers to determine if incoming messages are legitimate and were sent from authorized sources.
|
|
276
|
+
*/
|
|
277
|
+
dmarc?: DomainRecord;
|
|
278
|
+
/**
|
|
279
|
+
* Record that provides a unique token to validate a domain ownership.
|
|
280
|
+
*/
|
|
281
|
+
domainValidation?: DomainRecord;
|
|
282
|
+
/**
|
|
283
|
+
* Record that allows accessing the mailbox with the IMAP protocol.
|
|
284
|
+
*/
|
|
285
|
+
imap?: DomainRecord;
|
|
286
|
+
/**
|
|
287
|
+
* Record that directs emails to a mail server.
|
|
288
|
+
*/
|
|
289
|
+
mx?: DomainRecord;
|
|
290
|
+
/**
|
|
291
|
+
* Record that allows accessing the mailbox with the POP3 protocol.
|
|
292
|
+
*/
|
|
293
|
+
pop3?: DomainRecord;
|
|
294
|
+
/**
|
|
295
|
+
* Record that lists all the servers authorized to send emails from a particular domain.
|
|
296
|
+
*/
|
|
297
|
+
spf?: DomainRecord;
|
|
298
|
+
/**
|
|
299
|
+
* Record that allows the use of the SMTP submission mechanism.
|
|
300
|
+
*/
|
|
301
|
+
submission?: DomainRecord;
|
|
302
|
+
}
|
|
303
|
+
export type GetDomainRequest = {
|
|
304
|
+
/**
|
|
305
|
+
* ID of the domain to get.
|
|
306
|
+
*/
|
|
307
|
+
domainId: string;
|
|
308
|
+
};
|
|
309
|
+
export type GetMailboxRequest = {
|
|
310
|
+
/**
|
|
311
|
+
* ID of the mailbox to get.
|
|
312
|
+
*/
|
|
313
|
+
mailboxId: string;
|
|
314
|
+
};
|
|
315
|
+
export type ListAliasesRequest = {
|
|
316
|
+
/**
|
|
317
|
+
* Order aliases by specific criteria.
|
|
318
|
+
*/
|
|
319
|
+
orderBy?: ListAliasesRequestOrderBy;
|
|
320
|
+
/**
|
|
321
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
322
|
+
*/
|
|
323
|
+
page?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Requested page size. Value must be between 1 and 100.
|
|
326
|
+
*/
|
|
327
|
+
pageSize?: number;
|
|
328
|
+
/**
|
|
329
|
+
* ID of the mailbox for which to list aliases.
|
|
330
|
+
*/
|
|
331
|
+
mailboxId?: string;
|
|
332
|
+
/**
|
|
333
|
+
* (Optional) Filter aliases by their status.
|
|
334
|
+
*/
|
|
335
|
+
status?: AliasStatus;
|
|
336
|
+
/**
|
|
337
|
+
* Project ID to filter on.
|
|
338
|
+
*/
|
|
339
|
+
projectId?: string;
|
|
340
|
+
};
|
|
341
|
+
export interface ListAliasesResponse {
|
|
342
|
+
/**
|
|
343
|
+
* Number of aliases that match the request (without pagination).
|
|
344
|
+
*/
|
|
345
|
+
totalCount: number;
|
|
346
|
+
/**
|
|
347
|
+
* Single page of aliases matching the requested criteria.
|
|
348
|
+
*/
|
|
349
|
+
aliases: Alias[];
|
|
350
|
+
}
|
|
351
|
+
export type ListDomainsRequest = {
|
|
352
|
+
orderBy?: ListDomainsRequestOrderBy;
|
|
353
|
+
page?: number;
|
|
354
|
+
pageSize?: number;
|
|
355
|
+
projectId?: string;
|
|
356
|
+
statuses?: DomainStatus[];
|
|
357
|
+
search?: string;
|
|
358
|
+
};
|
|
359
|
+
export interface ListDomainsResponse {
|
|
360
|
+
/**
|
|
361
|
+
* Number of domains that match the request (without pagination).
|
|
362
|
+
*/
|
|
363
|
+
totalCount: number;
|
|
364
|
+
/**
|
|
365
|
+
* Single page of domains matching the requested criteria.
|
|
366
|
+
*/
|
|
367
|
+
domains: Domain[];
|
|
368
|
+
}
|
|
369
|
+
export type ListMailboxesRequest = {
|
|
370
|
+
/**
|
|
371
|
+
* Order matching mailbox by different criteria.
|
|
372
|
+
*/
|
|
373
|
+
orderBy?: ListMailboxesRequestOrderBy;
|
|
374
|
+
/**
|
|
375
|
+
* Requested page number. Value must be greater or equal to 1.
|
|
376
|
+
*/
|
|
377
|
+
page?: number;
|
|
378
|
+
/**
|
|
379
|
+
* Requested page size. Value must be between 1 and 1000.
|
|
380
|
+
*/
|
|
381
|
+
pageSize?: number;
|
|
382
|
+
/**
|
|
383
|
+
* (Optional) ID of the domain in which to list the mailboxes.
|
|
384
|
+
*/
|
|
385
|
+
domainId?: string;
|
|
386
|
+
/**
|
|
387
|
+
* (Optional) Filter mailboxes by their statuses.
|
|
388
|
+
*/
|
|
389
|
+
statuses?: MailboxStatus[];
|
|
390
|
+
/**
|
|
391
|
+
* (Optional) Search term to filter mailboxes on name and local_part.
|
|
392
|
+
*/
|
|
393
|
+
search?: string;
|
|
394
|
+
/**
|
|
395
|
+
* (Optional) Project ID to filter mailboxes on.
|
|
396
|
+
*/
|
|
397
|
+
projectId?: string;
|
|
398
|
+
};
|
|
399
|
+
export interface ListMailboxesResponse {
|
|
400
|
+
/**
|
|
401
|
+
* Number of mailboxes that match the request (without pagination).
|
|
402
|
+
*/
|
|
403
|
+
totalCount: number;
|
|
404
|
+
/**
|
|
405
|
+
* Mailboxes matching the requested criteria.
|
|
406
|
+
*/
|
|
407
|
+
mailboxes: Mailbox[];
|
|
408
|
+
}
|
|
409
|
+
export type RestoreMailboxRequest = {
|
|
410
|
+
/**
|
|
411
|
+
* ID of the mailbox to restore.
|
|
412
|
+
*/
|
|
413
|
+
mailboxId: string;
|
|
414
|
+
};
|
|
415
|
+
export type UpdateAliasRequest = {
|
|
416
|
+
/**
|
|
417
|
+
* ID of the alias to update.
|
|
418
|
+
*/
|
|
419
|
+
aliasId: string;
|
|
420
|
+
/**
|
|
421
|
+
* (Optional) Description of the alias.
|
|
422
|
+
*/
|
|
423
|
+
description?: string;
|
|
424
|
+
};
|
|
425
|
+
export type UpdateMailboxRequest = {
|
|
426
|
+
/**
|
|
427
|
+
* ID of the mailbox to update.
|
|
428
|
+
*/
|
|
429
|
+
mailboxId: string;
|
|
430
|
+
/**
|
|
431
|
+
* (Optional) New subscription period for the mailbox.
|
|
432
|
+
*/
|
|
433
|
+
subscriptionPeriod?: MailboxSubscriptionPeriod;
|
|
434
|
+
/**
|
|
435
|
+
* (Optional) New password of the mailbox.
|
|
436
|
+
*/
|
|
437
|
+
newPassword?: string;
|
|
438
|
+
};
|
|
439
|
+
export type ValidateDomainRecordsRequest = {
|
|
440
|
+
/**
|
|
441
|
+
* ID of the domain with which to validate the records.
|
|
442
|
+
*/
|
|
443
|
+
domainId: string;
|
|
444
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const BatchCreateMailboxesRequestMailboxParameters: {
|
|
2
|
+
localPart: {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
minLength: number;
|
|
5
|
+
};
|
|
6
|
+
password: {
|
|
7
|
+
maxLength: number;
|
|
8
|
+
minLength: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const CreateAliasRequest: {
|
|
12
|
+
description: {
|
|
13
|
+
maxLength: number;
|
|
14
|
+
};
|
|
15
|
+
localPart: {
|
|
16
|
+
maxLength: number;
|
|
17
|
+
minLength: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const CreateDomainRequest: {
|
|
21
|
+
name: {
|
|
22
|
+
maxLength: number;
|
|
23
|
+
minLength: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const ListAliasesRequest: {
|
|
27
|
+
page: {
|
|
28
|
+
greaterThanOrEqual: number;
|
|
29
|
+
};
|
|
30
|
+
pageSize: {
|
|
31
|
+
greaterThanOrEqual: number;
|
|
32
|
+
lessThanOrEqual: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const ListDomainsRequest: {
|
|
36
|
+
page: {
|
|
37
|
+
greaterThanOrEqual: number;
|
|
38
|
+
};
|
|
39
|
+
pageSize: {
|
|
40
|
+
greaterThanOrEqual: number;
|
|
41
|
+
lessThanOrEqual: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const ListMailboxesRequest: {
|
|
45
|
+
page: {
|
|
46
|
+
greaterThanOrEqual: number;
|
|
47
|
+
};
|
|
48
|
+
pageSize: {
|
|
49
|
+
greaterThanOrEqual: number;
|
|
50
|
+
lessThanOrEqual: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const UpdateAliasRequest: {
|
|
54
|
+
description: {
|
|
55
|
+
maxLength: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const UpdateMailboxRequest: {
|
|
59
|
+
newPassword: {
|
|
60
|
+
maxLength: number;
|
|
61
|
+
minLength: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1alpha1/validation-rules.gen.ts
|
|
3
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
BatchCreateMailboxesRequestMailboxParameters: () => BatchCreateMailboxesRequestMailboxParameters,
|
|
5
|
+
CreateAliasRequest: () => CreateAliasRequest,
|
|
6
|
+
CreateDomainRequest: () => CreateDomainRequest,
|
|
7
|
+
ListAliasesRequest: () => ListAliasesRequest,
|
|
8
|
+
ListDomainsRequest: () => ListDomainsRequest,
|
|
9
|
+
ListMailboxesRequest: () => ListMailboxesRequest,
|
|
10
|
+
UpdateAliasRequest: () => UpdateAliasRequest,
|
|
11
|
+
UpdateMailboxRequest: () => UpdateMailboxRequest
|
|
12
|
+
});
|
|
13
|
+
const BatchCreateMailboxesRequestMailboxParameters = {
|
|
14
|
+
localPart: {
|
|
15
|
+
maxLength: 64,
|
|
16
|
+
minLength: 1
|
|
17
|
+
},
|
|
18
|
+
password: {
|
|
19
|
+
maxLength: 128,
|
|
20
|
+
minLength: 12
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const CreateAliasRequest = {
|
|
24
|
+
description: { maxLength: 128 },
|
|
25
|
+
localPart: {
|
|
26
|
+
maxLength: 64,
|
|
27
|
+
minLength: 1
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const CreateDomainRequest = { name: {
|
|
31
|
+
maxLength: 253,
|
|
32
|
+
minLength: 1
|
|
33
|
+
} };
|
|
34
|
+
const ListAliasesRequest = {
|
|
35
|
+
page: { greaterThanOrEqual: 1 },
|
|
36
|
+
pageSize: {
|
|
37
|
+
greaterThanOrEqual: 1,
|
|
38
|
+
lessThanOrEqual: 100
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const ListDomainsRequest = {
|
|
42
|
+
page: { greaterThanOrEqual: 1 },
|
|
43
|
+
pageSize: {
|
|
44
|
+
greaterThanOrEqual: 1,
|
|
45
|
+
lessThanOrEqual: 1e3
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const ListMailboxesRequest = {
|
|
49
|
+
page: { greaterThanOrEqual: 1 },
|
|
50
|
+
pageSize: {
|
|
51
|
+
greaterThanOrEqual: 1,
|
|
52
|
+
lessThanOrEqual: 1e3
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const UpdateAliasRequest = { description: { maxLength: 128 } };
|
|
56
|
+
const UpdateMailboxRequest = { newPassword: {
|
|
57
|
+
maxLength: 128,
|
|
58
|
+
minLength: 12
|
|
59
|
+
} };
|
|
60
|
+
//#endregion
|
|
61
|
+
export { BatchCreateMailboxesRequestMailboxParameters, CreateAliasRequest, CreateDomainRequest, ListAliasesRequest, ListDomainsRequest, ListMailboxesRequest, UpdateAliasRequest, UpdateMailboxRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-mailbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Scaleway SDK mailbox",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.
|
|
36
|
+
"@scaleway/sdk-std": "2.6.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.6.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.6.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=20.20.2"
|