@mittwald/api-client 0.0.0-development-8335166-20260625 → 0.0.0-development-11873f7-20260707

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.
@@ -20,6 +20,8 @@ const buildAiHostingApi = (baseClient) => ({
20
20
  projectGetDetailedModels: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetDetailedModels, baseClient.aiHosting.projectGetDetailedModels).getApiResource,
21
21
  /** Get ai hosting plan and usages of a project. Same as the customer route, but less details. */
22
22
  projectGetUsage: new ApiCallAsyncResourceFactory(descriptors.aiHostingProjectGetUsage, baseClient.aiHosting.projectGetUsage).getApiResource,
23
+ /** Get ai hosting subscriptions of a customer. */
24
+ customerGetSubscriptions: new ApiCallAsyncResourceFactory(descriptors.aiHostingCustomerGetSubscriptions, baseClient.aiHosting.customerGetSubscriptions).getApiResource,
23
25
  });
24
26
  const buildAppApi = (baseClient) => ({
25
27
  /** Get an App. */
@@ -92,6 +94,8 @@ const buildContainerApi = (baseClient) => ({
92
94
  getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
93
95
  /** Get a Service belonging to a Stack. */
94
96
  getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
97
+ /** Get a Container Template icon. */
98
+ getTemplateIcon: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplateIcon, baseClient.container.getTemplateIcon).getApiResource,
95
99
  /** Get a Container Template by ID. */
96
100
  getTemplate: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplate, baseClient.container.getTemplate).getApiResource,
97
101
  /** List Stacks belonging to the executing user. */
@@ -104,6 +108,10 @@ const buildContainerApi = (baseClient) => ({
104
108
  listTemplates: new ApiCallAsyncResourceFactory(descriptors.containerListTemplates, baseClient.container.listTemplates).getApiResource,
105
109
  /** List Volumes belonging to a Project. */
106
110
  listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
111
+ /** Get Container Template statistics. */
112
+ getTemplateStatistics: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplateStatistics, baseClient.container.getTemplateStatistics).getApiResource,
113
+ /** Get Container Template statistics by category. */
114
+ getTemplateStatisticsByCategory: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplateStatisticsByCategory, baseClient.container.getTemplateStatisticsByCategory).getApiResource,
107
115
  });
108
116
  const buildContractApi = (baseClient) => ({
109
117
  /** Return the BaseItem of the Contract with the given ID. */
@@ -40,6 +40,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
40
40
  projectGetUsage: this.requestFunctionFactory(descriptors.aiHostingProjectGetUsage),
41
41
  /** Links a container with a project licence. */
42
42
  projectLinkContainer: this.requestFunctionFactory(descriptors.aiHostingProjectLinkContainer),
43
+ /** Get ai hosting subscriptions of a customer. */
44
+ customerGetSubscriptions: this.requestFunctionFactory(descriptors.aiHostingCustomerGetSubscriptions),
43
45
  };
44
46
  /** The App API allows you to manage your apps within a project, and all the system softwares that are installed as dependencies. */
45
47
  app = {
@@ -168,6 +170,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
168
170
  getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
169
171
  /** Get a Service belonging to a Stack. */
170
172
  getService: this.requestFunctionFactory(descriptors.containerGetService),
173
+ /** Get a Container Template icon. */
174
+ getTemplateIcon: this.requestFunctionFactory(descriptors.containerGetTemplateIcon),
171
175
  /** Get a Container Template by ID. */
172
176
  getTemplate: this.requestFunctionFactory(descriptors.containerGetTemplate),
173
177
  /** List Stacks belonging to the executing user. */
@@ -194,6 +198,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
194
198
  startService: this.requestFunctionFactory(descriptors.containerStartService),
195
199
  /** Stop a started Service. */
196
200
  stopService: this.requestFunctionFactory(descriptors.containerStopService),
201
+ /** Get Container Template statistics. */
202
+ getTemplateStatistics: this.requestFunctionFactory(descriptors.containerGetTemplateStatistics),
203
+ /** Get Container Template statistics by category. */
204
+ getTemplateStatisticsByCategory: this.requestFunctionFactory(descriptors.containerGetTemplateStatisticsByCategory),
197
205
  };
198
206
  /** The contract API allows you to manage your contracts and orders */
199
207
  contract = {
@@ -448,6 +448,12 @@ export const containerGetService = {
448
448
  method: "GET",
449
449
  operationId: "container-get-service",
450
450
  };
451
+ /** Get a Container Template icon. */
452
+ export const containerGetTemplateIcon = {
453
+ path: "/v2/container-templates/{templateId}/icon",
454
+ method: "GET",
455
+ operationId: "container-get-template-icon",
456
+ };
451
457
  /** Get a Container Template by ID. */
452
458
  export const containerGetTemplate = {
453
459
  path: "/v2/container-templates/{templateId}",
@@ -2896,3 +2902,21 @@ export const verificationVerifyCompany = {
2896
2902
  method: "POST",
2897
2903
  operationId: "verification-verify-company",
2898
2904
  };
2905
+ /** Get ai hosting subscriptions of a customer. */
2906
+ export const aiHostingCustomerGetSubscriptions = {
2907
+ path: "/v2/customers/{customerId}/ai-subscriptions",
2908
+ method: "GET",
2909
+ operationId: "ai-hosting-customer-get-subscriptions",
2910
+ };
2911
+ /** Get Container Template statistics. */
2912
+ export const containerGetTemplateStatistics = {
2913
+ path: "/v2/container-templates/{templateId}/statistics",
2914
+ method: "GET",
2915
+ operationId: "container-get-template-statistics",
2916
+ };
2917
+ /** Get Container Template statistics by category. */
2918
+ export const containerGetTemplateStatisticsByCategory = {
2919
+ path: "/v2/container-template-categories/{category}/statistics",
2920
+ method: "GET",
2921
+ operationId: "container-get-template-statistics-by-category",
2922
+ };
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.397.0';
1
+ export const MittwaldAPIClientVersion = '4.405.0';
@@ -7,6 +7,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
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
+ subscriptionId?: string | undefined;
13
+ } | undefined;
10
14
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
11
15
  /** Get a key of a customer. */
12
16
  customerGetKey: (conf: {
@@ -25,6 +29,7 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
25
29
  name: string;
26
30
  projectId?: string | undefined;
27
31
  rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
32
+ subscriptionId?: string | undefined;
28
33
  tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
29
34
  }>;
30
35
  /** Get a list of currently active models. */
@@ -43,6 +48,7 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
43
48
  queryParameters?: {
44
49
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
45
50
  topUsageCount?: number | undefined;
51
+ subscriptionId?: string | undefined;
46
52
  } | undefined;
47
53
  }) => import("@mittwald/react-use-promise").AsyncResource<{
48
54
  customerId: string;
@@ -51,6 +57,7 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
51
57
  modelTermsApprovalRequired: boolean;
52
58
  nextTokenReset: string;
53
59
  rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
60
+ subscriptionId?: string | undefined;
54
61
  tokens: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsageBig;
55
62
  topUsages?: {
56
63
  keyId?: string;
@@ -71,6 +78,10 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
71
78
  headers?: {
72
79
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
73
80
  } | undefined;
81
+ queryParameters?: {
82
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
83
+ subscriptionId?: string | undefined;
84
+ } | undefined;
74
85
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingKey[]>;
75
86
  /** Get a key of a project. */
76
87
  projectGetKey: (conf: {
@@ -89,6 +100,7 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
89
100
  name: string;
90
101
  projectId?: string | undefined;
91
102
  rateLimit: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingRateLimit;
103
+ subscriptionId?: string | undefined;
92
104
  tokenUsage: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingTokenUsage;
93
105
  }>;
94
106
  /** Get a list of currently active models. */
@@ -104,12 +116,25 @@ declare const buildAiHostingApi: (baseClient: MittwaldAPIV2Client) => {
104
116
  headers?: {
105
117
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
106
118
  } | undefined;
119
+ queryParameters?: {
120
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
121
+ subscriptionId?: string | undefined;
122
+ } | undefined;
107
123
  }) => import("@mittwald/react-use-promise").AsyncResource<{
108
124
  keys: import("./types.js").MittwaldAPIV2.Components.Schemas.AihostingPlanUsage;
109
125
  modelTermsApprovalRequired: boolean;
110
126
  nextTokenReset?: string | undefined;
111
127
  projectId: string;
112
128
  }>;
129
+ /** Get ai hosting subscriptions of a customer. */
130
+ customerGetSubscriptions: (conf: {
131
+ customerId: string;
132
+ headers?: {
133
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
134
+ } | undefined;
135
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
136
+ subscriptionIds: string[];
137
+ }>;
113
138
  };
114
139
  declare const buildAppApi: (baseClient: MittwaldAPIV2Client) => {
115
140
  /** Get an App. */
@@ -669,6 +694,13 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
669
694
  status: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceStatus;
670
695
  statusSetAt: string;
671
696
  }>;
697
+ /** Get a Container Template icon. */
698
+ getTemplateIcon: (conf: {
699
+ templateId: string;
700
+ headers?: {
701
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
702
+ } | undefined;
703
+ }) => import("@mittwald/react-use-promise").AsyncResource<string>;
672
704
  /** Get a Container Template by ID. */
673
705
  getTemplate: (conf: {
674
706
  templateId: string;
@@ -677,29 +709,42 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
677
709
  } | undefined;
678
710
  }) => import("@mittwald/react-use-promise").AsyncResource<{
679
711
  categories: string[];
680
- description: {
681
- de: string;
682
- en: string;
683
- };
712
+ description: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
684
713
  developer: string;
685
714
  domains?: {
686
715
  port: string;
716
+ purpose?: string;
687
717
  service: string;
688
718
  userInput: string;
689
719
  }[] | undefined;
690
- icon: string;
720
+ help?: {
721
+ alerts?: {
722
+ content: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
723
+ heading: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
724
+ link?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
725
+ linkText?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
726
+ status: string;
727
+ }[];
728
+ technicalDetails?: {
729
+ key: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
730
+ value: string;
731
+ }[];
732
+ } | undefined;
733
+ iconUrl: string;
691
734
  id: string;
692
- license?: string | undefined;
735
+ license?: {
736
+ link?: string;
737
+ name: string;
738
+ } | undefined;
693
739
  manifestVersion: string;
694
- name: string;
740
+ name: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
695
741
  repository?: string | undefined;
696
- tagline: {
697
- de: string;
698
- en: string;
699
- };
742
+ supportLink?: string | undefined;
743
+ tagline: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
700
744
  userInputs?: {
701
745
  dataSource?: string;
702
746
  defaultValue?: string;
747
+ label?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateTranslatedString;
703
748
  name: string;
704
749
  required: boolean;
705
750
  validationSchema?: string;
@@ -765,6 +810,7 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
765
810
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
766
811
  category?: string | undefined;
767
812
  searchTerm?: string | undefined;
813
+ type?: "component" | "standalone" | undefined;
768
814
  limit?: number | undefined;
769
815
  skip?: number | undefined;
770
816
  page?: number | undefined;
@@ -787,6 +833,27 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
787
833
  page?: number | undefined;
788
834
  } | undefined;
789
835
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
836
+ /** Get Container Template statistics. */
837
+ getTemplateStatistics: (conf: {
838
+ templateId: string;
839
+ headers?: {
840
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
841
+ } | undefined;
842
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
843
+ id: string;
844
+ installations: number;
845
+ installations30Days: number;
846
+ }>;
847
+ /** Get Container Template statistics by category. */
848
+ getTemplateStatisticsByCategory: (conf: {
849
+ category: string;
850
+ headers?: {
851
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
852
+ } | undefined;
853
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
854
+ category: string;
855
+ templates: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplateStatsResponse[];
856
+ }>;
790
857
  };
791
858
  declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
792
859
  /** Return the BaseItem of the Contract with the given ID. */