@mittwald/api-client 0.0.0-development-d78fbd1-20260907 → 0.0.0-development-2348cf1-20260908

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.
@@ -94,6 +94,74 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
94
94
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
95
95
  } | undefined;
96
96
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingModel[]>;
97
+ /** List the contract months of an ai hosting plan. */
98
+ planGetBillingPeriods: (conf: {
99
+ customerId: string;
100
+ planId: string;
101
+ headers?: {
102
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
103
+ } | undefined;
104
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
105
+ customerId: string;
106
+ nextTokenReset?: string | undefined;
107
+ periods: {
108
+ end: string;
109
+ isCurrent: boolean;
110
+ shortenedByUpgrade: boolean;
111
+ start: string;
112
+ tokenLimit: number;
113
+ }[];
114
+ planId: string;
115
+ }>;
116
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
117
+ planGetUsageStats: (conf: {
118
+ queryParameters: {
119
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
120
+ startDate: string;
121
+ endDate: string;
122
+ detailed?: boolean | undefined;
123
+ };
124
+ customerId: string;
125
+ planId: string;
126
+ headers?: {
127
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
128
+ } | undefined;
129
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
130
+ customerId: string;
131
+ daily: {
132
+ byKey: {
133
+ [k: string]: number;
134
+ };
135
+ date: string;
136
+ totalTokens: number;
137
+ }[];
138
+ detailed?: {
139
+ [k: string]: {
140
+ byKey?: {
141
+ [k: string]: {
142
+ byModel?: {
143
+ [k: string]: number;
144
+ };
145
+ tokens?: number;
146
+ };
147
+ };
148
+ };
149
+ } | undefined;
150
+ keys: {
151
+ id: string;
152
+ name: string;
153
+ }[];
154
+ modelShare: {
155
+ model: string;
156
+ tokens: number;
157
+ }[];
158
+ planId: string;
159
+ timeframe: {
160
+ end: string;
161
+ start: string;
162
+ };
163
+ totalTokens: number;
164
+ }>;
97
165
  /** Get a list of keys of a project. */
98
166
  projectGetKeys: (conf: {
99
167
  projectId: string;
@@ -167,74 +235,6 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
167
235
  modelTermsApprovalRequired: boolean;
168
236
  plans: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingProjectPlan[];
169
237
  }>;
170
- /** List the contract months of an ai hosting plan. */
171
- planGetBillingPeriods: (conf: {
172
- customerId: string;
173
- planId: string;
174
- headers?: {
175
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
176
- } | undefined;
177
- }) => import("@mittwald/react-use-promise").AsyncResource<{
178
- customerId: string;
179
- nextTokenReset?: string | undefined;
180
- periods: {
181
- end: string;
182
- isCurrent: boolean;
183
- shortenedByUpgrade: boolean;
184
- start: string;
185
- tokenLimit: number;
186
- }[];
187
- planId: 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;
237
- }>;
238
238
  };
239
239
  declare const buildAppApi: (baseClient: MittwaldAPIV3NextClient) => {
240
240
  /** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
@@ -2163,7 +2163,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV3NextClient) => {
2163
2163
  owner?: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldCustomerContact | undefined;
2164
2164
  projectCount: number;
2165
2165
  vatId?: string | undefined;
2166
- vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
2166
+ vatIdValidationState?: "valid" | "invalid" | "pending" | "unsupported" | "unspecified" | undefined;
2167
2167
  }>;
2168
2168
  /** Get a CustomerInvite by token. */
2169
2169
  getCustomerTokenInvite: (conf: {
@@ -2399,30 +2399,6 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV3NextClient) => {
2399
2399
  page?: number | undefined;
2400
2400
  } | undefined;
2401
2401
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldDomainNextDomainListItem[]>;
2402
- /** List DNS zone-file import jobs belonging to a Project. */
2403
- dnsListDnsZoneFileImports: (conf: {
2404
- projectId: string;
2405
- headers?: {
2406
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2407
- "x-access-token"?: string | undefined;
2408
- } | undefined;
2409
- queryParameters?: {
2410
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2411
- limit?: number | undefined;
2412
- skip?: number | undefined;
2413
- page?: number | undefined;
2414
- sort?: "createdAt" | undefined;
2415
- order?: "asc" | "desc" | undefined;
2416
- } | undefined;
2417
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZoneFileImport[]>;
2418
- /** List DNSZones belonging to a Project. */
2419
- dnsListDnsZones: (conf: {
2420
- projectId: string;
2421
- headers?: {
2422
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2423
- "x-access-token"?: string | undefined;
2424
- } | undefined;
2425
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone[]>;
2426
2402
  /** Get a DNSZone. */
2427
2403
  dnsGetDnsZone: (conf: {
2428
2404
  dnsZoneId: string;
@@ -2442,36 +2418,22 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV3NextClient) => {
2442
2418
  txt: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsRecordTXT;
2443
2419
  };
2444
2420
  }>;
2445
- /** Get the status of a DNS zone-file import job. */
2446
- dnsGetDnsZoneFileImport: (conf: {
2447
- zoneFileImportId: string;
2421
+ /** Get a zone file for a DNSZone. */
2422
+ dnsGetZoneFile: (conf: {
2423
+ dnsZoneId: string;
2448
2424
  headers?: {
2449
2425
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2450
2426
  "x-access-token"?: string | undefined;
2451
2427
  } | undefined;
2452
- }) => import("@mittwald/react-use-promise").AsyncResource<{
2453
- createdAt: string;
2454
- failedZones: {
2455
- error: string;
2456
- name: string;
2457
- }[];
2458
- id: string;
2459
- importedZones: string[];
2428
+ }) => import("@mittwald/react-use-promise").AsyncResource<string>;
2429
+ /** List DNSZones belonging to a Project. */
2430
+ dnsListDnsZones: (conf: {
2460
2431
  projectId: string;
2461
- skippedZones: {
2462
- name: string;
2463
- reason: string;
2464
- }[];
2465
- status: "running" | "succeeded" | "failed" | "completedWithErrors";
2466
- }>;
2467
- /** Get a zone file for a DNSZone. */
2468
- dnsGetZoneFile: (conf: {
2469
- dnsZoneId: string;
2470
2432
  headers?: {
2471
2433
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2472
2434
  "x-access-token"?: string | undefined;
2473
2435
  } | undefined;
2474
- }) => import("@mittwald/react-use-promise").AsyncResource<string>;
2436
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldDnsZone[]>;
2475
2437
  /** Get a domain. */
2476
2438
  serviceNextGetDomain: (conf: {
2477
2439
  domainId: string;