@mittwald/api-client 4.392.0 → 4.393.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.
@@ -92,12 +92,16 @@ const buildContainerApi = (baseClient) => ({
92
92
  getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
93
93
  /** Get a Service belonging to a Stack. */
94
94
  getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
95
+ /** Get a Container Template by ID. */
96
+ getTemplate: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplate, baseClient.container.getTemplate).getApiResource,
95
97
  /** List Stacks belonging to the executing user. */
96
98
  listSelfStacks: new ApiCallAsyncResourceFactory(descriptors.containerListSelfStacks, baseClient.container.listSelfStacks).getApiResource,
97
99
  /** List Services belonging to a Project. */
98
100
  listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
99
101
  /** List Volumes belonging to a Stack. */
100
102
  listStackVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListStackVolumes, baseClient.container.listStackVolumes).getApiResource,
103
+ /** List Container Templates. */
104
+ listTemplates: new ApiCallAsyncResourceFactory(descriptors.containerListTemplates, baseClient.container.listTemplates).getApiResource,
101
105
  /** List Volumes belonging to a Project. */
102
106
  listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
103
107
  });
@@ -168,12 +168,16 @@ export class MittwaldAPIV2Client extends ApiClientBase {
168
168
  getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
169
169
  /** Get a Service belonging to a Stack. */
170
170
  getService: this.requestFunctionFactory(descriptors.containerGetService),
171
+ /** Get a Container Template by ID. */
172
+ getTemplate: this.requestFunctionFactory(descriptors.containerGetTemplate),
171
173
  /** List Stacks belonging to the executing user. */
172
174
  listSelfStacks: this.requestFunctionFactory(descriptors.containerListSelfStacks),
173
175
  /** List Services belonging to a Project. */
174
176
  listServices: this.requestFunctionFactory(descriptors.containerListServices),
175
177
  /** List Volumes belonging to a Stack. */
176
178
  listStackVolumes: this.requestFunctionFactory(descriptors.containerListStackVolumes),
179
+ /** List Container Templates. */
180
+ listTemplates: this.requestFunctionFactory(descriptors.containerListTemplates),
177
181
  /** List Volumes belonging to a Project. */
178
182
  listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
179
183
  /** Pull image and recreate */
@@ -448,6 +448,12 @@ export const containerGetService = {
448
448
  method: "GET",
449
449
  operationId: "container-get-service",
450
450
  };
451
+ /** Get a Container Template by ID. */
452
+ export const containerGetTemplate = {
453
+ path: "/v2/container-templates/{templateId}",
454
+ method: "GET",
455
+ operationId: "container-get-template",
456
+ };
451
457
  /** List Stacks belonging to the executing user. */
452
458
  export const containerListSelfStacks = {
453
459
  path: "/v2/stacks",
@@ -466,6 +472,12 @@ export const containerListStackVolumes = {
466
472
  method: "GET",
467
473
  operationId: "container-list-stack-volumes",
468
474
  };
475
+ /** List Container Templates. */
476
+ export const containerListTemplates = {
477
+ path: "/v2/container-templates",
478
+ method: "GET",
479
+ operationId: "container-list-templates",
480
+ };
469
481
  /** List Volumes belonging to a Project. */
470
482
  export const containerListVolumes = {
471
483
  path: "/v2/projects/{projectId}/volumes",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.391.0';
1
+ export const MittwaldAPIClientVersion = '4.392.0';
@@ -668,6 +668,44 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
668
668
  status: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceStatus;
669
669
  statusSetAt: string;
670
670
  }>;
671
+ /** Get a Container Template by ID. */
672
+ getTemplate: (conf: {
673
+ templateId: string;
674
+ headers?: {
675
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
676
+ } | undefined;
677
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
678
+ categories: string[];
679
+ description: {
680
+ de: string;
681
+ en: string;
682
+ };
683
+ developer: string;
684
+ domains?: {
685
+ port: string;
686
+ service: string;
687
+ userInput: string;
688
+ }[] | undefined;
689
+ icon: string;
690
+ id: string;
691
+ license?: string | undefined;
692
+ manifestVersion: string;
693
+ name: string;
694
+ repository?: string | undefined;
695
+ tagline: {
696
+ de: string;
697
+ en: string;
698
+ };
699
+ userInputs?: {
700
+ dataSource?: string;
701
+ defaultValue?: string;
702
+ name: string;
703
+ required: boolean;
704
+ validationSchema?: string;
705
+ }[] | undefined;
706
+ version: string;
707
+ website?: string | undefined;
708
+ }>;
671
709
  /** List Stacks belonging to the executing user. */
672
710
  listSelfStacks: (conf?: {
673
711
  headers?: {
@@ -717,6 +755,20 @@ declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
717
755
  page?: number | undefined;
718
756
  } | undefined;
719
757
  }) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
758
+ /** List Container Templates. */
759
+ listTemplates: (conf?: {
760
+ headers?: {
761
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
762
+ } | undefined;
763
+ queryParameters?: {
764
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
765
+ category?: string | undefined;
766
+ searchTerm?: string | undefined;
767
+ limit?: number | undefined;
768
+ skip?: number | undefined;
769
+ page?: number | undefined;
770
+ } | undefined;
771
+ } | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplate[]>;
720
772
  /** List Volumes belonging to a Project. */
721
773
  listVolumes: (conf: {
722
774
  projectId: string;
@@ -5081,6 +5081,107 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5081
5081
  }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5082
5082
  [x: string]: unknown;
5083
5083
  }, 500, "application/json">>>;
5084
+ /** Get a Container Template by ID. */
5085
+ getTemplate: (request: {
5086
+ templateId: string;
5087
+ headers?: {
5088
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
5089
+ } | undefined;
5090
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
5091
+ headers?: Partial<{
5092
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5093
+ }>;
5094
+ } & {
5095
+ pathParameters: {
5096
+ templateId: string;
5097
+ };
5098
+ }, import("@mittwald/api-client-commons").Response<{
5099
+ categories: string[];
5100
+ description: {
5101
+ de: string;
5102
+ en: string;
5103
+ };
5104
+ developer: string;
5105
+ domains?: {
5106
+ port: string;
5107
+ service: string;
5108
+ userInput: string;
5109
+ }[] | undefined;
5110
+ icon: string;
5111
+ id: string;
5112
+ license?: string | undefined;
5113
+ manifestVersion: string;
5114
+ name: string;
5115
+ repository?: string | undefined;
5116
+ tagline: {
5117
+ de: string;
5118
+ en: string;
5119
+ };
5120
+ userInputs?: {
5121
+ dataSource?: string;
5122
+ defaultValue?: string;
5123
+ name: string;
5124
+ required: boolean;
5125
+ validationSchema?: string;
5126
+ }[] | undefined;
5127
+ version: string;
5128
+ website?: string | undefined;
5129
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5130
+ [x: string]: unknown;
5131
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
5132
+ [x: string]: unknown;
5133
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
5134
+ [x: string]: unknown;
5135
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5136
+ [x: string]: unknown;
5137
+ }, 500, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
5138
+ headers?: Partial<{
5139
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5140
+ }>;
5141
+ } & {
5142
+ pathParameters: {
5143
+ templateId: string;
5144
+ };
5145
+ }, import("@mittwald/api-client-commons").Response<{
5146
+ categories: string[];
5147
+ description: {
5148
+ de: string;
5149
+ en: string;
5150
+ };
5151
+ developer: string;
5152
+ domains?: {
5153
+ port: string;
5154
+ service: string;
5155
+ userInput: string;
5156
+ }[] | undefined;
5157
+ icon: string;
5158
+ id: string;
5159
+ license?: string | undefined;
5160
+ manifestVersion: string;
5161
+ name: string;
5162
+ repository?: string | undefined;
5163
+ tagline: {
5164
+ de: string;
5165
+ en: string;
5166
+ };
5167
+ userInputs?: {
5168
+ dataSource?: string;
5169
+ defaultValue?: string;
5170
+ name: string;
5171
+ required: boolean;
5172
+ validationSchema?: string;
5173
+ }[] | undefined;
5174
+ version: string;
5175
+ website?: string | undefined;
5176
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5177
+ [x: string]: unknown;
5178
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
5179
+ [x: string]: unknown;
5180
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
5181
+ [x: string]: unknown;
5182
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5183
+ [x: string]: unknown;
5184
+ }, 500, "application/json">>>;
5084
5185
  /** List Stacks belonging to the executing user. */
5085
5186
  listSelfStacks: (request?: {
5086
5187
  headers?: {
@@ -5322,6 +5423,60 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
5322
5423
  }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5323
5424
  [x: string]: unknown;
5324
5425
  }, 500, "application/json">>>;
5426
+ /** List Container Templates. */
5427
+ listTemplates: (request?: {
5428
+ headers?: {
5429
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
5430
+ } | undefined;
5431
+ queryParameters?: {
5432
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
5433
+ category?: string | undefined;
5434
+ searchTerm?: string | undefined;
5435
+ limit?: number | undefined;
5436
+ skip?: number | undefined;
5437
+ page?: number | undefined;
5438
+ } | undefined;
5439
+ } | null | undefined, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
5440
+ headers?: Partial<{
5441
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5442
+ }>;
5443
+ } & {
5444
+ queryParameters: {
5445
+ category?: string | undefined;
5446
+ searchTerm?: string | undefined;
5447
+ limit?: number | undefined;
5448
+ skip?: number | undefined;
5449
+ page?: number | undefined;
5450
+ } & Partial<{
5451
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5452
+ }>;
5453
+ }, import("@mittwald/api-client-commons").Response<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplate[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5454
+ [x: string]: unknown;
5455
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
5456
+ [x: string]: unknown;
5457
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5458
+ [x: string]: unknown;
5459
+ }, 500, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
5460
+ headers?: Partial<{
5461
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5462
+ }>;
5463
+ } & {
5464
+ queryParameters: {
5465
+ category?: string | undefined;
5466
+ searchTerm?: string | undefined;
5467
+ limit?: number | undefined;
5468
+ skip?: number | undefined;
5469
+ page?: number | undefined;
5470
+ } & Partial<{
5471
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
5472
+ }>;
5473
+ }, import("@mittwald/api-client-commons").Response<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerTemplate[], 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
5474
+ [x: string]: unknown;
5475
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
5476
+ [x: string]: unknown;
5477
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
5478
+ [x: string]: unknown;
5479
+ }, 500, "application/json">>>;
5325
5480
  /** List Volumes belonging to a Project. */
5326
5481
  listVolumes: (request: {
5327
5482
  projectId: string;
@@ -153,12 +153,16 @@ export declare const containerGetContainerImageConfig: OpenAPIOperation<RequestT
153
153
  export declare const containerGetServiceLogs: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$200.Content.TextPlain>, 200, "text/plain"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.$503.Content.ApplicationJson>, 503, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceIdLogs.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
154
154
  /** Get a Service belonging to a Stack. */
155
155
  export declare const containerGetService: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$412.Content.ApplicationJson>, 412, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdServicesServiceId.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
156
+ /** Get a Container Template by ID. */
157
+ export declare const containerGetTemplate: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplatesTemplateId.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
156
158
  /** List Stacks belonging to the executing user. */
157
159
  export declare const containerListSelfStacks: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Stacks.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
158
160
  /** List Services belonging to a Project. */
159
161
  export declare const containerListServices: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$412.Content.ApplicationJson>, 412, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdServices.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
160
162
  /** List Volumes belonging to a Stack. */
161
163
  export declare const containerListStackVolumes: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2StacksStackIdVolumes.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
164
+ /** List Container Templates. */
165
+ export declare const containerListTemplates: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ContainerTemplates.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
162
166
  /** List Volumes belonging to a Project. */
163
167
  export declare const containerListVolumes: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.$500.Content.ApplicationJson>, 500, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdVolumes.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
164
168
  /** Pull image and recreate */
@@ -302,6 +302,10 @@ export declare namespace MittwaldAPIV2 {
302
302
  type RequestData = InferredRequestData<typeof descriptors.containerGetService>;
303
303
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerGetService, TStatus>;
304
304
  }
305
+ namespace ContainerGetTemplate {
306
+ type RequestData = InferredRequestData<typeof descriptors.containerGetTemplate>;
307
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerGetTemplate, TStatus>;
308
+ }
305
309
  namespace ContainerListSelfStacks {
306
310
  type RequestData = InferredRequestData<typeof descriptors.containerListSelfStacks>;
307
311
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerListSelfStacks, TStatus>;
@@ -314,6 +318,10 @@ export declare namespace MittwaldAPIV2 {
314
318
  type RequestData = InferredRequestData<typeof descriptors.containerListStackVolumes>;
315
319
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerListStackVolumes, TStatus>;
316
320
  }
321
+ namespace ContainerListTemplates {
322
+ type RequestData = InferredRequestData<typeof descriptors.containerListTemplates>;
323
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerListTemplates, TStatus>;
324
+ }
317
325
  namespace ContainerListVolumes {
318
326
  type RequestData = InferredRequestData<typeof descriptors.containerListVolumes>;
319
327
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.containerListVolumes, TStatus>;
@@ -2856,6 +2864,44 @@ export declare namespace MittwaldAPIV2 {
2856
2864
  } | null;
2857
2865
  volumes?: MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[];
2858
2866
  }
2867
+ interface ContainerTemplate {
2868
+ categories: string[];
2869
+ description: {
2870
+ de: string;
2871
+ en: string;
2872
+ };
2873
+ developer: string;
2874
+ domains?: {
2875
+ port: string;
2876
+ service: string;
2877
+ userInput: string;
2878
+ }[];
2879
+ icon: string;
2880
+ id: string;
2881
+ license?: string;
2882
+ /**
2883
+ * Version of the manifest for this template, e.g. '1.0'
2884
+ */
2885
+ manifestVersion: string;
2886
+ name: string;
2887
+ repository?: string;
2888
+ tagline: {
2889
+ de: string;
2890
+ en: string;
2891
+ };
2892
+ userInputs?: {
2893
+ dataSource?: string;
2894
+ defaultValue?: string;
2895
+ name: string;
2896
+ required: boolean;
2897
+ validationSchema?: string;
2898
+ }[];
2899
+ /**
2900
+ * Version of the application described by this template, e.g. 'latest'
2901
+ */
2902
+ version: string;
2903
+ website?: string;
2904
+ }
2859
2905
  interface ContainerUpdateRegistry {
2860
2906
  credentials?: MittwaldAPIV2.Components.Schemas.ContainerSetRegistryCredentials | null;
2861
2907
  description?: string;
@@ -6342,6 +6388,10 @@ export declare namespace MittwaldAPIV2 {
6342
6388
  }
6343
6389
  type VerificationEmailOrigin = "IS_MITTWALD" | "IS_NOT_MITTWALD" | "COULD_BE_MITTWALD";
6344
6390
  type ContainerVolumeSortOrder = "nameAsc" | "nameDesc" | "storageAsc" | "storageDesc";
6391
+ interface ActivitylogParameterProperty {
6392
+ aggregate?: MittwaldAPIV2.Components.Schemas.ActivitylogAggregateReference;
6393
+ name: string;
6394
+ }
6345
6395
  interface ActivitylogAppInstallationDesiredSystemSoftwareSet {
6346
6396
  changes: {
6347
6397
  after?: {
@@ -6361,10 +6411,6 @@ export declare namespace MittwaldAPIV2 {
6361
6411
  version: MittwaldAPIV2.Components.Schemas.ActivitylogParameterProperty;
6362
6412
  };
6363
6413
  }
6364
- interface ActivitylogParameterProperty {
6365
- aggregate?: MittwaldAPIV2.Components.Schemas.ActivitylogAggregateReference;
6366
- name: string;
6367
- }
6368
6414
  interface ActivitylogAppInstallationCopyRequested {
6369
6415
  changes: {
6370
6416
  after?: {
@@ -6596,20 +6642,6 @@ export declare namespace MittwaldAPIV2 {
6596
6642
  type: "user" | "extension";
6597
6643
  };
6598
6644
  }
6599
- interface ActivitylogDnsCaaRecordSet {
6600
- changes: {
6601
- after?: {
6602
- caa: {}[];
6603
- };
6604
- before?: {
6605
- caa: {}[];
6606
- };
6607
- };
6608
- name: "dns.caa-record-set";
6609
- parameters: {
6610
- domain: MittwaldAPIV2.Components.Schemas.ActivitylogParameterProperty;
6611
- };
6612
- }
6613
6645
  interface ActivitylogDatabaseMysqlUserDeleted {
6614
6646
  changes: {};
6615
6647
  name: "database.mysql-user-deleted";
@@ -6637,6 +6669,20 @@ export declare namespace MittwaldAPIV2 {
6637
6669
  [k: string]: MittwaldAPIV2.Components.Schemas.ActivitylogParameterProperty;
6638
6670
  };
6639
6671
  }
6672
+ interface ActivitylogDnsCaaRecordSet {
6673
+ changes: {
6674
+ after?: {
6675
+ caa: {}[];
6676
+ };
6677
+ before?: {
6678
+ caa: {}[];
6679
+ };
6680
+ };
6681
+ name: "dns.caa-record-set";
6682
+ parameters: {
6683
+ domain: MittwaldAPIV2.Components.Schemas.ActivitylogParameterProperty;
6684
+ };
6685
+ }
6640
6686
  interface ActivitylogDatabaseMysqlUserUpdated {
6641
6687
  changes: {
6642
6688
  after?: {
@@ -6698,6 +6744,96 @@ export declare namespace MittwaldAPIV2 {
6698
6744
  isDefaultGroup?: boolean;
6699
6745
  name: string;
6700
6746
  }
6747
+ type DomainmigrationDNSRecordType = "A" | "AAAA" | "TXT" | "MX" | "CNAME" | "SRV" | "CAA" | "NS";
6748
+ interface DomainmigrationNonMigratableDomain {
6749
+ hostname: string;
6750
+ issues: MittwaldAPIV2.Components.Schemas.DomainmigrationDomainNotMigratableReasons;
6751
+ migratable: false;
6752
+ }
6753
+ /**
6754
+ * A non-migratable-domain failure: one selected domain cannot be migrated. type is always DOMAIN_NOT_MIGRATABLE, path is the affected domain, and context.reason carries the typed reason code.
6755
+ */
6756
+ interface DomainmigrationDomainNotMigratableValidationError {
6757
+ context: {
6758
+ reason: MittwaldAPIV2.Components.Schemas.DomainmigrationDomainNotMigratableReason;
6759
+ [k: string]: string;
6760
+ };
6761
+ message: string;
6762
+ /**
6763
+ * The affected domain.
6764
+ */
6765
+ path: string;
6766
+ /**
6767
+ * Discriminator for this branch; always DOMAIN_NOT_MIGRATABLE.
6768
+ */
6769
+ type: "DOMAIN_NOT_MIGRATABLE";
6770
+ }
6771
+ interface DomainmigrationDomainNotMigratableReasons {
6772
+ reasonCodes: MittwaldAPIV2.Components.Schemas.DomainmigrationDomainNotMigratableReason[];
6773
+ }
6774
+ /**
6775
+ * Typed reason a domain cannot be migrated.
6776
+ */
6777
+ type DomainmigrationDomainNotMigratableReason = "DOMAIN_NOT_MIGRATABLE_REASON_NEED_EPP" | "DOMAIN_NOT_MIGRATABLE_REASON_TLD_NOT_SUPPORTED" | "DOMAIN_NOT_MIGRATABLE_REASON_PREMIUM_DOMAIN" | "DOMAIN_NOT_MIGRATABLE_REASON_REGISTRAR_NOT_SUPPORTED" | "DOMAIN_NOT_MIGRATABLE_REASON_NOT_ORDERABLE" | "DOMAIN_NOT_MIGRATABLE_REASON_INSUFFICIENT_STATE" | "DOMAIN_NOT_MIGRATABLE_REASON_CONTRACT_DATE_OUT_OF_RANGE";
6778
+ interface DomainmigrationMigratableDomain {
6779
+ hostname: string;
6780
+ migratable: true;
6781
+ migrationData: MittwaldAPIV2.Components.Schemas.DomainmigrationMigrationData;
6782
+ }
6783
+ interface DomainmigrationCheckMigrationResponse {
6784
+ allDomainsMigratable: boolean;
6785
+ domains: (MittwaldAPIV2.Components.Schemas.DomainmigrationMigratableDomain | MittwaldAPIV2.Components.Schemas.DomainmigrationNonMigratableDomain)[];
6786
+ generalIssues?: MittwaldAPIV2.Components.Schemas.DomainmigrationMigrationNotPossibleReasons;
6787
+ generallyPossible: boolean;
6788
+ }
6789
+ interface DomainmigrationSubdomain {
6790
+ dnsRecords: MittwaldAPIV2.Components.Schemas.DomainmigrationDNSRecord[];
6791
+ hostname: string;
6792
+ target?: string;
6793
+ }
6794
+ interface DomainmigrationDNSRecord {
6795
+ name?: string;
6796
+ ttl: number;
6797
+ type: MittwaldAPIV2.Components.Schemas.DomainmigrationDNSRecordType;
6798
+ value: string;
6799
+ }
6800
+ interface DomainmigrationMigrationData {
6801
+ dnsRecords: MittwaldAPIV2.Components.Schemas.DomainmigrationDNSRecord[];
6802
+ /**
6803
+ * Monthly net domain price in EUR cents.
6804
+ */
6805
+ monthlyPriceCents: number;
6806
+ subdomains: MittwaldAPIV2.Components.Schemas.DomainmigrationSubdomain[];
6807
+ }
6808
+ interface DomainmigrationMigrationNotPossibleReasons {
6809
+ customerIsNotAllowedToOrder: boolean;
6810
+ legacyTokenNotAuthorized: boolean;
6811
+ noDomainsInSource: boolean;
6812
+ }
6813
+ interface DomainmigrationMigration {
6814
+ createdAt?: string;
6815
+ domains: {
6816
+ coabData?: {
6817
+ dnsRecords?: MittwaldAPIV2.Components.Schemas.DomainmigrationDNSRecord[];
6818
+ handleData?: {
6819
+ handleFields?: {
6820
+ name: string;
6821
+ value: string;
6822
+ }[];
6823
+ handleRef?: string;
6824
+ };
6825
+ nameservers?: string[];
6826
+ subdomains?: MittwaldAPIV2.Components.Schemas.DomainmigrationSubdomain[];
6827
+ };
6828
+ domain: string;
6829
+ domainId: string;
6830
+ state: "pending" | "succeeded" | "failed";
6831
+ }[];
6832
+ finishedAt?: string;
6833
+ id: string;
6834
+ pAccount: string;
6835
+ projectId: string;
6836
+ }
6701
6837
  interface CommonsAddress {
6702
6838
  street: string;
6703
6839
  houseNumber: string;
@@ -10898,6 +11034,59 @@ export declare namespace MittwaldAPIV2 {
10898
11034
  }
10899
11035
  }
10900
11036
  }
11037
+ namespace V2ContainerTemplatesTemplateId {
11038
+ namespace Get {
11039
+ namespace Parameters {
11040
+ type Path = {
11041
+ templateId: string;
11042
+ };
11043
+ type Header = {};
11044
+ type Query = {};
11045
+ }
11046
+ namespace Responses {
11047
+ namespace $200 {
11048
+ namespace Content {
11049
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ContainerTemplate;
11050
+ }
11051
+ }
11052
+ namespace $400 {
11053
+ namespace Content {
11054
+ interface ApplicationJson {
11055
+ [k: string]: unknown;
11056
+ }
11057
+ }
11058
+ }
11059
+ namespace $404 {
11060
+ namespace Content {
11061
+ interface ApplicationJson {
11062
+ [k: string]: unknown;
11063
+ }
11064
+ }
11065
+ }
11066
+ namespace $429 {
11067
+ namespace Content {
11068
+ interface ApplicationJson {
11069
+ [k: string]: unknown;
11070
+ }
11071
+ }
11072
+ }
11073
+ namespace $500 {
11074
+ namespace Content {
11075
+ interface ApplicationJson {
11076
+ [k: string]: unknown;
11077
+ }
11078
+ }
11079
+ }
11080
+ namespace Default {
11081
+ namespace Content {
11082
+ interface ApplicationJson {
11083
+ [k: string]: unknown;
11084
+ }
11085
+ }
11086
+ }
11087
+ }
11088
+ }
11089
+ }
10901
11090
  namespace V2Stacks {
10902
11091
  namespace Get {
10903
11092
  namespace Parameters {
@@ -11082,6 +11271,56 @@ export declare namespace MittwaldAPIV2 {
11082
11271
  }
11083
11272
  }
11084
11273
  }
11274
+ namespace V2ContainerTemplates {
11275
+ namespace Get {
11276
+ namespace Parameters {
11277
+ type Path = {};
11278
+ type Header = {};
11279
+ type Query = {
11280
+ category?: string;
11281
+ searchTerm?: string;
11282
+ limit?: number;
11283
+ skip?: number;
11284
+ page?: number;
11285
+ };
11286
+ }
11287
+ namespace Responses {
11288
+ namespace $200 {
11289
+ namespace Content {
11290
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.ContainerTemplate[];
11291
+ }
11292
+ }
11293
+ namespace $400 {
11294
+ namespace Content {
11295
+ interface ApplicationJson {
11296
+ [k: string]: unknown;
11297
+ }
11298
+ }
11299
+ }
11300
+ namespace $429 {
11301
+ namespace Content {
11302
+ interface ApplicationJson {
11303
+ [k: string]: unknown;
11304
+ }
11305
+ }
11306
+ }
11307
+ namespace $500 {
11308
+ namespace Content {
11309
+ interface ApplicationJson {
11310
+ [k: string]: unknown;
11311
+ }
11312
+ }
11313
+ }
11314
+ namespace Default {
11315
+ namespace Content {
11316
+ interface ApplicationJson {
11317
+ [k: string]: unknown;
11318
+ }
11319
+ }
11320
+ }
11321
+ }
11322
+ }
11323
+ }
11085
11324
  namespace V2ProjectsProjectIdVolumes {
11086
11325
  namespace Get {
11087
11326
  namespace Parameters {
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.391.0';
1
+ export declare const MittwaldAPIClientVersion = '4.392.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.392.0",
3
+ "version": "4.393.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",
@@ -46,11 +46,11 @@
46
46
  "test:compile": "run tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@mittwald/api-client-commons": "^4.392.0",
49
+ "@mittwald/api-client-commons": "^4.393.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.392.0",
53
+ "@mittwald/api-code-generator": "^4.393.0",
54
54
  "@mittwald/react-use-promise": "^2.6.2",
55
55
  "@types/node": "^22.18.11",
56
56
  "@types/react": "^18.3.26",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "78c4fea940d347953e19325ca0de066dff17b67d"
83
+ "gitHead": "75f6b0c19c8f301521d31fcfec54c43e0af3fae1"
84
84
  }