@mittwald/api-client 3.1.22 → 3.1.24

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