@scaleway/sdk-mailbox 1.18.2 → 1.19.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.
@@ -14,7 +14,10 @@ var API$1 = class extends API {
14
14
  super(..._args);
15
15
  this.createDomain = (request, options) => this.client.fetch({
16
16
  body: JSON.stringify(marshalCreateDomainRequest(request, this.client.settings)),
17
- headers: jsonContentHeaders,
17
+ headers: {
18
+ ...jsonContentHeaders,
19
+ ...options?.headers
20
+ },
18
21
  method: "POST",
19
22
  path: `/mailbox/v1alpha1/domains`,
20
23
  signal: options?.signal
@@ -44,14 +47,20 @@ var API$1 = class extends API {
44
47
  }, unmarshalGetDomainRecordsResponse);
45
48
  this.validateDomainRecords = (request, options) => this.client.fetch({
46
49
  body: "{}",
47
- headers: jsonContentHeaders,
50
+ headers: {
51
+ ...jsonContentHeaders,
52
+ ...options?.headers
53
+ },
48
54
  method: "POST",
49
55
  path: `/mailbox/v1alpha1/domains/${validatePathParam("domainId", request.domainId)}/validate-records`,
50
56
  signal: options?.signal
51
57
  });
52
58
  this.batchCreateMailboxes = (request, options) => this.client.fetch({
53
59
  body: JSON.stringify(marshalBatchCreateMailboxesRequest(request, this.client.settings)),
54
- headers: jsonContentHeaders,
60
+ headers: {
61
+ ...jsonContentHeaders,
62
+ ...options?.headers
63
+ },
55
64
  method: "POST",
56
65
  path: `/mailbox/v1alpha1/batch-create-mailboxes`,
57
66
  signal: options?.signal
@@ -71,7 +80,10 @@ var API$1 = class extends API {
71
80
  this.waitForMailbox = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!MAILBOX_TRANSIENT_STATUSES.includes(res.status))), this.getMailbox, request, options);
72
81
  this.updateMailbox = (request, options) => this.client.fetch({
73
82
  body: JSON.stringify(marshalUpdateMailboxRequest(request, this.client.settings)),
74
- headers: jsonContentHeaders,
83
+ headers: {
84
+ ...jsonContentHeaders,
85
+ ...options?.headers
86
+ },
75
87
  method: "PATCH",
76
88
  path: `/mailbox/v1alpha1/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}`,
77
89
  signal: options?.signal
@@ -83,14 +95,20 @@ var API$1 = class extends API {
83
95
  }, unmarshalMailbox);
84
96
  this.restoreMailbox = (request, options) => this.client.fetch({
85
97
  body: "{}",
86
- headers: jsonContentHeaders,
98
+ headers: {
99
+ ...jsonContentHeaders,
100
+ ...options?.headers
101
+ },
87
102
  method: "POST",
88
103
  path: `/mailbox/v1alpha1/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}/restore`,
89
104
  signal: options?.signal
90
105
  }, unmarshalMailbox);
91
106
  this.createAlias = (request, options) => this.client.fetch({
92
107
  body: JSON.stringify(marshalCreateAliasRequest(request, this.client.settings)),
93
- headers: jsonContentHeaders,
108
+ headers: {
109
+ ...jsonContentHeaders,
110
+ ...options?.headers
111
+ },
94
112
  method: "POST",
95
113
  path: `/mailbox/v1alpha1/aliases`,
96
114
  signal: options?.signal
@@ -110,7 +128,10 @@ var API$1 = class extends API {
110
128
  this.waitForAlias = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!ALIAS_TRANSIENT_STATUSES.includes(res.status))), this.getAlias, request, options);
111
129
  this.updateAlias = (request, options) => this.client.fetch({
112
130
  body: JSON.stringify(marshalUpdateAliasRequest(request, this.client.settings)),
113
- headers: jsonContentHeaders,
131
+ headers: {
132
+ ...jsonContentHeaders,
133
+ ...options?.headers
134
+ },
114
135
  method: "PATCH",
115
136
  path: `/mailbox/v1alpha1/aliases/${validatePathParam("aliasId", request.aliasId)}`,
116
137
  signal: options?.signal
@@ -122,7 +143,10 @@ var API$1 = class extends API {
122
143
  }, unmarshalAlias);
123
144
  this.createForwarding = (request, options) => this.client.fetch({
124
145
  body: JSON.stringify(marshalCreateForwardingRequest(request, this.client.settings)),
125
- headers: jsonContentHeaders,
146
+ headers: {
147
+ ...jsonContentHeaders,
148
+ ...options?.headers
149
+ },
126
150
  method: "POST",
127
151
  path: `/mailbox/v1alpha1/forwardings`,
128
152
  signal: options?.signal
@@ -150,7 +174,10 @@ var API$1 = class extends API {
150
174
  this.waitForForwarding = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!FORWARDING_TRANSIENT_STATUSES.includes(res.status))), this.getForwarding, request, options);
151
175
  this.updateForwarding = (request, options) => this.client.fetch({
152
176
  body: JSON.stringify(marshalUpdateForwardingRequest(request, this.client.settings)),
153
- headers: jsonContentHeaders,
177
+ headers: {
178
+ ...jsonContentHeaders,
179
+ ...options?.headers
180
+ },
154
181
  method: "PATCH",
155
182
  path: `/mailbox/v1alpha1/forwardings/${validatePathParam("forwardingId", request.forwardingId)}`,
156
183
  signal: options?.signal
@@ -167,7 +194,10 @@ var API$1 = class extends API {
167
194
  }, unmarshalMailboxForwarding);
168
195
  this.updateMailboxForwarding = (request, options) => this.client.fetch({
169
196
  body: JSON.stringify(marshalUpdateMailboxForwardingRequest(request, this.client.settings)),
170
- headers: jsonContentHeaders,
197
+ headers: {
198
+ ...jsonContentHeaders,
199
+ ...options?.headers
200
+ },
171
201
  method: "PATCH",
172
202
  path: `/mailbox/v1alpha1/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}/forwarding`,
173
203
  signal: options?.signal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mailbox",
3
- "version": "1.18.2",
3
+ "version": "1.19.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.9.4"
36
+ "@scaleway/sdk-std": "2.9.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.15.0"
40
+ "@scaleway/sdk-client": "^2.16.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.15.0"
43
+ "@scaleway/sdk-client": "^2.16.0"
44
44
  },
45
45
  "scripts": {
46
46
  "package:check": "pnpm publint",