@mittwald/api-client 3.1.1 → 3.1.2

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 (45) hide show
  1. package/dist/{react.d.ts → cjs/generated/v2/client-react.d.ts} +263 -268
  2. package/dist/cjs/generated/v2/client-react.js +343 -0
  3. package/dist/cjs/generated/v2/client.d.ts +9897 -0
  4. package/dist/cjs/generated/v2/client.js +674 -0
  5. package/dist/cjs/generated/v2/descriptors.d.ts +589 -0
  6. package/dist/cjs/generated/v2/descriptors.js +1760 -0
  7. package/dist/cjs/generated/v2/types.d.ts +14741 -0
  8. package/dist/cjs/generated/v2/types.js +2 -0
  9. package/dist/cjs/index.d.ts +3 -0
  10. package/dist/cjs/index.js +7 -0
  11. package/dist/cjs/react.d.ts +1 -0
  12. package/dist/cjs/react.js +5 -0
  13. package/dist/{index.d.ts → cjs/v2/default.d.ts} +4 -8
  14. package/dist/cjs/v2/default.js +70 -0
  15. package/dist/cjs/v2/react.d.ts +3 -0
  16. package/dist/cjs/v2/react.js +7 -0
  17. package/dist/cjs/version.d.ts +1 -0
  18. package/dist/cjs/version.js +4 -0
  19. package/dist/{react.d.cts → esm/generated/v2/client-react.d.ts} +263 -268
  20. package/dist/esm/generated/v2/client-react.js +347 -0
  21. package/dist/esm/generated/v2/client.d.ts +9897 -0
  22. package/dist/esm/generated/v2/client.js +644 -0
  23. package/dist/esm/generated/v2/descriptors.d.ts +589 -0
  24. package/dist/esm/generated/v2/descriptors.js +1752 -0
  25. package/dist/esm/generated/v2/types.d.ts +14741 -0
  26. package/dist/esm/generated/v2/types.js +1 -0
  27. package/dist/esm/index.d.ts +3 -0
  28. package/dist/esm/index.js +2 -0
  29. package/dist/esm/react.d.ts +1 -0
  30. package/dist/esm/react.js +1 -0
  31. package/dist/{index.d.cts → esm/v2/default.d.ts} +4 -8
  32. package/dist/esm/v2/default.js +53 -0
  33. package/dist/esm/v2/react.d.ts +3 -0
  34. package/dist/esm/v2/react.js +3 -0
  35. package/dist/esm/version.d.ts +1 -0
  36. package/dist/esm/version.js +1 -0
  37. package/dist/version.d.ts +1 -1
  38. package/dist/version.js +1 -1
  39. package/package.json +25 -17
  40. package/dist/chunk-LELXC74W.js +0 -1770
  41. package/dist/client-739be67c.d.ts +0 -25271
  42. package/dist/index.cjs +0 -2627
  43. package/dist/index.js +0 -1440
  44. package/dist/react.cjs +0 -1360
  45. package/dist/react.js +0 -830
package/dist/index.js DELETED
@@ -1,1440 +0,0 @@
1
- import {
2
- appExecuteAction,
3
- appGetApp,
4
- appGetAppinstallation,
5
- appGetAppversion,
6
- appGetMissingDependenciesForAppinstallation,
7
- appGetSystemsoftware,
8
- appGetSystemsoftwareversion,
9
- appLinkDatabase,
10
- appListAppinstallations,
11
- appListApps,
12
- appListAppversions,
13
- appListSystemsoftwares,
14
- appListSystemsoftwareversions,
15
- appListUpdateCandidatesForAppversion,
16
- appPatchAppinstallation,
17
- appRequestAppinstallation,
18
- appRequestAppinstallationCopy,
19
- appRetrieveStatus,
20
- appSetDatabaseUsers,
21
- appUninstallAppinstallation,
22
- appUnlinkDatabase,
23
- articleGetArticle,
24
- articleListArticles,
25
- backupCreateProjectBackup,
26
- backupCreateProjectBackupExport,
27
- backupCreateProjectBackupSchedule,
28
- backupDeleteProjectBackup,
29
- backupDeleteProjectBackupExport,
30
- backupDeleteProjectBackupSchedule,
31
- backupGetProjectBackup,
32
- backupGetProjectBackupSchedule,
33
- backupListProjectBackupSchedules,
34
- backupListProjectBackups,
35
- backupUpdateProjectBackupDescription,
36
- backupUpdateProjectBackupSchedule,
37
- contractCancelContractItemTermination,
38
- contractCancelContractTariffChange,
39
- contractCancelContractTermination,
40
- contractGetBaseItemOfContract,
41
- contractGetDetailOfContract,
42
- contractGetDetailOfContractByDomain,
43
- contractGetDetailOfContractByProject,
44
- contractGetDetailOfContractByServer,
45
- contractGetDetailOfContractItem,
46
- contractGetNextTerminationDateForItem,
47
- contractListContracts,
48
- contractTerminateContract,
49
- contractTerminateContractItem,
50
- conversationCreateConversation,
51
- conversationCreateMessage,
52
- conversationGetCategory,
53
- conversationGetConversation,
54
- conversationListCategories,
55
- conversationListConversations,
56
- conversationListMessagesByConversation,
57
- conversationRequestFileUpload,
58
- conversationSetConversationStatus,
59
- conversationUpdateConversation,
60
- conversationUpdateMessage,
61
- cronjobAbortExecution,
62
- cronjobCreateCronjob,
63
- cronjobCreateExecution,
64
- cronjobDeleteCronjob,
65
- cronjobGetCronjob,
66
- cronjobGetExecution,
67
- cronjobListCronjobs,
68
- cronjobListExecutions,
69
- cronjobUpdateCronjob,
70
- cronjobUpdateCronjobAppId,
71
- customerAcceptCustomerInvite,
72
- customerCreateCategory,
73
- customerCreateCustomer,
74
- customerCreateCustomerInvite,
75
- customerDeclineCustomerInvite,
76
- customerDeleteCategory,
77
- customerDeleteCustomer,
78
- customerDeleteCustomerInvite,
79
- customerDeleteCustomerMembership,
80
- customerGetCustomer,
81
- customerGetCustomerCategory,
82
- customerGetCustomerInvite,
83
- customerGetCustomerMembership,
84
- customerGetCustomerTokenInvite,
85
- customerIsCustomerLegallyCompetent,
86
- customerLeaveCustomer,
87
- customerListCustomerInvites,
88
- customerListCustomerMemberships,
89
- customerListCustomers,
90
- customerListInvitesForCustomer,
91
- customerListMembershipsForCustomer,
92
- customerListOfCustomerCategories,
93
- customerRemoveAvatar,
94
- customerRequestAvatarUpload,
95
- customerResendCustomerInviteMail,
96
- customerUpdateCategory,
97
- customerUpdateCustomer,
98
- customerUpdateCustomerMembership,
99
- databaseCreateMysqlDatabase,
100
- databaseCreateMysqlUser,
101
- databaseCreateRedisDatabase,
102
- databaseDeleteMysqlDatabase,
103
- databaseDeleteMysqlUser,
104
- databaseDeleteRedisDatabase,
105
- databaseDisableMysqlUser,
106
- databaseEnableMysqlUser,
107
- databaseGetMysqlDatabase,
108
- databaseGetMysqlUser,
109
- databaseGetMysqlUserPhpMyAdminUrl,
110
- databaseGetRedisDatabase,
111
- databaseListMysqlCharsets,
112
- databaseListMysqlDatabases,
113
- databaseListMysqlUsers,
114
- databaseListMysqlVersions,
115
- databaseListRedisDatabases,
116
- databaseListRedisVersions,
117
- databaseUpdateMysqlDatabaseDefaultCharset,
118
- databaseUpdateMysqlDatabaseDescription,
119
- databaseUpdateMysqlUser,
120
- databaseUpdateMysqlUserPassword,
121
- databaseUpdateRedisDatabaseConfiguration,
122
- databaseUpdateRedisDatabaseDescription,
123
- dnsCreateDnsZone,
124
- dnsDeleteDnsZone,
125
- dnsGetDnsZone,
126
- dnsListDnsZones,
127
- dnsSetRecordSetManaged,
128
- dnsUpdateRecordSet,
129
- domainAbortDomainDeclaration,
130
- domainCheckDomainRegistrability,
131
- domainCreateDomainAuthCode,
132
- domainCreateDomainAuthCode2,
133
- domainDeleteDomain,
134
- domainGetDomain,
135
- domainGetDomainOwnership,
136
- domainGetScreenshotForDomain,
137
- domainListDomainOwnerships,
138
- domainListDomains,
139
- domainListTldContactSchemas,
140
- domainListTlds,
141
- domainResendDomainEmail,
142
- domainUpdateDomainAuthCode,
143
- domainUpdateDomainContact,
144
- domainUpdateDomainNameservers,
145
- domainUpdateDomainProjectId,
146
- domainVerifyDomainOwnership,
147
- fileCreateFile,
148
- fileGetFile,
149
- fileGetFileMeta,
150
- fileGetFileTokenRules,
151
- fileGetFileTypeRules,
152
- ingressCreate,
153
- ingressDelete,
154
- ingressGetSpecific,
155
- ingressListAccessible,
156
- ingressListForProject,
157
- ingressPaths,
158
- ingressRequestAcmeCertificateIssuance,
159
- ingressTls,
160
- invoiceDetailOfInvoice,
161
- invoiceGetDetailOfInvoiceSettings,
162
- invoiceListCustomerInvoices,
163
- invoiceUpdateInvoiceSettings,
164
- mailCreateDeliverybox,
165
- mailCreateMailAddress,
166
- mailDeleteDeliveryBox,
167
- mailDeleteMailAddress,
168
- mailGetDeliveryBox,
169
- mailGetMailAddress,
170
- mailListDeliveryBoxes,
171
- mailListMailAddresses,
172
- mailListProjectMailSettings,
173
- mailUpdateDeliveryBoxDescription,
174
- mailUpdateDeliveryBoxPassword,
175
- mailUpdateMailAddressAddress,
176
- mailUpdateMailAddressAutoresponder,
177
- mailUpdateMailAddressCatchall,
178
- mailUpdateMailAddressForwardAddresses,
179
- mailUpdateMailAddressPassword,
180
- mailUpdateMailAddressQuota,
181
- mailUpdateMailAddressSpamProtection,
182
- mailUpdateProjectMailSetting,
183
- newsletterGetInfo,
184
- newsletterSubscribeUser,
185
- newsletterUnsubscribeUser,
186
- notificationsCountUnreadNotifications,
187
- notificationsListNotifications,
188
- notificationsReadAllNotifications,
189
- notificationsReadNotification,
190
- orderCreateOrder,
191
- orderCreateTariffChange,
192
- orderGetOrder,
193
- orderListCustomerOrders,
194
- orderListProjectOrders,
195
- orderPreviewOrder,
196
- orderPreviewTariffChange,
197
- pageinsightsGetPerformanceData,
198
- pageinsightsListPerformanceDataForProject,
199
- passwordValidationGetPasswordPolicy,
200
- projectAcceptProjectInvite,
201
- projectCreateProject,
202
- projectCreateProjectInvite,
203
- projectDeclineProjectInvite,
204
- projectDeleteProject,
205
- projectDeleteProjectAvatar,
206
- projectDeleteProjectInvite,
207
- projectDeleteProjectMembership,
208
- projectDeleteServerAvatar,
209
- projectFileSystemGetDirectories,
210
- projectFileSystemGetDiskUsage,
211
- projectFileSystemGetFileContent,
212
- projectFileSystemGetJwt,
213
- projectFileSystemListFiles,
214
- projectGetProject,
215
- projectGetProjectInvite,
216
- projectGetProjectMembership,
217
- projectGetProjectTokenInvite,
218
- projectGetSelfMembershipForProject,
219
- projectGetServer,
220
- projectLeaveProject,
221
- projectListInvitesForProject,
222
- projectListMembershipsForProject,
223
- projectListProjectInvites,
224
- projectListProjectMemberships,
225
- projectListProjects,
226
- projectListServers,
227
- projectRequestProjectAvatarUpload,
228
- projectRequestServerAvatarUpload,
229
- projectResendProjectInviteMail,
230
- projectUpdateProjectDescription,
231
- projectUpdateProjectMembership,
232
- projectUpdateServerDescription,
233
- relocationCreateLegacyTariffChange,
234
- relocationCreateRelocation,
235
- sftpUserCreateSftpUser,
236
- sftpUserDeleteSftpUser,
237
- sftpUserGetSftpUser,
238
- sftpUserListSftpUsers,
239
- sftpUserUpdateSftpUser,
240
- sshUserCreateSshUser,
241
- sshUserDeleteSshUser,
242
- sshUserGetSshUser,
243
- sshUserListSshUsers,
244
- sshUserUpdateSshUser,
245
- userAddPhoneNumber,
246
- userAuthenticate,
247
- userAuthenticateMfa,
248
- userChangeEmail,
249
- userChangePassword,
250
- userCheckToken,
251
- userConfirmMfa,
252
- userConfirmPasswordReset,
253
- userCreateApiToken,
254
- userCreateFeedback,
255
- userCreateSshKey,
256
- userDeleteApiToken,
257
- userDeleteSshKey,
258
- userDeleteUser,
259
- userDisableMfa,
260
- userEditApiToken,
261
- userEditSshKey,
262
- userGetApiToken,
263
- userGetMfaStatus,
264
- userGetOwnAccount,
265
- userGetOwnEmail,
266
- userGetPasswordUpdatedAt,
267
- userGetPersonalizedSettings,
268
- userGetSession,
269
- userGetSshKey,
270
- userGetUser,
271
- userInitMfa,
272
- userInitPasswordReset,
273
- userListApiTokens,
274
- userListFeedback,
275
- userListSessions,
276
- userListSshKeys,
277
- userLogout,
278
- userRegister,
279
- userRemoveAvatar,
280
- userRemovePhoneNumber,
281
- userRequestAvatarUpload,
282
- userResendVerificationEmail,
283
- userResetRecoverycodes,
284
- userSupportCodeRequest,
285
- userTerminateAllSessions,
286
- userTerminateSession,
287
- userUpdateAccount,
288
- userUpdatePersonalInformation,
289
- userUpdatePersonalizedSettings,
290
- userVerifyEmail,
291
- userVerifyPhoneNumber,
292
- userVerifyRegistration
293
- } from "./chunk-LELXC74W.js";
294
-
295
- // src/index.ts
296
- import { assertStatus } from "@mittwald/api-client-commons";
297
-
298
- // src/v2/default.ts
299
- import {
300
- ApiClientError
301
- } from "@mittwald/api-client-commons";
302
-
303
- // src/generated/v2/client.ts
304
- import { ApiClientBase } from "@mittwald/api-client-commons";
305
- var MittwaldAPIV2Client = class extends ApiClientBase {
306
- constructor() {
307
- super(...arguments);
308
- /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
309
- this.app = {
310
- /** execute a runtime concerning action on a specific `AppInstallation` */
311
- executeAction: this.requestFunctionFactory(appExecuteAction),
312
- /** get a specific `App` */
313
- getApp: this.requestFunctionFactory(appGetApp),
314
- /** get a specific `AppInstallation` */
315
- getAppinstallation: this.requestFunctionFactory(
316
- appGetAppinstallation
317
- ),
318
- /** start uninstallation process for a specific `AppInstallation` */
319
- uninstallAppinstallation: this.requestFunctionFactory(
320
- appUninstallAppinstallation
321
- ),
322
- /** patch desired properties of a specific `AppInstallation` */
323
- patchAppinstallation: this.requestFunctionFactory(
324
- appPatchAppinstallation
325
- ),
326
- /** get a specific `AppVersion` */
327
- getAppversion: this.requestFunctionFactory(appGetAppversion),
328
- /** get the missing requirements of an appInstallation for a specific target AppVersion */
329
- getMissingDependenciesForAppinstallation: this.requestFunctionFactory(
330
- appGetMissingDependenciesForAppinstallation
331
- ),
332
- /** get a specific `SystemSoftware` */
333
- getSystemsoftware: this.requestFunctionFactory(
334
- appGetSystemsoftware
335
- ),
336
- /** get a specific `SystemSoftwareVersion` */
337
- getSystemsoftwareversion: this.requestFunctionFactory(
338
- appGetSystemsoftwareversion
339
- ),
340
- /** create linkage between an `AppInstallation` and a `Database` */
341
- linkDatabase: this.requestFunctionFactory(appLinkDatabase),
342
- /** get all `AppInstallations` inside a specific `Project` */
343
- listAppinstallations: this.requestFunctionFactory(
344
- appListAppinstallations
345
- ),
346
- /** request a new `AppInstallation` */
347
- requestAppinstallation: this.requestFunctionFactory(
348
- appRequestAppinstallation
349
- ),
350
- /** get all available `Apps` */
351
- listApps: this.requestFunctionFactory(appListApps),
352
- /** get all `AppVersions` of a specific `App` */
353
- listAppversions: this.requestFunctionFactory(
354
- appListAppversions
355
- ),
356
- /** get all available `SystemSoftware` */
357
- listSystemsoftwares: this.requestFunctionFactory(
358
- appListSystemsoftwares
359
- ),
360
- /** get all available `SystemSoftwareVersions` of a specific `SystemSoftware` */
361
- listSystemsoftwareversions: this.requestFunctionFactory(
362
- appListSystemsoftwareversions
363
- ),
364
- /** get all update candidates for a specific `AppVersion` */
365
- listUpdateCandidatesForAppversion: this.requestFunctionFactory(
366
- appListUpdateCandidatesForAppversion
367
- ),
368
- /** request a copy of an `AppInstallation` */
369
- requestAppinstallationCopy: this.requestFunctionFactory(
370
- appRequestAppinstallationCopy
371
- ),
372
- /** get runtime status of a specific `AppInstallation` */
373
- retrieveStatus: this.requestFunctionFactory(appRetrieveStatus),
374
- /** create linkage between an `AppInstallation` and `DatabaseUsers` */
375
- setDatabaseUsers: this.requestFunctionFactory(
376
- appSetDatabaseUsers
377
- ),
378
- /** remove linkage between an `AppInstallation` and a `Database` */
379
- unlinkDatabase: this.requestFunctionFactory(appUnlinkDatabase)
380
- };
381
- /** The article API allows you to read article information. */
382
- this.article = {
383
- /** Get an Article. */
384
- getArticle: this.requestFunctionFactory(articleGetArticle),
385
- /** List Articles. */
386
- listArticles: this.requestFunctionFactory(articleListArticles)
387
- };
388
- /** The backup API allows you to manage your project backups. */
389
- this.backup = {
390
- /** Export a ProjectBackup for download. */
391
- createProjectBackupExport: this.requestFunctionFactory(
392
- backupCreateProjectBackupExport
393
- ),
394
- /** Delete a ProjectBackupExport. */
395
- deleteProjectBackupExport: this.requestFunctionFactory(
396
- backupDeleteProjectBackupExport
397
- ),
398
- /** List BackupSchedules belonging to a Project. */
399
- listProjectBackupSchedules: this.requestFunctionFactory(
400
- backupListProjectBackupSchedules
401
- ),
402
- /** Create a BackupSchedule for a Project. */
403
- createProjectBackupSchedule: this.requestFunctionFactory(
404
- backupCreateProjectBackupSchedule
405
- ),
406
- /** List Backups belonging to a Project. */
407
- listProjectBackups: this.requestFunctionFactory(
408
- backupListProjectBackups
409
- ),
410
- /** Create a Backup of a Project. */
411
- createProjectBackup: this.requestFunctionFactory(
412
- backupCreateProjectBackup
413
- ),
414
- /** Get a ProjectBackupSchedule. */
415
- getProjectBackupSchedule: this.requestFunctionFactory(
416
- backupGetProjectBackupSchedule
417
- ),
418
- /** Delete a ProjectBackupSchedule. */
419
- deleteProjectBackupSchedule: this.requestFunctionFactory(
420
- backupDeleteProjectBackupSchedule
421
- ),
422
- /** Update a ProjectBackupSchedule. */
423
- updateProjectBackupSchedule: this.requestFunctionFactory(
424
- backupUpdateProjectBackupSchedule
425
- ),
426
- /** Get a ProjectBackup. */
427
- getProjectBackup: this.requestFunctionFactory(
428
- backupGetProjectBackup
429
- ),
430
- /** Delete a ProjectBackup. */
431
- deleteProjectBackup: this.requestFunctionFactory(
432
- backupDeleteProjectBackup
433
- ),
434
- /** Change the description of a ProjectBackup. */
435
- updateProjectBackupDescription: this.requestFunctionFactory(
436
- backupUpdateProjectBackupDescription
437
- )
438
- };
439
- /** The contract API allows you to manage your contracts and orders */
440
- this.contract = {
441
- /** Schedule the Termination of a ContractItem. */
442
- terminateContractItem: this.requestFunctionFactory(
443
- contractTerminateContractItem
444
- ),
445
- /** Cancel the Termination for the referred ContractItem. */
446
- cancelContractItemTermination: this.requestFunctionFactory(
447
- contractCancelContractItemTermination
448
- ),
449
- /** Cancel the TariffChange for the referred ContractItem. */
450
- cancelContractTariffChange: this.requestFunctionFactory(
451
- contractCancelContractTariffChange
452
- ),
453
- /** Schedule the Termination of a Contract. */
454
- terminateContract: this.requestFunctionFactory(
455
- contractTerminateContract
456
- ),
457
- /** Cancel the Termination for the referred Contract. */
458
- cancelContractTermination: this.requestFunctionFactory(
459
- contractCancelContractTermination
460
- ),
461
- /** Return the BaseItem of the Contract with the given ID. */
462
- getBaseItemOfContract: this.requestFunctionFactory(
463
- contractGetBaseItemOfContract
464
- ),
465
- /** Return the Contract for the given Domain. */
466
- getDetailOfContractByDomain: this.requestFunctionFactory(
467
- contractGetDetailOfContractByDomain
468
- ),
469
- /** Return the Contract for the given Project. */
470
- getDetailOfContractByProject: this.requestFunctionFactory(
471
- contractGetDetailOfContractByProject
472
- ),
473
- /** Return the Contract for the given Server. */
474
- getDetailOfContractByServer: this.requestFunctionFactory(
475
- contractGetDetailOfContractByServer
476
- ),
477
- /** Get the ContractItem with the given ID. */
478
- getDetailOfContractItem: this.requestFunctionFactory(
479
- contractGetDetailOfContractItem
480
- ),
481
- /** Returns the Contract with the given ID. */
482
- getDetailOfContract: this.requestFunctionFactory(
483
- contractGetDetailOfContract
484
- ),
485
- /** Return the next TerminationDate for the ContractItem with the given ID. */
486
- getNextTerminationDateForItem: this.requestFunctionFactory(
487
- contractGetNextTerminationDateForItem
488
- ),
489
- /** Return a list of Contracts for the given Customer. */
490
- listContracts: this.requestFunctionFactory(
491
- contractListContracts
492
- ),
493
- /** Get details of an Invoice. */
494
- invoiceDetailOfInvoice: this.requestFunctionFactory(
495
- invoiceDetailOfInvoice
496
- ),
497
- /** Get InvoiceSettings of a Customer. */
498
- invoiceGetDetailOfInvoiceSettings: this.requestFunctionFactory(
499
- invoiceGetDetailOfInvoiceSettings
500
- ),
501
- /** Update InvoiceSettings of a Customer. */
502
- invoiceUpdateInvoiceSettings: this.requestFunctionFactory(
503
- invoiceUpdateInvoiceSettings
504
- ),
505
- /** List Invoices of a Customer. */
506
- invoiceListCustomerInvoices: this.requestFunctionFactory(
507
- invoiceListCustomerInvoices
508
- ),
509
- /** Create an Order. */
510
- orderCreateOrder: this.requestFunctionFactory(orderCreateOrder),
511
- /** Create TariffChange Order. */
512
- orderCreateTariffChange: this.requestFunctionFactory(
513
- orderCreateTariffChange
514
- ),
515
- /** Get Order for Customer. */
516
- orderGetOrder: this.requestFunctionFactory(orderGetOrder),
517
- /** Get list of Orders of a Customer. */
518
- orderListCustomerOrders: this.requestFunctionFactory(
519
- orderListCustomerOrders
520
- ),
521
- /** Get list of Orders of a Project. */
522
- orderListProjectOrders: this.requestFunctionFactory(
523
- orderListProjectOrders
524
- ),
525
- /** Preview Order. */
526
- orderPreviewOrder: this.requestFunctionFactory(
527
- orderPreviewOrder
528
- ),
529
- /** Preview TariffChange. */
530
- orderPreviewTariffChange: this.requestFunctionFactory(
531
- orderPreviewTariffChange
532
- )
533
- };
534
- /** The conversation API allows you to manage your support conversations. */
535
- this.conversation = {
536
- /** Get all conversation the authenticated user has created or has access to. */
537
- listConversations: this.requestFunctionFactory(
538
- conversationListConversations
539
- ),
540
- /** Create a conversation. */
541
- createConversation: this.requestFunctionFactory(
542
- conversationCreateConversation
543
- ),
544
- /** Get all message of the conversation. */
545
- listMessagesByConversation: this.requestFunctionFactory(
546
- conversationListMessagesByConversation
547
- ),
548
- /** Send a new message in the conversation. */
549
- createMessage: this.requestFunctionFactory(
550
- conversationCreateMessage
551
- ),
552
- /** Get a specific conversation category. */
553
- getCategory: this.requestFunctionFactory(
554
- conversationGetCategory
555
- ),
556
- /** Get a support conversation. */
557
- getConversation: this.requestFunctionFactory(
558
- conversationGetConversation
559
- ),
560
- /** Update the basic properties of the conversation. */
561
- updateConversation: this.requestFunctionFactory(
562
- conversationUpdateConversation
563
- ),
564
- /** Get all conversation categories. */
565
- listCategories: this.requestFunctionFactory(
566
- conversationListCategories
567
- ),
568
- /** Request a file upload token for the conversation. */
569
- requestFileUpload: this.requestFunctionFactory(
570
- conversationRequestFileUpload
571
- ),
572
- /** Update the status of a conversation. */
573
- setConversationStatus: this.requestFunctionFactory(
574
- conversationSetConversationStatus
575
- ),
576
- /** Update the content of the message */
577
- updateMessage: this.requestFunctionFactory(
578
- conversationUpdateMessage
579
- )
580
- };
581
- /** The cronjob API allows you to manage cronjobs within a project. */
582
- this.cronjob = {
583
- /** Abort a CronjobExecution. */
584
- abortExecution: this.requestFunctionFactory(
585
- cronjobAbortExecution
586
- ),
587
- /** List Cronjobs belonging to a Project. */
588
- listCronjobs: this.requestFunctionFactory(cronjobListCronjobs),
589
- /** Create a Cronjob. */
590
- createCronjob: this.requestFunctionFactory(
591
- cronjobCreateCronjob
592
- ),
593
- /** List CronjobExecutions belonging to a Cronjob. */
594
- listExecutions: this.requestFunctionFactory(
595
- cronjobListExecutions
596
- ),
597
- /** Trigger a Cronjob. */
598
- createExecution: this.requestFunctionFactory(
599
- cronjobCreateExecution
600
- ),
601
- /** Get a Cronjob. */
602
- getCronjob: this.requestFunctionFactory(cronjobGetCronjob),
603
- /** Delete a Cronjob. */
604
- deleteCronjob: this.requestFunctionFactory(
605
- cronjobDeleteCronjob
606
- ),
607
- /** Update a Cronjob. */
608
- updateCronjob: this.requestFunctionFactory(
609
- cronjobUpdateCronjob
610
- ),
611
- /** Get a CronjobExecution. */
612
- getExecution: this.requestFunctionFactory(cronjobGetExecution),
613
- /** Update a Cronjob's app id. */
614
- updateCronjobAppId: this.requestFunctionFactory(
615
- cronjobUpdateCronjobAppId
616
- )
617
- };
618
- /** The customer API allows you to manage your own organizations and users. */
619
- this.customer = {
620
- /** Accept a CustomerInvite. */
621
- acceptCustomerInvite: this.requestFunctionFactory(
622
- customerAcceptCustomerInvite
623
- ),
624
- /** Get all customer categories. */
625
- listOfCustomerCategories: this.requestFunctionFactory(
626
- customerListOfCustomerCategories
627
- ),
628
- /** Create a new customer category. */
629
- createCategory: this.requestFunctionFactory(
630
- customerCreateCategory
631
- ),
632
- /** Create a CustomerInvite. */
633
- createCustomerInvite: this.requestFunctionFactory(
634
- customerCreateCustomerInvite
635
- ),
636
- /** Get all customer profiles the authenticated user has access to. */
637
- listCustomers: this.requestFunctionFactory(
638
- customerListCustomers
639
- ),
640
- /** Create a new customer profile. */
641
- createCustomer: this.requestFunctionFactory(
642
- customerCreateCustomer
643
- ),
644
- /** Decline a CustomerInvite. */
645
- declineCustomerInvite: this.requestFunctionFactory(
646
- customerDeclineCustomerInvite
647
- ),
648
- /** Get a customer category. */
649
- getCustomerCategory: this.requestFunctionFactory(
650
- customerGetCustomerCategory
651
- ),
652
- /** Update a customer category. */
653
- updateCategory: this.requestFunctionFactory(
654
- customerUpdateCategory
655
- ),
656
- /** Delete a customer category. */
657
- deleteCategory: this.requestFunctionFactory(
658
- customerDeleteCategory
659
- ),
660
- /** Get a CustomerInvite. */
661
- getCustomerInvite: this.requestFunctionFactory(
662
- customerGetCustomerInvite
663
- ),
664
- /** Delete a CustomerInvite. */
665
- deleteCustomerInvite: this.requestFunctionFactory(
666
- customerDeleteCustomerInvite
667
- ),
668
- /** Get a CustomerMembership. */
669
- getCustomerMembership: this.requestFunctionFactory(
670
- customerGetCustomerMembership
671
- ),
672
- /** Delete a CustomerMembership. */
673
- deleteCustomerMembership: this.requestFunctionFactory(
674
- customerDeleteCustomerMembership
675
- ),
676
- /** Update a CustomerMembership. */
677
- updateCustomerMembership: this.requestFunctionFactory(
678
- customerUpdateCustomerMembership
679
- ),
680
- /** Get a customer profile. */
681
- getCustomer: this.requestFunctionFactory(customerGetCustomer),
682
- /** Update a customer profile. */
683
- updateCustomer: this.requestFunctionFactory(
684
- customerUpdateCustomer
685
- ),
686
- /** Delete a customer profile. */
687
- deleteCustomer: this.requestFunctionFactory(
688
- customerDeleteCustomer
689
- ),
690
- /** Get a CustomerInvite by token. */
691
- getCustomerTokenInvite: this.requestFunctionFactory(
692
- customerGetCustomerTokenInvite
693
- ),
694
- /** Check if the customer profile has a valid contract partner configured. */
695
- isCustomerLegallyCompetent: this.requestFunctionFactory(
696
- customerIsCustomerLegallyCompetent
697
- ),
698
- /** Leave a Customer. */
699
- leaveCustomer: this.requestFunctionFactory(
700
- customerLeaveCustomer
701
- ),
702
- /** List CustomerInvites belonging to the executing user. */
703
- listCustomerInvites: this.requestFunctionFactory(
704
- customerListCustomerInvites
705
- ),
706
- /** List CustomerMemberships belonging to the executing user. */
707
- listCustomerMemberships: this.requestFunctionFactory(
708
- customerListCustomerMemberships
709
- ),
710
- /** List Invites belonging to a Customer. */
711
- listInvitesForCustomer: this.requestFunctionFactory(
712
- customerListInvitesForCustomer
713
- ),
714
- /** List Memberships belonging to a Customer. */
715
- listMembershipsForCustomer: this.requestFunctionFactory(
716
- customerListMembershipsForCustomer
717
- ),
718
- /** Request a new avatar upload for the customer profile. */
719
- requestAvatarUpload: this.requestFunctionFactory(
720
- customerRequestAvatarUpload
721
- ),
722
- /** Remove the avatar picture of the customer profile. */
723
- removeAvatar: this.requestFunctionFactory(customerRemoveAvatar),
724
- /** Resend the mail for a CustomerInvite. */
725
- resendCustomerInviteMail: this.requestFunctionFactory(
726
- customerResendCustomerInviteMail
727
- )
728
- };
729
- /** The database API allows you to manage your databases, like MySQL and Redis databases. */
730
- this.database = {
731
- /** List MySQLDatabases belonging to a Project. */
732
- listMysqlDatabases: this.requestFunctionFactory(
733
- databaseListMysqlDatabases
734
- ),
735
- /** Create a MySQLDatabase with a MySQLUser. */
736
- createMysqlDatabase: this.requestFunctionFactory(
737
- databaseCreateMysqlDatabase
738
- ),
739
- /** List MySQLUsers belonging to a Database. */
740
- listMysqlUsers: this.requestFunctionFactory(
741
- databaseListMysqlUsers
742
- ),
743
- /** Create a MySQLUser. */
744
- createMysqlUser: this.requestFunctionFactory(
745
- databaseCreateMysqlUser
746
- ),
747
- /** List RedisDatabases belonging to a Project. */
748
- listRedisDatabases: this.requestFunctionFactory(
749
- databaseListRedisDatabases
750
- ),
751
- /** Create a RedisDatabase. */
752
- createRedisDatabase: this.requestFunctionFactory(
753
- databaseCreateRedisDatabase
754
- ),
755
- /** Get a MySQLDatabase. */
756
- getMysqlDatabase: this.requestFunctionFactory(
757
- databaseGetMysqlDatabase
758
- ),
759
- /** Delete a MySQLDatabase. */
760
- deleteMysqlDatabase: this.requestFunctionFactory(
761
- databaseDeleteMysqlDatabase
762
- ),
763
- /** Get a MySQLUser. */
764
- getMysqlUser: this.requestFunctionFactory(databaseGetMysqlUser),
765
- /** Update a MySQLUser. */
766
- updateMysqlUser: this.requestFunctionFactory(
767
- databaseUpdateMysqlUser
768
- ),
769
- /** Delete a MySQLUser. */
770
- deleteMysqlUser: this.requestFunctionFactory(
771
- databaseDeleteMysqlUser
772
- ),
773
- /** Get a RedisDatabase. */
774
- getRedisDatabase: this.requestFunctionFactory(
775
- databaseGetRedisDatabase
776
- ),
777
- /** Delete a RedisDatabase. */
778
- deleteRedisDatabase: this.requestFunctionFactory(
779
- databaseDeleteRedisDatabase
780
- ),
781
- /** Disable a MySQLUser. */
782
- disableMysqlUser: this.requestFunctionFactory(
783
- databaseDisableMysqlUser
784
- ),
785
- /** Enable a MySQLUser. */
786
- enableMysqlUser: this.requestFunctionFactory(
787
- databaseEnableMysqlUser
788
- ),
789
- /** Get a MySQLUser's PhpMyAdmin-URL. */
790
- getMysqlUserPhpMyAdminUrl: this.requestFunctionFactory(
791
- databaseGetMysqlUserPhpMyAdminUrl
792
- ),
793
- /** List available MySQL character sets and collations, optionally filtered by a MySQLVersion. */
794
- listMysqlCharsets: this.requestFunctionFactory(
795
- databaseListMysqlCharsets
796
- ),
797
- /** List MySQLVersions. */
798
- listMysqlVersions: this.requestFunctionFactory(
799
- databaseListMysqlVersions
800
- ),
801
- /** List RedisVersions. */
802
- listRedisVersions: this.requestFunctionFactory(
803
- databaseListRedisVersions
804
- ),
805
- /** Update a MySQLDatabase's default character settings. */
806
- updateMysqlDatabaseDefaultCharset: this.requestFunctionFactory(
807
- databaseUpdateMysqlDatabaseDefaultCharset
808
- ),
809
- /** Update a MySQLDatabase's description. */
810
- updateMysqlDatabaseDescription: this.requestFunctionFactory(
811
- databaseUpdateMysqlDatabaseDescription
812
- ),
813
- /** Update a MySQLUser's password. */
814
- updateMysqlUserPassword: this.requestFunctionFactory(
815
- databaseUpdateMysqlUserPassword
816
- ),
817
- /** Update a RedisDatabase's configuration. */
818
- updateRedisDatabaseConfiguration: this.requestFunctionFactory(
819
- databaseUpdateRedisDatabaseConfiguration
820
- ),
821
- /** Update a RedisDatabase's description. */
822
- updateRedisDatabaseDescription: this.requestFunctionFactory(
823
- databaseUpdateRedisDatabaseDescription
824
- )
825
- };
826
- /** The notification API allows you to manage your notifications. */
827
- this.notification = {
828
- /** Subscribe a user to the mStudio newsletter. */
829
- newsletterSubscribeUser: this.requestFunctionFactory(
830
- newsletterSubscribeUser
831
- ),
832
- /** Getting the subscription status of the subscription. */
833
- newsletterGetInfo: this.requestFunctionFactory(
834
- newsletterGetInfo
835
- ),
836
- /** Unsubscribe a user from the mStudio newsletter. */
837
- newsletterUnsubscribeUser: this.requestFunctionFactory(
838
- newsletterUnsubscribeUser
839
- ),
840
- /** Get the counts for unread notifications of the user. */
841
- scountUnreadNotifications: this.requestFunctionFactory(
842
- notificationsCountUnreadNotifications
843
- ),
844
- /** List all unread notifications. */
845
- slistNotifications: this.requestFunctionFactory(
846
- notificationsListNotifications
847
- ),
848
- /** Mark all notifications as read. */
849
- sreadAllNotifications: this.requestFunctionFactory(
850
- notificationsReadAllNotifications
851
- ),
852
- /** Mark notification as read. */
853
- sreadNotification: this.requestFunctionFactory(
854
- notificationsReadNotification
855
- )
856
- };
857
- /** The domain API allows you to manage your domains, DNS records and ingress resources. */
858
- this.domain = {
859
- /** Create a DNSZone. */
860
- dnsCreateDnsZone: this.requestFunctionFactory(dnsCreateDnsZone),
861
- /** Get a DNSZone. */
862
- dnsGetDnsZone: this.requestFunctionFactory(dnsGetDnsZone),
863
- /** Delete a DNSZone. */
864
- dnsDeleteDnsZone: this.requestFunctionFactory(dnsDeleteDnsZone),
865
- /** List DNSZones belonging to a Project. */
866
- dnsListDnsZones: this.requestFunctionFactory(dnsListDnsZones),
867
- /** Set a record set on a DNSZone to managed. */
868
- dnsSetRecordSetManaged: this.requestFunctionFactory(
869
- dnsSetRecordSetManaged
870
- ),
871
- /** Update a record set on a DNSZone. */
872
- dnsUpdateRecordSet: this.requestFunctionFactory(
873
- dnsUpdateRecordSet
874
- ),
875
- /** Abort a Domain declaration. */
876
- abortDomainDeclaration: this.requestFunctionFactory(
877
- domainAbortDomainDeclaration
878
- ),
879
- /** Check if a Domain is available to register. */
880
- checkDomainRegistrability: this.requestFunctionFactory(
881
- domainCheckDomainRegistrability
882
- ),
883
- /** Create an auth code 2. */
884
- createDomainAuthCode2: this.requestFunctionFactory(
885
- domainCreateDomainAuthCode2
886
- ),
887
- /** Create an auth code for a Domains transfer-out process. */
888
- createDomainAuthCode: this.requestFunctionFactory(
889
- domainCreateDomainAuthCode
890
- ),
891
- /** Update the nameservers of a Domain. */
892
- updateDomainNameservers: this.requestFunctionFactory(
893
- domainUpdateDomainNameservers
894
- ),
895
- /** Get a Domain. */
896
- getDomain: this.requestFunctionFactory(domainGetDomain),
897
- /** Delete a Domain. */
898
- deleteDomain: this.requestFunctionFactory(domainDeleteDomain),
899
- /** Get a DomainOwnership. */
900
- getDomainOwnership: this.requestFunctionFactory(
901
- domainGetDomainOwnership
902
- ),
903
- /** Get File Service Reference for a Screenshot of a domain. */
904
- getScreenshotForDomain: this.requestFunctionFactory(
905
- domainGetScreenshotForDomain
906
- ),
907
- /** List the DomainOwnerships of a project. */
908
- listDomainOwnerships: this.requestFunctionFactory(
909
- domainListDomainOwnerships
910
- ),
911
- /** List Domains belonging to a Project. */
912
- listDomains: this.requestFunctionFactory(domainListDomains),
913
- /** List the contact schemas for a TLD. */
914
- listTldContactSchemas: this.requestFunctionFactory(
915
- domainListTldContactSchemas
916
- ),
917
- /** List TLDs. */
918
- listTlds: this.requestFunctionFactory(domainListTlds),
919
- /** Resend a Domain email. */
920
- resendDomainEmail: this.requestFunctionFactory(
921
- domainResendDomainEmail
922
- ),
923
- /** Update the auth code of a Domain. */
924
- updateDomainAuthCode: this.requestFunctionFactory(
925
- domainUpdateDomainAuthCode
926
- ),
927
- /** Update a contact of a Domain. */
928
- updateDomainContact: this.requestFunctionFactory(
929
- domainUpdateDomainContact
930
- ),
931
- /** Update a Domain's project id. */
932
- updateDomainProjectId: this.requestFunctionFactory(
933
- domainUpdateDomainProjectId
934
- ),
935
- /** Verify a DomainOwnership. */
936
- verifyDomainOwnership: this.requestFunctionFactory(
937
- domainVerifyDomainOwnership
938
- ),
939
- /** Create an Ingress. */
940
- ingressCreate: this.requestFunctionFactory(ingressCreate),
941
- /** Get an Ingress. */
942
- ingressGetSpecific: this.requestFunctionFactory(
943
- ingressGetSpecific
944
- ),
945
- /** Delete an Ingress. */
946
- ingressDelete: this.requestFunctionFactory(ingressDelete),
947
- /** List Ingresses the user has access to. */
948
- ingressListAccessible: this.requestFunctionFactory(
949
- ingressListAccessible
950
- ),
951
- /** List Ingresses belonging to a project. */
952
- ingressListForProject: this.requestFunctionFactory(
953
- ingressListForProject
954
- ),
955
- /** Update an Ingresses paths. */
956
- ingressPaths: this.requestFunctionFactory(ingressPaths),
957
- /** Request ACME certificate issuance */
958
- ingressRequestAcmeCertificateIssuance: this.requestFunctionFactory(
959
- ingressRequestAcmeCertificateIssuance
960
- ),
961
- /** Update an Ingresses tls settings. */
962
- ingressTls: this.requestFunctionFactory(ingressTls)
963
- };
964
- /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
965
- this.file = {
966
- /** Create a File. */
967
- createFile: this.requestFunctionFactory(fileCreateFile),
968
- /** Get a File's meta. */
969
- getFileMeta: this.requestFunctionFactory(fileGetFileMeta),
970
- /** Get a Token's upload rules. */
971
- getFileTokenRules: this.requestFunctionFactory(
972
- fileGetFileTokenRules
973
- ),
974
- /** Get a Type's upload rules. */
975
- getFileTypeRules: this.requestFunctionFactory(
976
- fileGetFileTypeRules
977
- ),
978
- /** Get a File. */
979
- getFile: this.requestFunctionFactory(fileGetFile)
980
- };
981
- /** The mail API allows you to manage your mail accounts. */
982
- this.mail = {
983
- /** List DeliveryBoxes belonging to a Project. */
984
- listDeliveryBoxes: this.requestFunctionFactory(
985
- mailListDeliveryBoxes
986
- ),
987
- /** Create a DeliveryBox. */
988
- createDeliverybox: this.requestFunctionFactory(
989
- mailCreateDeliverybox
990
- ),
991
- /** List MailAddresses belonging to a Project. */
992
- listMailAddresses: this.requestFunctionFactory(
993
- mailListMailAddresses
994
- ),
995
- /** Create a MailAddress. */
996
- createMailAddress: this.requestFunctionFactory(
997
- mailCreateMailAddress
998
- ),
999
- /** Get a DeliveryBox. */
1000
- getDeliveryBox: this.requestFunctionFactory(mailGetDeliveryBox),
1001
- /** Delete a DeliveryBox. */
1002
- deleteDeliveryBox: this.requestFunctionFactory(
1003
- mailDeleteDeliveryBox
1004
- ),
1005
- /** Get a MailAddress. */
1006
- getMailAddress: this.requestFunctionFactory(mailGetMailAddress),
1007
- /** Delete a MailAddress. */
1008
- deleteMailAddress: this.requestFunctionFactory(
1009
- mailDeleteMailAddress
1010
- ),
1011
- /** List mail settings of a Project. */
1012
- listProjectMailSettings: this.requestFunctionFactory(
1013
- mailListProjectMailSettings
1014
- ),
1015
- /** Update the description of a DeliveryBox. */
1016
- updateDeliveryBoxDescription: this.requestFunctionFactory(
1017
- mailUpdateDeliveryBoxDescription
1018
- ),
1019
- /** Update the password of a DeliveryBox. */
1020
- updateDeliveryBoxPassword: this.requestFunctionFactory(
1021
- mailUpdateDeliveryBoxPassword
1022
- ),
1023
- /** Update a MailAddress. */
1024
- updateMailAddressAddress: this.requestFunctionFactory(
1025
- mailUpdateMailAddressAddress
1026
- ),
1027
- /** Update the autoresponder of a MailAddress. */
1028
- updateMailAddressAutoresponder: this.requestFunctionFactory(
1029
- mailUpdateMailAddressAutoresponder
1030
- ),
1031
- /** Update the catchall of a MailAddress. */
1032
- updateMailAddressCatchall: this.requestFunctionFactory(
1033
- mailUpdateMailAddressCatchall
1034
- ),
1035
- /** Update the forward addresses of a MailAddresses. */
1036
- updateMailAddressForwardAddresses: this.requestFunctionFactory(
1037
- mailUpdateMailAddressForwardAddresses
1038
- ),
1039
- /** Update the password for a MailAddress. */
1040
- updateMailAddressPassword: this.requestFunctionFactory(
1041
- mailUpdateMailAddressPassword
1042
- ),
1043
- /** Update the quota of a MailAddress. */
1044
- updateMailAddressQuota: this.requestFunctionFactory(
1045
- mailUpdateMailAddressQuota
1046
- ),
1047
- /** Update the spam protection of a MailAddress. */
1048
- updateMailAddressSpamProtection: this.requestFunctionFactory(
1049
- mailUpdateMailAddressSpamProtection
1050
- ),
1051
- /** Update a mail setting of a Project. */
1052
- updateProjectMailSetting: this.requestFunctionFactory(
1053
- mailUpdateProjectMailSetting
1054
- )
1055
- };
1056
- /** The page insights API allows you to get page insights information. */
1057
- this.pageInsights = {
1058
- /** Get detailed performance data for a given domain and path. */
1059
- pageinsightsGetPerformanceData: this.requestFunctionFactory(
1060
- pageinsightsGetPerformanceData
1061
- ),
1062
- /** List websites (specified as domain and path) from a project where performance data is available. */
1063
- pageinsightsListPerformanceDataForProject: this.requestFunctionFactory(
1064
- pageinsightsListPerformanceDataForProject
1065
- )
1066
- };
1067
- /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
1068
- this.user = {
1069
- /** Get a password policy. */
1070
- passwordValidationGetPasswordPolicy: this.requestFunctionFactory(
1071
- passwordValidationGetPasswordPolicy
1072
- ),
1073
- /** Add phone number and start verification process. */
1074
- addPhoneNumber: this.requestFunctionFactory(userAddPhoneNumber),
1075
- /** Remove phone number. */
1076
- removePhoneNumber: this.requestFunctionFactory(
1077
- userRemovePhoneNumber
1078
- ),
1079
- /** Validate your second factor. */
1080
- authenticateMfa: this.requestFunctionFactory(
1081
- userAuthenticateMfa
1082
- ),
1083
- /** Authenticate yourself to get an access token. */
1084
- authenticate: this.requestFunctionFactory(userAuthenticate),
1085
- /** Get your verified Email-Address. */
1086
- getOwnEmail: this.requestFunctionFactory(userGetOwnEmail),
1087
- /** Change your Email-Address. */
1088
- changeEmail: this.requestFunctionFactory(userChangeEmail),
1089
- /** Change your password. */
1090
- changePassword: this.requestFunctionFactory(userChangePassword),
1091
- /** Check token for validity. */
1092
- checkToken: this.requestFunctionFactory(userCheckToken),
1093
- /** Get your current multi factor auth status. */
1094
- getMfaStatus: this.requestFunctionFactory(userGetMfaStatus),
1095
- /** Reset RecoveryCodes for MFA. */
1096
- resetRecoverycodes: this.requestFunctionFactory(
1097
- userResetRecoverycodes
1098
- ),
1099
- /** Confirm Multi Factor Authentication. */
1100
- confirmMfa: this.requestFunctionFactory(userConfirmMfa),
1101
- /** Disable Multi Factor Authentication. */
1102
- disableMfa: this.requestFunctionFactory(userDisableMfa),
1103
- /** Confirm password reset. */
1104
- confirmPasswordReset: this.requestFunctionFactory(
1105
- userConfirmPasswordReset
1106
- ),
1107
- /** List all of your ApiTokens. */
1108
- listApiTokens: this.requestFunctionFactory(userListApiTokens),
1109
- /** Store a new ApiToken. */
1110
- createApiToken: this.requestFunctionFactory(userCreateApiToken),
1111
- /** Submit your user feedback. */
1112
- createFeedback: this.requestFunctionFactory(userCreateFeedback),
1113
- /** Get your stored ssh-keys. */
1114
- listSshKeys: this.requestFunctionFactory(userListSshKeys),
1115
- /** Store a new ssh-key. */
1116
- createSshKey: this.requestFunctionFactory(userCreateSshKey),
1117
- /** Get a specific ApiToken. */
1118
- getApiToken: this.requestFunctionFactory(userGetApiToken),
1119
- /** Update an existing `ApiToken`. */
1120
- editApiToken: this.requestFunctionFactory(userEditApiToken),
1121
- /** Deletes an ApiToken. */
1122
- deleteApiToken: this.requestFunctionFactory(userDeleteApiToken),
1123
- /** Get a specific stored ssh-key. */
1124
- getSshKey: this.requestFunctionFactory(userGetSshKey),
1125
- /** Edit a stored ssh-key. */
1126
- editSshKey: this.requestFunctionFactory(userEditSshKey),
1127
- /** Remove a ssh-key. */
1128
- deleteSshKey: this.requestFunctionFactory(userDeleteSshKey),
1129
- /** Delete your account and all your personal data. */
1130
- deleteUser: this.requestFunctionFactory(userDeleteUser),
1131
- /** Get your account information. */
1132
- getOwnAccount: this.requestFunctionFactory(userGetOwnAccount),
1133
- /** Update your account information. */
1134
- updateAccount: this.requestFunctionFactory(userUpdateAccount),
1135
- /** The timestamp of your latest password change. */
1136
- getPasswordUpdatedAt: this.requestFunctionFactory(
1137
- userGetPasswordUpdatedAt
1138
- ),
1139
- /** Get personalized settings. */
1140
- getPersonalizedSettings: this.requestFunctionFactory(
1141
- userGetPersonalizedSettings
1142
- ),
1143
- /** Update personalized GUI settings. */
1144
- updatePersonalizedSettings: this.requestFunctionFactory(
1145
- userUpdatePersonalizedSettings
1146
- ),
1147
- /** Get a specific session. */
1148
- getSession: this.requestFunctionFactory(userGetSession),
1149
- /** Terminate a specific Session. */
1150
- terminateSession: this.requestFunctionFactory(
1151
- userTerminateSession
1152
- ),
1153
- /** Get profile information for a user. */
1154
- getUser: this.requestFunctionFactory(userGetUser),
1155
- /** Change personal information. */
1156
- updatePersonalInformation: this.requestFunctionFactory(
1157
- userUpdatePersonalInformation
1158
- ),
1159
- /** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */
1160
- initMfa: this.requestFunctionFactory(userInitMfa),
1161
- /** Initialize password reset process. */
1162
- initPasswordReset: this.requestFunctionFactory(
1163
- userInitPasswordReset
1164
- ),
1165
- /** Submitted feedback of the given user. */
1166
- listFeedback: this.requestFunctionFactory(userListFeedback),
1167
- /** List all sessions. */
1168
- listSessions: this.requestFunctionFactory(userListSessions),
1169
- /** Terminate all sessions, except the current session. */
1170
- terminateAllSessions: this.requestFunctionFactory(
1171
- userTerminateAllSessions
1172
- ),
1173
- /** Terminate session and invalidate access token. */
1174
- logout: this.requestFunctionFactory(userLogout),
1175
- /** Register with email and password. */
1176
- register: this.requestFunctionFactory(userRegister),
1177
- /** Request a new avatar image upload. */
1178
- requestAvatarUpload: this.requestFunctionFactory(
1179
- userRequestAvatarUpload
1180
- ),
1181
- /** Remove Avatar. */
1182
- removeAvatar: this.requestFunctionFactory(userRemoveAvatar),
1183
- /** Resend the Email-Address verification email. */
1184
- resendVerificationEmail: this.requestFunctionFactory(
1185
- userResendVerificationEmail
1186
- ),
1187
- /** Request a support code. */
1188
- supportCodeRequest: this.requestFunctionFactory(
1189
- userSupportCodeRequest
1190
- ),
1191
- /** Verify an added Email-Address. */
1192
- verifyEmail: this.requestFunctionFactory(userVerifyEmail),
1193
- /** Verify phone number. */
1194
- verifyPhoneNumber: this.requestFunctionFactory(
1195
- userVerifyPhoneNumber
1196
- ),
1197
- /** Verify your registration. */
1198
- verifyRegistration: this.requestFunctionFactory(
1199
- userVerifyRegistration
1200
- )
1201
- };
1202
- /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
1203
- this.project = {
1204
- /** Accept a ProjectInvite. */
1205
- acceptProjectInvite: this.requestFunctionFactory(
1206
- projectAcceptProjectInvite
1207
- ),
1208
- /** Create a ProjectInvite. */
1209
- createProjectInvite: this.requestFunctionFactory(
1210
- projectCreateProjectInvite
1211
- ),
1212
- /** Create a Project belonging to a Server. */
1213
- createProject: this.requestFunctionFactory(
1214
- projectCreateProject
1215
- ),
1216
- /** Decline a ProjectInvite. */
1217
- declineProjectInvite: this.requestFunctionFactory(
1218
- projectDeclineProjectInvite
1219
- ),
1220
- /** Request a Project avatar upload. */
1221
- requestProjectAvatarUpload: this.requestFunctionFactory(
1222
- projectRequestProjectAvatarUpload
1223
- ),
1224
- /** Delete a Project's avatar. */
1225
- deleteProjectAvatar: this.requestFunctionFactory(
1226
- projectDeleteProjectAvatar
1227
- ),
1228
- /** Get a ProjectInvite. */
1229
- getProjectInvite: this.requestFunctionFactory(
1230
- projectGetProjectInvite
1231
- ),
1232
- /** Delete a ProjectInvite. */
1233
- deleteProjectInvite: this.requestFunctionFactory(
1234
- projectDeleteProjectInvite
1235
- ),
1236
- /** Get a ProjectMembership */
1237
- getProjectMembership: this.requestFunctionFactory(
1238
- projectGetProjectMembership
1239
- ),
1240
- /** Delete a ProjectMembership. */
1241
- deleteProjectMembership: this.requestFunctionFactory(
1242
- projectDeleteProjectMembership
1243
- ),
1244
- /** Update a ProjectMembership. */
1245
- updateProjectMembership: this.requestFunctionFactory(
1246
- projectUpdateProjectMembership
1247
- ),
1248
- /** Get a Project. */
1249
- getProject: this.requestFunctionFactory(projectGetProject),
1250
- /** Delete a Project. */
1251
- deleteProject: this.requestFunctionFactory(
1252
- projectDeleteProject
1253
- ),
1254
- /** Request a Server avatar upload. */
1255
- requestServerAvatarUpload: this.requestFunctionFactory(
1256
- projectRequestServerAvatarUpload
1257
- ),
1258
- /** Delete a Server's avatar. */
1259
- deleteServerAvatar: this.requestFunctionFactory(
1260
- projectDeleteServerAvatar
1261
- ),
1262
- /** Get a ProjectInvite by token. */
1263
- getProjectTokenInvite: this.requestFunctionFactory(
1264
- projectGetProjectTokenInvite
1265
- ),
1266
- /** Get the executing user's membership in a Project. */
1267
- getSelfMembershipForProject: this.requestFunctionFactory(
1268
- projectGetSelfMembershipForProject
1269
- ),
1270
- /** Get a Server. */
1271
- getServer: this.requestFunctionFactory(projectGetServer),
1272
- /** Leave a Project. */
1273
- leaveProject: this.requestFunctionFactory(projectLeaveProject),
1274
- /** List Invites belonging to a Project. */
1275
- listInvitesForProject: this.requestFunctionFactory(
1276
- projectListInvitesForProject
1277
- ),
1278
- /** List Memberships belonging to a Project. */
1279
- listMembershipsForProject: this.requestFunctionFactory(
1280
- projectListMembershipsForProject
1281
- ),
1282
- /** List ProjectInvites belonging to the executing user. */
1283
- listProjectInvites: this.requestFunctionFactory(
1284
- projectListProjectInvites
1285
- ),
1286
- /** List ProjectMemberships belonging to the executing user. */
1287
- listProjectMemberships: this.requestFunctionFactory(
1288
- projectListProjectMemberships
1289
- ),
1290
- /** List Projects belonging to the executing user. */
1291
- listProjects: this.requestFunctionFactory(projectListProjects),
1292
- /** List Servers belonging to the executing user. */
1293
- listServers: this.requestFunctionFactory(projectListServers),
1294
- /** Resend the mail for a ProjectInvite. */
1295
- resendProjectInviteMail: this.requestFunctionFactory(
1296
- projectResendProjectInviteMail
1297
- ),
1298
- /** Update a Project's description. */
1299
- updateProjectDescription: this.requestFunctionFactory(
1300
- projectUpdateProjectDescription
1301
- ),
1302
- /** Update a Servers's description. */
1303
- updateServerDescription: this.requestFunctionFactory(
1304
- projectUpdateServerDescription
1305
- )
1306
- };
1307
- /** The filesystem API allows you to directly access the filesystem of your project. */
1308
- this.projectFileSystem = {
1309
- /** List directories belonging to a Project. */
1310
- getDirectories: this.requestFunctionFactory(
1311
- projectFileSystemGetDirectories
1312
- ),
1313
- /** Get a Project directory filesystem usage. */
1314
- getDiskUsage: this.requestFunctionFactory(
1315
- projectFileSystemGetDiskUsage
1316
- ),
1317
- /** Get a Project file's content. */
1318
- getFileContent: this.requestFunctionFactory(
1319
- projectFileSystemGetFileContent
1320
- ),
1321
- /** Get a Project's file/filesystem authorization token. */
1322
- getJwt: this.requestFunctionFactory(projectFileSystemGetJwt),
1323
- /** Get a Project file's information. */
1324
- listFiles: this.requestFunctionFactory(
1325
- projectFileSystemListFiles
1326
- )
1327
- };
1328
- /** The relocation API allows you to manage your relocations. */
1329
- this.relocation = {
1330
- /** Register a tariff change for a legacy tariff. */
1331
- createLegacyTariffChange: this.requestFunctionFactory(
1332
- relocationCreateLegacyTariffChange
1333
- ),
1334
- /** Relocate an external Project to mittwald. */
1335
- createRelocation: this.requestFunctionFactory(
1336
- relocationCreateRelocation
1337
- )
1338
- };
1339
- /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
1340
- this.sshsftpUser = {
1341
- /** Get all SFTPUsers for a Project. */
1342
- sftpUserListSftpUsers: this.requestFunctionFactory(
1343
- sftpUserListSftpUsers
1344
- ),
1345
- /** Create an SFTPUser for a Project. */
1346
- sftpUserCreateSftpUser: this.requestFunctionFactory(
1347
- sftpUserCreateSftpUser
1348
- ),
1349
- /** Get an SFTPUser. */
1350
- sftpUserGetSftpUser: this.requestFunctionFactory(
1351
- sftpUserGetSftpUser
1352
- ),
1353
- /** Delete an SFTPUser. */
1354
- sftpUserDeleteSftpUser: this.requestFunctionFactory(
1355
- sftpUserDeleteSftpUser
1356
- ),
1357
- /** Update an SFTPUser. */
1358
- sftpUserUpdateSftpUser: this.requestFunctionFactory(
1359
- sftpUserUpdateSftpUser
1360
- ),
1361
- /** Get all SSHUsers for a Project. */
1362
- sshUserListSshUsers: this.requestFunctionFactory(
1363
- sshUserListSshUsers
1364
- ),
1365
- /** Create an SSHUser for a Project. */
1366
- sshUserCreateSshUser: this.requestFunctionFactory(
1367
- sshUserCreateSshUser
1368
- ),
1369
- /** Get an SSHUser. */
1370
- sshUserGetSshUser: this.requestFunctionFactory(
1371
- sshUserGetSshUser
1372
- ),
1373
- /** Delete an SSHUser. */
1374
- sshUserDeleteSshUser: this.requestFunctionFactory(
1375
- sshUserDeleteSshUser
1376
- ),
1377
- /** Update an SSHUser. */
1378
- sshUserUpdateSshUser: this.requestFunctionFactory(
1379
- sshUserUpdateSshUser
1380
- )
1381
- };
1382
- }
1383
- };
1384
- var client_default = MittwaldAPIV2Client;
1385
-
1386
- // src/version.ts
1387
- var MittwaldAPIClientVersion = "0.0.0-development";
1388
-
1389
- // src/v2/default.ts
1390
- import { isBrowser } from "browser-or-node";
1391
- var defaultUserAgent = "mittwald-api-client/" + MittwaldAPIClientVersion;
1392
- var MittwaldAPIClient = class _MittwaldAPIClient extends client_default {
1393
- constructor(apiToken) {
1394
- super(_MittwaldAPIClient.createAxiosDefaults());
1395
- this.apiToken = apiToken;
1396
- this.setupInterceptors();
1397
- }
1398
- static createAxiosDefaults() {
1399
- const headers = {};
1400
- if (!isBrowser) {
1401
- headers["User-Agent"] = defaultUserAgent;
1402
- }
1403
- return {
1404
- baseURL: "https://api.mittwald.de/",
1405
- headers
1406
- };
1407
- }
1408
- setupInterceptors() {
1409
- this.axios.interceptors.request.use((conf) => {
1410
- const token = this.apiToken;
1411
- if (token) {
1412
- conf.headers.set("x-access-token", token);
1413
- }
1414
- return conf;
1415
- });
1416
- }
1417
- static newUnauthenticated() {
1418
- return new _MittwaldAPIClient();
1419
- }
1420
- static newWithToken(apiToken) {
1421
- return new _MittwaldAPIClient(apiToken);
1422
- }
1423
- static async newWithCredentials(email, password) {
1424
- const client = _MittwaldAPIClient.newUnauthenticated();
1425
- const authResult = await client.user.authenticate({
1426
- data: {
1427
- email,
1428
- password
1429
- }
1430
- });
1431
- if (authResult.status === 200) {
1432
- return new _MittwaldAPIClient(authResult.data.token);
1433
- }
1434
- throw ApiClientError.fromResponse("Login failed", authResult);
1435
- }
1436
- };
1437
- export {
1438
- MittwaldAPIClient as MittwaldAPIV2Client,
1439
- assertStatus
1440
- };