@mittwald/api-client 4.327.0 → 4.329.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.
@@ -84,6 +84,8 @@ const buildContainerApi = (baseClient) => ({
84
84
  getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
85
85
  /** Get a Service belonging to a Stack. */
86
86
  getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
87
+ /** List Stacks belonging to the executing user. */
88
+ listSelfStacks: new ApiCallAsyncResourceFactory(descriptors.containerListSelfStacks, baseClient.container.listSelfStacks).getApiResource,
87
89
  /** List Services belonging to a Project. */
88
90
  listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
89
91
  /** List Volumes belonging to a Stack. */
@@ -92,8 +94,6 @@ const buildContainerApi = (baseClient) => ({
92
94
  listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
93
95
  /** List Volumes belonging to a Project. */
94
96
  listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
95
- /** List Stacks belonging to the executing user. */
96
- listSelfStacks: new ApiCallAsyncResourceFactory(descriptors.containerListSelfStacks, baseClient.container.listSelfStacks).getApiResource,
97
97
  });
98
98
  const buildContractApi = (baseClient) => ({
99
99
  /** Return the BaseItem of the Contract with the given ID. */
@@ -218,28 +218,28 @@ const buildCronjobApi = (baseClient) => ({
218
218
  getExecution: new ApiCallAsyncResourceFactory(descriptors.cronjobGetExecution, baseClient.cronjob.getExecution).getApiResource,
219
219
  });
220
220
  const buildCustomerApi = (baseClient) => ({
221
- /** List Invites belonging to a Customer. */
222
- listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
223
221
  /** Get all customer profiles the authenticated user has access to. */
224
222
  listCustomers: new ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource,
225
223
  /** Gets the Wallet of the Customer. */
226
224
  getWallet: new ApiCallAsyncResourceFactory(descriptors.customerGetWallet, baseClient.customer.getWallet).getApiResource,
225
+ /** Get a customer profile. */
226
+ getCustomer: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomer, baseClient.customer.getCustomer).getApiResource,
227
+ /** Check if the customer profile has a valid contract partner configured. */
228
+ isCustomerLegallyCompetent: new ApiCallAsyncResourceFactory(descriptors.customerIsCustomerLegallyCompetent, baseClient.customer.isCustomerLegallyCompetent).getApiResource,
227
229
  /** Get a CustomerInvite. */
228
230
  getCustomerInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource,
229
231
  /** Get a CustomerMembership. */
230
232
  getCustomerMembership: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerMembership, baseClient.customer.getCustomerMembership).getApiResource,
231
- /** Get a customer profile. */
232
- getCustomer: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomer, baseClient.customer.getCustomer).getApiResource,
233
+ /** List Invites belonging to a Customer. */
234
+ listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
233
235
  /** Get a CustomerInvite by token. */
234
236
  getCustomerTokenInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerTokenInvite, baseClient.customer.getCustomerTokenInvite).getApiResource,
235
- /** Check if the customer profile has a valid contract partner configured. */
236
- isCustomerLegallyCompetent: new ApiCallAsyncResourceFactory(descriptors.customerIsCustomerLegallyCompetent, baseClient.customer.isCustomerLegallyCompetent).getApiResource,
237
- /** List CustomerInvites belonging to the executing user. */
238
- listCustomerInvites: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerInvites, baseClient.customer.listCustomerInvites).getApiResource,
239
237
  /** List CustomerMemberships belonging to the executing user. */
240
238
  listCustomerMemberships: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerMemberships, baseClient.customer.listCustomerMemberships).getApiResource,
241
239
  /** List Memberships belonging to a Customer. */
242
240
  listMembershipsForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListMembershipsForCustomer, baseClient.customer.listMembershipsForCustomer).getApiResource,
241
+ /** List CustomerInvites belonging to the executing user. */
242
+ listCustomerInvites: new ApiCallAsyncResourceFactory(descriptors.customerListCustomerInvites, baseClient.customer.listCustomerInvites).getApiResource,
243
243
  });
244
244
  const buildDatabaseApi = (baseClient) => ({
245
245
  /** List MySQLDatabases belonging to a Project. */
@@ -327,6 +327,12 @@ const buildLeadFyndrApi = (baseClient) => ({
327
327
  /** Get all unlocked leads. Organisation can unlock leads. */
328
328
  leadfyndrListUnlockedLeads: new ApiCallAsyncResourceFactory(descriptors.leadfyndrListUnlockedLeads, baseClient.leadFyndr.leadfyndrListUnlockedLeads).getApiResource,
329
329
  });
330
+ const buildLicenseApi = (baseClient) => ({
331
+ /** Get a license. */
332
+ getLicense: new ApiCallAsyncResourceFactory(descriptors.licenseGetLicense, baseClient.license.getLicense).getApiResource,
333
+ /** List Licenses belonging to a Project. */
334
+ listLicensesForProject: new ApiCallAsyncResourceFactory(descriptors.licenseListLicensesForProject, baseClient.license.listLicensesForProject).getApiResource,
335
+ });
330
336
  const buildMailApi = (baseClient) => ({
331
337
  /** List DeliveryBoxes belonging to a Project. */
332
338
  listDeliveryBoxes: new ApiCallAsyncResourceFactory(descriptors.mailListDeliveryBoxes, baseClient.mail.listDeliveryBoxes).getApiResource,
@@ -398,26 +404,10 @@ const buildUserApi = (baseClient) => ({
398
404
  supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
399
405
  });
400
406
  const buildProjectApi = (baseClient) => ({
401
- /** List Invites belonging to a Project. */
402
- listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
403
- /** Get a ProjectInvite. */
404
- getProjectInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectInvite, baseClient.project.getProjectInvite).getApiResource,
405
- /** Get a ProjectMembership */
406
- getProjectMembership: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
407
407
  /** Get a Project. */
408
408
  getProject: new ApiCallAsyncResourceFactory(descriptors.projectGetProject, baseClient.project.getProject).getApiResource,
409
- /** Get a ProjectInvite by token. */
410
- getProjectTokenInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectTokenInvite, baseClient.project.getProjectTokenInvite).getApiResource,
411
- /** Get the executing user's membership in a Project. */
412
- getSelfMembershipForProject: new ApiCallAsyncResourceFactory(descriptors.projectGetSelfMembershipForProject, baseClient.project.getSelfMembershipForProject).getApiResource,
413
409
  /** Get a Server. */
414
410
  getServer: new ApiCallAsyncResourceFactory(descriptors.projectGetServer, baseClient.project.getServer).getApiResource,
415
- /** List Memberships belonging to a Project. */
416
- listMembershipsForProject: new ApiCallAsyncResourceFactory(descriptors.projectListMembershipsForProject, baseClient.project.listMembershipsForProject).getApiResource,
417
- /** List ProjectInvites belonging to the executing user. */
418
- listProjectInvites: new ApiCallAsyncResourceFactory(descriptors.projectListProjectInvites, baseClient.project.listProjectInvites).getApiResource,
419
- /** List ProjectMemberships belonging to the executing user. */
420
- listProjectMemberships: new ApiCallAsyncResourceFactory(descriptors.projectListProjectMemberships, baseClient.project.listProjectMemberships).getApiResource,
421
411
  /** List Projects belonging to the executing user. */
422
412
  listProjects: new ApiCallAsyncResourceFactory(descriptors.projectListProjects, baseClient.project.listProjects).getApiResource,
423
413
  /** List Servers belonging to the executing user. */
@@ -426,6 +416,22 @@ const buildProjectApi = (baseClient) => ({
426
416
  storagespaceGetProjectStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetProjectStatistics, baseClient.project.storagespaceGetProjectStatistics).getApiResource,
427
417
  /** Get storage space Statistics belonging to a Server. */
428
418
  storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
419
+ /** Get a ProjectInvite. */
420
+ getProjectInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectInvite, baseClient.project.getProjectInvite).getApiResource,
421
+ /** Get the executing user's membership in a Project. */
422
+ getSelfMembershipForProject: new ApiCallAsyncResourceFactory(descriptors.projectGetSelfMembershipForProject, baseClient.project.getSelfMembershipForProject).getApiResource,
423
+ /** Get a ProjectMembership */
424
+ getProjectMembership: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
425
+ /** List Invites belonging to a Project. */
426
+ listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
427
+ /** Get a ProjectInvite by token. */
428
+ getProjectTokenInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectTokenInvite, baseClient.project.getProjectTokenInvite).getApiResource,
429
+ /** List ProjectMemberships belonging to the executing user. */
430
+ listProjectMemberships: new ApiCallAsyncResourceFactory(descriptors.projectListProjectMemberships, baseClient.project.listProjectMemberships).getApiResource,
431
+ /** List ProjectInvites belonging to the executing user. */
432
+ listProjectInvites: new ApiCallAsyncResourceFactory(descriptors.projectListProjectInvites, baseClient.project.listProjectInvites).getApiResource,
433
+ /** List Memberships belonging to a Project. */
434
+ listMembershipsForProject: new ApiCallAsyncResourceFactory(descriptors.projectListMembershipsForProject, baseClient.project.listMembershipsForProject).getApiResource,
429
435
  });
430
436
  const buildProjectFileSystemApi = (baseClient) => ({
431
437
  /** List directories belonging to a Project. */
@@ -449,12 +455,6 @@ const buildSshsftpUserApi = (baseClient) => ({
449
455
  /** Get an SSHUser. */
450
456
  sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
451
457
  });
452
- const buildLicenseApi = (baseClient) => ({
453
- /** Get a license. */
454
- getLicense: new ApiCallAsyncResourceFactory(descriptors.licenseGetLicense, baseClient.license.getLicense).getApiResource,
455
- /** List Licenses belonging to a Project. */
456
- listLicensesForProject: new ApiCallAsyncResourceFactory(descriptors.licenseListLicensesForProject, baseClient.license.listLicensesForProject).getApiResource,
457
- });
458
458
  export class MittwaldAPIV2ClientReact {
459
459
  /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
460
460
  aiHosting;
@@ -484,6 +484,8 @@ export class MittwaldAPIV2ClientReact {
484
484
  file;
485
485
  /** The lead fyndr api allow you to manage you leads and your fyndr profile. */
486
486
  leadFyndr;
487
+ /** The license API allows you to manage your paid licenses. */
488
+ license;
487
489
  /** The mail API allows you to manage your mail accounts. */
488
490
  mail;
489
491
  /** API endpoints that are not related to any specific API domain */
@@ -500,8 +502,6 @@ export class MittwaldAPIV2ClientReact {
500
502
  projectFileSystem;
501
503
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
502
504
  sshsftpUser;
503
- /** The license API allows you to manage your paid licenses. */
504
- license;
505
505
  constructor(baseClient) {
506
506
  this.aiHosting = buildAiHostingApi(baseClient);
507
507
  this.app = buildAppApi(baseClient);
@@ -517,6 +517,7 @@ export class MittwaldAPIV2ClientReact {
517
517
  this.domain = buildDomainApi(baseClient);
518
518
  this.file = buildFileApi(baseClient);
519
519
  this.leadFyndr = buildLeadFyndrApi(baseClient);
520
+ this.license = buildLicenseApi(baseClient);
520
521
  this.mail = buildMailApi(baseClient);
521
522
  this.misc = buildMiscApi(baseClient);
522
523
  this.notification = buildNotificationApi(baseClient);
@@ -525,7 +526,6 @@ export class MittwaldAPIV2ClientReact {
525
526
  this.project = buildProjectApi(baseClient);
526
527
  this.projectFileSystem = buildProjectFileSystemApi(baseClient);
527
528
  this.sshsftpUser = buildSshsftpUserApi(baseClient);
528
- this.license = buildLicenseApi(baseClient);
529
529
  }
530
530
  static fromBaseClient(baseClient) {
531
531
  return new MittwaldAPIV2ClientReact(baseClient);
@@ -119,12 +119,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
119
119
  getProjectBackupDatabaseDumpsV2Experimental: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumpsV2Experimental),
120
120
  /** List paths for a ProjectBackup. */
121
121
  getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
122
+ /** Update a Backup's expiration time. */
123
+ replaceProjectBackupExpirationTime: this.requestFunctionFactory(descriptors.backupReplaceProjectBackupExpirationTime),
122
124
  /** Restore a ProjectBackup. */
123
125
  requestProjectBackupRestoreV2Experimental: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestoreV2Experimental),
124
126
  /** Change the description of a ProjectBackup. */
125
127
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
126
- /** Update a Backup's expiration time. */
127
- replaceProjectBackupExpirationTime: this.requestFunctionFactory(descriptors.backupReplaceProjectBackupExpirationTime),
128
128
  };
129
129
  /** The container API allows you to manage your stacks, containers, volumes and registries. */
130
130
  container = {
@@ -154,6 +154,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
154
154
  getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
155
155
  /** Get a Service belonging to a Stack. */
156
156
  getService: this.requestFunctionFactory(descriptors.containerGetService),
157
+ /** List Stacks belonging to the executing user. */
158
+ listSelfStacks: this.requestFunctionFactory(descriptors.containerListSelfStacks),
157
159
  /** List Services belonging to a Project. */
158
160
  listServices: this.requestFunctionFactory(descriptors.containerListServices),
159
161
  /** List Volumes belonging to a Stack. */
@@ -168,6 +170,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
168
170
  recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
169
171
  /** Restart a started Service. */
170
172
  restartService: this.requestFunctionFactory(descriptors.containerRestartService),
173
+ /** Set an update schedule for a Stack. */
174
+ setStackUpdateSchedule: this.requestFunctionFactory(descriptors.containerSetStackUpdateSchedule),
171
175
  /** Start a stopped Service. */
172
176
  startService: this.requestFunctionFactory(descriptors.containerStartService),
173
177
  /** Stop a started Service. */
@@ -176,10 +180,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
176
180
  validateContainerRegistryUri: this.requestFunctionFactory(descriptors.containerValidateContainerRegistryUri),
177
181
  /** Validate a Registries' credentials. */
178
182
  validateRegistryCredentials: this.requestFunctionFactory(descriptors.containerValidateRegistryCredentials),
179
- /** Set an update schedule for a Stack. */
180
- setStackUpdateSchedule: this.requestFunctionFactory(descriptors.containerSetStackUpdateSchedule),
181
- /** List Stacks belonging to the executing user. */
182
- listSelfStacks: this.requestFunctionFactory(descriptors.containerListSelfStacks),
183
183
  };
184
184
  /** The contract API allows you to manage your contracts and orders */
185
185
  contract = {
@@ -431,12 +431,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
431
431
  };
432
432
  /** The customer API allows you to manage your own organizations and users. */
433
433
  customer = {
434
- /** Accept a CustomerInvite. */
435
- acceptCustomerInvite: this.requestFunctionFactory(descriptors.customerAcceptCustomerInvite),
436
- /** List Invites belonging to a Customer. */
437
- listInvitesForCustomer: this.requestFunctionFactory(descriptors.customerListInvitesForCustomer),
438
- /** Create a CustomerInvite. */
439
- createCustomerInvite: this.requestFunctionFactory(descriptors.customerCreateCustomerInvite),
440
434
  /** Get all customer profiles the authenticated user has access to. */
441
435
  listCustomers: this.requestFunctionFactory(descriptors.customerListCustomers),
442
436
  /** Create a new customer profile. */
@@ -447,8 +441,18 @@ export class MittwaldAPIV2Client extends ApiClientBase {
447
441
  getWallet: this.requestFunctionFactory(descriptors.customerGetWallet),
448
442
  /** Create the Wallet for the Customer. */
449
443
  createWallet: this.requestFunctionFactory(descriptors.customerCreateWallet),
450
- /** Decline a CustomerInvite. */
451
- declineCustomerInvite: this.requestFunctionFactory(descriptors.customerDeclineCustomerInvite),
444
+ /** Get a customer profile. */
445
+ getCustomer: this.requestFunctionFactory(descriptors.customerGetCustomer),
446
+ /** Update a customer profile. */
447
+ updateCustomer: this.requestFunctionFactory(descriptors.customerUpdateCustomer),
448
+ /** Delete a customer profile. */
449
+ deleteCustomer: this.requestFunctionFactory(descriptors.customerDeleteCustomer),
450
+ /** Check if the customer profile has a valid contract partner configured. */
451
+ isCustomerLegallyCompetent: this.requestFunctionFactory(descriptors.customerIsCustomerLegallyCompetent),
452
+ /** Request a new avatar upload for the customer profile. */
453
+ requestAvatarUpload: this.requestFunctionFactory(descriptors.customerRequestAvatarUpload),
454
+ /** Remove the avatar picture of the customer profile. */
455
+ removeAvatar: this.requestFunctionFactory(descriptors.customerRemoveAvatar),
452
456
  /** Get a CustomerInvite. */
453
457
  getCustomerInvite: this.requestFunctionFactory(descriptors.customerGetCustomerInvite),
454
458
  /** Delete a CustomerInvite. */
@@ -459,26 +463,22 @@ export class MittwaldAPIV2Client extends ApiClientBase {
459
463
  deleteCustomerMembership: this.requestFunctionFactory(descriptors.customerDeleteCustomerMembership),
460
464
  /** Update a CustomerMembership. */
461
465
  updateCustomerMembership: this.requestFunctionFactory(descriptors.customerUpdateCustomerMembership),
462
- /** Get a customer profile. */
463
- getCustomer: this.requestFunctionFactory(descriptors.customerGetCustomer),
464
- /** Update a customer profile. */
465
- updateCustomer: this.requestFunctionFactory(descriptors.customerUpdateCustomer),
466
- /** Delete a customer profile. */
467
- deleteCustomer: this.requestFunctionFactory(descriptors.customerDeleteCustomer),
466
+ /** List Invites belonging to a Customer. */
467
+ listInvitesForCustomer: this.requestFunctionFactory(descriptors.customerListInvitesForCustomer),
468
+ /** Create a CustomerInvite. */
469
+ createCustomerInvite: this.requestFunctionFactory(descriptors.customerCreateCustomerInvite),
470
+ /** Accept a CustomerInvite. */
471
+ acceptCustomerInvite: this.requestFunctionFactory(descriptors.customerAcceptCustomerInvite),
468
472
  /** Get a CustomerInvite by token. */
469
473
  getCustomerTokenInvite: this.requestFunctionFactory(descriptors.customerGetCustomerTokenInvite),
470
- /** Check if the customer profile has a valid contract partner configured. */
471
- isCustomerLegallyCompetent: this.requestFunctionFactory(descriptors.customerIsCustomerLegallyCompetent),
472
- /** List CustomerInvites belonging to the executing user. */
473
- listCustomerInvites: this.requestFunctionFactory(descriptors.customerListCustomerInvites),
474
+ /** Decline a CustomerInvite. */
475
+ declineCustomerInvite: this.requestFunctionFactory(descriptors.customerDeclineCustomerInvite),
474
476
  /** List CustomerMemberships belonging to the executing user. */
475
477
  listCustomerMemberships: this.requestFunctionFactory(descriptors.customerListCustomerMemberships),
476
478
  /** List Memberships belonging to a Customer. */
477
479
  listMembershipsForCustomer: this.requestFunctionFactory(descriptors.customerListMembershipsForCustomer),
478
- /** Request a new avatar upload for the customer profile. */
479
- requestAvatarUpload: this.requestFunctionFactory(descriptors.customerRequestAvatarUpload),
480
- /** Remove the avatar picture of the customer profile. */
481
- removeAvatar: this.requestFunctionFactory(descriptors.customerRemoveAvatar),
480
+ /** List CustomerInvites belonging to the executing user. */
481
+ listCustomerInvites: this.requestFunctionFactory(descriptors.customerListCustomerInvites),
482
482
  /** Resend the mail for a CustomerInvite. */
483
483
  resendCustomerInviteMail: this.requestFunctionFactory(descriptors.customerResendCustomerInviteMail),
484
484
  };
@@ -847,6 +847,17 @@ export class MittwaldAPIV2Client extends ApiClientBase {
847
847
  /** Removes a reservation on a unlocked lead for the given customerId. */
848
848
  leadfyndrRemoveUnlockedLeadReservation: this.requestFunctionFactory(descriptors.leadfyndrRemoveUnlockedLeadReservation),
849
849
  };
850
+ /** The license API allows you to manage your paid licenses. */
851
+ license = {
852
+ /** Get a license. */
853
+ getLicense: this.requestFunctionFactory(descriptors.licenseGetLicense),
854
+ /** List Licenses belonging to a Project. */
855
+ listLicensesForProject: this.requestFunctionFactory(descriptors.licenseListLicensesForProject),
856
+ /** rotate a License's key, i.e. revoke the old and generate a new one. */
857
+ rotateLicenseKey: this.requestFunctionFactory(descriptors.licenseRotateLicenseKey),
858
+ /** Validate a License's key for a project. */
859
+ validateLicenseKeyForProject: this.requestFunctionFactory(descriptors.licenseValidateLicenseKeyForProject),
860
+ };
850
861
  /** API endpoints that are not related to any specific API domain */
851
862
  misc = {
852
863
  /** List valid time zones. */
@@ -873,30 +884,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
873
884
  };
874
885
  /** The project API allows you to manage your projects, and also any kinds of user memberships concerning these projects. */
875
886
  project = {
876
- /** Accept a ProjectInvite. */
877
- acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
878
- /** List Invites belonging to a Project. */
879
- listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
880
- /** Create a ProjectInvite. */
881
- createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
882
887
  /** Create a Project belonging to a Server. */
883
888
  createProject: this.requestFunctionFactory(descriptors.projectCreateProject),
884
- /** Decline a ProjectInvite. */
885
- declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
886
889
  /** Request a Project avatar upload. */
887
890
  requestProjectAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestProjectAvatarUpload),
888
891
  /** Delete a Project's avatar. */
889
892
  deleteProjectAvatar: this.requestFunctionFactory(descriptors.projectDeleteProjectAvatar),
890
- /** Get a ProjectInvite. */
891
- getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
892
- /** Delete a ProjectInvite. */
893
- deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
894
- /** Get a ProjectMembership */
895
- getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
896
- /** Delete a ProjectMembership. */
897
- deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
898
- /** Update a ProjectMembership. */
899
- updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
900
893
  /** Get a Project. */
901
894
  getProject: this.requestFunctionFactory(descriptors.projectGetProject),
902
895
  /** Delete a Project. */
@@ -905,24 +898,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
905
898
  requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
906
899
  /** Delete a Server's avatar. */
907
900
  deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
908
- /** Get a ProjectInvite by token. */
909
- getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
910
- /** Get the executing user's membership in a Project. */
911
- getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
912
901
  /** Get a Server. */
913
902
  getServer: this.requestFunctionFactory(descriptors.projectGetServer),
914
- /** List Memberships belonging to a Project. */
915
- listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
916
- /** List ProjectInvites belonging to the executing user. */
917
- listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
918
- /** List ProjectMemberships belonging to the executing user. */
919
- listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
920
903
  /** List Projects belonging to the executing user. */
921
904
  listProjects: this.requestFunctionFactory(descriptors.projectListProjects),
922
905
  /** List Servers belonging to the executing user. */
923
906
  listServers: this.requestFunctionFactory(descriptors.projectListServers),
924
- /** Resend the mail for a ProjectInvite. */
925
- resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
926
907
  /** Update a Project's description. */
927
908
  updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
928
909
  /** Update a Servers's description. */
@@ -935,6 +916,36 @@ export class MittwaldAPIV2Client extends ApiClientBase {
935
916
  storagespaceReplaceProjectNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceProjectNotificationThreshold),
936
917
  /** Update a Server's storage space notification threshold. */
937
918
  storagespaceReplaceServerNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceServerNotificationThreshold),
919
+ /** Resend the mail for a ProjectInvite. */
920
+ resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
921
+ /** Get a ProjectInvite. */
922
+ getProjectInvite: this.requestFunctionFactory(descriptors.projectGetProjectInvite),
923
+ /** Delete a ProjectInvite. */
924
+ deleteProjectInvite: this.requestFunctionFactory(descriptors.projectDeleteProjectInvite),
925
+ /** Decline a ProjectInvite. */
926
+ declineProjectInvite: this.requestFunctionFactory(descriptors.projectDeclineProjectInvite),
927
+ /** Get the executing user's membership in a Project. */
928
+ getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
929
+ /** Accept a ProjectInvite. */
930
+ acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
931
+ /** Get a ProjectMembership */
932
+ getProjectMembership: this.requestFunctionFactory(descriptors.projectGetProjectMembership),
933
+ /** Delete a ProjectMembership. */
934
+ deleteProjectMembership: this.requestFunctionFactory(descriptors.projectDeleteProjectMembership),
935
+ /** Update a ProjectMembership. */
936
+ updateProjectMembership: this.requestFunctionFactory(descriptors.projectUpdateProjectMembership),
937
+ /** List Invites belonging to a Project. */
938
+ listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
939
+ /** Create a ProjectInvite. */
940
+ createProjectInvite: this.requestFunctionFactory(descriptors.projectCreateProjectInvite),
941
+ /** Get a ProjectInvite by token. */
942
+ getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
943
+ /** List ProjectMemberships belonging to the executing user. */
944
+ listProjectMemberships: this.requestFunctionFactory(descriptors.projectListProjectMemberships),
945
+ /** List ProjectInvites belonging to the executing user. */
946
+ listProjectInvites: this.requestFunctionFactory(descriptors.projectListProjectInvites),
947
+ /** List Memberships belonging to a Project. */
948
+ listMembershipsForProject: this.requestFunctionFactory(descriptors.projectListMembershipsForProject),
938
949
  };
939
950
  /** The filesystem API allows you to directly access the filesystem of your project. */
940
951
  projectFileSystem = {
@@ -979,16 +990,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
979
990
  /** Update an SSHUser. */
980
991
  sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
981
992
  };
982
- /** The license API allows you to manage your paid licenses. */
983
- license = {
984
- /** Get a license. */
985
- getLicense: this.requestFunctionFactory(descriptors.licenseGetLicense),
986
- /** List Licenses belonging to a Project. */
987
- listLicensesForProject: this.requestFunctionFactory(descriptors.licenseListLicensesForProject),
988
- /** rotate a License's key, i.e. revoke the old and generate a new one. */
989
- rotateLicenseKey: this.requestFunctionFactory(descriptors.licenseRotateLicenseKey),
990
- /** Validate a License's key for a project. */
991
- validateLicenseKeyForProject: this.requestFunctionFactory(descriptors.licenseValidateLicenseKeyForProject),
992
- };
993
993
  }
994
994
  export default MittwaldAPIV2Client;