@mittwald/api-client 0.0.0-development-eec3c31-20251204 → 0.0.0-development-28684d6-20251208

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.
@@ -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
- customerGetLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetLlmTariffOptions, baseClient.aiHosting.customerGetLlmTariffOptions).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
- projectGetLlmTariffOptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetLlmTariffOptions, baseClient.aiHosting.projectGetLlmTariffOptions).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 key of a customer. */
428
+ customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
429
+ /** Get a key of a project. */
430
+ projectGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKey, baseClient.aiHosting.projectGetKey).getApiResource,
431
+ /** Get a list of already created keys. */
432
+ customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
433
+ /** Get ai hosting tariff and usages of a customer. */
434
+ customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
435
+ /** Get a list of currently active models. */
436
+ getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
437
+ /** Get a list of keys of a project. */
438
+ projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
439
+ /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
440
+ projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).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,35 +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
- customerGetLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingCustomerGetLlmTariffOptions),
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 Licence for a project. */
26
- projectCreateLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectCreateLlmLicence),
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
- /** Delete a llm Licence for a project. */
32
- projectDeleteLlmLicence: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteLlmLicence),
33
- /** Get llm tariff and usages of a project. Same as the customer route, but less details. */
34
- projectGetLlmTariffOptions: this.requestFunctionFactory(descriptors.aiHostingProjectGetLlmTariffOptions),
35
- };
36
7
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
37
8
  app = {
38
9
  /** Trigger a runtime action belonging to an AppInstallation. */
@@ -973,5 +944,34 @@ export class MittwaldAPIV2Client extends ApiClientBase {
973
944
  /** Check if a company exists. */
974
945
  verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
975
946
  };
947
+ /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
948
+ aiHosting = {
949
+ /** Get a key of a customer. */
950
+ customerGetKey: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKey),
951
+ /** Update a key for a customer. */
952
+ customerUpdateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateKey),
953
+ /** Delete a key for a customer. */
954
+ customerDeleteKey: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteKey),
955
+ /** Get a key of a project. */
956
+ projectGetKey: this.requestFunctionFactory(descriptors.aiHostingProjectGetKey),
957
+ /** Update a key for a project. */
958
+ projectUpdateKey: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateKey),
959
+ /** Delete a key for a project. */
960
+ projectDeleteKey: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteKey),
961
+ /** Get a list of already created keys. */
962
+ customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
963
+ /** Creates a new key. */
964
+ customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
965
+ /** Get ai hosting tariff and usages of a customer. */
966
+ customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
967
+ /** Get a list of currently active models. */
968
+ getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
969
+ /** Get a list of keys of a project. */
970
+ projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
971
+ /** Creates a new key for a project. */
972
+ projectCreateKey: this.requestFunctionFactory(descriptors.aiHostingProjectCreateKey),
973
+ /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
974
+ projectGetUsage: this.requestFunctionFactory(descriptors.aiHostingProjectGetUsage),
975
+ };
976
976
  }
977
977
  export default MittwaldAPIV2Client;
@@ -1,81 +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 aiHostingCustomerGetLlmTariffOptions = {
33
- path: "/v2/customers/{customerId}/llm-licences/tariff",
34
- method: "GET",
35
- operationId: "ai-hosting-customer-get-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 Licence for a project. */
50
- export const aiHostingProjectCreateLlmLicence = {
51
- path: "/v2/projects/{projectId}/llm-licences",
52
- method: "POST",
53
- operationId: "ai-hosting-project-create-llm-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
- /** Delete a llm Licence for a project. */
68
- export const aiHostingProjectDeleteLlmLicence = {
69
- path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
70
- method: "DELETE",
71
- operationId: "ai-hosting-project-delete-llm-licence",
72
- };
73
- /** Get llm tariff and usages of a project. Same as the customer route, but less details. */
74
- export const aiHostingProjectGetLlmTariffOptions = {
75
- path: "/v2/projects/{projectId}/llm-licences/tariff",
76
- method: "GET",
77
- operationId: "ai-hosting-project-get-llm-tariff-options",
78
- };
79
1
  /** Trigger a runtime action belonging to an AppInstallation. */
80
2
  export const appExecuteAction = {
81
3
  path: "/v2/app-installations/{appInstallationId}/actions/{action}",
@@ -2722,3 +2644,81 @@ export const verificationVerifyCompany = {
2722
2644
  method: "POST",
2723
2645
  operationId: "verification-verify-company",
2724
2646
  };
2647
+ /** Get a key of a customer. */
2648
+ export const aiHostingCustomerGetKey = {
2649
+ path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2650
+ method: "GET",
2651
+ operationId: "ai-hosting-customer-get-key",
2652
+ };
2653
+ /** Update a key for a customer. */
2654
+ export const aiHostingCustomerUpdateKey = {
2655
+ path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2656
+ method: "PUT",
2657
+ operationId: "ai-hosting-customer-update-key",
2658
+ };
2659
+ /** Delete a key for a customer. */
2660
+ export const aiHostingCustomerDeleteKey = {
2661
+ path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2662
+ method: "DELETE",
2663
+ operationId: "ai-hosting-customer-delete-key",
2664
+ };
2665
+ /** Get a key of a project. */
2666
+ export const aiHostingProjectGetKey = {
2667
+ path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2668
+ method: "GET",
2669
+ operationId: "ai-hosting-project-get-key",
2670
+ };
2671
+ /** Update a key for a project. */
2672
+ export const aiHostingProjectUpdateKey = {
2673
+ path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2674
+ method: "PUT",
2675
+ operationId: "ai-hosting-project-update-key",
2676
+ };
2677
+ /** Delete a key for a project. */
2678
+ export const aiHostingProjectDeleteKey = {
2679
+ path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2680
+ method: "DELETE",
2681
+ operationId: "ai-hosting-project-delete-key",
2682
+ };
2683
+ /** Get a list of already created keys. */
2684
+ export const aiHostingCustomerGetKeys = {
2685
+ path: "/v2/customers/{customerId}/ai-hosting/keys",
2686
+ method: "GET",
2687
+ operationId: "ai-hosting-customer-get-keys",
2688
+ };
2689
+ /** Creates a new key. */
2690
+ export const aiHostingCustomerCreateKey = {
2691
+ path: "/v2/customers/{customerId}/ai-hosting/keys",
2692
+ method: "POST",
2693
+ operationId: "ai-hosting-customer-create-key",
2694
+ };
2695
+ /** Get ai hosting tariff and usages of a customer. */
2696
+ export const aiHostingCustomerGetUsage = {
2697
+ path: "/v2/customers/{customerId}/ai-hosting",
2698
+ method: "GET",
2699
+ operationId: "ai-hosting-customer-get-usage",
2700
+ };
2701
+ /** Get a list of currently active models. */
2702
+ export const aiHostingGetModels = {
2703
+ path: "/v2/ai-hosting-models",
2704
+ method: "GET",
2705
+ operationId: "ai-hosting-get-models",
2706
+ };
2707
+ /** Get a list of keys of a project. */
2708
+ export const aiHostingProjectGetKeys = {
2709
+ path: "/v2/projects/{projectId}/ai-hosting/keys",
2710
+ method: "GET",
2711
+ operationId: "ai-hosting-project-get-keys",
2712
+ };
2713
+ /** Creates a new key for a project. */
2714
+ export const aiHostingProjectCreateKey = {
2715
+ path: "/v2/projects/{projectId}/ai-hosting/keys",
2716
+ method: "POST",
2717
+ operationId: "ai-hosting-project-create-key",
2718
+ };
2719
+ /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
2720
+ export const aiHostingProjectGetUsage = {
2721
+ path: "/v2/projects/{projectId}/ai-hosting",
2722
+ method: "GET",
2723
+ operationId: "ai-hosting-project-get-usage",
2724
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.270.0';
1
+ export const MittwaldAPIClientVersion = '0.0.0-development-499375d-20251205';
@@ -1,95 +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
- customerGetLlmTariffOptions: (conf: {
32
- customerId: string;
33
- headers?: {
34
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
35
- } | undefined;
36
- queryParameters?: {
37
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
38
- topUsageCount?: number | undefined;
39
- } | undefined;
40
- }) => import("@mittwald/react-use-promise").AsyncResource<{
41
- licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
42
- limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
43
- tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
44
- topUsages?: {
45
- licenceId?: string;
46
- licenceName: string;
47
- projectId?: string;
48
- tokenUsed: number;
49
- }[] | undefined;
50
- }>;
51
- /** Get a list of currently active llm models. */
52
- getLlmModels: (conf?: {
53
- headers?: {
54
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
55
- } | undefined;
56
- } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
57
- /** Get a list of already created llm licences of a project. */
58
- projectGetLlmLicences: (conf: {
59
- projectId: string;
60
- headers?: {
61
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
62
- } | undefined;
63
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
64
- /** Get a licence of a project. */
65
- projectGetLlmLicence: (conf: {
66
- projectId: string;
67
- licenceId: string;
68
- headers?: {
69
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
70
- } | undefined;
71
- }) => import("@mittwald/react-use-promise").AsyncResource<{
72
- containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
73
- customerId?: string | undefined;
74
- isBlocked: boolean;
75
- licenceId: string;
76
- licenceKey: string;
77
- limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
78
- models: string[];
79
- name: string;
80
- projectId?: string | undefined;
81
- tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
82
- }>;
83
- /** Get llm tariff and usages of a project. Same as the customer route, but less details. */
84
- projectGetLlmTariffOptions: (conf: {
85
- projectId: string;
86
- headers?: {
87
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
88
- } | undefined;
89
- }) => import("@mittwald/react-use-promise").AsyncResource<{
90
- licences: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
91
- }>;
92
- };
93
3
  declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
94
4
  /** Get an App. */
95
5
  getApp: (conf: {
@@ -3415,9 +3325,99 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
3415
3325
  userName: string;
3416
3326
  }>;
3417
3327
  };
3328
+ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
3329
+ /** Get a key of a customer. */
3330
+ customerGetKey: (conf: {
3331
+ customerId: string;
3332
+ keyId: string;
3333
+ headers?: {
3334
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3335
+ } | undefined;
3336
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3337
+ containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
3338
+ customerId?: string | undefined;
3339
+ isBlocked: boolean;
3340
+ key: string;
3341
+ keyId: string;
3342
+ limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3343
+ models: string[];
3344
+ name: string;
3345
+ projectId?: string | undefined;
3346
+ tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3347
+ }>;
3348
+ /** Get a key of a project. */
3349
+ projectGetKey: (conf: {
3350
+ projectId: string;
3351
+ keyId: string;
3352
+ headers?: {
3353
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3354
+ } | undefined;
3355
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3356
+ containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
3357
+ customerId?: string | undefined;
3358
+ isBlocked: boolean;
3359
+ key: string;
3360
+ keyId: string;
3361
+ limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3362
+ models: string[];
3363
+ name: string;
3364
+ projectId?: string | undefined;
3365
+ tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3366
+ }>;
3367
+ /** Get a list of already created keys. */
3368
+ customerGetKeys: (conf: {
3369
+ customerId: string;
3370
+ headers?: {
3371
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3372
+ } | undefined;
3373
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
3374
+ /** Get ai hosting tariff and usages of a customer. */
3375
+ customerGetUsage: (conf: {
3376
+ customerId: string;
3377
+ headers?: {
3378
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3379
+ } | undefined;
3380
+ queryParameters?: {
3381
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3382
+ topUsageCount?: number | undefined;
3383
+ } | undefined;
3384
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3385
+ customerId: string;
3386
+ keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
3387
+ limit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3388
+ tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
3389
+ topUsages?: {
3390
+ keyId?: string;
3391
+ name: string;
3392
+ projectId?: string;
3393
+ tokenUsed: number;
3394
+ }[] | undefined;
3395
+ }>;
3396
+ /** Get a list of currently active models. */
3397
+ getModels: (conf?: {
3398
+ headers?: {
3399
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3400
+ } | undefined;
3401
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
3402
+ /** Get a list of keys of a project. */
3403
+ projectGetKeys: (conf: {
3404
+ projectId: string;
3405
+ headers?: {
3406
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3407
+ } | undefined;
3408
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
3409
+ /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
3410
+ projectGetUsage: (conf: {
3411
+ projectId: string;
3412
+ headers?: {
3413
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3414
+ } | undefined;
3415
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
3416
+ keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
3417
+ projectId: string;
3418
+ }>;
3419
+ };
3418
3420
  export declare class MittwaldAPIV2ClientReact {
3419
- /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
3420
- readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
3421
3421
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
3422
3422
  readonly app: ReturnType<typeof buildAppApi>;
3423
3423
  /** The article API allows you to read article information. */
@@ -3458,6 +3458,8 @@ export declare class MittwaldAPIV2ClientReact {
3458
3458
  readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
3459
3459
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
3460
3460
  readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
3461
+ /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
3462
+ readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
3461
3463
  private constructor();
3462
3464
  static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
3463
3465
  }