@mittwald/api-client 2.0.2 → 2.0.4
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.
- package/dist/cjs/generated/v2/client.d.ts +1841 -1445
- package/dist/cjs/generated/v2/client.js +1 -1
- package/dist/cjs/generated/v2/descriptors.d.ts +4 -2
- package/dist/cjs/generated/v2/descriptors.js +9 -3
- package/dist/cjs/generated/v2/types.d.ts +82 -20
- package/dist/esm/generated/v2/client.d.ts +1841 -1445
- package/dist/esm/generated/v2/client.js +1 -1
- package/dist/esm/generated/v2/descriptors.d.ts +4 -2
- package/dist/esm/generated/v2/descriptors.js +7 -1
- package/dist/esm/generated/v2/types.d.ts +82 -20
- package/package.json +1 -1
|
@@ -245,7 +245,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
245
245
|
database = {
|
|
246
246
|
/** List MySQLDatabases belonging to a Project. */
|
|
247
247
|
listMysqlDatabases: this.requestFunctionFactory(descriptors.databaseListMysqlDatabases),
|
|
248
|
-
/** Create a MySQLDatabase with
|
|
248
|
+
/** Create a MySQLDatabase with a MySQLUser. */
|
|
249
249
|
createMysqlDatabase: this.requestFunctionFactory(descriptors.databaseCreateMysqlDatabase),
|
|
250
250
|
/** List MySQLUsers belonging to a database. */
|
|
251
251
|
listMysqlUsers: this.requestFunctionFactory(descriptors.databaseListMysqlUsers),
|
|
@@ -199,8 +199,8 @@ export declare const customerRemoveAvatar: OpenAPIOperation<RequestType<Simplify
|
|
|
199
199
|
export declare const customerResendCustomerInviteMail: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Responses.$403.Content.ApplicationJson>, 403, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2CustomerInvitesInviteIdActionsResend.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
200
200
|
/** List MySQLDatabases belonging to a Project. */
|
|
201
201
|
export declare const databaseListMysqlDatabases: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
202
|
-
/** Create a MySQLDatabase with
|
|
203
|
-
export declare const databaseCreateMysqlDatabase: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Responses.$
|
|
202
|
+
/** Create a MySQLDatabase with a MySQLUser. */
|
|
203
|
+
export declare const databaseCreateMysqlDatabase: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdMysqlDatabases.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
204
204
|
/** List MySQLUsers belonging to a database. */
|
|
205
205
|
export declare const databaseListMysqlUsers: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2MysqlDatabasesDatabaseIdUsers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
206
206
|
/** Create a MySQLUser. */
|
|
@@ -469,6 +469,8 @@ export declare const projectUpdateServerDescription: OpenAPIOperation<RequestTyp
|
|
|
469
469
|
export declare const redirectusCreateRelocation: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Responses.$204.Content.Empty>, 204, "empty"> | Response<Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Responses.$400.Content.ApplicationJson>, 400, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2Relocation.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
470
470
|
/** Register a tariff change for a legacy tariff. */
|
|
471
471
|
export declare const relocationCreateLegacyTariffChange: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Responses.$201.Content.ApplicationJson>, 201, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2LegacyTariffChange.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
472
|
+
/** Obtain a service token. */
|
|
473
|
+
export declare const servicetokenAuthenticateService: OpenAPIOperation<RequestType<Simplify<MittwaldAPIV2.Paths.V2ServicesAccessKeyIdActionsAuthenticate.Post.Parameters.RequestBody>, Simplify<MittwaldAPIV2.Paths.V2ServicesAccessKeyIdActionsAuthenticate.Post.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ServicesAccessKeyIdActionsAuthenticate.Post.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ServicesAccessKeyIdActionsAuthenticate.Post.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ServicesAccessKeyIdActionsAuthenticate.Post.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
472
474
|
/** Get all SFTPUsers for a Project. */
|
|
473
475
|
export declare const sftpUserListSftpUsers: OpenAPIOperation<RequestType<Simplify<null>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Parameters.Path>, Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Parameters.Header>>, Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Responses.$200.Content.ApplicationJson>, 200, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Responses.$404.Content.ApplicationJson>, 404, "application/json"> | Response<Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Responses.Default.Content.ApplicationJson>, "default", "application/json">>;
|
|
474
476
|
/** Create an SFTPUser for a Project. */
|
|
@@ -586,7 +586,7 @@ export const databaseListMysqlDatabases = {
|
|
|
586
586
|
method: "GET",
|
|
587
587
|
operationId: "database-list-mysql-databases",
|
|
588
588
|
};
|
|
589
|
-
/** Create a MySQLDatabase with
|
|
589
|
+
/** Create a MySQLDatabase with a MySQLUser. */
|
|
590
590
|
export const databaseCreateMysqlDatabase = {
|
|
591
591
|
path: "/v2/projects/{projectId}/mysql-databases",
|
|
592
592
|
method: "POST",
|
|
@@ -1396,6 +1396,12 @@ export const relocationCreateLegacyTariffChange = {
|
|
|
1396
1396
|
method: "POST",
|
|
1397
1397
|
operationId: "relocation-create-legacy-tariff-change",
|
|
1398
1398
|
};
|
|
1399
|
+
/** Obtain a service token. */
|
|
1400
|
+
export const servicetokenAuthenticateService = {
|
|
1401
|
+
path: "/v2/services/{accessKeyId}/actions/authenticate",
|
|
1402
|
+
method: "POST",
|
|
1403
|
+
operationId: "servicetoken-authenticate-service",
|
|
1404
|
+
};
|
|
1399
1405
|
/** Get all SFTPUsers for a Project. */
|
|
1400
1406
|
export const sftpUserListSftpUsers = {
|
|
1401
1407
|
path: "/v2/projects/{projectId}/sftp-users",
|
|
@@ -577,6 +577,26 @@ export declare module MittwaldAPIV2 {
|
|
|
577
577
|
vatId?: string;
|
|
578
578
|
vatIdValidationState?: "valid" | "invalid" | "pending" | "unspecified";
|
|
579
579
|
}
|
|
580
|
+
interface DatabaseCreateMySqlDatabase {
|
|
581
|
+
characterSettings?: MittwaldAPIV2.Components.Schemas.DatabaseCharacterSettings;
|
|
582
|
+
description: string;
|
|
583
|
+
projectId: string;
|
|
584
|
+
version: string;
|
|
585
|
+
}
|
|
586
|
+
interface DatabaseCreateMySqlUser {
|
|
587
|
+
accessIpMask?: string;
|
|
588
|
+
accessLevel: "full" | "readonly";
|
|
589
|
+
databaseId: string;
|
|
590
|
+
description: string;
|
|
591
|
+
externalAccess?: boolean;
|
|
592
|
+
password: string;
|
|
593
|
+
}
|
|
594
|
+
interface DatabaseCreateMySqlUserWithDatabase {
|
|
595
|
+
accessIpMask?: string;
|
|
596
|
+
accessLevel: "full" | "readonly";
|
|
597
|
+
externalAccess?: boolean;
|
|
598
|
+
password: string;
|
|
599
|
+
}
|
|
580
600
|
interface DatabaseMySqlCharacterSettings {
|
|
581
601
|
collations: string[];
|
|
582
602
|
name: string;
|
|
@@ -587,18 +607,18 @@ export declare module MittwaldAPIV2 {
|
|
|
587
607
|
collation: string;
|
|
588
608
|
}
|
|
589
609
|
interface DatabaseMySqlDatabase {
|
|
590
|
-
characterSettings
|
|
591
|
-
createdAt
|
|
592
|
-
description
|
|
610
|
+
characterSettings: MittwaldAPIV2.Components.Schemas.DatabaseCharacterSettings;
|
|
611
|
+
createdAt: string;
|
|
612
|
+
description: string;
|
|
593
613
|
finalizers?: string[];
|
|
594
|
-
hostname
|
|
614
|
+
hostname: string;
|
|
595
615
|
id: string;
|
|
596
616
|
isReady: boolean;
|
|
597
617
|
isShared: boolean;
|
|
598
|
-
name
|
|
618
|
+
name: string;
|
|
599
619
|
projectId: string;
|
|
600
|
-
size
|
|
601
|
-
updatedAt
|
|
620
|
+
size: number;
|
|
621
|
+
updatedAt: string;
|
|
602
622
|
version: string;
|
|
603
623
|
}
|
|
604
624
|
interface DatabasePhpMyAdminURL {
|
|
@@ -607,17 +627,16 @@ export declare module MittwaldAPIV2 {
|
|
|
607
627
|
interface DatabaseMySqlUser {
|
|
608
628
|
accessIpMask?: string;
|
|
609
629
|
accessLevel: "full" | "readonly";
|
|
610
|
-
createdAt
|
|
630
|
+
createdAt: string;
|
|
611
631
|
databaseId: string;
|
|
612
632
|
description?: string;
|
|
613
|
-
disabled
|
|
614
|
-
externalAccess
|
|
633
|
+
disabled: boolean;
|
|
634
|
+
externalAccess: boolean;
|
|
615
635
|
id: string;
|
|
616
|
-
mainUser
|
|
617
|
-
name
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
updatedAt?: string;
|
|
636
|
+
mainUser: boolean;
|
|
637
|
+
name: string;
|
|
638
|
+
passwordUpdatedAt: string;
|
|
639
|
+
updatedAt: string;
|
|
621
640
|
}
|
|
622
641
|
interface DatabaseMySqlVersion {
|
|
623
642
|
disabled: boolean;
|
|
@@ -1439,6 +1458,7 @@ export declare module MittwaldAPIV2 {
|
|
|
1439
1458
|
type ProjectProjectReadinessStatus = "creating" | "ready" | "unready";
|
|
1440
1459
|
type ProjectServerDisableReason = "nonPayment";
|
|
1441
1460
|
interface ProjectServer {
|
|
1461
|
+
createdAt: string;
|
|
1442
1462
|
customerId: string;
|
|
1443
1463
|
description: string;
|
|
1444
1464
|
disabledReason?: MittwaldAPIV2.Components.Schemas.ProjectServerDisableReason;
|
|
@@ -5537,17 +5557,18 @@ export declare module MittwaldAPIV2 {
|
|
|
5537
5557
|
projectId: string;
|
|
5538
5558
|
};
|
|
5539
5559
|
interface RequestBody {
|
|
5540
|
-
database: MittwaldAPIV2.Components.Schemas.
|
|
5541
|
-
user
|
|
5560
|
+
database: MittwaldAPIV2.Components.Schemas.DatabaseCreateMySqlDatabase;
|
|
5561
|
+
user: MittwaldAPIV2.Components.Schemas.DatabaseCreateMySqlUserWithDatabase;
|
|
5542
5562
|
}
|
|
5543
5563
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
5544
5564
|
type Query = {};
|
|
5545
5565
|
}
|
|
5546
5566
|
namespace Responses {
|
|
5547
|
-
namespace $
|
|
5567
|
+
namespace $201 {
|
|
5548
5568
|
namespace Content {
|
|
5549
5569
|
interface ApplicationJson {
|
|
5550
5570
|
id: string;
|
|
5571
|
+
userId: string;
|
|
5551
5572
|
}
|
|
5552
5573
|
}
|
|
5553
5574
|
}
|
|
@@ -5618,7 +5639,7 @@ export declare module MittwaldAPIV2 {
|
|
|
5618
5639
|
type Path = {
|
|
5619
5640
|
databaseId: string;
|
|
5620
5641
|
};
|
|
5621
|
-
type RequestBody = MittwaldAPIV2.Components.Schemas.
|
|
5642
|
+
type RequestBody = MittwaldAPIV2.Components.Schemas.DatabaseCreateMySqlUser;
|
|
5622
5643
|
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
5623
5644
|
type Query = {};
|
|
5624
5645
|
}
|
|
@@ -5698,7 +5719,7 @@ export declare module MittwaldAPIV2 {
|
|
|
5698
5719
|
projectId: string;
|
|
5699
5720
|
};
|
|
5700
5721
|
interface RequestBody {
|
|
5701
|
-
configuration
|
|
5722
|
+
configuration?: MittwaldAPIV2.Components.Schemas.DatabaseRedisDatabaseConfiguration;
|
|
5702
5723
|
/**
|
|
5703
5724
|
* A description for the database.
|
|
5704
5725
|
*/
|
|
@@ -10763,6 +10784,47 @@ export declare module MittwaldAPIV2 {
|
|
|
10763
10784
|
}
|
|
10764
10785
|
}
|
|
10765
10786
|
}
|
|
10787
|
+
namespace V2ServiceAccessKeyIdActionsAuthenticate { }
|
|
10788
|
+
namespace InternalV2ServicesAccessKeyIdActionsAuthenticate { }
|
|
10789
|
+
namespace V2ServicesAccessKeyIdActionsAuthenticate {
|
|
10790
|
+
namespace Post {
|
|
10791
|
+
namespace Parameters {
|
|
10792
|
+
type Path = {
|
|
10793
|
+
accessKeyId: string;
|
|
10794
|
+
};
|
|
10795
|
+
interface RequestBody {
|
|
10796
|
+
secretAccessKey: string;
|
|
10797
|
+
}
|
|
10798
|
+
type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
|
|
10799
|
+
type Query = {};
|
|
10800
|
+
}
|
|
10801
|
+
namespace Responses {
|
|
10802
|
+
namespace $200 {
|
|
10803
|
+
namespace Content {
|
|
10804
|
+
interface ApplicationJson {
|
|
10805
|
+
accessToken: {
|
|
10806
|
+
id: string;
|
|
10807
|
+
jwtClaims: {
|
|
10808
|
+
exp: string;
|
|
10809
|
+
iat: string;
|
|
10810
|
+
iss: string;
|
|
10811
|
+
sub: string;
|
|
10812
|
+
};
|
|
10813
|
+
publicToken: string;
|
|
10814
|
+
};
|
|
10815
|
+
}
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
namespace Default {
|
|
10819
|
+
namespace Content {
|
|
10820
|
+
interface ApplicationJson {
|
|
10821
|
+
[k: string]: unknown;
|
|
10822
|
+
}
|
|
10823
|
+
}
|
|
10824
|
+
}
|
|
10825
|
+
}
|
|
10826
|
+
}
|
|
10827
|
+
}
|
|
10766
10828
|
namespace V2ProjectsProjectIdSftpUsers {
|
|
10767
10829
|
namespace Get {
|
|
10768
10830
|
namespace Parameters {
|