@mittwald/api-client 4.519.0 → 4.521.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.
@@ -256,8 +256,6 @@ const buildCustomerApi = (baseClient) => ({
256
256
  listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
257
257
  /** Get all customer profiles the authenticated user has access to. */
258
258
  listCustomers: new ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource,
259
- /** Gets the Wallet of the Customer. */
260
- getWallet: new ApiCallAsyncResourceFactory(descriptors.customerGetWallet, baseClient.customer.getWallet).getApiResource,
261
259
  /** Get a CustomerInvite. */
262
260
  getCustomerInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource,
263
261
  /** Get a CustomerMembership. */
@@ -442,8 +440,6 @@ const buildUserApi = (baseClient) => ({
442
440
  getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
443
441
  /** Get personalized settings. */
444
442
  getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
445
- /** Get poll settings for the specified user. */
446
- getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
447
443
  /** Get a specific session. */
448
444
  getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
449
445
  /** Submitted feedback of the given user. */
@@ -494,6 +490,14 @@ const buildProjectApi = (baseClient) => ({
494
490
  storagespaceGetProjectStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetProjectStatistics, baseClient.project.storagespaceGetProjectStatistics).getApiResource,
495
491
  /** Get storage space Statistics belonging to a Server. */
496
492
  storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
493
+ /** Get a usage-metrics breakdown for a project. */
494
+ getUsageMetricsBreakdown: new ApiCallAsyncResourceFactory(descriptors.projectGetUsageMetricsBreakdown, baseClient.project.getUsageMetricsBreakdown).getApiResource,
495
+ /** Get usage metrics for a project. */
496
+ getUsageMetrics: new ApiCallAsyncResourceFactory(descriptors.projectGetUsageMetrics, baseClient.project.getUsageMetrics).getApiResource,
497
+ /** Get a usage-metrics breakdown for a server. */
498
+ getServerUsageMetricsBreakdown: new ApiCallAsyncResourceFactory(descriptors.projectGetServerUsageMetricsBreakdown, baseClient.project.getServerUsageMetricsBreakdown).getApiResource,
499
+ /** Get usage metrics for a server. */
500
+ getServerUsageMetrics: new ApiCallAsyncResourceFactory(descriptors.projectGetServerUsageMetrics, baseClient.project.getServerUsageMetrics).getApiResource,
497
501
  });
498
502
  const buildProjectFileSystemApi = (baseClient) => ({
499
503
  /** List directories belonging to a Project. */
@@ -360,8 +360,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
360
360
  extensionPatchExtension: this.requestFunctionFactory(descriptors.extensionPatchExtension),
361
361
  /** Disable an ExtensionInstance. */
362
362
  extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance),
363
- /** Dry run a webhook with random or given values. */
364
- extensionDryRunWebhook: this.requestFunctionFactory(descriptors.extensionDryRunWebhook),
365
363
  /** Enable an ExtensionInstance. */
366
364
  extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance),
367
365
  /** Generate an Extension secret for the given Extension. */
@@ -485,12 +483,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
485
483
  listCustomers: this.requestFunctionFactory(descriptors.customerListCustomers),
486
484
  /** Create a new customer profile. */
487
485
  createCustomer: this.requestFunctionFactory(descriptors.customerCreateCustomer),
488
- /** Lets us know your idea for our recommendation programm. */
489
- createRecommendationSuggestion: this.requestFunctionFactory(descriptors.customerCreateRecommendationSuggestion),
490
- /** Gets the Wallet of the Customer. */
491
- getWallet: this.requestFunctionFactory(descriptors.customerGetWallet),
492
- /** Create the Wallet for the Customer. */
493
- createWallet: this.requestFunctionFactory(descriptors.customerCreateWallet),
494
486
  /** Decline a CustomerInvite. */
495
487
  declineCustomerInvite: this.requestFunctionFactory(descriptors.customerDeclineCustomerInvite),
496
488
  /** Get a CustomerInvite. */
@@ -834,10 +826,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
834
826
  getPersonalizedSettings: this.requestFunctionFactory(descriptors.userGetPersonalizedSettings),
835
827
  /** Update personalized GUI settings. */
836
828
  updatePersonalizedSettings: this.requestFunctionFactory(descriptors.userUpdatePersonalizedSettings),
837
- /** Get poll settings for the specified user. */
838
- getPollStatus: this.requestFunctionFactory(descriptors.userGetPollStatus),
839
- /** Store new or update poll settings. */
840
- postPollStatus: this.requestFunctionFactory(descriptors.userPostPollStatus),
841
829
  /** Get a specific session. */
842
830
  getSession: this.requestFunctionFactory(descriptors.userGetSession),
843
831
  /** Terminate a specific Session. */
@@ -1036,6 +1024,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
1036
1024
  storagespaceGetServerStatistics: this.requestFunctionFactory(descriptors.storagespaceGetServerStatistics),
1037
1025
  /** Update a Server's storage space statistics. */
1038
1026
  storagespaceUpdateServerStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateServerStatistics),
1027
+ /** Get a usage-metrics breakdown for a project. */
1028
+ getUsageMetricsBreakdown: this.requestFunctionFactory(descriptors.projectGetUsageMetricsBreakdown),
1029
+ /** Get usage metrics for a project. */
1030
+ getUsageMetrics: this.requestFunctionFactory(descriptors.projectGetUsageMetrics),
1031
+ /** Get a usage-metrics breakdown for a server. */
1032
+ getServerUsageMetricsBreakdown: this.requestFunctionFactory(descriptors.projectGetServerUsageMetricsBreakdown),
1033
+ /** Get usage metrics for a server. */
1034
+ getServerUsageMetrics: this.requestFunctionFactory(descriptors.projectGetServerUsageMetrics),
1039
1035
  };
1040
1036
  /** The filesystem API allows you to directly access the filesystem of your project. */
1041
1037
  projectFileSystem = {
@@ -982,24 +982,6 @@ export const customerCreateCustomer = {
982
982
  method: "POST",
983
983
  operationId: "customer-create-customer",
984
984
  };
985
- /** Lets us know your idea for our recommendation programm. */
986
- export const customerCreateRecommendationSuggestion = {
987
- path: "/v2/customers/{customerId}/recommendation-suggestions",
988
- method: "POST",
989
- operationId: "customer-create-recommendation-suggestion",
990
- };
991
- /** Gets the Wallet of the Customer. */
992
- export const customerGetWallet = {
993
- path: "/v2/customers/{customerId}/wallet",
994
- method: "GET",
995
- operationId: "customer-get-wallet",
996
- };
997
- /** Create the Wallet for the Customer. */
998
- export const customerCreateWallet = {
999
- path: "/v2/customers/{customerId}/wallet",
1000
- method: "POST",
1001
- operationId: "customer-create-wallet",
1002
- };
1003
985
  /** Decline a CustomerInvite. */
1004
986
  export const customerDeclineCustomerInvite = {
1005
987
  path: "/v2/customer-invites/{customerInviteId}/actions/decline",
@@ -1600,12 +1582,6 @@ export const extensionDisableExtensionInstance = {
1600
1582
  method: "POST",
1601
1583
  operationId: "extension-disable-extension-instance",
1602
1584
  };
1603
- /** Dry run a webhook with random or given values. */
1604
- export const extensionDryRunWebhook = {
1605
- path: "/v2/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/actions/dry-run/{webhookKind}",
1606
- method: "POST",
1607
- operationId: "extension-dry-run-webhook",
1608
- };
1609
1585
  /** Enable an ExtensionInstance. */
1610
1586
  export const extensionEnableExtensionInstance = {
1611
1587
  path: "/v2/extension-instances/{extensionInstanceId}/actions/enable",
@@ -2824,18 +2800,6 @@ export const userUpdatePersonalizedSettings = {
2824
2800
  method: "PUT",
2825
2801
  operationId: "user-update-personalized-settings",
2826
2802
  };
2827
- /** Get poll settings for the specified user. */
2828
- export const userGetPollStatus = {
2829
- path: "/v2/poll-settings/{userId}",
2830
- method: "GET",
2831
- operationId: "user-get-poll-status",
2832
- };
2833
- /** Store new or update poll settings. */
2834
- export const userPostPollStatus = {
2835
- path: "/v2/poll-settings/{userId}",
2836
- method: "POST",
2837
- operationId: "user-post-poll-status",
2838
- };
2839
2803
  /** Get a specific session. */
2840
2804
  export const userGetSession = {
2841
2805
  path: "/v2/users/self/sessions/{tokenId}",
@@ -3004,3 +2968,27 @@ export const verificationVerifyCompany = {
3004
2968
  method: "POST",
3005
2969
  operationId: "verification-verify-company",
3006
2970
  };
2971
+ /** Get a usage-metrics breakdown for a project. */
2972
+ export const projectGetUsageMetricsBreakdown = {
2973
+ path: "/v2/projects/{projectId}/usage-metrics/breakdown",
2974
+ method: "GET",
2975
+ operationId: "project-get-usage-metrics-breakdown",
2976
+ };
2977
+ /** Get usage metrics for a project. */
2978
+ export const projectGetUsageMetrics = {
2979
+ path: "/v2/projects/{projectId}/usage-metrics",
2980
+ method: "GET",
2981
+ operationId: "project-get-usage-metrics",
2982
+ };
2983
+ /** Get a usage-metrics breakdown for a server. */
2984
+ export const projectGetServerUsageMetricsBreakdown = {
2985
+ path: "/v2/servers/{serverId}/usage-metrics/breakdown",
2986
+ method: "GET",
2987
+ operationId: "project-get-server-usage-metrics-breakdown",
2988
+ };
2989
+ /** Get usage metrics for a server. */
2990
+ export const projectGetServerUsageMetrics = {
2991
+ path: "/v2/servers/{serverId}/usage-metrics",
2992
+ method: "GET",
2993
+ operationId: "project-get-server-usage-metrics",
2994
+ };
@@ -256,8 +256,6 @@ const buildCustomerApi = (baseClient) => ({
256
256
  listInvitesForCustomer: new ApiCallAsyncResourceFactory(descriptors.customerListInvitesForCustomer, baseClient.customer.listInvitesForCustomer).getApiResource,
257
257
  /** Get all customer profiles the authenticated user has access to. */
258
258
  listCustomers: new ApiCallAsyncResourceFactory(descriptors.customerListCustomers, baseClient.customer.listCustomers).getApiResource,
259
- /** Gets the Wallet of the Customer. */
260
- getWallet: new ApiCallAsyncResourceFactory(descriptors.customerGetWallet, baseClient.customer.getWallet).getApiResource,
261
259
  /** Get a CustomerInvite. */
262
260
  getCustomerInvite: new ApiCallAsyncResourceFactory(descriptors.customerGetCustomerInvite, baseClient.customer.getCustomerInvite).getApiResource,
263
261
  /** Get a CustomerMembership. */
@@ -442,8 +440,6 @@ const buildUserApi = (baseClient) => ({
442
440
  getPasswordUpdatedAt: new ApiCallAsyncResourceFactory(descriptors.userGetPasswordUpdatedAt, baseClient.user.getPasswordUpdatedAt).getApiResource,
443
441
  /** Get personalized settings. */
444
442
  getPersonalizedSettings: new ApiCallAsyncResourceFactory(descriptors.userGetPersonalizedSettings, baseClient.user.getPersonalizedSettings).getApiResource,
445
- /** Get poll settings for the specified user. */
446
- getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
447
443
  /** Get a specific session. */
448
444
  getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
449
445
  /** Submitted feedback of the given user. */
@@ -494,6 +490,14 @@ const buildProjectApi = (baseClient) => ({
494
490
  storagespaceGetProjectStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetProjectStatistics, baseClient.project.storagespaceGetProjectStatistics).getApiResource,
495
491
  /** Get storage space Statistics belonging to a Server. */
496
492
  storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
493
+ /** Get a usage-metrics breakdown for a project. */
494
+ getUsageMetricsBreakdown: new ApiCallAsyncResourceFactory(descriptors.projectGetUsageMetricsBreakdown, baseClient.project.getUsageMetricsBreakdown).getApiResource,
495
+ /** Get usage metrics for a project. */
496
+ getUsageMetrics: new ApiCallAsyncResourceFactory(descriptors.projectGetUsageMetrics, baseClient.project.getUsageMetrics).getApiResource,
497
+ /** Get a usage-metrics breakdown for a server. */
498
+ getServerUsageMetricsBreakdown: new ApiCallAsyncResourceFactory(descriptors.projectGetServerUsageMetricsBreakdown, baseClient.project.getServerUsageMetricsBreakdown).getApiResource,
499
+ /** Get usage metrics for a server. */
500
+ getServerUsageMetrics: new ApiCallAsyncResourceFactory(descriptors.projectGetServerUsageMetrics, baseClient.project.getServerUsageMetrics).getApiResource,
497
501
  });
498
502
  const buildProjectFileSystemApi = (baseClient) => ({
499
503
  /** List directories belonging to a Project. */
@@ -360,8 +360,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
360
360
  extensionPatchExtension: this.requestFunctionFactory(descriptors.extensionPatchExtension),
361
361
  /** Disable an ExtensionInstance. */
362
362
  extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance),
363
- /** Dry run a webhook with random or given values. */
364
- extensionDryRunWebhook: this.requestFunctionFactory(descriptors.extensionDryRunWebhook),
365
363
  /** Enable an ExtensionInstance. */
366
364
  extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance),
367
365
  /** Generate an Extension secret for the given Extension. */
@@ -485,12 +483,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
485
483
  listCustomers: this.requestFunctionFactory(descriptors.customerListCustomers),
486
484
  /** Create a new customer profile. */
487
485
  createCustomer: this.requestFunctionFactory(descriptors.customerCreateCustomer),
488
- /** Lets us know your idea for our recommendation programm. */
489
- createRecommendationSuggestion: this.requestFunctionFactory(descriptors.customerCreateRecommendationSuggestion),
490
- /** Gets the Wallet of the Customer. */
491
- getWallet: this.requestFunctionFactory(descriptors.customerGetWallet),
492
- /** Create the Wallet for the Customer. */
493
- createWallet: this.requestFunctionFactory(descriptors.customerCreateWallet),
494
486
  /** Decline a CustomerInvite. */
495
487
  declineCustomerInvite: this.requestFunctionFactory(descriptors.customerDeclineCustomerInvite),
496
488
  /** Get a CustomerInvite. */
@@ -834,10 +826,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
834
826
  getPersonalizedSettings: this.requestFunctionFactory(descriptors.userGetPersonalizedSettings),
835
827
  /** Update personalized GUI settings. */
836
828
  updatePersonalizedSettings: this.requestFunctionFactory(descriptors.userUpdatePersonalizedSettings),
837
- /** Get poll settings for the specified user. */
838
- getPollStatus: this.requestFunctionFactory(descriptors.userGetPollStatus),
839
- /** Store new or update poll settings. */
840
- postPollStatus: this.requestFunctionFactory(descriptors.userPostPollStatus),
841
829
  /** Get a specific session. */
842
830
  getSession: this.requestFunctionFactory(descriptors.userGetSession),
843
831
  /** Terminate a specific Session. */
@@ -1036,6 +1024,14 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
1036
1024
  storagespaceGetServerStatistics: this.requestFunctionFactory(descriptors.storagespaceGetServerStatistics),
1037
1025
  /** Update a Server's storage space statistics. */
1038
1026
  storagespaceUpdateServerStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateServerStatistics),
1027
+ /** Get a usage-metrics breakdown for a project. */
1028
+ getUsageMetricsBreakdown: this.requestFunctionFactory(descriptors.projectGetUsageMetricsBreakdown),
1029
+ /** Get usage metrics for a project. */
1030
+ getUsageMetrics: this.requestFunctionFactory(descriptors.projectGetUsageMetrics),
1031
+ /** Get a usage-metrics breakdown for a server. */
1032
+ getServerUsageMetricsBreakdown: this.requestFunctionFactory(descriptors.projectGetServerUsageMetricsBreakdown),
1033
+ /** Get usage metrics for a server. */
1034
+ getServerUsageMetrics: this.requestFunctionFactory(descriptors.projectGetServerUsageMetrics),
1039
1035
  };
1040
1036
  /** The filesystem API allows you to directly access the filesystem of your project. */
1041
1037
  projectFileSystem = {
@@ -982,24 +982,6 @@ export const customerCreateCustomer = {
982
982
  method: "POST",
983
983
  operationId: "customer-create-customer",
984
984
  };
985
- /** Lets us know your idea for our recommendation programm. */
986
- export const customerCreateRecommendationSuggestion = {
987
- path: "/v3-next/customers/{customerId}/recommendation-suggestions",
988
- method: "POST",
989
- operationId: "customer-create-recommendation-suggestion",
990
- };
991
- /** Gets the Wallet of the Customer. */
992
- export const customerGetWallet = {
993
- path: "/v3-next/customers/{customerId}/wallet",
994
- method: "GET",
995
- operationId: "customer-get-wallet",
996
- };
997
- /** Create the Wallet for the Customer. */
998
- export const customerCreateWallet = {
999
- path: "/v3-next/customers/{customerId}/wallet",
1000
- method: "POST",
1001
- operationId: "customer-create-wallet",
1002
- };
1003
985
  /** Decline a CustomerInvite. */
1004
986
  export const customerDeclineCustomerInvite = {
1005
987
  path: "/v3-next/customer-invites/{customerInviteId}/actions/decline",
@@ -1600,12 +1582,6 @@ export const extensionDisableExtensionInstance = {
1600
1582
  method: "POST",
1601
1583
  operationId: "extension-disable-extension-instance",
1602
1584
  };
1603
- /** Dry run a webhook with random or given values. */
1604
- export const extensionDryRunWebhook = {
1605
- path: "/v3-next/contributors/{contributorId}/extensions/{extensionId}/extension-instances/{extensionInstanceId}/actions/dry-run/{webhookKind}",
1606
- method: "POST",
1607
- operationId: "extension-dry-run-webhook",
1608
- };
1609
1585
  /** Enable an ExtensionInstance. */
1610
1586
  export const extensionEnableExtensionInstance = {
1611
1587
  path: "/v3-next/extension-instances/{extensionInstanceId}/actions/enable",
@@ -2824,18 +2800,6 @@ export const userUpdatePersonalizedSettings = {
2824
2800
  method: "PUT",
2825
2801
  operationId: "user-update-personalized-settings",
2826
2802
  };
2827
- /** Get poll settings for the specified user. */
2828
- export const userGetPollStatus = {
2829
- path: "/v3-next/poll-settings/{userId}",
2830
- method: "GET",
2831
- operationId: "user-get-poll-status",
2832
- };
2833
- /** Store new or update poll settings. */
2834
- export const userPostPollStatus = {
2835
- path: "/v3-next/poll-settings/{userId}",
2836
- method: "POST",
2837
- operationId: "user-post-poll-status",
2838
- };
2839
2803
  /** Get a specific session. */
2840
2804
  export const userGetSession = {
2841
2805
  path: "/v3-next/users/self/sessions/{tokenId}",
@@ -3004,3 +2968,27 @@ export const verificationVerifyCompany = {
3004
2968
  method: "POST",
3005
2969
  operationId: "verification-verify-company",
3006
2970
  };
2971
+ /** Get a usage-metrics breakdown for a project. */
2972
+ export const projectGetUsageMetricsBreakdown = {
2973
+ path: "/v3-next/projects/{projectId}/usage-metrics/breakdown",
2974
+ method: "GET",
2975
+ operationId: "project-get-usage-metrics-breakdown",
2976
+ };
2977
+ /** Get usage metrics for a project. */
2978
+ export const projectGetUsageMetrics = {
2979
+ path: "/v3-next/projects/{projectId}/usage-metrics",
2980
+ method: "GET",
2981
+ operationId: "project-get-usage-metrics",
2982
+ };
2983
+ /** Get a usage-metrics breakdown for a server. */
2984
+ export const projectGetServerUsageMetricsBreakdown = {
2985
+ path: "/v3-next/servers/{serverId}/usage-metrics/breakdown",
2986
+ method: "GET",
2987
+ operationId: "project-get-server-usage-metrics-breakdown",
2988
+ };
2989
+ /** Get usage metrics for a server. */
2990
+ export const projectGetServerUsageMetrics = {
2991
+ path: "/v3-next/servers/{serverId}/usage-metrics",
2992
+ method: "GET",
2993
+ operationId: "project-get-server-usage-metrics",
2994
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.518.0';
1
+ export const MittwaldAPIClientVersion = '4.520.0';
@@ -2133,19 +2133,6 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
2133
2133
  page?: number | undefined;
2134
2134
  } | undefined;
2135
2135
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerCustomer[]>;
2136
- /** Gets the Wallet of the Customer. */
2137
- getWallet: (conf: {
2138
- customerId: string;
2139
- headers?: {
2140
- [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
2141
- "x-access-token"?: string | undefined;
2142
- } | undefined;
2143
- }) => import("@mittwald/react-use-promise").AsyncResource<{
2144
- customerId: string;
2145
- points: number;
2146
- recommendationCode?: string | undefined;
2147
- walletId: string;
2148
- }>;
2149
2136
  /** Get a CustomerInvite. */
2150
2137
  getCustomerInvite: (conf: {
2151
2138
  customerInviteId: string;
@@ -3521,20 +3508,6 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
3521
3508
  }) => import("@mittwald/react-use-promise").AsyncResource<{
3522
3509
  settingsString?: string | undefined;
3523
3510
  }>;
3524
- /** Get poll settings for the specified user. */
3525
- getPollStatus: (conf: {
3526
- userId: string;
3527
- headers?: {
3528
- [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3529
- } | undefined;
3530
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3531
- completedAt?: string | undefined;
3532
- dontShowUntil?: string | undefined;
3533
- ignoredAt?: string | undefined;
3534
- shouldShow: boolean;
3535
- status: "completed" | "muted" | "ignored" | "new";
3536
- userId: string;
3537
- }>;
3538
3511
  /** Get a specific session. */
3539
3512
  getSession: (conf: {
3540
3513
  tokenId: string;
@@ -3975,6 +3948,74 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
3975
3948
  notificationThresholdInBytes?: number | undefined;
3976
3949
  statisticCategories?: import("./types.js").MittwaldAPIV2.Components.Schemas.StoragespaceStatisticsCategory[] | undefined;
3977
3950
  }>;
3951
+ /** Get a usage-metrics breakdown for a project. */
3952
+ getUsageMetricsBreakdown: (conf: {
3953
+ queryParameters: {
3954
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3955
+ metric: "cpu" | "memory";
3956
+ from?: (string | Date) | undefined;
3957
+ to?: (string | Date) | undefined;
3958
+ };
3959
+ projectId: string;
3960
+ headers?: {
3961
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3962
+ "x-access-token"?: string | undefined;
3963
+ } | undefined;
3964
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3965
+ apps: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
3966
+ containers: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
3967
+ databases: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
3968
+ }>;
3969
+ /** Get usage metrics for a project. */
3970
+ getUsageMetrics: (conf: {
3971
+ queryParameters: {
3972
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3973
+ metric: "cpu" | "memory";
3974
+ from?: (string | Date) | undefined;
3975
+ to?: (string | Date) | undefined;
3976
+ };
3977
+ projectId: string;
3978
+ headers?: {
3979
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3980
+ "x-access-token"?: string | undefined;
3981
+ } | undefined;
3982
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3983
+ series: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
3984
+ }>;
3985
+ /** Get a usage-metrics breakdown for a server. */
3986
+ getServerUsageMetricsBreakdown: (conf: {
3987
+ queryParameters: {
3988
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3989
+ metric: "cpu" | "memory";
3990
+ from?: (string | Date) | undefined;
3991
+ to?: (string | Date) | undefined;
3992
+ };
3993
+ serverId: string;
3994
+ headers?: {
3995
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
3996
+ "x-access-token"?: string | undefined;
3997
+ } | undefined;
3998
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3999
+ databases: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
4000
+ limit: number;
4001
+ projects: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
4002
+ }>;
4003
+ /** Get usage metrics for a server. */
4004
+ getServerUsageMetrics: (conf: {
4005
+ queryParameters: {
4006
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
4007
+ metric: "cpu" | "memory";
4008
+ from?: (string | Date) | undefined;
4009
+ to?: (string | Date) | undefined;
4010
+ };
4011
+ serverId: string;
4012
+ headers?: {
4013
+ [x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
4014
+ "x-access-token"?: string | undefined;
4015
+ } | undefined;
4016
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
4017
+ series: import("./types.js").MittwaldAPIV2.Components.Schemas.UsagemetricsSeries[];
4018
+ }>;
3978
4019
  };
3979
4020
  declare const buildProjectFileSystemApi: (baseClient: MittwaldAPIV2Client) => {
3980
4021
  /** List directories belonging to a Project. */