@authticon/client 0.0.0-beta9 → 0.0.3
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/README.md +390 -0
- package/dist/authticon.d.ts +122 -0
- package/dist/authticon.d.ts.map +1 -0
- package/dist/authticon.js +24 -0
- package/dist/authticon.js.map +1 -0
- package/dist/browser.d.ts +128 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +14 -0
- package/dist/browser.js.map +1 -0
- package/dist/clients/admin.d.ts +107 -0
- package/dist/clients/admin.d.ts.map +1 -0
- package/dist/clients/admin.js +133 -0
- package/dist/clients/admin.js.map +1 -0
- package/dist/clients/auth.d.ts +34 -0
- package/dist/clients/auth.d.ts.map +1 -0
- package/dist/clients/auth.js +67 -0
- package/dist/clients/auth.js.map +1 -0
- package/dist/clients/base.d.ts +8 -0
- package/dist/clients/base.d.ts.map +1 -0
- package/dist/clients/base.js +18 -0
- package/dist/clients/base.js.map +1 -0
- package/dist/clients/generated/client/client.gen.d.ts.map +1 -0
- package/dist/clients/generated/client/client.gen.js +236 -0
- package/dist/clients/generated/client/client.gen.js.map +1 -0
- package/dist/{generated → clients/generated}/client/index.d.ts +2 -2
- package/dist/clients/generated/client/index.d.ts.map +1 -0
- package/dist/{generated → clients/generated}/client/index.js +1 -1
- package/dist/clients/generated/client/index.js.map +1 -0
- package/dist/clients/generated/client/types.gen.d.ts +118 -0
- package/dist/clients/generated/client/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/client/types.gen.js.map +1 -0
- package/dist/clients/generated/client/utils.gen.d.ts +34 -0
- package/dist/clients/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/{generated → clients/generated}/client/utils.gen.js +117 -57
- package/dist/clients/generated/client/utils.gen.js.map +1 -0
- package/dist/clients/generated/client.gen.d.ts.map +1 -0
- package/dist/{generated → clients/generated}/client.gen.js +1 -1
- package/dist/clients/generated/client.gen.js.map +1 -0
- package/dist/clients/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/auth.gen.js.map +1 -0
- package/dist/clients/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/params.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/params.gen.js.map +1 -0
- package/dist/clients/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/clients/generated/core/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/types.gen.js.map +1 -0
- package/dist/clients/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/utils.gen.js.map +1 -0
- package/dist/clients/generated/index.d.ts +3 -0
- package/dist/clients/generated/index.d.ts.map +1 -0
- package/dist/clients/generated/index.js +3 -0
- package/dist/clients/generated/index.js.map +1 -0
- package/dist/clients/generated/sdk.gen.d.ts +178 -0
- package/dist/clients/generated/sdk.gen.d.ts.map +1 -0
- package/dist/clients/generated/sdk.gen.js +445 -0
- package/dist/clients/generated/sdk.gen.js.map +1 -0
- package/dist/clients/generated/types.gen.d.ts +1355 -0
- package/dist/clients/generated/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/types.gen.js.map +1 -0
- package/dist/clients/user.d.ts +70 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +72 -0
- package/dist/clients/user.js.map +1 -0
- package/dist/cookies/browser.d.ts +3 -0
- package/dist/cookies/browser.d.ts.map +1 -0
- package/dist/cookies/browser.js +31 -0
- package/dist/cookies/browser.js.map +1 -0
- package/dist/cookies/node.d.ts +8 -0
- package/dist/cookies/node.d.ts.map +1 -0
- package/dist/cookies/node.js +49 -0
- package/dist/cookies/node.js.map +1 -0
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +40 -0
- package/dist/errors.js.map +1 -0
- package/dist/node.d.ts +163 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +46 -0
- package/dist/node.js.map +1 -0
- package/dist/password.d.ts +8 -0
- package/dist/password.d.ts.map +1 -0
- package/dist/password.js +23 -0
- package/dist/password.js.map +1 -0
- package/dist/session.d.ts +99 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +223 -0
- package/dist/session.js.map +1 -0
- package/dist/tokens.d.ts +27 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +212 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types.d.ts +48 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +23 -8
- package/dist/Acccount.d.ts +0 -9
- package/dist/Acccount.d.ts.map +0 -1
- package/dist/Acccount.js +0 -22
- package/dist/Acccount.js.map +0 -1
- package/dist/Auth.d.ts +0 -25
- package/dist/Auth.d.ts.map +0 -1
- package/dist/Auth.js +0 -43
- package/dist/Auth.js.map +0 -1
- package/dist/Authticon.d.ts +0 -87
- package/dist/Authticon.d.ts.map +0 -1
- package/dist/Authticon.js +0 -74
- package/dist/Authticon.js.map +0 -1
- package/dist/BrowserCookieAdapter.d.ts +0 -13
- package/dist/BrowserCookieAdapter.d.ts.map +0 -1
- package/dist/BrowserCookieAdapter.js +0 -18
- package/dist/BrowserCookieAdapter.js.map +0 -1
- package/dist/BrowserCookieAdapter.test.d.ts +0 -2
- package/dist/BrowserCookieAdapter.test.d.ts.map +0 -1
- package/dist/BrowserCookieAdapter.test.js +0 -145
- package/dist/BrowserCookieAdapter.test.js.map +0 -1
- package/dist/Challange.d.ts +0 -8
- package/dist/Challange.d.ts.map +0 -1
- package/dist/Challange.js +0 -24
- package/dist/Challange.js.map +0 -1
- package/dist/CookieStorageAdapter.d.ts +0 -14
- package/dist/CookieStorageAdapter.d.ts.map +0 -1
- package/dist/CookieStorageAdapter.js +0 -42
- package/dist/CookieStorageAdapter.js.map +0 -1
- package/dist/CookieStorageAdapter.test.d.ts +0 -2
- package/dist/CookieStorageAdapter.test.d.ts.map +0 -1
- package/dist/CookieStorageAdapter.test.js +0 -130
- package/dist/CookieStorageAdapter.test.js.map +0 -1
- package/dist/RemixCookieAdapter.d.ts +0 -12
- package/dist/RemixCookieAdapter.d.ts.map +0 -1
- package/dist/RemixCookieAdapter.js +0 -25
- package/dist/RemixCookieAdapter.js.map +0 -1
- package/dist/RemixCookieAdapter.test.d.ts +0 -2
- package/dist/RemixCookieAdapter.test.d.ts.map +0 -1
- package/dist/RemixCookieAdapter.test.js +0 -136
- package/dist/RemixCookieAdapter.test.js.map +0 -1
- package/dist/TokenManager.d.ts +0 -24
- package/dist/TokenManager.d.ts.map +0 -1
- package/dist/TokenManager.js +0 -53
- package/dist/TokenManager.js.map +0 -1
- package/dist/TokenManager.test.d.ts +0 -2
- package/dist/TokenManager.test.d.ts.map +0 -1
- package/dist/TokenManager.test.js +0 -118
- package/dist/TokenManager.test.js.map +0 -1
- package/dist/TokenStorage.d.ts +0 -18
- package/dist/TokenStorage.d.ts.map +0 -1
- package/dist/TokenStorage.js +0 -69
- package/dist/TokenStorage.js.map +0 -1
- package/dist/TokenStorage.test.d.ts +0 -2
- package/dist/TokenStorage.test.d.ts.map +0 -1
- package/dist/TokenStorage.test.js +0 -179
- package/dist/TokenStorage.test.js.map +0 -1
- package/dist/TokenVerifier.d.ts +0 -13
- package/dist/TokenVerifier.d.ts.map +0 -1
- package/dist/TokenVerifier.js +0 -61
- package/dist/TokenVerifier.js.map +0 -1
- package/dist/TokenVerifier.test.d.ts +0 -2
- package/dist/TokenVerifier.test.d.ts.map +0 -1
- package/dist/TokenVerifier.test.js +0 -117
- package/dist/TokenVerifier.test.js.map +0 -1
- package/dist/TwoFa.d.ts +0 -26
- package/dist/TwoFa.d.ts.map +0 -1
- package/dist/TwoFa.js +0 -55
- package/dist/TwoFa.js.map +0 -1
- package/dist/User.d.ts +0 -25
- package/dist/User.d.ts.map +0 -1
- package/dist/User.js +0 -27
- package/dist/User.js.map +0 -1
- package/dist/Users.d.ts +0 -57
- package/dist/Users.d.ts.map +0 -1
- package/dist/Users.js +0 -55
- package/dist/Users.js.map +0 -1
- package/dist/cookie-utils.d.ts +0 -5
- package/dist/cookie-utils.d.ts.map +0 -1
- package/dist/cookie-utils.js +0 -33
- package/dist/cookie-utils.js.map +0 -1
- package/dist/generated/client/client.gen.d.ts.map +0 -1
- package/dist/generated/client/client.gen.js +0 -135
- package/dist/generated/client/client.gen.js.map +0 -1
- package/dist/generated/client/index.d.ts.map +0 -1
- package/dist/generated/client/index.js.map +0 -1
- package/dist/generated/client/types.gen.d.ts +0 -89
- package/dist/generated/client/types.gen.d.ts.map +0 -1
- package/dist/generated/client/types.gen.js.map +0 -1
- package/dist/generated/client/utils.gen.d.ts +0 -15
- package/dist/generated/client/utils.gen.d.ts.map +0 -1
- package/dist/generated/client/utils.gen.js.map +0 -1
- package/dist/generated/client.gen.d.ts.map +0 -1
- package/dist/generated/client.gen.js.map +0 -1
- package/dist/generated/core/auth.gen.d.ts.map +0 -1
- package/dist/generated/core/auth.gen.js.map +0 -1
- package/dist/generated/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/bodySerializer.gen.js.map +0 -1
- package/dist/generated/core/params.gen.d.ts.map +0 -1
- package/dist/generated/core/params.gen.js.map +0 -1
- package/dist/generated/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/pathSerializer.gen.js.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/generated/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/generated/core/serverSentEvents.gen.js.map +0 -1
- package/dist/generated/core/types.gen.d.ts.map +0 -1
- package/dist/generated/core/types.gen.js.map +0 -1
- package/dist/generated/core/utils.gen.d.ts.map +0 -1
- package/dist/generated/core/utils.gen.js.map +0 -1
- package/dist/generated/index.d.ts +0 -3
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -3
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/sdk.gen.d.ts +0 -58
- package/dist/generated/sdk.gen.d.ts.map +0 -1
- package/dist/generated/sdk.gen.js +0 -337
- package/dist/generated/sdk.gen.js.map +0 -1
- package/dist/generated/types.gen.d.ts +0 -1344
- package/dist/generated/types.gen.d.ts.map +0 -1
- package/dist/generated/types.gen.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/user.d.ts +0 -50
- package/dist/user.d.ts.map +0 -1
- package/dist/user.js +0 -35
- package/dist/user.js.map +0 -1
- /package/dist/{generated → clients/generated}/client/client.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/client/types.gen.js +0 -0
- /package/dist/{generated → clients/generated}/client.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/auth.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/auth.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/bodySerializer.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/bodySerializer.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/params.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/params.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/pathSerializer.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/queryKeySerializer.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/queryKeySerializer.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/serverSentEvents.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/types.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/types.gen.js +0 -0
- /package/dist/{generated → clients/generated}/core/utils.gen.d.ts +0 -0
- /package/dist/{generated → clients/generated}/core/utils.gen.js +0 -0
- /package/dist/{generated → clients/generated}/types.gen.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/generated/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACppB,YAAY,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB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AAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export { acceptInvitation, adminDeleteInvitation, adminListInvitations, changeEmail, changePassword, changePhone, createGuestUser, createInvitation, createUser, createUserRole, deleteInvitation, deleteUser, deleteUserRole, disableTwoFa, enableTwoFa, forgotPassword, getMe, getTwoFaSecret, getUser, getWellKnownEncryptionKeyPem, getWellKnownJwksJson, listUserRoles, listUsers, login, loginAs, loginByMagicLink, logout, refresh, register, resendEmailConfirmation, sendMagicLink, sendSmsCode, sendTestEmail, sendTwoFaCode, setPassword, updateMe, updateUser, updateUserRole, verifyEmail, verifyPhone, verifySmsCode, verifyTwoFa } from './sdk.gen.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/clients/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAgB,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
2
|
+
import type { AcceptInvitationData, AcceptInvitationErrors, AcceptInvitationResponses, AdminDeleteInvitationData, AdminDeleteInvitationErrors, AdminDeleteInvitationResponses, AdminListInvitationsData, AdminListInvitationsResponses, ChangeEmailData, ChangeEmailErrors, ChangeEmailResponses, ChangePasswordData, ChangePasswordErrors, ChangePasswordResponses, ChangePhoneData, ChangePhoneErrors, ChangePhoneResponses, CreateGuestUserData, CreateGuestUserErrors, CreateGuestUserResponses, CreateInvitationData, CreateInvitationErrors, CreateInvitationResponses, CreateUserData, CreateUserErrors, CreateUserResponses, CreateUserRoleData, CreateUserRoleErrors, CreateUserRoleResponses, DeleteInvitationData, DeleteInvitationErrors, DeleteInvitationResponses, DeleteUserData, DeleteUserErrors, DeleteUserResponses, DeleteUserRoleData, DeleteUserRoleErrors, DeleteUserRoleResponses, DisableTwoFaData, DisableTwoFaErrors, DisableTwoFaResponses, EnableTwoFaData, EnableTwoFaErrors, EnableTwoFaResponses, ForgotPasswordData, ForgotPasswordResponses, GetMeData, GetMeResponses, GetTwoFaSecretData, GetTwoFaSecretResponses, GetUserData, GetUserErrors, GetUserResponses, GetWellKnownEncryptionKeyPemData, GetWellKnownEncryptionKeyPemResponses, GetWellKnownJwksJsonData, GetWellKnownJwksJsonResponses, ListUserRolesData, ListUserRolesErrors, ListUserRolesResponses, ListUsersData, ListUsersResponses, LoginAsData, LoginAsErrors, LoginAsResponses, LoginByMagicLinkData, LoginByMagicLinkErrors, LoginByMagicLinkResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutResponses, RefreshData, RefreshErrors, RefreshResponses, RegisterData, RegisterErrors, RegisterResponses, ResendEmailConfirmationData, ResendEmailConfirmationErrors, ResendEmailConfirmationResponses, SendMagicLinkData, SendMagicLinkErrors, SendMagicLinkResponses, SendSmsCodeData, SendSmsCodeErrors, SendSmsCodeResponses, SendTestEmailData, SendTestEmailResponses, SendTwoFaCodeData, SendTwoFaCodeErrors, SendTwoFaCodeResponses, SetPasswordData, SetPasswordErrors, SetPasswordResponses, UpdateMeData, UpdateMeResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserRoleData, UpdateUserRoleErrors, UpdateUserRoleResponses, VerifyEmailData, VerifyEmailResponses, VerifyPhoneData, VerifyPhoneErrors, VerifyPhoneResponses, VerifySmsCodeData, VerifySmsCodeErrors, VerifySmsCodeResponses, VerifyTwoFaData, VerifyTwoFaErrors, VerifyTwoFaResponses } from './types.gen.js';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare const getWellKnownJwksJson: <ThrowOnError extends boolean = true>(options?: Options<GetWellKnownJwksJsonData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetWellKnownJwksJsonResponses, unknown, ThrowOnError, "fields">;
|
|
17
|
+
export declare const getWellKnownEncryptionKeyPem: <ThrowOnError extends boolean = true>(options?: Options<GetWellKnownEncryptionKeyPemData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetWellKnownEncryptionKeyPemResponses, unknown, ThrowOnError, "fields">;
|
|
18
|
+
/**
|
|
19
|
+
* Login as user
|
|
20
|
+
*/
|
|
21
|
+
export declare const loginAs: <ThrowOnError extends boolean = true>(options: Options<LoginAsData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<LoginAsResponses, LoginAsErrors, ThrowOnError, "fields">;
|
|
22
|
+
/**
|
|
23
|
+
* Send a magic link to the user
|
|
24
|
+
*/
|
|
25
|
+
export declare const sendMagicLink: <ThrowOnError extends boolean = true>(options: Options<SendMagicLinkData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<SendMagicLinkResponses, SendMagicLinkErrors, ThrowOnError, "fields">;
|
|
26
|
+
/**
|
|
27
|
+
* List active invitations for a project
|
|
28
|
+
*/
|
|
29
|
+
export declare const adminListInvitations: <ThrowOnError extends boolean = true>(options?: Options<AdminListInvitationsData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<AdminListInvitationsResponses, unknown, ThrowOnError, "fields">;
|
|
30
|
+
/**
|
|
31
|
+
* Delete an invitation
|
|
32
|
+
*/
|
|
33
|
+
export declare const adminDeleteInvitation: <ThrowOnError extends boolean = true>(options: Options<AdminDeleteInvitationData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<AdminDeleteInvitationResponses, AdminDeleteInvitationErrors, ThrowOnError, "fields">;
|
|
34
|
+
/**
|
|
35
|
+
* Send test email
|
|
36
|
+
*/
|
|
37
|
+
export declare const sendTestEmail: <ThrowOnError extends boolean = true>(options: Options<SendTestEmailData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<SendTestEmailResponses, unknown, ThrowOnError, "fields">;
|
|
38
|
+
/**
|
|
39
|
+
* Verify SMS code
|
|
40
|
+
*/
|
|
41
|
+
export declare const verifySmsCode: <ThrowOnError extends boolean = true>(options: Options<VerifySmsCodeData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<VerifySmsCodeResponses, VerifySmsCodeErrors, ThrowOnError, "fields">;
|
|
42
|
+
/**
|
|
43
|
+
* Send SMS verification code
|
|
44
|
+
*/
|
|
45
|
+
export declare const sendSmsCode: <ThrowOnError extends boolean = true>(options: Options<SendSmsCodeData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<SendSmsCodeResponses, SendSmsCodeErrors, ThrowOnError, "fields">;
|
|
46
|
+
/**
|
|
47
|
+
* List users
|
|
48
|
+
*/
|
|
49
|
+
export declare const listUsers: <ThrowOnError extends boolean = true>(options?: Options<ListUsersData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ListUsersResponses, unknown, ThrowOnError, "fields">;
|
|
50
|
+
/**
|
|
51
|
+
* Create user
|
|
52
|
+
*/
|
|
53
|
+
export declare const createUser: <ThrowOnError extends boolean = true>(options: Options<CreateUserData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<CreateUserResponses, CreateUserErrors, ThrowOnError, "fields">;
|
|
54
|
+
/**
|
|
55
|
+
* Delete user
|
|
56
|
+
*/
|
|
57
|
+
export declare const deleteUser: <ThrowOnError extends boolean = true>(options: Options<DeleteUserData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DeleteUserResponses, DeleteUserErrors, ThrowOnError, "fields">;
|
|
58
|
+
/**
|
|
59
|
+
* Get user
|
|
60
|
+
*/
|
|
61
|
+
export declare const getUser: <ThrowOnError extends boolean = true>(options: Options<GetUserData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetUserResponses, GetUserErrors, ThrowOnError, "fields">;
|
|
62
|
+
/**
|
|
63
|
+
* Update user
|
|
64
|
+
*/
|
|
65
|
+
export declare const updateUser: <ThrowOnError extends boolean = true>(options: Options<UpdateUserData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError, "fields">;
|
|
66
|
+
/**
|
|
67
|
+
* Create user role
|
|
68
|
+
*/
|
|
69
|
+
export declare const createUserRole: <ThrowOnError extends boolean = true>(options: Options<CreateUserRoleData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<CreateUserRoleResponses, CreateUserRoleErrors, ThrowOnError, "fields">;
|
|
70
|
+
/**
|
|
71
|
+
* Delete user role
|
|
72
|
+
*/
|
|
73
|
+
export declare const deleteUserRole: <ThrowOnError extends boolean = true>(options: Options<DeleteUserRoleData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DeleteUserRoleResponses, DeleteUserRoleErrors, ThrowOnError, "fields">;
|
|
74
|
+
/**
|
|
75
|
+
* List user roles
|
|
76
|
+
*/
|
|
77
|
+
export declare const listUserRoles: <ThrowOnError extends boolean = true>(options: Options<ListUserRolesData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ListUserRolesResponses, ListUserRolesErrors, ThrowOnError, "fields">;
|
|
78
|
+
/**
|
|
79
|
+
* Update user role
|
|
80
|
+
*/
|
|
81
|
+
export declare const updateUserRole: <ThrowOnError extends boolean = true>(options: Options<UpdateUserRoleData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<UpdateUserRoleResponses, UpdateUserRoleErrors, ThrowOnError, "fields">;
|
|
82
|
+
/**
|
|
83
|
+
* Logout the user
|
|
84
|
+
*/
|
|
85
|
+
export declare const logout: <ThrowOnError extends boolean = true>(options: Options<LogoutData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<LogoutResponses, unknown, ThrowOnError, "fields">;
|
|
86
|
+
/**
|
|
87
|
+
* Get the current user
|
|
88
|
+
*/
|
|
89
|
+
export declare const getMe: <ThrowOnError extends boolean = true>(options?: Options<GetMeData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetMeResponses, unknown, ThrowOnError, "fields">;
|
|
90
|
+
/**
|
|
91
|
+
* Update the current user
|
|
92
|
+
*/
|
|
93
|
+
export declare const updateMe: <ThrowOnError extends boolean = true>(options: Options<UpdateMeData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<UpdateMeResponses, unknown, ThrowOnError, "fields">;
|
|
94
|
+
/**
|
|
95
|
+
* Refresh the access token
|
|
96
|
+
*/
|
|
97
|
+
export declare const refresh: <ThrowOnError extends boolean = true>(options: Options<RefreshData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<RefreshResponses, RefreshErrors, ThrowOnError, "fields">;
|
|
98
|
+
/**
|
|
99
|
+
* Disable two factor authentication
|
|
100
|
+
*/
|
|
101
|
+
export declare const disableTwoFa: <ThrowOnError extends boolean = true>(options: Options<DisableTwoFaData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DisableTwoFaResponses, DisableTwoFaErrors, ThrowOnError, "fields">;
|
|
102
|
+
/**
|
|
103
|
+
* Enable two factor authentication
|
|
104
|
+
*/
|
|
105
|
+
export declare const enableTwoFa: <ThrowOnError extends boolean = true>(options: Options<EnableTwoFaData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<EnableTwoFaResponses, EnableTwoFaErrors, ThrowOnError, "fields">;
|
|
106
|
+
/**
|
|
107
|
+
* Get two factor authentication secret
|
|
108
|
+
*/
|
|
109
|
+
export declare const getTwoFaSecret: <ThrowOnError extends boolean = true>(options?: Options<GetTwoFaSecretData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<GetTwoFaSecretResponses, unknown, ThrowOnError, "fields">;
|
|
110
|
+
/**
|
|
111
|
+
* Send two factor authentication code
|
|
112
|
+
*/
|
|
113
|
+
export declare const sendTwoFaCode: <ThrowOnError extends boolean = true>(options: Options<SendTwoFaCodeData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<SendTwoFaCodeResponses, SendTwoFaCodeErrors, ThrowOnError, "fields">;
|
|
114
|
+
/**
|
|
115
|
+
* Verify two factor authentication code
|
|
116
|
+
*/
|
|
117
|
+
export declare const verifyTwoFa: <ThrowOnError extends boolean = true>(options: Options<VerifyTwoFaData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<VerifyTwoFaResponses, VerifyTwoFaErrors, ThrowOnError, "fields">;
|
|
118
|
+
/**
|
|
119
|
+
* Change the email of the user
|
|
120
|
+
*/
|
|
121
|
+
export declare const changeEmail: <ThrowOnError extends boolean = true>(options: Options<ChangeEmailData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ChangeEmailResponses, ChangeEmailErrors, ThrowOnError, "fields">;
|
|
122
|
+
/**
|
|
123
|
+
* Delete an invitation
|
|
124
|
+
*/
|
|
125
|
+
export declare const deleteInvitation: <ThrowOnError extends boolean = true>(options: Options<DeleteInvitationData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<DeleteInvitationResponses, DeleteInvitationErrors, ThrowOnError, "fields">;
|
|
126
|
+
/**
|
|
127
|
+
* Create an invitation
|
|
128
|
+
*/
|
|
129
|
+
export declare const createInvitation: <ThrowOnError extends boolean = true>(options: Options<CreateInvitationData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<CreateInvitationResponses, CreateInvitationErrors, ThrowOnError, "fields">;
|
|
130
|
+
/**
|
|
131
|
+
* Change the password of the user
|
|
132
|
+
*/
|
|
133
|
+
export declare const changePassword: <ThrowOnError extends boolean = true>(options: Options<ChangePasswordData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ChangePasswordResponses, ChangePasswordErrors, ThrowOnError, "fields">;
|
|
134
|
+
/**
|
|
135
|
+
* Set the password for passwordless user
|
|
136
|
+
*/
|
|
137
|
+
export declare const setPassword: <ThrowOnError extends boolean = true>(options: Options<SetPasswordData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<SetPasswordResponses, SetPasswordErrors, ThrowOnError, "fields">;
|
|
138
|
+
/**
|
|
139
|
+
* Change the phone number of the user
|
|
140
|
+
*/
|
|
141
|
+
export declare const changePhone: <ThrowOnError extends boolean = true>(options: Options<ChangePhoneData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ChangePhoneResponses, ChangePhoneErrors, ThrowOnError, "fields">;
|
|
142
|
+
/**
|
|
143
|
+
* Verify the phone number of the user
|
|
144
|
+
*/
|
|
145
|
+
export declare const verifyPhone: <ThrowOnError extends boolean = true>(options: Options<VerifyPhoneData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<VerifyPhoneResponses, VerifyPhoneErrors, ThrowOnError, "fields">;
|
|
146
|
+
/**
|
|
147
|
+
* Accept an invitation
|
|
148
|
+
*/
|
|
149
|
+
export declare const acceptInvitation: <ThrowOnError extends boolean = true>(options: Options<AcceptInvitationData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<AcceptInvitationResponses, AcceptInvitationErrors, ThrowOnError, "fields">;
|
|
150
|
+
/**
|
|
151
|
+
* Create a guest user
|
|
152
|
+
*/
|
|
153
|
+
export declare const createGuestUser: <ThrowOnError extends boolean = true>(options: Options<CreateGuestUserData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<CreateGuestUserResponses, CreateGuestUserErrors, ThrowOnError, "fields">;
|
|
154
|
+
/**
|
|
155
|
+
* Forgot password
|
|
156
|
+
*/
|
|
157
|
+
export declare const forgotPassword: <ThrowOnError extends boolean = true>(options: Options<ForgotPasswordData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ForgotPasswordResponses, unknown, ThrowOnError, "fields">;
|
|
158
|
+
/**
|
|
159
|
+
* Login
|
|
160
|
+
*/
|
|
161
|
+
export declare const login: <ThrowOnError extends boolean = true>(options: Options<LoginData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<LoginResponses, LoginErrors, ThrowOnError, "fields">;
|
|
162
|
+
/**
|
|
163
|
+
* Login by magic link
|
|
164
|
+
*/
|
|
165
|
+
export declare const loginByMagicLink: <ThrowOnError extends boolean = true>(options: Options<LoginByMagicLinkData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<LoginByMagicLinkResponses, LoginByMagicLinkErrors, ThrowOnError, "fields">;
|
|
166
|
+
/**
|
|
167
|
+
* Register a new user
|
|
168
|
+
*/
|
|
169
|
+
export declare const register: <ThrowOnError extends boolean = true>(options: Options<RegisterData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<RegisterResponses, RegisterErrors, ThrowOnError, "fields">;
|
|
170
|
+
/**
|
|
171
|
+
* Resend email confirmation
|
|
172
|
+
*/
|
|
173
|
+
export declare const resendEmailConfirmation: <ThrowOnError extends boolean = true>(options: Options<ResendEmailConfirmationData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<ResendEmailConfirmationResponses, ResendEmailConfirmationErrors, ThrowOnError, "fields">;
|
|
174
|
+
/**
|
|
175
|
+
* Verify the email of the user
|
|
176
|
+
*/
|
|
177
|
+
export declare const verifyEmail: <ThrowOnError extends boolean = true>(options: Options<VerifyEmailData, ThrowOnError>) => import("./client/types.gen.js").RequestResult<VerifyEmailResponses, unknown, ThrowOnError, "fields">;
|
|
178
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/clients/generated/sdk.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,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AAS,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,6GAQxG,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,YAAY,SAAS,OAAO,GAAG,IAAI,EAAE,SAAS,OAAO,CAAC,2BAA2B,EAAE,YAAY,CAAC,2IAQtI,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,YAAY,SAAS,OAAO,GAAG,IAAI,EAAE,SAAS,OAAO,CAAC,eAAe,EAAE,YAAY,CAAC,yGAQ9G,CAAC"}
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
export const getWellKnownJwksJson = (options) => (options?.client ?? client).get({ url: '/.well-known/jwks.json', ...options });
|
|
4
|
+
export const getWellKnownEncryptionKeyPem = (options) => (options?.client ?? client).get({ url: '/.well-known/encryption-key.pem', ...options });
|
|
5
|
+
/**
|
|
6
|
+
* Login as user
|
|
7
|
+
*/
|
|
8
|
+
export const loginAs = (options) => (options.client ?? client).post({
|
|
9
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
10
|
+
url: '/api/v1/admin/login-as',
|
|
11
|
+
...options,
|
|
12
|
+
headers: {
|
|
13
|
+
'Content-Type': 'application/json',
|
|
14
|
+
...options.headers
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Send a magic link to the user
|
|
19
|
+
*/
|
|
20
|
+
export const sendMagicLink = (options) => (options.client ?? client).post({
|
|
21
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
22
|
+
url: '/api/v1/admin/magic-link/send',
|
|
23
|
+
...options,
|
|
24
|
+
headers: {
|
|
25
|
+
'Content-Type': 'application/json',
|
|
26
|
+
...options.headers
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* List active invitations for a project
|
|
31
|
+
*/
|
|
32
|
+
export const adminListInvitations = (options) => (options?.client ?? client).get({
|
|
33
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
34
|
+
url: '/api/v1/admin/invitations/',
|
|
35
|
+
...options
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Delete an invitation
|
|
39
|
+
*/
|
|
40
|
+
export const adminDeleteInvitation = (options) => (options.client ?? client).delete({
|
|
41
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
42
|
+
url: '/api/v1/admin/invitations/{id}/',
|
|
43
|
+
...options
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Send test email
|
|
47
|
+
*/
|
|
48
|
+
export const sendTestEmail = (options) => (options.client ?? client).post({
|
|
49
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
50
|
+
url: '/api/v1/admin/tools/test-email',
|
|
51
|
+
...options,
|
|
52
|
+
headers: {
|
|
53
|
+
'Content-Type': 'application/json',
|
|
54
|
+
...options.headers
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* Verify SMS code
|
|
59
|
+
*/
|
|
60
|
+
export const verifySmsCode = (options) => (options.client ?? client).patch({
|
|
61
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
62
|
+
url: '/api/v1/admin/tools/sms',
|
|
63
|
+
...options,
|
|
64
|
+
headers: {
|
|
65
|
+
'Content-Type': 'application/json',
|
|
66
|
+
...options.headers
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Send SMS verification code
|
|
71
|
+
*/
|
|
72
|
+
export const sendSmsCode = (options) => (options.client ?? client).post({
|
|
73
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
74
|
+
url: '/api/v1/admin/tools/sms',
|
|
75
|
+
...options,
|
|
76
|
+
headers: {
|
|
77
|
+
'Content-Type': 'application/json',
|
|
78
|
+
...options.headers
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* List users
|
|
83
|
+
*/
|
|
84
|
+
export const listUsers = (options) => (options?.client ?? client).get({
|
|
85
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
86
|
+
url: '/api/v1/admin/users/',
|
|
87
|
+
...options
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Create user
|
|
91
|
+
*/
|
|
92
|
+
export const createUser = (options) => (options.client ?? client).post({
|
|
93
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
94
|
+
url: '/api/v1/admin/users/',
|
|
95
|
+
...options,
|
|
96
|
+
headers: {
|
|
97
|
+
'Content-Type': 'application/json',
|
|
98
|
+
...options.headers
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* Delete user
|
|
103
|
+
*/
|
|
104
|
+
export const deleteUser = (options) => (options.client ?? client).delete({
|
|
105
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
106
|
+
url: '/api/v1/admin/users/{userId}/',
|
|
107
|
+
...options
|
|
108
|
+
});
|
|
109
|
+
/**
|
|
110
|
+
* Get user
|
|
111
|
+
*/
|
|
112
|
+
export const getUser = (options) => (options.client ?? client).get({
|
|
113
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
114
|
+
url: '/api/v1/admin/users/{userId}',
|
|
115
|
+
...options
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* Update user
|
|
119
|
+
*/
|
|
120
|
+
export const updateUser = (options) => (options.client ?? client).patch({
|
|
121
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
122
|
+
url: '/api/v1/admin/users/{userId}',
|
|
123
|
+
...options,
|
|
124
|
+
headers: {
|
|
125
|
+
'Content-Type': 'application/json',
|
|
126
|
+
...options.headers
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
/**
|
|
130
|
+
* Create user role
|
|
131
|
+
*/
|
|
132
|
+
export const createUserRole = (options) => (options.client ?? client).post({
|
|
133
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
134
|
+
url: '/api/v1/admin/users/{userId}/roles',
|
|
135
|
+
...options,
|
|
136
|
+
headers: {
|
|
137
|
+
'Content-Type': 'application/json',
|
|
138
|
+
...options.headers
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* Delete user role
|
|
143
|
+
*/
|
|
144
|
+
export const deleteUserRole = (options) => (options.client ?? client).delete({
|
|
145
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
146
|
+
url: '/api/v1/admin/users/{userId}/roles/roles/{roleId}',
|
|
147
|
+
...options
|
|
148
|
+
});
|
|
149
|
+
/**
|
|
150
|
+
* List user roles
|
|
151
|
+
*/
|
|
152
|
+
export const listUserRoles = (options) => (options.client ?? client).get({
|
|
153
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
154
|
+
url: '/api/v1/admin/users/{userId}/roles/roles',
|
|
155
|
+
...options
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Update user role
|
|
159
|
+
*/
|
|
160
|
+
export const updateUserRole = (options) => (options.client ?? client).patch({
|
|
161
|
+
security: [{ name: 'x-api-key', type: 'apiKey' }],
|
|
162
|
+
url: '/api/v1/admin/users/{userId}/roles/{roleId}',
|
|
163
|
+
...options,
|
|
164
|
+
headers: {
|
|
165
|
+
'Content-Type': 'application/json',
|
|
166
|
+
...options.headers
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
/**
|
|
170
|
+
* Logout the user
|
|
171
|
+
*/
|
|
172
|
+
export const logout = (options) => (options.client ?? client).post({
|
|
173
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
174
|
+
url: '/api/v1/me/logout',
|
|
175
|
+
...options,
|
|
176
|
+
headers: {
|
|
177
|
+
'Content-Type': 'application/json',
|
|
178
|
+
...options.headers
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
/**
|
|
182
|
+
* Get the current user
|
|
183
|
+
*/
|
|
184
|
+
export const getMe = (options) => (options?.client ?? client).get({
|
|
185
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
186
|
+
url: '/api/v1/me',
|
|
187
|
+
...options
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Update the current user
|
|
191
|
+
*/
|
|
192
|
+
export const updateMe = (options) => (options.client ?? client).patch({
|
|
193
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
194
|
+
url: '/api/v1/me',
|
|
195
|
+
...options,
|
|
196
|
+
headers: {
|
|
197
|
+
'Content-Type': 'application/json',
|
|
198
|
+
...options.headers
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
/**
|
|
202
|
+
* Refresh the access token
|
|
203
|
+
*/
|
|
204
|
+
export const refresh = (options) => (options.client ?? client).post({
|
|
205
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
206
|
+
url: '/api/v1/me/token/refresh',
|
|
207
|
+
...options,
|
|
208
|
+
headers: {
|
|
209
|
+
'Content-Type': 'application/json',
|
|
210
|
+
...options.headers
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* Disable two factor authentication
|
|
215
|
+
*/
|
|
216
|
+
export const disableTwoFa = (options) => (options.client ?? client).delete({
|
|
217
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
218
|
+
url: '/api/v1/me/2fa',
|
|
219
|
+
...options,
|
|
220
|
+
headers: {
|
|
221
|
+
'Content-Type': 'application/json',
|
|
222
|
+
...options.headers
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
/**
|
|
226
|
+
* Enable two factor authentication
|
|
227
|
+
*/
|
|
228
|
+
export const enableTwoFa = (options) => (options.client ?? client).post({
|
|
229
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
230
|
+
url: '/api/v1/me/2fa',
|
|
231
|
+
...options,
|
|
232
|
+
headers: {
|
|
233
|
+
'Content-Type': 'application/json',
|
|
234
|
+
...options.headers
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
/**
|
|
238
|
+
* Get two factor authentication secret
|
|
239
|
+
*/
|
|
240
|
+
export const getTwoFaSecret = (options) => (options?.client ?? client).get({
|
|
241
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
242
|
+
url: '/api/v1/me/2fa/secret',
|
|
243
|
+
...options
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* Send two factor authentication code
|
|
247
|
+
*/
|
|
248
|
+
export const sendTwoFaCode = (options) => (options.client ?? client).post({
|
|
249
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
250
|
+
url: '/api/v1/me/2fa/send-code',
|
|
251
|
+
...options,
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/json',
|
|
254
|
+
...options.headers
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
* Verify two factor authentication code
|
|
259
|
+
*/
|
|
260
|
+
export const verifyTwoFa = (options) => (options.client ?? client).post({
|
|
261
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
262
|
+
url: '/api/v1/me/2fa/verify',
|
|
263
|
+
...options,
|
|
264
|
+
headers: {
|
|
265
|
+
'Content-Type': 'application/json',
|
|
266
|
+
...options.headers
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
/**
|
|
270
|
+
* Change the email of the user
|
|
271
|
+
*/
|
|
272
|
+
export const changeEmail = (options) => (options.client ?? client).patch({
|
|
273
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
274
|
+
url: '/api/v1/me/email',
|
|
275
|
+
...options,
|
|
276
|
+
headers: {
|
|
277
|
+
'Content-Type': 'application/json',
|
|
278
|
+
...options.headers
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
/**
|
|
282
|
+
* Delete an invitation
|
|
283
|
+
*/
|
|
284
|
+
export const deleteInvitation = (options) => (options.client ?? client).delete({
|
|
285
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
286
|
+
url: '/api/v1/me/invitations',
|
|
287
|
+
...options
|
|
288
|
+
});
|
|
289
|
+
/**
|
|
290
|
+
* Create an invitation
|
|
291
|
+
*/
|
|
292
|
+
export const createInvitation = (options) => (options.client ?? client).post({
|
|
293
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
294
|
+
url: '/api/v1/me/invitations',
|
|
295
|
+
...options,
|
|
296
|
+
headers: {
|
|
297
|
+
'Content-Type': 'application/json',
|
|
298
|
+
...options.headers
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
/**
|
|
302
|
+
* Change the password of the user
|
|
303
|
+
*/
|
|
304
|
+
export const changePassword = (options) => (options.client ?? client).patch({
|
|
305
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
306
|
+
url: '/api/v1/me/password',
|
|
307
|
+
...options,
|
|
308
|
+
headers: {
|
|
309
|
+
'Content-Type': 'application/json',
|
|
310
|
+
...options.headers
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
/**
|
|
314
|
+
* Set the password for passwordless user
|
|
315
|
+
*/
|
|
316
|
+
export const setPassword = (options) => (options.client ?? client).post({
|
|
317
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
318
|
+
url: '/api/v1/me/password',
|
|
319
|
+
...options,
|
|
320
|
+
headers: {
|
|
321
|
+
'Content-Type': 'application/json',
|
|
322
|
+
...options.headers
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
/**
|
|
326
|
+
* Change the phone number of the user
|
|
327
|
+
*/
|
|
328
|
+
export const changePhone = (options) => (options.client ?? client).patch({
|
|
329
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
330
|
+
url: '/api/v1/me/phone',
|
|
331
|
+
...options,
|
|
332
|
+
headers: {
|
|
333
|
+
'Content-Type': 'application/json',
|
|
334
|
+
...options.headers
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
/**
|
|
338
|
+
* Verify the phone number of the user
|
|
339
|
+
*/
|
|
340
|
+
export const verifyPhone = (options) => (options.client ?? client).post({
|
|
341
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
342
|
+
url: '/api/v1/me/phone/verify',
|
|
343
|
+
...options,
|
|
344
|
+
headers: {
|
|
345
|
+
'Content-Type': 'application/json',
|
|
346
|
+
...options.headers
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
/**
|
|
350
|
+
* Accept an invitation
|
|
351
|
+
*/
|
|
352
|
+
export const acceptInvitation = (options) => (options.client ?? client).post({
|
|
353
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
354
|
+
url: '/api/v1/invitation/accept',
|
|
355
|
+
...options,
|
|
356
|
+
headers: {
|
|
357
|
+
'Content-Type': 'application/json',
|
|
358
|
+
...options.headers
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
/**
|
|
362
|
+
* Create a guest user
|
|
363
|
+
*/
|
|
364
|
+
export const createGuestUser = (options) => (options.client ?? client).post({
|
|
365
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
366
|
+
url: '/api/v1/guest',
|
|
367
|
+
...options,
|
|
368
|
+
headers: {
|
|
369
|
+
'Content-Type': 'application/json',
|
|
370
|
+
...options.headers
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
/**
|
|
374
|
+
* Forgot password
|
|
375
|
+
*/
|
|
376
|
+
export const forgotPassword = (options) => (options.client ?? client).post({
|
|
377
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
378
|
+
url: '/api/v1/password/forgot',
|
|
379
|
+
...options,
|
|
380
|
+
headers: {
|
|
381
|
+
'Content-Type': 'application/json',
|
|
382
|
+
...options.headers
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
/**
|
|
386
|
+
* Login
|
|
387
|
+
*/
|
|
388
|
+
export const login = (options) => (options.client ?? client).post({
|
|
389
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
390
|
+
url: '/api/v1/login',
|
|
391
|
+
...options,
|
|
392
|
+
headers: {
|
|
393
|
+
'Content-Type': 'application/json',
|
|
394
|
+
...options.headers
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
/**
|
|
398
|
+
* Login by magic link
|
|
399
|
+
*/
|
|
400
|
+
export const loginByMagicLink = (options) => (options.client ?? client).post({
|
|
401
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
402
|
+
url: '/api/v1/login-by-magic-link',
|
|
403
|
+
...options,
|
|
404
|
+
headers: {
|
|
405
|
+
'Content-Type': 'application/json',
|
|
406
|
+
...options.headers
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
/**
|
|
410
|
+
* Register a new user
|
|
411
|
+
*/
|
|
412
|
+
export const register = (options) => (options.client ?? client).post({
|
|
413
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
414
|
+
url: '/api/v1/register',
|
|
415
|
+
...options,
|
|
416
|
+
headers: {
|
|
417
|
+
'Content-Type': 'application/json',
|
|
418
|
+
...options.headers
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
/**
|
|
422
|
+
* Resend email confirmation
|
|
423
|
+
*/
|
|
424
|
+
export const resendEmailConfirmation = (options) => (options.client ?? client).post({
|
|
425
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
426
|
+
url: '/api/v1/email/resend-confirmation',
|
|
427
|
+
...options,
|
|
428
|
+
headers: {
|
|
429
|
+
'Content-Type': 'application/json',
|
|
430
|
+
...options.headers
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
/**
|
|
434
|
+
* Verify the email of the user
|
|
435
|
+
*/
|
|
436
|
+
export const verifyEmail = (options) => (options.client ?? client).post({
|
|
437
|
+
security: [{ name: 'x-project-id', type: 'apiKey' }],
|
|
438
|
+
url: '/api/v1/email/verify',
|
|
439
|
+
...options,
|
|
440
|
+
headers: {
|
|
441
|
+
'Content-Type': 'application/json',
|
|
442
|
+
...options.headers
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
//# sourceMappingURL=sdk.gen.js.map
|