@mittwald/api-client 0.0.0-development-b5b8869-20251212 → 0.0.0-development-537dd9e-20260105

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 tariff 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 tariff 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,
@@ -48,10 +64,10 @@ const buildBackupApi = (baseClient) => ({
48
64
  getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
49
65
  /** Get a ProjectBackup. */
50
66
  getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
51
- /** List paths for a ProjectBackup. */
52
- getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
53
67
  /** List database dump's for a ProjectBackup. */
54
68
  getProjectBackupDatabaseDumps: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDatabaseDumps, baseClient.backup.getProjectBackupDatabaseDumps).getApiResource,
69
+ /** List paths for a ProjectBackup. */
70
+ getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
55
71
  });
56
72
  const buildContainerApi = (baseClient) => ({
57
73
  /** List Registries belonging to a Project. */
@@ -80,6 +96,8 @@ const buildContainerApi = (baseClient) => ({
80
96
  const buildContractApi = (baseClient) => ({
81
97
  /** Return the BaseItem of the Contract with the given ID. */
82
98
  getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
99
+ /** Return the AI Hosting Contract for the given Customer. */
100
+ getDetailOfContractByAiHosting: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByAiHosting, baseClient.contract.getDetailOfContractByAiHosting).getApiResource,
83
101
  /** Return the Contract for the given Certificate. */
84
102
  getDetailOfContractByCertificate: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByCertificate, baseClient.contract.getDetailOfContractByCertificate).getApiResource,
85
103
  /** Return the Contract for the given Domain. */
@@ -114,8 +132,6 @@ const buildContractApi = (baseClient) => ({
114
132
  orderListCustomerOrders: new ApiCallAsyncResourceFactory(descriptors.orderListCustomerOrders, baseClient.contract.orderListCustomerOrders).getApiResource,
115
133
  /** Get list of Orders of a Project. */
116
134
  orderListProjectOrders: new ApiCallAsyncResourceFactory(descriptors.orderListProjectOrders, baseClient.contract.orderListProjectOrders).getApiResource,
117
- /** Return the AI Hosting Contract for the given Customer. */
118
- getDetailOfContractByAiHosting: new ApiCallAsyncResourceFactory(descriptors.contractGetDetailOfContractByAiHosting, baseClient.contract.getDetailOfContractByAiHosting).getApiResource,
119
135
  });
120
136
  const buildMarketplaceApi = (baseClient) => ({
121
137
  /** Get a Contributor. */
@@ -427,23 +443,9 @@ const buildSshsftpUserApi = (baseClient) => ({
427
443
  /** Get an SSHUser. */
428
444
  sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
429
445
  });
430
- const buildAiHostingApi = (baseClient) => ({
431
- /** Get a key of a customer. */
432
- customerGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKey, baseClient.aiHosting.customerGetKey).getApiResource,
433
- /** Get a key of a project. */
434
- projectGetKey: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKey, baseClient.aiHosting.projectGetKey).getApiResource,
435
- /** Get a list of already created keys. */
436
- customerGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetKeys, baseClient.aiHosting.customerGetKeys).getApiResource,
437
- /** Get ai hosting tariff and usages of a customer. */
438
- customerGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetUsage, baseClient.aiHosting.customerGetUsage).getApiResource,
439
- /** Get a list of currently active models. */
440
- getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
441
- /** Get a list of keys of a project. */
442
- projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
443
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
444
- projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
445
- });
446
446
  export class MittwaldAPIV2ClientReact {
447
+ /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
448
+ aiHosting;
447
449
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
448
450
  app;
449
451
  /** 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);
@@ -507,7 +508,6 @@ export class MittwaldAPIV2ClientReact {
507
508
  this.project = buildProjectApi(baseClient);
508
509
  this.projectFileSystem = buildProjectFileSystemApi(baseClient);
509
510
  this.sshsftpUser = buildSshsftpUserApi(baseClient);
510
- this.aiHosting = buildAiHostingApi(baseClient);
511
511
  }
512
512
  static fromBaseClient(baseClient) {
513
513
  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 tariff 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 tariff 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. */
@@ -86,14 +115,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
86
115
  getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
87
116
  /** Delete a ProjectBackup. */
88
117
  deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
118
+ /** List database dump's for a ProjectBackup. */
119
+ getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
89
120
  /** List paths for a ProjectBackup. */
90
121
  getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
122
+ /** Restore a ProjectBackup. */
123
+ requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
91
124
  /** Change the description of a ProjectBackup. */
92
125
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
93
- /** List database dump's for a ProjectBackup. */
94
- getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
95
- /** Restore a ProjectBackup (path or database). */
96
- requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
97
126
  };
98
127
  /** The container API allows you to manage your stacks, containers, volumes and registries. */
99
128
  container = {
@@ -160,6 +189,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
160
189
  cancelContractTermination: this.requestFunctionFactory(descriptors.contractCancelContractTermination),
161
190
  /** Return the BaseItem of the Contract with the given ID. */
162
191
  getBaseItemOfContract: this.requestFunctionFactory(descriptors.contractGetBaseItemOfContract),
192
+ /** Return the AI Hosting Contract for the given Customer. */
193
+ getDetailOfContractByAiHosting: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByAiHosting),
163
194
  /** Return the Contract for the given Certificate. */
164
195
  getDetailOfContractByCertificate: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByCertificate),
165
196
  /** Return the Contract for the given Domain. */
@@ -204,8 +235,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
204
235
  orderPreviewOrder: this.requestFunctionFactory(descriptors.orderPreviewOrder),
205
236
  /** Preview TariffChange. */
206
237
  orderPreviewTariffChange: this.requestFunctionFactory(descriptors.orderPreviewTariffChange),
207
- /** Return the AI Hosting Contract for the given Customer. */
208
- getDetailOfContractByAiHosting: this.requestFunctionFactory(descriptors.contractGetDetailOfContractByAiHosting),
209
238
  };
210
239
  /** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
211
240
  marketplace = {
@@ -948,34 +977,5 @@ export class MittwaldAPIV2Client extends ApiClientBase {
948
977
  /** Check if a company exists. */
949
978
  verificationVerifyCompany: this.requestFunctionFactory(descriptors.verificationVerifyCompany),
950
979
  };
951
- /** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
952
- aiHosting = {
953
- /** Get a key of a customer. */
954
- customerGetKey: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKey),
955
- /** Update a key for a customer. */
956
- customerUpdateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdateKey),
957
- /** Delete a key for a customer. */
958
- customerDeleteKey: this.requestFunctionFactory(descriptors.aiHostingCustomerDeleteKey),
959
- /** Get a key of a project. */
960
- projectGetKey: this.requestFunctionFactory(descriptors.aiHostingProjectGetKey),
961
- /** Update a key for a project. */
962
- projectUpdateKey: this.requestFunctionFactory(descriptors.aiHostingProjectUpdateKey),
963
- /** Delete a key for a project. */
964
- projectDeleteKey: this.requestFunctionFactory(descriptors.aiHostingProjectDeleteKey),
965
- /** Get a list of already created keys. */
966
- customerGetKeys: this.requestFunctionFactory(descriptors.aiHostingCustomerGetKeys),
967
- /** Creates a new key. */
968
- customerCreateKey: this.requestFunctionFactory(descriptors.aiHostingCustomerCreateKey),
969
- /** Get ai hosting tariff and usages of a customer. */
970
- customerGetUsage: this.requestFunctionFactory(descriptors.aiHostingCustomerGetUsage),
971
- /** Get a list of currently active models. */
972
- getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
973
- /** Get a list of keys of a project. */
974
- projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
975
- /** Creates a new key for a project. */
976
- projectCreateKey: this.requestFunctionFactory(descriptors.aiHostingProjectCreateKey),
977
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
978
- projectGetUsage: this.requestFunctionFactory(descriptors.aiHostingProjectGetUsage),
979
- };
980
980
  }
981
981
  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 tariff 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 tariff 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}",
@@ -220,12 +298,24 @@ export const backupDeleteProjectBackup = {
220
298
  method: "DELETE",
221
299
  operationId: "backup-delete-project-backup",
222
300
  };
301
+ /** List database dump's for a ProjectBackup. */
302
+ export const backupGetProjectBackupDatabaseDumps = {
303
+ path: "/v2/project-backups/{projectBackupId}/database-dumps",
304
+ method: "GET",
305
+ operationId: "backup-get-project-backup-database-dumps",
306
+ };
223
307
  /** List paths for a ProjectBackup. */
224
308
  export const backupGetProjectBackupDirectories = {
225
309
  path: "/v2/project-backups/{projectBackupId}/path",
226
310
  method: "GET",
227
311
  operationId: "backup-get-project-backup-directories",
228
312
  };
313
+ /** Restore a ProjectBackup. */
314
+ export const backupRequestProjectBackupRestore = {
315
+ path: "/v2/project-backups/{projectBackupId}/restore",
316
+ method: "POST",
317
+ operationId: "backup-request-project-backup-restore",
318
+ };
229
319
  /** Change the description of a ProjectBackup. */
230
320
  export const backupUpdateProjectBackupDescription = {
231
321
  path: "/v2/project-backups/{projectBackupId}/description",
@@ -412,6 +502,12 @@ export const contractGetBaseItemOfContract = {
412
502
  method: "GET",
413
503
  operationId: "contract-get-base-item-of-contract",
414
504
  };
505
+ /** Return the AI Hosting Contract for the given Customer. */
506
+ export const contractGetDetailOfContractByAiHosting = {
507
+ path: "/v2/customers/{customerId}/ai-hosting/contract",
508
+ method: "GET",
509
+ operationId: "contract-get-detail-of-contract-by-ai-hosting",
510
+ };
415
511
  /** Return the Contract for the given Certificate. */
416
512
  export const contractGetDetailOfContractByCertificate = {
417
513
  path: "/v2/certificates/{certificateId}/contract",
@@ -2638,99 +2734,3 @@ export const verificationVerifyCompany = {
2638
2734
  method: "POST",
2639
2735
  operationId: "verification-verify-company",
2640
2736
  };
2641
- /** Get a key of a customer. */
2642
- export const aiHostingCustomerGetKey = {
2643
- path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2644
- method: "GET",
2645
- operationId: "ai-hosting-customer-get-key",
2646
- };
2647
- /** Update a key for a customer. */
2648
- export const aiHostingCustomerUpdateKey = {
2649
- path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2650
- method: "PUT",
2651
- operationId: "ai-hosting-customer-update-key",
2652
- };
2653
- /** Delete a key for a customer. */
2654
- export const aiHostingCustomerDeleteKey = {
2655
- path: "/v2/customers/{customerId}/ai-hosting/keys/{keyId}",
2656
- method: "DELETE",
2657
- operationId: "ai-hosting-customer-delete-key",
2658
- };
2659
- /** Get a key of a project. */
2660
- export const aiHostingProjectGetKey = {
2661
- path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2662
- method: "GET",
2663
- operationId: "ai-hosting-project-get-key",
2664
- };
2665
- /** Update a key for a project. */
2666
- export const aiHostingProjectUpdateKey = {
2667
- path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2668
- method: "PUT",
2669
- operationId: "ai-hosting-project-update-key",
2670
- };
2671
- /** Delete a key for a project. */
2672
- export const aiHostingProjectDeleteKey = {
2673
- path: "/v2/projects/{projectId}/ai-hosting/keys/{keyId}",
2674
- method: "DELETE",
2675
- operationId: "ai-hosting-project-delete-key",
2676
- };
2677
- /** Get a list of already created keys. */
2678
- export const aiHostingCustomerGetKeys = {
2679
- path: "/v2/customers/{customerId}/ai-hosting/keys",
2680
- method: "GET",
2681
- operationId: "ai-hosting-customer-get-keys",
2682
- };
2683
- /** Creates a new key. */
2684
- export const aiHostingCustomerCreateKey = {
2685
- path: "/v2/customers/{customerId}/ai-hosting/keys",
2686
- method: "POST",
2687
- operationId: "ai-hosting-customer-create-key",
2688
- };
2689
- /** Get ai hosting tariff and usages of a customer. */
2690
- export const aiHostingCustomerGetUsage = {
2691
- path: "/v2/customers/{customerId}/ai-hosting",
2692
- method: "GET",
2693
- operationId: "ai-hosting-customer-get-usage",
2694
- };
2695
- /** Get a list of currently active models. */
2696
- export const aiHostingGetModels = {
2697
- path: "/v2/ai-hosting-models",
2698
- method: "GET",
2699
- operationId: "ai-hosting-get-models",
2700
- };
2701
- /** Get a list of keys of a project. */
2702
- export const aiHostingProjectGetKeys = {
2703
- path: "/v2/projects/{projectId}/ai-hosting/keys",
2704
- method: "GET",
2705
- operationId: "ai-hosting-project-get-keys",
2706
- };
2707
- /** Creates a new key for a project. */
2708
- export const aiHostingProjectCreateKey = {
2709
- path: "/v2/projects/{projectId}/ai-hosting/keys",
2710
- method: "POST",
2711
- operationId: "ai-hosting-project-create-key",
2712
- };
2713
- /** Get ai hosting tariff and usages of a project. Same as the customer route, but less details. */
2714
- export const aiHostingProjectGetUsage = {
2715
- path: "/v2/projects/{projectId}/ai-hosting",
2716
- method: "GET",
2717
- operationId: "ai-hosting-project-get-usage",
2718
- };
2719
- /** List database dump's for a ProjectBackup. */
2720
- export const backupGetProjectBackupDatabaseDumps = {
2721
- path: "/v2/project-backups/{projectBackupId}/database-dumps",
2722
- method: "GET",
2723
- operationId: "backup-get-project-backup-database-dumps",
2724
- };
2725
- /** Restore a ProjectBackup (path or database). */
2726
- export const backupRequestProjectBackupRestore = {
2727
- path: "/v2/project-backups/{projectBackupId}/restore",
2728
- method: "POST",
2729
- operationId: "backup-request-project-backup-restore",
2730
- };
2731
- /** Return the AI Hosting Contract for the given Customer. */
2732
- export const contractGetDetailOfContractByAiHosting = {
2733
- path: "/v2/customers/{customerId}/ai-hosting/contract",
2734
- method: "GET",
2735
- operationId: "contract-get-detail-of-contract-by-ai-hosting",
2736
- };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.273.0';
1
+ export const MittwaldAPIClientVersion = '4.278.0';