@mittwald/api-client 4.511.0 → 4.514.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.
- package/dist/esm/generated/v2/client-react.js +2 -0
- package/dist/esm/generated/v2/client.js +18 -0
- package/dist/esm/generated/v2/descriptors.js +54 -0
- package/dist/esm/generated/v3-next/client-react.js +2 -0
- package/dist/esm/generated/v3-next/client.js +18 -0
- package/dist/esm/generated/v3-next/descriptors.js +54 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +16 -0
- package/dist/types/generated/v2/client.d.ts +743 -70
- package/dist/types/generated/v2/descriptors.d.ts +22 -4
- package/dist/types/generated/v2/types.d.ts +915 -32
- package/dist/types/generated/v3-next/client-react.d.ts +16 -0
- package/dist/types/generated/v3-next/client.d.ts +741 -68
- package/dist/types/generated/v3-next/descriptors.d.ts +22 -4
- package/dist/types/generated/v3-next/types.d.ts +915 -32
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -428,6 +428,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
428
428
|
getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
|
|
429
429
|
/** List all of your ApiTokens. */
|
|
430
430
|
listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
|
|
431
|
+
/** Get your registered passkeys. */
|
|
432
|
+
listPasskeys: new ApiCallAsyncResourceFactory(descriptors.userListPasskeys, baseClient.user.listPasskeys).getApiResource,
|
|
431
433
|
/** Get your stored ssh-keys. */
|
|
432
434
|
listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
|
|
433
435
|
/** Get a specific ApiToken. */
|
|
@@ -749,6 +749,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
749
749
|
slistNotifications: this.requestFunctionFactory(descriptors.notificationsListNotifications),
|
|
750
750
|
/** Mark all notifications as read. */
|
|
751
751
|
sreadAllNotifications: this.requestFunctionFactory(descriptors.notificationsReadAllNotifications),
|
|
752
|
+
/** Reset notification settings to their defaults. */
|
|
753
|
+
sresetNotificationSettings: this.requestFunctionFactory(descriptors.notificationsResetNotificationSettings),
|
|
752
754
|
/** Update a notification's read status. */
|
|
753
755
|
supdateNotificationStatus: this.requestFunctionFactory(descriptors.notificationsUpdateNotificationStatus),
|
|
754
756
|
};
|
|
@@ -764,6 +766,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
764
766
|
removePhoneNumber: this.requestFunctionFactory(descriptors.userRemovePhoneNumber),
|
|
765
767
|
/** Validate your second factor. */
|
|
766
768
|
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa),
|
|
769
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
770
|
+
authenticatePasskey: this.requestFunctionFactory(descriptors.userAuthenticatePasskey),
|
|
767
771
|
/** Authenticate yourself to get an access token. */
|
|
768
772
|
authenticate: this.requestFunctionFactory(descriptors.userAuthenticate),
|
|
769
773
|
/** Authenticate an user with an access token retrieval key. */
|
|
@@ -790,6 +794,16 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
790
794
|
createApiToken: this.requestFunctionFactory(descriptors.userCreateApiToken),
|
|
791
795
|
/** Submit your user feedback. */
|
|
792
796
|
createFeedback: this.requestFunctionFactory(descriptors.userCreateFeedback),
|
|
797
|
+
/** Create a challenge for a passkey login. */
|
|
798
|
+
createPasskeyChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyChallenge),
|
|
799
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
800
|
+
createPasskeyConfirmationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyConfirmationChallenge),
|
|
801
|
+
/** Create a challenge to register a new passkey. */
|
|
802
|
+
createPasskeyRegistrationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyRegistrationChallenge),
|
|
803
|
+
/** Get your registered passkeys. */
|
|
804
|
+
listPasskeys: this.requestFunctionFactory(descriptors.userListPasskeys),
|
|
805
|
+
/** Register a new passkey. */
|
|
806
|
+
createPasskey: this.requestFunctionFactory(descriptors.userCreatePasskey),
|
|
793
807
|
/** Get your stored ssh-keys. */
|
|
794
808
|
listSshKeys: this.requestFunctionFactory(descriptors.userListSshKeys),
|
|
795
809
|
/** Store a new ssh-key. */
|
|
@@ -800,6 +814,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
800
814
|
editApiToken: this.requestFunctionFactory(descriptors.userEditApiToken),
|
|
801
815
|
/** Deletes an ApiToken. */
|
|
802
816
|
deleteApiToken: this.requestFunctionFactory(descriptors.userDeleteApiToken),
|
|
817
|
+
/** Delete a passkey. */
|
|
818
|
+
deletePasskey: this.requestFunctionFactory(descriptors.userDeletePasskey),
|
|
819
|
+
/** Rename a passkey. */
|
|
820
|
+
updatePasskey: this.requestFunctionFactory(descriptors.userUpdatePasskey),
|
|
803
821
|
/** Get a specific stored ssh-key. */
|
|
804
822
|
getSshKey: this.requestFunctionFactory(descriptors.userGetSshKey),
|
|
805
823
|
/** Edit a stored ssh-key. */
|
|
@@ -2164,6 +2164,12 @@ export const notificationsReadAllNotifications = {
|
|
|
2164
2164
|
method: "POST",
|
|
2165
2165
|
operationId: "notifications-read-all-notifications",
|
|
2166
2166
|
};
|
|
2167
|
+
/** Reset notification settings to their defaults. */
|
|
2168
|
+
export const notificationsResetNotificationSettings = {
|
|
2169
|
+
path: "/v2/notification-settings/actions/reset",
|
|
2170
|
+
method: "POST",
|
|
2171
|
+
operationId: "notifications-reset-notification-settings",
|
|
2172
|
+
};
|
|
2167
2173
|
/** Update a notification's read status. */
|
|
2168
2174
|
export const notificationsUpdateNotificationStatus = {
|
|
2169
2175
|
path: "/v2/notifications/{notificationId}/status",
|
|
@@ -2614,6 +2620,12 @@ export const userAuthenticateMfa = {
|
|
|
2614
2620
|
method: "POST",
|
|
2615
2621
|
operationId: "user-authenticate-mfa",
|
|
2616
2622
|
};
|
|
2623
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
2624
|
+
export const userAuthenticatePasskey = {
|
|
2625
|
+
path: "/v2/authenticate-passkey",
|
|
2626
|
+
method: "POST",
|
|
2627
|
+
operationId: "user-authenticate-passkey",
|
|
2628
|
+
};
|
|
2617
2629
|
/** Authenticate yourself to get an access token. */
|
|
2618
2630
|
export const userAuthenticate = {
|
|
2619
2631
|
path: "/v2/authenticate",
|
|
@@ -2692,6 +2704,36 @@ export const userCreateFeedback = {
|
|
|
2692
2704
|
method: "POST",
|
|
2693
2705
|
operationId: "user-create-feedback",
|
|
2694
2706
|
};
|
|
2707
|
+
/** Create a challenge for a passkey login. */
|
|
2708
|
+
export const userCreatePasskeyChallenge = {
|
|
2709
|
+
path: "/v2/passkey-challenges",
|
|
2710
|
+
method: "POST",
|
|
2711
|
+
operationId: "user-create-passkey-challenge",
|
|
2712
|
+
};
|
|
2713
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
2714
|
+
export const userCreatePasskeyConfirmationChallenge = {
|
|
2715
|
+
path: "/v2/users/self/passkey-challenges",
|
|
2716
|
+
method: "POST",
|
|
2717
|
+
operationId: "user-create-passkey-confirmation-challenge",
|
|
2718
|
+
};
|
|
2719
|
+
/** Create a challenge to register a new passkey. */
|
|
2720
|
+
export const userCreatePasskeyRegistrationChallenge = {
|
|
2721
|
+
path: "/v2/users/self/passkey-registration-challenges",
|
|
2722
|
+
method: "POST",
|
|
2723
|
+
operationId: "user-create-passkey-registration-challenge",
|
|
2724
|
+
};
|
|
2725
|
+
/** Get your registered passkeys. */
|
|
2726
|
+
export const userListPasskeys = {
|
|
2727
|
+
path: "/v2/users/self/passkeys",
|
|
2728
|
+
method: "GET",
|
|
2729
|
+
operationId: "user-list-passkeys",
|
|
2730
|
+
};
|
|
2731
|
+
/** Register a new passkey. */
|
|
2732
|
+
export const userCreatePasskey = {
|
|
2733
|
+
path: "/v2/users/self/passkeys",
|
|
2734
|
+
method: "POST",
|
|
2735
|
+
operationId: "user-create-passkey",
|
|
2736
|
+
};
|
|
2695
2737
|
/** Get your stored ssh-keys. */
|
|
2696
2738
|
export const userListSshKeys = {
|
|
2697
2739
|
path: "/v2/users/self/ssh-keys",
|
|
@@ -2722,6 +2764,18 @@ export const userDeleteApiToken = {
|
|
|
2722
2764
|
method: "DELETE",
|
|
2723
2765
|
operationId: "user-delete-api-token",
|
|
2724
2766
|
};
|
|
2767
|
+
/** Delete a passkey. */
|
|
2768
|
+
export const userDeletePasskey = {
|
|
2769
|
+
path: "/v2/users/self/passkeys/{passkeyId}",
|
|
2770
|
+
method: "DELETE",
|
|
2771
|
+
operationId: "user-delete-passkey",
|
|
2772
|
+
};
|
|
2773
|
+
/** Rename a passkey. */
|
|
2774
|
+
export const userUpdatePasskey = {
|
|
2775
|
+
path: "/v2/users/self/passkeys/{passkeyId}",
|
|
2776
|
+
method: "PATCH",
|
|
2777
|
+
operationId: "user-update-passkey",
|
|
2778
|
+
};
|
|
2725
2779
|
/** Get a specific stored ssh-key. */
|
|
2726
2780
|
export const userGetSshKey = {
|
|
2727
2781
|
path: "/v2/users/self/ssh-keys/{sshKeyId}",
|
|
@@ -428,6 +428,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
428
428
|
getMfaStatus: new ApiCallAsyncResourceFactory(descriptors.userGetMfaStatus, baseClient.user.getMfaStatus).getApiResource,
|
|
429
429
|
/** List all of your ApiTokens. */
|
|
430
430
|
listApiTokens: new ApiCallAsyncResourceFactory(descriptors.userListApiTokens, baseClient.user.listApiTokens).getApiResource,
|
|
431
|
+
/** Get your registered passkeys. */
|
|
432
|
+
listPasskeys: new ApiCallAsyncResourceFactory(descriptors.userListPasskeys, baseClient.user.listPasskeys).getApiResource,
|
|
431
433
|
/** Get your stored ssh-keys. */
|
|
432
434
|
listSshKeys: new ApiCallAsyncResourceFactory(descriptors.userListSshKeys, baseClient.user.listSshKeys).getApiResource,
|
|
433
435
|
/** Get a specific ApiToken. */
|
|
@@ -749,6 +749,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
749
749
|
slistNotifications: this.requestFunctionFactory(descriptors.notificationsListNotifications),
|
|
750
750
|
/** Mark all notifications as read. */
|
|
751
751
|
sreadAllNotifications: this.requestFunctionFactory(descriptors.notificationsReadAllNotifications),
|
|
752
|
+
/** Reset notification settings to their defaults. */
|
|
753
|
+
sresetNotificationSettings: this.requestFunctionFactory(descriptors.notificationsResetNotificationSettings),
|
|
752
754
|
/** Update a notification's read status. */
|
|
753
755
|
supdateNotificationStatus: this.requestFunctionFactory(descriptors.notificationsUpdateNotificationStatus),
|
|
754
756
|
};
|
|
@@ -764,6 +766,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
764
766
|
removePhoneNumber: this.requestFunctionFactory(descriptors.userRemovePhoneNumber),
|
|
765
767
|
/** Validate your second factor. */
|
|
766
768
|
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa),
|
|
769
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
770
|
+
authenticatePasskey: this.requestFunctionFactory(descriptors.userAuthenticatePasskey),
|
|
767
771
|
/** Authenticate yourself to get an access token. */
|
|
768
772
|
authenticate: this.requestFunctionFactory(descriptors.userAuthenticate),
|
|
769
773
|
/** Authenticate an user with an access token retrieval key. */
|
|
@@ -790,6 +794,16 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
790
794
|
createApiToken: this.requestFunctionFactory(descriptors.userCreateApiToken),
|
|
791
795
|
/** Submit your user feedback. */
|
|
792
796
|
createFeedback: this.requestFunctionFactory(descriptors.userCreateFeedback),
|
|
797
|
+
/** Create a challenge for a passkey login. */
|
|
798
|
+
createPasskeyChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyChallenge),
|
|
799
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
800
|
+
createPasskeyConfirmationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyConfirmationChallenge),
|
|
801
|
+
/** Create a challenge to register a new passkey. */
|
|
802
|
+
createPasskeyRegistrationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyRegistrationChallenge),
|
|
803
|
+
/** Get your registered passkeys. */
|
|
804
|
+
listPasskeys: this.requestFunctionFactory(descriptors.userListPasskeys),
|
|
805
|
+
/** Register a new passkey. */
|
|
806
|
+
createPasskey: this.requestFunctionFactory(descriptors.userCreatePasskey),
|
|
793
807
|
/** Get your stored ssh-keys. */
|
|
794
808
|
listSshKeys: this.requestFunctionFactory(descriptors.userListSshKeys),
|
|
795
809
|
/** Store a new ssh-key. */
|
|
@@ -800,6 +814,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
800
814
|
editApiToken: this.requestFunctionFactory(descriptors.userEditApiToken),
|
|
801
815
|
/** Deletes an ApiToken. */
|
|
802
816
|
deleteApiToken: this.requestFunctionFactory(descriptors.userDeleteApiToken),
|
|
817
|
+
/** Delete a passkey. */
|
|
818
|
+
deletePasskey: this.requestFunctionFactory(descriptors.userDeletePasskey),
|
|
819
|
+
/** Rename a passkey. */
|
|
820
|
+
updatePasskey: this.requestFunctionFactory(descriptors.userUpdatePasskey),
|
|
803
821
|
/** Get a specific stored ssh-key. */
|
|
804
822
|
getSshKey: this.requestFunctionFactory(descriptors.userGetSshKey),
|
|
805
823
|
/** Edit a stored ssh-key. */
|
|
@@ -2164,6 +2164,12 @@ export const notificationsReadAllNotifications = {
|
|
|
2164
2164
|
method: "POST",
|
|
2165
2165
|
operationId: "notifications-read-all-notifications",
|
|
2166
2166
|
};
|
|
2167
|
+
/** Reset notification settings to their defaults. */
|
|
2168
|
+
export const notificationsResetNotificationSettings = {
|
|
2169
|
+
path: "/v3-next/notification-settings/actions/reset",
|
|
2170
|
+
method: "POST",
|
|
2171
|
+
operationId: "notifications-reset-notification-settings",
|
|
2172
|
+
};
|
|
2167
2173
|
/** Update a notification's read status. */
|
|
2168
2174
|
export const notificationsUpdateNotificationStatus = {
|
|
2169
2175
|
path: "/v3-next/notifications/{notificationId}/status",
|
|
@@ -2614,6 +2620,12 @@ export const userAuthenticateMfa = {
|
|
|
2614
2620
|
method: "POST",
|
|
2615
2621
|
operationId: "user-authenticate-mfa",
|
|
2616
2622
|
};
|
|
2623
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
2624
|
+
export const userAuthenticatePasskey = {
|
|
2625
|
+
path: "/v3-next/authenticate-passkey",
|
|
2626
|
+
method: "POST",
|
|
2627
|
+
operationId: "user-authenticate-passkey",
|
|
2628
|
+
};
|
|
2617
2629
|
/** Authenticate yourself to get an access token. */
|
|
2618
2630
|
export const userAuthenticate = {
|
|
2619
2631
|
path: "/v3-next/authenticate",
|
|
@@ -2692,6 +2704,36 @@ export const userCreateFeedback = {
|
|
|
2692
2704
|
method: "POST",
|
|
2693
2705
|
operationId: "user-create-feedback",
|
|
2694
2706
|
};
|
|
2707
|
+
/** Create a challenge for a passkey login. */
|
|
2708
|
+
export const userCreatePasskeyChallenge = {
|
|
2709
|
+
path: "/v3-next/passkey-challenges",
|
|
2710
|
+
method: "POST",
|
|
2711
|
+
operationId: "user-create-passkey-challenge",
|
|
2712
|
+
};
|
|
2713
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
2714
|
+
export const userCreatePasskeyConfirmationChallenge = {
|
|
2715
|
+
path: "/v3-next/users/self/passkey-challenges",
|
|
2716
|
+
method: "POST",
|
|
2717
|
+
operationId: "user-create-passkey-confirmation-challenge",
|
|
2718
|
+
};
|
|
2719
|
+
/** Create a challenge to register a new passkey. */
|
|
2720
|
+
export const userCreatePasskeyRegistrationChallenge = {
|
|
2721
|
+
path: "/v3-next/users/self/passkey-registration-challenges",
|
|
2722
|
+
method: "POST",
|
|
2723
|
+
operationId: "user-create-passkey-registration-challenge",
|
|
2724
|
+
};
|
|
2725
|
+
/** Get your registered passkeys. */
|
|
2726
|
+
export const userListPasskeys = {
|
|
2727
|
+
path: "/v3-next/users/self/passkeys",
|
|
2728
|
+
method: "GET",
|
|
2729
|
+
operationId: "user-list-passkeys",
|
|
2730
|
+
};
|
|
2731
|
+
/** Register a new passkey. */
|
|
2732
|
+
export const userCreatePasskey = {
|
|
2733
|
+
path: "/v3-next/users/self/passkeys",
|
|
2734
|
+
method: "POST",
|
|
2735
|
+
operationId: "user-create-passkey",
|
|
2736
|
+
};
|
|
2695
2737
|
/** Get your stored ssh-keys. */
|
|
2696
2738
|
export const userListSshKeys = {
|
|
2697
2739
|
path: "/v3-next/users/self/ssh-keys",
|
|
@@ -2722,6 +2764,18 @@ export const userDeleteApiToken = {
|
|
|
2722
2764
|
method: "DELETE",
|
|
2723
2765
|
operationId: "user-delete-api-token",
|
|
2724
2766
|
};
|
|
2767
|
+
/** Delete a passkey. */
|
|
2768
|
+
export const userDeletePasskey = {
|
|
2769
|
+
path: "/v3-next/users/self/passkeys/{passkeyId}",
|
|
2770
|
+
method: "DELETE",
|
|
2771
|
+
operationId: "user-delete-passkey",
|
|
2772
|
+
};
|
|
2773
|
+
/** Rename a passkey. */
|
|
2774
|
+
export const userUpdatePasskey = {
|
|
2775
|
+
path: "/v3-next/users/self/passkeys/{passkeyId}",
|
|
2776
|
+
method: "PATCH",
|
|
2777
|
+
operationId: "user-update-passkey",
|
|
2778
|
+
};
|
|
2725
2779
|
/** Get a specific stored ssh-key. */
|
|
2726
2780
|
export const userGetSshKey = {
|
|
2727
2781
|
path: "/v3-next/users/self/ssh-keys/{sshKeyId}",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.513.0';
|
|
@@ -3434,6 +3434,22 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3434
3434
|
page?: number | undefined;
|
|
3435
3435
|
} | undefined;
|
|
3436
3436
|
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.SignupApiToken[]>;
|
|
3437
|
+
/** Get your registered passkeys. */
|
|
3438
|
+
listPasskeys: (conf?: {
|
|
3439
|
+
headers?: {
|
|
3440
|
+
[x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
|
|
3441
|
+
"x-access-token"?: string | undefined;
|
|
3442
|
+
} | undefined;
|
|
3443
|
+
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3444
|
+
aaguid: string;
|
|
3445
|
+
backupEligible: boolean;
|
|
3446
|
+
backupState: boolean;
|
|
3447
|
+
createdAt: string;
|
|
3448
|
+
credentialId: string;
|
|
3449
|
+
id: string;
|
|
3450
|
+
name: string;
|
|
3451
|
+
rpId: string;
|
|
3452
|
+
}[]>;
|
|
3437
3453
|
/** Get your stored ssh-keys. */
|
|
3438
3454
|
listSshKeys: (conf?: {
|
|
3439
3455
|
headers?: {
|