@scaleway/sdk-webhosting 2.11.0 → 2.12.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/LICENSE +191 -0
- package/package.json +8 -7
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v1/api.gen.d.ts +0 -553
- package/dist/v1/api.gen.js +0 -469
- package/dist/v1/content.gen.d.ts +0 -9
- package/dist/v1/content.gen.js +0 -17
- package/dist/v1/index.gen.d.ts +0 -5
- package/dist/v1/index.gen.js +0 -78
- package/dist/v1/marshalling.gen.d.ts +0 -55
- package/dist/v1/marshalling.gen.js +0 -538
- package/dist/v1/metadata.gen.d.ts +0 -249
- package/dist/v1/metadata.gen.js +0 -281
- package/dist/v1/types.gen.d.ts +0 -1867
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.d.ts +0 -90
- package/dist/v1/validation-rules.gen.js +0 -86
package/dist/v1/api.gen.js
DELETED
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
import { BACKUP_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
-
//#region src/v1/api.gen.ts
|
|
5
|
-
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
|
-
/**
|
|
7
|
-
* Web Hosting backup API.
|
|
8
|
-
|
|
9
|
-
This API allows you to list and restore backups for your cPanel and WordPress Web Hosting service.
|
|
10
|
-
*/
|
|
11
|
-
var BackupAPI = class extends API {
|
|
12
|
-
constructor(..._args) {
|
|
13
|
-
super(..._args);
|
|
14
|
-
this.pageOfListBackups = (request) => this.client.fetch({
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups`,
|
|
17
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
18
|
-
}, unmarshalListBackupsResponse);
|
|
19
|
-
this.listBackups = (request) => enrichForPagination("backups", this.pageOfListBackups, request);
|
|
20
|
-
this.getBackup = (request) => this.client.fetch({
|
|
21
|
-
method: "GET",
|
|
22
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}`
|
|
23
|
-
}, unmarshalBackup);
|
|
24
|
-
this.waitForBackup = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!BACKUP_TRANSIENT_STATUSES.includes(res.status))), this.getBackup, request, options);
|
|
25
|
-
this.restoreBackup = (request) => this.client.fetch({
|
|
26
|
-
body: "{}",
|
|
27
|
-
headers: jsonContentHeaders,
|
|
28
|
-
method: "POST",
|
|
29
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}/restore`
|
|
30
|
-
}, unmarshalRestoreBackupResponse);
|
|
31
|
-
this.listBackupItems = (request) => this.client.fetch({
|
|
32
|
-
method: "GET",
|
|
33
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backup-items`,
|
|
34
|
-
urlParams: urlParams(["backup_id", request.backupId])
|
|
35
|
-
}, unmarshalListBackupItemsResponse);
|
|
36
|
-
this.restoreBackupItems = (request) => this.client.fetch({
|
|
37
|
-
body: JSON.stringify(marshalBackupApiRestoreBackupItemsRequest(request, this.client.settings)),
|
|
38
|
-
headers: jsonContentHeaders,
|
|
39
|
-
method: "POST",
|
|
40
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/restore-backup-items`
|
|
41
|
-
}, unmarshalRestoreBackupItemsResponse);
|
|
42
|
-
this.getProgress = (request) => this.client.fetch({
|
|
43
|
-
method: "GET",
|
|
44
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/progresses/${validatePathParam("progressId", request.progressId)}`
|
|
45
|
-
}, unmarshalProgress);
|
|
46
|
-
this.listRecentProgresses = (request) => this.client.fetch({
|
|
47
|
-
method: "GET",
|
|
48
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/progresses`
|
|
49
|
-
}, unmarshalListRecentProgressesResponse);
|
|
50
|
-
}
|
|
51
|
-
static {
|
|
52
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
53
|
-
"fr-par",
|
|
54
|
-
"nl-ams",
|
|
55
|
-
"pl-waw"
|
|
56
|
-
] });
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Web Hosting Control Panel API.
|
|
61
|
-
|
|
62
|
-
This API allows you to manage your Web Hosting services.
|
|
63
|
-
*/
|
|
64
|
-
var ControlPanelAPI = class extends API {
|
|
65
|
-
constructor(..._args2) {
|
|
66
|
-
super(..._args2);
|
|
67
|
-
this.pageOfListControlPanels = (request = {}) => this.client.fetch({
|
|
68
|
-
method: "GET",
|
|
69
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/control-panels`,
|
|
70
|
-
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
71
|
-
}, unmarshalListControlPanelsResponse);
|
|
72
|
-
this.listControlPanels = (request = {}) => enrichForPagination("controlPanels", this.pageOfListControlPanels, request);
|
|
73
|
-
}
|
|
74
|
-
static {
|
|
75
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
76
|
-
"fr-par",
|
|
77
|
-
"nl-ams",
|
|
78
|
-
"pl-waw"
|
|
79
|
-
] });
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Web Hosting Database API.
|
|
84
|
-
|
|
85
|
-
This API allows you to manage your databases and database users for your Web Hosting services.
|
|
86
|
-
*/
|
|
87
|
-
var DatabaseAPI = class extends API {
|
|
88
|
-
constructor(..._args3) {
|
|
89
|
-
super(..._args3);
|
|
90
|
-
this.createDatabase = (request) => this.client.fetch({
|
|
91
|
-
body: JSON.stringify(marshalDatabaseApiCreateDatabaseRequest(request, this.client.settings)),
|
|
92
|
-
headers: jsonContentHeaders,
|
|
93
|
-
method: "POST",
|
|
94
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases`
|
|
95
|
-
}, unmarshalDatabase);
|
|
96
|
-
this.pageOfListDatabases = (request) => this.client.fetch({
|
|
97
|
-
method: "GET",
|
|
98
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases`,
|
|
99
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
100
|
-
}, unmarshalListDatabasesResponse);
|
|
101
|
-
this.listDatabases = (request) => enrichForPagination("databases", this.pageOfListDatabases, request);
|
|
102
|
-
this.getDatabase = (request) => this.client.fetch({
|
|
103
|
-
method: "GET",
|
|
104
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases/${validatePathParam("databaseName", request.databaseName)}`
|
|
105
|
-
}, unmarshalDatabase);
|
|
106
|
-
this.deleteDatabase = (request) => this.client.fetch({
|
|
107
|
-
method: "DELETE",
|
|
108
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases/${validatePathParam("databaseName", request.databaseName)}`
|
|
109
|
-
}, unmarshalDatabase);
|
|
110
|
-
this.createDatabaseUser = (request) => this.client.fetch({
|
|
111
|
-
body: JSON.stringify(marshalDatabaseApiCreateDatabaseUserRequest(request, this.client.settings)),
|
|
112
|
-
headers: jsonContentHeaders,
|
|
113
|
-
method: "POST",
|
|
114
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases-users`
|
|
115
|
-
}, unmarshalDatabaseUser);
|
|
116
|
-
this.pageOfListDatabaseUsers = (request) => this.client.fetch({
|
|
117
|
-
method: "GET",
|
|
118
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/database-users`,
|
|
119
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
120
|
-
}, unmarshalListDatabaseUsersResponse);
|
|
121
|
-
this.listDatabaseUsers = (request) => enrichForPagination("users", this.pageOfListDatabaseUsers, request);
|
|
122
|
-
this.getDatabaseUser = (request) => this.client.fetch({
|
|
123
|
-
method: "GET",
|
|
124
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases-users/${validatePathParam("username", request.username)}`
|
|
125
|
-
}, unmarshalDatabaseUser);
|
|
126
|
-
this.deleteDatabaseUser = (request) => this.client.fetch({
|
|
127
|
-
method: "DELETE",
|
|
128
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/database-users/${validatePathParam("username", request.username)}`
|
|
129
|
-
}, unmarshalDatabaseUser);
|
|
130
|
-
this.changeDatabaseUserPassword = (request) => this.client.fetch({
|
|
131
|
-
body: JSON.stringify(marshalDatabaseApiChangeDatabaseUserPasswordRequest(request, this.client.settings)),
|
|
132
|
-
headers: jsonContentHeaders,
|
|
133
|
-
method: "POST",
|
|
134
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases-users/${validatePathParam("username", request.username)}/change-password`
|
|
135
|
-
}, unmarshalDatabaseUser);
|
|
136
|
-
this.assignDatabaseUser = (request) => this.client.fetch({
|
|
137
|
-
body: JSON.stringify(marshalDatabaseApiAssignDatabaseUserRequest(request, this.client.settings)),
|
|
138
|
-
headers: jsonContentHeaders,
|
|
139
|
-
method: "POST",
|
|
140
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases/${validatePathParam("databaseName", request.databaseName)}/assign-user`
|
|
141
|
-
}, unmarshalDatabaseUser);
|
|
142
|
-
this.unassignDatabaseUser = (request) => this.client.fetch({
|
|
143
|
-
body: JSON.stringify(marshalDatabaseApiUnassignDatabaseUserRequest(request, this.client.settings)),
|
|
144
|
-
headers: jsonContentHeaders,
|
|
145
|
-
method: "POST",
|
|
146
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/databases/${validatePathParam("databaseName", request.databaseName)}/unassign-user`
|
|
147
|
-
}, unmarshalDatabaseUser);
|
|
148
|
-
}
|
|
149
|
-
static {
|
|
150
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
151
|
-
"fr-par",
|
|
152
|
-
"nl-ams",
|
|
153
|
-
"pl-waw"
|
|
154
|
-
] });
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Web Hosting Dns API.
|
|
159
|
-
|
|
160
|
-
This API allows you to manage your Web Hosting services.
|
|
161
|
-
*/
|
|
162
|
-
var DnsAPI = class extends API {
|
|
163
|
-
constructor(..._args4) {
|
|
164
|
-
super(..._args4);
|
|
165
|
-
this.getDomainDnsRecords = (request) => this.client.fetch({
|
|
166
|
-
method: "GET",
|
|
167
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/dns-records`
|
|
168
|
-
}, unmarshalDnsRecords);
|
|
169
|
-
this.checkUserOwnsDomain = (request) => this.client.fetch({
|
|
170
|
-
body: JSON.stringify(marshalDnsApiCheckUserOwnsDomainRequest(request, this.client.settings)),
|
|
171
|
-
headers: jsonContentHeaders,
|
|
172
|
-
method: "POST",
|
|
173
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/check-ownership`
|
|
174
|
-
}, unmarshalCheckUserOwnsDomainResponse);
|
|
175
|
-
this.syncDomainDnsRecords = (request) => this.client.fetch({
|
|
176
|
-
body: JSON.stringify(marshalDnsApiSyncDomainDnsRecordsRequest(request, this.client.settings)),
|
|
177
|
-
headers: jsonContentHeaders,
|
|
178
|
-
method: "POST",
|
|
179
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/sync-domain-dns-records`
|
|
180
|
-
}, unmarshalDnsRecords);
|
|
181
|
-
this.searchDomains = (request) => this.client.fetch({
|
|
182
|
-
method: "GET",
|
|
183
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/search-domains`,
|
|
184
|
-
urlParams: urlParams(["domain_name", request.domainName], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
|
|
185
|
-
}, unmarshalSearchDomainsResponse);
|
|
186
|
-
this.getDomain = (request) => this.client.fetch({
|
|
187
|
-
method: "GET",
|
|
188
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domainName", request.domainName)}`,
|
|
189
|
-
urlParams: urlParams(["project_id", request.projectId ?? this.client.settings.defaultProjectId])
|
|
190
|
-
}, unmarshalDomain);
|
|
191
|
-
this.waitForDomain = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
|
|
192
|
-
}
|
|
193
|
-
static {
|
|
194
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
195
|
-
"fr-par",
|
|
196
|
-
"nl-ams",
|
|
197
|
-
"pl-waw"
|
|
198
|
-
] });
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
/**
|
|
202
|
-
* Web Hosting Offer API.
|
|
203
|
-
|
|
204
|
-
This API allows you to manage your offer for your Web Hosting services.
|
|
205
|
-
*/
|
|
206
|
-
var OfferAPI = class extends API {
|
|
207
|
-
constructor(..._args5) {
|
|
208
|
-
super(..._args5);
|
|
209
|
-
this.pageOfListOffers = (request = {}) => this.client.fetch({
|
|
210
|
-
method: "GET",
|
|
211
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/offers`,
|
|
212
|
-
urlParams: urlParams(["control_panels", request.controlPanels], ["hosting_id", request.hostingId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
213
|
-
}, unmarshalListOffersResponse);
|
|
214
|
-
this.listOffers = (request = {}) => enrichForPagination("offers", this.pageOfListOffers, request);
|
|
215
|
-
}
|
|
216
|
-
static {
|
|
217
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
218
|
-
"fr-par",
|
|
219
|
-
"nl-ams",
|
|
220
|
-
"pl-waw"
|
|
221
|
-
] });
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
/**
|
|
225
|
-
* Web Hosting API.
|
|
226
|
-
|
|
227
|
-
This API allows you to manage your Web Hosting services.
|
|
228
|
-
*/
|
|
229
|
-
var HostingAPI = class extends API {
|
|
230
|
-
constructor(..._args6) {
|
|
231
|
-
super(..._args6);
|
|
232
|
-
this.createHosting = (request) => this.client.fetch({
|
|
233
|
-
body: JSON.stringify(marshalHostingApiCreateHostingRequest(request, this.client.settings)),
|
|
234
|
-
headers: jsonContentHeaders,
|
|
235
|
-
method: "POST",
|
|
236
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings`
|
|
237
|
-
}, unmarshalHosting);
|
|
238
|
-
this.pageOfListHostings = (request = {}) => this.client.fetch({
|
|
239
|
-
method: "GET",
|
|
240
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings`,
|
|
241
|
-
urlParams: urlParams(["control_panels", request.controlPanels], ["domain", request.domain], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["statuses", request.statuses], ["subdomain", request.subdomain], ["tags", request.tags])
|
|
242
|
-
}, unmarshalListHostingsResponse);
|
|
243
|
-
this.listHostings = (request = {}) => enrichForPagination("hostings", this.pageOfListHostings, request);
|
|
244
|
-
this.getHosting = (request) => this.client.fetch({
|
|
245
|
-
method: "GET",
|
|
246
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}`
|
|
247
|
-
}, unmarshalHosting);
|
|
248
|
-
this.waitForHosting = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!HOSTING_TRANSIENT_STATUSES.includes(res.status))), this.getHosting, request, options);
|
|
249
|
-
this.updateHosting = (request) => this.client.fetch({
|
|
250
|
-
body: JSON.stringify(marshalHostingApiUpdateHostingRequest(request, this.client.settings)),
|
|
251
|
-
headers: jsonContentHeaders,
|
|
252
|
-
method: "PATCH",
|
|
253
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}`
|
|
254
|
-
}, unmarshalHosting);
|
|
255
|
-
this.deleteHosting = (request) => this.client.fetch({
|
|
256
|
-
method: "DELETE",
|
|
257
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}`
|
|
258
|
-
}, unmarshalHosting);
|
|
259
|
-
this.createSession = (request) => this.client.fetch({
|
|
260
|
-
body: "{}",
|
|
261
|
-
headers: jsonContentHeaders,
|
|
262
|
-
method: "POST",
|
|
263
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/sessions`
|
|
264
|
-
}, unmarshalSession);
|
|
265
|
-
this.resetHostingPassword = (request) => this.client.fetch({
|
|
266
|
-
body: "{}",
|
|
267
|
-
headers: jsonContentHeaders,
|
|
268
|
-
method: "POST",
|
|
269
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/reset-password`
|
|
270
|
-
}, unmarshalResetHostingPasswordResponse);
|
|
271
|
-
this.getResourceSummary = (request) => this.client.fetch({
|
|
272
|
-
method: "GET",
|
|
273
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/resource-summary`
|
|
274
|
-
}, unmarshalResourceSummary);
|
|
275
|
-
this.addCustomDomain = (request) => this.client.fetch({
|
|
276
|
-
body: JSON.stringify(marshalHostingApiAddCustomDomainRequest(request, this.client.settings)),
|
|
277
|
-
headers: jsonContentHeaders,
|
|
278
|
-
method: "POST",
|
|
279
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/add-custom-domain`
|
|
280
|
-
}, unmarshalHostingSummary);
|
|
281
|
-
this.removeCustomDomain = (request) => this.client.fetch({
|
|
282
|
-
body: JSON.stringify(marshalHostingApiRemoveCustomDomainRequest(request, this.client.settings)),
|
|
283
|
-
headers: jsonContentHeaders,
|
|
284
|
-
method: "POST",
|
|
285
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
|
|
286
|
-
}, unmarshalHostingSummary);
|
|
287
|
-
this.migrateControlPanel = (request) => this.client.fetch({
|
|
288
|
-
body: JSON.stringify(marshalHostingApiMigrateControlPanelRequest(request, this.client.settings)),
|
|
289
|
-
headers: jsonContentHeaders,
|
|
290
|
-
method: "POST",
|
|
291
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/migrate-control-panel`
|
|
292
|
-
}, unmarshalHostingSummary);
|
|
293
|
-
this.resetHosting = (request) => this.client.fetch({
|
|
294
|
-
body: "{}",
|
|
295
|
-
headers: jsonContentHeaders,
|
|
296
|
-
method: "POST",
|
|
297
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/reset`
|
|
298
|
-
}, unmarshalHosting);
|
|
299
|
-
this.deleteHostingDomains = (request) => this.client.fetch({
|
|
300
|
-
body: JSON.stringify(marshalHostingApiDeleteHostingDomainsRequest(request, this.client.settings)),
|
|
301
|
-
headers: jsonContentHeaders,
|
|
302
|
-
method: "POST",
|
|
303
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/delete-domains`
|
|
304
|
-
}, unmarshalHosting);
|
|
305
|
-
this.updateHostingFreeDomain = (request) => this.client.fetch({
|
|
306
|
-
body: JSON.stringify(marshalHostingApiUpdateHostingFreeDomainRequest(request, this.client.settings)),
|
|
307
|
-
headers: jsonContentHeaders,
|
|
308
|
-
method: "PATCH",
|
|
309
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/update-free-domain`
|
|
310
|
-
}, unmarshalHosting);
|
|
311
|
-
}
|
|
312
|
-
static {
|
|
313
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
314
|
-
"fr-par",
|
|
315
|
-
"nl-ams",
|
|
316
|
-
"pl-waw"
|
|
317
|
-
] });
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
/**
|
|
321
|
-
* Web Hosting free domain API.
|
|
322
|
-
|
|
323
|
-
This API allows you to list and check a free domain's validity.
|
|
324
|
-
*/
|
|
325
|
-
var FreeDomainAPI = class extends API {
|
|
326
|
-
constructor(..._args7) {
|
|
327
|
-
super(..._args7);
|
|
328
|
-
this.checkFreeDomainAvailability = (request) => this.client.fetch({
|
|
329
|
-
body: JSON.stringify(marshalFreeDomainApiCheckFreeDomainAvailabilityRequest(request, this.client.settings)),
|
|
330
|
-
headers: jsonContentHeaders,
|
|
331
|
-
method: "POST",
|
|
332
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/check-availability`
|
|
333
|
-
}, unmarshalCheckFreeDomainAvailabilityResponse);
|
|
334
|
-
this.pageOfListFreeRootDomains = (request = {}) => this.client.fetch({
|
|
335
|
-
method: "GET",
|
|
336
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/root-domains`,
|
|
337
|
-
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
338
|
-
}, unmarshalListFreeRootDomainsResponse);
|
|
339
|
-
this.listFreeRootDomains = (request = {}) => enrichForPagination("rootDomains", this.pageOfListFreeRootDomains, request);
|
|
340
|
-
}
|
|
341
|
-
static {
|
|
342
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
343
|
-
"fr-par",
|
|
344
|
-
"nl-ams",
|
|
345
|
-
"pl-waw"
|
|
346
|
-
] });
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Web Hosting FTP Account API.
|
|
351
|
-
|
|
352
|
-
This API allows you to manage your FTP accounts for your Web Hosting services.
|
|
353
|
-
*/
|
|
354
|
-
var FtpAccountAPI = class extends API {
|
|
355
|
-
constructor(..._args8) {
|
|
356
|
-
super(..._args8);
|
|
357
|
-
this.createFtpAccount = (request) => this.client.fetch({
|
|
358
|
-
body: JSON.stringify(marshalFtpAccountApiCreateFtpAccountRequest(request, this.client.settings)),
|
|
359
|
-
headers: jsonContentHeaders,
|
|
360
|
-
method: "POST",
|
|
361
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/ftp-accounts`
|
|
362
|
-
}, unmarshalFtpAccount);
|
|
363
|
-
this.pageOfListFtpAccounts = (request) => this.client.fetch({
|
|
364
|
-
method: "GET",
|
|
365
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/ftp-accounts`,
|
|
366
|
-
urlParams: urlParams(["domain", request.domain], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
367
|
-
}, unmarshalListFtpAccountsResponse);
|
|
368
|
-
this.listFtpAccounts = (request) => enrichForPagination("ftpAccounts", this.pageOfListFtpAccounts, request);
|
|
369
|
-
this.removeFtpAccount = (request) => this.client.fetch({
|
|
370
|
-
method: "DELETE",
|
|
371
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/ftp-accounts/${validatePathParam("username", request.username)}`
|
|
372
|
-
}, unmarshalFtpAccount);
|
|
373
|
-
this.changeFtpAccountPassword = (request) => this.client.fetch({
|
|
374
|
-
body: JSON.stringify(marshalFtpAccountApiChangeFtpAccountPasswordRequest(request, this.client.settings)),
|
|
375
|
-
headers: jsonContentHeaders,
|
|
376
|
-
method: "POST",
|
|
377
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/ftp-accounts/${validatePathParam("username", request.username)}/change-password`
|
|
378
|
-
}, unmarshalFtpAccount);
|
|
379
|
-
}
|
|
380
|
-
static {
|
|
381
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
382
|
-
"fr-par",
|
|
383
|
-
"nl-ams",
|
|
384
|
-
"pl-waw"
|
|
385
|
-
] });
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* Web Hosting Mail Account API.
|
|
390
|
-
|
|
391
|
-
This API allows you to manage your mail accounts for your Web Hosting services.
|
|
392
|
-
*/
|
|
393
|
-
var MailAccountAPI = class extends API {
|
|
394
|
-
constructor(..._args9) {
|
|
395
|
-
super(..._args9);
|
|
396
|
-
this.createMailAccount = (request) => this.client.fetch({
|
|
397
|
-
body: JSON.stringify(marshalMailAccountApiCreateMailAccountRequest(request, this.client.settings)),
|
|
398
|
-
headers: jsonContentHeaders,
|
|
399
|
-
method: "POST",
|
|
400
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/mail-accounts`
|
|
401
|
-
}, unmarshalMailAccount);
|
|
402
|
-
this.pageOfListMailAccounts = (request) => this.client.fetch({
|
|
403
|
-
method: "GET",
|
|
404
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/mail-accounts`,
|
|
405
|
-
urlParams: urlParams(["domain", request.domain], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
406
|
-
}, unmarshalListMailAccountsResponse);
|
|
407
|
-
this.listMailAccounts = (request) => enrichForPagination("mailAccounts", this.pageOfListMailAccounts, request);
|
|
408
|
-
this.removeMailAccount = (request) => this.client.fetch({
|
|
409
|
-
body: JSON.stringify(marshalMailAccountApiRemoveMailAccountRequest(request, this.client.settings)),
|
|
410
|
-
headers: jsonContentHeaders,
|
|
411
|
-
method: "POST",
|
|
412
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-mail-account`
|
|
413
|
-
}, unmarshalMailAccount);
|
|
414
|
-
this.changeMailAccountPassword = (request) => this.client.fetch({
|
|
415
|
-
body: JSON.stringify(marshalMailAccountApiChangeMailAccountPasswordRequest(request, this.client.settings)),
|
|
416
|
-
headers: jsonContentHeaders,
|
|
417
|
-
method: "POST",
|
|
418
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/change-mail-password`
|
|
419
|
-
}, unmarshalMailAccount);
|
|
420
|
-
}
|
|
421
|
-
static {
|
|
422
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
423
|
-
"fr-par",
|
|
424
|
-
"nl-ams",
|
|
425
|
-
"pl-waw"
|
|
426
|
-
] });
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
/**
|
|
430
|
-
* Web Hosting Website API.
|
|
431
|
-
|
|
432
|
-
This API allows you to manage your websites for your Web Hosting services.
|
|
433
|
-
*/
|
|
434
|
-
var WebsiteAPI = class extends API {
|
|
435
|
-
constructor(..._args10) {
|
|
436
|
-
super(..._args10);
|
|
437
|
-
this.pageOfListWebsites = (request) => this.client.fetch({
|
|
438
|
-
method: "GET",
|
|
439
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites`,
|
|
440
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
441
|
-
}, unmarshalListWebsitesResponse);
|
|
442
|
-
this.listWebsites = (request) => enrichForPagination("websites", this.pageOfListWebsites, request);
|
|
443
|
-
this.createWebsite = (request) => this.client.fetch({
|
|
444
|
-
body: JSON.stringify(marshalWebsiteApiCreateWebsiteRequest(request, this.client.settings)),
|
|
445
|
-
headers: jsonContentHeaders,
|
|
446
|
-
method: "POST",
|
|
447
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites`
|
|
448
|
-
}, unmarshalWebsite);
|
|
449
|
-
this.deleteWebsite = (request) => this.client.fetch({
|
|
450
|
-
method: "DELETE",
|
|
451
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites/${validatePathParam("domainName", request.domainName)}`
|
|
452
|
-
});
|
|
453
|
-
this.resetWebsite = (request) => this.client.fetch({
|
|
454
|
-
body: "{}",
|
|
455
|
-
headers: jsonContentHeaders,
|
|
456
|
-
method: "POST",
|
|
457
|
-
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites/${validatePathParam("domainName", request.domainName)}/reset`
|
|
458
|
-
}, unmarshalWebsite);
|
|
459
|
-
}
|
|
460
|
-
static {
|
|
461
|
-
this.LOCALITY = toApiLocality({ regions: [
|
|
462
|
-
"fr-par",
|
|
463
|
-
"nl-ams",
|
|
464
|
-
"pl-waw"
|
|
465
|
-
] });
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
//#endregion
|
|
469
|
-
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI };
|
package/dist/v1/content.gen.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BackupStatus, DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen.js';
|
|
2
|
-
/** Lists transient statutes of the enum {@link BackupStatus}. */
|
|
3
|
-
export declare const BACKUP_TRANSIENT_STATUSES: BackupStatus[];
|
|
4
|
-
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
|
|
5
|
-
export declare const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: DomainAvailabilityStatus[];
|
|
6
|
-
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
|
7
|
-
export declare const DOMAIN_TRANSIENT_STATUSES: DomainStatus[];
|
|
8
|
-
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
9
|
-
export declare const HOSTING_TRANSIENT_STATUSES: HostingStatus[];
|
package/dist/v1/content.gen.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region src/v1/content.gen.ts
|
|
2
|
-
/** Lists transient statutes of the enum {@link BackupStatus}. */
|
|
3
|
-
const BACKUP_TRANSIENT_STATUSES = ["restoring"];
|
|
4
|
-
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
|
|
5
|
-
const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
|
|
6
|
-
/** Lists transient statutes of the enum {@link DomainStatus}. */
|
|
7
|
-
const DOMAIN_TRANSIENT_STATUSES = ["validating"];
|
|
8
|
-
/** Lists transient statutes of the enum {@link HostingStatus}. */
|
|
9
|
-
const HOSTING_TRANSIENT_STATUSES = [
|
|
10
|
-
"delivering",
|
|
11
|
-
"deleting",
|
|
12
|
-
"migrating",
|
|
13
|
-
"updating",
|
|
14
|
-
"payment_pending"
|
|
15
|
-
];
|
|
16
|
-
//#endregion
|
|
17
|
-
export { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
|
|
2
|
-
export * from './content.gen.js';
|
|
3
|
-
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiGetProgressRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiListRecentProgressesRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, BillingMode, CheckFreeDomainAvailabilityResponse, CheckFreeDomainAvailabilityResponseUnavailableReason, CheckUserOwnsDomainResponse, CommitmentType, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FreeDomain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingDomainsRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiMigrateControlPanelRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiResetHostingRequest, HostingApiUpdateHostingFreeDomainRequest, HostingApiUpdateHostingRequest, HostingCommitment, HostingDomain, HostingDomainCustomDomain, HostingProvider, HostingStatus, HostingSummary, HostingUser, ListBackupItemsResponse, ListBackupsRequestOrderBy, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferCommitment, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, Progress, ProgressStatus, ProgressSummary, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiCreateWebsiteRequest, WebsiteApiDeleteWebsiteRequest, WebsiteApiListWebsitesRequest, WebsiteApiResetWebsiteRequest, } from './types.gen.js';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite } from "./marshalling.gen.js";
|
|
4
|
-
import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
5
|
-
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
-
//#region src/v1/index.gen.ts
|
|
7
|
-
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
BACKUP_TRANSIENT_STATUSES: () => BACKUP_TRANSIENT_STATUSES,
|
|
9
|
-
BackupAPI: () => BackupAPI,
|
|
10
|
-
ControlPanelAPI: () => ControlPanelAPI,
|
|
11
|
-
DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: () => DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
|
|
12
|
-
DOMAIN_TRANSIENT_STATUSES: () => DOMAIN_TRANSIENT_STATUSES,
|
|
13
|
-
DatabaseAPI: () => DatabaseAPI,
|
|
14
|
-
DnsAPI: () => DnsAPI,
|
|
15
|
-
FreeDomainAPI: () => FreeDomainAPI,
|
|
16
|
-
FtpAccountAPI: () => FtpAccountAPI,
|
|
17
|
-
HOSTING_TRANSIENT_STATUSES: () => HOSTING_TRANSIENT_STATUSES,
|
|
18
|
-
HostingAPI: () => HostingAPI,
|
|
19
|
-
MailAccountAPI: () => MailAccountAPI,
|
|
20
|
-
OfferAPI: () => OfferAPI,
|
|
21
|
-
ValidationRules: () => validation_rules_gen_exports,
|
|
22
|
-
WebsiteAPI: () => WebsiteAPI,
|
|
23
|
-
marshalBackupApiRestoreBackupItemsRequest: () => marshalBackupApiRestoreBackupItemsRequest,
|
|
24
|
-
marshalDatabaseApiAssignDatabaseUserRequest: () => marshalDatabaseApiAssignDatabaseUserRequest,
|
|
25
|
-
marshalDatabaseApiChangeDatabaseUserPasswordRequest: () => marshalDatabaseApiChangeDatabaseUserPasswordRequest,
|
|
26
|
-
marshalDatabaseApiCreateDatabaseRequest: () => marshalDatabaseApiCreateDatabaseRequest,
|
|
27
|
-
marshalDatabaseApiCreateDatabaseUserRequest: () => marshalDatabaseApiCreateDatabaseUserRequest,
|
|
28
|
-
marshalDatabaseApiUnassignDatabaseUserRequest: () => marshalDatabaseApiUnassignDatabaseUserRequest,
|
|
29
|
-
marshalDnsApiCheckUserOwnsDomainRequest: () => marshalDnsApiCheckUserOwnsDomainRequest,
|
|
30
|
-
marshalDnsApiSyncDomainDnsRecordsRequest: () => marshalDnsApiSyncDomainDnsRecordsRequest,
|
|
31
|
-
marshalFreeDomainApiCheckFreeDomainAvailabilityRequest: () => marshalFreeDomainApiCheckFreeDomainAvailabilityRequest,
|
|
32
|
-
marshalFtpAccountApiChangeFtpAccountPasswordRequest: () => marshalFtpAccountApiChangeFtpAccountPasswordRequest,
|
|
33
|
-
marshalFtpAccountApiCreateFtpAccountRequest: () => marshalFtpAccountApiCreateFtpAccountRequest,
|
|
34
|
-
marshalHostingApiAddCustomDomainRequest: () => marshalHostingApiAddCustomDomainRequest,
|
|
35
|
-
marshalHostingApiCreateHostingRequest: () => marshalHostingApiCreateHostingRequest,
|
|
36
|
-
marshalHostingApiDeleteHostingDomainsRequest: () => marshalHostingApiDeleteHostingDomainsRequest,
|
|
37
|
-
marshalHostingApiMigrateControlPanelRequest: () => marshalHostingApiMigrateControlPanelRequest,
|
|
38
|
-
marshalHostingApiRemoveCustomDomainRequest: () => marshalHostingApiRemoveCustomDomainRequest,
|
|
39
|
-
marshalHostingApiUpdateHostingFreeDomainRequest: () => marshalHostingApiUpdateHostingFreeDomainRequest,
|
|
40
|
-
marshalHostingApiUpdateHostingRequest: () => marshalHostingApiUpdateHostingRequest,
|
|
41
|
-
marshalMailAccountApiChangeMailAccountPasswordRequest: () => marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
42
|
-
marshalMailAccountApiCreateMailAccountRequest: () => marshalMailAccountApiCreateMailAccountRequest,
|
|
43
|
-
marshalMailAccountApiRemoveMailAccountRequest: () => marshalMailAccountApiRemoveMailAccountRequest,
|
|
44
|
-
marshalWebsiteApiCreateWebsiteRequest: () => marshalWebsiteApiCreateWebsiteRequest,
|
|
45
|
-
unmarshalBackup: () => unmarshalBackup,
|
|
46
|
-
unmarshalCheckFreeDomainAvailabilityResponse: () => unmarshalCheckFreeDomainAvailabilityResponse,
|
|
47
|
-
unmarshalCheckUserOwnsDomainResponse: () => unmarshalCheckUserOwnsDomainResponse,
|
|
48
|
-
unmarshalDatabase: () => unmarshalDatabase,
|
|
49
|
-
unmarshalDatabaseUser: () => unmarshalDatabaseUser,
|
|
50
|
-
unmarshalDnsRecords: () => unmarshalDnsRecords,
|
|
51
|
-
unmarshalDomain: () => unmarshalDomain,
|
|
52
|
-
unmarshalFtpAccount: () => unmarshalFtpAccount,
|
|
53
|
-
unmarshalHosting: () => unmarshalHosting,
|
|
54
|
-
unmarshalHostingSummary: () => unmarshalHostingSummary,
|
|
55
|
-
unmarshalListBackupItemsResponse: () => unmarshalListBackupItemsResponse,
|
|
56
|
-
unmarshalListBackupsResponse: () => unmarshalListBackupsResponse,
|
|
57
|
-
unmarshalListControlPanelsResponse: () => unmarshalListControlPanelsResponse,
|
|
58
|
-
unmarshalListDatabaseUsersResponse: () => unmarshalListDatabaseUsersResponse,
|
|
59
|
-
unmarshalListDatabasesResponse: () => unmarshalListDatabasesResponse,
|
|
60
|
-
unmarshalListFreeRootDomainsResponse: () => unmarshalListFreeRootDomainsResponse,
|
|
61
|
-
unmarshalListFtpAccountsResponse: () => unmarshalListFtpAccountsResponse,
|
|
62
|
-
unmarshalListHostingsResponse: () => unmarshalListHostingsResponse,
|
|
63
|
-
unmarshalListMailAccountsResponse: () => unmarshalListMailAccountsResponse,
|
|
64
|
-
unmarshalListOffersResponse: () => unmarshalListOffersResponse,
|
|
65
|
-
unmarshalListRecentProgressesResponse: () => unmarshalListRecentProgressesResponse,
|
|
66
|
-
unmarshalListWebsitesResponse: () => unmarshalListWebsitesResponse,
|
|
67
|
-
unmarshalMailAccount: () => unmarshalMailAccount,
|
|
68
|
-
unmarshalProgress: () => unmarshalProgress,
|
|
69
|
-
unmarshalResetHostingPasswordResponse: () => unmarshalResetHostingPasswordResponse,
|
|
70
|
-
unmarshalResourceSummary: () => unmarshalResourceSummary,
|
|
71
|
-
unmarshalRestoreBackupItemsResponse: () => unmarshalRestoreBackupItemsResponse,
|
|
72
|
-
unmarshalRestoreBackupResponse: () => unmarshalRestoreBackupResponse,
|
|
73
|
-
unmarshalSearchDomainsResponse: () => unmarshalSearchDomainsResponse,
|
|
74
|
-
unmarshalSession: () => unmarshalSession,
|
|
75
|
-
unmarshalWebsite: () => unmarshalWebsite
|
|
76
|
-
});
|
|
77
|
-
//#endregion
|
|
78
|
-
export { BACKUP_TRANSIENT_STATUSES, BackupAPI, ControlPanelAPI, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HOSTING_TRANSIENT_STATUSES, HostingAPI, MailAccountAPI, OfferAPI, validation_rules_gen_exports as ValidationRules, WebsiteAPI, index_gen_exports, marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite };
|