@mittwald/api-client 3.1.55 → 3.1.57

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/index.mjs DELETED
@@ -1,1182 +0,0 @@
1
- import { ApiClientBase, ApiClientError } from '@mittwald/api-client-commons';
2
- export { assertStatus } from '@mittwald/api-client-commons';
3
- import { a as appExecuteAction, b as appGetApp, c as appGetAppinstallation, d as appUninstallAppinstallation, e as appPatchAppinstallation, f as appGetAppversion, g as appGetInstalledSystemsoftwareForAppinstallation, h as appGetMissingDependenciesForAppinstallation, i as appGetSystemsoftware, j as appGetSystemsoftwareversion, k as appLinkDatabase, l as appListAppinstallations, m as appRequestAppinstallation, n as appListApps, o as appListAppversions, p as appListSystemsoftwares, q as appListSystemsoftwareversions, r as appListUpdateCandidatesForAppversion, s as appRequestAppinstallationCopy, t as appRetrieveStatus, u as appUnlinkDatabase, v as appSetDatabaseUsers, w as articleGetArticle, x as articleListArticles, y as backupCreateProjectBackupExport, z as backupDeleteProjectBackupExport, A as backupListProjectBackupSchedules, B as backupCreateProjectBackupSchedule, C as backupListProjectBackups, D as backupCreateProjectBackup, E as backupGetProjectBackupSchedule, F as backupDeleteProjectBackupSchedule, G as backupUpdateProjectBackupSchedule, H as backupGetProjectBackup, I as backupDeleteProjectBackup, J as backupUpdateProjectBackupDescription, K as contractTerminateContractItem, L as contractCancelContractItemTermination, M as contractCancelContractTariffChange, N as contractTerminateContract, O as contractCancelContractTermination, P as contractGetBaseItemOfContract, Q as contractGetDetailOfContractByDomain, R as contractGetDetailOfContractByProject, S as contractGetDetailOfContractByServer, T as contractGetDetailOfContractItem, U as contractGetDetailOfContract, V as contractGetNextTerminationDateForItem, W as contractListContracts, X as invoiceDetail, Y as invoiceGetDetailOfInvoiceSettings, Z as invoiceUpdateInvoiceSettings, _ as invoiceGetFileAccessToken, $ as invoiceListCustomerInvoices, a0 as orderCreateOrder, a1 as orderCreateTariffChange, a2 as orderGetOrder, a3 as orderListCustomerOrders, a4 as orderListProjectOrders, a5 as orderPreviewOrder, a6 as orderPreviewTariffChange, a7 as conversationListConversations, a8 as conversationCreateConversation, a9 as conversationListMessagesByConversation, aa as conversationCreateMessage, ab as conversationGetCategory, ac as conversationGetConversationMembers, ad as conversationGetConversation, ae as conversationUpdateConversation, af as conversationGetFileAccessToken, ag as conversationListCategories, ah as conversationRequestFileUpload, ai as conversationSetConversationStatus, aj as conversationUpdateMessage, ak as cronjobAbortExecution, al as cronjobListCronjobs, am as cronjobCreateCronjob, an as cronjobListExecutions, ao as cronjobCreateExecution, ap as cronjobGetCronjob, aq as cronjobDeleteCronjob, ar as cronjobUpdateCronjob, as as cronjobGetExecution, at as cronjobUpdateCronjobAppId, au as customerAcceptCustomerInvite, av as customerListOfCustomerCategories, aw as customerCreateCategory, ax as customerCreateCustomerInvite, ay as customerListCustomers, az as customerCreateCustomer, aA as customerDeclineCustomerInvite, aB as customerGetCustomerCategory, aC as customerUpdateCategory, aD as customerDeleteCategory, aE as customerGetCustomerInvite, aF as customerDeleteCustomerInvite, aG as customerGetCustomerMembership, aH as customerDeleteCustomerMembership, aI as customerUpdateCustomerMembership, aJ as customerGetCustomer, aK as customerUpdateCustomer, aL as customerDeleteCustomer, aM as customerGetCustomerTokenInvite, aN as customerIsCustomerLegallyCompetent, aO as customerLeaveCustomer, aP as customerListCustomerInvites, aQ as customerListCustomerMemberships, aR as customerListInvitesForCustomer, aS as customerListMembershipsForCustomer, aT as customerRequestAvatarUpload, aU as customerRemoveAvatar, aV as customerResendCustomerInviteMail, aW as databaseListMysqlDatabases, aX as databaseCreateMysqlDatabase, aY as databaseListMysqlUsers, aZ as databaseCreateMysqlUser, a_ as databaseListRedisDatabases, a$ as databaseCreateRedisDatabase, b0 as databaseGetMysqlDatabase, b1 as databaseDeleteMysqlDatabase, b2 as databaseGetMysqlUser, b3 as databaseUpdateMysqlUser, b4 as databaseDeleteMysqlUser, b5 as databaseGetRedisDatabase, b6 as databaseDeleteRedisDatabase, b7 as databaseDisableMysqlUser, b8 as databaseEnableMysqlUser, b9 as databaseGetMysqlUserPhpMyAdminUrl, ba as databaseListMysqlCharsets, bb as databaseListMysqlVersions, bc as databaseListRedisVersions, bd as databaseUpdateMysqlDatabaseDefaultCharset, be as databaseUpdateMysqlDatabaseDescription, bf as databaseUpdateMysqlUserPassword, bg as databaseUpdateRedisDatabaseConfiguration, bh as databaseUpdateRedisDatabaseDescription, bi as newsletterSubscribeUser, bj as newsletterGetInfo, bk as newsletterUnsubscribeUser, bl as notificationsCountUnreadNotifications, bm as notificationsListNotifications, bn as notificationsReadAllNotifications, bo as notificationsReadNotification, bp as dnsCreateDnsZone, bq as dnsGetDnsZone, br as dnsDeleteDnsZone, bs as dnsListDnsZones, bt as dnsSetRecordSetManaged, bu as dnsUpdateRecordSet, bv as domainAbortDomainDeclaration, bw as domainCheckDomainRegistrability, bx as domainListDomains, by as domainCreateDomainAuthCode, bz as domainUpdateDomainNameservers, bA as domainGetDomain, bB as domainDeleteDomain, bC as domainGetLatestScreenshot, bD as domainListTldContactSchemas, bE as domainListTlds, bF as domainResendDomainEmail, bG as domainUpdateDomainAuthCode, bH as domainUpdateDomainContact, bI as domainUpdateDomainProjectId, bJ as ingressListIngresses, bK as ingressCreateIngress, bL as ingressGetIngress, bM as ingressDeleteIngress, bN as ingressIngressVerifyOwnership, bO as ingressUpdateIngressPaths, bP as ingressRequestIngressAcmeCertificateIssuance, bQ as ingressUpdateIngressTls, bR as fileCreateFile, bS as fileGetFileMeta, bT as fileGetFileUploadTokenRules, bU as fileGetFileUploadTypeRules, bV as fileGetFile, bW as mailListDeliveryBoxes, bX as mailCreateDeliverybox, bY as mailListMailAddresses, bZ as mailCreateMailAddress, b_ as mailGetDeliveryBox, b$ as mailDeleteDeliveryBox, c0 as mailGetMailAddress, c1 as mailDeleteMailAddress, c2 as mailListProjectMailSettings, c3 as mailUpdateDeliveryBoxDescription, c4 as mailUpdateDeliveryBoxPassword, c5 as mailUpdateMailAddressAddress, c6 as mailUpdateMailAddressAutoresponder, c7 as mailUpdateMailAddressCatchAll, c8 as mailUpdateMailAddressForwardAddresses, c9 as mailUpdateMailAddressPassword, ca as mailUpdateMailAddressQuota, cb as mailUpdateMailAddressSpamProtection, cc as mailUpdateProjectMailSetting, cd as pageinsightsGetPerformanceData, ce as pageinsightsGetStraceData, cf as pageinsightsListPerformanceDataForProject, cg as pageinsightsScheduleStrace, ch as passwordValidationGetPasswordPolicy, ci as userAddPhoneNumber, cj as userRemovePhoneNumber, ck as userAuthenticateMfa, cl as userAuthenticate, cm as userAuthenticateWithAccessTokenRetrievalKey, cn as userGetOwnEmail, co as userChangeEmail, cp as userChangePassword, cq as userCheckToken, cr as userGetMfaStatus, cs as userResetRecoverycodes, ct as userConfirmMfa, cu as userDisableMfa, cv as userConfirmPasswordReset, cw as userCreateAccessTokenRetrievalKey, cx as userListApiTokens, cy as userCreateApiToken, cz as userCreateFeedback, cA as userListSshKeys, cB as userCreateSshKey, cC as userGetApiToken, cD as userEditApiToken, cE as userDeleteApiToken, cF as userGetSshKey, cG as userEditSshKey, cH as userDeleteSshKey, cI as userDeleteUser, cJ as userGetOwnAccount, cK as userUpdateAccount, cL as userGetPasswordUpdatedAt, cM as userGetPersonalizedSettings, cN as userUpdatePersonalizedSettings, cO as userGetPollStatus, cP as userPostPollStatus, cQ as userGetSession, cR as userTerminateSession, cS as userGetUser, cT as userUpdatePersonalInformation, cU as userInitMfa, cV as userInitPasswordReset, cW as userListFeedback, cX as userListSessions, cY as userTerminateAllSessions, cZ as userLogout, c_ as userOauthGetAuthorization, c$ as userOauthRetrieveAccessToken, d0 as userRegister, d1 as userRequestAvatarUpload, d2 as userRemoveAvatar, d3 as userResendVerificationEmail, d4 as userSupportCodeRequest, d5 as userVerifyEmail, d6 as userVerifyPhoneNumber, d7 as userVerifyRegistration, d8 as projectAcceptProjectInvite, d9 as projectListInvitesForProject, da as projectCreateProjectInvite, db as projectCreateProject, dc as projectDeclineProjectInvite, dd as projectRequestProjectAvatarUpload, de as projectDeleteProjectAvatar, df as projectGetProjectInvite, dg as projectDeleteProjectInvite, dh as projectGetProjectMembership, di as projectDeleteProjectMembership, dj as projectUpdateProjectMembership, dk as projectGetProject, dl as projectDeleteProject, dm as projectRequestServerAvatarUpload, dn as projectDeleteServerAvatar, dp as projectGetProjectTokenInvite, dq as projectGetSelfMembershipForProject, dr as projectGetServer, ds as projectLeaveProject, dt as projectListMembershipsForProject, du as projectListProjectInvites, dv as projectListProjectMemberships, dw as projectListProjects, dx as projectListServers, dy as projectResendProjectInviteMail, dz as projectUpdateProjectDescription, dA as projectUpdateServerDescription, dB as projectFileSystemGetDirectories, dC as projectFileSystemGetDiskUsage, dD as projectFileSystemGetFileContent, dE as projectFileSystemGetJwt, dF as projectFileSystemListFiles, dG as relocationCreateLegacyTariffChange, dH as relocationCreateRelocation, dI as sftpUserListSftpUsers, dJ as sftpUserCreateSftpUser, dK as sftpUserGetSftpUser, dL as sftpUserDeleteSftpUser, dM as sftpUserUpdateSftpUser, dN as sshUserListSshUsers, dO as sshUserCreateSshUser, dP as sshUserGetSshUser, dQ as sshUserDeleteSshUser, dR as sshUserUpdateSshUser } from './shared/api-client.f43cba45.mjs';
4
- import { isBrowser } from 'browser-or-node';
5
-
6
- var __defProp$1 = Object.defineProperty;
7
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __publicField$1 = (obj, key, value) => {
9
- __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
10
- return value;
11
- };
12
- class MittwaldAPIV2Client extends ApiClientBase {
13
- constructor() {
14
- super(...arguments);
15
- /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
16
- __publicField$1(this, "app", {
17
- /** Trigger a runtime action belonging to an AppInstallation. */
18
- executeAction: this.requestFunctionFactory(appExecuteAction),
19
- /** Get an App. */
20
- getApp: this.requestFunctionFactory(appGetApp),
21
- /** Get an AppInstallation. */
22
- getAppinstallation: this.requestFunctionFactory(
23
- appGetAppinstallation
24
- ),
25
- /** Trigger an uninstallation process for an AppInstallation. */
26
- uninstallAppinstallation: this.requestFunctionFactory(
27
- appUninstallAppinstallation
28
- ),
29
- /** Update properties belonging to an AppInstallation. */
30
- patchAppinstallation: this.requestFunctionFactory(
31
- appPatchAppinstallation
32
- ),
33
- /** Get an AppVersion. */
34
- getAppversion: this.requestFunctionFactory(appGetAppversion),
35
- /** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
36
- getInstalledSystemsoftwareForAppinstallation: this.requestFunctionFactory(
37
- appGetInstalledSystemsoftwareForAppinstallation
38
- ),
39
- /** Get the missing requirements of an appInstallation for a specific target AppVersion. */
40
- getMissingDependenciesForAppinstallation: this.requestFunctionFactory(
41
- appGetMissingDependenciesForAppinstallation
42
- ),
43
- /** Get a SystemSoftware. */
44
- getSystemsoftware: this.requestFunctionFactory(
45
- appGetSystemsoftware
46
- ),
47
- /** Get a SystemSoftwareVersion. */
48
- getSystemsoftwareversion: this.requestFunctionFactory(
49
- appGetSystemsoftwareversion
50
- ),
51
- /** Create linkage between an AppInstallation and a MySQLDatabase. */
52
- linkDatabase: this.requestFunctionFactory(appLinkDatabase),
53
- /** List AppInstallations belonging to a Project. */
54
- listAppinstallations: this.requestFunctionFactory(
55
- appListAppinstallations
56
- ),
57
- /** Request an AppInstallation. */
58
- requestAppinstallation: this.requestFunctionFactory(
59
- appRequestAppinstallation
60
- ),
61
- /** List Apps. */
62
- listApps: this.requestFunctionFactory(appListApps),
63
- /** List AppVersions belonging to an App. */
64
- listAppversions: this.requestFunctionFactory(
65
- appListAppversions
66
- ),
67
- /** List SystemSoftwares. */
68
- listSystemsoftwares: this.requestFunctionFactory(
69
- appListSystemsoftwares
70
- ),
71
- /** List SystemSoftwareVersions belonging to a SystemSoftware. */
72
- listSystemsoftwareversions: this.requestFunctionFactory(
73
- appListSystemsoftwareversions
74
- ),
75
- /** List update candidates belonging to an AppVersion. */
76
- listUpdateCandidatesForAppversion: this.requestFunctionFactory(
77
- appListUpdateCandidatesForAppversion
78
- ),
79
- /** Request a copy of an AppInstallation. */
80
- requestAppinstallationCopy: this.requestFunctionFactory(
81
- appRequestAppinstallationCopy
82
- ),
83
- /** Get runtime status belonging to an AppInstallation. */
84
- retrieveStatus: this.requestFunctionFactory(appRetrieveStatus),
85
- /** Remove linkage between an AppInstallation and a Database. */
86
- unlinkDatabase: this.requestFunctionFactory(appUnlinkDatabase),
87
- /** Create linkage between an AppInstallation and DatabaseUsers. */
88
- setDatabaseUsers: this.requestFunctionFactory(
89
- appSetDatabaseUsers
90
- )
91
- });
92
- /** The article API allows you to read article information. */
93
- __publicField$1(this, "article", {
94
- /** Get an Article. */
95
- getArticle: this.requestFunctionFactory(articleGetArticle),
96
- /** List Articles. */
97
- listArticles: this.requestFunctionFactory(articleListArticles)
98
- });
99
- /** The backup API allows you to manage your project backups. */
100
- __publicField$1(this, "backup", {
101
- /** Export a ProjectBackup for download. */
102
- createProjectBackupExport: this.requestFunctionFactory(
103
- backupCreateProjectBackupExport
104
- ),
105
- /** Delete a ProjectBackupExport. */
106
- deleteProjectBackupExport: this.requestFunctionFactory(
107
- backupDeleteProjectBackupExport
108
- ),
109
- /** List BackupSchedules belonging to a Project. */
110
- listProjectBackupSchedules: this.requestFunctionFactory(
111
- backupListProjectBackupSchedules
112
- ),
113
- /** Create a BackupSchedule for a Project. */
114
- createProjectBackupSchedule: this.requestFunctionFactory(
115
- backupCreateProjectBackupSchedule
116
- ),
117
- /** List Backups belonging to a Project. */
118
- listProjectBackups: this.requestFunctionFactory(
119
- backupListProjectBackups
120
- ),
121
- /** Create a Backup of a Project. */
122
- createProjectBackup: this.requestFunctionFactory(
123
- backupCreateProjectBackup
124
- ),
125
- /** Get a ProjectBackupSchedule. */
126
- getProjectBackupSchedule: this.requestFunctionFactory(
127
- backupGetProjectBackupSchedule
128
- ),
129
- /** Delete a ProjectBackupSchedule. */
130
- deleteProjectBackupSchedule: this.requestFunctionFactory(
131
- backupDeleteProjectBackupSchedule
132
- ),
133
- /** Update a ProjectBackupSchedule. */
134
- updateProjectBackupSchedule: this.requestFunctionFactory(
135
- backupUpdateProjectBackupSchedule
136
- ),
137
- /** Get a ProjectBackup. */
138
- getProjectBackup: this.requestFunctionFactory(
139
- backupGetProjectBackup
140
- ),
141
- /** Delete a ProjectBackup. */
142
- deleteProjectBackup: this.requestFunctionFactory(
143
- backupDeleteProjectBackup
144
- ),
145
- /** Change the description of a ProjectBackup. */
146
- updateProjectBackupDescription: this.requestFunctionFactory(
147
- backupUpdateProjectBackupDescription
148
- )
149
- });
150
- /** The contract API allows you to manage your contracts and orders */
151
- __publicField$1(this, "contract", {
152
- /** Schedule the Termination of a ContractItem. */
153
- terminateContractItem: this.requestFunctionFactory(
154
- contractTerminateContractItem
155
- ),
156
- /** Cancel the Termination for the referred ContractItem. */
157
- cancelContractItemTermination: this.requestFunctionFactory(
158
- contractCancelContractItemTermination
159
- ),
160
- /** Cancel the TariffChange for the referred ContractItem. */
161
- cancelContractTariffChange: this.requestFunctionFactory(
162
- contractCancelContractTariffChange
163
- ),
164
- /** Schedule the Termination of a Contract. */
165
- terminateContract: this.requestFunctionFactory(
166
- contractTerminateContract
167
- ),
168
- /** Cancel the Termination for the referred Contract. */
169
- cancelContractTermination: this.requestFunctionFactory(
170
- contractCancelContractTermination
171
- ),
172
- /** Return the BaseItem of the Contract with the given ID. */
173
- getBaseItemOfContract: this.requestFunctionFactory(
174
- contractGetBaseItemOfContract
175
- ),
176
- /** Return the Contract for the given Domain. */
177
- getDetailOfContractByDomain: this.requestFunctionFactory(
178
- contractGetDetailOfContractByDomain
179
- ),
180
- /** Return the Contract for the given Project. */
181
- getDetailOfContractByProject: this.requestFunctionFactory(
182
- contractGetDetailOfContractByProject
183
- ),
184
- /** Return the Contract for the given Server. */
185
- getDetailOfContractByServer: this.requestFunctionFactory(
186
- contractGetDetailOfContractByServer
187
- ),
188
- /** Get the ContractItem with the given ID. */
189
- getDetailOfContractItem: this.requestFunctionFactory(
190
- contractGetDetailOfContractItem
191
- ),
192
- /** Returns the Contract with the given ID. */
193
- getDetailOfContract: this.requestFunctionFactory(
194
- contractGetDetailOfContract
195
- ),
196
- /** Return the next TerminationDate for the ContractItem with the given ID. */
197
- getNextTerminationDateForItem: this.requestFunctionFactory(
198
- contractGetNextTerminationDateForItem
199
- ),
200
- /** Return a list of Contracts for the given Customer. */
201
- listContracts: this.requestFunctionFactory(
202
- contractListContracts
203
- ),
204
- /** Get details of an Invoice. */
205
- invoiceDetail: this.requestFunctionFactory(invoiceDetail),
206
- /** Get InvoiceSettings of a Customer. */
207
- invoiceGetDetailOfInvoiceSettings: this.requestFunctionFactory(
208
- invoiceGetDetailOfInvoiceSettings
209
- ),
210
- /** Update InvoiceSettings of a Customer. */
211
- invoiceUpdateInvoiceSettings: this.requestFunctionFactory(
212
- invoiceUpdateInvoiceSettings
213
- ),
214
- /** Request an Access Token for the Invoice file. */
215
- invoiceGetFileAccessToken: this.requestFunctionFactory(
216
- invoiceGetFileAccessToken
217
- ),
218
- /** List Invoices of a Customer. */
219
- invoiceListCustomerInvoices: this.requestFunctionFactory(
220
- invoiceListCustomerInvoices
221
- ),
222
- /** Create an Order. */
223
- orderCreateOrder: this.requestFunctionFactory(orderCreateOrder),
224
- /** Create TariffChange Order. */
225
- orderCreateTariffChange: this.requestFunctionFactory(
226
- orderCreateTariffChange
227
- ),
228
- /** Get Order for Customer. */
229
- orderGetOrder: this.requestFunctionFactory(orderGetOrder),
230
- /** Get list of Orders of a Customer. */
231
- orderListCustomerOrders: this.requestFunctionFactory(
232
- orderListCustomerOrders
233
- ),
234
- /** Get list of Orders of a Project. */
235
- orderListProjectOrders: this.requestFunctionFactory(
236
- orderListProjectOrders
237
- ),
238
- /** Preview Order. */
239
- orderPreviewOrder: this.requestFunctionFactory(
240
- orderPreviewOrder
241
- ),
242
- /** Preview TariffChange. */
243
- orderPreviewTariffChange: this.requestFunctionFactory(
244
- orderPreviewTariffChange
245
- )
246
- });
247
- /** The conversation API allows you to manage your support conversations. */
248
- __publicField$1(this, "conversation", {
249
- /** Get all conversation the authenticated user has created or has access to. */
250
- listConversations: this.requestFunctionFactory(
251
- conversationListConversations
252
- ),
253
- /** Create a conversation. */
254
- createConversation: this.requestFunctionFactory(
255
- conversationCreateConversation
256
- ),
257
- /** Get all message of the conversation. */
258
- listMessagesByConversation: this.requestFunctionFactory(
259
- conversationListMessagesByConversation
260
- ),
261
- /** Send a new message in the conversation. */
262
- createMessage: this.requestFunctionFactory(
263
- conversationCreateMessage
264
- ),
265
- /** Get a specific conversation category. */
266
- getCategory: this.requestFunctionFactory(
267
- conversationGetCategory
268
- ),
269
- /** Get members of a support conversation. */
270
- getConversationMembers: this.requestFunctionFactory(
271
- conversationGetConversationMembers
272
- ),
273
- /** Get a support conversation. */
274
- getConversation: this.requestFunctionFactory(
275
- conversationGetConversation
276
- ),
277
- /** Update the basic properties of the conversation. */
278
- updateConversation: this.requestFunctionFactory(
279
- conversationUpdateConversation
280
- ),
281
- /** Request an access token for the File belonging to the Conversation. */
282
- getFileAccessToken: this.requestFunctionFactory(
283
- conversationGetFileAccessToken
284
- ),
285
- /** Get all conversation categories. */
286
- listCategories: this.requestFunctionFactory(
287
- conversationListCategories
288
- ),
289
- /** Request a file upload token for the conversation. */
290
- requestFileUpload: this.requestFunctionFactory(
291
- conversationRequestFileUpload
292
- ),
293
- /** Update the status of a conversation. */
294
- setConversationStatus: this.requestFunctionFactory(
295
- conversationSetConversationStatus
296
- ),
297
- /** Update the content of the message */
298
- updateMessage: this.requestFunctionFactory(
299
- conversationUpdateMessage
300
- )
301
- });
302
- /** The cronjob API allows you to manage cronjobs within a project. */
303
- __publicField$1(this, "cronjob", {
304
- /** Abort a CronjobExecution. */
305
- abortExecution: this.requestFunctionFactory(
306
- cronjobAbortExecution
307
- ),
308
- /** List Cronjobs belonging to a Project. */
309
- listCronjobs: this.requestFunctionFactory(cronjobListCronjobs),
310
- /** Create a Cronjob. */
311
- createCronjob: this.requestFunctionFactory(
312
- cronjobCreateCronjob
313
- ),
314
- /** List CronjobExecutions belonging to a Cronjob. */
315
- listExecutions: this.requestFunctionFactory(
316
- cronjobListExecutions
317
- ),
318
- /** Trigger a Cronjob. */
319
- createExecution: this.requestFunctionFactory(
320
- cronjobCreateExecution
321
- ),
322
- /** Get a Cronjob. */
323
- getCronjob: this.requestFunctionFactory(cronjobGetCronjob),
324
- /** Delete a Cronjob. */
325
- deleteCronjob: this.requestFunctionFactory(
326
- cronjobDeleteCronjob
327
- ),
328
- /** Update a Cronjob. */
329
- updateCronjob: this.requestFunctionFactory(
330
- cronjobUpdateCronjob
331
- ),
332
- /** Get a CronjobExecution. */
333
- getExecution: this.requestFunctionFactory(cronjobGetExecution),
334
- /** Update a Cronjob's app id. */
335
- updateCronjobAppId: this.requestFunctionFactory(
336
- cronjobUpdateCronjobAppId
337
- )
338
- });
339
- /** The customer API allows you to manage your own organizations and users. */
340
- __publicField$1(this, "customer", {
341
- /** Accept a CustomerInvite. */
342
- acceptCustomerInvite: this.requestFunctionFactory(
343
- customerAcceptCustomerInvite
344
- ),
345
- /** Get all customer categories. */
346
- listOfCustomerCategories: this.requestFunctionFactory(
347
- customerListOfCustomerCategories
348
- ),
349
- /** Create a new customer category. */
350
- createCategory: this.requestFunctionFactory(
351
- customerCreateCategory
352
- ),
353
- /** Create a CustomerInvite. */
354
- createCustomerInvite: this.requestFunctionFactory(
355
- customerCreateCustomerInvite
356
- ),
357
- /** Get all customer profiles the authenticated user has access to. */
358
- listCustomers: this.requestFunctionFactory(
359
- customerListCustomers
360
- ),
361
- /** Create a new customer profile. */
362
- createCustomer: this.requestFunctionFactory(
363
- customerCreateCustomer
364
- ),
365
- /** Decline a CustomerInvite. */
366
- declineCustomerInvite: this.requestFunctionFactory(
367
- customerDeclineCustomerInvite
368
- ),
369
- /** Get a customer category. */
370
- getCustomerCategory: this.requestFunctionFactory(
371
- customerGetCustomerCategory
372
- ),
373
- /** Update a customer category. */
374
- updateCategory: this.requestFunctionFactory(
375
- customerUpdateCategory
376
- ),
377
- /** Delete a customer category. */
378
- deleteCategory: this.requestFunctionFactory(
379
- customerDeleteCategory
380
- ),
381
- /** Get a CustomerInvite. */
382
- getCustomerInvite: this.requestFunctionFactory(
383
- customerGetCustomerInvite
384
- ),
385
- /** Delete a CustomerInvite. */
386
- deleteCustomerInvite: this.requestFunctionFactory(
387
- customerDeleteCustomerInvite
388
- ),
389
- /** Get a CustomerMembership. */
390
- getCustomerMembership: this.requestFunctionFactory(
391
- customerGetCustomerMembership
392
- ),
393
- /** Delete a CustomerMembership. */
394
- deleteCustomerMembership: this.requestFunctionFactory(
395
- customerDeleteCustomerMembership
396
- ),
397
- /** Update a CustomerMembership. */
398
- updateCustomerMembership: this.requestFunctionFactory(
399
- customerUpdateCustomerMembership
400
- ),
401
- /** Get a customer profile. */
402
- getCustomer: this.requestFunctionFactory(customerGetCustomer),
403
- /** Update a customer profile. */
404
- updateCustomer: this.requestFunctionFactory(
405
- customerUpdateCustomer
406
- ),
407
- /** Delete a customer profile. */
408
- deleteCustomer: this.requestFunctionFactory(
409
- customerDeleteCustomer
410
- ),
411
- /** Get a CustomerInvite by token. */
412
- getCustomerTokenInvite: this.requestFunctionFactory(
413
- customerGetCustomerTokenInvite
414
- ),
415
- /** Check if the customer profile has a valid contract partner configured. */
416
- isCustomerLegallyCompetent: this.requestFunctionFactory(
417
- customerIsCustomerLegallyCompetent
418
- ),
419
- /** Leave a Customer. */
420
- leaveCustomer: this.requestFunctionFactory(
421
- customerLeaveCustomer
422
- ),
423
- /** List CustomerInvites belonging to the executing user. */
424
- listCustomerInvites: this.requestFunctionFactory(
425
- customerListCustomerInvites
426
- ),
427
- /** List CustomerMemberships belonging to the executing user. */
428
- listCustomerMemberships: this.requestFunctionFactory(
429
- customerListCustomerMemberships
430
- ),
431
- /** List Invites belonging to a Customer. */
432
- listInvitesForCustomer: this.requestFunctionFactory(
433
- customerListInvitesForCustomer
434
- ),
435
- /** List Memberships belonging to a Customer. */
436
- listMembershipsForCustomer: this.requestFunctionFactory(
437
- customerListMembershipsForCustomer
438
- ),
439
- /** Request a new avatar upload for the customer profile. */
440
- requestAvatarUpload: this.requestFunctionFactory(
441
- customerRequestAvatarUpload
442
- ),
443
- /** Remove the avatar picture of the customer profile. */
444
- removeAvatar: this.requestFunctionFactory(customerRemoveAvatar),
445
- /** Resend the mail for a CustomerInvite. */
446
- resendCustomerInviteMail: this.requestFunctionFactory(
447
- customerResendCustomerInviteMail
448
- )
449
- });
450
- /** The database API allows you to manage your databases, like MySQL and Redis databases. */
451
- __publicField$1(this, "database", {
452
- /** List MySQLDatabases belonging to a Project. */
453
- listMysqlDatabases: this.requestFunctionFactory(
454
- databaseListMysqlDatabases
455
- ),
456
- /** Create a MySQLDatabase with a MySQLUser. */
457
- createMysqlDatabase: this.requestFunctionFactory(
458
- databaseCreateMysqlDatabase
459
- ),
460
- /** List MySQLUsers belonging to a Database. */
461
- listMysqlUsers: this.requestFunctionFactory(
462
- databaseListMysqlUsers
463
- ),
464
- /** Create a MySQLUser. */
465
- createMysqlUser: this.requestFunctionFactory(
466
- databaseCreateMysqlUser
467
- ),
468
- /** List RedisDatabases belonging to a Project. */
469
- listRedisDatabases: this.requestFunctionFactory(
470
- databaseListRedisDatabases
471
- ),
472
- /** Create a RedisDatabase. */
473
- createRedisDatabase: this.requestFunctionFactory(
474
- databaseCreateRedisDatabase
475
- ),
476
- /** Get a MySQLDatabase. */
477
- getMysqlDatabase: this.requestFunctionFactory(
478
- databaseGetMysqlDatabase
479
- ),
480
- /** Delete a MySQLDatabase. */
481
- deleteMysqlDatabase: this.requestFunctionFactory(
482
- databaseDeleteMysqlDatabase
483
- ),
484
- /** Get a MySQLUser. */
485
- getMysqlUser: this.requestFunctionFactory(databaseGetMysqlUser),
486
- /** Update a MySQLUser. */
487
- updateMysqlUser: this.requestFunctionFactory(
488
- databaseUpdateMysqlUser
489
- ),
490
- /** Delete a MySQLUser. */
491
- deleteMysqlUser: this.requestFunctionFactory(
492
- databaseDeleteMysqlUser
493
- ),
494
- /** Get a RedisDatabase. */
495
- getRedisDatabase: this.requestFunctionFactory(
496
- databaseGetRedisDatabase
497
- ),
498
- /** Delete a RedisDatabase. */
499
- deleteRedisDatabase: this.requestFunctionFactory(
500
- databaseDeleteRedisDatabase
501
- ),
502
- /** Disable a MySQLUser. */
503
- disableMysqlUser: this.requestFunctionFactory(
504
- databaseDisableMysqlUser
505
- ),
506
- /** Enable a MySQLUser. */
507
- enableMysqlUser: this.requestFunctionFactory(
508
- databaseEnableMysqlUser
509
- ),
510
- /** Get a MySQLUser's PhpMyAdmin-URL. */
511
- getMysqlUserPhpMyAdminUrl: this.requestFunctionFactory(
512
- databaseGetMysqlUserPhpMyAdminUrl
513
- ),
514
- /** List available MySQL character sets and collations, optionally filtered by a MySQLVersion. */
515
- listMysqlCharsets: this.requestFunctionFactory(
516
- databaseListMysqlCharsets
517
- ),
518
- /** List MySQLVersions. */
519
- listMysqlVersions: this.requestFunctionFactory(
520
- databaseListMysqlVersions
521
- ),
522
- /** List RedisVersions. */
523
- listRedisVersions: this.requestFunctionFactory(
524
- databaseListRedisVersions
525
- ),
526
- /** Update a MySQLDatabase's default character settings. */
527
- updateMysqlDatabaseDefaultCharset: this.requestFunctionFactory(
528
- databaseUpdateMysqlDatabaseDefaultCharset
529
- ),
530
- /** Update a MySQLDatabase's description. */
531
- updateMysqlDatabaseDescription: this.requestFunctionFactory(
532
- databaseUpdateMysqlDatabaseDescription
533
- ),
534
- /** Update a MySQLUser's password. */
535
- updateMysqlUserPassword: this.requestFunctionFactory(
536
- databaseUpdateMysqlUserPassword
537
- ),
538
- /** Update a RedisDatabase's configuration. */
539
- updateRedisDatabaseConfiguration: this.requestFunctionFactory(
540
- databaseUpdateRedisDatabaseConfiguration
541
- ),
542
- /** Update a RedisDatabase's description. */
543
- updateRedisDatabaseDescription: this.requestFunctionFactory(
544
- databaseUpdateRedisDatabaseDescription
545
- )
546
- });
547
- /** The notification API allows you to manage your notifications. */
548
- __publicField$1(this, "notification", {
549
- /** Subscribe a user to the mStudio newsletter. */
550
- newsletterSubscribeUser: this.requestFunctionFactory(
551
- newsletterSubscribeUser
552
- ),
553
- /** Getting the subscription status of the subscription. */
554
- newsletterGetInfo: this.requestFunctionFactory(
555
- newsletterGetInfo
556
- ),
557
- /** Unsubscribe a user from the mStudio newsletter. */
558
- newsletterUnsubscribeUser: this.requestFunctionFactory(
559
- newsletterUnsubscribeUser
560
- ),
561
- /** Get the counts for unread notifications of the user. */
562
- scountUnreadNotifications: this.requestFunctionFactory(
563
- notificationsCountUnreadNotifications
564
- ),
565
- /** List all unread notifications. */
566
- slistNotifications: this.requestFunctionFactory(
567
- notificationsListNotifications
568
- ),
569
- /** Mark all notifications as read. */
570
- sreadAllNotifications: this.requestFunctionFactory(
571
- notificationsReadAllNotifications
572
- ),
573
- /** Mark notification as read. */
574
- sreadNotification: this.requestFunctionFactory(
575
- notificationsReadNotification
576
- )
577
- });
578
- /** The domain API allows you to manage your domains, DNS records and ingress resources. */
579
- __publicField$1(this, "domain", {
580
- /** Create a DNSZone. */
581
- dnsCreateDnsZone: this.requestFunctionFactory(dnsCreateDnsZone),
582
- /** Get a DNSZone. */
583
- dnsGetDnsZone: this.requestFunctionFactory(dnsGetDnsZone),
584
- /** Delete a DNSZone. */
585
- dnsDeleteDnsZone: this.requestFunctionFactory(dnsDeleteDnsZone),
586
- /** List DNSZones belonging to a Project. */
587
- dnsListDnsZones: this.requestFunctionFactory(dnsListDnsZones),
588
- /** Set a record set on a DNSZone to managed. */
589
- dnsSetRecordSetManaged: this.requestFunctionFactory(
590
- dnsSetRecordSetManaged
591
- ),
592
- /** Update a record set on a DNSZone. */
593
- dnsUpdateRecordSet: this.requestFunctionFactory(
594
- dnsUpdateRecordSet
595
- ),
596
- /** Abort a Domain declaration. */
597
- abortDomainDeclaration: this.requestFunctionFactory(
598
- domainAbortDomainDeclaration
599
- ),
600
- /** Check if a Domain is available to register. */
601
- checkDomainRegistrability: this.requestFunctionFactory(
602
- domainCheckDomainRegistrability
603
- ),
604
- /** List Domains */
605
- listDomains: this.requestFunctionFactory(domainListDomains),
606
- /** Create an auth code for a Domains transfer-out process. */
607
- createDomainAuthCode: this.requestFunctionFactory(
608
- domainCreateDomainAuthCode
609
- ),
610
- /** Update the nameservers of a Domain. */
611
- updateDomainNameservers: this.requestFunctionFactory(
612
- domainUpdateDomainNameservers
613
- ),
614
- /** Get a Domain. */
615
- getDomain: this.requestFunctionFactory(domainGetDomain),
616
- /** Delete a Domain. */
617
- deleteDomain: this.requestFunctionFactory(domainDeleteDomain),
618
- /** Get the latest screenshot's FileReference belonging to a Domain. */
619
- getLatestScreenshot: this.requestFunctionFactory(
620
- domainGetLatestScreenshot
621
- ),
622
- /** List the contact schemas for a TLD. */
623
- listTldContactSchemas: this.requestFunctionFactory(
624
- domainListTldContactSchemas
625
- ),
626
- /** List TLDs. */
627
- listTlds: this.requestFunctionFactory(domainListTlds),
628
- /** Resend a Domain email. */
629
- resendDomainEmail: this.requestFunctionFactory(
630
- domainResendDomainEmail
631
- ),
632
- /** Update the auth code of a Domain. */
633
- updateDomainAuthCode: this.requestFunctionFactory(
634
- domainUpdateDomainAuthCode
635
- ),
636
- /** Update a contact of a Domain. */
637
- updateDomainContact: this.requestFunctionFactory(
638
- domainUpdateDomainContact
639
- ),
640
- /** Update a Domain's project id. */
641
- updateDomainProjectId: this.requestFunctionFactory(
642
- domainUpdateDomainProjectId
643
- ),
644
- /** List Ingresses. */
645
- ingressListIngresses: this.requestFunctionFactory(
646
- ingressListIngresses
647
- ),
648
- /** Create an Ingress. */
649
- ingressCreateIngress: this.requestFunctionFactory(
650
- ingressCreateIngress
651
- ),
652
- /** Get an Ingress. */
653
- ingressGetIngress: this.requestFunctionFactory(
654
- ingressGetIngress
655
- ),
656
- /** Delete an Ingress. */
657
- ingressDeleteIngress: this.requestFunctionFactory(
658
- ingressDeleteIngress
659
- ),
660
- /** Verifiy the ownership of an Ingress. */
661
- ingressIngressVerifyOwnership: this.requestFunctionFactory(
662
- ingressIngressVerifyOwnership
663
- ),
664
- /** Update the paths of an Ingress. */
665
- ingressUpdateIngressPaths: this.requestFunctionFactory(
666
- ingressUpdateIngressPaths
667
- ),
668
- /** Request the ACME certificate issuance of an Ingress. */
669
- ingressRequestIngressAcmeCertificateIssuance: this.requestFunctionFactory(
670
- ingressRequestIngressAcmeCertificateIssuance
671
- ),
672
- /** Update the tls settings of an Ingress. */
673
- ingressUpdateIngressTls: this.requestFunctionFactory(
674
- ingressUpdateIngressTls
675
- )
676
- });
677
- /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
678
- __publicField$1(this, "file", {
679
- /** Create a File. */
680
- createFile: this.requestFunctionFactory(fileCreateFile),
681
- /** Get a File's meta. */
682
- getFileMeta: this.requestFunctionFactory(fileGetFileMeta),
683
- /** Get a FileUploadToken's rules. */
684
- getFileUploadTokenRules: this.requestFunctionFactory(
685
- fileGetFileUploadTokenRules
686
- ),
687
- /** Get a FileUploadType's rules. */
688
- getFileUploadTypeRules: this.requestFunctionFactory(
689
- fileGetFileUploadTypeRules
690
- ),
691
- /** Get a File. */
692
- getFile: this.requestFunctionFactory(fileGetFile)
693
- });
694
- /** The mail API allows you to manage your mail accounts. */
695
- __publicField$1(this, "mail", {
696
- /** List DeliveryBoxes belonging to a Project. */
697
- listDeliveryBoxes: this.requestFunctionFactory(
698
- mailListDeliveryBoxes
699
- ),
700
- /** Create a DeliveryBox. */
701
- createDeliverybox: this.requestFunctionFactory(
702
- mailCreateDeliverybox
703
- ),
704
- /** List MailAddresses belonging to a Project. */
705
- listMailAddresses: this.requestFunctionFactory(
706
- mailListMailAddresses
707
- ),
708
- /** Create a MailAddress. */
709
- createMailAddress: this.requestFunctionFactory(
710
- mailCreateMailAddress
711
- ),
712
- /** Get a DeliveryBox. */
713
- getDeliveryBox: this.requestFunctionFactory(mailGetDeliveryBox),
714
- /** Delete a DeliveryBox. */
715
- deleteDeliveryBox: this.requestFunctionFactory(
716
- mailDeleteDeliveryBox
717
- ),
718
- /** Get a MailAddress. */
719
- getMailAddress: this.requestFunctionFactory(mailGetMailAddress),
720
- /** Delete a MailAddress. */
721
- deleteMailAddress: this.requestFunctionFactory(
722
- mailDeleteMailAddress
723
- ),
724
- /** List mail settings of a Project. */
725
- listProjectMailSettings: this.requestFunctionFactory(
726
- mailListProjectMailSettings
727
- ),
728
- /** Update the description of a DeliveryBox. */
729
- updateDeliveryBoxDescription: this.requestFunctionFactory(
730
- mailUpdateDeliveryBoxDescription
731
- ),
732
- /** Update the password of a DeliveryBox. */
733
- updateDeliveryBoxPassword: this.requestFunctionFactory(
734
- mailUpdateDeliveryBoxPassword
735
- ),
736
- /** Update a MailAddress. */
737
- updateMailAddressAddress: this.requestFunctionFactory(
738
- mailUpdateMailAddressAddress
739
- ),
740
- /** Update the autoresponder of a MailAddress. */
741
- updateMailAddressAutoresponder: this.requestFunctionFactory(
742
- mailUpdateMailAddressAutoresponder
743
- ),
744
- /** Update the catchall of a MailAddress. */
745
- updateMailAddressCatchAll: this.requestFunctionFactory(
746
- mailUpdateMailAddressCatchAll
747
- ),
748
- /** Update the forward addresses of a MailAddresses. */
749
- updateMailAddressForwardAddresses: this.requestFunctionFactory(
750
- mailUpdateMailAddressForwardAddresses
751
- ),
752
- /** Update the password for a MailAddress. */
753
- updateMailAddressPassword: this.requestFunctionFactory(
754
- mailUpdateMailAddressPassword
755
- ),
756
- /** Update the quota of a MailAddress. */
757
- updateMailAddressQuota: this.requestFunctionFactory(
758
- mailUpdateMailAddressQuota
759
- ),
760
- /** Update the spam protection of a MailAddress. */
761
- updateMailAddressSpamProtection: this.requestFunctionFactory(
762
- mailUpdateMailAddressSpamProtection
763
- ),
764
- /** Update a mail setting of a Project. */
765
- updateProjectMailSetting: this.requestFunctionFactory(
766
- mailUpdateProjectMailSetting
767
- )
768
- });
769
- /** The page insights API allows you to get page insights information. */
770
- __publicField$1(this, "pageInsights", {
771
- /** Get detailed performance data for a given domain and path. */
772
- pageinsightsGetPerformanceData: this.requestFunctionFactory(
773
- pageinsightsGetPerformanceData
774
- ),
775
- /** Get all data for a given strace. */
776
- pageinsightsGetStraceData: this.requestFunctionFactory(
777
- pageinsightsGetStraceData
778
- ),
779
- /** List websites (specified as domain and path) from a project where performance data is available. */
780
- pageinsightsListPerformanceDataForProject: this.requestFunctionFactory(
781
- pageinsightsListPerformanceDataForProject
782
- ),
783
- /** Schedule a strace measurement for a single http request. */
784
- pageinsightsScheduleStrace: this.requestFunctionFactory(
785
- pageinsightsScheduleStrace
786
- )
787
- });
788
- /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
789
- __publicField$1(this, "user", {
790
- /** Get a PasswordPolicy. */
791
- passwordValidationGetPasswordPolicy: this.requestFunctionFactory(
792
- passwordValidationGetPasswordPolicy
793
- ),
794
- /** Add phone number and start verification process. */
795
- addPhoneNumber: this.requestFunctionFactory(userAddPhoneNumber),
796
- /** Remove phone number. */
797
- removePhoneNumber: this.requestFunctionFactory(
798
- userRemovePhoneNumber
799
- ),
800
- /** Validate your second factor. */
801
- authenticateMfa: this.requestFunctionFactory(
802
- userAuthenticateMfa
803
- ),
804
- /** Authenticate yourself to get an access token. */
805
- authenticate: this.requestFunctionFactory(userAuthenticate),
806
- /** Authenticate an user with an access token retrieval key. */
807
- authenticateWithAccessTokenRetrievalKey: this.requestFunctionFactory(
808
- userAuthenticateWithAccessTokenRetrievalKey
809
- ),
810
- /** Get your verified Email-Address. */
811
- getOwnEmail: this.requestFunctionFactory(userGetOwnEmail),
812
- /** Change your Email-Address. */
813
- changeEmail: this.requestFunctionFactory(userChangeEmail),
814
- /** Change your password. */
815
- changePassword: this.requestFunctionFactory(userChangePassword),
816
- /** Check token for validity. */
817
- checkToken: this.requestFunctionFactory(userCheckToken),
818
- /** Get your current multi factor auth status. */
819
- getMfaStatus: this.requestFunctionFactory(userGetMfaStatus),
820
- /** Reset RecoveryCodes for MFA. */
821
- resetRecoverycodes: this.requestFunctionFactory(
822
- userResetRecoverycodes
823
- ),
824
- /** Confirm Multi Factor Authentication. */
825
- confirmMfa: this.requestFunctionFactory(userConfirmMfa),
826
- /** Disable Multi Factor Authentication. */
827
- disableMfa: this.requestFunctionFactory(userDisableMfa),
828
- /** Confirm password reset. */
829
- confirmPasswordReset: this.requestFunctionFactory(
830
- userConfirmPasswordReset
831
- ),
832
- /** Create an access token retrieval key to acquire an access token for your user. */
833
- createAccessTokenRetrievalKey: this.requestFunctionFactory(
834
- userCreateAccessTokenRetrievalKey
835
- ),
836
- /** List all of your ApiTokens. */
837
- listApiTokens: this.requestFunctionFactory(userListApiTokens),
838
- /** Store a new ApiToken. */
839
- createApiToken: this.requestFunctionFactory(userCreateApiToken),
840
- /** Submit your user feedback. */
841
- createFeedback: this.requestFunctionFactory(userCreateFeedback),
842
- /** Get your stored ssh-keys. */
843
- listSshKeys: this.requestFunctionFactory(userListSshKeys),
844
- /** Store a new ssh-key. */
845
- createSshKey: this.requestFunctionFactory(userCreateSshKey),
846
- /** Get a specific ApiToken. */
847
- getApiToken: this.requestFunctionFactory(userGetApiToken),
848
- /** Update an existing `ApiToken`. */
849
- editApiToken: this.requestFunctionFactory(userEditApiToken),
850
- /** Deletes an ApiToken. */
851
- deleteApiToken: this.requestFunctionFactory(userDeleteApiToken),
852
- /** Get a specific stored ssh-key. */
853
- getSshKey: this.requestFunctionFactory(userGetSshKey),
854
- /** Edit a stored ssh-key. */
855
- editSshKey: this.requestFunctionFactory(userEditSshKey),
856
- /** Remove a ssh-key. */
857
- deleteSshKey: this.requestFunctionFactory(userDeleteSshKey),
858
- /** Delete your account and all your personal data. */
859
- deleteUser: this.requestFunctionFactory(userDeleteUser),
860
- /** Get your account information. */
861
- getOwnAccount: this.requestFunctionFactory(userGetOwnAccount),
862
- /** Update your account information. */
863
- updateAccount: this.requestFunctionFactory(userUpdateAccount),
864
- /** The timestamp of your latest password change. */
865
- getPasswordUpdatedAt: this.requestFunctionFactory(
866
- userGetPasswordUpdatedAt
867
- ),
868
- /** Get personalized settings. */
869
- getPersonalizedSettings: this.requestFunctionFactory(
870
- userGetPersonalizedSettings
871
- ),
872
- /** Update personalized GUI settings. */
873
- updatePersonalizedSettings: this.requestFunctionFactory(
874
- userUpdatePersonalizedSettings
875
- ),
876
- /** Get poll settings for the specified user. */
877
- getPollStatus: this.requestFunctionFactory(userGetPollStatus),
878
- /** Store new or update poll settings. */
879
- postPollStatus: this.requestFunctionFactory(userPostPollStatus),
880
- /** Get a specific session. */
881
- getSession: this.requestFunctionFactory(userGetSession),
882
- /** Terminate a specific Session. */
883
- terminateSession: this.requestFunctionFactory(
884
- userTerminateSession
885
- ),
886
- /** Get profile information for a user. */
887
- getUser: this.requestFunctionFactory(userGetUser),
888
- /** Change personal information. */
889
- updatePersonalInformation: this.requestFunctionFactory(
890
- userUpdatePersonalInformation
891
- ),
892
- /** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */
893
- initMfa: this.requestFunctionFactory(userInitMfa),
894
- /** Initialize password reset process. */
895
- initPasswordReset: this.requestFunctionFactory(
896
- userInitPasswordReset
897
- ),
898
- /** Submitted feedback of the given user. */
899
- listFeedback: this.requestFunctionFactory(userListFeedback),
900
- /** List all sessions. */
901
- listSessions: this.requestFunctionFactory(userListSessions),
902
- /** Terminate all sessions, except the current session. */
903
- terminateAllSessions: this.requestFunctionFactory(
904
- userTerminateAllSessions
905
- ),
906
- /** Terminate session and invalidate access token. */
907
- logout: this.requestFunctionFactory(userLogout),
908
- /** Obtain authorization from the resource owner. */
909
- oauthGetAuthorization: this.requestFunctionFactory(
910
- userOauthGetAuthorization
911
- ),
912
- /** Retrieve Access Token from Authorization Code. */
913
- oauthRetrieveAccessToken: this.requestFunctionFactory(
914
- userOauthRetrieveAccessToken
915
- ),
916
- /** Register with email and password. */
917
- register: this.requestFunctionFactory(userRegister),
918
- /** Request a new avatar image upload. */
919
- requestAvatarUpload: this.requestFunctionFactory(
920
- userRequestAvatarUpload
921
- ),
922
- /** Remove Avatar. */
923
- removeAvatar: this.requestFunctionFactory(userRemoveAvatar),
924
- /** Resend the Email-Address verification email. */
925
- resendVerificationEmail: this.requestFunctionFactory(
926
- userResendVerificationEmail
927
- ),
928
- /** Request a support code. */
929
- supportCodeRequest: this.requestFunctionFactory(
930
- userSupportCodeRequest
931
- ),
932
- /** Verify an added Email-Address. */
933
- verifyEmail: this.requestFunctionFactory(userVerifyEmail),
934
- /** Verify phone number. */
935
- verifyPhoneNumber: this.requestFunctionFactory(
936
- userVerifyPhoneNumber
937
- ),
938
- /** Verify your registration. */
939
- verifyRegistration: this.requestFunctionFactory(
940
- userVerifyRegistration
941
- )
942
- });
943
- /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
944
- __publicField$1(this, "project", {
945
- /** Accept a ProjectInvite. */
946
- acceptProjectInvite: this.requestFunctionFactory(
947
- projectAcceptProjectInvite
948
- ),
949
- /** List Invites belonging to a Project. */
950
- listInvitesForProject: this.requestFunctionFactory(
951
- projectListInvitesForProject
952
- ),
953
- /** Create a ProjectInvite. */
954
- createProjectInvite: this.requestFunctionFactory(
955
- projectCreateProjectInvite
956
- ),
957
- /** Create a Project belonging to a Server. */
958
- createProject: this.requestFunctionFactory(
959
- projectCreateProject
960
- ),
961
- /** Decline a ProjectInvite. */
962
- declineProjectInvite: this.requestFunctionFactory(
963
- projectDeclineProjectInvite
964
- ),
965
- /** Request a Project avatar upload. */
966
- requestProjectAvatarUpload: this.requestFunctionFactory(
967
- projectRequestProjectAvatarUpload
968
- ),
969
- /** Delete a Project's avatar. */
970
- deleteProjectAvatar: this.requestFunctionFactory(
971
- projectDeleteProjectAvatar
972
- ),
973
- /** Get a ProjectInvite. */
974
- getProjectInvite: this.requestFunctionFactory(
975
- projectGetProjectInvite
976
- ),
977
- /** Delete a ProjectInvite. */
978
- deleteProjectInvite: this.requestFunctionFactory(
979
- projectDeleteProjectInvite
980
- ),
981
- /** Get a ProjectMembership */
982
- getProjectMembership: this.requestFunctionFactory(
983
- projectGetProjectMembership
984
- ),
985
- /** Delete a ProjectMembership. */
986
- deleteProjectMembership: this.requestFunctionFactory(
987
- projectDeleteProjectMembership
988
- ),
989
- /** Update a ProjectMembership. */
990
- updateProjectMembership: this.requestFunctionFactory(
991
- projectUpdateProjectMembership
992
- ),
993
- /** Get a Project. */
994
- getProject: this.requestFunctionFactory(projectGetProject),
995
- /** Delete a Project. */
996
- deleteProject: this.requestFunctionFactory(
997
- projectDeleteProject
998
- ),
999
- /** Request a Server avatar upload. */
1000
- requestServerAvatarUpload: this.requestFunctionFactory(
1001
- projectRequestServerAvatarUpload
1002
- ),
1003
- /** Delete a Server's avatar. */
1004
- deleteServerAvatar: this.requestFunctionFactory(
1005
- projectDeleteServerAvatar
1006
- ),
1007
- /** Get a ProjectInvite by token. */
1008
- getProjectTokenInvite: this.requestFunctionFactory(
1009
- projectGetProjectTokenInvite
1010
- ),
1011
- /** Get the executing user's membership in a Project. */
1012
- getSelfMembershipForProject: this.requestFunctionFactory(
1013
- projectGetSelfMembershipForProject
1014
- ),
1015
- /** Get a Server. */
1016
- getServer: this.requestFunctionFactory(projectGetServer),
1017
- /** Leave a Project. */
1018
- leaveProject: this.requestFunctionFactory(projectLeaveProject),
1019
- /** List Memberships belonging to a Project. */
1020
- listMembershipsForProject: this.requestFunctionFactory(
1021
- projectListMembershipsForProject
1022
- ),
1023
- /** List ProjectInvites belonging to the executing user. */
1024
- listProjectInvites: this.requestFunctionFactory(
1025
- projectListProjectInvites
1026
- ),
1027
- /** List ProjectMemberships belonging to the executing user. */
1028
- listProjectMemberships: this.requestFunctionFactory(
1029
- projectListProjectMemberships
1030
- ),
1031
- /** List Projects belonging to the executing user. */
1032
- listProjects: this.requestFunctionFactory(projectListProjects),
1033
- /** List Servers belonging to the executing user. */
1034
- listServers: this.requestFunctionFactory(projectListServers),
1035
- /** Resend the mail for a ProjectInvite. */
1036
- resendProjectInviteMail: this.requestFunctionFactory(
1037
- projectResendProjectInviteMail
1038
- ),
1039
- /** Update a Project's description. */
1040
- updateProjectDescription: this.requestFunctionFactory(
1041
- projectUpdateProjectDescription
1042
- ),
1043
- /** Update a Servers's description. */
1044
- updateServerDescription: this.requestFunctionFactory(
1045
- projectUpdateServerDescription
1046
- )
1047
- });
1048
- /** The filesystem API allows you to directly access the filesystem of your project. */
1049
- __publicField$1(this, "projectFileSystem", {
1050
- /** List directories belonging to a Project. */
1051
- getDirectories: this.requestFunctionFactory(
1052
- projectFileSystemGetDirectories
1053
- ),
1054
- /** Get a Project directory filesystem usage. */
1055
- getDiskUsage: this.requestFunctionFactory(
1056
- projectFileSystemGetDiskUsage
1057
- ),
1058
- /** Get a Project file's content. */
1059
- getFileContent: this.requestFunctionFactory(
1060
- projectFileSystemGetFileContent
1061
- ),
1062
- /** Get a Project's file/filesystem authorization token. */
1063
- getJwt: this.requestFunctionFactory(projectFileSystemGetJwt),
1064
- /** Get a Project file's information. */
1065
- listFiles: this.requestFunctionFactory(
1066
- projectFileSystemListFiles
1067
- )
1068
- });
1069
- /** The relocation API allows you to manage your relocations. */
1070
- __publicField$1(this, "relocation", {
1071
- /** Register a tariff change for a legacy tariff. */
1072
- createLegacyTariffChange: this.requestFunctionFactory(
1073
- relocationCreateLegacyTariffChange
1074
- ),
1075
- /** Relocate an external Project to mittwald. */
1076
- createRelocation: this.requestFunctionFactory(
1077
- relocationCreateRelocation
1078
- )
1079
- });
1080
- /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
1081
- __publicField$1(this, "sshsftpUser", {
1082
- /** Get all SFTPUsers for a Project. */
1083
- sftpUserListSftpUsers: this.requestFunctionFactory(
1084
- sftpUserListSftpUsers
1085
- ),
1086
- /** Create an SFTPUser for a Project. */
1087
- sftpUserCreateSftpUser: this.requestFunctionFactory(
1088
- sftpUserCreateSftpUser
1089
- ),
1090
- /** Get an SFTPUser. */
1091
- sftpUserGetSftpUser: this.requestFunctionFactory(
1092
- sftpUserGetSftpUser
1093
- ),
1094
- /** Delete an SFTPUser. */
1095
- sftpUserDeleteSftpUser: this.requestFunctionFactory(
1096
- sftpUserDeleteSftpUser
1097
- ),
1098
- /** Update an SFTPUser. */
1099
- sftpUserUpdateSftpUser: this.requestFunctionFactory(
1100
- sftpUserUpdateSftpUser
1101
- ),
1102
- /** Get all SSHUsers for a Project. */
1103
- sshUserListSshUsers: this.requestFunctionFactory(
1104
- sshUserListSshUsers
1105
- ),
1106
- /** Create an SSHUser for a Project. */
1107
- sshUserCreateSshUser: this.requestFunctionFactory(
1108
- sshUserCreateSshUser
1109
- ),
1110
- /** Get an SSHUser. */
1111
- sshUserGetSshUser: this.requestFunctionFactory(
1112
- sshUserGetSshUser
1113
- ),
1114
- /** Delete an SSHUser. */
1115
- sshUserDeleteSshUser: this.requestFunctionFactory(
1116
- sshUserDeleteSshUser
1117
- ),
1118
- /** Update an SSHUser. */
1119
- sshUserUpdateSshUser: this.requestFunctionFactory(
1120
- sshUserUpdateSshUser
1121
- )
1122
- });
1123
- }
1124
- }
1125
-
1126
- const MittwaldAPIClientVersion = "0.0.0-development";
1127
-
1128
- var __defProp = Object.defineProperty;
1129
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1130
- var __publicField = (obj, key, value) => {
1131
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1132
- return value;
1133
- };
1134
- const defaultUserAgent = "mittwald-api-client/" + MittwaldAPIClientVersion;
1135
- class MittwaldAPIClient extends MittwaldAPIV2Client {
1136
- constructor(apiToken) {
1137
- super(MittwaldAPIClient.createAxiosDefaults());
1138
- __publicField(this, "apiToken");
1139
- this.apiToken = apiToken;
1140
- this.setupInterceptors();
1141
- }
1142
- static createAxiosDefaults() {
1143
- const headers = {};
1144
- if (!isBrowser) {
1145
- headers["User-Agent"] = defaultUserAgent;
1146
- }
1147
- return {
1148
- baseURL: "https://api.mittwald.de/",
1149
- headers
1150
- };
1151
- }
1152
- setupInterceptors() {
1153
- this.axios.interceptors.request.use((conf) => {
1154
- const token = this.apiToken;
1155
- if (token) {
1156
- conf.headers.set("x-access-token", token);
1157
- }
1158
- return conf;
1159
- });
1160
- }
1161
- static newUnauthenticated() {
1162
- return new MittwaldAPIClient();
1163
- }
1164
- static newWithToken(apiToken) {
1165
- return new MittwaldAPIClient(apiToken);
1166
- }
1167
- static async newWithCredentials(email, password) {
1168
- const client = MittwaldAPIClient.newUnauthenticated();
1169
- const authResult = await client.user.authenticate({
1170
- data: {
1171
- email,
1172
- password
1173
- }
1174
- });
1175
- if (authResult.status === 200) {
1176
- return new MittwaldAPIClient(authResult.data.token);
1177
- }
1178
- throw ApiClientError.fromResponse("Login failed", authResult);
1179
- }
1180
- }
1181
-
1182
- export { MittwaldAPIClient as MittwaldAPIV2Client };