@mittwald/api-client 0.0.0-development-0cc8aa7-20260904 → 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.
- package/dist/esm/generated/v2/client-react.js +6 -0
- package/dist/esm/generated/v2/client.js +10 -0
- package/dist/esm/generated/v2/descriptors.js +30 -0
- package/dist/esm/generated/v3-next/client-react.js +6 -0
- package/dist/esm/generated/v3-next/client.js +10 -0
- package/dist/esm/generated/v3-next/descriptors.js +30 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +82 -0
- package/dist/types/generated/v2/client.d.ts +364 -0
- package/dist/types/generated/v2/descriptors.d.ts +10 -0
- package/dist/types/generated/v2/types.d.ts +315 -0
- package/dist/types/generated/v3-next/client-react.d.ts +81 -0
- package/dist/types/generated/v3-next/client.d.ts +362 -0
- package/dist/types/generated/v3-next/descriptors.d.ts +10 -0
- package/dist/types/generated/v3-next/types.d.ts +315 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -24,6 +24,10 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
24
24
|
projectGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlan, baseClient.aiHosting.projectGetPlan).getApiResource,
|
|
25
25
|
/** Get all ai hosting plans and usages of a project. */
|
|
26
26
|
projectGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlans, baseClient.aiHosting.projectGetPlans).getApiResource,
|
|
27
|
+
/** List the contract months of an ai hosting plan. */
|
|
28
|
+
planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
|
|
29
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
30
|
+
planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
|
|
27
31
|
});
|
|
28
32
|
const buildAppApi = (baseClient) => ({
|
|
29
33
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
@@ -438,6 +442,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
438
442
|
getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
|
|
439
443
|
/** Get a specific session. */
|
|
440
444
|
getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
|
|
445
|
+
/** Submitted feedback of the given user. */
|
|
446
|
+
getSpotlightInfo: new ApiCallAsyncResourceFactory(descriptors.userGetSpotlightInfo, baseClient.user.getSpotlightInfo).getApiResource,
|
|
441
447
|
/** Get profile information for a user. */
|
|
442
448
|
getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
|
|
443
449
|
/** Submitted feedback of the given user. */
|
|
@@ -48,6 +48,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
48
48
|
projectGetPlans: this.requestFunctionFactory(descriptors.aiHostingProjectGetPlans),
|
|
49
49
|
/** Links a container with a project licence. */
|
|
50
50
|
projectLinkContainer: this.requestFunctionFactory(descriptors.aiHostingProjectLinkContainer),
|
|
51
|
+
/** List the contract months of an ai hosting plan. */
|
|
52
|
+
planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
|
|
53
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
54
|
+
planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
|
|
51
55
|
};
|
|
52
56
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
53
57
|
app = {
|
|
@@ -822,6 +826,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
822
826
|
getSession: this.requestFunctionFactory(descriptors.userGetSession),
|
|
823
827
|
/** Terminate a specific Session. */
|
|
824
828
|
terminateSession: this.requestFunctionFactory(descriptors.userTerminateSession),
|
|
829
|
+
/** Submitted feedback of the given user. */
|
|
830
|
+
getSpotlightInfo: this.requestFunctionFactory(descriptors.userGetSpotlightInfo),
|
|
831
|
+
/** Submit your usage of the spotlight. */
|
|
832
|
+
spotlightUsage: this.requestFunctionFactory(descriptors.userSpotlightUsage),
|
|
825
833
|
/** Get profile information for a user. */
|
|
826
834
|
getUser: this.requestFunctionFactory(descriptors.userGetUser),
|
|
827
835
|
/** Change personal information. */
|
|
@@ -852,6 +860,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
852
860
|
removeAvatar: this.requestFunctionFactory(descriptors.userRemoveAvatar),
|
|
853
861
|
/** Resend the Email-Address verification email. */
|
|
854
862
|
resendVerificationEmail: this.requestFunctionFactory(descriptors.userResendVerificationEmail),
|
|
863
|
+
/** Submit your spotlight usage. */
|
|
864
|
+
spotlightFeedback: this.requestFunctionFactory(descriptors.userSpotlightFeedback),
|
|
855
865
|
/** Request a support code. */
|
|
856
866
|
supportCodeRequest: this.requestFunctionFactory(descriptors.userSupportCodeRequest),
|
|
857
867
|
/** Verify an added Email-Address. */
|
|
@@ -2794,6 +2794,18 @@ export const userTerminateSession = {
|
|
|
2794
2794
|
method: "DELETE",
|
|
2795
2795
|
operationId: "user-terminate-session",
|
|
2796
2796
|
};
|
|
2797
|
+
/** Submitted feedback of the given user. */
|
|
2798
|
+
export const userGetSpotlightInfo = {
|
|
2799
|
+
path: "/v2/users/self/spotlights/{spotlightId}",
|
|
2800
|
+
method: "GET",
|
|
2801
|
+
operationId: "user-get-spotlight-info",
|
|
2802
|
+
};
|
|
2803
|
+
/** Submit your usage of the spotlight. */
|
|
2804
|
+
export const userSpotlightUsage = {
|
|
2805
|
+
path: "/v2/users/self/spotlights/{spotlightId}",
|
|
2806
|
+
method: "POST",
|
|
2807
|
+
operationId: "user-spotlight-usage",
|
|
2808
|
+
};
|
|
2797
2809
|
/** Get profile information for a user. */
|
|
2798
2810
|
export const userGetUser = {
|
|
2799
2811
|
path: "/v2/users/{userId}",
|
|
@@ -2884,6 +2896,12 @@ export const userResendVerificationEmail = {
|
|
|
2884
2896
|
method: "POST",
|
|
2885
2897
|
operationId: "user-resend-verification-email",
|
|
2886
2898
|
};
|
|
2899
|
+
/** Submit your spotlight usage. */
|
|
2900
|
+
export const userSpotlightFeedback = {
|
|
2901
|
+
path: "/v2/users/self/spotlights/{spotlightId}/feedback",
|
|
2902
|
+
method: "POST",
|
|
2903
|
+
operationId: "user-spotlight-feedback",
|
|
2904
|
+
};
|
|
2887
2905
|
/** Request a support code. */
|
|
2888
2906
|
export const userSupportCodeRequest = {
|
|
2889
2907
|
path: "/v2/users/self/credentials/support-code",
|
|
@@ -2926,3 +2944,15 @@ export const verificationVerifyCompany = {
|
|
|
2926
2944
|
method: "POST",
|
|
2927
2945
|
operationId: "verification-verify-company",
|
|
2928
2946
|
};
|
|
2947
|
+
/** List the contract months of an ai hosting plan. */
|
|
2948
|
+
export const aiHostingPlanGetBillingPeriods = {
|
|
2949
|
+
path: "/v2/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
2950
|
+
method: "GET",
|
|
2951
|
+
operationId: "ai-hosting-plan-get-billing-periods",
|
|
2952
|
+
};
|
|
2953
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
2954
|
+
export const aiHostingPlanGetUsageStats = {
|
|
2955
|
+
path: "/v2/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
2956
|
+
method: "GET",
|
|
2957
|
+
operationId: "ai-hosting-plan-get-usage-stats",
|
|
2958
|
+
};
|
|
@@ -24,6 +24,10 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
24
24
|
projectGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlan, baseClient.aiHosting.projectGetPlan).getApiResource,
|
|
25
25
|
/** Get all ai hosting plans and usages of a project. */
|
|
26
26
|
projectGetPlans: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlans, baseClient.aiHosting.projectGetPlans).getApiResource,
|
|
27
|
+
/** List the contract months of an ai hosting plan. */
|
|
28
|
+
planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
|
|
29
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
30
|
+
planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
|
|
27
31
|
});
|
|
28
32
|
const buildAppApi = (baseClient) => ({
|
|
29
33
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
@@ -438,6 +442,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
438
442
|
getPollStatus: new ApiCallAsyncResourceFactory(descriptors.userGetPollStatus, baseClient.user.getPollStatus).getApiResource,
|
|
439
443
|
/** Get a specific session. */
|
|
440
444
|
getSession: new ApiCallAsyncResourceFactory(descriptors.userGetSession, baseClient.user.getSession).getApiResource,
|
|
445
|
+
/** Submitted feedback of the given user. */
|
|
446
|
+
getSpotlightInfo: new ApiCallAsyncResourceFactory(descriptors.userGetSpotlightInfo, baseClient.user.getSpotlightInfo).getApiResource,
|
|
441
447
|
/** Get profile information for a user. */
|
|
442
448
|
getUser: new ApiCallAsyncResourceFactory(descriptors.userGetUser, baseClient.user.getUser).getApiResource,
|
|
443
449
|
/** Submitted feedback of the given user. */
|
|
@@ -48,6 +48,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
48
48
|
projectGetPlans: this.requestFunctionFactory(descriptors.aiHostingProjectGetPlans),
|
|
49
49
|
/** Links a container with a project licence. */
|
|
50
50
|
projectLinkContainer: this.requestFunctionFactory(descriptors.aiHostingProjectLinkContainer),
|
|
51
|
+
/** List the contract months of an ai hosting plan. */
|
|
52
|
+
planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
|
|
53
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
54
|
+
planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
|
|
51
55
|
};
|
|
52
56
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
53
57
|
app = {
|
|
@@ -822,6 +826,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
822
826
|
getSession: this.requestFunctionFactory(descriptors.userGetSession),
|
|
823
827
|
/** Terminate a specific Session. */
|
|
824
828
|
terminateSession: this.requestFunctionFactory(descriptors.userTerminateSession),
|
|
829
|
+
/** Submitted feedback of the given user. */
|
|
830
|
+
getSpotlightInfo: this.requestFunctionFactory(descriptors.userGetSpotlightInfo),
|
|
831
|
+
/** Submit your usage of the spotlight. */
|
|
832
|
+
spotlightUsage: this.requestFunctionFactory(descriptors.userSpotlightUsage),
|
|
825
833
|
/** Get profile information for a user. */
|
|
826
834
|
getUser: this.requestFunctionFactory(descriptors.userGetUser),
|
|
827
835
|
/** Change personal information. */
|
|
@@ -852,6 +860,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
852
860
|
removeAvatar: this.requestFunctionFactory(descriptors.userRemoveAvatar),
|
|
853
861
|
/** Resend the Email-Address verification email. */
|
|
854
862
|
resendVerificationEmail: this.requestFunctionFactory(descriptors.userResendVerificationEmail),
|
|
863
|
+
/** Submit your spotlight usage. */
|
|
864
|
+
spotlightFeedback: this.requestFunctionFactory(descriptors.userSpotlightFeedback),
|
|
855
865
|
/** Request a support code. */
|
|
856
866
|
supportCodeRequest: this.requestFunctionFactory(descriptors.userSupportCodeRequest),
|
|
857
867
|
/** Verify an added Email-Address. */
|
|
@@ -2794,6 +2794,18 @@ export const userTerminateSession = {
|
|
|
2794
2794
|
method: "DELETE",
|
|
2795
2795
|
operationId: "user-terminate-session",
|
|
2796
2796
|
};
|
|
2797
|
+
/** Submitted feedback of the given user. */
|
|
2798
|
+
export const userGetSpotlightInfo = {
|
|
2799
|
+
path: "/v3-next/users/self/spotlights/{spotlightId}",
|
|
2800
|
+
method: "GET",
|
|
2801
|
+
operationId: "user-get-spotlight-info",
|
|
2802
|
+
};
|
|
2803
|
+
/** Submit your usage of the spotlight. */
|
|
2804
|
+
export const userSpotlightUsage = {
|
|
2805
|
+
path: "/v3-next/users/self/spotlights/{spotlightId}",
|
|
2806
|
+
method: "POST",
|
|
2807
|
+
operationId: "user-spotlight-usage",
|
|
2808
|
+
};
|
|
2797
2809
|
/** Get profile information for a user. */
|
|
2798
2810
|
export const userGetUser = {
|
|
2799
2811
|
path: "/v3-next/users/{userId}",
|
|
@@ -2884,6 +2896,12 @@ export const userResendVerificationEmail = {
|
|
|
2884
2896
|
method: "POST",
|
|
2885
2897
|
operationId: "user-resend-verification-email",
|
|
2886
2898
|
};
|
|
2899
|
+
/** Submit your spotlight usage. */
|
|
2900
|
+
export const userSpotlightFeedback = {
|
|
2901
|
+
path: "/v3-next/users/self/spotlights/{spotlightId}/feedback",
|
|
2902
|
+
method: "POST",
|
|
2903
|
+
operationId: "user-spotlight-feedback",
|
|
2904
|
+
};
|
|
2887
2905
|
/** Request a support code. */
|
|
2888
2906
|
export const userSupportCodeRequest = {
|
|
2889
2907
|
path: "/v3-next/users/self/credentials/support-code",
|
|
@@ -2926,3 +2944,15 @@ export const verificationVerifyCompany = {
|
|
|
2926
2944
|
method: "POST",
|
|
2927
2945
|
operationId: "verification-verify-company",
|
|
2928
2946
|
};
|
|
2947
|
+
/** List the contract months of an ai hosting plan. */
|
|
2948
|
+
export const aiHostingPlanGetBillingPeriods = {
|
|
2949
|
+
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
2950
|
+
method: "GET",
|
|
2951
|
+
operationId: "ai-hosting-plan-get-billing-periods",
|
|
2952
|
+
};
|
|
2953
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
2954
|
+
export const aiHostingPlanGetUsageStats = {
|
|
2955
|
+
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
2956
|
+
method: "GET",
|
|
2957
|
+
operationId: "ai-hosting-plan-get-usage-stats",
|
|
2958
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.457.0';
|
|
@@ -167,6 +167,74 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
167
167
|
modelTermsApprovalRequired: boolean;
|
|
168
168
|
plans: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingProjectPlan[];
|
|
169
169
|
}>;
|
|
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
|
+
}>;
|
|
170
238
|
};
|
|
171
239
|
declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
172
240
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
@@ -2413,6 +2481,7 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2413
2481
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2414
2482
|
authCode?: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainAuthCode | undefined;
|
|
2415
2483
|
authCode2?: import("./types.js").MittwaldAPIV2.Components.Schemas.DomainAuthCode2 | undefined;
|
|
2484
|
+
authInfo2CreatedAt?: string | undefined;
|
|
2416
2485
|
connected: boolean;
|
|
2417
2486
|
contactHash?: string | undefined;
|
|
2418
2487
|
deleted: boolean;
|
|
@@ -3423,6 +3492,19 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3423
3492
|
location?: import("./types.js").MittwaldAPIV2.Components.Schemas.SignupLocation | undefined;
|
|
3424
3493
|
tokenId: string;
|
|
3425
3494
|
}>;
|
|
3495
|
+
/** Submitted feedback of the given user. */
|
|
3496
|
+
getSpotlightInfo: (conf: {
|
|
3497
|
+
spotlightId: string;
|
|
3498
|
+
headers?: {
|
|
3499
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3500
|
+
"x-access-token"?: string | undefined;
|
|
3501
|
+
} | undefined;
|
|
3502
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3503
|
+
acknowledged: boolean;
|
|
3504
|
+
decision?: import("./types.js").MittwaldAPIV2.Components.Schemas.UserUserFeedbackSpotlightDecision | undefined;
|
|
3505
|
+
spotlightId: string;
|
|
3506
|
+
used: boolean;
|
|
3507
|
+
}>;
|
|
3426
3508
|
/** Get profile information for a user. */
|
|
3427
3509
|
getUser: (conf: {
|
|
3428
3510
|
userId: string;
|