@mittwald/api-client 4.518.0 → 4.520.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.
@@ -2006,6 +2006,22 @@ export declare namespace MittwaldAPIV3Next {
2006
2006
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
2007
2007
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
2008
2008
  }
2009
+ namespace ProjectGetUsageMetricsBreakdown {
2010
+ type RequestData = InferredRequestData<typeof descriptors.projectGetUsageMetricsBreakdown>;
2011
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.projectGetUsageMetricsBreakdown, TStatus>;
2012
+ }
2013
+ namespace ProjectGetUsageMetrics {
2014
+ type RequestData = InferredRequestData<typeof descriptors.projectGetUsageMetrics>;
2015
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.projectGetUsageMetrics, TStatus>;
2016
+ }
2017
+ namespace ProjectGetServerUsageMetricsBreakdown {
2018
+ type RequestData = InferredRequestData<typeof descriptors.projectGetServerUsageMetricsBreakdown>;
2019
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.projectGetServerUsageMetricsBreakdown, TStatus>;
2020
+ }
2021
+ namespace ProjectGetServerUsageMetrics {
2022
+ type RequestData = InferredRequestData<typeof descriptors.projectGetServerUsageMetrics>;
2023
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.projectGetServerUsageMetrics, TStatus>;
2024
+ }
2009
2025
  }
2010
2026
  namespace Components {
2011
2027
  namespace Schemas {
@@ -4223,11 +4239,11 @@ export declare namespace MittwaldAPIV3Next {
4223
4239
  */
4224
4240
  records: MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsImportRecord[];
4225
4241
  /**
4226
- * True when the source TTLs had to be normalized to ttlSeconds — because they diverged within the set or fell below the 60s minimum. Informational; the import still uses ttlSeconds.
4242
+ * True when the source TTLs had to be normalized to ttlSeconds — because they diverged within the set or fell outside 60..86400s. Informational; the import still uses ttlSeconds.
4227
4243
  */
4228
4244
  ttlNormalized: boolean;
4229
4245
  /**
4230
- * TTL applied to the whole set, in seconds. Collapsed to a single value across the set: the minimum of the source TTLs, floored to the 60s minimum.
4246
+ * TTL applied to the whole set, in seconds. Collapsed to a single value across the set: the minimum of the source TTLs, clamped to 60..86400s.
4231
4247
  */
4232
4248
  ttlSeconds: number;
4233
4249
  /**
@@ -8533,7 +8549,7 @@ export declare namespace MittwaldAPIV3Next {
8533
8549
  signingRequest?: string;
8534
8550
  }
8535
8551
  interface DeMittwaldSslCertificateError {
8536
- message: "certificate_read_failed" | "certificate_decode_failed" | "certificate_parsing_failed" | "certificate_self_signed" | "certificate_not_authorized_to_sign" | "certificate_expired" | "ca_not_authorized_for_this_name" | "too_many_intermediates" | "incompatible_usage" | "unknown_authority" | "private_key_read_failed" | "private_key_decode_failed" | "private_key_parse_failed" | "private_key_encrypted" | "private_key_not_rsa" | "private_key_mismatch" | "unknown_cloudflare_error" | "unknown";
8552
+ message: "certificate_read_failed" | "certificate_decode_failed" | "certificate_parsing_failed" | "certificate_self_signed" | "certificate_not_authorized_to_sign" | "certificate_expired" | "ca_not_authorized_for_this_name" | "too_many_intermediates" | "incompatible_usage" | "unknown_authority" | "private_key_read_failed" | "private_key_decode_failed" | "private_key_parse_failed" | "private_key_encrypted" | "private_key_not_rsa" | "private_key_mismatch" | "unknown_cloudflare_error" | "unknown" | "private_key_is_certificate";
8537
8553
  }
8538
8554
  interface DeMittwaldSslCertificateRequest {
8539
8555
  certificateData: MittwaldAPIV3Next.Components.Schemas.DeMittwaldSslCertificateData;
@@ -9219,6 +9235,53 @@ export declare namespace MittwaldAPIV3Next {
9219
9235
  }
9220
9236
  type DeMittwaldVerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
9221
9237
  type DeMittwaldContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
9238
+ interface DeMittwaldUsagemetricsGetProjectUsageBreakdownResponse {
9239
+ /**
9240
+ * Usage of all apps relative to the applicable limit.
9241
+ */
9242
+ apps: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9243
+ /**
9244
+ * Usage per container relative to the applicable limit, labelled with `stack` and `container`.
9245
+ */
9246
+ containers: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9247
+ /**
9248
+ * Usage of all databases relative to the applicable limit; empty for projects on a dedicated server or proSpace lite.
9249
+ */
9250
+ databases: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9251
+ }
9252
+ interface DeMittwaldUsagemetricsGetServerUsageBreakdownResponse {
9253
+ /**
9254
+ * Absolute database usage (CPU seconds per second or memory bytes), labelled with `database_type` and `database_version`.
9255
+ */
9256
+ databases: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9257
+ /**
9258
+ * Current server limit in the unit of the requested metric (CPU seconds per second or memory bytes).
9259
+ */
9260
+ limit: number;
9261
+ /**
9262
+ * Usage per project relative to the server limit, labelled with `project`.
9263
+ */
9264
+ projects: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9265
+ }
9266
+ interface DeMittwaldUsagemetricsGetUsageResponse {
9267
+ /**
9268
+ * Usage relative to the applicable limit (1 = 100 %).
9269
+ */
9270
+ series: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSeries[];
9271
+ }
9272
+ interface DeMittwaldUsagemetricsSample {
9273
+ time: string;
9274
+ value: number;
9275
+ }
9276
+ interface DeMittwaldUsagemetricsSeries {
9277
+ /**
9278
+ * Prometheus labels identifying the series, e.g. `project`, `stack`, `container`, `database_type` or `database_version`; empty for an aggregated series.
9279
+ */
9280
+ labels: {
9281
+ [k: string]: string;
9282
+ };
9283
+ samples: MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsSample[];
9284
+ }
9222
9285
  interface DeMittwaldCommonsAddress {
9223
9286
  street: string;
9224
9287
  houseNumber: string;
@@ -21339,7 +21402,7 @@ export declare namespace MittwaldAPIV3Next {
21339
21402
  };
21340
21403
  interface RequestBody {
21341
21404
  /**
21342
- * Raw RFC-1035 zone file content to import.
21405
+ * Raw RFC-1035 zone file content to import, at most 256 KiB and 1000 distinct owner names.
21343
21406
  */
21344
21407
  zoneFile: string;
21345
21408
  }
@@ -35626,5 +35689,289 @@ export declare namespace MittwaldAPIV3Next {
35626
35689
  }
35627
35690
  }
35628
35691
  }
35692
+ namespace V3NextProjectsProjectIdUsageMetricsBreakdown {
35693
+ namespace Get {
35694
+ namespace Parameters {
35695
+ type Path = {
35696
+ projectId: string;
35697
+ };
35698
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
35699
+ type Query = {
35700
+ metric: "cpu" | "memory";
35701
+ from?: string | Date;
35702
+ to?: string | Date;
35703
+ };
35704
+ }
35705
+ namespace Responses {
35706
+ namespace $200 {
35707
+ namespace Content {
35708
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsGetProjectUsageBreakdownResponse;
35709
+ }
35710
+ }
35711
+ namespace $400 {
35712
+ namespace Content {
35713
+ interface ApplicationJson {
35714
+ [k: string]: unknown;
35715
+ }
35716
+ }
35717
+ }
35718
+ namespace $403 {
35719
+ namespace Content {
35720
+ interface ApplicationJson {
35721
+ [k: string]: unknown;
35722
+ }
35723
+ }
35724
+ }
35725
+ namespace $404 {
35726
+ namespace Content {
35727
+ interface ApplicationJson {
35728
+ [k: string]: unknown;
35729
+ }
35730
+ }
35731
+ }
35732
+ namespace $429 {
35733
+ namespace Content {
35734
+ interface ApplicationJson {
35735
+ [k: string]: unknown;
35736
+ }
35737
+ }
35738
+ }
35739
+ namespace $500 {
35740
+ namespace Content {
35741
+ interface ApplicationJson {
35742
+ [k: string]: unknown;
35743
+ }
35744
+ }
35745
+ }
35746
+ namespace $503 {
35747
+ namespace Content {
35748
+ interface ApplicationJson {
35749
+ [k: string]: unknown;
35750
+ }
35751
+ }
35752
+ }
35753
+ namespace Default {
35754
+ namespace Content {
35755
+ interface ApplicationJson {
35756
+ [k: string]: unknown;
35757
+ }
35758
+ }
35759
+ }
35760
+ }
35761
+ }
35762
+ }
35763
+ namespace V3NextProjectsProjectIdUsageMetrics {
35764
+ namespace Get {
35765
+ namespace Parameters {
35766
+ type Path = {
35767
+ projectId: string;
35768
+ };
35769
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
35770
+ type Query = {
35771
+ metric: "cpu" | "memory";
35772
+ from?: string | Date;
35773
+ to?: string | Date;
35774
+ };
35775
+ }
35776
+ namespace Responses {
35777
+ namespace $200 {
35778
+ namespace Content {
35779
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsGetUsageResponse;
35780
+ }
35781
+ }
35782
+ namespace $400 {
35783
+ namespace Content {
35784
+ interface ApplicationJson {
35785
+ [k: string]: unknown;
35786
+ }
35787
+ }
35788
+ }
35789
+ namespace $403 {
35790
+ namespace Content {
35791
+ interface ApplicationJson {
35792
+ [k: string]: unknown;
35793
+ }
35794
+ }
35795
+ }
35796
+ namespace $404 {
35797
+ namespace Content {
35798
+ interface ApplicationJson {
35799
+ [k: string]: unknown;
35800
+ }
35801
+ }
35802
+ }
35803
+ namespace $429 {
35804
+ namespace Content {
35805
+ interface ApplicationJson {
35806
+ [k: string]: unknown;
35807
+ }
35808
+ }
35809
+ }
35810
+ namespace $500 {
35811
+ namespace Content {
35812
+ interface ApplicationJson {
35813
+ [k: string]: unknown;
35814
+ }
35815
+ }
35816
+ }
35817
+ namespace $503 {
35818
+ namespace Content {
35819
+ interface ApplicationJson {
35820
+ [k: string]: unknown;
35821
+ }
35822
+ }
35823
+ }
35824
+ namespace Default {
35825
+ namespace Content {
35826
+ interface ApplicationJson {
35827
+ [k: string]: unknown;
35828
+ }
35829
+ }
35830
+ }
35831
+ }
35832
+ }
35833
+ }
35834
+ namespace V3NextServersServerIdUsageMetricsBreakdown {
35835
+ namespace Get {
35836
+ namespace Parameters {
35837
+ type Path = {
35838
+ serverId: string;
35839
+ };
35840
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
35841
+ type Query = {
35842
+ metric: "cpu" | "memory";
35843
+ from?: string | Date;
35844
+ to?: string | Date;
35845
+ };
35846
+ }
35847
+ namespace Responses {
35848
+ namespace $200 {
35849
+ namespace Content {
35850
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsGetServerUsageBreakdownResponse;
35851
+ }
35852
+ }
35853
+ namespace $400 {
35854
+ namespace Content {
35855
+ interface ApplicationJson {
35856
+ [k: string]: unknown;
35857
+ }
35858
+ }
35859
+ }
35860
+ namespace $403 {
35861
+ namespace Content {
35862
+ interface ApplicationJson {
35863
+ [k: string]: unknown;
35864
+ }
35865
+ }
35866
+ }
35867
+ namespace $404 {
35868
+ namespace Content {
35869
+ interface ApplicationJson {
35870
+ [k: string]: unknown;
35871
+ }
35872
+ }
35873
+ }
35874
+ namespace $429 {
35875
+ namespace Content {
35876
+ interface ApplicationJson {
35877
+ [k: string]: unknown;
35878
+ }
35879
+ }
35880
+ }
35881
+ namespace $500 {
35882
+ namespace Content {
35883
+ interface ApplicationJson {
35884
+ [k: string]: unknown;
35885
+ }
35886
+ }
35887
+ }
35888
+ namespace $503 {
35889
+ namespace Content {
35890
+ interface ApplicationJson {
35891
+ [k: string]: unknown;
35892
+ }
35893
+ }
35894
+ }
35895
+ namespace Default {
35896
+ namespace Content {
35897
+ interface ApplicationJson {
35898
+ [k: string]: unknown;
35899
+ }
35900
+ }
35901
+ }
35902
+ }
35903
+ }
35904
+ }
35905
+ namespace V3NextServersServerIdUsageMetrics {
35906
+ namespace Get {
35907
+ namespace Parameters {
35908
+ type Path = {
35909
+ serverId: string;
35910
+ };
35911
+ type Header = {} & MittwaldAPIV3Next.Components.SecuritySchemes.DeMittwaldCommonsAccessToken;
35912
+ type Query = {
35913
+ metric: "cpu" | "memory";
35914
+ from?: string | Date;
35915
+ to?: string | Date;
35916
+ };
35917
+ }
35918
+ namespace Responses {
35919
+ namespace $200 {
35920
+ namespace Content {
35921
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldUsagemetricsGetUsageResponse;
35922
+ }
35923
+ }
35924
+ namespace $400 {
35925
+ namespace Content {
35926
+ interface ApplicationJson {
35927
+ [k: string]: unknown;
35928
+ }
35929
+ }
35930
+ }
35931
+ namespace $403 {
35932
+ namespace Content {
35933
+ interface ApplicationJson {
35934
+ [k: string]: unknown;
35935
+ }
35936
+ }
35937
+ }
35938
+ namespace $404 {
35939
+ namespace Content {
35940
+ interface ApplicationJson {
35941
+ [k: string]: unknown;
35942
+ }
35943
+ }
35944
+ }
35945
+ namespace $429 {
35946
+ namespace Content {
35947
+ interface ApplicationJson {
35948
+ [k: string]: unknown;
35949
+ }
35950
+ }
35951
+ }
35952
+ namespace $500 {
35953
+ namespace Content {
35954
+ interface ApplicationJson {
35955
+ [k: string]: unknown;
35956
+ }
35957
+ }
35958
+ }
35959
+ namespace $503 {
35960
+ namespace Content {
35961
+ interface ApplicationJson {
35962
+ [k: string]: unknown;
35963
+ }
35964
+ }
35965
+ }
35966
+ namespace Default {
35967
+ namespace Content {
35968
+ interface ApplicationJson {
35969
+ [k: string]: unknown;
35970
+ }
35971
+ }
35972
+ }
35973
+ }
35974
+ }
35975
+ }
35629
35976
  }
35630
35977
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.517.0';
1
+ export declare const MittwaldAPIClientVersion = '4.519.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.518.0",
3
+ "version": "4.520.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -72,12 +72,12 @@
72
72
  "test:compile": "run tsc --noEmit"
73
73
  },
74
74
  "dependencies": {
75
- "@mittwald/api-client-commons": "^4.518.0",
75
+ "@mittwald/api-client-commons": "^4.520.0",
76
76
  "browser-or-node": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@eslint/js": "^10.0.1",
80
- "@mittwald/api-code-generator": "^4.518.0",
80
+ "@mittwald/api-code-generator": "^4.520.0",
81
81
  "@mittwald/react-use-promise": "^4.3.0",
82
82
  "@types/node": "^26.4.0",
83
83
  "@types/react": "^18.3.31",
@@ -107,5 +107,5 @@
107
107
  "optional": true
108
108
  }
109
109
  },
110
- "gitHead": "8d6234da11a6ea43362838805ee8cad1a621ac64"
110
+ "gitHead": "073607e159f896ae0b0f716bb370055f4b880036"
111
111
  }