@mittwald/api-client 4.252.0 → 4.254.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.
@@ -48,6 +48,8 @@ const buildBackupApi = (baseClient) => ({
48
48
  getProjectBackupSchedule: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupSchedule, baseClient.backup.getProjectBackupSchedule).getApiResource,
49
49
  /** Get a ProjectBackup. */
50
50
  getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
51
+ /** Get table of contents for a ProjectBackup. */
52
+ getProjectBackupDirectories: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackupDirectories, baseClient.backup.getProjectBackupDirectories).getApiResource,
51
53
  });
52
54
  const buildContainerApi = (baseClient) => ({
53
55
  /** List Registries belonging to a Project. */
@@ -86,6 +86,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
86
86
  getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
87
87
  /** Delete a ProjectBackup. */
88
88
  deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
89
+ /** Get table of contents for a ProjectBackup. */
90
+ getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
91
+ /** Restore a ProjectBackup's path. */
92
+ requestProjectBackupRestorePath: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestorePath),
89
93
  /** Change the description of a ProjectBackup. */
90
94
  updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
91
95
  };
@@ -220,6 +220,18 @@ export const backupDeleteProjectBackup = {
220
220
  method: "DELETE",
221
221
  operationId: "backup-delete-project-backup",
222
222
  };
223
+ /** Get table of contents for a ProjectBackup. */
224
+ export const backupGetProjectBackupDirectories = {
225
+ path: "/v2/project-backups/{projectBackupId}/path",
226
+ method: "GET",
227
+ operationId: "backup-get-project-backup-directories",
228
+ };
229
+ /** Restore a ProjectBackup's path. */
230
+ export const backupRequestProjectBackupRestorePath = {
231
+ path: "/v2/project-backups/{projectBackupId}/restore-path",
232
+ method: "POST",
233
+ operationId: "backup-request-project-backup-restore-path",
234
+ };
223
235
  /** Change the description of a ProjectBackup. */
224
236
  export const backupUpdateProjectBackupDescription = {
225
237
  path: "/v2/project-backups/{projectBackupId}/description",
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.251.1';
1
+ export const MittwaldAPIClientVersion = '4.253.0';
@@ -344,8 +344,31 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
344
344
  parentId?: string | undefined;
345
345
  projectId: string;
346
346
  requestedAt: string;
347
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
347
348
  status: string;
348
349
  }>;
350
+ /** Get table of contents for a ProjectBackup. */
351
+ getProjectBackupDirectories: (conf: {
352
+ projectBackupId: string;
353
+ headers?: {
354
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
355
+ "x-access-token"?: string | undefined;
356
+ } | undefined;
357
+ queryParameters?: {
358
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
359
+ directory?: string | undefined;
360
+ } | undefined;
361
+ }) => import("@mittwald/react-use-promise").AsyncResource<{
362
+ absolutePath: string;
363
+ isDirectory?: boolean | undefined;
364
+ isExecutable?: boolean | undefined;
365
+ isFile?: boolean | undefined;
366
+ isSymlink?: boolean | undefined;
367
+ items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
368
+ name: string;
369
+ size: number;
370
+ target?: string | undefined;
371
+ }>;
349
372
  };
350
373
  declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
351
374
  /** List Registries belonging to a Project. */
@@ -1913,6 +1913,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
1913
1913
  parentId?: string | undefined;
1914
1914
  projectId: string;
1915
1915
  requestedAt: string;
1916
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
1916
1917
  status: string;
1917
1918
  }, 201, "application/json"> | import("@mittwald/api-client-commons").Response<{
1918
1919
  [x: string]: unknown;
@@ -1949,6 +1950,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
1949
1950
  parentId?: string | undefined;
1950
1951
  projectId: string;
1951
1952
  requestedAt: string;
1953
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
1952
1954
  status: string;
1953
1955
  }, 201, "application/json"> | import("@mittwald/api-client-commons").Response<{
1954
1956
  [x: string]: unknown;
@@ -2171,6 +2173,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2171
2173
  parentId?: string | undefined;
2172
2174
  projectId: string;
2173
2175
  requestedAt: string;
2176
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
2174
2177
  status: string;
2175
2178
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2176
2179
  [x: string]: unknown;
@@ -2202,6 +2205,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2202
2205
  parentId?: string | undefined;
2203
2206
  projectId: string;
2204
2207
  requestedAt: string;
2208
+ restorePath?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath | undefined;
2205
2209
  status: string;
2206
2210
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2207
2211
  [x: string]: unknown;
@@ -2258,6 +2262,167 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
2258
2262
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
2259
2263
  [x: string]: unknown;
2260
2264
  }, 429, "application/json">>>;
2265
+ /** Get table of contents for a ProjectBackup. */
2266
+ getProjectBackupDirectories: (request: {
2267
+ projectBackupId: string;
2268
+ headers?: {
2269
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2270
+ "x-access-token"?: string | undefined;
2271
+ } | undefined;
2272
+ queryParameters?: {
2273
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2274
+ directory?: string | undefined;
2275
+ } | undefined;
2276
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
2277
+ headers?: Partial<{
2278
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2279
+ }>;
2280
+ } & {
2281
+ pathParameters: {
2282
+ projectBackupId: string;
2283
+ };
2284
+ } & {
2285
+ queryParameters: {
2286
+ directory?: string | undefined;
2287
+ } & Partial<{
2288
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2289
+ }>;
2290
+ } & {
2291
+ headers: {
2292
+ "x-access-token"?: string | undefined;
2293
+ } & Partial<{
2294
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2295
+ }>;
2296
+ }, import("@mittwald/api-client-commons").Response<{
2297
+ absolutePath: string;
2298
+ isDirectory?: boolean | undefined;
2299
+ isExecutable?: boolean | undefined;
2300
+ isFile?: boolean | undefined;
2301
+ isSymlink?: boolean | undefined;
2302
+ items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
2303
+ name: string;
2304
+ size: number;
2305
+ target?: string | undefined;
2306
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2307
+ [x: string]: unknown;
2308
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2309
+ [x: string]: unknown;
2310
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
2311
+ [x: string]: unknown;
2312
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
2313
+ [x: string]: unknown;
2314
+ }, 502, "application/json"> | import("@mittwald/api-client-commons").Response<{
2315
+ [x: string]: unknown;
2316
+ }, 503, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2317
+ headers?: Partial<{
2318
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2319
+ }>;
2320
+ } & {
2321
+ pathParameters: {
2322
+ projectBackupId: string;
2323
+ };
2324
+ } & {
2325
+ queryParameters: {
2326
+ directory?: string | undefined;
2327
+ } & Partial<{
2328
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2329
+ }>;
2330
+ } & {
2331
+ headers: {
2332
+ "x-access-token"?: string | undefined;
2333
+ } & Partial<{
2334
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2335
+ }>;
2336
+ }, import("@mittwald/api-client-commons").Response<{
2337
+ absolutePath: string;
2338
+ isDirectory?: boolean | undefined;
2339
+ isExecutable?: boolean | undefined;
2340
+ isFile?: boolean | undefined;
2341
+ isSymlink?: boolean | undefined;
2342
+ items?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[] | undefined;
2343
+ name: string;
2344
+ size: number;
2345
+ target?: string | undefined;
2346
+ }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
2347
+ [x: string]: unknown;
2348
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2349
+ [x: string]: unknown;
2350
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
2351
+ [x: string]: unknown;
2352
+ }, 429, "application/json"> | import("@mittwald/api-client-commons").Response<{
2353
+ [x: string]: unknown;
2354
+ }, 502, "application/json"> | import("@mittwald/api-client-commons").Response<{
2355
+ [x: string]: unknown;
2356
+ }, 503, "application/json">>>;
2357
+ /** Restore a ProjectBackup's path. */
2358
+ requestProjectBackupRestorePath: (request: {
2359
+ data: {
2360
+ sourcePath: string;
2361
+ clearTargetPath?: boolean | undefined;
2362
+ targetPath?: string | undefined;
2363
+ };
2364
+ projectBackupId: string;
2365
+ headers?: {
2366
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
2367
+ "x-access-token"?: string | undefined;
2368
+ } | undefined;
2369
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
2370
+ data: {
2371
+ clearTargetPath?: boolean | undefined;
2372
+ sourcePath: string;
2373
+ targetPath?: string | undefined;
2374
+ };
2375
+ } & {
2376
+ pathParameters: {
2377
+ projectBackupId: string;
2378
+ };
2379
+ } & {
2380
+ headers?: Partial<{
2381
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2382
+ }>;
2383
+ } & {
2384
+ headers: {
2385
+ "x-access-token"?: string | undefined;
2386
+ } & Partial<{
2387
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2388
+ }>;
2389
+ }, import("@mittwald/api-client-commons").Response<{}, 204, "empty"> | import("@mittwald/api-client-commons").Response<{
2390
+ [x: string]: unknown;
2391
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2392
+ [x: string]: unknown;
2393
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2394
+ [x: string]: unknown;
2395
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
2396
+ [x: string]: unknown;
2397
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
2398
+ data: {
2399
+ clearTargetPath?: boolean | undefined;
2400
+ sourcePath: string;
2401
+ targetPath?: string | undefined;
2402
+ };
2403
+ } & {
2404
+ pathParameters: {
2405
+ projectBackupId: string;
2406
+ };
2407
+ } & {
2408
+ headers?: Partial<{
2409
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2410
+ }>;
2411
+ } & {
2412
+ headers: {
2413
+ "x-access-token"?: string | undefined;
2414
+ } & Partial<{
2415
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
2416
+ }>;
2417
+ }, import("@mittwald/api-client-commons").Response<{}, 204, "empty"> | import("@mittwald/api-client-commons").Response<{
2418
+ [x: string]: unknown;
2419
+ }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
2420
+ [x: string]: unknown;
2421
+ }, 403, "application/json"> | import("@mittwald/api-client-commons").Response<{
2422
+ [x: string]: unknown;
2423
+ }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
2424
+ [x: string]: unknown;
2425
+ }, 429, "application/json">>>;
2261
2426
  /** Change the description of a ProjectBackup. */
2262
2427
  updateProjectBackupDescription: (request: {
2263
2428
  projectBackupId: string;
@@ -77,6 +77,10 @@ export declare const backupUpdateProjectBackupSchedule: OpenAPIOperation<Request
77
77
  export declare const backupGetProjectBackup: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
78
78
  /** Delete a ProjectBackup. */
79
79
  export declare const backupDeleteProjectBackup: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupId.Delete.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
80
+ /** Get table of contents for a ProjectBackup. */
81
+ export declare const backupGetProjectBackupDirectories: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$502.Content.ApplicationJson>, 502, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.$503.Content.ApplicationJson>, 503, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdPath.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
82
+ /** Restore a ProjectBackup's path. */
83
+ export declare const backupRequestProjectBackupRestorePath: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdRestorePath.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
80
84
  /** Change the description of a ProjectBackup. */
81
85
  export declare const backupUpdateProjectBackupDescription: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Parameters.Query>, Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.$429.Content.ApplicationJson>, 429, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectBackupsProjectBackupIdDescription.Patch.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
82
86
  /** List Registries belonging to a Project. */
@@ -150,6 +150,14 @@ export declare namespace MittwaldAPIV2 {
150
150
  type RequestData = InferredRequestData<typeof descriptors.backupDeleteProjectBackup>;
151
151
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.backupDeleteProjectBackup, TStatus>;
152
152
  }
153
+ namespace BackupGetProjectBackupDirectories {
154
+ type RequestData = InferredRequestData<typeof descriptors.backupGetProjectBackupDirectories>;
155
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.backupGetProjectBackupDirectories, TStatus>;
156
+ }
157
+ namespace BackupRequestProjectBackupRestorePath {
158
+ type RequestData = InferredRequestData<typeof descriptors.backupRequestProjectBackupRestorePath>;
159
+ type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.backupRequestProjectBackupRestorePath, TStatus>;
160
+ }
153
161
  namespace BackupUpdateProjectBackupDescription {
154
162
  type RequestData = InferredRequestData<typeof descriptors.backupUpdateProjectBackupDescription>;
155
163
  type ResponseData<TStatus extends HttpStatus = 200> = InferredResponseData<typeof descriptors.backupUpdateProjectBackupDescription, TStatus>;
@@ -1989,6 +1997,7 @@ export declare namespace MittwaldAPIV2 {
1989
1997
  current?: string;
1990
1998
  desired: string;
1991
1999
  }
2000
+ type BackupRestorePathPhase = "running" | "completed";
1992
2001
  type BackupBackupSortOrder = "oldestFirst" | "newestFirst";
1993
2002
  interface BackupBackupTemplate {
1994
2003
  expirationTime: string;
@@ -2012,6 +2021,7 @@ export declare namespace MittwaldAPIV2 {
2012
2021
  parentId?: string;
2013
2022
  projectId: string;
2014
2023
  requestedAt: string;
2024
+ restorePath?: MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePath;
2015
2025
  status: string;
2016
2026
  }
2017
2027
  interface BackupProjectBackupExport {
@@ -2022,6 +2032,35 @@ export declare namespace MittwaldAPIV2 {
2022
2032
  sha256Checksum?: string;
2023
2033
  withPassword: boolean;
2024
2034
  }
2035
+ interface BackupProjectBackupPath {
2036
+ absolutePath: string;
2037
+ isDirectory?: boolean;
2038
+ isExecutable?: boolean;
2039
+ isFile?: boolean;
2040
+ isSymlink?: boolean;
2041
+ items?: MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath[];
2042
+ name: string;
2043
+ size: number;
2044
+ target?: string;
2045
+ }
2046
+ interface BackupProjectBackupRestorePathRequest {
2047
+ /**
2048
+ * Whether to clear the target path before restoring. If true, existing files in the target path will be deleted before the restore. If false, existing files will be kept and may be overwritten if they exist in the backup.
2049
+ */
2050
+ clearTargetPath?: boolean;
2051
+ sourcePath: string;
2052
+ /**
2053
+ * Target path where the source path should be restored to. If not set, the target path will be determined to equal the origin source. The target path should always be a folder, no files allowed here.
2054
+ */
2055
+ targetPath?: string;
2056
+ }
2057
+ interface BackupProjectBackupRestorePath {
2058
+ clearTargetPath: boolean;
2059
+ determinedTargetPath: string;
2060
+ phase: MittwaldAPIV2.Components.Schemas.BackupRestorePathPhase;
2061
+ sourcePath: string;
2062
+ targetPath?: string;
2063
+ }
2025
2064
  interface BackupProjectBackupSchedule {
2026
2065
  createdAt?: string;
2027
2066
  /**
@@ -7255,6 +7294,122 @@ export declare namespace MittwaldAPIV2 {
7255
7294
  }
7256
7295
  }
7257
7296
  }
7297
+ namespace V2ProjectBackupsProjectBackupIdPath {
7298
+ namespace Get {
7299
+ namespace Parameters {
7300
+ type Path = {
7301
+ projectBackupId: string;
7302
+ };
7303
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
7304
+ type Query = {
7305
+ directory?: string;
7306
+ };
7307
+ }
7308
+ namespace Responses {
7309
+ namespace $200 {
7310
+ namespace Content {
7311
+ type ApplicationJson = MittwaldAPIV2.Components.Schemas.BackupProjectBackupPath;
7312
+ }
7313
+ }
7314
+ namespace $403 {
7315
+ namespace Content {
7316
+ interface ApplicationJson {
7317
+ [k: string]: unknown;
7318
+ }
7319
+ }
7320
+ }
7321
+ namespace $404 {
7322
+ namespace Content {
7323
+ interface ApplicationJson {
7324
+ [k: string]: unknown;
7325
+ }
7326
+ }
7327
+ }
7328
+ namespace $429 {
7329
+ namespace Content {
7330
+ interface ApplicationJson {
7331
+ [k: string]: unknown;
7332
+ }
7333
+ }
7334
+ }
7335
+ namespace $502 {
7336
+ namespace Content {
7337
+ interface ApplicationJson {
7338
+ [k: string]: unknown;
7339
+ }
7340
+ }
7341
+ }
7342
+ namespace $503 {
7343
+ namespace Content {
7344
+ interface ApplicationJson {
7345
+ [k: string]: unknown;
7346
+ }
7347
+ }
7348
+ }
7349
+ namespace Default {
7350
+ namespace Content {
7351
+ interface ApplicationJson {
7352
+ [k: string]: unknown;
7353
+ }
7354
+ }
7355
+ }
7356
+ }
7357
+ }
7358
+ }
7359
+ namespace V2ProjectBackupsProjectBackupIdRestorePath {
7360
+ namespace Post {
7361
+ namespace Parameters {
7362
+ type Path = {
7363
+ projectBackupId: string;
7364
+ };
7365
+ type RequestBody = MittwaldAPIV2.Components.Schemas.BackupProjectBackupRestorePathRequest;
7366
+ type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
7367
+ type Query = {};
7368
+ }
7369
+ namespace Responses {
7370
+ namespace $204 {
7371
+ namespace Content {
7372
+ type Empty = unknown;
7373
+ }
7374
+ }
7375
+ namespace $400 {
7376
+ namespace Content {
7377
+ interface ApplicationJson {
7378
+ [k: string]: unknown;
7379
+ }
7380
+ }
7381
+ }
7382
+ namespace $403 {
7383
+ namespace Content {
7384
+ interface ApplicationJson {
7385
+ [k: string]: unknown;
7386
+ }
7387
+ }
7388
+ }
7389
+ namespace $404 {
7390
+ namespace Content {
7391
+ interface ApplicationJson {
7392
+ [k: string]: unknown;
7393
+ }
7394
+ }
7395
+ }
7396
+ namespace $429 {
7397
+ namespace Content {
7398
+ interface ApplicationJson {
7399
+ [k: string]: unknown;
7400
+ }
7401
+ }
7402
+ }
7403
+ namespace Default {
7404
+ namespace Content {
7405
+ interface ApplicationJson {
7406
+ [k: string]: unknown;
7407
+ }
7408
+ }
7409
+ }
7410
+ }
7411
+ }
7412
+ }
7258
7413
  namespace V2ProjectBackupsProjectBackupIdDescription {
7259
7414
  namespace Patch {
7260
7415
  namespace Parameters {
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.251.1';
1
+ export declare const MittwaldAPIClientVersion = '4.253.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.252.0",
3
+ "version": "4.254.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.252.0",
49
+ "@mittwald/api-client-commons": "^4.254.0",
50
50
  "browser-or-node": "^3.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@mittwald/api-code-generator": "^4.252.0",
53
+ "@mittwald/api-code-generator": "^4.254.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": "6315ce53708d25489029f102ebf016765ef0db44"
83
+ "gitHead": "b40ee361b2af775dafd10d3badd35eeada7f2859"
84
84
  }