@mittwald/api-client 4.281.0 → 4.283.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 keys. */
6
+ customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
7
+ /** Get a key of a customer. */
8
+ customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
9
+ /** Get ai hosting plan and usages of a customer. */
10
+ customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
11
+ /** Get a list of currently active models. */
12
+ getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
13
+ /** Get a list of keys of a project. */
14
+ projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
15
+ /** Get a key of a project. */
16
+ projectGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKey, baseClient.aiHosting.projectGetKey).getApiResource,
17
+ /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
18
+ projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
19
+ });
4
20
  const buildAppApi = (baseClient) => ({
5
21
  /** Get an App. */
6
22
  getApp: new ApiCallAsyncResourceFactory(descriptors.appGetApp, baseClient.app.getApp).getApiResource,
@@ -425,23 +441,9 @@ const buildSshsftpUserApi = (baseClient) => ({
425
441
  /** Get an SSHUser. */
426
442
  sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
427
443
  });
428
- const buildAiHostingApi = (baseClient) => ({
429
- /** Get a key of a customer. */
430
- customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
431
- /** Get a key of a project. */
432
- projectGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKey, baseClient.aiHosting.projectGetKey).getApiResource,
433
- /** Get a list of already created keys. */
434
- customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
435
- /** Get ai hosting tariff and usages of a customer. */
436
- customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
437
- /** Get a list of currently active models. */
438
- getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
439
- /** Get a list of keys of a project. */
440
- projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
441
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
442
- projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
443
- });
444
444
  export class MittwaldAPIV2ClientReact {
445
+ /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
446
+ aiHosting;
445
447
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
446
448
  app;
447
449
  /** The article API allows you to read article information. */
@@ -484,9 +486,8 @@ export class MittwaldAPIV2ClientReact {
484
486
  projectFileSystem;
485
487
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
486
488
  sshsftpUser;
487
- /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
488
- aiHosting;
489
489
  constructor(baseClient) {
490
+ this.aiHosting = buildAiHostingApi(baseClient);
490
491
  this.app = buildAppApi(baseClient);
491
492
  this.article = buildArticleApi(baseClient);
492
493
  this.backup = buildBackupApi(baseClient);
@@ -508,7 +509,6 @@ export class MittwaldAPIV2ClientReact {
508
509
  this.project = buildProjectApi(baseClient);
509
510
  this.projectFileSystem = buildProjectFileSystemApi(baseClient);
510
511
  this.sshsftpUser = buildSshsftpUserApi(baseClient);
511
- this.aiHosting = buildAiHostingApi(baseClient);
512
512
  }
513
513
  static fromBaseClient(baseClient) {
514
514
  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 keys. */
10
+ customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
11
+ /** Creates a new key. */
12
+ customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
13
+ /** Get a key of a customer. */
14
+ customerGetKey: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKey),
15
+ /** Update a key for a customer. */
16
+ customerUpdateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateKey),
17
+ /** Delete a key for a customer. */
18
+ customerDeleteKey: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteKey),
19
+ /** Get ai hosting plan and usages of a customer. */
20
+ customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
21
+ /** Get a list of currently active models. */
22
+ getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
23
+ /** Get a list of keys of a project. */
24
+ projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
25
+ /** Creates a new key for a project. */
26
+ projectCreateKey: this.requestFunctionFactory(descriptors.aiHostingProjectCreateKey),
27
+ /** Get a key of a project. */
28
+ projectGetKey: this.requestFunctionFactory(descriptors.aiHostingProjectGetKey),
29
+ /** Update a key for a project. */
30
+ projectUpdateKey: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateKey),
31
+ /** Delete a key for a project. */
32
+ projectDeleteKey: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteKey),
33
+ /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
34
+ projectGetUsage: this.requestFunctionFactory(descriptors.aiHostingProjectGetUsage),
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. */
@@ -938,34 +967,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
938
967
  /** Update an SSHUser. */
939
968
  sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
940
969
  };
941
- /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
942
- aiHosting = {
943
- /** Get a key of a customer. */
944
- customerGetKey: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKey),
945
- /** Update a key for a customer. */
946
- customerUpdateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateKey),
947
- /** Delete a key for a customer. */
948
- customerDeleteKey: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteKey),
949
- /** Get a key of a project. */
950
- projectGetKey: this.requestFunctionFactory(descriptors.aiHostingProjectGetKey),
951
- /** Update a key for a project. */
952
- projectUpdateKey: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateKey),
953
- /** Delete a key for a project. */
954
- projectDeleteKey: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteKey),
955
- /** Get a list of already created keys. */
956
- customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
957
- /** Creates a new key. */
958
- customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
959
- /** Get ai hosting tariff and usages of a customer. */
960
- customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
961
- /** Get a list of currently active models. */
962
- getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
963
- /** Get a list of keys of a project. */
964
- projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
965
- /** Creates a new key for a project. */
966
- projectCreateKey: this.requestFunctionFactory(descriptors.aiHostingProjectCreateKey),
967
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
968
- projectGetUsage: this.requestFunctionFactory(descriptors.aiHostingProjectGetUsage),
969
- };
970
970
  }
971
971
  export default MittwaldAPIV2Client;
@@ -1,3 +1,81 @@
1
+ /** Get a list of already created keys. */
2
+ export const aiHostingCustomerGetKeys = {
3
+ path: "/v2/customers/{customerId}/ai-hosting-keys",
4
+ method: "GET",
5
+ operationId: "ai-hosting-customer-get-keys",
6
+ };
7
+ /** Creates a new key. */
8
+ export const aiHostingCustomerCreateKey = {
9
+ path: "/v2/customers/{customerId}/ai-hosting-keys",
10
+ method: "POST",
11
+ operationId: "ai-hosting-customer-create-key",
12
+ };
13
+ /** Get a key of a customer. */
14
+ export const aiHostingCustomerGetKey = {
15
+ path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
16
+ method: "GET",
17
+ operationId: "ai-hosting-customer-get-key",
18
+ };
19
+ /** Update a key for a customer. */
20
+ export const aiHostingCustomerUpdateKey = {
21
+ path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
22
+ method: "PUT",
23
+ operationId: "ai-hosting-customer-update-key",
24
+ };
25
+ /** Delete a key for a customer. */
26
+ export const aiHostingCustomerDeleteKey = {
27
+ path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
28
+ method: "DELETE",
29
+ operationId: "ai-hosting-customer-delete-key",
30
+ };
31
+ /** Get ai hosting plan and usages of a customer. */
32
+ export const aiHostingCustomerGetUsage = {
33
+ path: "/v2/customers/{customerId}/ai-hosting",
34
+ method: "GET",
35
+ operationId: "ai-hosting-customer-get-usage",
36
+ };
37
+ /** Get a list of currently active models. */
38
+ export const aiHostingGetModels = {
39
+ path: "/v2/ai-hosting-models",
40
+ method: "GET",
41
+ operationId: "ai-hosting-get-models",
42
+ };
43
+ /** Get a list of keys of a project. */
44
+ export const aiHostingProjectGetKeys = {
45
+ path: "/v2/projects/{projectId}/ai-hosting-keys",
46
+ method: "GET",
47
+ operationId: "ai-hosting-project-get-keys",
48
+ };
49
+ /** Creates a new key for a project. */
50
+ export const aiHostingProjectCreateKey = {
51
+ path: "/v2/projects/{projectId}/ai-hosting-keys",
52
+ method: "POST",
53
+ operationId: "ai-hosting-project-create-key",
54
+ };
55
+ /** Get a key of a project. */
56
+ export const aiHostingProjectGetKey = {
57
+ path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
58
+ method: "GET",
59
+ operationId: "ai-hosting-project-get-key",
60
+ };
61
+ /** Update a key for a project. */
62
+ export const aiHostingProjectUpdateKey = {
63
+ path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
64
+ method: "PUT",
65
+ operationId: "ai-hosting-project-update-key",
66
+ };
67
+ /** Delete a key for a project. */
68
+ export const aiHostingProjectDeleteKey = {
69
+ path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
70
+ method: "DELETE",
71
+ operationId: "ai-hosting-project-delete-key",
72
+ };
73
+ /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
74
+ export const aiHostingProjectGetUsage = {
75
+ path: "/v2/projects/{projectId}/ai-hosting",
76
+ method: "GET",
77
+ operationId: "ai-hosting-project-get-usage",
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}",
@@ -2602,81 +2680,3 @@ export const verificationVerifyCompany = {
2602
2680
  method: "POST",
2603
2681
  operationId: "verification-verify-company",
2604
2682
  };
2605
- /** Get a key of a customer. */
2606
- export const aiHostingCustomerGetKey = {
2607
- path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
2608
- method: "GET",
2609
- operationId: "ai-hosting-customer-get-key",
2610
- };
2611
- /** Update a key for a customer. */
2612
- export const aiHostingCustomerUpdateKey = {
2613
- path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
2614
- method: "PUT",
2615
- operationId: "ai-hosting-customer-update-key",
2616
- };
2617
- /** Delete a key for a customer. */
2618
- export const aiHostingCustomerDeleteKey = {
2619
- path: "/v2/customers/{customerId}/ai-hosting-keys/{keyId}",
2620
- method: "DELETE",
2621
- operationId: "ai-hosting-customer-delete-key",
2622
- };
2623
- /** Get a key of a project. */
2624
- export const aiHostingProjectGetKey = {
2625
- path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
2626
- method: "GET",
2627
- operationId: "ai-hosting-project-get-key",
2628
- };
2629
- /** Update a key for a project. */
2630
- export const aiHostingProjectUpdateKey = {
2631
- path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
2632
- method: "PUT",
2633
- operationId: "ai-hosting-project-update-key",
2634
- };
2635
- /** Delete a key for a project. */
2636
- export const aiHostingProjectDeleteKey = {
2637
- path: "/v2/projects/{projectId}/ai-hosting-keys/{keyId}",
2638
- method: "DELETE",
2639
- operationId: "ai-hosting-project-delete-key",
2640
- };
2641
- /** Get a list of already created keys. */
2642
- export const aiHostingCustomerGetKeys = {
2643
- path: "/v2/customers/{customerId}/ai-hosting-keys",
2644
- method: "GET",
2645
- operationId: "ai-hosting-customer-get-keys",
2646
- };
2647
- /** Creates a new key. */
2648
- export const aiHostingCustomerCreateKey = {
2649
- path: "/v2/customers/{customerId}/ai-hosting-keys",
2650
- method: "POST",
2651
- operationId: "ai-hosting-customer-create-key",
2652
- };
2653
- /** Get ai hosting tariff and usages of a customer. */
2654
- export const aiHostingCustomerGetUsage = {
2655
- path: "/v2/customers/{customerId}/ai-hosting",
2656
- method: "GET",
2657
- operationId: "ai-hosting-customer-get-usage",
2658
- };
2659
- /** Get a list of currently active models. */
2660
- export const aiHostingGetModels = {
2661
- path: "/v2/ai-hosting-models",
2662
- method: "GET",
2663
- operationId: "ai-hosting-get-models",
2664
- };
2665
- /** Get a list of keys of a project. */
2666
- export const aiHostingProjectGetKeys = {
2667
- path: "/v2/projects/{projectId}/ai-hosting-keys",
2668
- method: "GET",
2669
- operationId: "ai-hosting-project-get-keys",
2670
- };
2671
- /** Creates a new key for a project. */
2672
- export const aiHostingProjectCreateKey = {
2673
- path: "/v2/projects/{projectId}/ai-hosting-keys",
2674
- method: "POST",
2675
- operationId: "ai-hosting-project-create-key",
2676
- };
2677
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
2678
- export const aiHostingProjectGetUsage = {
2679
- path: "/v2/projects/{projectId}/ai-hosting",
2680
- method: "GET",
2681
- operationId: "ai-hosting-project-get-usage",
2682
- };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.280.0';
1
+ export const MittwaldAPIClientVersion = '4.282.0';
@@ -1,5 +1,100 @@
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 keys. */
5
+ customerGetKeys: (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.AihostingKey[]>;
11
+ /** Get a key of a customer. */
12
+ customerGetKey: (conf: {
13
+ customerId: string;
14
+ keyId: 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
+ key: string;
23
+ keyId: string;
24
+ models: string[];
25
+ name: string;
26
+ projectId?: string | undefined;
27
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
28
+ tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
29
+ }>;
30
+ /** Get ai hosting plan and usages of a customer. */
31
+ customerGetUsage: (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
+ customerId: string;
42
+ deletedAt?: string | undefined;
43
+ keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
44
+ nextTokenReset: string;
45
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
46
+ tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsageBig;
47
+ topUsages?: {
48
+ keyId?: string;
49
+ name: string;
50
+ projectId?: string;
51
+ tokenUsed: number;
52
+ }[] | undefined;
53
+ }>;
54
+ /** Get a list of currently active models. */
55
+ getModels: (conf?: {
56
+ headers?: {
57
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
58
+ } | undefined;
59
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
60
+ /** Get a list of keys of a project. */
61
+ projectGetKeys: (conf: {
62
+ projectId: string;
63
+ headers?: {
64
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
65
+ } | undefined;
66
+ }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
67
+ /** Get a key of a project. */
68
+ projectGetKey: (conf: {
69
+ projectId: string;
70
+ keyId: string;
71
+ headers?: {
72
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
73
+ } | undefined;
74
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
75
+ containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
76
+ customerId?: string | undefined;
77
+ isBlocked: boolean;
78
+ key: string;
79
+ keyId: string;
80
+ models: string[];
81
+ name: string;
82
+ projectId?: string | undefined;
83
+ rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
84
+ tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
85
+ }>;
86
+ /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
87
+ projectGetUsage: (conf: {
88
+ projectId: string;
89
+ headers?: {
90
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
91
+ } | undefined;
92
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
93
+ keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
94
+ nextTokenReset?: string | undefined;
95
+ projectId: string;
96
+ }>;
97
+ };
3
98
  declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
4
99
  /** Get an App. */
5
100
  getApp: (conf: {
@@ -1334,7 +1429,12 @@ declare const buildConversationApi: (baseClient: MittwaldAPIV2Client) => {
1334
1429
  } | undefined;
1335
1430
  queryParameters?: {
1336
1431
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1337
- sort?: ("createdAt" | "lastMessage.createdAt" | "title" | "priority" | "shortId" | "conversationId")[] | undefined;
1432
+ fullTextSearch?: string | undefined;
1433
+ status?: ("open" | "closed")[] | undefined;
1434
+ limit?: number | undefined;
1435
+ skip?: number | undefined;
1436
+ page?: number | undefined;
1437
+ sort?: ("createdAt" | "lastMessage.createdAt" | "title" | "shortId" | "conversationId")[] | undefined;
1338
1438
  order?: ("asc" | "desc")[] | undefined;
1339
1439
  } | undefined;
1340
1440
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ConversationConversation[]>;
@@ -3318,102 +3418,9 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
3318
3418
  userName: string;
3319
3419
  }>;
3320
3420
  };
3321
- declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
3322
- /** Get a key of a customer. */
3323
- customerGetKey: (conf: {
3324
- customerId: string;
3325
- keyId: string;
3326
- headers?: {
3327
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3328
- } | undefined;
3329
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3330
- containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
3331
- customerId?: string | undefined;
3332
- isBlocked: boolean;
3333
- key: string;
3334
- keyId: string;
3335
- models: string[];
3336
- name: string;
3337
- projectId?: string | undefined;
3338
- rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3339
- tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3340
- }>;
3341
- /** Get a key of a project. */
3342
- projectGetKey: (conf: {
3343
- projectId: string;
3344
- keyId: string;
3345
- headers?: {
3346
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3347
- } | undefined;
3348
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3349
- containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
3350
- customerId?: string | undefined;
3351
- isBlocked: boolean;
3352
- key: string;
3353
- keyId: string;
3354
- models: string[];
3355
- name: string;
3356
- projectId?: string | undefined;
3357
- rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3358
- tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
3359
- }>;
3360
- /** Get a list of already created keys. */
3361
- customerGetKeys: (conf: {
3362
- customerId: string;
3363
- headers?: {
3364
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3365
- } | undefined;
3366
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
3367
- /** Get ai hosting tariff and usages of a customer. */
3368
- customerGetUsage: (conf: {
3369
- customerId: string;
3370
- headers?: {
3371
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3372
- } | undefined;
3373
- queryParameters?: {
3374
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3375
- topUsageCount?: number | undefined;
3376
- } | undefined;
3377
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3378
- customerId: string;
3379
- deletedAt?: string | undefined;
3380
- keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
3381
- nextTokenReset: string;
3382
- rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
3383
- tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsageBig;
3384
- topUsages?: {
3385
- keyId?: string;
3386
- name: string;
3387
- projectId?: string;
3388
- tokenUsed: number;
3389
- }[] | undefined;
3390
- }>;
3391
- /** Get a list of currently active models. */
3392
- getModels: (conf?: {
3393
- headers?: {
3394
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3395
- } | undefined;
3396
- } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
3397
- /** Get a list of keys of a project. */
3398
- projectGetKeys: (conf: {
3399
- projectId: string;
3400
- headers?: {
3401
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3402
- } | undefined;
3403
- }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
3404
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
3405
- projectGetUsage: (conf: {
3406
- projectId: string;
3407
- headers?: {
3408
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
3409
- } | undefined;
3410
- }) => import("@mittwald/react-use-promise").AsyncResource<{
3411
- keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTariffUsage;
3412
- nextTokenReset?: string | undefined;
3413
- projectId: string;
3414
- }>;
3415
- };
3416
3421
  export declare class MittwaldAPIV2ClientReact {
3422
+ /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
3423
+ readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
3417
3424
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
3418
3425
  readonly app: ReturnType<typeof buildAppApi>;
3419
3426
  /** The article API allows you to read article information. */
@@ -3456,8 +3463,6 @@ export declare class MittwaldAPIV2ClientReact {
3456
3463
  readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
3457
3464
  /** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
3458
3465
  readonly sshsftpUser: ReturnType<typeof buildSshsftpUserApi>;
3459
- /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
3460
- readonly aiHosting: ReturnType<typeof buildAiHostingApi>;
3461
3466
  private constructor();
3462
3467
  static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
3463
3468
  }