@mittwald/api-client 4.16.0 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,8 @@ const buildAppApi = (baseClient) => ({
16
16
  getSystemsoftware: new ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftware, baseClient.app.getSystemsoftware).getApiResource,
17
17
  /** Get a SystemSoftwareVersion. */
18
18
  getSystemsoftwareversion: new ApiCallAsyncResourceFactory(descriptors.appGetSystemsoftwareversion, baseClient.app.getSystemsoftwareversion).getApiResource,
19
+ /** List AppInstallations that a user has access to. */
20
+ listAppinstallationsForUser: new ApiCallAsyncResourceFactory(descriptors.appListAppinstallationsForUser, baseClient.app.listAppinstallationsForUser).getApiResource,
19
21
  /** List AppInstallations belonging to a Project. */
20
22
  listAppinstallations: new ApiCallAsyncResourceFactory(descriptors.appListAppinstallations, baseClient.app.listAppinstallations).getApiResource,
21
23
  /** List Apps. */
@@ -47,6 +49,28 @@ const buildBackupApi = (baseClient) => ({
47
49
  /** Get a ProjectBackup. */
48
50
  getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
49
51
  });
52
+ const buildContainerApi = (baseClient) => ({
53
+ /** List Registries belonging to a Project. */
54
+ listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
55
+ /** Get a Stack. */
56
+ getStack: new ApiCallAsyncResourceFactory(descriptors.containerGetStack, baseClient.container.getStack).getApiResource,
57
+ /** Get a Registry. */
58
+ getRegistry: new ApiCallAsyncResourceFactory(descriptors.containerGetRegistry, baseClient.container.getRegistry).getApiResource,
59
+ /** Get a Volume belonging to a Stack. */
60
+ getVolume: new ApiCallAsyncResourceFactory(descriptors.containerGetVolume, baseClient.container.getVolume).getApiResource,
61
+ /** Get a ContainerImageConfig. */
62
+ getContainerImageConfig: new ApiCallAsyncResourceFactory(descriptors.containerGetContainerImageConfig, baseClient.container.getContainerImageConfig).getApiResource,
63
+ /** Get logs belonging to a Service. */
64
+ getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
65
+ /** Get a Service belonging to a Stack. */
66
+ getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
67
+ /** List Services belonging to a Project. */
68
+ listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
69
+ /** List Stacks belonging to a Project. */
70
+ listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
71
+ /** List Volumes belonging to a Project. */
72
+ listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
73
+ });
50
74
  const buildContractApi = (baseClient) => ({
51
75
  /** Return the BaseItem of the Contract with the given ID. */
52
76
  getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
@@ -90,6 +114,8 @@ const buildConversationApi = (baseClient) => ({
90
114
  getCategory: new ApiCallAsyncResourceFactory(descriptors.conversationGetCategory, baseClient.conversation.getCategory).getApiResource,
91
115
  /** Get members of a support conversation. */
92
116
  getConversationMembers: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversationMembers, baseClient.conversation.getConversationMembers).getApiResource,
117
+ /** Get preferences for customer conversations. */
118
+ getConversationPreferencesOfCustomer: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversationPreferencesOfCustomer, baseClient.conversation.getConversationPreferencesOfCustomer).getApiResource,
93
119
  /** Get a support conversation. */
94
120
  getConversation: new ApiCallAsyncResourceFactory(descriptors.conversationGetConversation, baseClient.conversation.getConversation).getApiResource,
95
121
  /** Request an access token for the File belonging to the Conversation. */
@@ -214,6 +240,10 @@ const buildMailApi = (baseClient) => ({
214
240
  getMailAddress: new ApiCallAsyncResourceFactory(descriptors.mailGetMailAddress, baseClient.mail.getMailAddress).getApiResource,
215
241
  /** List mail settings of a Project. */
216
242
  listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
243
+ /** Get a Migration. */
244
+ migrationGetMigration: new ApiCallAsyncResourceFactory(descriptors.mailMigrationGetMigration, baseClient.mail.migrationGetMigration).getApiResource,
245
+ /** List Migrations belonging to a Project in customer center or mStudio. */
246
+ migrationListMigrations: new ApiCallAsyncResourceFactory(descriptors.mailMigrationListMigrations, baseClient.mail.migrationListMigrations).getApiResource,
217
247
  });
218
248
  const buildNotificationApi = (baseClient) => ({
219
249
  /** Getting the subscription status of the subscription. */
@@ -231,42 +261,6 @@ const buildPageInsightsApi = (baseClient) => ({
231
261
  /** List websites (specified as domain and path) from a project where performance data is available. */
232
262
  pageinsightsListPerformanceDataForProject: new ApiCallAsyncResourceFactory(descriptors.pageinsightsListPerformanceDataForProject, baseClient.pageInsights.pageinsightsListPerformanceDataForProject).getApiResource,
233
263
  });
234
- const buildUserApi = (baseClient) => ({
235
- /** Get a PasswordPolicy. */
236
- passwordValidationGetPasswordPolicy: new ApiCallAsyncResourceFactory(descriptors.passwordValidationGetPasswordPolicy, baseClient.user.passwordValidationGetPasswordPolicy).getApiResource,
237
- /** Get your verified Email-Address. */
238
- getOwnEmail: new ApiCallAsyncResourceFactory(descriptors.userGetOwnEmail, baseClient.user.getOwnEmail).getApiResource,
239
- /** Get your current multi factor auth status. */
240
- getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
241
- /** List all of your ApiTokens. */
242
- listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
243
- /** Get your stored ssh-keys. */
244
- listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
245
- /** Get a specific ApiToken. */
246
- getApiToken: new ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
247
- /** Get a specific stored ssh-key. */
248
- getSshKey: new ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
249
- /** Get your account information. */
250
- getOwnAccount: new ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
251
- /** The timestamp of your latest password change. */
252
- getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
253
- /** Get personalized settings. */
254
- getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
255
- /** Get poll settings for the specified user. */
256
- getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
257
- /** Get a specific session. */
258
- getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
259
- /** Get profile information for a user. */
260
- getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
261
- /** Submitted feedback of the given user. */
262
- listFeedback: new ApiCallAsyncResourceFactory(descriptors.userListFeedback, baseClient.user.listFeedback).getApiResource,
263
- /** List all sessions. */
264
- listSessions: new ApiCallAsyncResourceFactory(descriptors.userListSessions, baseClient.user.listSessions).getApiResource,
265
- /** Obtain authorization from the resource owner. */
266
- oauthGetAuthorization: new ApiCallAsyncResourceFactory(descriptors.userOauthGetAuthorization, baseClient.user.oauthGetAuthorization).getApiResource,
267
- /** Request a support code. */
268
- supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
269
- });
270
264
  const buildProjectApi = (baseClient) => ({
271
265
  /** List Invites belonging to a Project. */
272
266
  listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
@@ -315,6 +309,40 @@ const buildSshsftpUserApi = (baseClient) => ({
315
309
  /** Get an SSHUser. */
316
310
  sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
317
311
  });
312
+ const buildUserApi = (baseClient) => ({
313
+ /** Get your verified Email-Address. */
314
+ getOwnEmail: new ApiCallAsyncResourceFactory(descriptors.userGetOwnEmail, baseClient.user.getOwnEmail).getApiResource,
315
+ /** Get your current multi factor auth status. */
316
+ getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
317
+ /** List all of your ApiTokens. */
318
+ listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
319
+ /** Get your stored ssh-keys. */
320
+ listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
321
+ /** Get a specific ApiToken. */
322
+ getApiToken: new ApiCallAsyncResourceFactory(descriptors.userGetApiToken, baseClient.user.getApiToken).getApiResource,
323
+ /** Get a specific stored ssh-key. */
324
+ getSshKey: new ApiCallAsyncResourceFactory(descriptors.userGetSshKey, baseClient.user.getSshKey).getApiResource,
325
+ /** Get your account information. */
326
+ getOwnAccount: new ApiCallAsyncResourceFactory(descriptors.userGetOwnAccount, baseClient.user.getOwnAccount).getApiResource,
327
+ /** The timestamp of your latest password change. */
328
+ getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
329
+ /** Get personalized settings. */
330
+ getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
331
+ /** Get poll settings for the specified user. */
332
+ getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
333
+ /** Get a specific session. */
334
+ getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
335
+ /** Get profile information for a user. */
336
+ getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
337
+ /** Submitted feedback of the given user. */
338
+ listFeedback: new ApiCallAsyncResourceFactory(descriptors.userListFeedback, baseClient.user.listFeedback).getApiResource,
339
+ /** List all sessions. */
340
+ listSessions: new ApiCallAsyncResourceFactory(descriptors.userListSessions, baseClient.user.listSessions).getApiResource,
341
+ /** Obtain authorization from the resource owner. */
342
+ oauthGetAuthorization: new ApiCallAsyncResourceFactory(descriptors.userOauthGetAuthorization, baseClient.user.oauthGetAuthorization).getApiResource,
343
+ /** Request a support code. */
344
+ supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
345
+ });
318
346
  export class MittwaldAPIV2ClientReact {
319
347
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
320
348
  app;
@@ -322,6 +350,8 @@ export class MittwaldAPIV2ClientReact {
322
350
  article;
323
351
  /** The backup API allows you to manage your project backups. */
324
352
  backup;
353
+ /** The container API allows you to manage your stacks, containers, volumes and registries. */
354
+ container;
325
355
  /** The contract API allows you to manage your contracts and orders */
326
356
  contract;
327
357
  /** The conversation API allows you to manage your support conversations. */
@@ -344,18 +374,19 @@ export class MittwaldAPIV2ClientReact {
344
374
  notification;
345
375
  /** The page insights API allows you to get page insights information. */
346
376
  pageInsights;
347
- /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
348
- user;
349
377
  /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
350
378
  project;
351
379
  /** The filesystem API allows you to directly access the filesystem of your project. */
352
380
  projectFileSystem;
353
381
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
354
382
  sshsftpUser;
383
+ /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
384
+ user;
355
385
  constructor(baseClient) {
356
386
  this.app = buildAppApi(baseClient);
357
387
  this.article = buildArticleApi(baseClient);
358
388
  this.backup = buildBackupApi(baseClient);
389
+ this.container = buildContainerApi(baseClient);
359
390
  this.contract = buildContractApi(baseClient);
360
391
  this.conversation = buildConversationApi(baseClient);
361
392
  this.cronjob = buildCronjobApi(baseClient);
@@ -367,10 +398,10 @@ export class MittwaldAPIV2ClientReact {
367
398
  this.mail = buildMailApi(baseClient);
368
399
  this.notification = buildNotificationApi(baseClient);
369
400
  this.pageInsights = buildPageInsightsApi(baseClient);
370
- this.user = buildUserApi(baseClient);
371
401
  this.project = buildProjectApi(baseClient);
372
402
  this.projectFileSystem = buildProjectFileSystemApi(baseClient);
373
403
  this.sshsftpUser = buildSshsftpUserApi(baseClient);
404
+ this.user = buildUserApi(baseClient);
374
405
  }
375
406
  static fromBaseClient(baseClient) {
376
407
  return new MittwaldAPIV2ClientReact(baseClient);
@@ -28,6 +28,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
28
28
  getSystemsoftwareversion: this.requestFunctionFactory(descriptors.appGetSystemsoftwareversion),
29
29
  /** Create linkage between an AppInstallation and a MySQLDatabase. */
30
30
  linkDatabase: this.requestFunctionFactory(descriptors.appLinkDatabase),
31
+ /** List AppInstallations that a user has access to. */
32
+ listAppinstallationsForUser: this.requestFunctionFactory(descriptors.appListAppinstallationsForUser),
31
33
  /** List AppInstallations belonging to a Project. */
32
34
  listAppinstallations: this.requestFunctionFactory(descriptors.appListAppinstallations),
33
35
  /** Request an AppInstallation. */
@@ -85,6 +87,53 @@ export class MittwaldAPIV2Client extends ApiClientBase {
85
87
  /** Change the description of a ProjectBackup. */
86
88
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
87
89
  };
90
+ /** The container API allows you to manage your stacks, containers, volumes and registries. */
91
+ container = {
92
+ /** List Registries belonging to a Project. */
93
+ listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
94
+ /** Create a Registry. */
95
+ createRegistry: this.requestFunctionFactory(descriptors.containerCreateRegistry),
96
+ /** Get a Stack. */
97
+ getStack: this.requestFunctionFactory(descriptors.containerGetStack),
98
+ /** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
99
+ declareStack: this.requestFunctionFactory(descriptors.containerDeclareStack),
100
+ /** Create, update or delete Services or Volumes belonging to a Stack. */
101
+ updateStack: this.requestFunctionFactory(descriptors.containerUpdateStack),
102
+ /** Get a Registry. */
103
+ getRegistry: this.requestFunctionFactory(descriptors.containerGetRegistry),
104
+ /** Delete a Registry. */
105
+ deleteRegistry: this.requestFunctionFactory(descriptors.containerDeleteRegistry),
106
+ /** Update a Registry. */
107
+ updateRegistry: this.requestFunctionFactory(descriptors.containerUpdateRegistry),
108
+ /** Get a Volume belonging to a Stack. */
109
+ getVolume: this.requestFunctionFactory(descriptors.containerGetVolume),
110
+ /** Delete a Volume belonging to a Stack. */
111
+ deleteVolume: this.requestFunctionFactory(descriptors.containerDeleteVolume),
112
+ /** Get a ContainerImageConfig. */
113
+ getContainerImageConfig: this.requestFunctionFactory(descriptors.containerGetContainerImageConfig),
114
+ /** Get logs belonging to a Service. */
115
+ getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
116
+ /** Get a Service belonging to a Stack. */
117
+ getService: this.requestFunctionFactory(descriptors.containerGetService),
118
+ /** List Services belonging to a Project. */
119
+ listServices: this.requestFunctionFactory(descriptors.containerListServices),
120
+ /** List Stacks belonging to a Project. */
121
+ listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
122
+ /** List Volumes belonging to a Project. */
123
+ listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
124
+ /** Recreate a Service. */
125
+ recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
126
+ /** Restart a started Service. */
127
+ restartService: this.requestFunctionFactory(descriptors.containerRestartService),
128
+ /** Start a stopped Service. */
129
+ startService: this.requestFunctionFactory(descriptors.containerStartService),
130
+ /** Stop a started Service. */
131
+ stopService: this.requestFunctionFactory(descriptors.containerStopService),
132
+ /** Validate a Registries' URI. */
133
+ validateContainerRegistryUri: this.requestFunctionFactory(descriptors.containerValidateContainerRegistryUri),
134
+ /** Validate a Registries' credentials. */
135
+ validateRegistryCredentials: this.requestFunctionFactory(descriptors.containerValidateRegistryCredentials),
136
+ };
88
137
  /** The contract API allows you to manage your contracts and orders */
89
138
  contract = {
90
139
  /** Schedule the Termination of a ContractItem. */
@@ -154,6 +203,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
154
203
  getCategory: this.requestFunctionFactory(descriptors.conversationGetCategory),
155
204
  /** Get members of a support conversation. */
156
205
  getConversationMembers: this.requestFunctionFactory(descriptors.conversationGetConversationMembers),
206
+ /** Get preferences for customer conversations. */
207
+ getConversationPreferencesOfCustomer: this.requestFunctionFactory(descriptors.conversationGetConversationPreferencesOfCustomer),
157
208
  /** Get a support conversation. */
158
209
  getConversation: this.requestFunctionFactory(descriptors.conversationGetConversation),
159
210
  /** Update the basic properties of the conversation. */
@@ -349,6 +400,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
349
400
  getDomain: this.requestFunctionFactory(descriptors.domainGetDomain),
350
401
  /** Delete a Domain. */
351
402
  deleteDomain: this.requestFunctionFactory(descriptors.domainDeleteDomain),
403
+ /** Generate a list of domains from an input using AI. */
404
+ generateFromInput: this.requestFunctionFactory(descriptors.domainGenerateFromInput),
405
+ /** Generate a list of domains from an input using AI, based on previously generated Domains and a context modification. */
406
+ generateInContext: this.requestFunctionFactory(descriptors.domainGenerateInContext),
352
407
  /** Get the latest screenshot's FileReference belonging to a Domain. */
353
408
  getLatestScreenshot: this.requestFunctionFactory(descriptors.domainGetLatestScreenshot),
354
409
  /** List the contact schemas for a TLD. */
@@ -390,6 +445,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
390
445
  extensionListExtensionInstances: this.requestFunctionFactory(descriptors.extensionListExtensionInstances),
391
446
  /** Create an ExtensionInstance. */
392
447
  extensionCreateExtensionInstance: this.requestFunctionFactory(descriptors.extensionCreateExtensionInstance),
448
+ /** Create an access token retrieval key for an extension instance. */
449
+ extensionCreateRetrievalKey: this.requestFunctionFactory(descriptors.extensionCreateRetrievalKey),
393
450
  /** Get an ExtensionInstance. */
394
451
  extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance),
395
452
  /** Delete an ExtensionInstance. */
@@ -408,6 +465,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
408
465
  extensionListContributors: this.requestFunctionFactory(descriptors.extensionListContributors),
409
466
  /** List Extensions. */
410
467
  extensionListExtensions: this.requestFunctionFactory(descriptors.extensionListExtensions),
468
+ /** Rotate the secret for an extension instance. */
469
+ contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
411
470
  };
412
471
  /** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
413
472
  file = {
@@ -444,6 +503,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
444
503
  deleteMailAddress: this.requestFunctionFactory(descriptors.mailDeleteMailAddress),
445
504
  /** List mail settings of a Project. */
446
505
  listProjectMailSettings: this.requestFunctionFactory(descriptors.mailListProjectMailSettings),
506
+ /** Check if a Migration between two projects is possible. */
507
+ migrationCheckMigrationIsPossible: this.requestFunctionFactory(descriptors.mailMigrationCheckMigrationIsPossible),
508
+ /** Get a Migration. */
509
+ migrationGetMigration: this.requestFunctionFactory(descriptors.mailMigrationGetMigration),
510
+ /** List Migrations belonging to a Project in customer center or mStudio. */
511
+ migrationListMigrations: this.requestFunctionFactory(descriptors.mailMigrationListMigrations),
512
+ /** Request a Mail Migration between two projects. */
513
+ migrationRequestMailMigration: this.requestFunctionFactory(descriptors.mailMigrationRequestMailMigration),
447
514
  /** Update the description of a DeliveryBox. */
448
515
  updateDeliveryBoxDescription: this.requestFunctionFactory(descriptors.mailUpdateDeliveryBoxDescription),
449
516
  /** Update the password of a DeliveryBox. */
@@ -476,10 +543,110 @@ export class MittwaldAPIV2Client extends ApiClientBase {
476
543
  /** Schedule a strace measurement for a single http request. */
477
544
  pageinsightsScheduleStrace: this.requestFunctionFactory(descriptors.pageinsightsScheduleStrace),
478
545
  };
546
+ /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
547
+ project = {
548
+ /** Accept a ProjectInvite. */
549
+ acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
550
+ /** List Invites belonging to a Project. */
551
+ listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
552
+ /** Create a ProjectInvite. */
553
+ createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
554
+ /** Create a Project belonging to a Server. */
555
+ createProject: this.requestFunctionFactory(descriptors.projectCreateProject),
556
+ /** Decline a ProjectInvite. */
557
+ declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
558
+ /** Request a Project avatar upload. */
559
+ requestProjectAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestProjectAvatarUpload),
560
+ /** Delete a Project's avatar. */
561
+ deleteProjectAvatar: this.requestFunctionFactory(descriptors.projectDeleteProjectAvatar),
562
+ /** Get a ProjectInvite. */
563
+ getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
564
+ /** Delete a ProjectInvite. */
565
+ deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
566
+ /** Get a ProjectMembership */
567
+ getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
568
+ /** Delete a ProjectMembership. */
569
+ deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
570
+ /** Update a ProjectMembership. */
571
+ updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
572
+ /** Get a Project. */
573
+ getProject: this.requestFunctionFactory(descriptors.projectGetProject),
574
+ /** Delete a Project. */
575
+ deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
576
+ /** Request a Server avatar upload. */
577
+ requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
578
+ /** Delete a Server's avatar. */
579
+ deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
580
+ /** Get a ProjectInvite by token. */
581
+ getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
582
+ /** Get the executing user's membership in a Project. */
583
+ getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
584
+ /** Get a Server. */
585
+ getServer: this.requestFunctionFactory(descriptors.projectGetServer),
586
+ /** Leave a Project. */
587
+ leaveProject: this.requestFunctionFactory(descriptors.projectLeaveProject),
588
+ /** List Memberships belonging to a Project. */
589
+ listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
590
+ /** List ProjectInvites belonging to the executing user. */
591
+ listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
592
+ /** List ProjectMemberships belonging to the executing user. */
593
+ listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
594
+ /** List Projects belonging to the executing user. */
595
+ listProjects: this.requestFunctionFactory(descriptors.projectListProjects),
596
+ /** List Servers belonging to the executing user. */
597
+ listServers: this.requestFunctionFactory(descriptors.projectListServers),
598
+ /** Resend the mail for a ProjectInvite. */
599
+ resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
600
+ /** Update a Project's description. */
601
+ updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
602
+ /** Update a Servers's description. */
603
+ updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
604
+ };
605
+ /** The filesystem API allows you to directly access the filesystem of your project. */
606
+ projectFileSystem = {
607
+ /** List directories belonging to a Project. */
608
+ getDirectories: this.requestFunctionFactory(descriptors.projectFileSystemGetDirectories),
609
+ /** Get a Project directory filesystem usage. */
610
+ getDiskUsage: this.requestFunctionFactory(descriptors.projectFileSystemGetDiskUsage),
611
+ /** Get a Project file's content. */
612
+ getFileContent: this.requestFunctionFactory(descriptors.projectFileSystemGetFileContent),
613
+ /** Get a Project's file/filesystem authorization token. */
614
+ getJwt: this.requestFunctionFactory(descriptors.projectFileSystemGetJwt),
615
+ /** Get a Project file's information. */
616
+ listFiles: this.requestFunctionFactory(descriptors.projectFileSystemListFiles),
617
+ };
618
+ /** The relocation API allows you to manage your relocations. */
619
+ relocation = {
620
+ /** Register a tariff change for a legacy tariff. */
621
+ createLegacyTariffChange: this.requestFunctionFactory(descriptors.relocationCreateLegacyTariffChange),
622
+ /** Relocate an external Project to mittwald. */
623
+ createRelocation: this.requestFunctionFactory(descriptors.relocationCreateRelocation),
624
+ };
625
+ /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
626
+ sshsftpUser = {
627
+ /** Get all SFTPUsers for a Project. */
628
+ sftpUserListSftpUsers: this.requestFunctionFactory(descriptors.sftpUserListSftpUsers),
629
+ /** Create an SFTPUser for a Project. */
630
+ sftpUserCreateSftpUser: this.requestFunctionFactory(descriptors.sftpUserCreateSftpUser),
631
+ /** Get an SFTPUser. */
632
+ sftpUserGetSftpUser: this.requestFunctionFactory(descriptors.sftpUserGetSftpUser),
633
+ /** Delete an SFTPUser. */
634
+ sftpUserDeleteSftpUser: this.requestFunctionFactory(descriptors.sftpUserDeleteSftpUser),
635
+ /** Update an SFTPUser. */
636
+ sftpUserUpdateSftpUser: this.requestFunctionFactory(descriptors.sftpUserUpdateSftpUser),
637
+ /** Get all SSHUsers for a Project. */
638
+ sshUserListSshUsers: this.requestFunctionFactory(descriptors.sshUserListSshUsers),
639
+ /** Create an SSHUser for a Project. */
640
+ sshUserCreateSshUser: this.requestFunctionFactory(descriptors.sshUserCreateSshUser),
641
+ /** Get an SSHUser. */
642
+ sshUserGetSshUser: this.requestFunctionFactory(descriptors.sshUserGetSshUser),
643
+ /** Delete an SSHUser. */
644
+ sshUserDeleteSshUser: this.requestFunctionFactory(descriptors.sshUserDeleteSshUser),
645
+ /** Update an SSHUser. */
646
+ sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
647
+ };
479
648
  /** The user API allows you to manage your own user and access information of other users that might be visible to you. */
480
649
  user = {
481
- /** Get a PasswordPolicy. */
482
- passwordValidationGetPasswordPolicy: this.requestFunctionFactory(descriptors.passwordValidationGetPasswordPolicy),
483
650
  /** Add phone number and start verification process. */
484
651
  addPhoneNumber: this.requestFunctionFactory(descriptors.userAddPhoneNumber),
485
652
  /** Remove phone number. */
@@ -508,8 +675,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
508
675
  disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa),
509
676
  /** Confirm password reset. */
510
677
  confirmPasswordReset: this.requestFunctionFactory(descriptors.userConfirmPasswordReset),
511
- /** Create an access token retrieval key to acquire an access token for your user. */
512
- createAccessTokenRetrievalKey: this.requestFunctionFactory(descriptors.userCreateAccessTokenRetrievalKey),
513
678
  /** List all of your ApiTokens. */
514
679
  listApiTokens: this.requestFunctionFactory(descriptors.userListApiTokens),
515
680
  /** Store a new ApiToken. */
@@ -564,6 +729,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
564
729
  listFeedback: this.requestFunctionFactory(descriptors.userListFeedback),
565
730
  /** List all sessions. */
566
731
  listSessions: this.requestFunctionFactory(descriptors.userListSessions),
732
+ /** Refresh a session. */
733
+ refreshSession: this.requestFunctionFactory(descriptors.userRefreshSession),
567
734
  /** Terminate all sessions, except the current session. */
568
735
  terminateAllSessions: this.requestFunctionFactory(descriptors.userTerminateAllSessions),
569
736
  /** Terminate session and invalidate access token. */
@@ -589,107 +756,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
589
756
  /** Verify your registration. */
590
757
  verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration),
591
758
  };
592
- /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
593
- project = {
594
- /** Accept a ProjectInvite. */
595
- acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
596
- /** List Invites belonging to a Project. */
597
- listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
598
- /** Create a ProjectInvite. */
599
- createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
600
- /** Create a Project belonging to a Server. */
601
- createProject: this.requestFunctionFactory(descriptors.projectCreateProject),
602
- /** Decline a ProjectInvite. */
603
- declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
604
- /** Request a Project avatar upload. */
605
- requestProjectAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestProjectAvatarUpload),
606
- /** Delete a Project's avatar. */
607
- deleteProjectAvatar: this.requestFunctionFactory(descriptors.projectDeleteProjectAvatar),
608
- /** Get a ProjectInvite. */
609
- getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
610
- /** Delete a ProjectInvite. */
611
- deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
612
- /** Get a ProjectMembership */
613
- getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
614
- /** Delete a ProjectMembership. */
615
- deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
616
- /** Update a ProjectMembership. */
617
- updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
618
- /** Get a Project. */
619
- getProject: this.requestFunctionFactory(descriptors.projectGetProject),
620
- /** Delete a Project. */
621
- deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
622
- /** Request a Server avatar upload. */
623
- requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
624
- /** Delete a Server's avatar. */
625
- deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
626
- /** Get a ProjectInvite by token. */
627
- getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
628
- /** Get the executing user's membership in a Project. */
629
- getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
630
- /** Get a Server. */
631
- getServer: this.requestFunctionFactory(descriptors.projectGetServer),
632
- /** Leave a Project. */
633
- leaveProject: this.requestFunctionFactory(descriptors.projectLeaveProject),
634
- /** List Memberships belonging to a Project. */
635
- listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
636
- /** List ProjectInvites belonging to the executing user. */
637
- listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
638
- /** List ProjectMemberships belonging to the executing user. */
639
- listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
640
- /** List Projects belonging to the executing user. */
641
- listProjects: this.requestFunctionFactory(descriptors.projectListProjects),
642
- /** List Servers belonging to the executing user. */
643
- listServers: this.requestFunctionFactory(descriptors.projectListServers),
644
- /** Resend the mail for a ProjectInvite. */
645
- resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
646
- /** Update a Project's description. */
647
- updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
648
- /** Update a Servers's description. */
649
- updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
650
- };
651
- /** The filesystem API allows you to directly access the filesystem of your project. */
652
- projectFileSystem = {
653
- /** List directories belonging to a Project. */
654
- getDirectories: this.requestFunctionFactory(descriptors.projectFileSystemGetDirectories),
655
- /** Get a Project directory filesystem usage. */
656
- getDiskUsage: this.requestFunctionFactory(descriptors.projectFileSystemGetDiskUsage),
657
- /** Get a Project file's content. */
658
- getFileContent: this.requestFunctionFactory(descriptors.projectFileSystemGetFileContent),
659
- /** Get a Project's file/filesystem authorization token. */
660
- getJwt: this.requestFunctionFactory(descriptors.projectFileSystemGetJwt),
661
- /** Get a Project file's information. */
662
- listFiles: this.requestFunctionFactory(descriptors.projectFileSystemListFiles),
663
- };
664
- /** The relocation API allows you to manage your relocations. */
665
- relocation = {
666
- /** Register a tariff change for a legacy tariff. */
667
- createLegacyTariffChange: this.requestFunctionFactory(descriptors.relocationCreateLegacyTariffChange),
668
- /** Relocate an external Project to mittwald. */
669
- createRelocation: this.requestFunctionFactory(descriptors.relocationCreateRelocation),
670
- };
671
- /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
672
- sshsftpUser = {
673
- /** Get all SFTPUsers for a Project. */
674
- sftpUserListSftpUsers: this.requestFunctionFactory(descriptors.sftpUserListSftpUsers),
675
- /** Create an SFTPUser for a Project. */
676
- sftpUserCreateSftpUser: this.requestFunctionFactory(descriptors.sftpUserCreateSftpUser),
677
- /** Get an SFTPUser. */
678
- sftpUserGetSftpUser: this.requestFunctionFactory(descriptors.sftpUserGetSftpUser),
679
- /** Delete an SFTPUser. */
680
- sftpUserDeleteSftpUser: this.requestFunctionFactory(descriptors.sftpUserDeleteSftpUser),
681
- /** Update an SFTPUser. */
682
- sftpUserUpdateSftpUser: this.requestFunctionFactory(descriptors.sftpUserUpdateSftpUser),
683
- /** Get all SSHUsers for a Project. */
684
- sshUserListSshUsers: this.requestFunctionFactory(descriptors.sshUserListSshUsers),
685
- /** Create an SSHUser for a Project. */
686
- sshUserCreateSshUser: this.requestFunctionFactory(descriptors.sshUserCreateSshUser),
687
- /** Get an SSHUser. */
688
- sshUserGetSshUser: this.requestFunctionFactory(descriptors.sshUserGetSshUser),
689
- /** Delete an SSHUser. */
690
- sshUserDeleteSshUser: this.requestFunctionFactory(descriptors.sshUserDeleteSshUser),
691
- /** Update an SSHUser. */
692
- sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
693
- };
694
759
  }
695
760
  export default MittwaldAPIV2Client;