@scaleway/sdk-mailbox 1.1.1 → 1.2.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.
@@ -83,7 +83,7 @@ export declare class API extends ParentAPI {
83
83
  */
84
84
  waitForMailbox: (request: Readonly<GetMailboxRequest>, options?: Readonly<WaitForOptions<Mailbox>>) => Promise<Mailbox>;
85
85
  /**
86
- * Update a mailbox name, recovery email, subscription period or password with its ID.. Update a mailbox name, recovery email, subscription period or password with its ID.
86
+ * Update a mailbox subscription period or password with its ID.. Update a mailbox subscription period or password with its ID.
87
87
  *
88
88
  * @param request - The request {@link UpdateMailboxRequest}
89
89
  * @returns A Promise of Mailbox
@@ -114,7 +114,7 @@ var API = class extends API$1 {
114
114
  */
115
115
  waitForMailbox = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!MAILBOX_TRANSIENT_STATUSES.includes(res.status))), this.getMailbox, request, options);
116
116
  /**
117
- * Update a mailbox name, recovery email, subscription period or password with its ID.. Update a mailbox name, recovery email, subscription period or password with its ID.
117
+ * Update a mailbox subscription period or password with its ID.. Update a mailbox subscription period or password with its ID.
118
118
  *
119
119
  * @param request - The request {@link UpdateMailboxRequest}
120
120
  * @returns A Promise of Mailbox
@@ -5,13 +5,11 @@ var unmarshalMailbox = (data) => {
5
5
  return {
6
6
  createdAt: unmarshalDate(data.created_at),
7
7
  deletionScheduledAt: unmarshalDate(data.deletion_scheduled_at),
8
- displayName: data.display_name,
9
8
  domainId: data.domain_id,
10
9
  email: data.email,
11
10
  id: data.id,
12
11
  nextSubscriptionPeriod: data.next_subscription_period,
13
12
  nextSubscriptionPeriodStartsAt: unmarshalDate(data.next_subscription_period_starts_at),
14
- recoveryEmail: data.recovery_email,
15
13
  status: data.status,
16
14
  subscriptionPeriod: data.subscription_period,
17
15
  subscriptionPeriodStartedAt: unmarshalDate(data.subscription_period_started_at),
@@ -87,10 +85,8 @@ var unmarshalListMailboxesResponse = (data) => {
87
85
  };
88
86
  };
89
87
  var marshalBatchCreateMailboxesRequestMailboxParameters = (request, defaults) => ({
90
- display_name: request.displayName,
91
88
  local_part: request.localPart,
92
- password: request.password,
93
- recovery_email: request.recoveryEmail
89
+ password: request.password
94
90
  });
95
91
  var marshalBatchCreateMailboxesRequest = (request, defaults) => ({
96
92
  domain_id: request.domainId,
@@ -102,9 +98,7 @@ var marshalCreateDomainRequest = (request, defaults) => ({
102
98
  project_id: request.projectId ?? defaults.defaultProjectId
103
99
  });
104
100
  var marshalUpdateMailboxRequest = (request, defaults) => ({
105
- display_name: request.displayName,
106
101
  new_password: request.newPassword,
107
- recovery_email: request.recoveryEmail,
108
102
  subscription_period: request.subscriptionPeriod
109
103
  });
110
104
  //#endregion
@@ -0,0 +1,61 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "mailbox";
3
+ readonly version: "v1alpha1";
4
+ readonly folderName: "mailboxv1alpha1";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "API";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listDomains";
9
+ readonly protoName: "ListDomains";
10
+ readonly paramsType: "ListDomainsRequest";
11
+ readonly returnType: "ListDomainsResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "Domain";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }, {
19
+ readonly methodName: "getDomain";
20
+ readonly protoName: "GetDomain";
21
+ readonly paramsType: "GetDomainRequest";
22
+ readonly returnType: "Domain";
23
+ readonly isList: false;
24
+ readonly paginationType: "none";
25
+ readonly isPrivate: false;
26
+ readonly description: "\"";
27
+ readonly hasWaiter: true;
28
+ }, {
29
+ readonly methodName: "getDomainRecords";
30
+ readonly protoName: "GetDomainRecords";
31
+ readonly paramsType: "GetDomainRecordsRequest";
32
+ readonly returnType: "GetDomainRecordsResponse";
33
+ readonly isList: false;
34
+ readonly paginationType: "none";
35
+ readonly isPrivate: false;
36
+ readonly description: "\"";
37
+ }, {
38
+ readonly methodName: "listMailboxes";
39
+ readonly protoName: "ListMailboxes";
40
+ readonly paramsType: "ListMailboxesRequest";
41
+ readonly returnType: "ListMailboxesResponse";
42
+ readonly isList: true;
43
+ readonly paginationType: "offset";
44
+ readonly pageParamKey: "page";
45
+ readonly listItemType: "Mailbox";
46
+ readonly isPrivate: false;
47
+ readonly description: "\"";
48
+ }, {
49
+ readonly methodName: "getMailbox";
50
+ readonly protoName: "GetMailbox";
51
+ readonly paramsType: "GetMailboxRequest";
52
+ readonly returnType: "Mailbox";
53
+ readonly isList: false;
54
+ readonly paginationType: "none";
55
+ readonly isPrivate: false;
56
+ readonly description: "\"";
57
+ readonly hasWaiter: true;
58
+ }];
59
+ }];
60
+ };
61
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,69 @@
1
+ //#region src/v1alpha1/metadata.gen.ts
2
+ var 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
+ isList: true,
15
+ paginationType: "offset",
16
+ pageParamKey: "page",
17
+ listItemType: "Domain",
18
+ isPrivate: false,
19
+ description: "\""
20
+ },
21
+ {
22
+ methodName: "getDomain",
23
+ protoName: "GetDomain",
24
+ paramsType: "GetDomainRequest",
25
+ returnType: "Domain",
26
+ isList: false,
27
+ paginationType: "none",
28
+ isPrivate: false,
29
+ description: "\"",
30
+ hasWaiter: true
31
+ },
32
+ {
33
+ methodName: "getDomainRecords",
34
+ protoName: "GetDomainRecords",
35
+ paramsType: "GetDomainRecordsRequest",
36
+ returnType: "GetDomainRecordsResponse",
37
+ isList: false,
38
+ paginationType: "none",
39
+ isPrivate: false,
40
+ description: "\""
41
+ },
42
+ {
43
+ methodName: "listMailboxes",
44
+ protoName: "ListMailboxes",
45
+ paramsType: "ListMailboxesRequest",
46
+ returnType: "ListMailboxesResponse",
47
+ isList: true,
48
+ paginationType: "offset",
49
+ pageParamKey: "page",
50
+ listItemType: "Mailbox",
51
+ isPrivate: false,
52
+ description: "\""
53
+ },
54
+ {
55
+ methodName: "getMailbox",
56
+ protoName: "GetMailbox",
57
+ paramsType: "GetMailboxRequest",
58
+ returnType: "Mailbox",
59
+ isList: false,
60
+ paginationType: "none",
61
+ isPrivate: false,
62
+ description: "\"",
63
+ hasWaiter: true
64
+ }
65
+ ]
66
+ }]
67
+ };
68
+ //#endregion
69
+ export { queriesMetadata };
@@ -9,8 +9,6 @@ export type MailboxSubscriptionPeriod = 'unknown_subscription_period' | 'cancele
9
9
  export interface BatchCreateMailboxesRequestMailboxParameters {
10
10
  localPart: string;
11
11
  password: string;
12
- displayName?: string;
13
- recoveryEmail?: string;
14
12
  }
15
13
  export interface Mailbox {
16
14
  /**
@@ -21,18 +19,10 @@ export interface Mailbox {
21
19
  * ID of the domain to which the mailbox belongs.
22
20
  */
23
21
  domainId: string;
24
- /**
25
- * Name of the mailbox.
26
- */
27
- displayName: string;
28
22
  /**
29
23
  * Email address of the mailbox as local_part@domain.
30
24
  */
31
25
  email: string;
32
- /**
33
- * Recovery email for the mailbox.
34
- */
35
- recoveryEmail: string;
36
26
  /**
37
27
  * Status of the mailbox.
38
28
  */
@@ -337,14 +327,6 @@ export type UpdateMailboxRequest = {
337
327
  * ID of the mailbox to update.
338
328
  */
339
329
  mailboxId: string;
340
- /**
341
- * (Optional) New display name of the mailbox.
342
- */
343
- displayName?: string;
344
- /**
345
- * (Optional) New recovery email for the mailbox.
346
- */
347
- recoveryEmail?: string;
348
330
  /**
349
331
  * (Optional) New subscription period for the mailbox.
350
332
  */
@@ -1,8 +1,4 @@
1
1
  export declare const BatchCreateMailboxesRequestMailboxParameters: {
2
- displayName: {
3
- maxLength: number;
4
- minLength: number;
5
- };
6
2
  localPart: {
7
3
  maxLength: number;
8
4
  minLength: number;
@@ -11,10 +7,6 @@ export declare const BatchCreateMailboxesRequestMailboxParameters: {
11
7
  maxLength: number;
12
8
  minLength: number;
13
9
  };
14
- recoveryEmail: {
15
- maxLength: number;
16
- minLength: number;
17
- };
18
10
  };
19
11
  export declare const CreateDomainRequest: {
20
12
  name: {
@@ -41,16 +33,8 @@ export declare const ListMailboxesRequest: {
41
33
  };
42
34
  };
43
35
  export declare const UpdateMailboxRequest: {
44
- displayName: {
45
- maxLength: number;
46
- minLength: number;
47
- };
48
36
  newPassword: {
49
37
  maxLength: number;
50
38
  minLength: number;
51
39
  };
52
- recoveryEmail: {
53
- maxLength: number;
54
- minLength: number;
55
- };
56
40
  };
@@ -8,10 +8,6 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
8
8
  UpdateMailboxRequest: () => UpdateMailboxRequest
9
9
  });
10
10
  var BatchCreateMailboxesRequestMailboxParameters = {
11
- displayName: {
12
- maxLength: 64,
13
- minLength: 1
14
- },
15
11
  localPart: {
16
12
  maxLength: 64,
17
13
  minLength: 1
@@ -19,10 +15,6 @@ var BatchCreateMailboxesRequestMailboxParameters = {
19
15
  password: {
20
16
  maxLength: 128,
21
17
  minLength: 12
22
- },
23
- recoveryEmail: {
24
- maxLength: 320,
25
- minLength: 6
26
18
  }
27
19
  };
28
20
  var CreateDomainRequest = { name: {
@@ -43,19 +35,9 @@ var ListMailboxesRequest = {
43
35
  lessThanOrEqual: 1e3
44
36
  }
45
37
  };
46
- var UpdateMailboxRequest = {
47
- displayName: {
48
- maxLength: 64,
49
- minLength: 1
50
- },
51
- newPassword: {
52
- maxLength: 128,
53
- minLength: 12
54
- },
55
- recoveryEmail: {
56
- maxLength: 320,
57
- minLength: 6
58
- }
59
- };
38
+ var UpdateMailboxRequest = { newPassword: {
39
+ maxLength: 128,
40
+ minLength: 12
41
+ } };
60
42
  //#endregion
61
43
  export { BatchCreateMailboxesRequestMailboxParameters, CreateDomainRequest, ListDomainsRequest, ListMailboxesRequest, UpdateMailboxRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mailbox",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Scaleway SDK mailbox",
5
5
  "license": "Apache-2.0",
6
6
  "files": [