@mittwald/api-client 0.0.0-development-f6d6c35-20251128 → 0.0.0-development-eec3c31-20251204

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,6 +1,22 @@
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
+ });
4
20
  const buildAppApi = (baseClient) => ({
5
21
  /** Get an App. */
6
22
  getApp: new ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
@@ -423,23 +439,9 @@ const buildSshsftpUserApi = (baseClient) => ({
423
439
  /** Get an SSHUser. */
424
440
  sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
425
441
  });
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;
443
445
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
444
446
  app;
445
447
  /** The article API allows you to read article information. */
@@ -480,9 +482,8 @@ export class MittwaldAPIV2ClientReact {
480
482
  projectFileSystem;
481
483
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
482
484
  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);
486
487
  this.app = buildAppApi(baseClient);
487
488
  this.article = buildArticleApi(baseClient);
488
489
  this.backup = buildBackupApi(baseClient);
@@ -503,7 +504,6 @@ export class MittwaldAPIV2ClientReact {
503
504
  this.project = buildProjectApi(baseClient);
504
505
  this.projectFileSystem = buildProjectFileSystemApi(baseClient);
505
506
  this.sshsftpUser = buildSshsftpUserApi(baseClient);
506
- this.aiHosting = buildAiHostingApi(baseClient);
507
507
  }
508
508
  static fromBaseClient(baseClient) {
509
509
  return new MittwaldAPIV2ClientReact(baseClient);
@@ -4,6 +4,35 @@
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
+ };
7
36
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
8
37
  app = {
9
38
  /** Trigger a runtime action belonging to an AppInstallation. */
@@ -233,16 +262,12 @@ export class MittwaldAPIV2Client extends ApiClientBase {
233
262
  contributorListOnbehalfInvoices: this.requestFunctionFactory(descriptors.contributorListOnbehalfInvoices),
234
263
  /** Request an Access Token for the Incoming Invoice file. */
235
264
  contributorReceiptGetFileAccessToken: this.requestFunctionFactory(descriptors.contributorReceiptGetFileAccessToken),
236
- /** Reject a contributor verification request. */
237
- contributorRejectContributorInternal: this.requestFunctionFactory(descriptors.contributorRejectContributorInternal),
238
265
  /** Add a deviating avatar to a Contributor. */
239
266
  contributorRequestDeviatingContributorAvatarUpload: this.requestFunctionFactory(descriptors.contributorRequestDeviatingContributorAvatarUpload),
240
267
  /** Delete deviating contributor avatar und return to the inherited customer avatar. */
241
268
  contributorResetContributorAvatar: this.requestFunctionFactory(descriptors.contributorResetContributorAvatar),
242
269
  /** Rotate the secret for an extension instance. */
243
270
  contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
244
- /** Accept a contributor verification request */
245
- contributorVerifyContributorInternal: this.requestFunctionFactory(descriptors.contributorVerifyContributorInternal),
246
271
  /** Authenticate your external application using the extensionInstanceSecret. */
247
272
  extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance),
248
273
  /** Authenticate your external application using a session token and an extension secret */
@@ -948,34 +973,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
948
973
  /** Check if a company exists. */
949
974
  verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
950
975
  };
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
- };
980
976
  }
981
977
  export default MittwaldAPIV2Client;
@@ -1,3 +1,81 @@
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
+ };
1
79
  /** Trigger a runtime action belonging to an AppInstallation. */
2
80
  export const appExecuteAction = {
3
81
  path: "/v2/app-installations/{appInstallationId}/actions/{action}",
@@ -556,12 +634,6 @@ export const contributorReceiptGetFileAccessToken = {
556
634
  method: "GET",
557
635
  operationId: "contributor-receipt-get-file-access-token",
558
636
  };
559
- /** Reject a contributor verification request. */
560
- export const contributorRejectContributorInternal = {
561
- path: "/internal-v2/contributors/{contributorId}/actions/reject",
562
- method: "POST",
563
- operationId: "contributor-reject-contributor-internal",
564
- };
565
637
  /** Add a deviating avatar to a Contributor. */
566
638
  export const contributorRequestDeviatingContributorAvatarUpload = {
567
639
  path: "/v2/contributors/{contributorId}/avatar",
@@ -580,12 +652,6 @@ export const contributorRotateSecretForExtensionInstance = {
580
652
  method: "PUT",
581
653
  operationId: "contributor-rotate-secret-for-extension-instance",
582
654
  };
583
- /** Accept a contributor verification request */
584
- export const contributorVerifyContributorInternal = {
585
- path: "/internal-v2/contributors/{contributorId}/actions/verify",
586
- method: "POST",
587
- operationId: "contributor-verify-contributor-internal",
588
- };
589
655
  /** Get all conversation the authenticated user has created or has access to. */
590
656
  export const conversationListConversations = {
591
657
  path: "/v2/conversations",
@@ -2656,81 +2722,3 @@ export const verificationVerifyCompany = {
2656
2722
  method: "POST",
2657
2723
  operationId: "verification-verify-company",
2658
2724
  };
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
- };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.269.0';
1
+ export const MittwaldAPIClientVersion = '4.270.0';
@@ -1,5 +1,95 @@
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
+ };
3
93
  declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
4
94
  /** Get an App. */
5
95
  getApp: (conf: {
@@ -2033,17 +2123,20 @@ declare const buildDomainApi: (baseClient: MittwaldAPIV2Client) => {
2033
2123
  } | undefined;
2034
2124
  }) => import("@mittwald/react-use-promise").AsyncResource<{
2035
2125
  caBundle?: string | undefined;
2036
- certificate: string;
2126
+ certificate?: string | undefined;
2037
2127
  certificateOrderId?: string | undefined;
2038
2128
  certificateRequestId: string;
2039
2129
  certificateType: import("./types.js").MittwaldAPIV2.Components.Schemas.SslCertificateType;
2040
2130
  commonName?: string | undefined;
2041
2131
  contact?: import("./types.js").MittwaldAPIV2.Components.Schemas.SslContact | undefined;
2132
+ dnsCertSpec?: {
2133
+ cNameTarget?: string;
2134
+ } | undefined;
2042
2135
  dnsNames?: string[] | undefined;
2043
2136
  id: string;
2044
- isExpired: boolean;
2137
+ isExpired?: boolean | undefined;
2045
2138
  issuer?: string | undefined;
2046
- lastExpirationThresholdHit: number;
2139
+ lastExpirationThresholdHit?: number | undefined;
2047
2140
  projectId: string;
2048
2141
  validFrom: string;
2049
2142
  validTo: string;
@@ -3322,97 +3415,9 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
3322
3415
  userName: string;
3323
3416
  }>;
3324
3417
  };
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
- };
3415
3418
  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>;
3416
3421
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
3417
3422
  readonly app: ReturnType<typeof buildAppApi>;
3418
3423
  /** The article API allows you to read article information. */
@@ -3453,8 +3458,6 @@ export declare class MittwaldAPIV2ClientReact {
3453
3458
  readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
3454
3459
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
3455
3460
  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>;
3458
3461
  private constructor();
3459
3462
  static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
3460
3463
  }