@mittwald/api-client 4.279.0 → 4.281.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.
- package/dist/esm/generated/v2/client-react.js +19 -6
- package/dist/esm/generated/v2/client.js +29 -10
- package/dist/esm/generated/v2/descriptors.js +78 -30
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +98 -36
- package/dist/types/generated/v2/client.d.ts +911 -400
- package/dist/types/generated/v2/descriptors.d.ts +27 -11
- package/dist/types/generated/v2/types.d.ts +991 -414
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -320,8 +320,6 @@ const buildMailApi = (baseClient) => ({
|
|
|
320
320
|
listProjectMailSettings: new ApiCallAsyncResourceFactory(descriptors.mailListProjectMailSettings, baseClient.mail.listProjectMailSettings).getApiResource,
|
|
321
321
|
});
|
|
322
322
|
const buildMiscApi = (baseClient) => ({
|
|
323
|
-
/** Get a list of currently active llm models. */
|
|
324
|
-
getLlmModelsExperimental: new ApiCallAsyncResourceFactory(descriptors.miscGetLlmModelsExperimental, baseClient.misc.getLlmModelsExperimental).getApiResource,
|
|
325
323
|
/** List valid time zones. */
|
|
326
324
|
ellaneousListTimeZones: new ApiCallAsyncResourceFactory(descriptors.miscellaneousListTimeZones, baseClient.misc.ellaneousListTimeZones).getApiResource,
|
|
327
325
|
});
|
|
@@ -376,8 +374,6 @@ const buildUserApi = (baseClient) => ({
|
|
|
376
374
|
supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
|
|
377
375
|
});
|
|
378
376
|
const buildProjectApi = (baseClient) => ({
|
|
379
|
-
/** Get a list of already created llm licences. */
|
|
380
|
-
getLlmLicencesExperimental: new ApiCallAsyncResourceFactory(descriptors.projectGetLlmLicencesExperimental, baseClient.project.getLlmLicencesExperimental).getApiResource,
|
|
381
377
|
/** List Invites belonging to a Project. */
|
|
382
378
|
listInvitesForProject: new ApiCallAsyncResourceFactory(descriptors.projectListInvitesForProject, baseClient.project.listInvitesForProject).getApiResource,
|
|
383
379
|
/** Get a ProjectInvite. */
|
|
@@ -386,8 +382,6 @@ const buildProjectApi = (baseClient) => ({
|
|
|
386
382
|
getProjectMembership: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectMembership, baseClient.project.getProjectMembership).getApiResource,
|
|
387
383
|
/** Get a Project. */
|
|
388
384
|
getProject: new ApiCallAsyncResourceFactory(descriptors.projectGetProject, baseClient.project.getProject).getApiResource,
|
|
389
|
-
/** Get a licence of a project. */
|
|
390
|
-
getLlmLicenceExperimental: new ApiCallAsyncResourceFactory(descriptors.projectGetLlmLicenceExperimental, baseClient.project.getLlmLicenceExperimental).getApiResource,
|
|
391
385
|
/** Get a ProjectInvite by token. */
|
|
392
386
|
getProjectTokenInvite: new ApiCallAsyncResourceFactory(descriptors.projectGetProjectTokenInvite, baseClient.project.getProjectTokenInvite).getApiResource,
|
|
393
387
|
/** Get the executing user's membership in a Project. */
|
|
@@ -431,6 +425,22 @@ const buildSshsftpUserApi = (baseClient) => ({
|
|
|
431
425
|
/** Get an SSHUser. */
|
|
432
426
|
sshUserGetSshUser: new ApiCallAsyncResourceFactory(descriptors.sshUserGetSshUser, baseClient.sshsftpUser.sshUserGetSshUser).getApiResource,
|
|
433
427
|
});
|
|
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
|
+
});
|
|
434
444
|
export class MittwaldAPIV2ClientReact {
|
|
435
445
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
436
446
|
app;
|
|
@@ -474,6 +484,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
474
484
|
projectFileSystem;
|
|
475
485
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
476
486
|
sshsftpUser;
|
|
487
|
+
/** The AI hosting provides access to multiple large language and embedding models – GDPR compliant and hosted in Germany. */
|
|
488
|
+
aiHosting;
|
|
477
489
|
constructor(baseClient) {
|
|
478
490
|
this.app = buildAppApi(baseClient);
|
|
479
491
|
this.article = buildArticleApi(baseClient);
|
|
@@ -496,6 +508,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
496
508
|
this.project = buildProjectApi(baseClient);
|
|
497
509
|
this.projectFileSystem = buildProjectFileSystemApi(baseClient);
|
|
498
510
|
this.sshsftpUser = buildSshsftpUserApi(baseClient);
|
|
511
|
+
this.aiHosting = buildAiHostingApi(baseClient);
|
|
499
512
|
}
|
|
500
513
|
static fromBaseClient(baseClient) {
|
|
501
514
|
return new MittwaldAPIV2ClientReact(baseClient);
|
|
@@ -808,8 +808,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
808
808
|
};
|
|
809
809
|
/** API endpoints that are not related to any specific API domain */
|
|
810
810
|
misc = {
|
|
811
|
-
/** Get a list of currently active llm models. */
|
|
812
|
-
getLlmModelsExperimental: this.requestFunctionFactory(descriptors.miscGetLlmModelsExperimental),
|
|
813
811
|
/** List valid time zones. */
|
|
814
812
|
ellaneousListTimeZones: this.requestFunctionFactory(descriptors.miscellaneousListTimeZones),
|
|
815
813
|
/** Obtain a service token. */
|
|
@@ -836,10 +834,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
836
834
|
project = {
|
|
837
835
|
/** Accept a ProjectInvite. */
|
|
838
836
|
acceptProjectInvite: this.requestFunctionFactory(descriptors.projectAcceptProjectInvite),
|
|
839
|
-
/** Get a list of already created llm licences. */
|
|
840
|
-
getLlmLicencesExperimental: this.requestFunctionFactory(descriptors.projectGetLlmLicencesExperimental),
|
|
841
|
-
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
842
|
-
createLlmBetaLicenceExperimental: this.requestFunctionFactory(descriptors.projectCreateLlmBetaLicenceExperimental),
|
|
843
837
|
/** List Invites belonging to a Project. */
|
|
844
838
|
listInvitesForProject: this.requestFunctionFactory(descriptors.projectListInvitesForProject),
|
|
845
839
|
/** Create a ProjectInvite. */
|
|
@@ -870,10 +864,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
870
864
|
requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
|
|
871
865
|
/** Delete a Server's avatar. */
|
|
872
866
|
deleteServerAvatar: this.requestFunctionFactory(descriptors.projectDeleteServerAvatar),
|
|
873
|
-
/** Get a licence of a project. */
|
|
874
|
-
getLlmLicenceExperimental: this.requestFunctionFactory(descriptors.projectGetLlmLicenceExperimental),
|
|
875
|
-
/** Update a llm Licence for a project. */
|
|
876
|
-
updateLlmLicenceExperimental: this.requestFunctionFactory(descriptors.projectUpdateLlmLicenceExperimental),
|
|
877
867
|
/** Get a ProjectInvite by token. */
|
|
878
868
|
getProjectTokenInvite: this.requestFunctionFactory(descriptors.projectGetProjectTokenInvite),
|
|
879
869
|
/** Get the executing user's membership in a Project. */
|
|
@@ -948,5 +938,34 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
948
938
|
/** Update an SSHUser. */
|
|
949
939
|
sshUserUpdateSshUser: this.requestFunctionFactory(descriptors.sshUserUpdateSshUser),
|
|
950
940
|
};
|
|
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
|
+
};
|
|
951
970
|
}
|
|
952
971
|
export default MittwaldAPIV2Client;
|
|
@@ -1804,12 +1804,6 @@ export const marketplaceCustomerUpdatePaymentMethod = {
|
|
|
1804
1804
|
method: "PUT",
|
|
1805
1805
|
operationId: "marketplace-customer-update-payment-method",
|
|
1806
1806
|
};
|
|
1807
|
-
/** Get a list of currently active llm models. */
|
|
1808
|
-
export const miscGetLlmModelsExperimental = {
|
|
1809
|
-
path: "/v2/llm-models",
|
|
1810
|
-
method: "GET",
|
|
1811
|
-
operationId: "misc-get-llm-models-experimental",
|
|
1812
|
-
};
|
|
1813
1807
|
/** List valid time zones. */
|
|
1814
1808
|
export const miscellaneousListTimeZones = {
|
|
1815
1809
|
path: "/v2/time-zones",
|
|
@@ -1936,18 +1930,6 @@ export const projectAcceptProjectInvite = {
|
|
|
1936
1930
|
method: "POST",
|
|
1937
1931
|
operationId: "project-accept-project-invite",
|
|
1938
1932
|
};
|
|
1939
|
-
/** Get a list of already created llm licences. */
|
|
1940
|
-
export const projectGetLlmLicencesExperimental = {
|
|
1941
|
-
path: "/v2/projects/{projectId}/llm-licences",
|
|
1942
|
-
method: "GET",
|
|
1943
|
-
operationId: "project-get-llm-licences-experimental",
|
|
1944
|
-
};
|
|
1945
|
-
/** Creates a new llm beta Licence for a project. Will be purged on end of beta. */
|
|
1946
|
-
export const projectCreateLlmBetaLicenceExperimental = {
|
|
1947
|
-
path: "/v2/projects/{projectId}/llm-licences",
|
|
1948
|
-
method: "POST",
|
|
1949
|
-
operationId: "project-create-llm-beta-licence-experimental",
|
|
1950
|
-
};
|
|
1951
1933
|
/** List Invites belonging to a Project. */
|
|
1952
1934
|
export const projectListInvitesForProject = {
|
|
1953
1935
|
path: "/v2/projects/{projectId}/invites",
|
|
@@ -2068,18 +2050,6 @@ export const projectFileSystemListFiles = {
|
|
|
2068
2050
|
method: "GET",
|
|
2069
2051
|
operationId: "project-file-system-list-files",
|
|
2070
2052
|
};
|
|
2071
|
-
/** Get a licence of a project. */
|
|
2072
|
-
export const projectGetLlmLicenceExperimental = {
|
|
2073
|
-
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2074
|
-
method: "GET",
|
|
2075
|
-
operationId: "project-get-llm-licence-experimental",
|
|
2076
|
-
};
|
|
2077
|
-
/** Update a llm Licence for a project. */
|
|
2078
|
-
export const projectUpdateLlmLicenceExperimental = {
|
|
2079
|
-
path: "/v2/projects/{projectId}/llm-licences/{licenceId}",
|
|
2080
|
-
method: "PUT",
|
|
2081
|
-
operationId: "project-update-llm-licence-experimental",
|
|
2082
|
-
};
|
|
2083
2053
|
/** Get a ProjectInvite by token. */
|
|
2084
2054
|
export const projectGetProjectTokenInvite = {
|
|
2085
2055
|
path: "/v2/project-token-invite",
|
|
@@ -2632,3 +2602,81 @@ export const verificationVerifyCompany = {
|
|
|
2632
2602
|
method: "POST",
|
|
2633
2603
|
operationId: "verification-verify-company",
|
|
2634
2604
|
};
|
|
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
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.280.0';
|
|
@@ -259,7 +259,7 @@ declare const buildArticleApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
259
259
|
} | undefined;
|
|
260
260
|
modifierArticles?: import("./types.js").MittwaldAPIV2.Components.Schemas.ArticleReadableModifierArticleOptions[] | undefined;
|
|
261
261
|
name: string;
|
|
262
|
-
orderable: "
|
|
262
|
+
orderable: "full" | "forbidden" | "internal" | "beta_testing" | "deprecated";
|
|
263
263
|
possibleArticleChanges?: import("./types.js").MittwaldAPIV2.Components.Schemas.ArticleReadableChangeArticleOptions[] | undefined;
|
|
264
264
|
price?: number | undefined;
|
|
265
265
|
tags?: import("./types.js").MittwaldAPIV2.Components.Schemas.ArticleArticleTag[] | undefined;
|
|
@@ -2531,12 +2531,6 @@ declare const buildMailApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2531
2531
|
}>;
|
|
2532
2532
|
};
|
|
2533
2533
|
declare const buildMiscApi: (baseClient: MittwaldAPIV2Client) => {
|
|
2534
|
-
/** Get a list of currently active llm models. */
|
|
2535
|
-
getLlmModelsExperimental: (conf?: {
|
|
2536
|
-
headers?: {
|
|
2537
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2538
|
-
} | undefined;
|
|
2539
|
-
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
|
|
2540
2534
|
/** List valid time zones. */
|
|
2541
2535
|
ellaneousListTimeZones: (conf?: {
|
|
2542
2536
|
headers?: {
|
|
@@ -2867,13 +2861,6 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2867
2861
|
}>;
|
|
2868
2862
|
};
|
|
2869
2863
|
declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
|
|
2870
|
-
/** Get a list of already created llm licences. */
|
|
2871
|
-
getLlmLicencesExperimental: (conf: {
|
|
2872
|
-
projectId: string;
|
|
2873
|
-
headers?: {
|
|
2874
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2875
|
-
} | undefined;
|
|
2876
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingLicence[]>;
|
|
2877
2864
|
/** List Invites belonging to a Project. */
|
|
2878
2865
|
listInvitesForProject: (conf: {
|
|
2879
2866
|
projectId: string;
|
|
@@ -2967,28 +2954,6 @@ declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
2967
2954
|
webStorageUsageInBytes: number;
|
|
2968
2955
|
webStorageUsageInBytesSetAt: string;
|
|
2969
2956
|
}>;
|
|
2970
|
-
/** Get a licence of a project. */
|
|
2971
|
-
getLlmLicenceExperimental: (conf: {
|
|
2972
|
-
projectId: string;
|
|
2973
|
-
licenceId: string;
|
|
2974
|
-
headers?: {
|
|
2975
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
2976
|
-
} | undefined;
|
|
2977
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
2978
|
-
containerMeta?: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingContainerMeta | undefined;
|
|
2979
|
-
customerId?: string | undefined;
|
|
2980
|
-
isBlocked: boolean;
|
|
2981
|
-
licenceId: string;
|
|
2982
|
-
licenceKey: string;
|
|
2983
|
-
limit: {
|
|
2984
|
-
allowedRequestsPerUnit: number;
|
|
2985
|
-
unit: "minute" | "hour";
|
|
2986
|
-
};
|
|
2987
|
-
models: string[];
|
|
2988
|
-
name: string;
|
|
2989
|
-
projectId?: string | undefined;
|
|
2990
|
-
rateLimit: number;
|
|
2991
|
-
}>;
|
|
2992
2957
|
/** Get a ProjectInvite by token. */
|
|
2993
2958
|
getProjectTokenInvite: (conf: {
|
|
2994
2959
|
headers: {
|
|
@@ -3353,6 +3318,101 @@ declare const buildSshsftpUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3353
3318
|
userName: string;
|
|
3354
3319
|
}>;
|
|
3355
3320
|
};
|
|
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
|
+
};
|
|
3356
3416
|
export declare class MittwaldAPIV2ClientReact {
|
|
3357
3417
|
/** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
|
|
3358
3418
|
readonly app: ReturnType<typeof buildAppApi>;
|
|
@@ -3396,6 +3456,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
3396
3456
|
readonly projectFileSystem: ReturnType<typeof buildProjectFileSystemApi>;
|
|
3397
3457
|
/** The SSH/SFTP User API allows you to manage your SSH/SFTP users within a project. */
|
|
3398
3458
|
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>;
|
|
3399
3461
|
private constructor();
|
|
3400
3462
|
static fromBaseClient(baseClient: MittwaldAPIV2Client): MittwaldAPIV2ClientReact;
|
|
3401
3463
|
}
|