@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.
- package/dist/esm/generated/v2/client-react.js +4 -4
- package/dist/esm/generated/v2/client.js +4 -4
- package/dist/esm/generated/v2/descriptors.js +12 -12
- package/dist/esm/generated/v3-next/client-react.js +4 -4
- package/dist/esm/generated/v3-next/client.js +4 -4
- package/dist/esm/generated/v3-next/descriptors.js +12 -12
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +56 -56
- package/dist/types/generated/v2/client.d.ts +176 -184
- package/dist/types/generated/v2/descriptors.d.ts +4 -4
- package/dist/types/generated/v2/types.d.ts +180 -174
- package/dist/types/generated/v3-next/client-react.d.ts +56 -56
- package/dist/types/generated/v3-next/client.d.ts +176 -184
- package/dist/types/generated/v3-next/descriptors.d.ts +4 -4
- package/dist/types/generated/v3-next/types.d.ts +180 -174
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -14,6 +14,10 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
14
14
|
customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
|
|
15
15
|
/** Get a list of currently active models. */
|
|
16
16
|
getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
|
|
17
|
+
/** List the contract months of an ai hosting plan. */
|
|
18
|
+
planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
|
|
19
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
20
|
+
planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
|
|
17
21
|
/** Get a list of keys of a project. */
|
|
18
22
|
projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
|
|
19
23
|
/** Get a key of a project. */
|
|
@@ -24,10 +28,6 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
24
28
|
projectGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlan, baseClient.aiHosting.projectGetPlan).getApiResource,
|
|
25
29
|
/** Get all ai hosting plans and usages of a project. */
|
|
26
30
|
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,
|
|
31
31
|
});
|
|
32
32
|
const buildAppApi = (baseClient) => ({
|
|
33
33
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
@@ -30,6 +30,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
30
30
|
customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
|
|
31
31
|
/** Get a list of currently active models. */
|
|
32
32
|
getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
|
|
33
|
+
/** List the contract months of an ai hosting plan. */
|
|
34
|
+
planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
|
|
35
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
36
|
+
planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
|
|
33
37
|
/** Get a list of keys of a project. */
|
|
34
38
|
projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
|
|
35
39
|
/** Creates a new key for a project. */
|
|
@@ -48,10 +52,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
48
52
|
projectGetPlans: this.requestFunctionFactory(descriptors.aiHostingProjectGetPlans),
|
|
49
53
|
/** Links a container with a project licence. */
|
|
50
54
|
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),
|
|
55
55
|
};
|
|
56
56
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
57
57
|
app = {
|
|
@@ -70,6 +70,18 @@ export const aiHostingGetModels = {
|
|
|
70
70
|
method: "GET",
|
|
71
71
|
operationId: "ai-hosting-get-models",
|
|
72
72
|
};
|
|
73
|
+
/** List the contract months of an ai hosting plan. */
|
|
74
|
+
export const aiHostingPlanGetBillingPeriods = {
|
|
75
|
+
path: "/v2/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
76
|
+
method: "GET",
|
|
77
|
+
operationId: "ai-hosting-plan-get-billing-periods",
|
|
78
|
+
};
|
|
79
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
80
|
+
export const aiHostingPlanGetUsageStats = {
|
|
81
|
+
path: "/v2/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
82
|
+
method: "GET",
|
|
83
|
+
operationId: "ai-hosting-plan-get-usage-stats",
|
|
84
|
+
};
|
|
73
85
|
/** Get a list of keys of a project. */
|
|
74
86
|
export const aiHostingProjectGetKeys = {
|
|
75
87
|
path: "/v2/projects/{projectId}/ai-hosting-keys",
|
|
@@ -2860,15 +2872,3 @@ export const verificationVerifyCompany = {
|
|
|
2860
2872
|
method: "POST",
|
|
2861
2873
|
operationId: "verification-verify-company",
|
|
2862
2874
|
};
|
|
2863
|
-
/** List the contract months of an ai hosting plan. */
|
|
2864
|
-
export const aiHostingPlanGetBillingPeriods = {
|
|
2865
|
-
path: "/v2/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
2866
|
-
method: "GET",
|
|
2867
|
-
operationId: "ai-hosting-plan-get-billing-periods",
|
|
2868
|
-
};
|
|
2869
|
-
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
2870
|
-
export const aiHostingPlanGetUsageStats = {
|
|
2871
|
-
path: "/v2/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
2872
|
-
method: "GET",
|
|
2873
|
-
operationId: "ai-hosting-plan-get-usage-stats",
|
|
2874
|
-
};
|
|
@@ -14,6 +14,10 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
14
14
|
customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
|
|
15
15
|
/** Get a list of currently active models. */
|
|
16
16
|
getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
|
|
17
|
+
/** List the contract months of an ai hosting plan. */
|
|
18
|
+
planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
|
|
19
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
20
|
+
planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
|
|
17
21
|
/** Get a list of keys of a project. */
|
|
18
22
|
projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
|
|
19
23
|
/** Get a key of a project. */
|
|
@@ -24,10 +28,6 @@ const buildAiHostingApi = (baseClient) => ({
|
|
|
24
28
|
projectGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetPlan, baseClient.aiHosting.projectGetPlan).getApiResource,
|
|
25
29
|
/** Get all ai hosting plans and usages of a project. */
|
|
26
30
|
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,
|
|
31
31
|
});
|
|
32
32
|
const buildAppApi = (baseClient) => ({
|
|
33
33
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|
|
@@ -30,6 +30,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
30
30
|
customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
|
|
31
31
|
/** Get a list of currently active models. */
|
|
32
32
|
getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
|
|
33
|
+
/** List the contract months of an ai hosting plan. */
|
|
34
|
+
planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
|
|
35
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
36
|
+
planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
|
|
33
37
|
/** Get a list of keys of a project. */
|
|
34
38
|
projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
|
|
35
39
|
/** Creates a new key for a project. */
|
|
@@ -48,10 +52,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
48
52
|
projectGetPlans: this.requestFunctionFactory(descriptors.aiHostingProjectGetPlans),
|
|
49
53
|
/** Links a container with a project licence. */
|
|
50
54
|
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),
|
|
55
55
|
};
|
|
56
56
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
57
57
|
app = {
|
|
@@ -70,6 +70,18 @@ export const aiHostingGetModels = {
|
|
|
70
70
|
method: "GET",
|
|
71
71
|
operationId: "ai-hosting-get-models",
|
|
72
72
|
};
|
|
73
|
+
/** List the contract months of an ai hosting plan. */
|
|
74
|
+
export const aiHostingPlanGetBillingPeriods = {
|
|
75
|
+
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
76
|
+
method: "GET",
|
|
77
|
+
operationId: "ai-hosting-plan-get-billing-periods",
|
|
78
|
+
};
|
|
79
|
+
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
80
|
+
export const aiHostingPlanGetUsageStats = {
|
|
81
|
+
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
82
|
+
method: "GET",
|
|
83
|
+
operationId: "ai-hosting-plan-get-usage-stats",
|
|
84
|
+
};
|
|
73
85
|
/** Get a list of keys of a project. */
|
|
74
86
|
export const aiHostingProjectGetKeys = {
|
|
75
87
|
path: "/v3-next/projects/{projectId}/ai-hosting-keys",
|
|
@@ -2860,15 +2872,3 @@ export const verificationVerifyCompany = {
|
|
|
2860
2872
|
method: "POST",
|
|
2861
2873
|
operationId: "verification-verify-company",
|
|
2862
2874
|
};
|
|
2863
|
-
/** List the contract months of an ai hosting plan. */
|
|
2864
|
-
export const aiHostingPlanGetBillingPeriods = {
|
|
2865
|
-
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/billing-periods",
|
|
2866
|
-
method: "GET",
|
|
2867
|
-
operationId: "ai-hosting-plan-get-billing-periods",
|
|
2868
|
-
};
|
|
2869
|
-
/** Get aggregated token usage statistics for an ai hosting plan of a customer. */
|
|
2870
|
-
export const aiHostingPlanGetUsageStats = {
|
|
2871
|
-
path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/usage",
|
|
2872
|
-
method: "GET",
|
|
2873
|
-
operationId: "ai-hosting-plan-get-usage-stats",
|
|
2874
|
-
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.460.0';
|
|
@@ -94,6 +94,62 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
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").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
|
|
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
|
+
keyId?: string | 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
|
+
keys: {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
}[];
|
|
142
|
+
modelShare: {
|
|
143
|
+
model: string;
|
|
144
|
+
tokens: number;
|
|
145
|
+
}[];
|
|
146
|
+
planId: string;
|
|
147
|
+
timeframe: {
|
|
148
|
+
end: string;
|
|
149
|
+
start: string;
|
|
150
|
+
};
|
|
151
|
+
totalTokens: number;
|
|
152
|
+
}>;
|
|
97
153
|
/** Get a list of keys of a project. */
|
|
98
154
|
projectGetKeys: (conf: {
|
|
99
155
|
projectId: string;
|
|
@@ -167,62 +223,6 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
167
223
|
modelTermsApprovalRequired: boolean;
|
|
168
224
|
plans: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingProjectPlan[];
|
|
169
225
|
}>;
|
|
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
|
-
keyId?: string | 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
|
-
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;
|
|
225
|
-
}>;
|
|
226
226
|
};
|
|
227
227
|
declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
228
228
|
/** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
|