@mittwald/api-client 4.457.1 → 4.459.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.
- package/dist/esm/generated/v2/client-react.js +12 -8
- package/dist/esm/generated/v2/client.js +18 -14
- package/dist/esm/generated/v2/descriptors.js +62 -50
- package/dist/esm/generated/v3-next/client-react.js +12 -8
- package/dist/esm/generated/v3-next/client.js +18 -14
- package/dist/esm/generated/v3-next/descriptors.js +62 -50
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +122 -66
- package/dist/types/generated/v2/client.d.ts +510 -336
- package/dist/types/generated/v2/descriptors.d.ts +22 -18
- package/dist/types/generated/v2/types.d.ts +1139 -968
- package/dist/types/generated/v3-next/client-react.d.ts +122 -66
- package/dist/types/generated/v3-next/client.d.ts +510 -336
- package/dist/types/generated/v3-next/descriptors.d.ts +22 -18
- package/dist/types/generated/v3-next/types.d.ts +1006 -835
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -15,6 +15,23 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
15
15
|
page?: number | undefined;
|
|
16
16
|
} | undefined;
|
|
17
17
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
|
|
18
|
+
/** Get all ai hosting plans of a customer. */
|
|
19
|
+
customerGetPlans: (conf: {
|
|
20
|
+
customerId: string;
|
|
21
|
+
headers?: {
|
|
22
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
queryParameters?: {
|
|
25
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
26
|
+
topUsageCount?: number | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
|
+
skip?: number | undefined;
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
32
|
+
modelTermsApprovalRequired: boolean;
|
|
33
|
+
plans: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingCustomerPlan[];
|
|
34
|
+
}>;
|
|
18
35
|
/** Get a key of a customer. */
|
|
19
36
|
customerGetKey: (conf: {
|
|
20
37
|
customerId: string;
|
|
@@ -43,6 +60,34 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
43
60
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
44
61
|
} | undefined;
|
|
45
62
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingCustomerDetailedModel[]>;
|
|
63
|
+
/** Get ai hosting plan and usages of a customer by planId. */
|
|
64
|
+
customerGetPlan: (conf: {
|
|
65
|
+
customerId: string;
|
|
66
|
+
planId: string;
|
|
67
|
+
headers?: {
|
|
68
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
queryParameters?: {
|
|
71
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
72
|
+
topUsageCount?: number | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
75
|
+
customerId: string;
|
|
76
|
+
deletedAt?: string | undefined;
|
|
77
|
+
description: string;
|
|
78
|
+
keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
|
|
79
|
+
modelTermsApprovalRequired: boolean;
|
|
80
|
+
nextTokenReset: string;
|
|
81
|
+
planId: string;
|
|
82
|
+
rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
83
|
+
tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsageBig;
|
|
84
|
+
topUsages?: {
|
|
85
|
+
keyId?: string;
|
|
86
|
+
name: string;
|
|
87
|
+
projectId?: string;
|
|
88
|
+
tokenUsed: number;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
}>;
|
|
46
91
|
/** Get a list of currently active models. */
|
|
47
92
|
getModels: (conf?: {
|
|
48
93
|
headers?: {
|
|
@@ -91,81 +136,92 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
91
136
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
92
137
|
} | undefined;
|
|
93
138
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingProjectDetailedModel[]>;
|
|
94
|
-
/** Get ai hosting plan and usages of a
|
|
95
|
-
|
|
96
|
-
|
|
139
|
+
/** Get ai hosting plan and usages of a project by planId. */
|
|
140
|
+
projectGetPlan: (conf: {
|
|
141
|
+
projectId: string;
|
|
97
142
|
planId: string;
|
|
98
143
|
headers?: {
|
|
99
144
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
100
145
|
} | undefined;
|
|
101
|
-
queryParameters?: {
|
|
102
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
103
|
-
topUsageCount?: number | undefined;
|
|
104
|
-
} | undefined;
|
|
105
146
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
106
|
-
|
|
107
|
-
deletedAt?: string | undefined;
|
|
108
|
-
description: string;
|
|
147
|
+
description?: string | undefined;
|
|
109
148
|
keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
|
|
110
149
|
modelTermsApprovalRequired: boolean;
|
|
111
|
-
nextTokenReset
|
|
150
|
+
nextTokenReset?: string | undefined;
|
|
112
151
|
planId: string;
|
|
113
|
-
|
|
114
|
-
tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsageBig;
|
|
115
|
-
topUsages?: {
|
|
116
|
-
keyId?: string;
|
|
117
|
-
name: string;
|
|
118
|
-
projectId?: string;
|
|
119
|
-
tokenUsed: number;
|
|
120
|
-
}[] | undefined;
|
|
152
|
+
projectId: string;
|
|
121
153
|
}>;
|
|
122
|
-
/** Get all ai hosting plans of a
|
|
123
|
-
|
|
124
|
-
|
|
154
|
+
/** Get all ai hosting plans and usages of a project. */
|
|
155
|
+
projectGetPlans: (conf: {
|
|
156
|
+
projectId: string;
|
|
125
157
|
headers?: {
|
|
126
158
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
127
159
|
} | undefined;
|
|
128
160
|
queryParameters?: {
|
|
129
161
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
130
|
-
topUsageCount?: number | undefined;
|
|
131
162
|
limit?: number | undefined;
|
|
132
163
|
skip?: number | undefined;
|
|
133
164
|
page?: number | undefined;
|
|
134
165
|
} | undefined;
|
|
135
166
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
136
167
|
modelTermsApprovalRequired: boolean;
|
|
137
|
-
plans: import("./types.js").MittwaldAPIV2.Components.Schemas.
|
|
168
|
+
plans: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingProjectPlan[];
|
|
138
169
|
}>;
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
|
|
170
|
+
/** List the contract months of an ai hosting plan. */
|
|
171
|
+
planGetBillingPeriods: (conf: {
|
|
172
|
+
customerId: string;
|
|
142
173
|
planId: string;
|
|
143
174
|
headers?: {
|
|
144
175
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
145
176
|
} | undefined;
|
|
146
177
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
147
|
-
|
|
148
|
-
keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
|
|
149
|
-
modelTermsApprovalRequired: boolean;
|
|
178
|
+
customerId: string;
|
|
150
179
|
nextTokenReset?: string | undefined;
|
|
180
|
+
periods: {
|
|
181
|
+
end: string;
|
|
182
|
+
isCurrent: boolean;
|
|
183
|
+
shortenedByUpgrade: boolean;
|
|
184
|
+
start: string;
|
|
185
|
+
tokenLimit: number;
|
|
186
|
+
}[];
|
|
151
187
|
planId: string;
|
|
152
|
-
projectId: string;
|
|
153
188
|
}>;
|
|
154
|
-
/** Get
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
headers?: {
|
|
189
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
190
|
+
planGetUsageStats: (conf: {
|
|
191
|
+
queryParameters: {
|
|
158
192
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
159
|
-
|
|
160
|
-
|
|
193
|
+
startDate: string;
|
|
194
|
+
endDate: string;
|
|
195
|
+
keyId?: string | undefined;
|
|
196
|
+
};
|
|
197
|
+
customerId: string;
|
|
198
|
+
planId: string;
|
|
199
|
+
headers?: {
|
|
161
200
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
162
|
-
limit?: number | undefined;
|
|
163
|
-
skip?: number | undefined;
|
|
164
|
-
page?: number | undefined;
|
|
165
201
|
} | undefined;
|
|
166
202
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
167
|
-
|
|
168
|
-
|
|
203
|
+
customerId: string;
|
|
204
|
+
daily: {
|
|
205
|
+
byKey: {
|
|
206
|
+
[k: string]: number;
|
|
207
|
+
};
|
|
208
|
+
date: string;
|
|
209
|
+
totalTokens: number;
|
|
210
|
+
}[];
|
|
211
|
+
keys: {
|
|
212
|
+
id: string;
|
|
213
|
+
name: string;
|
|
214
|
+
}[];
|
|
215
|
+
modelShare: {
|
|
216
|
+
model: string;
|
|
217
|
+
tokens: number;
|
|
218
|
+
}[];
|
|
219
|
+
planId: string;
|
|
220
|
+
timeframe: {
|
|
221
|
+
end: string;
|
|
222
|
+
start: string;
|
|
223
|
+
};
|
|
224
|
+
totalTokens: number;
|
|
169
225
|
}>;
|
|
170
226
|
};
|
|
171
227
|
declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
@@ -194,6 +250,17 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
194
250
|
name: string;
|
|
195
251
|
tags: string[];
|
|
196
252
|
}>;
|
|
253
|
+
/** Get an analysis of the error of an AppInstallation. */
|
|
254
|
+
getAppinstallationErrorAnalysis: (conf: {
|
|
255
|
+
appInstallationId: string;
|
|
256
|
+
headers?: {
|
|
257
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
258
|
+
"x-access-token"?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
261
|
+
recommendation?: string | undefined;
|
|
262
|
+
summary: string;
|
|
263
|
+
}>;
|
|
197
264
|
/** Get an AppInstallation. */
|
|
198
265
|
getAppinstallation: (conf: {
|
|
199
266
|
appInstallationId: string;
|
|
@@ -418,17 +485,6 @@ declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
418
485
|
state: "running" | "stopped" | "exited";
|
|
419
486
|
uptimeSeconds?: number | undefined;
|
|
420
487
|
}>;
|
|
421
|
-
/** Get an analysis of the error of an AppInstallation. */
|
|
422
|
-
getAppinstallationErrorAnalysis: (conf: {
|
|
423
|
-
appInstallationId: string;
|
|
424
|
-
headers?: {
|
|
425
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
426
|
-
"x-access-token"?: string | undefined;
|
|
427
|
-
} | undefined;
|
|
428
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
429
|
-
recommendation?: string | undefined;
|
|
430
|
-
summary: string;
|
|
431
|
-
}>;
|
|
432
488
|
};
|
|
433
489
|
declare const buildArticleApi: (baseClient: MittwaldAPIV2Client) => {
|
|
434
490
|
/** Get an Article. */
|
|
@@ -703,6 +759,18 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
703
759
|
userId: number;
|
|
704
760
|
volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigVolume[] | undefined;
|
|
705
761
|
}>;
|
|
762
|
+
/** Get an analysis of the logs belonging to a Service. */
|
|
763
|
+
getServiceLogsAnalysis: (conf: {
|
|
764
|
+
stackId: string;
|
|
765
|
+
serviceId: string;
|
|
766
|
+
headers?: {
|
|
767
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
768
|
+
"x-access-token"?: string | undefined;
|
|
769
|
+
} | undefined;
|
|
770
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
771
|
+
recommendation?: string | undefined;
|
|
772
|
+
summary: string;
|
|
773
|
+
}>;
|
|
706
774
|
/** Get logs belonging to a Service. */
|
|
707
775
|
getServiceLogs: (conf: {
|
|
708
776
|
stackId: string;
|
|
@@ -910,18 +978,6 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
910
978
|
page?: number | undefined;
|
|
911
979
|
} | undefined;
|
|
912
980
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
|
|
913
|
-
/** Get an analysis of the logs belonging to a Service. */
|
|
914
|
-
getServiceLogsAnalysis: (conf: {
|
|
915
|
-
stackId: string;
|
|
916
|
-
serviceId: string;
|
|
917
|
-
headers?: {
|
|
918
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
919
|
-
"x-access-token"?: string | undefined;
|
|
920
|
-
} | undefined;
|
|
921
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
922
|
-
recommendation?: string | undefined;
|
|
923
|
-
summary: string;
|
|
924
|
-
}>;
|
|
925
981
|
};
|
|
926
982
|
declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
927
983
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
@@ -2091,7 +2147,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2091
2147
|
owner?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
2092
2148
|
projectCount: number;
|
|
2093
2149
|
vatId?: string | undefined;
|
|
2094
|
-
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified" | undefined;
|
|
2150
|
+
vatIdValidationState?: "valid" | "invalid" | "pending" | "unsupported" | "unspecified" | undefined;
|
|
2095
2151
|
}>;
|
|
2096
2152
|
/** Get a CustomerInvite by token. */
|
|
2097
2153
|
getCustomerTokenInvite: (conf: {
|