@mittwald/api-client 0.0.0-development-3b96bc8-20251126 → 0.0.0-development-f6d6c35-20251128
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 +19 -19
- package/dist/esm/generated/v2/client.js +29 -27
- package/dist/esm/generated/v2/descriptors.js +78 -72
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +93 -87
- package/dist/types/generated/v2/client.d.ts +5851 -5775
- package/dist/types/generated/v2/descriptors.d.ts +26 -24
- package/dist/types/generated/v2/types.d.ts +5955 -5873
- 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,
|
|
@@ -439,9 +423,23 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
439
423
|
/** Get an SSHUser. */
|
|
440
424
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
441
425
|
});
|
|
426
|
+
const buildAiHostingApi = (baseClient) => ({
|
|
427
|
+
/** Get a licence of a customer. */
|
|
428
|
+
customerGetLlmLicence: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmLicence, baseClient.aiHosting.customerGetLlmLicence).getApiResource,
|
|
429
|
+
/** Get a licence of a project. */
|
|
430
|
+
projectGetLlmLicence: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmLicence, baseClient.aiHosting.projectGetLlmLicence).getApiResource,
|
|
431
|
+
/** Get a list of already created llm licences. */
|
|
432
|
+
customerGetLlmLicences: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmLicences, baseClient.aiHosting.customerGetLlmLicences).getApiResource,
|
|
433
|
+
/** Get llm tariff and usages of a customer. */
|
|
434
|
+
customerGetLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmTariffOptions, baseClient.aiHosting.customerGetLlmTariffOptions).getApiResource,
|
|
435
|
+
/** Get a list of currently active llm models. */
|
|
436
|
+
getLlmModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetLlmModels, baseClient.aiHosting.getLlmModels).getApiResource,
|
|
437
|
+
/** Get a list of already created llm licences of a project. */
|
|
438
|
+
projectGetLlmLicences: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmLicences, baseClient.aiHosting.projectGetLlmLicences).getApiResource,
|
|
439
|
+
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
440
|
+
projectGetLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmTariffOptions, baseClient.aiHosting.projectGetLlmTariffOptions).getApiResource,
|
|
441
|
+
});
|
|
442
442
|
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
443
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
446
444
|
app;
|
|
447
445
|
/** The article API allows you to read article information. */
|
|
@@ -482,8 +480,9 @@ export class MittwaldAPIV2ClientReact {
|
|
|
482
480
|
projectFileSystem;
|
|
483
481
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
484
482
|
sshsftpUser;
|
|
483
|
+
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
484
|
+
aiHosting;
|
|
485
485
|
constructor(baseClient) {
|
|
486
|
-
this.aiHosting = buildAiHostingApi(baseClient);
|
|
487
486
|
this.app = buildAppApi(baseClient);
|
|
488
487
|
this.article = buildArticleApi(baseClient);
|
|
489
488
|
this.backup = buildBackupApi(baseClient);
|
|
@@ -504,6 +503,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
504
503
|
this.project = buildProjectApi(baseClient);
|
|
505
504
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
506
505
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
506
|
+
this.aiHosting = buildAiHostingApi(baseClient);
|
|
507
507
|
}
|
|
508
508
|
static fromBaseClient(baseClient) {
|
|
509
509
|
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. */
|
|
@@ -975,5 +948,34 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
975
948
|
/** Check if a company exists. */
|
|
976
949
|
verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
|
|
977
950
|
};
|
|
951
|
+
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
952
|
+
aiHosting = {
|
|
953
|
+
/** Get a licence of a customer. */
|
|
954
|
+
customerGetLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmLicence),
|
|
955
|
+
/** Update a llm Licence for a customer. */
|
|
956
|
+
customerUpdateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateLlmLicence),
|
|
957
|
+
/** Delete a llm Licence for a customer. */
|
|
958
|
+
customerDeleteLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteLlmLicence),
|
|
959
|
+
/** Get a licence of a project. */
|
|
960
|
+
projectGetLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmLicence),
|
|
961
|
+
/** Update a llm Licence for a project. */
|
|
962
|
+
projectUpdateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateLlmLicence),
|
|
963
|
+
/** Delete a llm Licence for a project. */
|
|
964
|
+
projectDeleteLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteLlmLicence),
|
|
965
|
+
/** Get a list of already created llm licences. */
|
|
966
|
+
customerGetLlmLicences: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmLicences),
|
|
967
|
+
/** Creates a new llm licence for a customer. */
|
|
968
|
+
customerCreateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateLlmLicence),
|
|
969
|
+
/** Get llm tariff and usages of a customer. */
|
|
970
|
+
customerGetLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmTariffOptions),
|
|
971
|
+
/** Get a list of currently active llm models. */
|
|
972
|
+
getLlmModels: this.requestFunctionFactory(descriptors.aiHostingGetLlmModels),
|
|
973
|
+
/** Get a list of already created llm licences of a project. */
|
|
974
|
+
projectGetLlmLicences: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmLicences),
|
|
975
|
+
/** Creates a new llm Licence for a project. */
|
|
976
|
+
projectCreateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectCreateLlmLicence),
|
|
977
|
+
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
978
|
+
projectGetLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmTariffOptions),
|
|
979
|
+
};
|
|
978
980
|
}
|
|
979
981
|
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,81 @@ export const verificationVerifyCompany = {
|
|
|
2728
2656
|
method: "POST",
|
|
2729
2657
|
operationId: "verification-verify-company",
|
|
2730
2658
|
};
|
|
2659
|
+
/** Get a licence of a customer. */
|
|
2660
|
+
export const aiHostingCustomerGetLlmLicence = {
|
|
2661
|
+
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
2662
|
+
method: "GET",
|
|
2663
|
+
operationId: "ai-hosting-customer-get-llm-licence",
|
|
2664
|
+
};
|
|
2665
|
+
/** Update a llm Licence for a customer. */
|
|
2666
|
+
export const aiHostingCustomerUpdateLlmLicence = {
|
|
2667
|
+
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
2668
|
+
method: "PUT",
|
|
2669
|
+
operationId: "ai-hosting-customer-update-llm-licence",
|
|
2670
|
+
};
|
|
2671
|
+
/** Delete a llm Licence for a customer. */
|
|
2672
|
+
export const aiHostingCustomerDeleteLlmLicence = {
|
|
2673
|
+
path: "/v2/customers/{customerId}/llm-licences/{licenceId}",
|
|
2674
|
+
method: "DELETE",
|
|
2675
|
+
operationId: "ai-hosting-customer-delete-llm-licence",
|
|
2676
|
+
};
|
|
2677
|
+
/** Get a licence of a project. */
|
|
2678
|
+
export const aiHostingProjectGetLlmLicence = {
|
|
2679
|
+
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2680
|
+
method: "GET",
|
|
2681
|
+
operationId: "ai-hosting-project-get-llm-licence",
|
|
2682
|
+
};
|
|
2683
|
+
/** Update a llm Licence for a project. */
|
|
2684
|
+
export const aiHostingProjectUpdateLlmLicence = {
|
|
2685
|
+
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2686
|
+
method: "PUT",
|
|
2687
|
+
operationId: "ai-hosting-project-update-llm-licence",
|
|
2688
|
+
};
|
|
2689
|
+
/** Delete a llm Licence for a project. */
|
|
2690
|
+
export const aiHostingProjectDeleteLlmLicence = {
|
|
2691
|
+
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2692
|
+
method: "DELETE",
|
|
2693
|
+
operationId: "ai-hosting-project-delete-llm-licence",
|
|
2694
|
+
};
|
|
2695
|
+
/** Get a list of already created llm licences. */
|
|
2696
|
+
export const aiHostingCustomerGetLlmLicences = {
|
|
2697
|
+
path: "/v2/customers/{customerId}/llm-licences",
|
|
2698
|
+
method: "GET",
|
|
2699
|
+
operationId: "ai-hosting-customer-get-llm-licences",
|
|
2700
|
+
};
|
|
2701
|
+
/** Creates a new llm licence for a customer. */
|
|
2702
|
+
export const aiHostingCustomerCreateLlmLicence = {
|
|
2703
|
+
path: "/v2/customers/{customerId}/llm-licences",
|
|
2704
|
+
method: "POST",
|
|
2705
|
+
operationId: "ai-hosting-customer-create-llm-licence",
|
|
2706
|
+
};
|
|
2707
|
+
/** Get llm tariff and usages of a customer. */
|
|
2708
|
+
export const aiHostingCustomerGetLlmTariffOptions = {
|
|
2709
|
+
path: "/v2/customers/{customerId}/llm-licences/tariff",
|
|
2710
|
+
method: "GET",
|
|
2711
|
+
operationId: "ai-hosting-customer-get-llm-tariff-options",
|
|
2712
|
+
};
|
|
2713
|
+
/** Get a list of currently active llm models. */
|
|
2714
|
+
export const aiHostingGetLlmModels = {
|
|
2715
|
+
path: "/v2/llm-models",
|
|
2716
|
+
method: "GET",
|
|
2717
|
+
operationId: "ai-hosting-get-llm-models",
|
|
2718
|
+
};
|
|
2719
|
+
/** Get a list of already created llm licences of a project. */
|
|
2720
|
+
export const aiHostingProjectGetLlmLicences = {
|
|
2721
|
+
path: "/v2/projects/{projectId}/llm-licences",
|
|
2722
|
+
method: "GET",
|
|
2723
|
+
operationId: "ai-hosting-project-get-llm-licences",
|
|
2724
|
+
};
|
|
2725
|
+
/** Creates a new llm Licence for a project. */
|
|
2726
|
+
export const aiHostingProjectCreateLlmLicence = {
|
|
2727
|
+
path: "/v2/projects/{projectId}/llm-licences",
|
|
2728
|
+
method: "POST",
|
|
2729
|
+
operationId: "ai-hosting-project-create-llm-licence",
|
|
2730
|
+
};
|
|
2731
|
+
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
2732
|
+
export const aiHostingProjectGetLlmTariffOptions = {
|
|
2733
|
+
path: "/v2/projects/{projectId}/llm-licences/tariff",
|
|
2734
|
+
method: "GET",
|
|
2735
|
+
operationId: "ai-hosting-project-get-llm-tariff-options",
|
|
2736
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.269.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: {
|
|
@@ -1693,6 +1608,7 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1693
1608
|
isAllowedToPlaceOrders?: boolean | undefined;
|
|
1694
1609
|
isBanned?: boolean | undefined;
|
|
1695
1610
|
isInDefaultOfPayment?: boolean | undefined;
|
|
1611
|
+
is_mail_address_invalid?: boolean | undefined;
|
|
1696
1612
|
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
1697
1613
|
memberCount: number;
|
|
1698
1614
|
name: string;
|
|
@@ -3406,9 +3322,97 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3406
3322
|
userName: string;
|
|
3407
3323
|
}>;
|
|
3408
3324
|
};
|
|
3325
|
+
declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3326
|
+
/** Get a licence of a customer. */
|
|
3327
|
+
customerGetLlmLicence: (conf: {
|
|
3328
|
+
customerId: string;
|
|
3329
|
+
licenceId: string;
|
|
3330
|
+
headers?: {
|
|
3331
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3332
|
+
} | undefined;
|
|
3333
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3334
|
+
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
3335
|
+
customerId?: string | undefined;
|
|
3336
|
+
isBlocked: boolean;
|
|
3337
|
+
licenceId: string;
|
|
3338
|
+
licenceKey: string;
|
|
3339
|
+
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
3340
|
+
models: string[];
|
|
3341
|
+
name: string;
|
|
3342
|
+
projectId?: string | undefined;
|
|
3343
|
+
tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
|
|
3344
|
+
}>;
|
|
3345
|
+
/** Get a licence of a project. */
|
|
3346
|
+
projectGetLlmLicence: (conf: {
|
|
3347
|
+
projectId: string;
|
|
3348
|
+
licenceId: string;
|
|
3349
|
+
headers?: {
|
|
3350
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3351
|
+
} | undefined;
|
|
3352
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3353
|
+
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
3354
|
+
customerId?: string | undefined;
|
|
3355
|
+
isBlocked: boolean;
|
|
3356
|
+
licenceId: string;
|
|
3357
|
+
licenceKey: string;
|
|
3358
|
+
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
3359
|
+
models: string[];
|
|
3360
|
+
name: string;
|
|
3361
|
+
projectId?: string | undefined;
|
|
3362
|
+
tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
|
|
3363
|
+
}>;
|
|
3364
|
+
/** Get a list of already created llm licences. */
|
|
3365
|
+
customerGetLlmLicences: (conf: {
|
|
3366
|
+
customerId: string;
|
|
3367
|
+
headers?: {
|
|
3368
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3369
|
+
} | undefined;
|
|
3370
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
3371
|
+
/** Get llm tariff and usages of a customer. */
|
|
3372
|
+
customerGetLlmTariffOptions: (conf: {
|
|
3373
|
+
customerId: string;
|
|
3374
|
+
headers?: {
|
|
3375
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3376
|
+
} | undefined;
|
|
3377
|
+
queryParameters?: {
|
|
3378
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3379
|
+
topUsageCount?: number | undefined;
|
|
3380
|
+
} | undefined;
|
|
3381
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3382
|
+
licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
|
|
3383
|
+
limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
|
|
3384
|
+
tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
|
|
3385
|
+
topUsages?: {
|
|
3386
|
+
licenceId?: string;
|
|
3387
|
+
licenceName: string;
|
|
3388
|
+
projectId?: string;
|
|
3389
|
+
tokenUsed: number;
|
|
3390
|
+
}[] | undefined;
|
|
3391
|
+
}>;
|
|
3392
|
+
/** Get a list of currently active llm models. */
|
|
3393
|
+
getLlmModels: (conf?: {
|
|
3394
|
+
headers?: {
|
|
3395
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3396
|
+
} | undefined;
|
|
3397
|
+
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
|
|
3398
|
+
/** Get a list of already created llm licences of a project. */
|
|
3399
|
+
projectGetLlmLicences: (conf: {
|
|
3400
|
+
projectId: string;
|
|
3401
|
+
headers?: {
|
|
3402
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3403
|
+
} | undefined;
|
|
3404
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
3405
|
+
/** Get llm tariff and usages of a project. Same as the customer route, but less details. */
|
|
3406
|
+
projectGetLlmTariffOptions: (conf: {
|
|
3407
|
+
projectId: string;
|
|
3408
|
+
headers?: {
|
|
3409
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
3410
|
+
} | undefined;
|
|
3411
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3412
|
+
licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
|
|
3413
|
+
}>;
|
|
3414
|
+
};
|
|
3409
3415
|
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
3416
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
3413
3417
|
readonly app: ReturnType<typeof buildAppApi>;
|
|
3414
3418
|
/** The article API allows you to read article information. */
|
|
@@ -3449,6 +3453,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3449
3453
|
readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
|
|
3450
3454
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
3451
3455
|
readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
|
|
3456
|
+
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
3457
|
+
readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
|
|
3452
3458
|
private constructor();
|
|
3453
3459
|
static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
|
|
3454
3460
|
}
|