@mittwald/api-client 4.452.0 → 4.454.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.
@@ -7,6 +7,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
7
7
  headers?: {
8
8
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
9
9
  } | undefined;
10
+ queryParameters?: {
11
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
12
+ planId?: string | undefined;
13
+ } | undefined;
10
14
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingKey[]>;
11
15
  /** Get a key of a customer. */
12
16
  customerGetKey: (conf: {
@@ -23,6 +27,8 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
23
27
  keyId: string;
24
28
  models: string[];
25
29
  name: string;
30
+ planId: string;
31
+ profileId: string;
26
32
  projectId?: string | undefined;
27
33
  rateLimit: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingRateLimit;
28
34
  tokenUsage: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingTokenUsage;
@@ -34,31 +40,6 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
34
40
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
35
41
  } | undefined;
36
42
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingCustomerDetailedModel[]>;
37
- /** Get ai hosting plan and usages of a customer. */
38
- customerGetUsage: (conf: {
39
- customerId: string;
40
- headers?: {
41
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
42
- } | undefined;
43
- queryParameters?: {
44
- [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
45
- topUsageCount?: number | undefined;
46
- } | undefined;
47
- }) => import("@mittwald/react-use-promise").AsyncResource<{
48
- customerId: string;
49
- deletedAt?: string | undefined;
50
- keys: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsage;
51
- modelTermsApprovalRequired: boolean;
52
- nextTokenReset: string;
53
- rateLimit: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingRateLimit;
54
- tokens: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsageBig;
55
- topUsages?: {
56
- keyId?: string;
57
- name: string;
58
- projectId?: string;
59
- tokenUsed: number;
60
- }[] | undefined;
61
- }>;
62
43
  /** Get a list of currently active models. */
63
44
  getModels: (conf?: {
64
45
  headers?: {
@@ -71,6 +52,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
71
52
  headers?: {
72
53
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
73
54
  } | undefined;
55
+ queryParameters?: {
56
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
57
+ planId?: string | undefined;
58
+ } | undefined;
74
59
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingKey[]>;
75
60
  /** Get a key of a project. */
76
61
  projectGetKey: (conf: {
@@ -87,6 +72,8 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
87
72
  keyId: string;
88
73
  models: string[];
89
74
  name: string;
75
+ planId: string;
76
+ profileId: string;
90
77
  projectId?: string | undefined;
91
78
  rateLimit: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingRateLimit;
92
79
  tokenUsage: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingTokenUsage;
@@ -98,18 +85,73 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
98
85
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
99
86
  } | undefined;
100
87
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingProjectDetailedModel[]>;
101
- /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
102
- projectGetUsage: (conf: {
88
+ /** Get ai hosting plan and usages of a customer by planId. */
89
+ customerGetPlan: (conf: {
90
+ customerId: string;
91
+ planId: string;
92
+ headers?: {
93
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
94
+ } | undefined;
95
+ queryParameters?: {
96
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
97
+ topUsageCount?: number | undefined;
98
+ } | undefined;
99
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
100
+ customerId: string;
101
+ deletedAt?: string | undefined;
102
+ description: string;
103
+ keys: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsage;
104
+ modelTermsApprovalRequired: boolean;
105
+ nextTokenReset: string;
106
+ planId: string;
107
+ rateLimit: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingRateLimit;
108
+ tokens: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsageBig;
109
+ topUsages?: {
110
+ keyId?: string;
111
+ name: string;
112
+ projectId?: string;
113
+ tokenUsed: number;
114
+ }[] | undefined;
115
+ }>;
116
+ /** Get all ai hosting plans of a customer. */
117
+ customerGetPlans: (conf: {
118
+ customerId: string;
119
+ headers?: {
120
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
121
+ } | undefined;
122
+ queryParameters?: {
123
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
124
+ topUsageCount?: number | undefined;
125
+ } | undefined;
126
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
127
+ modelTermsApprovalRequired: boolean;
128
+ plans: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingCustomerPlan[];
129
+ }>;
130
+ /** Get ai hosting plan and usages of a project by planId. */
131
+ projectGetPlan: (conf: {
103
132
  projectId: string;
133
+ planId: string;
104
134
  headers?: {
105
135
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
106
136
  } | undefined;
107
137
  }) => import("@mittwald/react-use-promise").AsyncResource<{
138
+ description?: string | undefined;
108
139
  keys: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsage;
109
140
  modelTermsApprovalRequired: boolean;
110
141
  nextTokenReset?: string | undefined;
142
+ planId: string;
111
143
  projectId: string;
112
144
  }>;
145
+ /** Get all ai hosting plans and usages of a project. */
146
+ projectGetPlans: (conf: {
147
+ projectId: string;
148
+ headers?: {
149
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
150
+ } | undefined;
151
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
152
+ modelTermsApprovalRequired: boolean;
153
+ plans: import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingProjectPlan[];
154
+ }>;
113
155
  };
114
156
  declare const buildAppApi: (baseClient: MittwaldAPIV3NextClient) => {
115
157
  /** Get the installed `SystemSoftware' for a specific `AppInstallation`. */
@@ -361,6 +403,17 @@ declare const buildAppApi: (baseClient: MittwaldAPIV3NextClient) => {
361
403
  state: "running" | "stopped" | "exited";
362
404
  uptimeSeconds?: number | undefined;
363
405
  }>;
406
+ /** Get an analysis of the error of an AppInstallation. */
407
+ getAppinstallationErrorAnalysis: (conf: {
408
+ appInstallationId: string;
409
+ headers?: {
410
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
411
+ "x-access-token"?: string | undefined;
412
+ } | undefined;
413
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
414
+ recommendation?: string | undefined;
415
+ summary: string;
416
+ }>;
364
417
  };
365
418
  declare const buildArticleApi: (baseClient: MittwaldAPIV3NextClient) => {
366
419
  /** Get an Article. */
@@ -842,6 +895,18 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV3NextClient) => {
842
895
  page?: number | undefined;
843
896
  } | undefined;
844
897
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldContainerVolumeResponse[]>;
898
+ /** Get an analysis of the logs belonging to a Service. */
899
+ getServiceLogsAnalysis: (conf: {
900
+ stackId: string;
901
+ serviceId: string;
902
+ headers?: {
903
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
904
+ "x-access-token"?: string | undefined;
905
+ } | undefined;
906
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
907
+ recommendation?: string | undefined;
908
+ summary: string;
909
+ }>;
845
910
  };
846
911
  declare const buildContractApi: (baseClient: MittwaldAPIV3NextClient) => {
847
912
  /** Return the BaseItem of the Contract with the given ID. */
@@ -1054,9 +1119,13 @@ declare const buildContractApi: (baseClient: MittwaldAPIV3NextClient) => {
1054
1119
  } | undefined;
1055
1120
  queryParameters?: {
1056
1121
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1122
+ search?: string | undefined;
1123
+ baseArticleNames?: string[] | undefined;
1057
1124
  limit?: number | undefined;
1058
1125
  skip?: number | undefined;
1059
1126
  page?: number | undefined;
1127
+ sort?: "description" | "contractNumber" | undefined;
1128
+ order?: "asc" | "desc" | undefined;
1060
1129
  } | undefined;
1061
1130
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldContractContract[]>;
1062
1131
  /** Get details of an Invoice. */
@@ -1865,6 +1934,7 @@ declare const buildCronjobApi: (baseClient: MittwaldAPIV3NextClient) => {
1865
1934
  }) => import("@mittwald/react-use-promise").AsyncResource<{
1866
1935
  message: string;
1867
1936
  recommendation?: string | undefined;
1937
+ summary: string;
1868
1938
  }>;
1869
1939
  /** Get a CronjobExecution. */
1870
1940
  getExecution: (conf: {