@mittwald/api-client 4.323.0 → 4.325.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.
@@ -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,
@@ -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);
@@ -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. */
@@ -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;
@@ -1786,6 +1786,30 @@ export const leadfyndrRemoveUnlockedLeadReservation = {
1786
1786
  method: "DELETE",
1787
1787
  operationId: "leadfyndr-remove-unlocked-lead-reservation",
1788
1788
  };
1789
+ /** Get a license. */
1790
+ export const licenseGetLicense = {
1791
+ path: "/v2/licenses/{licenseId}",
1792
+ method: "GET",
1793
+ operationId: "license-get-license",
1794
+ };
1795
+ /** List Licenses belonging to a Project. */
1796
+ export const licenseListLicensesForProject = {
1797
+ path: "/v2/projects/{projectId}/licenses",
1798
+ method: "GET",
1799
+ operationId: "license-list-licenses-for-project",
1800
+ };
1801
+ /** rotate a License's key, i.e. revoke the old and generate a new one. */
1802
+ export const licenseRotateLicenseKey = {
1803
+ path: "/v2/licenses/{licenseId}/actions/rotate-key",
1804
+ method: "POST",
1805
+ operationId: "license-rotate-license-key",
1806
+ };
1807
+ /** Validate a License's key for a project. */
1808
+ export const licenseValidateLicenseKeyForProject = {
1809
+ path: "/v2/projects/{projectId}/actions/validate-license-key",
1810
+ method: "POST",
1811
+ operationId: "license-validate-license-key-for-project",
1812
+ };
1789
1813
  /** List DeliveryBoxes belonging to a Project. */
1790
1814
  export const mailListDeliveryBoxes = {
1791
1815
  path: "/v2/projects/{projectId}/delivery-boxes",
@@ -2698,30 +2722,6 @@ export const verificationVerifyCompany = {
2698
2722
  method: "POST",
2699
2723
  operationId: "verification-verify-company",
2700
2724
  };
2701
- /** Get a license. */
2702
- export const licenseGetLicense = {
2703
- path: "/v2/licenses/{licenseId}",
2704
- method: "GET",
2705
- operationId: "license-get-license",
2706
- };
2707
- /** List Licenses belonging to a Project. */
2708
- export const licenseListLicensesForProject = {
2709
- path: "/v2/projects/{projectId}/licenses",
2710
- method: "GET",
2711
- operationId: "license-list-licenses-for-project",
2712
- };
2713
- /** rotate a License's key, i.e. revoke the old and generate a new one. */
2714
- export const licenseRotateLicenseKey = {
2715
- path: "/v2/licenses/{licenseId}/actions/rotate-key",
2716
- method: "POST",
2717
- operationId: "license-rotate-license-key",
2718
- };
2719
- /** Validate a License's key for a project. */
2720
- export const licenseValidateLicenseKeyForProject = {
2721
- path: "/v2/projects/{projectId}/actions/validate-license-key",
2722
- method: "POST",
2723
- operationId: "license-validate-license-key-for-project",
2724
- };
2725
2725
  /** Set an update schedule for a Stack. */
2726
2726
  export const containerSetStackUpdateSchedule = {
2727
2727
  path: "/v2/stacks/{stackId}/update-schedule",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.322.0';
1
+ export const MittwaldAPIClientVersion = '4.324.0';
@@ -2555,6 +2555,39 @@ declare const buildLeadFyndrApi: (baseClient: MittwaldAPIV2Client) => {
2555
2555
  totalCount: number;
2556
2556
  }>;
2557
2557
  };
2558
+ declare const buildLicenseApi: (baseClient: MittwaldAPIV2Client) => {
2559
+ /** Get a license. */
2560
+ getLicense: (conf: {
2561
+ licenseId: string;
2562
+ headers?: {
2563
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2564
+ "x-access-token"?: string | undefined;
2565
+ } | undefined;
2566
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
2567
+ description: string;
2568
+ expiryDate?: string | undefined;
2569
+ id: string;
2570
+ keyReference?: (import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseKey | import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseExternalKey) | undefined;
2571
+ kind: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseKind;
2572
+ meta: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseMeta;
2573
+ reference: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseReference;
2574
+ volume?: number | undefined;
2575
+ }>;
2576
+ /** List Licenses belonging to a Project. */
2577
+ listLicensesForProject: (conf: {
2578
+ projectId: string;
2579
+ headers?: {
2580
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2581
+ "x-access-token"?: string | undefined;
2582
+ } | undefined;
2583
+ queryParameters?: {
2584
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2585
+ limit?: number | undefined;
2586
+ skip?: number | undefined;
2587
+ page?: number | undefined;
2588
+ } | undefined;
2589
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseLicense[]>;
2590
+ };
2558
2591
  declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
2559
2592
  /** List DeliveryBoxes belonging to a Project. */
2560
2593
  listDeliveryBoxes: (conf: {
@@ -3486,39 +3519,6 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
3486
3519
  userName: string;
3487
3520
  }>;
3488
3521
  };
3489
- declare const buildLicenseApi: (baseClient: MittwaldAPIV2Client) => {
3490
- /** Get a license. */
3491
- getLicense: (conf: {
3492
- licenseId: string;
3493
- headers?: {
3494
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3495
- "x-access-token"?: string | undefined;
3496
- } | undefined;
3497
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3498
- description: string;
3499
- expiryDate?: string | undefined;
3500
- id: string;
3501
- keyReference?: (import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseKey | import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseExternalKey) | undefined;
3502
- kind: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseKind;
3503
- meta: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseMeta;
3504
- reference: import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseReference;
3505
- volume?: number | undefined;
3506
- }>;
3507
- /** List Licenses belonging to a Project. */
3508
- listLicensesForProject: (conf: {
3509
- projectId: string;
3510
- headers?: {
3511
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3512
- "x-access-token"?: string | undefined;
3513
- } | undefined;
3514
- queryParameters?: {
3515
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3516
- limit?: number | undefined;
3517
- skip?: number | undefined;
3518
- page?: number | undefined;
3519
- } | undefined;
3520
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.LicenseLicense[]>;
3521
- };
3522
3522
  export declare class MittwaldAPIV2ClientReact {
3523
3523
  /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
3524
3524
  readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
@@ -3548,6 +3548,8 @@ export declare class MittwaldAPIV2ClientReact {
3548
3548
  readonly file: ReturnType<typeof buildFileApi>;
3549
3549
  /** The lead fyndr api allow you to manage you leads and your fyndr profile. */
3550
3550
  readonly leadFyndr: ReturnType<typeof buildLeadFyndrApi>;
3551
+ /** The license API allows you to manage your paid licenses. */
3552
+ readonly license: ReturnType<typeof buildLicenseApi>;
3551
3553
  /** The mail API allows you to manage your mail accounts. */
3552
3554
  readonly mail: ReturnType<typeof buildMailApi>;
3553
3555
  /** API endpoints that are not related to any specific API domain */
@@ -3564,8 +3566,6 @@ export declare class MittwaldAPIV2ClientReact {
3564
3566
  readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
3565
3567
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
3566
3568
  readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
3567
- /** The license API allows you to manage your paid licenses. */
3568
- readonly license: ReturnType<typeof buildLicenseApi>;
3569
3569
  private constructor();
3570
3570
  static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
3571
3571
  }