@scaleway/sdk 2.41.0 → 2.43.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/api/applesilicon/v1alpha1/marshalling.gen.cjs +5 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +5 -1
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +14 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +4 -3
- package/dist/api/block/v1alpha1/api.gen.d.ts +4 -3
- package/dist/api/block/v1alpha1/api.gen.js +4 -3
- package/dist/api/container/v1beta1/marshalling.gen.cjs +3 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +3 -0
- package/dist/api/container/v1beta1/types.gen.d.ts +6 -0
- package/dist/api/domain/v2beta1/types.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +2 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +2 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +4 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +5 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +6 -0
- package/dist/api/instance/v1/types.gen.d.ts +2 -1
- package/dist/api/k8s/v1/api.gen.cjs +32 -0
- package/dist/api/k8s/v1/api.gen.d.ts +19 -1
- package/dist/api/k8s/v1/api.gen.js +33 -1
- package/dist/api/k8s/v1/index.gen.d.ts +1 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +53 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/k8s/v1/marshalling.gen.js +53 -0
- package/dist/api/k8s/v1/types.gen.d.ts +48 -0
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +7 -7
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
- package/dist/api/tem/v1alpha1/api.gen.cjs +60 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +45 -1
- package/dist/api/tem/v1alpha1/api.gen.js +61 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +10 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +30 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +8 -5
- package/dist/api/vpcgw/v1/api.gen.d.ts +5 -4
- package/dist/api/vpcgw/v1/api.gen.js +9 -6
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +4 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +4 -0
- package/dist/api/vpcgw/v1/types.gen.d.ts +2 -0
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +91 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +47 -1
- package/dist/api/webhosting/v1alpha1/api.gen.js +93 -2
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +1 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +2 -2
- package/dist/api/webhosting/v1alpha1/index.gen.js +2 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +48 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +5 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +48 -0
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +84 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -32,6 +32,16 @@ const CreateEmailRequestHeader = {
|
|
|
32
32
|
minLength: 1
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
+
const CreateWebhookRequest = {
|
|
36
|
+
name: {
|
|
37
|
+
maxLength: 127,
|
|
38
|
+
minLength: 3
|
|
39
|
+
},
|
|
40
|
+
snsArn: {
|
|
41
|
+
maxLength: 127,
|
|
42
|
+
minLength: 3
|
|
43
|
+
}
|
|
44
|
+
};
|
|
35
45
|
const ListDomainsRequest = {
|
|
36
46
|
page: {
|
|
37
47
|
greaterThan: 0
|
|
@@ -90,6 +100,7 @@ exports.CreateEmailRequest = CreateEmailRequest;
|
|
|
90
100
|
exports.CreateEmailRequestAddress = CreateEmailRequestAddress;
|
|
91
101
|
exports.CreateEmailRequestAttachment = CreateEmailRequestAttachment;
|
|
92
102
|
exports.CreateEmailRequestHeader = CreateEmailRequestHeader;
|
|
103
|
+
exports.CreateWebhookRequest = CreateWebhookRequest;
|
|
93
104
|
exports.ListDomainsRequest = ListDomainsRequest;
|
|
94
105
|
exports.ListEmailsRequest = ListEmailsRequest;
|
|
95
106
|
exports.ListWebhookEventsRequest = ListWebhookEventsRequest;
|
|
@@ -30,6 +30,16 @@ export declare const CreateEmailRequestHeader: {
|
|
|
30
30
|
minLength: number;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
export declare const CreateWebhookRequest: {
|
|
34
|
+
name: {
|
|
35
|
+
maxLength: number;
|
|
36
|
+
minLength: number;
|
|
37
|
+
};
|
|
38
|
+
snsArn: {
|
|
39
|
+
maxLength: number;
|
|
40
|
+
minLength: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
33
43
|
export declare const ListDomainsRequest: {
|
|
34
44
|
page: {
|
|
35
45
|
greaterThan: number;
|
|
@@ -30,6 +30,16 @@ const CreateEmailRequestHeader = {
|
|
|
30
30
|
minLength: 1
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
const CreateWebhookRequest = {
|
|
34
|
+
name: {
|
|
35
|
+
maxLength: 127,
|
|
36
|
+
minLength: 3
|
|
37
|
+
},
|
|
38
|
+
snsArn: {
|
|
39
|
+
maxLength: 127,
|
|
40
|
+
minLength: 3
|
|
41
|
+
}
|
|
42
|
+
};
|
|
33
43
|
const ListDomainsRequest = {
|
|
34
44
|
page: {
|
|
35
45
|
greaterThan: 0
|
|
@@ -89,6 +99,7 @@ export {
|
|
|
89
99
|
CreateEmailRequestAddress,
|
|
90
100
|
CreateEmailRequestAttachment,
|
|
91
101
|
CreateEmailRequestHeader,
|
|
102
|
+
CreateWebhookRequest,
|
|
92
103
|
ListDomainsRequest,
|
|
93
104
|
ListEmailsRequest,
|
|
94
105
|
ListWebhookEventsRequest,
|
|
@@ -131,17 +131,20 @@ class API extends api.API {
|
|
|
131
131
|
urlParams: marshalling.urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
132
132
|
});
|
|
133
133
|
/**
|
|
134
|
-
* Upgrade a Public Gateway to the latest version
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
134
|
+
* Upgrade a Public Gateway to the latest version and/or to a different
|
|
135
|
+
* commercial offer type. Upgrade a given Public Gateway to the newest
|
|
136
|
+
* software version or to a different commercial offer type. This applies the
|
|
137
|
+
* latest bugfixes and features to your Public Gateway. Note that gateway
|
|
138
|
+
* service will be interrupted during the update.
|
|
138
139
|
*
|
|
139
140
|
* @param request - The request {@link UpgradeGatewayRequest}
|
|
140
141
|
* @returns A Promise of Gateway
|
|
141
142
|
*/
|
|
142
143
|
upgradeGateway = (request) => this.client.fetch(
|
|
143
144
|
{
|
|
144
|
-
body:
|
|
145
|
+
body: JSON.stringify(
|
|
146
|
+
marshalling_gen.marshalUpgradeGatewayRequest(request, this.client.settings)
|
|
147
|
+
),
|
|
145
148
|
headers: jsonContentHeaders,
|
|
146
149
|
method: "POST",
|
|
147
150
|
path: `/vpc-gw/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}/upgrade`
|
|
@@ -65,10 +65,11 @@ export declare class API extends ParentAPI {
|
|
|
65
65
|
*/
|
|
66
66
|
deleteGateway: (request: Readonly<DeleteGatewayRequest>) => Promise<void>;
|
|
67
67
|
/**
|
|
68
|
-
* Upgrade a Public Gateway to the latest version
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
68
|
+
* Upgrade a Public Gateway to the latest version and/or to a different
|
|
69
|
+
* commercial offer type. Upgrade a given Public Gateway to the newest
|
|
70
|
+
* software version or to a different commercial offer type. This applies the
|
|
71
|
+
* latest bugfixes and features to your Public Gateway. Note that gateway
|
|
72
|
+
* service will be interrupted during the update.
|
|
72
73
|
*
|
|
73
74
|
* @param request - The request {@link UpgradeGatewayRequest}
|
|
74
75
|
* @returns A Promise of Gateway
|
|
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { GATEWAY_TRANSIENT_STATUSES, GATEWAY_NETWORK_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { unmarshalListGatewaysResponse, unmarshalGateway, marshalCreateGatewayRequest, marshalUpdateGatewayRequest, unmarshalListGatewayNetworksResponse, unmarshalGatewayNetwork, marshalCreateGatewayNetworkRequest, marshalUpdateGatewayNetworkRequest, unmarshalListDHCPsResponse, unmarshalDHCP, marshalCreateDHCPRequest, marshalUpdateDHCPRequest, unmarshalListDHCPEntriesResponse, unmarshalDHCPEntry, marshalCreateDHCPEntryRequest, marshalUpdateDHCPEntryRequest, marshalSetDHCPEntriesRequest, unmarshalSetDHCPEntriesResponse, unmarshalListPATRulesResponse, unmarshalPATRule, marshalCreatePATRuleRequest, marshalUpdatePATRuleRequest, marshalSetPATRulesRequest, unmarshalSetPATRulesResponse, unmarshalListGatewayTypesResponse, unmarshalListIPsResponse, unmarshalIP, marshalCreateIPRequest, marshalUpdateIPRequest } from "./marshalling.gen.js";
|
|
7
|
+
import { unmarshalListGatewaysResponse, unmarshalGateway, marshalCreateGatewayRequest, marshalUpdateGatewayRequest, marshalUpgradeGatewayRequest, unmarshalListGatewayNetworksResponse, unmarshalGatewayNetwork, marshalCreateGatewayNetworkRequest, marshalUpdateGatewayNetworkRequest, unmarshalListDHCPsResponse, unmarshalDHCP, marshalCreateDHCPRequest, marshalUpdateDHCPRequest, unmarshalListDHCPEntriesResponse, unmarshalDHCPEntry, marshalCreateDHCPEntryRequest, marshalUpdateDHCPEntryRequest, marshalSetDHCPEntriesRequest, unmarshalSetDHCPEntriesResponse, unmarshalListPATRulesResponse, unmarshalPATRule, marshalCreatePATRuleRequest, marshalUpdatePATRuleRequest, marshalSetPATRulesRequest, unmarshalSetPATRulesResponse, unmarshalListGatewayTypesResponse, unmarshalListIPsResponse, unmarshalIP, marshalCreateIPRequest, marshalUpdateIPRequest } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
@@ -129,17 +129,20 @@ class API extends API$1 {
|
|
|
129
129
|
urlParams: urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
130
130
|
});
|
|
131
131
|
/**
|
|
132
|
-
* Upgrade a Public Gateway to the latest version
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
132
|
+
* Upgrade a Public Gateway to the latest version and/or to a different
|
|
133
|
+
* commercial offer type. Upgrade a given Public Gateway to the newest
|
|
134
|
+
* software version or to a different commercial offer type. This applies the
|
|
135
|
+
* latest bugfixes and features to your Public Gateway. Note that gateway
|
|
136
|
+
* service will be interrupted during the update.
|
|
136
137
|
*
|
|
137
138
|
* @param request - The request {@link UpgradeGatewayRequest}
|
|
138
139
|
* @returns A Promise of Gateway
|
|
139
140
|
*/
|
|
140
141
|
upgradeGateway = (request) => this.client.fetch(
|
|
141
142
|
{
|
|
142
|
-
body:
|
|
143
|
+
body: JSON.stringify(
|
|
144
|
+
marshalUpgradeGatewayRequest(request, this.client.settings)
|
|
145
|
+
),
|
|
143
146
|
headers: jsonContentHeaders,
|
|
144
147
|
method: "POST",
|
|
145
148
|
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/upgrade`
|
|
@@ -407,6 +407,9 @@ const marshalUpdatePATRuleRequest = (request, defaults) => ({
|
|
|
407
407
|
protocol: request.protocol,
|
|
408
408
|
public_port: request.publicPort
|
|
409
409
|
});
|
|
410
|
+
const marshalUpgradeGatewayRequest = (request, defaults) => ({
|
|
411
|
+
type: request.type
|
|
412
|
+
});
|
|
410
413
|
exports.marshalCreateDHCPEntryRequest = marshalCreateDHCPEntryRequest;
|
|
411
414
|
exports.marshalCreateDHCPRequest = marshalCreateDHCPRequest;
|
|
412
415
|
exports.marshalCreateGatewayNetworkRequest = marshalCreateGatewayNetworkRequest;
|
|
@@ -421,6 +424,7 @@ exports.marshalUpdateGatewayNetworkRequest = marshalUpdateGatewayNetworkRequest;
|
|
|
421
424
|
exports.marshalUpdateGatewayRequest = marshalUpdateGatewayRequest;
|
|
422
425
|
exports.marshalUpdateIPRequest = marshalUpdateIPRequest;
|
|
423
426
|
exports.marshalUpdatePATRuleRequest = marshalUpdatePATRuleRequest;
|
|
427
|
+
exports.marshalUpgradeGatewayRequest = marshalUpgradeGatewayRequest;
|
|
424
428
|
exports.unmarshalDHCP = unmarshalDHCP;
|
|
425
429
|
exports.unmarshalDHCPEntry = unmarshalDHCPEntry;
|
|
426
430
|
exports.unmarshalGateway = unmarshalGateway;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, Gateway, GatewayNetwork, IP, ListDHCPEntriesResponse, ListDHCPsResponse, ListGatewayNetworksResponse, ListGatewayTypesResponse, ListGatewaysResponse, ListIPsResponse, ListPATRulesResponse, PATRule, SetDHCPEntriesRequest, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest } from './types.gen';
|
|
2
|
+
import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, Gateway, GatewayNetwork, IP, ListDHCPEntriesResponse, ListDHCPsResponse, ListGatewayNetworksResponse, ListGatewayTypesResponse, ListGatewaysResponse, ListIPsResponse, ListPATRulesResponse, PATRule, SetDHCPEntriesRequest, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest } from './types.gen';
|
|
3
3
|
export declare const unmarshalDHCP: (data: unknown) => DHCP;
|
|
4
4
|
export declare const unmarshalGatewayNetwork: (data: unknown) => GatewayNetwork;
|
|
5
5
|
export declare const unmarshalIP: (data: unknown) => IP;
|
|
@@ -29,3 +29,4 @@ export declare const marshalUpdateGatewayNetworkRequest: (request: UpdateGateway
|
|
|
29
29
|
export declare const marshalUpdateGatewayRequest: (request: UpdateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
30
30
|
export declare const marshalUpdateIPRequest: (request: UpdateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
31
31
|
export declare const marshalUpdatePATRuleRequest: (request: UpdatePATRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
32
|
+
export declare const marshalUpgradeGatewayRequest: (request: UpgradeGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -405,6 +405,9 @@ const marshalUpdatePATRuleRequest = (request, defaults) => ({
|
|
|
405
405
|
protocol: request.protocol,
|
|
406
406
|
public_port: request.publicPort
|
|
407
407
|
});
|
|
408
|
+
const marshalUpgradeGatewayRequest = (request, defaults) => ({
|
|
409
|
+
type: request.type
|
|
410
|
+
});
|
|
408
411
|
export {
|
|
409
412
|
marshalCreateDHCPEntryRequest,
|
|
410
413
|
marshalCreateDHCPRequest,
|
|
@@ -420,6 +423,7 @@ export {
|
|
|
420
423
|
marshalUpdateGatewayRequest,
|
|
421
424
|
marshalUpdateIPRequest,
|
|
422
425
|
marshalUpdatePATRuleRequest,
|
|
426
|
+
marshalUpgradeGatewayRequest,
|
|
423
427
|
unmarshalDHCP,
|
|
424
428
|
unmarshalDHCPEntry,
|
|
425
429
|
unmarshalGateway,
|
|
@@ -241,4 +241,95 @@ class API extends api.API {
|
|
|
241
241
|
marshalling_gen.unmarshalResetHostingPasswordResponse
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
+
class ClassicMailAPI extends api.API {
|
|
245
|
+
/** Lists the available regions of the API. */
|
|
246
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
247
|
+
/**
|
|
248
|
+
* Create a new mailbox within your hosting plan.. Create a new mailbox within
|
|
249
|
+
* your hosting plan.
|
|
250
|
+
*
|
|
251
|
+
* @param request - The request {@link ClassicMailApiCreateMailboxRequest}
|
|
252
|
+
* @returns A Promise of Mailbox
|
|
253
|
+
*/
|
|
254
|
+
createMailbox = (request) => this.client.fetch(
|
|
255
|
+
{
|
|
256
|
+
body: JSON.stringify(
|
|
257
|
+
marshalling_gen.marshalClassicMailApiCreateMailboxRequest(
|
|
258
|
+
request,
|
|
259
|
+
this.client.settings
|
|
260
|
+
)
|
|
261
|
+
),
|
|
262
|
+
headers: jsonContentHeaders,
|
|
263
|
+
method: "POST",
|
|
264
|
+
path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes`
|
|
265
|
+
},
|
|
266
|
+
marshalling_gen.unmarshalMailbox
|
|
267
|
+
);
|
|
268
|
+
/**
|
|
269
|
+
* Get a mailbox by id within your hosting plan.. Get a mailbox by id within
|
|
270
|
+
* your hosting plan.
|
|
271
|
+
*
|
|
272
|
+
* @param request - The request {@link ClassicMailApiGetMailboxRequest}
|
|
273
|
+
* @returns A Promise of Mailbox
|
|
274
|
+
*/
|
|
275
|
+
getMailbox = (request) => this.client.fetch(
|
|
276
|
+
{
|
|
277
|
+
method: "GET",
|
|
278
|
+
path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
|
|
279
|
+
},
|
|
280
|
+
marshalling_gen.unmarshalMailbox
|
|
281
|
+
);
|
|
282
|
+
pageOfListMailboxes = (request) => this.client.fetch(
|
|
283
|
+
{
|
|
284
|
+
method: "GET",
|
|
285
|
+
path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes`,
|
|
286
|
+
urlParams: marshalling.urlParams(
|
|
287
|
+
["domain", request.domain],
|
|
288
|
+
["page", request.page],
|
|
289
|
+
[
|
|
290
|
+
"page_size",
|
|
291
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
292
|
+
]
|
|
293
|
+
)
|
|
294
|
+
},
|
|
295
|
+
marshalling_gen.unmarshalListMailboxesResponse
|
|
296
|
+
);
|
|
297
|
+
/**
|
|
298
|
+
* List all mailboxes within your hosting plan.. List all mailboxes within
|
|
299
|
+
* your hosting plan.
|
|
300
|
+
*
|
|
301
|
+
* @param request - The request {@link ClassicMailApiListMailboxesRequest}
|
|
302
|
+
* @returns A Promise of ListMailboxesResponse
|
|
303
|
+
*/
|
|
304
|
+
listMailboxes = (request) => resourcePaginator.enrichForPagination("mailboxes", this.pageOfListMailboxes, request);
|
|
305
|
+
deleteMailbox = (request) => this.client.fetch(
|
|
306
|
+
{
|
|
307
|
+
method: "DELETE",
|
|
308
|
+
path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
|
|
309
|
+
},
|
|
310
|
+
marshalling_gen.unmarshalMailbox
|
|
311
|
+
);
|
|
312
|
+
/**
|
|
313
|
+
* Update the mailbox within your hosting plan.. Update the mailbox within
|
|
314
|
+
* your hosting plan.
|
|
315
|
+
*
|
|
316
|
+
* @param request - The request {@link ClassicMailApiUpdateMailboxRequest}
|
|
317
|
+
* @returns A Promise of Mailbox
|
|
318
|
+
*/
|
|
319
|
+
updateMailbox = (request) => this.client.fetch(
|
|
320
|
+
{
|
|
321
|
+
body: JSON.stringify(
|
|
322
|
+
marshalling_gen.marshalClassicMailApiUpdateMailboxRequest(
|
|
323
|
+
request,
|
|
324
|
+
this.client.settings
|
|
325
|
+
)
|
|
326
|
+
),
|
|
327
|
+
headers: jsonContentHeaders,
|
|
328
|
+
method: "PATCH",
|
|
329
|
+
path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
|
|
330
|
+
},
|
|
331
|
+
marshalling_gen.unmarshalMailbox
|
|
332
|
+
);
|
|
333
|
+
}
|
|
244
334
|
exports.API = API;
|
|
335
|
+
exports.ClassicMailAPI = ClassicMailAPI;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, CreateHostingRequest, CreateSessionRequest, DeleteHostingRequest, DnsRecords, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsResponse, ListOffersRequest, ListOffersResponse, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest } from './types.gen';
|
|
3
|
+
import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiDeleteMailboxRequest, ClassicMailApiGetMailboxRequest, ClassicMailApiListMailboxesRequest, ClassicMailApiUpdateMailboxRequest, CreateHostingRequest, CreateSessionRequest, DeleteHostingRequest, DnsRecords, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsResponse, ListMailboxesResponse, ListOffersRequest, ListOffersResponse, Mailbox, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Web Hosting API.
|
|
6
6
|
*
|
|
@@ -120,3 +120,49 @@ export declare class API extends ParentAPI {
|
|
|
120
120
|
createSession: (request: Readonly<CreateSessionRequest>) => Promise<Session>;
|
|
121
121
|
resetHostingPassword: (request: Readonly<ResetHostingPasswordRequest>) => Promise<ResetHostingPasswordResponse>;
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Web Hosting Classic Mailbox API.
|
|
125
|
+
*
|
|
126
|
+
* This API allows you to manage your mailboxes for your Web Hosting services.
|
|
127
|
+
*/
|
|
128
|
+
export declare class ClassicMailAPI extends ParentAPI {
|
|
129
|
+
/** Lists the available regions of the API. */
|
|
130
|
+
static readonly LOCALITIES: Region[];
|
|
131
|
+
/**
|
|
132
|
+
* Create a new mailbox within your hosting plan.. Create a new mailbox within
|
|
133
|
+
* your hosting plan.
|
|
134
|
+
*
|
|
135
|
+
* @param request - The request {@link ClassicMailApiCreateMailboxRequest}
|
|
136
|
+
* @returns A Promise of Mailbox
|
|
137
|
+
*/
|
|
138
|
+
createMailbox: (request: Readonly<ClassicMailApiCreateMailboxRequest>) => Promise<Mailbox>;
|
|
139
|
+
/**
|
|
140
|
+
* Get a mailbox by id within your hosting plan.. Get a mailbox by id within
|
|
141
|
+
* your hosting plan.
|
|
142
|
+
*
|
|
143
|
+
* @param request - The request {@link ClassicMailApiGetMailboxRequest}
|
|
144
|
+
* @returns A Promise of Mailbox
|
|
145
|
+
*/
|
|
146
|
+
getMailbox: (request: Readonly<ClassicMailApiGetMailboxRequest>) => Promise<Mailbox>;
|
|
147
|
+
protected pageOfListMailboxes: (request: Readonly<ClassicMailApiListMailboxesRequest>) => Promise<ListMailboxesResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* List all mailboxes within your hosting plan.. List all mailboxes within
|
|
150
|
+
* your hosting plan.
|
|
151
|
+
*
|
|
152
|
+
* @param request - The request {@link ClassicMailApiListMailboxesRequest}
|
|
153
|
+
* @returns A Promise of ListMailboxesResponse
|
|
154
|
+
*/
|
|
155
|
+
listMailboxes: (request: Readonly<ClassicMailApiListMailboxesRequest>) => Promise<ListMailboxesResponse> & {
|
|
156
|
+
all: () => Promise<Mailbox[]>;
|
|
157
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Mailbox[], void, void>;
|
|
158
|
+
};
|
|
159
|
+
deleteMailbox: (request: Readonly<ClassicMailApiDeleteMailboxRequest>) => Promise<Mailbox>;
|
|
160
|
+
/**
|
|
161
|
+
* Update the mailbox within your hosting plan.. Update the mailbox within
|
|
162
|
+
* your hosting plan.
|
|
163
|
+
*
|
|
164
|
+
* @param request - The request {@link ClassicMailApiUpdateMailboxRequest}
|
|
165
|
+
* @returns A Promise of Mailbox
|
|
166
|
+
*/
|
|
167
|
+
updateMailbox: (request: Readonly<ClassicMailApiUpdateMailboxRequest>) => Promise<Mailbox>;
|
|
168
|
+
}
|
|
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { marshalCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalUpdateHostingRequest, unmarshalDnsRecords, marshalCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalListOffersResponse, unmarshalListControlPanelsResponse, unmarshalSession, unmarshalResetHostingPasswordResponse } from "./marshalling.gen.js";
|
|
7
|
+
import { marshalCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalUpdateHostingRequest, unmarshalDnsRecords, marshalCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalListOffersResponse, unmarshalListControlPanelsResponse, unmarshalSession, unmarshalResetHostingPasswordResponse, marshalClassicMailApiCreateMailboxRequest, unmarshalMailbox, unmarshalListMailboxesResponse, marshalClassicMailApiUpdateMailboxRequest } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
@@ -239,6 +239,97 @@ class API extends API$1 {
|
|
|
239
239
|
unmarshalResetHostingPasswordResponse
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
|
+
class ClassicMailAPI extends API$1 {
|
|
243
|
+
/** Lists the available regions of the API. */
|
|
244
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
245
|
+
/**
|
|
246
|
+
* Create a new mailbox within your hosting plan.. Create a new mailbox within
|
|
247
|
+
* your hosting plan.
|
|
248
|
+
*
|
|
249
|
+
* @param request - The request {@link ClassicMailApiCreateMailboxRequest}
|
|
250
|
+
* @returns A Promise of Mailbox
|
|
251
|
+
*/
|
|
252
|
+
createMailbox = (request) => this.client.fetch(
|
|
253
|
+
{
|
|
254
|
+
body: JSON.stringify(
|
|
255
|
+
marshalClassicMailApiCreateMailboxRequest(
|
|
256
|
+
request,
|
|
257
|
+
this.client.settings
|
|
258
|
+
)
|
|
259
|
+
),
|
|
260
|
+
headers: jsonContentHeaders,
|
|
261
|
+
method: "POST",
|
|
262
|
+
path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${validatePathParam("onlineId", request.onlineId)}/mailboxes`
|
|
263
|
+
},
|
|
264
|
+
unmarshalMailbox
|
|
265
|
+
);
|
|
266
|
+
/**
|
|
267
|
+
* Get a mailbox by id within your hosting plan.. Get a mailbox by id within
|
|
268
|
+
* your hosting plan.
|
|
269
|
+
*
|
|
270
|
+
* @param request - The request {@link ClassicMailApiGetMailboxRequest}
|
|
271
|
+
* @returns A Promise of Mailbox
|
|
272
|
+
*/
|
|
273
|
+
getMailbox = (request) => this.client.fetch(
|
|
274
|
+
{
|
|
275
|
+
method: "GET",
|
|
276
|
+
path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${validatePathParam("onlineId", request.onlineId)}/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}`
|
|
277
|
+
},
|
|
278
|
+
unmarshalMailbox
|
|
279
|
+
);
|
|
280
|
+
pageOfListMailboxes = (request) => this.client.fetch(
|
|
281
|
+
{
|
|
282
|
+
method: "GET",
|
|
283
|
+
path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${validatePathParam("onlineId", request.onlineId)}/mailboxes`,
|
|
284
|
+
urlParams: urlParams(
|
|
285
|
+
["domain", request.domain],
|
|
286
|
+
["page", request.page],
|
|
287
|
+
[
|
|
288
|
+
"page_size",
|
|
289
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
290
|
+
]
|
|
291
|
+
)
|
|
292
|
+
},
|
|
293
|
+
unmarshalListMailboxesResponse
|
|
294
|
+
);
|
|
295
|
+
/**
|
|
296
|
+
* List all mailboxes within your hosting plan.. List all mailboxes within
|
|
297
|
+
* your hosting plan.
|
|
298
|
+
*
|
|
299
|
+
* @param request - The request {@link ClassicMailApiListMailboxesRequest}
|
|
300
|
+
* @returns A Promise of ListMailboxesResponse
|
|
301
|
+
*/
|
|
302
|
+
listMailboxes = (request) => enrichForPagination("mailboxes", this.pageOfListMailboxes, request);
|
|
303
|
+
deleteMailbox = (request) => this.client.fetch(
|
|
304
|
+
{
|
|
305
|
+
method: "DELETE",
|
|
306
|
+
path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${validatePathParam("onlineId", request.onlineId)}/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}`
|
|
307
|
+
},
|
|
308
|
+
unmarshalMailbox
|
|
309
|
+
);
|
|
310
|
+
/**
|
|
311
|
+
* Update the mailbox within your hosting plan.. Update the mailbox within
|
|
312
|
+
* your hosting plan.
|
|
313
|
+
*
|
|
314
|
+
* @param request - The request {@link ClassicMailApiUpdateMailboxRequest}
|
|
315
|
+
* @returns A Promise of Mailbox
|
|
316
|
+
*/
|
|
317
|
+
updateMailbox = (request) => this.client.fetch(
|
|
318
|
+
{
|
|
319
|
+
body: JSON.stringify(
|
|
320
|
+
marshalClassicMailApiUpdateMailboxRequest(
|
|
321
|
+
request,
|
|
322
|
+
this.client.settings
|
|
323
|
+
)
|
|
324
|
+
),
|
|
325
|
+
headers: jsonContentHeaders,
|
|
326
|
+
method: "PATCH",
|
|
327
|
+
path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${validatePathParam("onlineId", request.onlineId)}/mailboxes/${validatePathParam("mailboxId", request.mailboxId)}`
|
|
328
|
+
},
|
|
329
|
+
unmarshalMailbox
|
|
330
|
+
);
|
|
331
|
+
}
|
|
242
332
|
export {
|
|
243
|
-
API
|
|
333
|
+
API,
|
|
334
|
+
ClassicMailAPI
|
|
244
335
|
};
|
|
@@ -4,5 +4,6 @@ const api_gen = require("./api.gen.cjs");
|
|
|
4
4
|
const content_gen = require("./content.gen.cjs");
|
|
5
5
|
const validationRules_gen = require("./validation-rules.gen.cjs");
|
|
6
6
|
exports.API = api_gen.API;
|
|
7
|
+
exports.ClassicMailAPI = api_gen.ClassicMailAPI;
|
|
7
8
|
exports.HOSTING_TRANSIENT_STATUSES = content_gen.HOSTING_TRANSIENT_STATUSES;
|
|
8
9
|
exports.ValidationRules = validationRules_gen;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
1
|
+
export { API, ClassicMailAPI } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ControlPanel, CreateHostingRequest, CreateHostingRequestDomainConfiguration, CreateSessionRequest, DeleteHostingRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, HostingCpanelUrls, HostingDnsStatus, HostingOption, HostingStatus, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsRequestOrderBy, ListHostingsResponse, ListOffersRequest, ListOffersRequestOrderBy, ListOffersResponse, Nameserver, NameserverStatus, Offer, OfferProduct, OfferQuotaWarning, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest, } from './types.gen';
|
|
3
|
+
export type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiDeleteMailboxRequest, ClassicMailApiGetMailboxRequest, ClassicMailApiListMailboxesRequest, ClassicMailApiUpdateMailboxRequest, ControlPanel, CreateHostingRequest, CreateHostingRequestDomainConfiguration, CreateSessionRequest, DeleteHostingRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, EmailAddress, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, HostingCpanelUrls, HostingDnsStatus, HostingOption, HostingStatus, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailboxesResponse, ListOffersRequest, ListOffersRequestOrderBy, ListOffersResponse, Mailbox, Nameserver, NameserverStatus, Offer, OfferProduct, OfferQuotaWarning, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { API } from "./api.gen.js";
|
|
1
|
+
import { API, ClassicMailAPI } from "./api.gen.js";
|
|
2
2
|
import { HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
4
4
|
export {
|
|
5
5
|
API,
|
|
6
|
+
ClassicMailAPI,
|
|
6
7
|
HOSTING_TRANSIENT_STATUSES,
|
|
7
8
|
validationRules_gen as ValidationRules
|
|
8
9
|
};
|
|
@@ -58,6 +58,28 @@ const unmarshalHosting = (data) => {
|
|
|
58
58
|
username: data.username
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
const unmarshalEmailAddress = (data) => {
|
|
62
|
+
if (!json.isJSONObject(data)) {
|
|
63
|
+
throw new TypeError(
|
|
64
|
+
`Unmarshalling the type 'EmailAddress' failed as data isn't a dictionary.`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
domain: data.domain,
|
|
69
|
+
login: data.login
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
const unmarshalMailbox = (data) => {
|
|
73
|
+
if (!json.isJSONObject(data)) {
|
|
74
|
+
throw new TypeError(
|
|
75
|
+
`Unmarshalling the type 'Mailbox' failed as data isn't a dictionary.`
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
email: data.email ? unmarshalEmailAddress(data.email) : void 0,
|
|
80
|
+
mailboxId: data.mailbox_id
|
|
81
|
+
};
|
|
82
|
+
};
|
|
61
83
|
const unmarshalCheckUserOwnsDomainResponse = (data) => {
|
|
62
84
|
if (!json.isJSONObject(data)) {
|
|
63
85
|
throw new TypeError(
|
|
@@ -145,6 +167,17 @@ const unmarshalListHostingsResponse = (data) => {
|
|
|
145
167
|
totalCount: data.total_count
|
|
146
168
|
};
|
|
147
169
|
};
|
|
170
|
+
const unmarshalListMailboxesResponse = (data) => {
|
|
171
|
+
if (!json.isJSONObject(data)) {
|
|
172
|
+
throw new TypeError(
|
|
173
|
+
`Unmarshalling the type 'ListMailboxesResponse' failed as data isn't a dictionary.`
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
mailboxes: marshalling.unmarshalArrayOfObject(data.mailboxes, unmarshalMailbox),
|
|
178
|
+
totalCount: data.total_count
|
|
179
|
+
};
|
|
180
|
+
};
|
|
148
181
|
const unmarshalOfferProduct = (data) => {
|
|
149
182
|
if (!json.isJSONObject(data)) {
|
|
150
183
|
throw new TypeError(
|
|
@@ -214,6 +247,17 @@ const unmarshalSession = (data) => {
|
|
|
214
247
|
const marshalCheckUserOwnsDomainRequest = (request, defaults) => ({
|
|
215
248
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
216
249
|
});
|
|
250
|
+
const marshalEmailAddress = (request, defaults) => ({
|
|
251
|
+
domain: request.domain,
|
|
252
|
+
login: request.login
|
|
253
|
+
});
|
|
254
|
+
const marshalClassicMailApiCreateMailboxRequest = (request, defaults) => ({
|
|
255
|
+
email: request.email !== void 0 ? marshalEmailAddress(request.email) : void 0,
|
|
256
|
+
password: request.password
|
|
257
|
+
});
|
|
258
|
+
const marshalClassicMailApiUpdateMailboxRequest = (request, defaults) => ({
|
|
259
|
+
password: request.password
|
|
260
|
+
});
|
|
217
261
|
const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
|
|
218
262
|
update_all_records: request.updateAllRecords,
|
|
219
263
|
update_mail_record: request.updateMailRecord,
|
|
@@ -240,6 +284,8 @@ const marshalUpdateHostingRequest = (request, defaults) => ({
|
|
|
240
284
|
tags: request.tags
|
|
241
285
|
});
|
|
242
286
|
exports.marshalCheckUserOwnsDomainRequest = marshalCheckUserOwnsDomainRequest;
|
|
287
|
+
exports.marshalClassicMailApiCreateMailboxRequest = marshalClassicMailApiCreateMailboxRequest;
|
|
288
|
+
exports.marshalClassicMailApiUpdateMailboxRequest = marshalClassicMailApiUpdateMailboxRequest;
|
|
243
289
|
exports.marshalCreateHostingRequest = marshalCreateHostingRequest;
|
|
244
290
|
exports.marshalUpdateHostingRequest = marshalUpdateHostingRequest;
|
|
245
291
|
exports.unmarshalCheckUserOwnsDomainResponse = unmarshalCheckUserOwnsDomainResponse;
|
|
@@ -247,6 +293,8 @@ exports.unmarshalDnsRecords = unmarshalDnsRecords;
|
|
|
247
293
|
exports.unmarshalHosting = unmarshalHosting;
|
|
248
294
|
exports.unmarshalListControlPanelsResponse = unmarshalListControlPanelsResponse;
|
|
249
295
|
exports.unmarshalListHostingsResponse = unmarshalListHostingsResponse;
|
|
296
|
+
exports.unmarshalListMailboxesResponse = unmarshalListMailboxesResponse;
|
|
250
297
|
exports.unmarshalListOffersResponse = unmarshalListOffersResponse;
|
|
298
|
+
exports.unmarshalMailbox = unmarshalMailbox;
|
|
251
299
|
exports.unmarshalResetHostingPasswordResponse = unmarshalResetHostingPasswordResponse;
|
|
252
300
|
exports.unmarshalSession = unmarshalSession;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, CreateHostingRequest, DnsRecords, Hosting, ListControlPanelsResponse, ListHostingsResponse, ListOffersResponse, ResetHostingPasswordResponse, Session, UpdateHostingRequest } from './types.gen';
|
|
2
|
+
import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiUpdateMailboxRequest, CreateHostingRequest, DnsRecords, Hosting, ListControlPanelsResponse, ListHostingsResponse, ListMailboxesResponse, ListOffersResponse, Mailbox, ResetHostingPasswordResponse, Session, UpdateHostingRequest } from './types.gen';
|
|
3
3
|
export declare const unmarshalHosting: (data: unknown) => Hosting;
|
|
4
|
+
export declare const unmarshalMailbox: (data: unknown) => Mailbox;
|
|
4
5
|
export declare const unmarshalCheckUserOwnsDomainResponse: (data: unknown) => CheckUserOwnsDomainResponse;
|
|
5
6
|
export declare const unmarshalDnsRecords: (data: unknown) => DnsRecords;
|
|
6
7
|
export declare const unmarshalListControlPanelsResponse: (data: unknown) => ListControlPanelsResponse;
|
|
7
8
|
export declare const unmarshalListHostingsResponse: (data: unknown) => ListHostingsResponse;
|
|
9
|
+
export declare const unmarshalListMailboxesResponse: (data: unknown) => ListMailboxesResponse;
|
|
8
10
|
export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
|
|
9
11
|
export declare const unmarshalResetHostingPasswordResponse: (data: unknown) => ResetHostingPasswordResponse;
|
|
10
12
|
export declare const unmarshalSession: (data: unknown) => Session;
|
|
11
13
|
export declare const marshalCheckUserOwnsDomainRequest: (request: CheckUserOwnsDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
14
|
+
export declare const marshalClassicMailApiCreateMailboxRequest: (request: ClassicMailApiCreateMailboxRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
15
|
+
export declare const marshalClassicMailApiUpdateMailboxRequest: (request: ClassicMailApiUpdateMailboxRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
12
16
|
export declare const marshalCreateHostingRequest: (request: CreateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
13
17
|
export declare const marshalUpdateHostingRequest: (request: UpdateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
|