@mittwald/api-client 0.0.0-development-3b96bc8-20251126 → 0.0.0-development-c892644-20251126
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 +11 -19
- package/dist/esm/generated/v2/client.js +10 -27
- package/dist/esm/generated/v2/descriptors.js +30 -72
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +39 -87
- package/dist/types/generated/v2/client.d.ts +428 -841
- package/dist/types/generated/v2/descriptors.d.ts +10 -24
- package/dist/types/generated/v2/types.d.ts +6414 -6885
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { ApiCallAsyncResourceFactory } from "@mittwald/api-client-commons/react";
|
|
2
2
|
import * as descriptors from "./descriptors.js";
|
|
3
3
|
export * from "@mittwald/react-use-promise";
|
|
4
|
-
const buildAiHostingApi = (baseClient) => ({
|
|
5
|
-
/** Get a list of already created llm licences. */
|
|
6
|
-
customerGetLlmLicences: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmLicences, baseClient.aiHosting.customerGetLlmLicences).getApiResource,
|
|
7
|
-
/** Get a licence of a customer. */
|
|
8
|
-
customerGetLlmLicence: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmLicence, baseClient.aiHosting.customerGetLlmLicence).getApiResource,
|
|
9
|
-
/** Get llm tariff and usages of a customer. */
|
|
10
|
-
customerGetCustomerLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetCustomerLlmTariffOptions, baseClient.aiHosting.customerGetCustomerLlmTariffOptions).getApiResource,
|
|
11
|
-
/** Get a list of currently active llm models. */
|
|
12
|
-
getLlmModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetLlmModels, baseClient.aiHosting.getLlmModels).getApiResource,
|
|
13
|
-
/** Get a list of already created llm licences of a project. */
|
|
14
|
-
projectGetLlmLicences: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmLicences, baseClient.aiHosting.projectGetLlmLicences).getApiResource,
|
|
15
|
-
/** Get a licence of a project. */
|
|
16
|
-
projectGetLlmLicence: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmLicence, baseClient.aiHosting.projectGetLlmLicence).getApiResource,
|
|
17
|
-
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
18
|
-
projectGetProjectLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetProjectLlmTariffOptions, baseClient.aiHosting.projectGetProjectLlmTariffOptions).getApiResource,
|
|
19
|
-
});
|
|
20
4
|
const buildAppApi = (baseClient) => ({
|
|
21
5
|
/** Get an App. */
|
|
22
6
|
getApp: new ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
|
|
@@ -416,6 +400,10 @@ const buildProjectApi = (baseClient) => ({
|
|
|
416
400
|
storagespaceGetProjectStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetProjectStatistics, baseClient.project.storagespaceGetProjectStatistics).getApiResource,
|
|
417
401
|
/** Get storage space Statistics belonging to a Server. */
|
|
418
402
|
storagespaceGetServerStatistics: new ApiCallAsyncResourceFactory(descriptors.storagespaceGetServerStatistics, baseClient.project.storagespaceGetServerStatistics).getApiResource,
|
|
403
|
+
/** Get a licence of a project. */
|
|
404
|
+
getLlmLicenceExperimental: new ApiCallAsyncResourceFactory(descriptors.projectGetLlmLicenceExperimental, baseClient.project.getLlmLicenceExperimental).getApiResource,
|
|
405
|
+
/** Get a list of already created llm licences. */
|
|
406
|
+
getLlmLicencesExperimental: new ApiCallAsyncResourceFactory(descriptors.projectGetLlmLicencesExperimental, baseClient.project.getLlmLicencesExperimental).getApiResource,
|
|
419
407
|
});
|
|
420
408
|
const buildProjectFileSystemApi = (baseClient) => ({
|
|
421
409
|
/** List directories belonging to a Project. */
|
|
@@ -439,9 +427,11 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
439
427
|
/** Get an SSHUser. */
|
|
440
428
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
441
429
|
});
|
|
430
|
+
const buildMiscApi = (baseClient) => ({
|
|
431
|
+
/** Get a list of currently active llm models. */
|
|
432
|
+
getLlmModelsExperimental: new ApiCallAsyncResourceFactory(descriptors.miscGetLlmModelsExperimental, baseClient.misc.getLlmModelsExperimental).getApiResource,
|
|
433
|
+
});
|
|
442
434
|
export class MittwaldAPIV2ClientReact {
|
|
443
|
-
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
444
|
-
aiHosting;
|
|
445
435
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
446
436
|
app;
|
|
447
437
|
/** The article API allows you to read article information. */
|
|
@@ -482,8 +472,9 @@ export class MittwaldAPIV2ClientReact {
|
|
|
482
472
|
projectFileSystem;
|
|
483
473
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
484
474
|
sshsftpUser;
|
|
475
|
+
/** API endpoints that are not related to any specific API domain */
|
|
476
|
+
misc;
|
|
485
477
|
constructor(baseClient) {
|
|
486
|
-
this.aiHosting = buildAiHostingApi(baseClient);
|
|
487
478
|
this.app = buildAppApi(baseClient);
|
|
488
479
|
this.article = buildArticleApi(baseClient);
|
|
489
480
|
this.backup = buildBackupApi(baseClient);
|
|
@@ -504,6 +495,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
504
495
|
this.project = buildProjectApi(baseClient);
|
|
505
496
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
506
497
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
498
|
+
this.misc = buildMiscApi(baseClient);
|
|
507
499
|
}
|
|
508
500
|
static fromBaseClient(baseClient) {
|
|
509
501
|
return new MittwaldAPIV2ClientReact(baseClient);
|
|
@@ -4,33 +4,6 @@
|
|
|
4
4
|
import * as descriptors from "./descriptors.js";
|
|
5
5
|
import { ApiClientBase } from "@mittwald/api-client-commons";
|
|
6
6
|
export class MittwaldAPIV2Client extends ApiClientBase {
|
|
7
|
-
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
8
|
-
aiHosting = {
|
|
9
|
-
/** Get a list of already created llm licences. */
|
|
10
|
-
customerGetLlmLicences: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmLicences),
|
|
11
|
-
/** Creates a new llm licence for a customer. */
|
|
12
|
-
customerCreateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateLlmLicence),
|
|
13
|
-
/** Get a licence of a customer. */
|
|
14
|
-
customerGetLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmLicence),
|
|
15
|
-
/** Update a llm Licence for a customer. */
|
|
16
|
-
customerUpdateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateLlmLicence),
|
|
17
|
-
/** Delete a llm Licence for a customer. */
|
|
18
|
-
customerDeleteLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteLlmLicence),
|
|
19
|
-
/** Get llm tariff and usages of a customer. */
|
|
20
|
-
customerGetCustomerLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingCustomerGetCustomerLlmTariffOptions),
|
|
21
|
-
/** Get a list of currently active llm models. */
|
|
22
|
-
getLlmModels: this.requestFunctionFactory(descriptors.aiHostingGetLlmModels),
|
|
23
|
-
/** Get a list of already created llm licences of a project. */
|
|
24
|
-
projectGetLlmLicences: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmLicences),
|
|
25
|
-
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
26
|
-
projectCreateLlmBetaLicence: this.requestFunctionFactory(descriptors.aiHostingProjectCreateLlmBetaLicence),
|
|
27
|
-
/** Get a licence of a project. */
|
|
28
|
-
projectGetLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmLicence),
|
|
29
|
-
/** Update a llm Licence for a project. */
|
|
30
|
-
projectUpdateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateLlmLicence),
|
|
31
|
-
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
32
|
-
projectGetProjectLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingProjectGetProjectLlmTariffOptions),
|
|
33
|
-
};
|
|
34
7
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
35
8
|
app = {
|
|
36
9
|
/** Trigger a runtime action belonging to an AppInstallation. */
|
|
@@ -922,6 +895,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
922
895
|
storagespaceReplaceProjectNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceProjectNotificationThreshold),
|
|
923
896
|
/** Update a Server's storage space notification threshold. */
|
|
924
897
|
storagespaceReplaceServerNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceServerNotificationThreshold),
|
|
898
|
+
/** Get a licence of a project. */
|
|
899
|
+
getLlmLicenceExperimental: this.requestFunctionFactory(descriptors.projectGetLlmLicenceExperimental),
|
|
900
|
+
/** Update a llm Licence for a project. */
|
|
901
|
+
updateLlmLicenceExperimental: this.requestFunctionFactory(descriptors.projectUpdateLlmLicenceExperimental),
|
|
902
|
+
/** Get a list of already created llm licences. */
|
|
903
|
+
getLlmLicencesExperimental: this.requestFunctionFactory(descriptors.projectGetLlmLicencesExperimental),
|
|
904
|
+
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
905
|
+
createLlmBetaLicenceExperimental: this.requestFunctionFactory(descriptors.projectCreateLlmBetaLicenceExperimental),
|
|
925
906
|
};
|
|
926
907
|
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
927
908
|
projectFileSystem = {
|
|
@@ -974,6 +955,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
974
955
|
verificationVerifyAddress: this.requestFunctionFactory(descriptors.verificationVerifyAddress),
|
|
975
956
|
/** Check if a company exists. */
|
|
976
957
|
verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
|
|
958
|
+
/** Get a list of currently active llm models. */
|
|
959
|
+
getLlmModelsExperimental: this.requestFunctionFactory(descriptors.miscGetLlmModelsExperimental),
|
|
977
960
|
};
|
|
978
961
|
}
|
|
979
962
|
export default MittwaldAPIV2Client;
|
|
@@ -1,75 +1,3 @@
|
|
|
1
|
-
/** Get a list of already created llm licences. */
|
|
2
|
-
export const aiHostingCustomerGetLlmLicences = {
|
|
3
|
-
path: "/v2/customers/{customerId}/llm-licences",
|
|
4
|
-
method: "GET",
|
|
5
|
-
operationId: "ai-hosting-customer-get-llm-licences",
|
|
6
|
-
};
|
|
7
|
-
/** Creates a new llm licence for a customer. */
|
|
8
|
-
export const aiHostingCustomerCreateLlmLicence = {
|
|
9
|
-
path: "/v2/customers/{customerId}/llm-licences",
|
|
10
|
-
method: "POST",
|
|
11
|
-
operationId: "ai-hosting-customer-create-llm-licence",
|
|
12
|
-
};
|
|
13
|
-
/** Get a licence of a customer. */
|
|
14
|
-
export const aiHostingCustomerGetLlmLicence = {
|
|
15
|
-
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
16
|
-
method: "GET",
|
|
17
|
-
operationId: "ai-hosting-customer-get-llm-licence",
|
|
18
|
-
};
|
|
19
|
-
/** Update a llm Licence for a customer. */
|
|
20
|
-
export const aiHostingCustomerUpdateLlmLicence = {
|
|
21
|
-
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
22
|
-
method: "PUT",
|
|
23
|
-
operationId: "ai-hosting-customer-update-llm-licence",
|
|
24
|
-
};
|
|
25
|
-
/** Delete a llm Licence for a customer. */
|
|
26
|
-
export const aiHostingCustomerDeleteLlmLicence = {
|
|
27
|
-
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
28
|
-
method: "DELETE",
|
|
29
|
-
operationId: "ai-hosting-customer-delete-llm-licence",
|
|
30
|
-
};
|
|
31
|
-
/** Get llm tariff and usages of a customer. */
|
|
32
|
-
export const aiHostingCustomerGetCustomerLlmTariffOptions = {
|
|
33
|
-
path: "/v2/customers/{customerId}/llm-licences/tariff",
|
|
34
|
-
method: "GET",
|
|
35
|
-
operationId: "ai-hosting-customer-get-customer-llm-tariff-options",
|
|
36
|
-
};
|
|
37
|
-
/** Get a list of currently active llm models. */
|
|
38
|
-
export const aiHostingGetLlmModels = {
|
|
39
|
-
path: "/v2/llm-models",
|
|
40
|
-
method: "GET",
|
|
41
|
-
operationId: "ai-hosting-get-llm-models",
|
|
42
|
-
};
|
|
43
|
-
/** Get a list of already created llm licences of a project. */
|
|
44
|
-
export const aiHostingProjectGetLlmLicences = {
|
|
45
|
-
path: "/v2/projects/{projectId}/llm-licences",
|
|
46
|
-
method: "GET",
|
|
47
|
-
operationId: "ai-hosting-project-get-llm-licences",
|
|
48
|
-
};
|
|
49
|
-
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
50
|
-
export const aiHostingProjectCreateLlmBetaLicence = {
|
|
51
|
-
path: "/v2/projects/{projectId}/llm-licences",
|
|
52
|
-
method: "POST",
|
|
53
|
-
operationId: "ai-hosting-project-create-llm-beta-licence",
|
|
54
|
-
};
|
|
55
|
-
/** Get a licence of a project. */
|
|
56
|
-
export const aiHostingProjectGetLlmLicence = {
|
|
57
|
-
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
58
|
-
method: "GET",
|
|
59
|
-
operationId: "ai-hosting-project-get-llm-licence",
|
|
60
|
-
};
|
|
61
|
-
/** Update a llm Licence for a project. */
|
|
62
|
-
export const aiHostingProjectUpdateLlmLicence = {
|
|
63
|
-
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
64
|
-
method: "PUT",
|
|
65
|
-
operationId: "ai-hosting-project-update-llm-licence",
|
|
66
|
-
};
|
|
67
|
-
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
68
|
-
export const aiHostingProjectGetProjectLlmTariffOptions = {
|
|
69
|
-
path: "/v2/projects/{projectId}/llm-licences/tariff",
|
|
70
|
-
method: "GET",
|
|
71
|
-
operationId: "ai-hosting-project-get-project-llm-tariff-options",
|
|
72
|
-
};
|
|
73
1
|
/** Trigger a runtime action belonging to an AppInstallation. */
|
|
74
2
|
export const appExecuteAction = {
|
|
75
3
|
path: "/v2/app-installations/{appInstallationId}/actions/{action}",
|
|
@@ -2728,3 +2656,33 @@ export const verificationVerifyCompany = {
|
|
|
2728
2656
|
method: "POST",
|
|
2729
2657
|
operationId: "verification-verify-company",
|
|
2730
2658
|
};
|
|
2659
|
+
/** Get a list of currently active llm models. */
|
|
2660
|
+
export const miscGetLlmModelsExperimental = {
|
|
2661
|
+
path: "/v2/llm-models",
|
|
2662
|
+
method: "GET",
|
|
2663
|
+
operationId: "misc-get-llm-models-experimental",
|
|
2664
|
+
};
|
|
2665
|
+
/** Get a licence of a project. */
|
|
2666
|
+
export const projectGetLlmLicenceExperimental = {
|
|
2667
|
+
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2668
|
+
method: "GET",
|
|
2669
|
+
operationId: "project-get-llm-licence-experimental",
|
|
2670
|
+
};
|
|
2671
|
+
/** Update a llm Licence for a project. */
|
|
2672
|
+
export const projectUpdateLlmLicenceExperimental = {
|
|
2673
|
+
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2674
|
+
method: "PUT",
|
|
2675
|
+
operationId: "project-update-llm-licence-experimental",
|
|
2676
|
+
};
|
|
2677
|
+
/** Get a list of already created llm licences. */
|
|
2678
|
+
export const projectGetLlmLicencesExperimental = {
|
|
2679
|
+
path: "/v2/projects/{projectId}/llm-licences",
|
|
2680
|
+
method: "GET",
|
|
2681
|
+
operationId: "project-get-llm-licences-experimental",
|
|
2682
|
+
};
|
|
2683
|
+
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
2684
|
+
export const projectCreateLlmBetaLicenceExperimental = {
|
|
2685
|
+
path: "/v2/projects/{projectId}/llm-licences",
|
|
2686
|
+
method: "POST",
|
|
2687
|
+
operationId: "project-create-llm-beta-licence-experimental",
|
|
2688
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.266.0';
|
|
@@ -1,90 +1,5 @@
|
|
|
1
1
|
import MittwaldAPIV2Client from "./client.js";
|
|
2
2
|
export * from "@mittwald/react-use-promise";
|
|
3
|
-
declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
4
|
-
/** Get a list of already created llm licences. */
|
|
5
|
-
customerGetLlmLicences: (conf: {
|
|
6
|
-
customerId: string;
|
|
7
|
-
headers?: {
|
|
8
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
9
|
-
} | undefined;
|
|
10
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
11
|
-
/** Get a licence of a customer. */
|
|
12
|
-
customerGetLlmLicence: (conf: {
|
|
13
|
-
customerId: string;
|
|
14
|
-
licenceId: string;
|
|
15
|
-
headers?: {
|
|
16
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
19
|
-
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
20
|
-
customerId?: string | undefined;
|
|
21
|
-
isBlocked: boolean;
|
|
22
|
-
licenceId: string;
|
|
23
|
-
licenceKey: string;
|
|
24
|
-
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
25
|
-
models: string[];
|
|
26
|
-
name: string;
|
|
27
|
-
projectId?: string | undefined;
|
|
28
|
-
tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
|
|
29
|
-
}>;
|
|
30
|
-
/** Get llm tariff and usages of a customer. */
|
|
31
|
-
customerGetCustomerLlmTariffOptions: (conf: {
|
|
32
|
-
customerId: string;
|
|
33
|
-
headers?: {
|
|
34
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
37
|
-
detailedUsage?: {
|
|
38
|
-
licencesUsed: number;
|
|
39
|
-
projectId?: string;
|
|
40
|
-
tokenUsed: number;
|
|
41
|
-
}[] | undefined;
|
|
42
|
-
licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
|
|
43
|
-
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
44
|
-
tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
|
|
45
|
-
}>;
|
|
46
|
-
/** Get a list of currently active llm models. */
|
|
47
|
-
getLlmModels: (conf?: {
|
|
48
|
-
headers?: {
|
|
49
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
50
|
-
} | undefined;
|
|
51
|
-
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
|
|
52
|
-
/** Get a list of already created llm licences of a project. */
|
|
53
|
-
projectGetLlmLicences: (conf: {
|
|
54
|
-
projectId: string;
|
|
55
|
-
headers?: {
|
|
56
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
59
|
-
/** Get a licence of a project. */
|
|
60
|
-
projectGetLlmLicence: (conf: {
|
|
61
|
-
projectId: string;
|
|
62
|
-
licenceId: string;
|
|
63
|
-
headers?: {
|
|
64
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
67
|
-
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
68
|
-
customerId?: string | undefined;
|
|
69
|
-
isBlocked: boolean;
|
|
70
|
-
licenceId: string;
|
|
71
|
-
licenceKey: string;
|
|
72
|
-
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
73
|
-
models: string[];
|
|
74
|
-
name: string;
|
|
75
|
-
projectId?: string | undefined;
|
|
76
|
-
tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
|
|
77
|
-
}>;
|
|
78
|
-
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
79
|
-
projectGetProjectLlmTariffOptions: (conf: {
|
|
80
|
-
projectId: string;
|
|
81
|
-
headers?: {
|
|
82
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
85
|
-
licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
|
|
86
|
-
}>;
|
|
87
|
-
};
|
|
88
3
|
declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
|
|
89
4
|
/** Get an App. */
|
|
90
5
|
getApp: (conf: {
|
|
@@ -3245,6 +3160,35 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3245
3160
|
notificationThresholdInBytes?: number | undefined;
|
|
3246
3161
|
statisticCategories?: import("./types.js").MittwaldAPIV2.Components.Schemas.StoragespaceStatisticsCategory[] | undefined;
|
|
3247
3162
|
}>;
|
|
3163
|
+
/** Get a licence of a project. */
|
|
3164
|
+
getLlmLicenceExperimental: (conf: {
|
|
3165
|
+
projectId: string;
|
|
3166
|
+
licenceId: string;
|
|
3167
|
+
headers?: {
|
|
3168
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3169
|
+
} | undefined;
|
|
3170
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3171
|
+
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
3172
|
+
customerId?: string | undefined;
|
|
3173
|
+
isBlocked: boolean;
|
|
3174
|
+
licenceId: string;
|
|
3175
|
+
licenceKey: string;
|
|
3176
|
+
limit: {
|
|
3177
|
+
allowedRequestsPerUnit: number;
|
|
3178
|
+
unit: "minute" | "hour";
|
|
3179
|
+
};
|
|
3180
|
+
models: string[];
|
|
3181
|
+
name: string;
|
|
3182
|
+
projectId?: string | undefined;
|
|
3183
|
+
rateLimit: number;
|
|
3184
|
+
}>;
|
|
3185
|
+
/** Get a list of already created llm licences. */
|
|
3186
|
+
getLlmLicencesExperimental: (conf: {
|
|
3187
|
+
projectId: string;
|
|
3188
|
+
headers?: {
|
|
3189
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3190
|
+
} | undefined;
|
|
3191
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
3248
3192
|
};
|
|
3249
3193
|
declare const buildProjectFileSystemApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3250
3194
|
/** List directories belonging to a Project. */
|
|
@@ -3406,9 +3350,15 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3406
3350
|
userName: string;
|
|
3407
3351
|
}>;
|
|
3408
3352
|
};
|
|
3353
|
+
declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3354
|
+
/** Get a list of currently active llm models. */
|
|
3355
|
+
getLlmModelsExperimental: (conf?: {
|
|
3356
|
+
headers?: {
|
|
3357
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3358
|
+
} | undefined;
|
|
3359
|
+
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
|
|
3360
|
+
};
|
|
3409
3361
|
export declare class MittwaldAPIV2ClientReact {
|
|
3410
|
-
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
3411
|
-
readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
|
|
3412
3362
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
3413
3363
|
readonly app: ReturnType<typeof buildAppApi>;
|
|
3414
3364
|
/** The article API allows you to read article information. */
|
|
@@ -3449,6 +3399,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3449
3399
|
readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
|
|
3450
3400
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
3451
3401
|
readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
|
|
3402
|
+
/** API endpoints that are not related to any specific API domain */
|
|
3403
|
+
readonly misc: ReturnType<typeof buildMiscApi>;
|
|
3452
3404
|
private constructor();
|
|
3453
3405
|
static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
|
|
3454
3406
|
}
|