@mittwald/api-client 4.459.0 → 4.461.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.
@@ -50,6 +50,14 @@ export declare namespace MittwaldAPIV3Next {
50
50
  type RequestData = InferredRequestData<typeof descriptors.aiHostingGetModels>;
51
51
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingGetModels, TStatus>;
52
52
  }
53
+ namespace AiHostingPlanGetBillingPeriods {
54
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetBillingPeriods>;
55
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetBillingPeriods, TStatus>;
56
+ }
57
+ namespace AiHostingPlanGetUsageStats {
58
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetUsageStats>;
59
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetUsageStats, TStatus>;
60
+ }
53
61
  namespace AiHostingProjectGetKeys {
54
62
  type RequestData = InferredRequestData<typeof descriptors.aiHostingProjectGetKeys>;
55
63
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingProjectGetKeys, TStatus>;
@@ -1910,14 +1918,6 @@ export declare namespace MittwaldAPIV3Next {
1910
1918
  type RequestData = InferredRequestData<typeof descriptors.verificationVerifyCompany>;
1911
1919
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.verificationVerifyCompany, TStatus>;
1912
1920
  }
1913
- namespace AiHostingPlanGetBillingPeriods {
1914
- type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetBillingPeriods>;
1915
- type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetBillingPeriods, TStatus>;
1916
- }
1917
- namespace AiHostingPlanGetUsageStats {
1918
- type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetUsageStats>;
1919
- type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetUsageStats, TStatus>;
1920
- }
1921
1921
  }
1922
1922
  namespace Components {
1923
1923
  namespace Schemas {
@@ -2014,6 +2014,30 @@ export declare namespace MittwaldAPIV3Next {
2014
2014
  termsOfServiceLink: string;
2015
2015
  tokenFactor: number;
2016
2016
  }
2017
+ interface DeMittwaldAihostingPlanBillingPeriods {
2018
+ customerId: string;
2019
+ /**
2020
+ * End of the current period, i.e. when the token counter next resets.
2021
+ */
2022
+ nextTokenReset?: string;
2023
+ /**
2024
+ * Every contract month of the plan from its start up to the current one, anchored on the plan start date rather than the calendar.
2025
+ */
2026
+ periods: {
2027
+ end: string;
2028
+ isCurrent: boolean;
2029
+ /**
2030
+ * True when an upgrade cut this period short: the token counter is reset immediately on an upgrade, so the period ends there instead of on the regular grid. A downgrade does not do this - it takes effect at the next regular boundary.
2031
+ */
2032
+ shortenedByUpgrade: boolean;
2033
+ start: string;
2034
+ /**
2035
+ * The limit that applied during this period, which after a tariff change differs from the plan's current limit.
2036
+ */
2037
+ tokenLimit: number;
2038
+ }[];
2039
+ planId: string;
2040
+ }
2017
2041
  type DeMittwaldAihostingPlanOptions = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingCustomerPlan;
2018
2042
  interface DeMittwaldAihostingPlanUsageBig {
2019
2043
  available: number;
@@ -2025,6 +2049,33 @@ export declare namespace MittwaldAPIV3Next {
2025
2049
  planLimit: number;
2026
2050
  used: number;
2027
2051
  }
2052
+ interface DeMittwaldAihostingPlanUsageStats {
2053
+ customerId: string;
2054
+ daily: {
2055
+ byKey: {
2056
+ [k: string]: number;
2057
+ };
2058
+ date: string;
2059
+ totalTokens: number;
2060
+ }[];
2061
+ /**
2062
+ * Every licence of the plan, most used in the timeframe first. Includes licences deleted inside the timeframe, which still carry usage but are no longer returned by the keys endpoint. Ordered, so callers can key chart colours off the position.
2063
+ */
2064
+ keys: {
2065
+ id: string;
2066
+ name: string;
2067
+ }[];
2068
+ modelShare: {
2069
+ model: string;
2070
+ tokens: number;
2071
+ }[];
2072
+ planId: string;
2073
+ timeframe: {
2074
+ end: string;
2075
+ start: string;
2076
+ };
2077
+ totalTokens: number;
2078
+ }
2028
2079
  interface DeMittwaldAihostingProfile {
2029
2080
  planIds: string[];
2030
2081
  }
@@ -3695,7 +3746,7 @@ export declare namespace MittwaldAPIV3Next {
3695
3746
  }
3696
3747
  interface DeMittwaldDatabaseCreateMySqlUser {
3697
3748
  /**
3698
- * An IP range (in CIDR notation) for which access should be allowed.
3749
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3699
3750
  */
3700
3751
  accessIpMask?: string;
3701
3752
  /**
@@ -3716,6 +3767,9 @@ export declare namespace MittwaldAPIV3Next {
3716
3767
  password: string;
3717
3768
  }
3718
3769
  interface DeMittwaldDatabaseCreateMySqlUserWithDatabase {
3770
+ /**
3771
+ * This field currently has no effect.
3772
+ */
3719
3773
  accessIpMask?: string;
3720
3774
  /**
3721
3775
  * The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
@@ -3800,7 +3854,7 @@ export declare namespace MittwaldAPIV3Next {
3800
3854
  }
3801
3855
  interface DeMittwaldDatabaseMySqlUser {
3802
3856
  /**
3803
- * An IP range (in CIDR notation) for which access should be allowed.
3857
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3804
3858
  */
3805
3859
  accessIpMask?: string;
3806
3860
  /**
@@ -7250,57 +7304,6 @@ export declare namespace MittwaldAPIV3Next {
7250
7304
  }
7251
7305
  type DeMittwaldVerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
7252
7306
  type DeMittwaldContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
7253
- interface DeMittwaldAihostingPlanBillingPeriods {
7254
- customerId: string;
7255
- /**
7256
- * End of the current period, i.e. when the token counter next resets.
7257
- */
7258
- nextTokenReset?: string;
7259
- /**
7260
- * Every contract month of the plan from its start up to the current one, anchored on the plan start date rather than the calendar.
7261
- */
7262
- periods: {
7263
- end: string;
7264
- isCurrent: boolean;
7265
- /**
7266
- * True when an upgrade cut this period short: the token counter is reset immediately on an upgrade, so the period ends there instead of on the regular grid. A downgrade does not do this - it takes effect at the next regular boundary.
7267
- */
7268
- shortenedByUpgrade: boolean;
7269
- start: string;
7270
- /**
7271
- * The limit that applied during this period, which after a tariff change differs from the plan's current limit.
7272
- */
7273
- tokenLimit: number;
7274
- }[];
7275
- planId: string;
7276
- }
7277
- interface DeMittwaldAihostingPlanUsageStats {
7278
- customerId: string;
7279
- daily: {
7280
- byKey: {
7281
- [k: string]: number;
7282
- };
7283
- date: string;
7284
- totalTokens: number;
7285
- }[];
7286
- /**
7287
- * Every licence of the plan, most used in the timeframe first. Includes licences deleted inside the timeframe, which still carry usage but are no longer returned by the keys endpoint. Ordered, so callers can key chart colours off the position.
7288
- */
7289
- keys: {
7290
- id: string;
7291
- name: string;
7292
- }[];
7293
- modelShare: {
7294
- model: string;
7295
- tokens: number;
7296
- }[];
7297
- planId: string;
7298
- timeframe: {
7299
- end: string;
7300
- start: string;
7301
- };
7302
- totalTokens: number;
7303
- }
7304
7307
  interface DeMittwaldCommonsAddress {
7305
7308
  street: string;
7306
7309
  houseNumber: string;
@@ -8177,6 +8180,118 @@ export declare namespace MittwaldAPIV3Next {
8177
8180
  }
8178
8181
  }
8179
8182
  }
8183
+ namespace V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods {
8184
+ namespace Get {
8185
+ namespace Parameters {
8186
+ type Path = {
8187
+ customerId: string;
8188
+ planId: string;
8189
+ };
8190
+ type Header = {};
8191
+ type Query = {};
8192
+ }
8193
+ namespace Responses {
8194
+ namespace $200 {
8195
+ namespace Content {
8196
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanBillingPeriods;
8197
+ }
8198
+ }
8199
+ namespace $400 {
8200
+ namespace Content {
8201
+ interface ApplicationJson {
8202
+ [k: string]: unknown;
8203
+ }
8204
+ }
8205
+ }
8206
+ namespace $403 {
8207
+ namespace Content {
8208
+ interface ApplicationJson {
8209
+ [k: string]: unknown;
8210
+ }
8211
+ }
8212
+ }
8213
+ namespace $404 {
8214
+ namespace Content {
8215
+ interface ApplicationJson {
8216
+ [k: string]: unknown;
8217
+ }
8218
+ }
8219
+ }
8220
+ namespace $429 {
8221
+ namespace Content {
8222
+ interface ApplicationJson {
8223
+ [k: string]: unknown;
8224
+ }
8225
+ }
8226
+ }
8227
+ namespace Default {
8228
+ namespace Content {
8229
+ interface ApplicationJson {
8230
+ [k: string]: unknown;
8231
+ }
8232
+ }
8233
+ }
8234
+ }
8235
+ }
8236
+ }
8237
+ namespace V3NextCustomersCustomerIdAiHostingsPlanIdUsage {
8238
+ namespace Get {
8239
+ namespace Parameters {
8240
+ type Path = {
8241
+ customerId: string;
8242
+ planId: string;
8243
+ };
8244
+ type Header = {};
8245
+ type Query = {
8246
+ startDate: string;
8247
+ endDate: string;
8248
+ keyId?: string;
8249
+ };
8250
+ }
8251
+ namespace Responses {
8252
+ namespace $200 {
8253
+ namespace Content {
8254
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsageStats;
8255
+ }
8256
+ }
8257
+ namespace $400 {
8258
+ namespace Content {
8259
+ interface ApplicationJson {
8260
+ [k: string]: unknown;
8261
+ }
8262
+ }
8263
+ }
8264
+ namespace $403 {
8265
+ namespace Content {
8266
+ interface ApplicationJson {
8267
+ [k: string]: unknown;
8268
+ }
8269
+ }
8270
+ }
8271
+ namespace $404 {
8272
+ namespace Content {
8273
+ interface ApplicationJson {
8274
+ [k: string]: unknown;
8275
+ }
8276
+ }
8277
+ }
8278
+ namespace $429 {
8279
+ namespace Content {
8280
+ interface ApplicationJson {
8281
+ [k: string]: unknown;
8282
+ }
8283
+ }
8284
+ }
8285
+ namespace Default {
8286
+ namespace Content {
8287
+ interface ApplicationJson {
8288
+ [k: string]: unknown;
8289
+ }
8290
+ }
8291
+ }
8292
+ }
8293
+ }
8294
+ }
8180
8295
  namespace V3NextProjectsProjectIdAiHostingKeys {
8181
8296
  namespace Get {
8182
8297
  namespace Parameters {
@@ -17440,6 +17555,9 @@ export declare namespace MittwaldAPIV3Next {
17440
17555
  mysqlUserId: string;
17441
17556
  };
17442
17557
  interface RequestBody {
17558
+ /**
17559
+ * This field currently has no effect.
17560
+ */
17443
17561
  accessIpMask?: string;
17444
17562
  accessLevel?: "full" | "readonly";
17445
17563
  description?: string;
@@ -29675,7 +29793,7 @@ export declare namespace MittwaldAPIV3Next {
29675
29793
  }
29676
29794
  namespace $400 {
29677
29795
  namespace Content {
29678
- type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldCommonsValidationErrors;
29796
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldCommonsValidationErrors | MittwaldAPIV3Next.Components.Schemas.DeMittwaldCommonsError;
29679
29797
  }
29680
29798
  }
29681
29799
  namespace $408 {
@@ -32094,117 +32212,5 @@ export declare namespace MittwaldAPIV3Next {
32094
32212
  }
32095
32213
  }
32096
32214
  }
32097
- namespace V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods {
32098
- namespace Get {
32099
- namespace Parameters {
32100
- type Path = {
32101
- customerId: string;
32102
- planId: string;
32103
- };
32104
- type Header = {};
32105
- type Query = {};
32106
- }
32107
- namespace Responses {
32108
- namespace $200 {
32109
- namespace Content {
32110
- type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanBillingPeriods;
32111
- }
32112
- }
32113
- namespace $400 {
32114
- namespace Content {
32115
- interface ApplicationJson {
32116
- [k: string]: unknown;
32117
- }
32118
- }
32119
- }
32120
- namespace $403 {
32121
- namespace Content {
32122
- interface ApplicationJson {
32123
- [k: string]: unknown;
32124
- }
32125
- }
32126
- }
32127
- namespace $404 {
32128
- namespace Content {
32129
- interface ApplicationJson {
32130
- [k: string]: unknown;
32131
- }
32132
- }
32133
- }
32134
- namespace $429 {
32135
- namespace Content {
32136
- interface ApplicationJson {
32137
- [k: string]: unknown;
32138
- }
32139
- }
32140
- }
32141
- namespace Default {
32142
- namespace Content {
32143
- interface ApplicationJson {
32144
- [k: string]: unknown;
32145
- }
32146
- }
32147
- }
32148
- }
32149
- }
32150
- }
32151
- namespace V3NextCustomersCustomerIdAiHostingsPlanIdUsage {
32152
- namespace Get {
32153
- namespace Parameters {
32154
- type Path = {
32155
- customerId: string;
32156
- planId: string;
32157
- };
32158
- type Header = {};
32159
- type Query = {
32160
- startDate: string;
32161
- endDate: string;
32162
- keyId?: string;
32163
- };
32164
- }
32165
- namespace Responses {
32166
- namespace $200 {
32167
- namespace Content {
32168
- type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsageStats;
32169
- }
32170
- }
32171
- namespace $400 {
32172
- namespace Content {
32173
- interface ApplicationJson {
32174
- [k: string]: unknown;
32175
- }
32176
- }
32177
- }
32178
- namespace $403 {
32179
- namespace Content {
32180
- interface ApplicationJson {
32181
- [k: string]: unknown;
32182
- }
32183
- }
32184
- }
32185
- namespace $404 {
32186
- namespace Content {
32187
- interface ApplicationJson {
32188
- [k: string]: unknown;
32189
- }
32190
- }
32191
- }
32192
- namespace $429 {
32193
- namespace Content {
32194
- interface ApplicationJson {
32195
- [k: string]: unknown;
32196
- }
32197
- }
32198
- }
32199
- namespace Default {
32200
- namespace Content {
32201
- interface ApplicationJson {
32202
- [k: string]: unknown;
32203
- }
32204
- }
32205
- }
32206
- }
32207
- }
32208
- }
32209
32215
  }
32210
32216
  }
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.458.0';
1
+ export declare const MittwaldAPIClientVersion = '4.460.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.459.0",
3
+ "version": "4.461.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,11 +72,11 @@
72
72
  "test:compile": "run tsc --noEmit"
73
73
  },
74
74
  "dependencies": {
75
- "@mittwald/api-client-commons": "^4.459.0",
75
+ "@mittwald/api-client-commons": "^4.461.0",
76
76
  "browser-or-node": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@mittwald/api-code-generator": "^4.459.0",
79
+ "@mittwald/api-code-generator": "^4.461.0",
80
80
  "@mittwald/react-use-promise": "^4.2.3",
81
81
  "@types/node": "^22.18.11",
82
82
  "@types/react": "^18.3.26",
@@ -106,5 +106,5 @@
106
106
  "optional": true
107
107
  }
108
108
  },
109
- "gitHead": "a786ecfbe5c35ba24408c57632f20e2c28045f19"
109
+ "gitHead": "2b61c3876f8da60cb1a641e96af4a8dcfd7ca1eb"
110
110
  }