@scaleway/sdk-mailbox 1.4.0 → 1.4.2

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,5 +1,5 @@
1
- import type { WaitForOptions } from '@scaleway/sdk-client';
2
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
+ import type { WaitForOptions } from '@scaleway/sdk-client';
3
3
  import type { BatchCreateMailboxesRequest, BatchCreateMailboxesResponse, CreateDomainRequest, DeleteDomainRequest, DeleteMailboxRequest, Domain, GetDomainRecordsRequest, GetDomainRecordsResponse, GetDomainRequest, GetMailboxRequest, ListDomainsRequest, ListDomainsResponse, ListMailboxesRequest, ListMailboxesResponse, Mailbox, RestoreMailboxRequest, UpdateMailboxRequest, ValidateDomainRecordsRequest } from './types.gen.js';
4
4
  /**
5
5
  * Mailbox API.
@@ -39,7 +39,7 @@ export declare class API extends ParentAPI {
39
39
  * @param options - The waiting options
40
40
  * @returns A Promise of Domain
41
41
  */
42
- waitForDomain: (request: Readonly<GetDomainRequest>, options?: Readonly<WaitForOptions<Domain>> | undefined) => Promise<Domain>;
42
+ waitForDomain: (request: Readonly<GetDomainRequest>, options?: Readonly<WaitForOptions<Domain>>) => Promise<Domain>;
43
43
  /**
44
44
  * Delete a domain by its ID.. Delete a domain by its ID.
45
45
  *
@@ -81,7 +81,7 @@ export declare class API extends ParentAPI {
81
81
  * @param options - The waiting options
82
82
  * @returns A Promise of Mailbox
83
83
  */
84
- waitForMailbox: (request: Readonly<GetMailboxRequest>, options?: Readonly<WaitForOptions<Mailbox>> | undefined) => Promise<Mailbox>;
84
+ waitForMailbox: (request: Readonly<GetMailboxRequest>, options?: Readonly<WaitForOptions<Mailbox>>) => Promise<Mailbox>;
85
85
  /**
86
86
  * Update a mailbox subscription period or password with its ID.. Update a mailbox subscription period or password with its ID.
87
87
  *
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { BatchCreateMailboxesRequest, BatchCreateMailboxesResponse, CreateDomainRequest, Domain, GetDomainRecordsResponse, ListDomainsResponse, ListMailboxesResponse, Mailbox, UpdateMailboxRequest } from './types.gen.js';
2
+ import type { Mailbox, Domain, BatchCreateMailboxesResponse, GetDomainRecordsResponse, ListDomainsResponse, ListMailboxesResponse, BatchCreateMailboxesRequest, CreateDomainRequest, UpdateMailboxRequest } from './types.gen.js';
3
3
  export declare const unmarshalMailbox: (data: unknown) => Mailbox;
4
4
  export declare const unmarshalDomain: (data: unknown) => Domain;
5
5
  export declare const unmarshalBatchCreateMailboxesResponse: (data: unknown) => BatchCreateMailboxesResponse;
@@ -22,7 +22,6 @@ const unmarshalDomain = (data) => {
22
22
  createdAt: unmarshalDate(data.created_at),
23
23
  id: data.id,
24
24
  imapUrl: data.imap_url,
25
- jmapUrl: data.jmap_url,
26
25
  mailboxTotalCount: data.mailbox_total_count,
27
26
  name: data.name,
28
27
  pop3Url: data.pop3_url,
@@ -63,7 +62,6 @@ const unmarshalGetDomainRecordsResponse = (data) => {
63
62
  dmarc: data.dmarc ? unmarshalDomainRecord(data.dmarc) : void 0,
64
63
  domainValidation: data.domain_validation ? unmarshalDomainRecord(data.domain_validation) : void 0,
65
64
  imap: data.imap ? unmarshalDomainRecord(data.imap) : void 0,
66
- jmap: data.jmap ? unmarshalDomainRecord(data.jmap) : void 0,
67
65
  mx: data.mx ? unmarshalDomainRecord(data.mx) : void 0,
68
66
  pop3: data.pop3 ? unmarshalDomainRecord(data.pop3) : void 0,
69
67
  spf: data.spf ? unmarshalDomainRecord(data.spf) : void 0,
@@ -1,59 +1,59 @@
1
1
  export declare const queriesMetadata: {
2
- readonly namespace: "mailbox";
3
- readonly version: "v1alpha1";
4
- readonly folderName: "mailboxv1alpha1";
2
+ readonly namespace: 'mailbox';
3
+ readonly version: 'v1alpha1';
4
+ readonly folderName: 'mailboxv1alpha1';
5
5
  readonly services: readonly [{
6
- readonly apiClass: "API";
6
+ readonly apiClass: 'API';
7
7
  readonly methods: readonly [{
8
- readonly methodName: "listDomains";
9
- readonly protoName: "ListDomains";
10
- readonly paramsType: "ListDomainsRequest";
11
- readonly returnType: "ListDomainsResponse";
8
+ readonly methodName: 'listDomains';
9
+ readonly protoName: 'ListDomains';
10
+ readonly paramsType: 'ListDomainsRequest';
11
+ readonly returnType: 'ListDomainsResponse';
12
12
  readonly isList: true;
13
- readonly paginationType: "offset";
14
- readonly pageParamKey: "page";
15
- readonly listItemType: "Domain";
13
+ readonly paginationType: 'offset';
14
+ readonly pageParamKey: 'page';
15
+ readonly listItemType: 'Domain';
16
16
  readonly isPrivate: false;
17
- readonly description: "\"";
17
+ readonly description: '"';
18
18
  }, {
19
- readonly methodName: "getDomain";
20
- readonly protoName: "GetDomain";
21
- readonly paramsType: "GetDomainRequest";
22
- readonly returnType: "Domain";
19
+ readonly methodName: 'getDomain';
20
+ readonly protoName: 'GetDomain';
21
+ readonly paramsType: 'GetDomainRequest';
22
+ readonly returnType: 'Domain';
23
23
  readonly isList: false;
24
- readonly paginationType: "none";
24
+ readonly paginationType: 'none';
25
25
  readonly isPrivate: false;
26
- readonly description: "\"";
26
+ readonly description: '"';
27
27
  readonly hasWaiter: true;
28
28
  }, {
29
- readonly methodName: "getDomainRecords";
30
- readonly protoName: "GetDomainRecords";
31
- readonly paramsType: "GetDomainRecordsRequest";
32
- readonly returnType: "GetDomainRecordsResponse";
29
+ readonly methodName: 'getDomainRecords';
30
+ readonly protoName: 'GetDomainRecords';
31
+ readonly paramsType: 'GetDomainRecordsRequest';
32
+ readonly returnType: 'GetDomainRecordsResponse';
33
33
  readonly isList: false;
34
- readonly paginationType: "none";
34
+ readonly paginationType: 'none';
35
35
  readonly isPrivate: false;
36
- readonly description: "\"";
36
+ readonly description: '"';
37
37
  }, {
38
- readonly methodName: "listMailboxes";
39
- readonly protoName: "ListMailboxes";
40
- readonly paramsType: "ListMailboxesRequest";
41
- readonly returnType: "ListMailboxesResponse";
38
+ readonly methodName: 'listMailboxes';
39
+ readonly protoName: 'ListMailboxes';
40
+ readonly paramsType: 'ListMailboxesRequest';
41
+ readonly returnType: 'ListMailboxesResponse';
42
42
  readonly isList: true;
43
- readonly paginationType: "offset";
44
- readonly pageParamKey: "page";
45
- readonly listItemType: "Mailbox";
43
+ readonly paginationType: 'offset';
44
+ readonly pageParamKey: 'page';
45
+ readonly listItemType: 'Mailbox';
46
46
  readonly isPrivate: false;
47
- readonly description: "\"";
47
+ readonly description: '"';
48
48
  }, {
49
- readonly methodName: "getMailbox";
50
- readonly protoName: "GetMailbox";
51
- readonly paramsType: "GetMailboxRequest";
52
- readonly returnType: "Mailbox";
49
+ readonly methodName: 'getMailbox';
50
+ readonly protoName: 'GetMailbox';
51
+ readonly paramsType: 'GetMailboxRequest';
52
+ readonly returnType: 'Mailbox';
53
53
  readonly isList: false;
54
- readonly paginationType: "none";
54
+ readonly paginationType: 'none';
55
55
  readonly isPrivate: false;
56
- readonly description: "\"";
56
+ readonly description: '"';
57
57
  readonly hasWaiter: true;
58
58
  }];
59
59
  }];
@@ -135,10 +135,6 @@ export interface Domain {
135
135
  * URL of the domain's IMAP service.
136
136
  */
137
137
  imapUrl: string;
138
- /**
139
- * URL of the domain's JMAP service.
140
- */
141
- jmapUrl: string;
142
138
  /**
143
139
  * URL of the domain's POP3 service.
144
140
  */
@@ -229,10 +225,6 @@ export interface GetDomainRecordsResponse {
229
225
  * Record that allows accessing the mailbox with the IMAP protocol.
230
226
  */
231
227
  imap?: DomainRecord;
232
- /**
233
- * Record that allows accessing the mailbox with the JMAP protocol.
234
- */
235
- jmap?: DomainRecord;
236
228
  /**
237
229
  * Record that directs emails to a mail server.
238
230
  */
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mailbox",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Scaleway SDK mailbox",
5
5
  "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "directory": "packages_generated/mailbox"
9
+ },
6
10
  "files": [
7
11
  "dist",
8
12
  "README.md"
@@ -26,25 +30,20 @@
26
30
  "default": "./dist/*/metadata.gen.js"
27
31
  }
28
32
  },
29
- "repository": {
30
- "type": "git",
31
- "directory": "packages_generated/mailbox"
32
- },
33
- "engines": {
34
- "node": ">=20.18.3"
35
- },
36
33
  "dependencies": {
37
34
  "@scaleway/random-name": "5.1.4",
38
- "@scaleway/sdk-std": "2.4.0"
39
- },
40
- "peerDependencies": {
41
- "@repo/configs": "^0.1.1",
42
- "@scaleway/sdk-client": "^2.3.0"
35
+ "@scaleway/sdk-std": "2.4.2"
43
36
  },
44
37
  "devDependencies": {
45
- "@scaleway/sdk-client": "^2.3.0",
38
+ "@scaleway/sdk-client": "^2.4.0",
46
39
  "@repo/configs": "^0.1.1"
47
40
  },
41
+ "peerDependencies": {
42
+ "@scaleway/sdk-client": "^2.4.0"
43
+ },
44
+ "engines": {
45
+ "node": ">=20.20.2"
46
+ },
48
47
  "scripts": {
49
48
  "package:check": "pnpm publint",
50
49
  "typecheck": "tsgo --noEmit",