@scaleway/sdk 2.66.0 → 2.68.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/audit_trail/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/audit_trail/v1alpha1/api.gen.js +5 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +6 -2
- package/dist/api/baremetal/v1/api.gen.cjs +13 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +8 -1
- package/dist/api/baremetal/v1/api.gen.js +13 -0
- package/dist/api/baremetal/v1/content.gen.cjs +2 -1
- package/dist/api/baremetal/v1/content.gen.js +2 -1
- package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
- package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
- package/dist/api/baremetal/v1/types.gen.d.ts +9 -1
- package/dist/api/block/index.gen.cjs +4 -2
- package/dist/api/block/index.gen.d.ts +1 -0
- package/dist/api/block/index.gen.js +4 -2
- package/dist/api/block/v1/api.gen.cjs +303 -0
- package/dist/api/block/v1/api.gen.d.ts +152 -0
- package/dist/api/block/v1/api.gen.js +303 -0
- package/dist/api/block/v1/content.gen.cjs +22 -0
- package/dist/api/block/v1/content.gen.d.ts +7 -0
- package/dist/api/block/v1/content.gen.js +22 -0
- package/dist/api/block/v1/index.gen.cjs +10 -0
- package/dist/api/block/v1/index.gen.d.ts +4 -0
- package/dist/api/block/v1/index.gen.js +10 -0
- package/dist/api/block/v1/marshalling.gen.cjs +200 -0
- package/dist/api/block/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/block/v1/marshalling.gen.js +200 -0
- package/dist/api/block/v1/types.gen.d.ts +335 -0
- package/dist/api/block/v1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1/validation-rules.gen.js +56 -0
- package/dist/api/block/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/block/v1alpha1/api.gen.js +1 -0
- package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
- package/dist/api/cockpit/v1/api.gen.cjs +14 -17
- package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
- package/dist/api/cockpit/v1/api.gen.js +15 -18
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
- package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
- package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
- package/dist/api/edge_services/index.gen.cjs +2 -0
- package/dist/api/edge_services/index.gen.d.ts +1 -0
- package/dist/api/edge_services/index.gen.js +3 -1
- package/dist/api/edge_services/v1beta1/api.gen.cjs +941 -0
- package/dist/api/edge_services/v1beta1/api.gen.d.ts +454 -0
- package/dist/api/edge_services/v1beta1/api.gen.js +941 -0
- package/dist/api/edge_services/v1beta1/content.gen.cjs +8 -0
- package/dist/api/edge_services/v1beta1/content.gen.d.ts +5 -0
- package/dist/api/edge_services/v1beta1/content.gen.js +8 -0
- package/dist/api/{webhosting/v1alpha1 → edge_services/v1beta1}/index.gen.cjs +2 -2
- package/dist/api/edge_services/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/edge_services/v1beta1/index.gen.js +9 -0
- package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +808 -0
- package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +53 -0
- package/dist/api/edge_services/v1beta1/marshalling.gen.js +808 -0
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +1218 -0
- package/dist/api/edge_services/v1beta1/validation-rules.gen.cjs +23 -0
- package/dist/api/edge_services/v1beta1/validation-rules.gen.d.ts +18 -0
- package/dist/api/edge_services/v1beta1/validation-rules.gen.js +23 -0
- package/dist/api/instance/v1/api.gen.cjs +18 -0
- package/dist/api/instance/v1/api.gen.d.ts +13 -1
- package/dist/api/instance/v1/api.gen.js +19 -1
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +12 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/instance/v1/marshalling.gen.js +12 -0
- package/dist/api/instance/v1/types.gen.d.ts +12 -0
- package/dist/api/lb/v1/marshalling.gen.cjs +7 -0
- package/dist/api/lb/v1/marshalling.gen.js +7 -0
- package/dist/api/lb/v1/types.gen.d.ts +27 -0
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +11 -0
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +2 -1
- package/dist/api/mongodb/v1alpha1/api.gen.js +12 -1
- package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +26 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/mongodb/v1alpha1/marshalling.gen.js +26 -1
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +29 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +33 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
- package/dist/api/secret/v1beta1/api.gen.js +33 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +30 -3
- package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +2 -1
- package/dist/api/vpcgw/v1/api.gen.js +6 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/types.gen.d.ts +5 -0
- package/dist/api/webhosting/index.gen.cjs +0 -2
- package/dist/api/webhosting/index.gen.d.ts +0 -1
- package/dist/api/webhosting/index.gen.js +1 -3
- package/dist/api/webhosting/v1/content.gen.cjs +0 -6
- package/dist/api/webhosting/v1/content.gen.d.ts +1 -3
- package/dist/api/webhosting/v1/content.gen.js +0 -6
- package/dist/api/webhosting/v1/index.gen.cjs +0 -1
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/index.gen.js +1 -2
- package/dist/api/webhosting/v1/marshalling.gen.cjs +5 -2
- package/dist/api/webhosting/v1/marshalling.gen.js +5 -2
- package/dist/api/webhosting/v1/types.gen.d.ts +12 -7
- 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
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +0 -339
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +0 -168
- package/dist/api/webhosting/v1alpha1/api.gen.js +0 -339
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +0 -8
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +0 -3
- package/dist/api/webhosting/v1alpha1/content.gen.js +0 -8
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +0 -4
- package/dist/api/webhosting/v1alpha1/index.gen.js +0 -9
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +0 -300
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +0 -17
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -300
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +0 -480
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +0 -32
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +0 -27
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -32
|
@@ -1,480 +0,0 @@
|
|
|
1
|
-
import type { Money, Region as ScwRegion } from '../../../bridge';
|
|
2
|
-
import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
|
|
3
|
-
export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
4
|
-
export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
|
|
5
|
-
export type DnsRecordsStatus = 'unknown' | 'valid' | 'invalid';
|
|
6
|
-
export type HostingDnsStatus = 'unknown_dns_status' | 'valid' | 'invalid';
|
|
7
|
-
export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
|
|
8
|
-
export type ListHostingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
9
|
-
export type ListOffersRequestOrderBy = 'price_asc';
|
|
10
|
-
export type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
11
|
-
export type OfferQuotaWarning = 'unknown_quota_warning' | 'email_count_exceeded' | 'database_count_exceeded' | 'disk_usage_exceeded' | 'addon_domain_count_exceeded';
|
|
12
|
-
export interface HostingCpanelUrls {
|
|
13
|
-
dashboard: string;
|
|
14
|
-
webmail: string;
|
|
15
|
-
}
|
|
16
|
-
export interface HostingOption {
|
|
17
|
-
/** Option ID. */
|
|
18
|
-
id: string;
|
|
19
|
-
/** Option name. */
|
|
20
|
-
name: string;
|
|
21
|
-
}
|
|
22
|
-
export interface EmailAddress {
|
|
23
|
-
/** Domain part of the mailbox address. */
|
|
24
|
-
domain: string;
|
|
25
|
-
/** Username part address of the mailbox address. */
|
|
26
|
-
login: string;
|
|
27
|
-
}
|
|
28
|
-
export interface OfferProduct {
|
|
29
|
-
/** Product name. */
|
|
30
|
-
name: string;
|
|
31
|
-
/** Product option. */
|
|
32
|
-
option: boolean;
|
|
33
|
-
/** Limit number of email accounts. */
|
|
34
|
-
emailAccountsQuota: number;
|
|
35
|
-
/** Limit quantity of email storage in gigabytes. */
|
|
36
|
-
emailStorageQuota: number;
|
|
37
|
-
/** Limit number of databases. */
|
|
38
|
-
databasesQuota: number;
|
|
39
|
-
/** Limit quantity of hosting storage in gigabytes. */
|
|
40
|
-
hostingStorageQuota: number;
|
|
41
|
-
/** Whether or not support is included. */
|
|
42
|
-
supportIncluded: boolean;
|
|
43
|
-
/** Limit number of virtual CPU. */
|
|
44
|
-
vCpu: number;
|
|
45
|
-
/** Limit quantity of memory in gigabytes. */
|
|
46
|
-
ram: number;
|
|
47
|
-
/** Limit number of add-on domains. */
|
|
48
|
-
maxAddonDomains: number;
|
|
49
|
-
}
|
|
50
|
-
export interface CreateHostingRequestDomainConfiguration {
|
|
51
|
-
updateNameservers: boolean;
|
|
52
|
-
updateWebRecord: boolean;
|
|
53
|
-
updateMailRecord: boolean;
|
|
54
|
-
updateAllRecords: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface DnsRecord {
|
|
57
|
-
/** Record name. */
|
|
58
|
-
name: string;
|
|
59
|
-
/** Record type. */
|
|
60
|
-
type: DnsRecordType;
|
|
61
|
-
/** Record time-to-live. */
|
|
62
|
-
ttl: number;
|
|
63
|
-
/** Record value. */
|
|
64
|
-
value: string;
|
|
65
|
-
/** Record priority level. */
|
|
66
|
-
priority?: number;
|
|
67
|
-
/** Record status. */
|
|
68
|
-
status: DnsRecordStatus;
|
|
69
|
-
}
|
|
70
|
-
export interface Nameserver {
|
|
71
|
-
/** Hostname of the nameserver. */
|
|
72
|
-
hostname: string;
|
|
73
|
-
/** Status of the nameserver. */
|
|
74
|
-
status: NameserverStatus;
|
|
75
|
-
/** Defines whether the nameserver is the default one. */
|
|
76
|
-
isDefault: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface ControlPanel {
|
|
79
|
-
/** Control panel name. */
|
|
80
|
-
name: string;
|
|
81
|
-
/** Define if the control panel type is available to order. */
|
|
82
|
-
available: boolean;
|
|
83
|
-
/** URL of this control panel's logo. */
|
|
84
|
-
logoUrl: string;
|
|
85
|
-
/** List of available languages for the control panel. */
|
|
86
|
-
availableLanguages: StdLanguageCode[];
|
|
87
|
-
}
|
|
88
|
-
export interface Hosting {
|
|
89
|
-
/** ID of the Web Hosting plan. */
|
|
90
|
-
id: string;
|
|
91
|
-
/** ID of the Scaleway Organization the Web Hosting plan belongs to. */
|
|
92
|
-
organizationId: string;
|
|
93
|
-
/** ID of the Scaleway Project the Web Hosting plan belongs to. */
|
|
94
|
-
projectId: string;
|
|
95
|
-
/** Date on which the Web Hosting plan was last updated. */
|
|
96
|
-
updatedAt?: Date;
|
|
97
|
-
/** Date on which the Web Hosting plan was created. */
|
|
98
|
-
createdAt?: Date;
|
|
99
|
-
/** Status of the Web Hosting plan. */
|
|
100
|
-
status: HostingStatus;
|
|
101
|
-
/** Hostname of the host platform. */
|
|
102
|
-
platformHostname: string;
|
|
103
|
-
/** Number of the host platform. */
|
|
104
|
-
platformNumber?: number;
|
|
105
|
-
/** ID of the active offer for the Web Hosting plan. */
|
|
106
|
-
offerId: string;
|
|
107
|
-
/** Name of the active offer for the Web Hosting plan. */
|
|
108
|
-
offerName: string;
|
|
109
|
-
/** Main domain associated with the Web Hosting plan. */
|
|
110
|
-
domain: string;
|
|
111
|
-
/** List of tags associated with the Web Hosting plan. */
|
|
112
|
-
tags: string[];
|
|
113
|
-
/** Array of any options activated for the Web Hosting plan. */
|
|
114
|
-
options: HostingOption[];
|
|
115
|
-
/** DNS status of the Web Hosting plan. */
|
|
116
|
-
dnsStatus: HostingDnsStatus;
|
|
117
|
-
/** URL to connect to cPanel dashboard and to Webmail interface. */
|
|
118
|
-
cpanelUrls?: HostingCpanelUrls;
|
|
119
|
-
/** Main Web Hosting cPanel username. */
|
|
120
|
-
username: string;
|
|
121
|
-
/** Indicates if the hosting offer has reached its end of life. */
|
|
122
|
-
offerEndOfLife: boolean;
|
|
123
|
-
/** Name of the control panel. */
|
|
124
|
-
controlPanelName: string;
|
|
125
|
-
/** Group of the hosting's host server/platform. */
|
|
126
|
-
platformGroup: string;
|
|
127
|
-
/** IPv4 address of the hosting's host server. */
|
|
128
|
-
ipv4: string;
|
|
129
|
-
/** IPv6 address of the hosting's host server. */
|
|
130
|
-
ipv6: string;
|
|
131
|
-
/** Whether the hosting is protected or not. */
|
|
132
|
-
protected: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* One-time-password used for the first login or reset password, empty after
|
|
135
|
-
* first use.
|
|
136
|
-
*/
|
|
137
|
-
oneTimePassword: string;
|
|
138
|
-
/** Region where the Web Hosting plan is hosted. */
|
|
139
|
-
region: ScwRegion;
|
|
140
|
-
}
|
|
141
|
-
export interface Mailbox {
|
|
142
|
-
/** The ID of the mailbox. */
|
|
143
|
-
mailboxId: number;
|
|
144
|
-
/** The email address of the mailbox. */
|
|
145
|
-
email?: EmailAddress;
|
|
146
|
-
}
|
|
147
|
-
export interface Offer {
|
|
148
|
-
/** Offer ID. */
|
|
149
|
-
id: string;
|
|
150
|
-
/** Unique identifier used for billing. */
|
|
151
|
-
billingOperationPath: string;
|
|
152
|
-
/** Product constituting this offer. */
|
|
153
|
-
product?: OfferProduct;
|
|
154
|
-
/** Price of this offer. */
|
|
155
|
-
price?: Money;
|
|
156
|
-
/**
|
|
157
|
-
* If a hosting_id was specified in the call, defines whether this offer is
|
|
158
|
-
* available for that Web Hosting plan to migrate (update) to.
|
|
159
|
-
*/
|
|
160
|
-
available: boolean;
|
|
161
|
-
/** Quota warnings, if the offer is not available for the specified hosting_id. */
|
|
162
|
-
quotaWarnings: OfferQuotaWarning[];
|
|
163
|
-
/** Indicates if the offer has reached its end of life. */
|
|
164
|
-
endOfLife: boolean;
|
|
165
|
-
/** Name of the control panel. */
|
|
166
|
-
controlPanelName: string;
|
|
167
|
-
}
|
|
168
|
-
export type CheckUserOwnsDomainRequest = {
|
|
169
|
-
/**
|
|
170
|
-
* Region to target. If none is passed will use default region from the
|
|
171
|
-
* config.
|
|
172
|
-
*/
|
|
173
|
-
region?: ScwRegion;
|
|
174
|
-
/** Domain for which ownership is to be verified. */
|
|
175
|
-
domain: string;
|
|
176
|
-
/** ID of the project currently in use. */
|
|
177
|
-
projectId?: string;
|
|
178
|
-
};
|
|
179
|
-
export interface CheckUserOwnsDomainResponse {
|
|
180
|
-
/** Indicates whether the specified project owns the domain. */
|
|
181
|
-
ownsDomain: boolean;
|
|
182
|
-
}
|
|
183
|
-
export type ClassicMailApiCreateMailboxRequest = {
|
|
184
|
-
/**
|
|
185
|
-
* Region to target. If none is passed will use default region from the
|
|
186
|
-
* config.
|
|
187
|
-
*/
|
|
188
|
-
region?: ScwRegion;
|
|
189
|
-
/** The Online hosting ID. */
|
|
190
|
-
onlineId: number;
|
|
191
|
-
/** The email address of the mailbox. */
|
|
192
|
-
email?: EmailAddress;
|
|
193
|
-
/** Password for the new mailbox. */
|
|
194
|
-
password: string;
|
|
195
|
-
};
|
|
196
|
-
export type ClassicMailApiDeleteMailboxRequest = {
|
|
197
|
-
/**
|
|
198
|
-
* Region to target. If none is passed will use default region from the
|
|
199
|
-
* config.
|
|
200
|
-
*/
|
|
201
|
-
region?: ScwRegion;
|
|
202
|
-
/** The Online hosting ID. */
|
|
203
|
-
onlineId: number;
|
|
204
|
-
/** The ID of the mailbox to delete. */
|
|
205
|
-
mailboxId: number;
|
|
206
|
-
};
|
|
207
|
-
export type ClassicMailApiGetMailboxRequest = {
|
|
208
|
-
/**
|
|
209
|
-
* Region to target. If none is passed will use default region from the
|
|
210
|
-
* config.
|
|
211
|
-
*/
|
|
212
|
-
region?: ScwRegion;
|
|
213
|
-
/** The Online hosting ID. */
|
|
214
|
-
onlineId: number;
|
|
215
|
-
/** The ID of the mailbox to get. */
|
|
216
|
-
mailboxId: number;
|
|
217
|
-
};
|
|
218
|
-
export type ClassicMailApiListMailboxesRequest = {
|
|
219
|
-
/**
|
|
220
|
-
* Region to target. If none is passed will use default region from the
|
|
221
|
-
* config.
|
|
222
|
-
*/
|
|
223
|
-
region?: ScwRegion;
|
|
224
|
-
/** The Online hosting ID. */
|
|
225
|
-
onlineId: number;
|
|
226
|
-
/** Page number (must be a positive integer). */
|
|
227
|
-
page?: number;
|
|
228
|
-
/**
|
|
229
|
-
* Number of mailboxes to return (must be a positive integer lower or equal to
|
|
230
|
-
* 100).
|
|
231
|
-
*/
|
|
232
|
-
pageSize?: number;
|
|
233
|
-
/** Domain to filter the mailboxes. */
|
|
234
|
-
domain?: string;
|
|
235
|
-
};
|
|
236
|
-
export type ClassicMailApiUpdateMailboxRequest = {
|
|
237
|
-
/**
|
|
238
|
-
* Region to target. If none is passed will use default region from the
|
|
239
|
-
* config.
|
|
240
|
-
*/
|
|
241
|
-
region?: ScwRegion;
|
|
242
|
-
/** The Online hosting ID. */
|
|
243
|
-
onlineId: number;
|
|
244
|
-
/** The ID of the mailbox to update. */
|
|
245
|
-
mailboxId: number;
|
|
246
|
-
/** New password for the mailbox. */
|
|
247
|
-
password?: string;
|
|
248
|
-
};
|
|
249
|
-
export type CreateHostingRequest = {
|
|
250
|
-
/**
|
|
251
|
-
* Region to target. If none is passed will use default region from the
|
|
252
|
-
* config.
|
|
253
|
-
*/
|
|
254
|
-
region?: ScwRegion;
|
|
255
|
-
/** ID of the selected offer for the Web Hosting plan. */
|
|
256
|
-
offerId: string;
|
|
257
|
-
/** ID of the Scaleway Project in which to create the Web Hosting plan. */
|
|
258
|
-
projectId?: string;
|
|
259
|
-
/** Contact email for the Web Hosting client. */
|
|
260
|
-
email?: string;
|
|
261
|
-
/** List of tags for the Web Hosting plan. */
|
|
262
|
-
tags?: string[];
|
|
263
|
-
/**
|
|
264
|
-
* Domain name to link to the Web Hosting plan. You must already own this
|
|
265
|
-
* domain name, and have completed the DNS validation process beforehand.
|
|
266
|
-
*/
|
|
267
|
-
domain: string;
|
|
268
|
-
/** IDs of any selected additional options for the Web Hosting plan. */
|
|
269
|
-
optionIds?: string[];
|
|
270
|
-
/** Default language for the control panel interface. */
|
|
271
|
-
language?: StdLanguageCode;
|
|
272
|
-
/**
|
|
273
|
-
* Indicates whether to update hosting domain name servers and DNS records for
|
|
274
|
-
* domains managed by Scaleway Elements.
|
|
275
|
-
*/
|
|
276
|
-
domainConfiguration?: CreateHostingRequestDomainConfiguration;
|
|
277
|
-
};
|
|
278
|
-
export type CreateSessionRequest = {
|
|
279
|
-
/**
|
|
280
|
-
* Region to target. If none is passed will use default region from the
|
|
281
|
-
* config.
|
|
282
|
-
*/
|
|
283
|
-
region?: ScwRegion;
|
|
284
|
-
/** Hosting ID. */
|
|
285
|
-
hostingId: string;
|
|
286
|
-
};
|
|
287
|
-
export type DeleteHostingRequest = {
|
|
288
|
-
/**
|
|
289
|
-
* Region to target. If none is passed will use default region from the
|
|
290
|
-
* config.
|
|
291
|
-
*/
|
|
292
|
-
region?: ScwRegion;
|
|
293
|
-
/** Hosting ID. */
|
|
294
|
-
hostingId: string;
|
|
295
|
-
};
|
|
296
|
-
export interface DnsRecords {
|
|
297
|
-
/** List of DNS records. */
|
|
298
|
-
records: DnsRecord[];
|
|
299
|
-
/** List of nameservers. */
|
|
300
|
-
nameServers: Nameserver[];
|
|
301
|
-
/** Status of the records. */
|
|
302
|
-
status: DnsRecordsStatus;
|
|
303
|
-
}
|
|
304
|
-
export type GetDomainDnsRecordsRequest = {
|
|
305
|
-
/**
|
|
306
|
-
* Region to target. If none is passed will use default region from the
|
|
307
|
-
* config.
|
|
308
|
-
*/
|
|
309
|
-
region?: ScwRegion;
|
|
310
|
-
/** Domain associated with the DNS records. */
|
|
311
|
-
domain: string;
|
|
312
|
-
};
|
|
313
|
-
export type GetHostingRequest = {
|
|
314
|
-
/**
|
|
315
|
-
* Region to target. If none is passed will use default region from the
|
|
316
|
-
* config.
|
|
317
|
-
*/
|
|
318
|
-
region?: ScwRegion;
|
|
319
|
-
/** Hosting ID. */
|
|
320
|
-
hostingId: string;
|
|
321
|
-
};
|
|
322
|
-
export type ListControlPanelsRequest = {
|
|
323
|
-
/**
|
|
324
|
-
* Region to target. If none is passed will use default region from the
|
|
325
|
-
* config.
|
|
326
|
-
*/
|
|
327
|
-
region?: ScwRegion;
|
|
328
|
-
/**
|
|
329
|
-
* Page number to return, from the paginated results (must be a positive
|
|
330
|
-
* integer).
|
|
331
|
-
*/
|
|
332
|
-
page?: number;
|
|
333
|
-
/**
|
|
334
|
-
* Number of control panels to return (must be a positive integer lower or
|
|
335
|
-
* equal to 100).
|
|
336
|
-
*/
|
|
337
|
-
pageSize?: number;
|
|
338
|
-
};
|
|
339
|
-
export interface ListControlPanelsResponse {
|
|
340
|
-
/** Number of control panels returned. */
|
|
341
|
-
totalCount: number;
|
|
342
|
-
/** List of control panels. */
|
|
343
|
-
controlPanels: ControlPanel[];
|
|
344
|
-
}
|
|
345
|
-
export type ListHostingsRequest = {
|
|
346
|
-
/**
|
|
347
|
-
* Region to target. If none is passed will use default region from the
|
|
348
|
-
* config.
|
|
349
|
-
*/
|
|
350
|
-
region?: ScwRegion;
|
|
351
|
-
/**
|
|
352
|
-
* Page number to return, from the paginated results (must be a positive
|
|
353
|
-
* integer).
|
|
354
|
-
*/
|
|
355
|
-
page?: number;
|
|
356
|
-
/**
|
|
357
|
-
* Number of Web Hosting plans to return (must be a positive integer lower or
|
|
358
|
-
* equal to 100).
|
|
359
|
-
*/
|
|
360
|
-
pageSize?: number;
|
|
361
|
-
/** Sort order for Web Hosting plans in the response. */
|
|
362
|
-
orderBy?: ListHostingsRequestOrderBy;
|
|
363
|
-
/**
|
|
364
|
-
* Tags to filter for, only Web Hosting plans with matching tags will be
|
|
365
|
-
* returned.
|
|
366
|
-
*/
|
|
367
|
-
tags?: string[];
|
|
368
|
-
/**
|
|
369
|
-
* Statuses to filter for, only Web Hosting plans with matching statuses will
|
|
370
|
-
* be returned.
|
|
371
|
-
*/
|
|
372
|
-
statuses?: HostingStatus[];
|
|
373
|
-
/**
|
|
374
|
-
* Domain to filter for, only Web Hosting plans associated with this domain
|
|
375
|
-
* will be returned.
|
|
376
|
-
*/
|
|
377
|
-
domain?: string;
|
|
378
|
-
/**
|
|
379
|
-
* Project ID to filter for, only Web Hosting plans from this Project will be
|
|
380
|
-
* returned.
|
|
381
|
-
*/
|
|
382
|
-
projectId?: string;
|
|
383
|
-
/**
|
|
384
|
-
* Organization ID to filter for, only Web Hosting plans from this
|
|
385
|
-
* Organization will be returned.
|
|
386
|
-
*/
|
|
387
|
-
organizationId?: string;
|
|
388
|
-
/**
|
|
389
|
-
* Name of the control panel to filter for, only Web Hosting plans from this
|
|
390
|
-
* control panel will be returned.
|
|
391
|
-
*/
|
|
392
|
-
controlPanels?: string[];
|
|
393
|
-
};
|
|
394
|
-
export interface ListHostingsResponse {
|
|
395
|
-
/** Number of Web Hosting plans returned. */
|
|
396
|
-
totalCount: number;
|
|
397
|
-
/** List of Web Hosting plans. */
|
|
398
|
-
hostings: Hosting[];
|
|
399
|
-
}
|
|
400
|
-
export interface ListMailboxesResponse {
|
|
401
|
-
/** Total number of mailboxes. */
|
|
402
|
-
totalCount: number;
|
|
403
|
-
/** List of mailboxes. */
|
|
404
|
-
mailboxes: Mailbox[];
|
|
405
|
-
}
|
|
406
|
-
export type ListOffersRequest = {
|
|
407
|
-
/**
|
|
408
|
-
* Region to target. If none is passed will use default region from the
|
|
409
|
-
* config.
|
|
410
|
-
*/
|
|
411
|
-
region?: ScwRegion;
|
|
412
|
-
/** Sort order of offers in the response. */
|
|
413
|
-
orderBy?: ListOffersRequestOrderBy;
|
|
414
|
-
/**
|
|
415
|
-
* Defines whether the response should consist of offers only, without
|
|
416
|
-
* options.
|
|
417
|
-
*/
|
|
418
|
-
withoutOptions: boolean;
|
|
419
|
-
/**
|
|
420
|
-
* Defines whether the response should consist of options only, without
|
|
421
|
-
* offers.
|
|
422
|
-
*/
|
|
423
|
-
onlyOptions: boolean;
|
|
424
|
-
/**
|
|
425
|
-
* ID of a Web Hosting plan, to check compatibility with returned offers (in
|
|
426
|
-
* case of wanting to update the plan).
|
|
427
|
-
*/
|
|
428
|
-
hostingId?: string;
|
|
429
|
-
/** Name of the control panel to filter for. */
|
|
430
|
-
controlPanels?: string[];
|
|
431
|
-
};
|
|
432
|
-
export interface ListOffersResponse {
|
|
433
|
-
/** List of offers. */
|
|
434
|
-
offers: Offer[];
|
|
435
|
-
}
|
|
436
|
-
export type ResetHostingPasswordRequest = {
|
|
437
|
-
/**
|
|
438
|
-
* Region to target. If none is passed will use default region from the
|
|
439
|
-
* config.
|
|
440
|
-
*/
|
|
441
|
-
region?: ScwRegion;
|
|
442
|
-
/** UUID of the hosting. */
|
|
443
|
-
hostingId: string;
|
|
444
|
-
};
|
|
445
|
-
export interface ResetHostingPasswordResponse {
|
|
446
|
-
/** New password. */
|
|
447
|
-
password: string;
|
|
448
|
-
}
|
|
449
|
-
export type RestoreHostingRequest = {
|
|
450
|
-
/**
|
|
451
|
-
* Region to target. If none is passed will use default region from the
|
|
452
|
-
* config.
|
|
453
|
-
*/
|
|
454
|
-
region?: ScwRegion;
|
|
455
|
-
/** Hosting ID. */
|
|
456
|
-
hostingId: string;
|
|
457
|
-
};
|
|
458
|
-
export interface Session {
|
|
459
|
-
/** Logged user's session URL. */
|
|
460
|
-
url: string;
|
|
461
|
-
}
|
|
462
|
-
export type UpdateHostingRequest = {
|
|
463
|
-
/**
|
|
464
|
-
* Region to target. If none is passed will use default region from the
|
|
465
|
-
* config.
|
|
466
|
-
*/
|
|
467
|
-
region?: ScwRegion;
|
|
468
|
-
/** Hosting ID. */
|
|
469
|
-
hostingId: string;
|
|
470
|
-
/** New contact email for the Web Hosting plan. */
|
|
471
|
-
email?: string;
|
|
472
|
-
/** New tags for the Web Hosting plan. */
|
|
473
|
-
tags?: string[];
|
|
474
|
-
/** IDs of the new options for the Web Hosting plan. */
|
|
475
|
-
optionIds?: string[];
|
|
476
|
-
/** ID of the new offer for the Web Hosting plan. */
|
|
477
|
-
offerId?: string;
|
|
478
|
-
/** Whether the hosting is protected or not. */
|
|
479
|
-
protected?: boolean;
|
|
480
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const ClassicMailApiListMailboxesRequest = {
|
|
4
|
-
page: {
|
|
5
|
-
greaterThan: 0
|
|
6
|
-
},
|
|
7
|
-
pageSize: {
|
|
8
|
-
greaterThan: 0,
|
|
9
|
-
lessThanOrEqual: 100
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const ListControlPanelsRequest = {
|
|
13
|
-
page: {
|
|
14
|
-
greaterThan: 0
|
|
15
|
-
},
|
|
16
|
-
pageSize: {
|
|
17
|
-
greaterThan: 0,
|
|
18
|
-
lessThanOrEqual: 100
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
const ListHostingsRequest = {
|
|
22
|
-
page: {
|
|
23
|
-
greaterThan: 0
|
|
24
|
-
},
|
|
25
|
-
pageSize: {
|
|
26
|
-
greaterThan: 0,
|
|
27
|
-
lessThanOrEqual: 100
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.ClassicMailApiListMailboxesRequest = ClassicMailApiListMailboxesRequest;
|
|
31
|
-
exports.ListControlPanelsRequest = ListControlPanelsRequest;
|
|
32
|
-
exports.ListHostingsRequest = ListHostingsRequest;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const ClassicMailApiListMailboxesRequest: {
|
|
2
|
-
page: {
|
|
3
|
-
greaterThan: number;
|
|
4
|
-
};
|
|
5
|
-
pageSize: {
|
|
6
|
-
greaterThan: number;
|
|
7
|
-
lessThanOrEqual: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const ListControlPanelsRequest: {
|
|
11
|
-
page: {
|
|
12
|
-
greaterThan: number;
|
|
13
|
-
};
|
|
14
|
-
pageSize: {
|
|
15
|
-
greaterThan: number;
|
|
16
|
-
lessThanOrEqual: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare const ListHostingsRequest: {
|
|
20
|
-
page: {
|
|
21
|
-
greaterThan: number;
|
|
22
|
-
};
|
|
23
|
-
pageSize: {
|
|
24
|
-
greaterThan: number;
|
|
25
|
-
lessThanOrEqual: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const ClassicMailApiListMailboxesRequest = {
|
|
2
|
-
page: {
|
|
3
|
-
greaterThan: 0
|
|
4
|
-
},
|
|
5
|
-
pageSize: {
|
|
6
|
-
greaterThan: 0,
|
|
7
|
-
lessThanOrEqual: 100
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const ListControlPanelsRequest = {
|
|
11
|
-
page: {
|
|
12
|
-
greaterThan: 0
|
|
13
|
-
},
|
|
14
|
-
pageSize: {
|
|
15
|
-
greaterThan: 0,
|
|
16
|
-
lessThanOrEqual: 100
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const ListHostingsRequest = {
|
|
20
|
-
page: {
|
|
21
|
-
greaterThan: 0
|
|
22
|
-
},
|
|
23
|
-
pageSize: {
|
|
24
|
-
greaterThan: 0,
|
|
25
|
-
lessThanOrEqual: 100
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
ClassicMailApiListMailboxesRequest,
|
|
30
|
-
ListControlPanelsRequest,
|
|
31
|
-
ListHostingsRequest
|
|
32
|
-
};
|