@mittwald/api-client 4.458.0 → 4.460.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.
@@ -14,6 +14,10 @@ const buildAiHostingApi = (baseClient) => ({
14
14
  customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
15
15
  /** Get a list of currently active models. */
16
16
  getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
17
+ /** List the contract months of an ai hosting plan. */
18
+ planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
19
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
20
+ planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
17
21
  /** Get a list of keys of a project. */
18
22
  projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
19
23
  /** Get a key of a project. */
@@ -30,6 +30,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
30
30
  customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
31
31
  /** Get a list of currently active models. */
32
32
  getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
33
+ /** List the contract months of an ai hosting plan. */
34
+ planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
35
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
36
+ planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
33
37
  /** Get a list of keys of a project. */
34
38
  projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
35
39
  /** Creates a new key for a project. */
@@ -70,6 +70,18 @@ export const aiHostingGetModels = {
70
70
  method: "GET",
71
71
  operationId: "ai-hosting-get-models",
72
72
  };
73
+ /** List the contract months of an ai hosting plan. */
74
+ export const aiHostingPlanGetBillingPeriods = {
75
+ path: "/v2/customers/{customerId}/ai-hostings/{planId}/billing-periods",
76
+ method: "GET",
77
+ operationId: "ai-hosting-plan-get-billing-periods",
78
+ };
79
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
80
+ export const aiHostingPlanGetUsageStats = {
81
+ path: "/v2/customers/{customerId}/ai-hostings/{planId}/usage",
82
+ method: "GET",
83
+ operationId: "ai-hosting-plan-get-usage-stats",
84
+ };
73
85
  /** Get a list of keys of a project. */
74
86
  export const aiHostingProjectGetKeys = {
75
87
  path: "/v2/projects/{projectId}/ai-hosting-keys",
@@ -14,6 +14,10 @@ const buildAiHostingApi = (baseClient) => ({
14
14
  customerGetPlan: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetPlan, baseClient.aiHosting.customerGetPlan).getApiResource,
15
15
  /** Get a list of currently active models. */
16
16
  getModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingGetModels, baseClient.aiHosting.getModels).getApiResource,
17
+ /** List the contract months of an ai hosting plan. */
18
+ planGetBillingPeriods: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetBillingPeriods, baseClient.aiHosting.planGetBillingPeriods).getApiResource,
19
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
20
+ planGetUsageStats: new ApiCallAsyncResourceFactory(descriptors.aiHostingPlanGetUsageStats, baseClient.aiHosting.planGetUsageStats).getApiResource,
17
21
  /** Get a list of keys of a project. */
18
22
  projectGetKeys: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetKeys, baseClient.aiHosting.projectGetKeys).getApiResource,
19
23
  /** Get a key of a project. */
@@ -30,6 +30,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
30
30
  customerUpdatePlan: this.requestFunctionFactory(descriptors.aiHostingCustomerUpdatePlan),
31
31
  /** Get a list of currently active models. */
32
32
  getModels: this.requestFunctionFactory(descriptors.aiHostingGetModels),
33
+ /** List the contract months of an ai hosting plan. */
34
+ planGetBillingPeriods: this.requestFunctionFactory(descriptors.aiHostingPlanGetBillingPeriods),
35
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
36
+ planGetUsageStats: this.requestFunctionFactory(descriptors.aiHostingPlanGetUsageStats),
33
37
  /** Get a list of keys of a project. */
34
38
  projectGetKeys: this.requestFunctionFactory(descriptors.aiHostingProjectGetKeys),
35
39
  /** Creates a new key for a project. */
@@ -70,6 +70,18 @@ export const aiHostingGetModels = {
70
70
  method: "GET",
71
71
  operationId: "ai-hosting-get-models",
72
72
  };
73
+ /** List the contract months of an ai hosting plan. */
74
+ export const aiHostingPlanGetBillingPeriods = {
75
+ path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/billing-periods",
76
+ method: "GET",
77
+ operationId: "ai-hosting-plan-get-billing-periods",
78
+ };
79
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
80
+ export const aiHostingPlanGetUsageStats = {
81
+ path: "/v3-next/customers/{customerId}/ai-hostings/{planId}/usage",
82
+ method: "GET",
83
+ operationId: "ai-hosting-plan-get-usage-stats",
84
+ };
73
85
  /** Get a list of keys of a project. */
74
86
  export const aiHostingProjectGetKeys = {
75
87
  path: "/v3-next/projects/{projectId}/ai-hosting-keys",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.457.1';
1
+ export const MittwaldAPIClientVersion = '4.459.0';
@@ -94,6 +94,62 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
94
94
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
95
95
  } | undefined;
96
96
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingModel[]>;
97
+ /** List the contract months of an ai hosting plan. */
98
+ planGetBillingPeriods: (conf: {
99
+ customerId: string;
100
+ planId: string;
101
+ headers?: {
102
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
103
+ } | undefined;
104
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
105
+ customerId: string;
106
+ nextTokenReset?: string | undefined;
107
+ periods: {
108
+ end: string;
109
+ isCurrent: boolean;
110
+ shortenedByUpgrade: boolean;
111
+ start: string;
112
+ tokenLimit: number;
113
+ }[];
114
+ planId: string;
115
+ }>;
116
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
117
+ planGetUsageStats: (conf: {
118
+ queryParameters: {
119
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
120
+ startDate: string;
121
+ endDate: string;
122
+ keyId?: string | undefined;
123
+ };
124
+ customerId: string;
125
+ planId: string;
126
+ headers?: {
127
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
128
+ } | undefined;
129
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
130
+ customerId: string;
131
+ daily: {
132
+ byKey: {
133
+ [k: string]: number;
134
+ };
135
+ date: string;
136
+ totalTokens: number;
137
+ }[];
138
+ keys: {
139
+ id: string;
140
+ name: string;
141
+ }[];
142
+ modelShare: {
143
+ model: string;
144
+ tokens: number;
145
+ }[];
146
+ planId: string;
147
+ timeframe: {
148
+ end: string;
149
+ start: string;
150
+ };
151
+ totalTokens: number;
152
+ }>;
97
153
  /** Get a list of keys of a project. */
98
154
  projectGetKeys: (conf: {
99
155
  projectId: string;
@@ -730,6 +730,180 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
730
730
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
731
731
  [x: string]: unknown;
732
732
  }, 429, "application/json">>>;
733
+ /** List the contract months of an ai hosting plan. */
734
+ planGetBillingPeriods: (request: {
735
+ customerId: string;
736
+ planId: string;
737
+ headers?: {
738
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
739
+ } | undefined;
740
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
741
+ headers?: Partial<{
742
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
743
+ }>;
744
+ } & {
745
+ pathParameters: {
746
+ customerId: string;
747
+ planId: string;
748
+ };
749
+ }, import("@mittwald/api-client-commons").Response<{
750
+ customerId: string;
751
+ nextTokenReset?: string | undefined;
752
+ periods: {
753
+ end: string;
754
+ isCurrent: boolean;
755
+ shortenedByUpgrade: boolean;
756
+ start: string;
757
+ tokenLimit: number;
758
+ }[];
759
+ planId: string;
760
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
761
+ [x: string]: unknown;
762
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
763
+ [x: string]: unknown;
764
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
765
+ [x: string]: unknown;
766
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
767
+ [x: string]: unknown;
768
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
769
+ headers?: Partial<{
770
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
771
+ }>;
772
+ } & {
773
+ pathParameters: {
774
+ customerId: string;
775
+ planId: string;
776
+ };
777
+ }, import("@mittwald/api-client-commons").Response<{
778
+ customerId: string;
779
+ nextTokenReset?: string | undefined;
780
+ periods: {
781
+ end: string;
782
+ isCurrent: boolean;
783
+ shortenedByUpgrade: boolean;
784
+ start: string;
785
+ tokenLimit: number;
786
+ }[];
787
+ planId: string;
788
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
789
+ [x: string]: unknown;
790
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
791
+ [x: string]: unknown;
792
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
793
+ [x: string]: unknown;
794
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
795
+ [x: string]: unknown;
796
+ }, 429, "application/json">>>;
797
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
798
+ planGetUsageStats: (request: {
799
+ queryParameters: {
800
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
801
+ startDate: string;
802
+ endDate: string;
803
+ keyId?: string | undefined;
804
+ };
805
+ customerId: string;
806
+ planId: string;
807
+ headers?: {
808
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
809
+ } | undefined;
810
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
811
+ headers?: Partial<{
812
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
813
+ }>;
814
+ } & {
815
+ pathParameters: {
816
+ customerId: string;
817
+ planId: string;
818
+ };
819
+ } & {
820
+ queryParameters: {
821
+ startDate: string;
822
+ endDate: string;
823
+ keyId?: string | undefined;
824
+ } & Partial<{
825
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
826
+ }>;
827
+ }, import("@mittwald/api-client-commons").Response<{
828
+ customerId: string;
829
+ daily: {
830
+ byKey: {
831
+ [k: string]: number;
832
+ };
833
+ date: string;
834
+ totalTokens: number;
835
+ }[];
836
+ keys: {
837
+ id: string;
838
+ name: string;
839
+ }[];
840
+ modelShare: {
841
+ model: string;
842
+ tokens: number;
843
+ }[];
844
+ planId: string;
845
+ timeframe: {
846
+ end: string;
847
+ start: string;
848
+ };
849
+ totalTokens: number;
850
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
851
+ [x: string]: unknown;
852
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
853
+ [x: string]: unknown;
854
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
855
+ [x: string]: unknown;
856
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
857
+ [x: string]: unknown;
858
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
859
+ headers?: Partial<{
860
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
861
+ }>;
862
+ } & {
863
+ pathParameters: {
864
+ customerId: string;
865
+ planId: string;
866
+ };
867
+ } & {
868
+ queryParameters: {
869
+ startDate: string;
870
+ endDate: string;
871
+ keyId?: string | undefined;
872
+ } & Partial<{
873
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
874
+ }>;
875
+ }, import("@mittwald/api-client-commons").Response<{
876
+ customerId: string;
877
+ daily: {
878
+ byKey: {
879
+ [k: string]: number;
880
+ };
881
+ date: string;
882
+ totalTokens: number;
883
+ }[];
884
+ keys: {
885
+ id: string;
886
+ name: string;
887
+ }[];
888
+ modelShare: {
889
+ model: string;
890
+ tokens: number;
891
+ }[];
892
+ planId: string;
893
+ timeframe: {
894
+ end: string;
895
+ start: string;
896
+ };
897
+ totalTokens: number;
898
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
899
+ [x: string]: unknown;
900
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
901
+ [x: string]: unknown;
902
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
903
+ [x: string]: unknown;
904
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
905
+ [x: string]: unknown;
906
+ }, 429, "application/json">>>;
733
907
  /** Get a list of keys of a project. */
734
908
  projectGetKeys: (request: {
735
909
  projectId: string;
@@ -27,6 +27,10 @@ export declare const aiHostingCustomerGetPlan: OpenAPIOperation<RequestType<Simp
27
27
  export declare const aiHostingCustomerUpdatePlan: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanId.Put.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
28
28
  /** Get a list of currently active models. */
29
29
  export declare const aiHostingGetModels: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2AiHostingModels.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
30
+ /** List the contract months of an ai hosting plan. */
31
+ export declare const aiHostingPlanGetBillingPeriods: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
32
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
33
+ export declare const aiHostingPlanGetUsageStats: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
30
34
  /** Get a list of keys of a project. */
31
35
  export declare const aiHostingProjectGetKeys: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdAiHostingKeys.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
32
36
  /** Creates a new key for a project. */
@@ -50,6 +50,14 @@ export declare namespace MittwaldAPIV2 {
50
50
  type RequestData = InferredRequestData<typeof descriptors.aiHostingGetModels>;
51
51
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingGetModels, TStatus>;
52
52
  }
53
+ namespace AiHostingPlanGetBillingPeriods {
54
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetBillingPeriods>;
55
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetBillingPeriods, TStatus>;
56
+ }
57
+ namespace AiHostingPlanGetUsageStats {
58
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetUsageStats>;
59
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetUsageStats, TStatus>;
60
+ }
53
61
  namespace AiHostingProjectGetKeys {
54
62
  type RequestData = InferredRequestData<typeof descriptors.aiHostingProjectGetKeys>;
55
63
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingProjectGetKeys, TStatus>;
@@ -2006,6 +2014,30 @@ export declare namespace MittwaldAPIV2 {
2006
2014
  termsOfServiceLink: string;
2007
2015
  tokenFactor: number;
2008
2016
  }
2017
+ interface AihostingPlanBillingPeriods {
2018
+ customerId: string;
2019
+ /**
2020
+ * End of the current period, i.e. when the token counter next resets.
2021
+ */
2022
+ nextTokenReset?: string;
2023
+ /**
2024
+ * Every contract month of the plan from its start up to the current one, anchored on the plan start date rather than the calendar.
2025
+ */
2026
+ periods: {
2027
+ end: string;
2028
+ isCurrent: boolean;
2029
+ /**
2030
+ * True when an upgrade cut this period short: the token counter is reset immediately on an upgrade, so the period ends there instead of on the regular grid. A downgrade does not do this - it takes effect at the next regular boundary.
2031
+ */
2032
+ shortenedByUpgrade: boolean;
2033
+ start: string;
2034
+ /**
2035
+ * The limit that applied during this period, which after a tariff change differs from the plan's current limit.
2036
+ */
2037
+ tokenLimit: number;
2038
+ }[];
2039
+ planId: string;
2040
+ }
2009
2041
  type AihostingPlanOptions = MittwaldAPIV2.Components.Schemas.AihostingCustomerPlan;
2010
2042
  interface AihostingPlanUsageBig {
2011
2043
  available: number;
@@ -2017,6 +2049,33 @@ export declare namespace MittwaldAPIV2 {
2017
2049
  planLimit: number;
2018
2050
  used: number;
2019
2051
  }
2052
+ interface AihostingPlanUsageStats {
2053
+ customerId: string;
2054
+ daily: {
2055
+ byKey: {
2056
+ [k: string]: number;
2057
+ };
2058
+ date: string;
2059
+ totalTokens: number;
2060
+ }[];
2061
+ /**
2062
+ * Every licence of the plan, most used in the timeframe first. Includes licences deleted inside the timeframe, which still carry usage but are no longer returned by the keys endpoint. Ordered, so callers can key chart colours off the position.
2063
+ */
2064
+ keys: {
2065
+ id: string;
2066
+ name: string;
2067
+ }[];
2068
+ modelShare: {
2069
+ model: string;
2070
+ tokens: number;
2071
+ }[];
2072
+ planId: string;
2073
+ timeframe: {
2074
+ end: string;
2075
+ start: string;
2076
+ };
2077
+ totalTokens: number;
2078
+ }
2020
2079
  interface AihostingProfile {
2021
2080
  planIds: string[];
2022
2081
  }
@@ -3687,7 +3746,7 @@ export declare namespace MittwaldAPIV2 {
3687
3746
  }
3688
3747
  interface DatabaseCreateMySqlUser {
3689
3748
  /**
3690
- * An IP range (in CIDR notation) for which access should be allowed.
3749
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3691
3750
  */
3692
3751
  accessIpMask?: string;
3693
3752
  /**
@@ -3708,6 +3767,9 @@ export declare namespace MittwaldAPIV2 {
3708
3767
  password: string;
3709
3768
  }
3710
3769
  interface DatabaseCreateMySqlUserWithDatabase {
3770
+ /**
3771
+ * This field currently has no effect.
3772
+ */
3711
3773
  accessIpMask?: string;
3712
3774
  /**
3713
3775
  * The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
@@ -3792,7 +3854,7 @@ export declare namespace MittwaldAPIV2 {
3792
3854
  }
3793
3855
  interface DatabaseMySqlUser {
3794
3856
  /**
3795
- * An IP range (in CIDR notation) for which access should be allowed.
3857
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3796
3858
  */
3797
3859
  accessIpMask?: string;
3798
3860
  /**
@@ -8114,6 +8176,118 @@ export declare namespace MittwaldAPIV2 {
8114
8176
  }
8115
8177
  }
8116
8178
  }
8179
+ namespace V2CustomersCustomerIdAiHostingsPlanIdBillingPeriods {
8180
+ namespace Get {
8181
+ namespace Parameters {
8182
+ type Path = {
8183
+ customerId: string;
8184
+ planId: string;
8185
+ };
8186
+ type Header = {};
8187
+ type Query = {};
8188
+ }
8189
+ namespace Responses {
8190
+ namespace $200 {
8191
+ namespace Content {
8192
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.AihostingPlanBillingPeriods;
8193
+ }
8194
+ }
8195
+ namespace $400 {
8196
+ namespace Content {
8197
+ interface ApplicationJson {
8198
+ [k: string]: unknown;
8199
+ }
8200
+ }
8201
+ }
8202
+ namespace $403 {
8203
+ namespace Content {
8204
+ interface ApplicationJson {
8205
+ [k: string]: unknown;
8206
+ }
8207
+ }
8208
+ }
8209
+ namespace $404 {
8210
+ namespace Content {
8211
+ interface ApplicationJson {
8212
+ [k: string]: unknown;
8213
+ }
8214
+ }
8215
+ }
8216
+ namespace $429 {
8217
+ namespace Content {
8218
+ interface ApplicationJson {
8219
+ [k: string]: unknown;
8220
+ }
8221
+ }
8222
+ }
8223
+ namespace Default {
8224
+ namespace Content {
8225
+ interface ApplicationJson {
8226
+ [k: string]: unknown;
8227
+ }
8228
+ }
8229
+ }
8230
+ }
8231
+ }
8232
+ }
8233
+ namespace V2CustomersCustomerIdAiHostingsPlanIdUsage {
8234
+ namespace Get {
8235
+ namespace Parameters {
8236
+ type Path = {
8237
+ customerId: string;
8238
+ planId: string;
8239
+ };
8240
+ type Header = {};
8241
+ type Query = {
8242
+ startDate: string;
8243
+ endDate: string;
8244
+ keyId?: string;
8245
+ };
8246
+ }
8247
+ namespace Responses {
8248
+ namespace $200 {
8249
+ namespace Content {
8250
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.AihostingPlanUsageStats;
8251
+ }
8252
+ }
8253
+ namespace $400 {
8254
+ namespace Content {
8255
+ interface ApplicationJson {
8256
+ [k: string]: unknown;
8257
+ }
8258
+ }
8259
+ }
8260
+ namespace $403 {
8261
+ namespace Content {
8262
+ interface ApplicationJson {
8263
+ [k: string]: unknown;
8264
+ }
8265
+ }
8266
+ }
8267
+ namespace $404 {
8268
+ namespace Content {
8269
+ interface ApplicationJson {
8270
+ [k: string]: unknown;
8271
+ }
8272
+ }
8273
+ }
8274
+ namespace $429 {
8275
+ namespace Content {
8276
+ interface ApplicationJson {
8277
+ [k: string]: unknown;
8278
+ }
8279
+ }
8280
+ }
8281
+ namespace Default {
8282
+ namespace Content {
8283
+ interface ApplicationJson {
8284
+ [k: string]: unknown;
8285
+ }
8286
+ }
8287
+ }
8288
+ }
8289
+ }
8290
+ }
8117
8291
  namespace V2ProjectsProjectIdAiHostingKeys {
8118
8292
  namespace Get {
8119
8293
  namespace Parameters {
@@ -17390,6 +17564,9 @@ export declare namespace MittwaldAPIV2 {
17390
17564
  mysqlUserId: string;
17391
17565
  };
17392
17566
  interface RequestBody {
17567
+ /**
17568
+ * This field currently has no effect.
17569
+ */
17393
17570
  accessIpMask?: string;
17394
17571
  accessLevel?: "full" | "readonly";
17395
17572
  description?: string;
@@ -94,6 +94,62 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV3NextClient) => {
94
94
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
95
95
  } | undefined;
96
96
  } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingModel[]>;
97
+ /** List the contract months of an ai hosting plan. */
98
+ planGetBillingPeriods: (conf: {
99
+ customerId: string;
100
+ planId: string;
101
+ headers?: {
102
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
103
+ } | undefined;
104
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
105
+ customerId: string;
106
+ nextTokenReset?: string | undefined;
107
+ periods: {
108
+ end: string;
109
+ isCurrent: boolean;
110
+ shortenedByUpgrade: boolean;
111
+ start: string;
112
+ tokenLimit: number;
113
+ }[];
114
+ planId: string;
115
+ }>;
116
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
117
+ planGetUsageStats: (conf: {
118
+ queryParameters: {
119
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
120
+ startDate: string;
121
+ endDate: string;
122
+ keyId?: string | undefined;
123
+ };
124
+ customerId: string;
125
+ planId: string;
126
+ headers?: {
127
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
128
+ } | undefined;
129
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
130
+ customerId: string;
131
+ daily: {
132
+ byKey: {
133
+ [k: string]: number;
134
+ };
135
+ date: string;
136
+ totalTokens: number;
137
+ }[];
138
+ keys: {
139
+ id: string;
140
+ name: string;
141
+ }[];
142
+ modelShare: {
143
+ model: string;
144
+ tokens: number;
145
+ }[];
146
+ planId: string;
147
+ timeframe: {
148
+ end: string;
149
+ start: string;
150
+ };
151
+ totalTokens: number;
152
+ }>;
97
153
  /** Get a list of keys of a project. */
98
154
  projectGetKeys: (conf: {
99
155
  projectId: string;
@@ -730,6 +730,180 @@ export declare class MittwaldAPIV3NextClient extends ApiClientBase {
730
730
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
731
731
  [x: string]: unknown;
732
732
  }, 429, "application/json">>>;
733
+ /** List the contract months of an ai hosting plan. */
734
+ planGetBillingPeriods: (request: {
735
+ customerId: string;
736
+ planId: string;
737
+ headers?: {
738
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
739
+ } | undefined;
740
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
741
+ headers?: Partial<{
742
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
743
+ }>;
744
+ } & {
745
+ pathParameters: {
746
+ customerId: string;
747
+ planId: string;
748
+ };
749
+ }, import("@mittwald/api-client-commons").Response<{
750
+ customerId: string;
751
+ nextTokenReset?: string | undefined;
752
+ periods: {
753
+ end: string;
754
+ isCurrent: boolean;
755
+ shortenedByUpgrade: boolean;
756
+ start: string;
757
+ tokenLimit: number;
758
+ }[];
759
+ planId: string;
760
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
761
+ [x: string]: unknown;
762
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
763
+ [x: string]: unknown;
764
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
765
+ [x: string]: unknown;
766
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
767
+ [x: string]: unknown;
768
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
769
+ headers?: Partial<{
770
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
771
+ }>;
772
+ } & {
773
+ pathParameters: {
774
+ customerId: string;
775
+ planId: string;
776
+ };
777
+ }, import("@mittwald/api-client-commons").Response<{
778
+ customerId: string;
779
+ nextTokenReset?: string | undefined;
780
+ periods: {
781
+ end: string;
782
+ isCurrent: boolean;
783
+ shortenedByUpgrade: boolean;
784
+ start: string;
785
+ tokenLimit: number;
786
+ }[];
787
+ planId: string;
788
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
789
+ [x: string]: unknown;
790
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
791
+ [x: string]: unknown;
792
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
793
+ [x: string]: unknown;
794
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
795
+ [x: string]: unknown;
796
+ }, 429, "application/json">>>;
797
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
798
+ planGetUsageStats: (request: {
799
+ queryParameters: {
800
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
801
+ startDate: string;
802
+ endDate: string;
803
+ keyId?: string | undefined;
804
+ };
805
+ customerId: string;
806
+ planId: string;
807
+ headers?: {
808
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
809
+ } | undefined;
810
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
811
+ headers?: Partial<{
812
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
813
+ }>;
814
+ } & {
815
+ pathParameters: {
816
+ customerId: string;
817
+ planId: string;
818
+ };
819
+ } & {
820
+ queryParameters: {
821
+ startDate: string;
822
+ endDate: string;
823
+ keyId?: string | undefined;
824
+ } & Partial<{
825
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
826
+ }>;
827
+ }, import("@mittwald/api-client-commons").Response<{
828
+ customerId: string;
829
+ daily: {
830
+ byKey: {
831
+ [k: string]: number;
832
+ };
833
+ date: string;
834
+ totalTokens: number;
835
+ }[];
836
+ keys: {
837
+ id: string;
838
+ name: string;
839
+ }[];
840
+ modelShare: {
841
+ model: string;
842
+ tokens: number;
843
+ }[];
844
+ planId: string;
845
+ timeframe: {
846
+ end: string;
847
+ start: string;
848
+ };
849
+ totalTokens: number;
850
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
851
+ [x: string]: unknown;
852
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
853
+ [x: string]: unknown;
854
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
855
+ [x: string]: unknown;
856
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
857
+ [x: string]: unknown;
858
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
859
+ headers?: Partial<{
860
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
861
+ }>;
862
+ } & {
863
+ pathParameters: {
864
+ customerId: string;
865
+ planId: string;
866
+ };
867
+ } & {
868
+ queryParameters: {
869
+ startDate: string;
870
+ endDate: string;
871
+ keyId?: string | undefined;
872
+ } & Partial<{
873
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
874
+ }>;
875
+ }, import("@mittwald/api-client-commons").Response<{
876
+ customerId: string;
877
+ daily: {
878
+ byKey: {
879
+ [k: string]: number;
880
+ };
881
+ date: string;
882
+ totalTokens: number;
883
+ }[];
884
+ keys: {
885
+ id: string;
886
+ name: string;
887
+ }[];
888
+ modelShare: {
889
+ model: string;
890
+ tokens: number;
891
+ }[];
892
+ planId: string;
893
+ timeframe: {
894
+ end: string;
895
+ start: string;
896
+ };
897
+ totalTokens: number;
898
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
899
+ [x: string]: unknown;
900
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
901
+ [x: string]: unknown;
902
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
903
+ [x: string]: unknown;
904
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
905
+ [x: string]: unknown;
906
+ }, 429, "application/json">>>;
733
907
  /** Get a list of keys of a project. */
734
908
  projectGetKeys: (request: {
735
909
  projectId: string;
@@ -27,6 +27,10 @@ export declare const aiHostingCustomerGetPlan: OpenAPIOperation<RequestType<Simp
27
27
  export declare const aiHostingCustomerUpdatePlan: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Parameters.RequestBody>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Parameters.Path>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Parameters.Query>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Parameters.Header>>, Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanId.Put.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
28
28
  /** Get a list of currently active models. */
29
29
  export declare const aiHostingGetModels: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Parameters.Path>, Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Parameters.Query>, Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextAiHostingModels.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
30
+ /** List the contract months of an ai hosting plan. */
31
+ export declare const aiHostingPlanGetBillingPeriods: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Path>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Query>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
32
+ /** Get aggregated token usage statistics for an ai hosting plan of a customer. */
33
+ export declare const aiHostingPlanGetUsageStats: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Path>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Query>, Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextCustomersCustomerIdAiHostingsPlanIdUsage.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
30
34
  /** Get a list of keys of a project. */
31
35
  export declare const aiHostingProjectGetKeys: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Parameters.Path>, Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Parameters.Query>, Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV3Next.Paths.V3NextProjectsProjectIdAiHostingKeys.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
32
36
  /** Creates a new key for a project. */
@@ -50,6 +50,14 @@ export declare namespace MittwaldAPIV3Next {
50
50
  type RequestData = InferredRequestData<typeof descriptors.aiHostingGetModels>;
51
51
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingGetModels, TStatus>;
52
52
  }
53
+ namespace AiHostingPlanGetBillingPeriods {
54
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetBillingPeriods>;
55
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetBillingPeriods, TStatus>;
56
+ }
57
+ namespace AiHostingPlanGetUsageStats {
58
+ type RequestData = InferredRequestData<typeof descriptors.aiHostingPlanGetUsageStats>;
59
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingPlanGetUsageStats, TStatus>;
60
+ }
53
61
  namespace AiHostingProjectGetKeys {
54
62
  type RequestData = InferredRequestData<typeof descriptors.aiHostingProjectGetKeys>;
55
63
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.aiHostingProjectGetKeys, TStatus>;
@@ -2006,6 +2014,30 @@ export declare namespace MittwaldAPIV3Next {
2006
2014
  termsOfServiceLink: string;
2007
2015
  tokenFactor: number;
2008
2016
  }
2017
+ interface DeMittwaldAihostingPlanBillingPeriods {
2018
+ customerId: string;
2019
+ /**
2020
+ * End of the current period, i.e. when the token counter next resets.
2021
+ */
2022
+ nextTokenReset?: string;
2023
+ /**
2024
+ * Every contract month of the plan from its start up to the current one, anchored on the plan start date rather than the calendar.
2025
+ */
2026
+ periods: {
2027
+ end: string;
2028
+ isCurrent: boolean;
2029
+ /**
2030
+ * True when an upgrade cut this period short: the token counter is reset immediately on an upgrade, so the period ends there instead of on the regular grid. A downgrade does not do this - it takes effect at the next regular boundary.
2031
+ */
2032
+ shortenedByUpgrade: boolean;
2033
+ start: string;
2034
+ /**
2035
+ * The limit that applied during this period, which after a tariff change differs from the plan's current limit.
2036
+ */
2037
+ tokenLimit: number;
2038
+ }[];
2039
+ planId: string;
2040
+ }
2009
2041
  type DeMittwaldAihostingPlanOptions = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingCustomerPlan;
2010
2042
  interface DeMittwaldAihostingPlanUsageBig {
2011
2043
  available: number;
@@ -2017,6 +2049,33 @@ export declare namespace MittwaldAPIV3Next {
2017
2049
  planLimit: number;
2018
2050
  used: number;
2019
2051
  }
2052
+ interface DeMittwaldAihostingPlanUsageStats {
2053
+ customerId: string;
2054
+ daily: {
2055
+ byKey: {
2056
+ [k: string]: number;
2057
+ };
2058
+ date: string;
2059
+ totalTokens: number;
2060
+ }[];
2061
+ /**
2062
+ * Every licence of the plan, most used in the timeframe first. Includes licences deleted inside the timeframe, which still carry usage but are no longer returned by the keys endpoint. Ordered, so callers can key chart colours off the position.
2063
+ */
2064
+ keys: {
2065
+ id: string;
2066
+ name: string;
2067
+ }[];
2068
+ modelShare: {
2069
+ model: string;
2070
+ tokens: number;
2071
+ }[];
2072
+ planId: string;
2073
+ timeframe: {
2074
+ end: string;
2075
+ start: string;
2076
+ };
2077
+ totalTokens: number;
2078
+ }
2020
2079
  interface DeMittwaldAihostingProfile {
2021
2080
  planIds: string[];
2022
2081
  }
@@ -3687,7 +3746,7 @@ export declare namespace MittwaldAPIV3Next {
3687
3746
  }
3688
3747
  interface DeMittwaldDatabaseCreateMySqlUser {
3689
3748
  /**
3690
- * An IP range (in CIDR notation) for which access should be allowed.
3749
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3691
3750
  */
3692
3751
  accessIpMask?: string;
3693
3752
  /**
@@ -3708,6 +3767,9 @@ export declare namespace MittwaldAPIV3Next {
3708
3767
  password: string;
3709
3768
  }
3710
3769
  interface DeMittwaldDatabaseCreateMySqlUserWithDatabase {
3770
+ /**
3771
+ * This field currently has no effect.
3772
+ */
3711
3773
  accessIpMask?: string;
3712
3774
  /**
3713
3775
  * The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
@@ -3792,7 +3854,7 @@ export declare namespace MittwaldAPIV3Next {
3792
3854
  }
3793
3855
  interface DeMittwaldDatabaseMySqlUser {
3794
3856
  /**
3795
- * An IP range (in CIDR notation) for which access should be allowed.
3857
+ * An IP range (in CIDR notation) for which access should be allowed. This field currently has no effect.
3796
3858
  */
3797
3859
  accessIpMask?: string;
3798
3860
  /**
@@ -8118,6 +8180,118 @@ export declare namespace MittwaldAPIV3Next {
8118
8180
  }
8119
8181
  }
8120
8182
  }
8183
+ namespace V3NextCustomersCustomerIdAiHostingsPlanIdBillingPeriods {
8184
+ namespace Get {
8185
+ namespace Parameters {
8186
+ type Path = {
8187
+ customerId: string;
8188
+ planId: string;
8189
+ };
8190
+ type Header = {};
8191
+ type Query = {};
8192
+ }
8193
+ namespace Responses {
8194
+ namespace $200 {
8195
+ namespace Content {
8196
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanBillingPeriods;
8197
+ }
8198
+ }
8199
+ namespace $400 {
8200
+ namespace Content {
8201
+ interface ApplicationJson {
8202
+ [k: string]: unknown;
8203
+ }
8204
+ }
8205
+ }
8206
+ namespace $403 {
8207
+ namespace Content {
8208
+ interface ApplicationJson {
8209
+ [k: string]: unknown;
8210
+ }
8211
+ }
8212
+ }
8213
+ namespace $404 {
8214
+ namespace Content {
8215
+ interface ApplicationJson {
8216
+ [k: string]: unknown;
8217
+ }
8218
+ }
8219
+ }
8220
+ namespace $429 {
8221
+ namespace Content {
8222
+ interface ApplicationJson {
8223
+ [k: string]: unknown;
8224
+ }
8225
+ }
8226
+ }
8227
+ namespace Default {
8228
+ namespace Content {
8229
+ interface ApplicationJson {
8230
+ [k: string]: unknown;
8231
+ }
8232
+ }
8233
+ }
8234
+ }
8235
+ }
8236
+ }
8237
+ namespace V3NextCustomersCustomerIdAiHostingsPlanIdUsage {
8238
+ namespace Get {
8239
+ namespace Parameters {
8240
+ type Path = {
8241
+ customerId: string;
8242
+ planId: string;
8243
+ };
8244
+ type Header = {};
8245
+ type Query = {
8246
+ startDate: string;
8247
+ endDate: string;
8248
+ keyId?: string;
8249
+ };
8250
+ }
8251
+ namespace Responses {
8252
+ namespace $200 {
8253
+ namespace Content {
8254
+ type ApplicationJson = MittwaldAPIV3Next.Components.Schemas.DeMittwaldAihostingPlanUsageStats;
8255
+ }
8256
+ }
8257
+ namespace $400 {
8258
+ namespace Content {
8259
+ interface ApplicationJson {
8260
+ [k: string]: unknown;
8261
+ }
8262
+ }
8263
+ }
8264
+ namespace $403 {
8265
+ namespace Content {
8266
+ interface ApplicationJson {
8267
+ [k: string]: unknown;
8268
+ }
8269
+ }
8270
+ }
8271
+ namespace $404 {
8272
+ namespace Content {
8273
+ interface ApplicationJson {
8274
+ [k: string]: unknown;
8275
+ }
8276
+ }
8277
+ }
8278
+ namespace $429 {
8279
+ namespace Content {
8280
+ interface ApplicationJson {
8281
+ [k: string]: unknown;
8282
+ }
8283
+ }
8284
+ }
8285
+ namespace Default {
8286
+ namespace Content {
8287
+ interface ApplicationJson {
8288
+ [k: string]: unknown;
8289
+ }
8290
+ }
8291
+ }
8292
+ }
8293
+ }
8294
+ }
8121
8295
  namespace V3NextProjectsProjectIdAiHostingKeys {
8122
8296
  namespace Get {
8123
8297
  namespace Parameters {
@@ -17381,6 +17555,9 @@ export declare namespace MittwaldAPIV3Next {
17381
17555
  mysqlUserId: string;
17382
17556
  };
17383
17557
  interface RequestBody {
17558
+ /**
17559
+ * This field currently has no effect.
17560
+ */
17384
17561
  accessIpMask?: string;
17385
17562
  accessLevel?: "full" | "readonly";
17386
17563
  description?: string;
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.457.1';
1
+ export declare const MittwaldAPIClientVersion = '4.459.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.458.0",
3
+ "version": "4.460.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -72,11 +72,11 @@
72
72
  "test:compile": "run tsc --noEmit"
73
73
  },
74
74
  "dependencies": {
75
- "@mittwald/api-client-commons": "^4.458.0",
75
+ "@mittwald/api-client-commons": "^4.460.0",
76
76
  "browser-or-node": "^3.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@mittwald/api-code-generator": "^4.458.0",
79
+ "@mittwald/api-code-generator": "^4.460.0",
80
80
  "@mittwald/react-use-promise": "^4.2.3",
81
81
  "@types/node": "^22.18.11",
82
82
  "@types/react": "^18.3.26",
@@ -106,5 +106,5 @@
106
106
  "optional": true
107
107
  }
108
108
  },
109
- "gitHead": "3e20ca48dfd8b382b92b9f35c47755b53fe20595"
109
+ "gitHead": "412b2a3b85320a7e8ccbfbab4a9d40a7221af60f"
110
110
  }