@mittwald/api-client 4.511.0 → 4.512.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 +16 -0
- package/dist/esm/generated/v2/descriptors.js +48 -0
- package/dist/esm/generated/v3-next/client-react.js +2 -0
- package/dist/esm/generated/v3-next/client.js +16 -0
- package/dist/esm/generated/v3-next/descriptors.js +48 -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 +649 -19
- package/dist/types/generated/v2/descriptors.d.ts +19 -3
- package/dist/types/generated/v2/types.d.ts +897 -77
- package/dist/types/generated/v3-next/client-react.d.ts +16 -0
- package/dist/types/generated/v3-next/client.d.ts +649 -19
- package/dist/types/generated/v3-next/descriptors.d.ts +19 -3
- package/dist/types/generated/v3-next/types.d.ts +897 -77
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -458,6 +458,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
458
458
|
searchedLeakedPasswordsByRange: new ApiCallAsyncResourceFactory(descriptors.userSearchedLeakedPasswordsByRange, baseClient.user.searchedLeakedPasswordsByRange).getApiResource,
|
|
459
459
|
/** Request a support code. */
|
|
460
460
|
supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
|
|
461
|
+
/** Get your registered passkeys. */
|
|
462
|
+
listPasskeys: new ApiCallAsyncResourceFactory(descriptors.userListPasskeys, baseClient.user.listPasskeys).getApiResource,
|
|
461
463
|
});
|
|
462
464
|
const buildProjectApi = (baseClient) => ({
|
|
463
465
|
/** List Invites belonging to a Project. */
|
|
@@ -870,6 +870,22 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
870
870
|
verifyPhoneNumber: this.requestFunctionFactory(descriptors.userVerifyPhoneNumber),
|
|
871
871
|
/** Verify your registration. */
|
|
872
872
|
verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration),
|
|
873
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
874
|
+
authenticatePasskey: this.requestFunctionFactory(descriptors.userAuthenticatePasskey),
|
|
875
|
+
/** Create a challenge for a passkey login. */
|
|
876
|
+
createPasskeyChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyChallenge),
|
|
877
|
+
/** Delete a passkey. */
|
|
878
|
+
deletePasskey: this.requestFunctionFactory(descriptors.userDeletePasskey),
|
|
879
|
+
/** Rename a passkey. */
|
|
880
|
+
updatePasskey: this.requestFunctionFactory(descriptors.userUpdatePasskey),
|
|
881
|
+
/** Get your registered passkeys. */
|
|
882
|
+
listPasskeys: this.requestFunctionFactory(descriptors.userListPasskeys),
|
|
883
|
+
/** Register a new passkey. */
|
|
884
|
+
createPasskey: this.requestFunctionFactory(descriptors.userCreatePasskey),
|
|
885
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
886
|
+
createPasskeyConfirmationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyConfirmationChallenge),
|
|
887
|
+
/** Create a challenge to register a new passkey. */
|
|
888
|
+
createPasskeyRegistrationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyRegistrationChallenge),
|
|
873
889
|
};
|
|
874
890
|
/** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
|
|
875
891
|
file = {
|
|
@@ -2950,3 +2950,51 @@ export const verificationVerifyCompany = {
|
|
|
2950
2950
|
method: "POST",
|
|
2951
2951
|
operationId: "verification-verify-company",
|
|
2952
2952
|
};
|
|
2953
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
2954
|
+
export const userAuthenticatePasskey = {
|
|
2955
|
+
path: "/v2/authenticate-passkey",
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
operationId: "user-authenticate-passkey",
|
|
2958
|
+
};
|
|
2959
|
+
/** Create a challenge for a passkey login. */
|
|
2960
|
+
export const userCreatePasskeyChallenge = {
|
|
2961
|
+
path: "/v2/passkey-challenges",
|
|
2962
|
+
method: "POST",
|
|
2963
|
+
operationId: "user-create-passkey-challenge",
|
|
2964
|
+
};
|
|
2965
|
+
/** Delete a passkey. */
|
|
2966
|
+
export const userDeletePasskey = {
|
|
2967
|
+
path: "/v2/users/self/passkeys/{passkeyId}",
|
|
2968
|
+
method: "DELETE",
|
|
2969
|
+
operationId: "user-delete-passkey",
|
|
2970
|
+
};
|
|
2971
|
+
/** Rename a passkey. */
|
|
2972
|
+
export const userUpdatePasskey = {
|
|
2973
|
+
path: "/v2/users/self/passkeys/{passkeyId}",
|
|
2974
|
+
method: "PATCH",
|
|
2975
|
+
operationId: "user-update-passkey",
|
|
2976
|
+
};
|
|
2977
|
+
/** Get your registered passkeys. */
|
|
2978
|
+
export const userListPasskeys = {
|
|
2979
|
+
path: "/v2/users/self/passkeys",
|
|
2980
|
+
method: "GET",
|
|
2981
|
+
operationId: "user-list-passkeys",
|
|
2982
|
+
};
|
|
2983
|
+
/** Register a new passkey. */
|
|
2984
|
+
export const userCreatePasskey = {
|
|
2985
|
+
path: "/v2/users/self/passkeys",
|
|
2986
|
+
method: "POST",
|
|
2987
|
+
operationId: "user-create-passkey",
|
|
2988
|
+
};
|
|
2989
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
2990
|
+
export const userCreatePasskeyConfirmationChallenge = {
|
|
2991
|
+
path: "/v2/users/self/passkey-challenges",
|
|
2992
|
+
method: "POST",
|
|
2993
|
+
operationId: "user-create-passkey-confirmation-challenge",
|
|
2994
|
+
};
|
|
2995
|
+
/** Create a challenge to register a new passkey. */
|
|
2996
|
+
export const userCreatePasskeyRegistrationChallenge = {
|
|
2997
|
+
path: "/v2/users/self/passkey-registration-challenges",
|
|
2998
|
+
method: "POST",
|
|
2999
|
+
operationId: "user-create-passkey-registration-challenge",
|
|
3000
|
+
};
|
|
@@ -458,6 +458,8 @@ const buildUserApi = (baseClient) => ({
|
|
|
458
458
|
searchedLeakedPasswordsByRange: new ApiCallAsyncResourceFactory(descriptors.userSearchedLeakedPasswordsByRange, baseClient.user.searchedLeakedPasswordsByRange).getApiResource,
|
|
459
459
|
/** Request a support code. */
|
|
460
460
|
supportCodeRequest: new ApiCallAsyncResourceFactory(descriptors.userSupportCodeRequest, baseClient.user.supportCodeRequest).getApiResource,
|
|
461
|
+
/** Get your registered passkeys. */
|
|
462
|
+
listPasskeys: new ApiCallAsyncResourceFactory(descriptors.userListPasskeys, baseClient.user.listPasskeys).getApiResource,
|
|
461
463
|
});
|
|
462
464
|
const buildProjectApi = (baseClient) => ({
|
|
463
465
|
/** List Invites belonging to a Project. */
|
|
@@ -870,6 +870,22 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
870
870
|
verifyPhoneNumber: this.requestFunctionFactory(descriptors.userVerifyPhoneNumber),
|
|
871
871
|
/** Verify your registration. */
|
|
872
872
|
verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration),
|
|
873
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
874
|
+
authenticatePasskey: this.requestFunctionFactory(descriptors.userAuthenticatePasskey),
|
|
875
|
+
/** Create a challenge for a passkey login. */
|
|
876
|
+
createPasskeyChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyChallenge),
|
|
877
|
+
/** Delete a passkey. */
|
|
878
|
+
deletePasskey: this.requestFunctionFactory(descriptors.userDeletePasskey),
|
|
879
|
+
/** Rename a passkey. */
|
|
880
|
+
updatePasskey: this.requestFunctionFactory(descriptors.userUpdatePasskey),
|
|
881
|
+
/** Get your registered passkeys. */
|
|
882
|
+
listPasskeys: this.requestFunctionFactory(descriptors.userListPasskeys),
|
|
883
|
+
/** Register a new passkey. */
|
|
884
|
+
createPasskey: this.requestFunctionFactory(descriptors.userCreatePasskey),
|
|
885
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
886
|
+
createPasskeyConfirmationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyConfirmationChallenge),
|
|
887
|
+
/** Create a challenge to register a new passkey. */
|
|
888
|
+
createPasskeyRegistrationChallenge: this.requestFunctionFactory(descriptors.userCreatePasskeyRegistrationChallenge),
|
|
873
889
|
};
|
|
874
890
|
/** The file API allows you to manage your files, for example for conversations attachments and avatar uploads. */
|
|
875
891
|
file = {
|
|
@@ -2950,3 +2950,51 @@ export const verificationVerifyCompany = {
|
|
|
2950
2950
|
method: "POST",
|
|
2951
2951
|
operationId: "verification-verify-company",
|
|
2952
2952
|
};
|
|
2953
|
+
/** Authenticate yourself with a passkey to get an access token. */
|
|
2954
|
+
export const userAuthenticatePasskey = {
|
|
2955
|
+
path: "/v3-next/authenticate-passkey",
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
operationId: "user-authenticate-passkey",
|
|
2958
|
+
};
|
|
2959
|
+
/** Create a challenge for a passkey login. */
|
|
2960
|
+
export const userCreatePasskeyChallenge = {
|
|
2961
|
+
path: "/v3-next/passkey-challenges",
|
|
2962
|
+
method: "POST",
|
|
2963
|
+
operationId: "user-create-passkey-challenge",
|
|
2964
|
+
};
|
|
2965
|
+
/** Delete a passkey. */
|
|
2966
|
+
export const userDeletePasskey = {
|
|
2967
|
+
path: "/v3-next/users/self/passkeys/{passkeyId}",
|
|
2968
|
+
method: "DELETE",
|
|
2969
|
+
operationId: "user-delete-passkey",
|
|
2970
|
+
};
|
|
2971
|
+
/** Rename a passkey. */
|
|
2972
|
+
export const userUpdatePasskey = {
|
|
2973
|
+
path: "/v3-next/users/self/passkeys/{passkeyId}",
|
|
2974
|
+
method: "PATCH",
|
|
2975
|
+
operationId: "user-update-passkey",
|
|
2976
|
+
};
|
|
2977
|
+
/** Get your registered passkeys. */
|
|
2978
|
+
export const userListPasskeys = {
|
|
2979
|
+
path: "/v3-next/users/self/passkeys",
|
|
2980
|
+
method: "GET",
|
|
2981
|
+
operationId: "user-list-passkeys",
|
|
2982
|
+
};
|
|
2983
|
+
/** Register a new passkey. */
|
|
2984
|
+
export const userCreatePasskey = {
|
|
2985
|
+
path: "/v3-next/users/self/passkeys",
|
|
2986
|
+
method: "POST",
|
|
2987
|
+
operationId: "user-create-passkey",
|
|
2988
|
+
};
|
|
2989
|
+
/** Create a challenge to confirm an action with a passkey. */
|
|
2990
|
+
export const userCreatePasskeyConfirmationChallenge = {
|
|
2991
|
+
path: "/v3-next/users/self/passkey-challenges",
|
|
2992
|
+
method: "POST",
|
|
2993
|
+
operationId: "user-create-passkey-confirmation-challenge",
|
|
2994
|
+
};
|
|
2995
|
+
/** Create a challenge to register a new passkey. */
|
|
2996
|
+
export const userCreatePasskeyRegistrationChallenge = {
|
|
2997
|
+
path: "/v3-next/users/self/passkey-registration-challenges",
|
|
2998
|
+
method: "POST",
|
|
2999
|
+
operationId: "user-create-passkey-registration-challenge",
|
|
3000
|
+
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.511.0';
|
|
@@ -3639,6 +3639,22 @@ declare const buildUserApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
3639
3639
|
expiresAt: string;
|
|
3640
3640
|
supportCode: string;
|
|
3641
3641
|
}>;
|
|
3642
|
+
/** Get your registered passkeys. */
|
|
3643
|
+
listPasskeys: (conf?: {
|
|
3644
|
+
headers?: {
|
|
3645
|
+
[x: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[] | undefined;
|
|
3646
|
+
"x-access-token"?: string | undefined;
|
|
3647
|
+
} | undefined;
|
|
3648
|
+
} | null | undefined) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
3649
|
+
aaguid: string;
|
|
3650
|
+
backupEligible: boolean;
|
|
3651
|
+
backupState: boolean;
|
|
3652
|
+
createdAt: string;
|
|
3653
|
+
credentialId: string;
|
|
3654
|
+
id: string;
|
|
3655
|
+
name: string;
|
|
3656
|
+
rpId: string;
|
|
3657
|
+
}[]>;
|
|
3642
3658
|
};
|
|
3643
3659
|
declare const buildProjectApi: (baseClient: MittwaldAPIV2Client) => {
|
|
3644
3660
|
/** List Invites belonging to a Project. */
|