@mittwald/api-client 0.0.0-development-4653f36-20260902 → 0.0.0-development-d78fbd1-20260907

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.
@@ -10,6 +10,9 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
10
10
  queryParameters?: {
11
11
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
12
12
  planId?: string | undefined;
13
+ limit?: number | undefined;
14
+ skip?: number | undefined;
15
+ page?: number | undefined;
13
16
  } | undefined;
14
17
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingKey[]>;
15
18
  /** Get all ai hosting plans of a customer. */
@@ -21,6 +24,9 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
21
24
  queryParameters?: {
22
25
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
23
26
  topUsageCount?: number | undefined;
27
+ limit?: number | undefined;
28
+ skip?: number | undefined;
29
+ page?: number | undefined;
24
30
  } | undefined;
25
31
  }) => import("@mittwald/react-use-promise").AsyncResource<{
26
32
  modelTermsApprovalRequired: boolean;
@@ -97,6 +103,9 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
97
103
  queryParameters?: {
98
104
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
99
105
  planId?: string | undefined;
106
+ limit?: number | undefined;
107
+ skip?: number | undefined;
108
+ page?: number | undefined;
100
109
  } | undefined;
101
110
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingKey[]>;
102
111
  /** Get a key of a project. */
@@ -127,30 +136,104 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
127
136
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
128
137
  } | undefined;
129
138
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingProjectDetailedModel[]>;
139
+ /** Get ai hosting plan and usages of a project by planId. */
140
+ projectGetPlan: (conf: {
141
+ projectId: string;
142
+ planId: string;
143
+ headers?: {
144
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
145
+ } | undefined;
146
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
147
+ description?: string | undefined;
148
+ keys: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsage;
149
+ modelTermsApprovalRequired: boolean;
150
+ nextTokenReset?: string | undefined;
151
+ planId: string;
152
+ projectId: string;
153
+ }>;
130
154
  /** Get all ai hosting plans and usages of a project. */
131
155
  projectGetPlans: (conf: {
132
156
  projectId: string;
133
157
  headers?: {
134
158
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
135
159
  } | undefined;
160
+ queryParameters?: {
161
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
162
+ limit?: number | undefined;
163
+ skip?: number | undefined;
164
+ page?: number | undefined;
165
+ } | undefined;
136
166
  }) => import("@mittwald/react-use-promise").AsyncResource<{
137
167
  modelTermsApprovalRequired: boolean;
138
168
  plans: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingProjectPlan[];
139
169
  }>;
140
- /** Get ai hosting plan and usages of a project by planId. */
141
- projectGetPlan: (conf: {
142
- projectId: string;
170
+ /** List the contract months of an ai hosting plan. */
171
+ planGetBillingPeriods: (conf: {
172
+ customerId: string;
143
173
  planId: string;
144
174
  headers?: {
145
175
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
146
176
  } | undefined;
147
177
  }) => import("@mittwald/react-use-promise").AsyncResource<{
148
- description?: string | undefined;
149
- keys: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsage;
150
- modelTermsApprovalRequired: boolean;
178
+ customerId: string;
151
179
  nextTokenReset?: string | undefined;
180
+ periods: {
181
+ end: string;
182
+ isCurrent: boolean;
183
+ shortenedByUpgrade: boolean;
184
+ start: string;
185
+ tokenLimit: number;
186
+ }[];
152
187
  planId: string;
153
- projectId: string;
188
+ }>;
189
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
190
+ planGetUsageStats: (conf: {
191
+ queryParameters: {
192
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
193
+ startDate: string;
194
+ endDate: string;
195
+ detailed?: boolean | undefined;
196
+ };
197
+ customerId: string;
198
+ planId: string;
199
+ headers?: {
200
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
201
+ } | undefined;
202
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
203
+ customerId: string;
204
+ daily: {
205
+ byKey: {
206
+ [k: string]: number;
207
+ };
208
+ date: string;
209
+ totalTokens: number;
210
+ }[];
211
+ detailed?: {
212
+ [k: string]: {
213
+ byKey?: {
214
+ [k: string]: {
215
+ byModel?: {
216
+ [k: string]: number;
217
+ };
218
+ tokens?: number;
219
+ };
220
+ };
221
+ };
222
+ } | undefined;
223
+ keys: {
224
+ id: string;
225
+ name: string;
226
+ }[];
227
+ modelShare: {
228
+ model: string;
229
+ tokens: number;
230
+ }[];
231
+ planId: string;
232
+ timeframe: {
233
+ end: string;
234
+ start: string;
235
+ };
236
+ totalTokens: number;
154
237
  }>;
155
238
  };
156
239
  declare const buildAppApi: (baseClient: MittwaldAPIV3NextClient) => {
@@ -179,6 +262,18 @@ declare const buildAppApi: (baseClient: MittwaldAPIV3NextClient) => {
179
262
  name: string;
180
263
  tags: string[];
181
264
  }>;
265
+ /** Get an analysis of the error of an AppInstallation. */
266
+ getAppinstallationErrorAnalysis: (conf: {
267
+ appInstallationId: string;
268
+ headers?: {
269
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
270
+ "Accept-Language"?: "de" | "en" | undefined;
271
+ "x-access-token"?: string | undefined;
272
+ } | undefined;
273
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
274
+ recommendation?: string | undefined;
275
+ summary: string;
276
+ }>;
182
277
  /** Get an AppInstallation. */
183
278
  getAppinstallation: (conf: {
184
279
  appInstallationId: string;
@@ -678,6 +773,19 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV3NextClient) => {
678
773
  userId: number;
679
774
  volumes?: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldContainerContainerImageConfigVolume[] | undefined;
680
775
  }>;
776
+ /** Get an analysis of the logs belonging to a Service. */
777
+ getServiceLogsAnalysis: (conf: {
778
+ stackId: string;
779
+ serviceId: string;
780
+ headers?: {
781
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
782
+ "Accept-Language"?: "de" | "en" | undefined;
783
+ "x-access-token"?: string | undefined;
784
+ } | undefined;
785
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
786
+ recommendation?: string | undefined;
787
+ summary: string;
788
+ }>;
681
789
  /** Get logs belonging to a Service. */
682
790
  getServiceLogs: (conf: {
683
791
  stackId: string;
@@ -1913,6 +2021,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV3NextClient) => {
1913
2021
  }) => import("@mittwald/react-use-promise").AsyncResource<{
1914
2022
  message: string;
1915
2023
  recommendation?: string | undefined;
2024
+ summary: string;
1916
2025
  }>;
1917
2026
  /** Get a CronjobExecution. */
1918
2027
  getExecution: (conf: {
@@ -3379,6 +3488,19 @@ declare const buildUserApi: (baseClient: MittwaldAPIV3NextClient) => {
3379
3488
  location?: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldSignupLocation | undefined;
3380
3489
  tokenId: string;
3381
3490
  }>;
3491
+ /** Submitted feedback of the given user. */
3492
+ getSpotlightInfo: (conf: {
3493
+ spotlightId: string;
3494
+ headers?: {
3495
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3496
+ "x-access-token"?: string | undefined;
3497
+ } | undefined;
3498
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3499
+ acknowledged: boolean;
3500
+ decision?: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldUserUserFeedbackSpotlightDecision | undefined;
3501
+ spotlightId: string;
3502
+ used: boolean;
3503
+ }>;
3382
3504
  /** Get profile information for a user. */
3383
3505
  getUser: (conf: {
3384
3506
  userId: string;