@mittwald/api-client 4.452.0 → 4.453.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`. */
@@ -1054,9 +1096,13 @@ declare const buildContractApi: (baseClient: MittwaldAPIV3NextClient) => {
1054
1096
  } | undefined;
1055
1097
  queryParameters?: {
1056
1098
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
1099
+ search?: string | undefined;
1100
+ baseArticleNames?: string[] | undefined;
1057
1101
  limit?: number | undefined;
1058
1102
  skip?: number | undefined;
1059
1103
  page?: number | undefined;
1104
+ sort?: "description" | "contractNumber" | undefined;
1105
+ order?: "asc" | "desc" | undefined;
1060
1106
  } | undefined;
1061
1107
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldContractContract[]>;
1062
1108
  /** Get details of an Invoice. */