@mittwald/api-client
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -543,29 +543,27 @@ "use strict"; | ||
removePhoneNumber: this.requestFunctionFactory(descriptors.userRemovePhoneNumber), | ||
/** Validate your second factor. */ | ||
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa), | ||
/** Authenticate yourself to get an access token. */ | ||
authenticate: this.requestFunctionFactory(descriptors.userAuthenticate), | ||
/** Validate your second factor. */ | ||
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa), | ||
/** Get your primary verified Email-Address */ | ||
getEmail: this.requestFunctionFactory(descriptors.userGetEmail), | ||
/** Change your Email-Address */ | ||
/** Get your verified Email-Address. */ | ||
getOwnEmail: this.requestFunctionFactory(descriptors.userGetOwnEmail), | ||
/** Change your Email-Address. */ | ||
changeEmail: this.requestFunctionFactory(descriptors.userChangeEmail), | ||
/** The timestamp of your latest password change */ | ||
getPasswordUpdatedAt: this.requestFunctionFactory(descriptors.userGetPasswordUpdatedAt), | ||
/** Change your password */ | ||
/** Change your password. */ | ||
changePassword: this.requestFunctionFactory(descriptors.userChangePassword), | ||
/** Get your profile information */ | ||
getOwnProfile: this.requestFunctionFactory(descriptors.userGetOwnProfile), | ||
/** Change your profile information */ | ||
changeProfile: this.requestFunctionFactory(descriptors.userChangeProfile), | ||
/** Delete your profile and all your personal data */ | ||
deleteProfile: this.requestFunctionFactory(descriptors.userDeleteProfile), | ||
/** Check a token for validity */ | ||
/** Check token for validity. */ | ||
checkToken: this.requestFunctionFactory(descriptors.userCheckToken), | ||
/** Confirm Multi Factor Authentication */ | ||
/** Get your current multi factor auth status. */ | ||
getMfaStatus: this.requestFunctionFactory(descriptors.userGetMfaStatus), | ||
/** Reset RecoveryCodes for MFA. */ | ||
resetRecoverycodes: this.requestFunctionFactory(descriptors.userResetRecoverycodes), | ||
/** Confirm Multi Factor Authentication. */ | ||
confirmMfa: this.requestFunctionFactory(descriptors.userConfirmMfa), | ||
/** Confirm password reset */ | ||
/** Disable Multi Factor Authentication. */ | ||
disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa), | ||
/** Confirm password reset. */ | ||
confirmPasswordReset: this.requestFunctionFactory(descriptors.userConfirmPasswordReset), | ||
/** List all ApiTokens of the user */ | ||
/** List all of your ApiTokens. */ | ||
listApiTokens: this.requestFunctionFactory(descriptors.userListApiTokens), | ||
/** Store a new ApiToken */ | ||
/** Store a new ApiToken. */ | ||
createApiToken: this.requestFunctionFactory(descriptors.userCreateApiToken), | ||
@@ -576,24 +574,26 @@ /** Submit your user feedback. */ | ||
createIssue: this.requestFunctionFactory(descriptors.userCreateIssue), | ||
/** Get your stored ssh keys */ | ||
/** Get your stored ssh-keys. */ | ||
listSshKeys: this.requestFunctionFactory(descriptors.userListSshKeys), | ||
/** Store a new SSH key */ | ||
/** Store a new ssh-key. */ | ||
createSshKey: this.requestFunctionFactory(descriptors.userCreateSshKey), | ||
/** Get a specific ApiToken */ | ||
/** Get a specific ApiToken. */ | ||
getApiToken: this.requestFunctionFactory(descriptors.userGetApiToken), | ||
/** Update an existing `ApiToken` */ | ||
/** Update an existing `ApiToken`. */ | ||
editApiToken: this.requestFunctionFactory(descriptors.userEditApiToken), | ||
/** Deletes an ApiToken */ | ||
/** Deletes an ApiToken. */ | ||
deleteApiToken: this.requestFunctionFactory(descriptors.userDeleteApiToken), | ||
/** Get a specific stored SshKey */ | ||
/** Get a specific stored ssh-key. */ | ||
getSshKey: this.requestFunctionFactory(descriptors.userGetSshKey), | ||
/** Edit a stored SshKey */ | ||
/** Edit a stored ssh-key. */ | ||
editSshKey: this.requestFunctionFactory(descriptors.userEditSshKey), | ||
/** Remove a SSH-key */ | ||
/** Remove a ssh-key. */ | ||
deleteSshKey: this.requestFunctionFactory(descriptors.userDeleteSshKey), | ||
/** Get your current multi factor auth status */ | ||
getMfaStatus: this.requestFunctionFactory(descriptors.userGetMfaStatus), | ||
/** Initialize Multi Factor Authentication. If successfull, it needs to be confirmed, before usage of mfa. */ | ||
initMfa: this.requestFunctionFactory(descriptors.userInitMfa), | ||
/** Disable Multi Factor Authentication. */ | ||
disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa), | ||
/** Delete your account and all your personal data. */ | ||
deleteUser: this.requestFunctionFactory(descriptors.userDeleteUser), | ||
/** Get your account information. */ | ||
getOwnAccount: this.requestFunctionFactory(descriptors.userGetOwnAccount), | ||
/** Update your account information. */ | ||
updateAccount: this.requestFunctionFactory(descriptors.userUpdateAccount), | ||
/** The timestamp of your latest password change. */ | ||
getPasswordUpdatedAt: this.requestFunctionFactory(descriptors.userGetPasswordUpdatedAt), | ||
/** Get personalized settings. */ | ||
@@ -603,5 +603,5 @@ getPersonalizedSettings: this.requestFunctionFactory(descriptors.userGetPersonalizedSettings), | ||
updatePersonalizedSettings: this.requestFunctionFactory(descriptors.userUpdatePersonalizedSettings), | ||
/** Get a specific Session */ | ||
/** Get a specific session. */ | ||
getSession: this.requestFunctionFactory(descriptors.userGetSession), | ||
/** Terminate a specific Session */ | ||
/** Terminate a specific Session. */ | ||
terminateSession: this.requestFunctionFactory(descriptors.userTerminateSession), | ||
@@ -612,11 +612,13 @@ /** Get profile information for a user. */ | ||
updatePersonalInformation: this.requestFunctionFactory(descriptors.userUpdatePersonalInformation), | ||
/** Initialize password reset process */ | ||
/** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */ | ||
initMfa: this.requestFunctionFactory(descriptors.userInitMfa), | ||
/** Initialize password reset process. */ | ||
initPasswordReset: this.requestFunctionFactory(descriptors.userInitPasswordReset), | ||
/** Submitted feedback of the given user. */ | ||
listFeedback: this.requestFunctionFactory(descriptors.userListFeedback), | ||
/** List all active sessions */ | ||
/** List all sessions. */ | ||
listSessions: this.requestFunctionFactory(descriptors.userListSessions), | ||
/** Terminate all sessions, except the current Session */ | ||
/** Terminate all sessions, except the current session. */ | ||
terminateAllSessions: this.requestFunctionFactory(descriptors.userTerminateAllSessions), | ||
/** Terminate session and invalidate access token */ | ||
/** Terminate session and invalidate access token. */ | ||
logout: this.requestFunctionFactory(descriptors.userLogout), | ||
@@ -629,13 +631,11 @@ /** Register with email and password. */ | ||
removeAvatar: this.requestFunctionFactory(descriptors.userRemoveAvatar), | ||
/** Resend the Email-Address verification email */ | ||
/** Resend the Email-Address verification email. */ | ||
resendVerificationEmail: this.requestFunctionFactory(descriptors.userResendVerificationEmail), | ||
/** Reset RecoveryCodes for MFA */ | ||
resetRecoverycodes: this.requestFunctionFactory(descriptors.userResetRecoverycodes), | ||
/** Request a support code */ | ||
/** Request a support code. */ | ||
supportCodeRequest: this.requestFunctionFactory(descriptors.userSupportCodeRequest), | ||
/** Verify an added Email-Address */ | ||
/** Verify an added Email-Address. */ | ||
verifyEmail: this.requestFunctionFactory(descriptors.userVerifyEmail), | ||
/** Verify phone number. */ | ||
verifyPhoneNumber: this.requestFunctionFactory(descriptors.userVerifyPhoneNumber), | ||
/** Verify your registration */ | ||
/** Verify your registration. */ | ||
verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration), | ||
@@ -642,0 +642,0 @@ }; |
@@ -538,29 +538,27 @@ /* eslint-disable */ | ||
removePhoneNumber: this.requestFunctionFactory(descriptors.userRemovePhoneNumber), | ||
/** Validate your second factor. */ | ||
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa), | ||
/** Authenticate yourself to get an access token. */ | ||
authenticate: this.requestFunctionFactory(descriptors.userAuthenticate), | ||
/** Validate your second factor. */ | ||
authenticateMfa: this.requestFunctionFactory(descriptors.userAuthenticateMfa), | ||
/** Get your primary verified Email-Address */ | ||
getEmail: this.requestFunctionFactory(descriptors.userGetEmail), | ||
/** Change your Email-Address */ | ||
/** Get your verified Email-Address. */ | ||
getOwnEmail: this.requestFunctionFactory(descriptors.userGetOwnEmail), | ||
/** Change your Email-Address. */ | ||
changeEmail: this.requestFunctionFactory(descriptors.userChangeEmail), | ||
/** The timestamp of your latest password change */ | ||
getPasswordUpdatedAt: this.requestFunctionFactory(descriptors.userGetPasswordUpdatedAt), | ||
/** Change your password */ | ||
/** Change your password. */ | ||
changePassword: this.requestFunctionFactory(descriptors.userChangePassword), | ||
/** Get your profile information */ | ||
getOwnProfile: this.requestFunctionFactory(descriptors.userGetOwnProfile), | ||
/** Change your profile information */ | ||
changeProfile: this.requestFunctionFactory(descriptors.userChangeProfile), | ||
/** Delete your profile and all your personal data */ | ||
deleteProfile: this.requestFunctionFactory(descriptors.userDeleteProfile), | ||
/** Check a token for validity */ | ||
/** Check token for validity. */ | ||
checkToken: this.requestFunctionFactory(descriptors.userCheckToken), | ||
/** Confirm Multi Factor Authentication */ | ||
/** Get your current multi factor auth status. */ | ||
getMfaStatus: this.requestFunctionFactory(descriptors.userGetMfaStatus), | ||
/** Reset RecoveryCodes for MFA. */ | ||
resetRecoverycodes: this.requestFunctionFactory(descriptors.userResetRecoverycodes), | ||
/** Confirm Multi Factor Authentication. */ | ||
confirmMfa: this.requestFunctionFactory(descriptors.userConfirmMfa), | ||
/** Confirm password reset */ | ||
/** Disable Multi Factor Authentication. */ | ||
disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa), | ||
/** Confirm password reset. */ | ||
confirmPasswordReset: this.requestFunctionFactory(descriptors.userConfirmPasswordReset), | ||
/** List all ApiTokens of the user */ | ||
/** List all of your ApiTokens. */ | ||
listApiTokens: this.requestFunctionFactory(descriptors.userListApiTokens), | ||
/** Store a new ApiToken */ | ||
/** Store a new ApiToken. */ | ||
createApiToken: this.requestFunctionFactory(descriptors.userCreateApiToken), | ||
@@ -571,24 +569,26 @@ /** Submit your user feedback. */ | ||
createIssue: this.requestFunctionFactory(descriptors.userCreateIssue), | ||
/** Get your stored ssh keys */ | ||
/** Get your stored ssh-keys. */ | ||
listSshKeys: this.requestFunctionFactory(descriptors.userListSshKeys), | ||
/** Store a new SSH key */ | ||
/** Store a new ssh-key. */ | ||
createSshKey: this.requestFunctionFactory(descriptors.userCreateSshKey), | ||
/** Get a specific ApiToken */ | ||
/** Get a specific ApiToken. */ | ||
getApiToken: this.requestFunctionFactory(descriptors.userGetApiToken), | ||
/** Update an existing `ApiToken` */ | ||
/** Update an existing `ApiToken`. */ | ||
editApiToken: this.requestFunctionFactory(descriptors.userEditApiToken), | ||
/** Deletes an ApiToken */ | ||
/** Deletes an ApiToken. */ | ||
deleteApiToken: this.requestFunctionFactory(descriptors.userDeleteApiToken), | ||
/** Get a specific stored SshKey */ | ||
/** Get a specific stored ssh-key. */ | ||
getSshKey: this.requestFunctionFactory(descriptors.userGetSshKey), | ||
/** Edit a stored SshKey */ | ||
/** Edit a stored ssh-key. */ | ||
editSshKey: this.requestFunctionFactory(descriptors.userEditSshKey), | ||
/** Remove a SSH-key */ | ||
/** Remove a ssh-key. */ | ||
deleteSshKey: this.requestFunctionFactory(descriptors.userDeleteSshKey), | ||
/** Get your current multi factor auth status */ | ||
getMfaStatus: this.requestFunctionFactory(descriptors.userGetMfaStatus), | ||
/** Initialize Multi Factor Authentication. If successfull, it needs to be confirmed, before usage of mfa. */ | ||
initMfa: this.requestFunctionFactory(descriptors.userInitMfa), | ||
/** Disable Multi Factor Authentication. */ | ||
disableMfa: this.requestFunctionFactory(descriptors.userDisableMfa), | ||
/** Delete your account and all your personal data. */ | ||
deleteUser: this.requestFunctionFactory(descriptors.userDeleteUser), | ||
/** Get your account information. */ | ||
getOwnAccount: this.requestFunctionFactory(descriptors.userGetOwnAccount), | ||
/** Update your account information. */ | ||
updateAccount: this.requestFunctionFactory(descriptors.userUpdateAccount), | ||
/** The timestamp of your latest password change. */ | ||
getPasswordUpdatedAt: this.requestFunctionFactory(descriptors.userGetPasswordUpdatedAt), | ||
/** Get personalized settings. */ | ||
@@ -598,5 +598,5 @@ getPersonalizedSettings: this.requestFunctionFactory(descriptors.userGetPersonalizedSettings), | ||
updatePersonalizedSettings: this.requestFunctionFactory(descriptors.userUpdatePersonalizedSettings), | ||
/** Get a specific Session */ | ||
/** Get a specific session. */ | ||
getSession: this.requestFunctionFactory(descriptors.userGetSession), | ||
/** Terminate a specific Session */ | ||
/** Terminate a specific Session. */ | ||
terminateSession: this.requestFunctionFactory(descriptors.userTerminateSession), | ||
@@ -607,11 +607,13 @@ /** Get profile information for a user. */ | ||
updatePersonalInformation: this.requestFunctionFactory(descriptors.userUpdatePersonalInformation), | ||
/** Initialize password reset process */ | ||
/** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */ | ||
initMfa: this.requestFunctionFactory(descriptors.userInitMfa), | ||
/** Initialize password reset process. */ | ||
initPasswordReset: this.requestFunctionFactory(descriptors.userInitPasswordReset), | ||
/** Submitted feedback of the given user. */ | ||
listFeedback: this.requestFunctionFactory(descriptors.userListFeedback), | ||
/** List all active sessions */ | ||
/** List all sessions. */ | ||
listSessions: this.requestFunctionFactory(descriptors.userListSessions), | ||
/** Terminate all sessions, except the current Session */ | ||
/** Terminate all sessions, except the current session. */ | ||
terminateAllSessions: this.requestFunctionFactory(descriptors.userTerminateAllSessions), | ||
/** Terminate session and invalidate access token */ | ||
/** Terminate session and invalidate access token. */ | ||
logout: this.requestFunctionFactory(descriptors.userLogout), | ||
@@ -624,13 +626,11 @@ /** Register with email and password. */ | ||
removeAvatar: this.requestFunctionFactory(descriptors.userRemoveAvatar), | ||
/** Resend the Email-Address verification email */ | ||
/** Resend the Email-Address verification email. */ | ||
resendVerificationEmail: this.requestFunctionFactory(descriptors.userResendVerificationEmail), | ||
/** Reset RecoveryCodes for MFA */ | ||
resetRecoverycodes: this.requestFunctionFactory(descriptors.userResetRecoverycodes), | ||
/** Request a support code */ | ||
/** Request a support code. */ | ||
supportCodeRequest: this.requestFunctionFactory(descriptors.userSupportCodeRequest), | ||
/** Verify an added Email-Address */ | ||
/** Verify an added Email-Address. */ | ||
verifyEmail: this.requestFunctionFactory(descriptors.userVerifyEmail), | ||
/** Verify phone number. */ | ||
verifyPhoneNumber: this.requestFunctionFactory(descriptors.userVerifyPhoneNumber), | ||
/** Verify your registration */ | ||
/** Verify your registration. */ | ||
verifyRegistration: this.requestFunctionFactory(descriptors.userVerifyRegistration), | ||
@@ -637,0 +637,0 @@ }; |
@@ -1471,83 +1471,77 @@ /** execute a runtime concerning action on a specific `AppInstallation` */ | ||
}; | ||
/** Validate your second factor. */ | ||
export const userAuthenticateMfa = { | ||
path: "/v2/authenticate-mfa", | ||
method: "POST", | ||
operationId: "user-authenticate-mfa", | ||
}; | ||
/** Authenticate yourself to get an access token. */ | ||
export const userAuthenticate = { | ||
path: "/v2/signup/authentication", | ||
path: "/v2/authenticate", | ||
method: "POST", | ||
operationId: "user-authenticate", | ||
}; | ||
/** Validate your second factor. */ | ||
export const userAuthenticateMfa = { | ||
path: "/v2/signup/authentication/mfa", | ||
method: "POST", | ||
operationId: "user-authenticate-mfa", | ||
}; | ||
/** Get your primary verified Email-Address */ | ||
export const userGetEmail = { | ||
path: "/v2/signup/email", | ||
/** Get your verified Email-Address. */ | ||
export const userGetOwnEmail = { | ||
path: "/v2/users/self/credentials/email", | ||
method: "GET", | ||
operationId: "user-get-email", | ||
operationId: "user-get-own-email", | ||
}; | ||
/** Change your Email-Address */ | ||
/** Change your Email-Address. */ | ||
export const userChangeEmail = { | ||
path: "/v2/signup/email", | ||
path: "/v2/users/self/credentials/email", | ||
method: "PUT", | ||
operationId: "user-change-email", | ||
}; | ||
/** The timestamp of your latest password change */ | ||
export const userGetPasswordUpdatedAt = { | ||
path: "/v2/signup/password", | ||
method: "GET", | ||
operationId: "user-get-password-updated-at", | ||
}; | ||
/** Change your password */ | ||
/** Change your password. */ | ||
export const userChangePassword = { | ||
path: "/v2/signup/password", | ||
path: "/v2/users/self/credentials/password", | ||
method: "PUT", | ||
operationId: "user-change-password", | ||
}; | ||
/** Get your profile information */ | ||
export const userGetOwnProfile = { | ||
path: "/v2/signup/profile", | ||
/** Check token for validity. */ | ||
export const userCheckToken = { | ||
path: "/v2/users/self/credentials/token", | ||
method: "POST", | ||
operationId: "user-check-token", | ||
}; | ||
/** Get your current multi factor auth status. */ | ||
export const userGetMfaStatus = { | ||
path: "/v2/users/self/credentials/mfa", | ||
method: "GET", | ||
operationId: "user-get-own-profile", | ||
operationId: "user-get-mfa-status", | ||
}; | ||
/** Change your profile information */ | ||
export const userChangeProfile = { | ||
path: "/v2/signup/profile", | ||
/** Reset RecoveryCodes for MFA. */ | ||
export const userResetRecoverycodes = { | ||
path: "/v2/users/self/credentials/mfa", | ||
method: "PUT", | ||
operationId: "user-change-profile", | ||
operationId: "user-reset-recoverycodes", | ||
}; | ||
/** Delete your profile and all your personal data */ | ||
export const userDeleteProfile = { | ||
path: "/v2/signup/profile", | ||
method: "DELETE", | ||
operationId: "user-delete-profile", | ||
}; | ||
/** Check a token for validity */ | ||
export const userCheckToken = { | ||
path: "/v2/signup/token/check", | ||
method: "POST", | ||
operationId: "user-check-token", | ||
}; | ||
/** Confirm Multi Factor Authentication */ | ||
/** Confirm Multi Factor Authentication. */ | ||
export const userConfirmMfa = { | ||
path: "/v2/signup/mfa/confirm", | ||
path: "/v2/users/self/credentials/mfa", | ||
method: "POST", | ||
operationId: "user-confirm-mfa", | ||
}; | ||
/** Confirm password reset */ | ||
/** Disable Multi Factor Authentication. */ | ||
export const userDisableMfa = { | ||
path: "/v2/users/self/credentials/mfa", | ||
method: "DELETE", | ||
operationId: "user-disable-mfa", | ||
}; | ||
/** Confirm password reset. */ | ||
export const userConfirmPasswordReset = { | ||
path: "/v2/signup/password/reset/confirm", | ||
path: "/v2/users/self/credentials/password/confirm-reset", | ||
method: "POST", | ||
operationId: "user-confirm-password-reset", | ||
}; | ||
/** List all ApiTokens of the user */ | ||
/** List all of your ApiTokens. */ | ||
export const userListApiTokens = { | ||
path: "/v2/signup/token/api", | ||
path: "/v2/users/self/api-tokens", | ||
method: "GET", | ||
operationId: "user-list-api-tokens", | ||
}; | ||
/** Store a new ApiToken */ | ||
/** Store a new ApiToken. */ | ||
export const userCreateApiToken = { | ||
path: "/v2/signup/token/api", | ||
path: "/v2/users/self/api-tokens", | ||
method: "POST", | ||
@@ -1568,67 +1562,73 @@ operationId: "user-create-api-token", | ||
}; | ||
/** Get your stored ssh keys */ | ||
/** Get your stored ssh-keys. */ | ||
export const userListSshKeys = { | ||
path: "/v2/signup/ssh", | ||
path: "/v2/users/self/ssh-keys", | ||
method: "GET", | ||
operationId: "user-list-ssh-keys", | ||
}; | ||
/** Store a new SSH key */ | ||
/** Store a new ssh-key. */ | ||
export const userCreateSshKey = { | ||
path: "/v2/signup/ssh", | ||
path: "/v2/users/self/ssh-keys", | ||
method: "POST", | ||
operationId: "user-create-ssh-key", | ||
}; | ||
/** Get a specific ApiToken */ | ||
/** Get a specific ApiToken. */ | ||
export const userGetApiToken = { | ||
path: "/v2/signup/token/api/{apiTokenId}", | ||
path: "/v2/users/self/api-tokens/{apiTokenId}", | ||
method: "GET", | ||
operationId: "user-get-api-token", | ||
}; | ||
/** Update an existing `ApiToken` */ | ||
/** Update an existing `ApiToken`. */ | ||
export const userEditApiToken = { | ||
path: "/v2/signup/token/api/{apiTokenId}", | ||
path: "/v2/users/self/api-tokens/{apiTokenId}", | ||
method: "PUT", | ||
operationId: "user-edit-api-token", | ||
}; | ||
/** Deletes an ApiToken */ | ||
/** Deletes an ApiToken. */ | ||
export const userDeleteApiToken = { | ||
path: "/v2/signup/token/api/{apiTokenId}", | ||
path: "/v2/users/self/api-tokens/{apiTokenId}", | ||
method: "DELETE", | ||
operationId: "user-delete-api-token", | ||
}; | ||
/** Get a specific stored SshKey */ | ||
/** Get a specific stored ssh-key. */ | ||
export const userGetSshKey = { | ||
path: "/v2/signup/ssh/{sshKeyId}", | ||
path: "/v2/users/self/ssh-keys/{sshKeyId}", | ||
method: "GET", | ||
operationId: "user-get-ssh-key", | ||
}; | ||
/** Edit a stored SshKey */ | ||
/** Edit a stored ssh-key. */ | ||
export const userEditSshKey = { | ||
path: "/v2/signup/ssh/{sshKeyId}", | ||
path: "/v2/users/self/ssh-keys/{sshKeyId}", | ||
method: "PUT", | ||
operationId: "user-edit-ssh-key", | ||
}; | ||
/** Remove a SSH-key */ | ||
/** Remove a ssh-key. */ | ||
export const userDeleteSshKey = { | ||
path: "/v2/signup/ssh/{sshKeyId}", | ||
path: "/v2/users/self/ssh-keys/{sshKeyId}", | ||
method: "DELETE", | ||
operationId: "user-delete-ssh-key", | ||
}; | ||
/** Get your current multi factor auth status */ | ||
export const userGetMfaStatus = { | ||
path: "/v2/signup/mfa", | ||
/** Delete your account and all your personal data. */ | ||
export const userDeleteUser = { | ||
path: "/v2/users/self", | ||
method: "DELETE", | ||
operationId: "user-delete-user", | ||
}; | ||
/** Get your account information. */ | ||
export const userGetOwnAccount = { | ||
path: "/v2/users/self/personal-information", | ||
method: "GET", | ||
operationId: "user-get-mfa-status", | ||
operationId: "user-get-own-account", | ||
}; | ||
/** Initialize Multi Factor Authentication. If successfull, it needs to be confirmed, before usage of mfa. */ | ||
export const userInitMfa = { | ||
path: "/v2/signup/mfa", | ||
method: "POST", | ||
operationId: "user-init-mfa", | ||
/** Update your account information. */ | ||
export const userUpdateAccount = { | ||
path: "/v2/users/self/personal-information", | ||
method: "PUT", | ||
operationId: "user-update-account", | ||
}; | ||
/** Disable Multi Factor Authentication. */ | ||
export const userDisableMfa = { | ||
path: "/v2/signup/mfa", | ||
method: "DELETE", | ||
operationId: "user-disable-mfa", | ||
/** The timestamp of your latest password change. */ | ||
export const userGetPasswordUpdatedAt = { | ||
path: "/v2/users/self/credentials/password-updated-at", | ||
method: "GET", | ||
operationId: "user-get-password-updated-at", | ||
}; | ||
@@ -1647,11 +1647,11 @@ /** Get personalized settings. */ | ||
}; | ||
/** Get a specific Session */ | ||
/** Get a specific session. */ | ||
export const userGetSession = { | ||
path: "/v2/signup/sessions/{tokenId}", | ||
path: "/v2/users/self/sessions/{tokenId}", | ||
method: "GET", | ||
operationId: "user-get-session", | ||
}; | ||
/** Terminate a specific Session */ | ||
/** Terminate a specific Session. */ | ||
export const userTerminateSession = { | ||
path: "/v2/signup/sessions/{tokenId}", | ||
path: "/v2/users/self/sessions/{tokenId}", | ||
method: "DELETE", | ||
@@ -1672,5 +1672,11 @@ operationId: "user-terminate-session", | ||
}; | ||
/** Initialize password reset process */ | ||
/** Initialize Multi Factor Authentication. If successful, it needs to be confirmed, before usage of mfa. */ | ||
export const userInitMfa = { | ||
path: "/v2/users/self/credentials/init-mfa", | ||
method: "POST", | ||
operationId: "user-init-mfa", | ||
}; | ||
/** Initialize password reset process. */ | ||
export const userInitPasswordReset = { | ||
path: "/v2/signup/password/reset", | ||
path: "/v2/users/self/credentials/actions/init-password-reset", | ||
method: "POST", | ||
@@ -1685,17 +1691,17 @@ operationId: "user-init-password-reset", | ||
}; | ||
/** List all active sessions */ | ||
/** List all sessions. */ | ||
export const userListSessions = { | ||
path: "/v2/signup/sessions", | ||
path: "/v2/users/self/sessions", | ||
method: "GET", | ||
operationId: "user-list-sessions", | ||
}; | ||
/** Terminate all sessions, except the current Session */ | ||
/** Terminate all sessions, except the current session. */ | ||
export const userTerminateAllSessions = { | ||
path: "/v2/signup/sessions", | ||
path: "/v2/users/self/sessions", | ||
method: "DELETE", | ||
operationId: "user-terminate-all-sessions", | ||
}; | ||
/** Terminate session and invalidate access token */ | ||
/** Terminate session and invalidate access token. */ | ||
export const userLogout = { | ||
path: "/v2/signup/logout", | ||
path: "/v2/logout", | ||
method: "PUT", | ||
@@ -1706,3 +1712,3 @@ operationId: "user-logout", | ||
export const userRegister = { | ||
path: "/v2/signup/registration", | ||
path: "/v2/register", | ||
method: "POST", | ||
@@ -1723,23 +1729,17 @@ operationId: "user-register", | ||
}; | ||
/** Resend the Email-Address verification email */ | ||
/** Resend the Email-Address verification email. */ | ||
export const userResendVerificationEmail = { | ||
path: "/v2/signup/email/resend", | ||
path: "/v2/users/self/credentials/email/actions/resend-email", | ||
method: "POST", | ||
operationId: "user-resend-verification-email", | ||
}; | ||
/** Reset RecoveryCodes for MFA */ | ||
export const userResetRecoverycodes = { | ||
path: "/v2/signup/mfa/reset-recoverycodes", | ||
method: "PUT", | ||
operationId: "user-reset-recoverycodes", | ||
}; | ||
/** Request a support code */ | ||
/** Request a support code. */ | ||
export const userSupportCodeRequest = { | ||
path: "/v2/signup/supportcode", | ||
path: "/v2/users/self/credentials/support-code", | ||
method: "GET", | ||
operationId: "user-support-code-request", | ||
}; | ||
/** Verify an added Email-Address */ | ||
/** Verify an added Email-Address. */ | ||
export const userVerifyEmail = { | ||
path: "/v2/signup/email/verify", | ||
path: "/v2/users/self/credentials/email/actions/verify-email", | ||
method: "POST", | ||
@@ -1754,7 +1754,7 @@ operationId: "user-verify-email", | ||
}; | ||
/** Verify your registration */ | ||
/** Verify your registration. */ | ||
export const userVerifyRegistration = { | ||
path: "/v2/signup/registration/verification", | ||
path: "/v2/verify-registration", | ||
method: "POST", | ||
operationId: "user-verify-registration", | ||
}; |
{ | ||
"name": "@mittwald/api-client", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Auto-generated client for the mittwald API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -26,3 +26,3 @@ # mittwald API JavaScript client | ||
```typescript | ||
import MittwaldAPIClient from "@mittwald/api-client/v2"; | ||
import { MittwaldAPIV2Client } from "@mittwald/api-client"; | ||
``` | ||
@@ -44,3 +44,3 @@ | ||
```typescript | ||
import MittwaldAPIClient from "@mittwald/api-client/v2"; | ||
import { MittwaldAPIV2Client } from "@mittwald/api-client"; | ||
@@ -71,1 +71,15 @@ const mittwaldApi = MittwaldAPIClient.newWithToken("your-access-token"); | ||
[api-getting-started]: https://developer.mittwald.de/docs/v2/api/intro | ||
## Usage with TypeScript | ||
All response and request types can be imported from the `MittwaldAPIV2` | ||
namespace. | ||
### Importing types | ||
```typescript | ||
import { MittwaldAPIV2 } from "@mittwald/api-client"; | ||
type Project = | ||
MittwaldAPIV2.Paths.V2Projects.Get.Responses.$200.Content.ApplicationJson[number]; | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2377205
49118
83
0