binoauth 0.0.14 → 0.0.16
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/admin/types.d.ts +1 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/auth/client.d.ts +1 -1
- package/dist/auth/client.d.ts.map +1 -1
- package/dist/auth/client.js +1 -1
- package/dist/auth/client.js.map +1 -1
- package/dist/auth/flows/base-flow.d.ts +1 -1
- package/dist/auth/flows/base-flow.d.ts.map +1 -1
- package/dist/auth/flows/base-flow.js +4 -4
- package/dist/auth/flows/base-flow.js.map +1 -1
- package/dist/auth/types.d.ts +2 -2
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/generated/admin/apis/AdminApi.d.ts +939 -0
- package/dist/generated/admin/apis/AdminApi.d.ts.map +1 -0
- package/dist/generated/admin/apis/AdminApi.js +1344 -0
- package/dist/generated/admin/apis/AdminApi.js.map +1 -0
- package/dist/generated/admin/apis/AdminAuthenticationApi.d.ts +178 -0
- package/dist/generated/admin/apis/AdminAuthenticationApi.d.ts.map +1 -0
- package/dist/generated/admin/apis/AdminAuthenticationApi.js +206 -0
- package/dist/generated/admin/apis/AdminAuthenticationApi.js.map +1 -0
- package/dist/generated/admin/apis/HealthApi.d.ts +49 -0
- package/dist/generated/admin/apis/HealthApi.d.ts.map +1 -0
- package/dist/generated/admin/apis/HealthApi.js +49 -0
- package/dist/generated/admin/apis/HealthApi.js.map +1 -0
- package/dist/generated/admin/apis/index.d.ts +4 -0
- package/dist/generated/admin/apis/index.d.ts.map +1 -0
- package/dist/generated/admin/apis/index.js +6 -0
- package/dist/generated/admin/apis/index.js.map +1 -0
- package/dist/generated/admin/index.d.ts +4 -0
- package/dist/generated/admin/index.d.ts.map +1 -0
- package/dist/generated/admin/index.js +6 -0
- package/dist/generated/admin/index.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyCreate.d.ts +51 -0
- package/dist/generated/admin/models/ApiKeyCreate.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyCreate.js +53 -0
- package/dist/generated/admin/models/ApiKeyCreate.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyCreateResponse.d.ts +112 -0
- package/dist/generated/admin/models/ApiKeyCreateResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyCreateResponse.js +98 -0
- package/dist/generated/admin/models/ApiKeyCreateResponse.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyListResponse.d.ts +52 -0
- package/dist/generated/admin/models/ApiKeyListResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyListResponse.js +58 -0
- package/dist/generated/admin/models/ApiKeyListResponse.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyResponse.d.ts +106 -0
- package/dist/generated/admin/models/ApiKeyResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyResponse.js +94 -0
- package/dist/generated/admin/models/ApiKeyResponse.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyStatus.d.ts +27 -0
- package/dist/generated/admin/models/ApiKeyStatus.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyStatus.js +45 -0
- package/dist/generated/admin/models/ApiKeyStatus.js.map +1 -0
- package/dist/generated/admin/models/ApiKeyUpdate.d.ts +52 -0
- package/dist/generated/admin/models/ApiKeyUpdate.d.ts.map +1 -0
- package/dist/generated/admin/models/ApiKeyUpdate.js +50 -0
- package/dist/generated/admin/models/ApiKeyUpdate.js.map +1 -0
- package/dist/generated/admin/models/ClientAuthMethods.d.ts +27 -0
- package/dist/generated/admin/models/ClientAuthMethods.d.ts.map +1 -0
- package/dist/generated/admin/models/ClientAuthMethods.js +45 -0
- package/dist/generated/admin/models/ClientAuthMethods.js.map +1 -0
- package/dist/generated/admin/models/ClientCreate.d.ts +64 -0
- package/dist/generated/admin/models/ClientCreate.d.ts.map +1 -0
- package/dist/generated/admin/models/ClientCreate.js +64 -0
- package/dist/generated/admin/models/ClientCreate.js.map +1 -0
- package/dist/generated/admin/models/ClientResponse.d.ts +82 -0
- package/dist/generated/admin/models/ClientResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ClientResponse.js +78 -0
- package/dist/generated/admin/models/ClientResponse.js.map +1 -0
- package/dist/generated/admin/models/ClientUpdate.d.ts +64 -0
- package/dist/generated/admin/models/ClientUpdate.d.ts.map +1 -0
- package/dist/generated/admin/models/ClientUpdate.js +56 -0
- package/dist/generated/admin/models/ClientUpdate.js.map +1 -0
- package/dist/generated/admin/models/Domain.d.ts +75 -0
- package/dist/generated/admin/models/Domain.d.ts.map +1 -0
- package/dist/generated/admin/models/Domain.js +61 -0
- package/dist/generated/admin/models/Domain.js.map +1 -0
- package/dist/generated/admin/models/ExternalAccount.d.ts +106 -0
- package/dist/generated/admin/models/ExternalAccount.d.ts.map +1 -0
- package/dist/generated/admin/models/ExternalAccount.js +78 -0
- package/dist/generated/admin/models/ExternalAccount.js.map +1 -0
- package/dist/generated/admin/models/HTTPValidationError.d.ts +34 -0
- package/dist/generated/admin/models/HTTPValidationError.d.ts.map +1 -0
- package/dist/generated/admin/models/HTTPValidationError.js +44 -0
- package/dist/generated/admin/models/HTTPValidationError.js.map +1 -0
- package/dist/generated/admin/models/InLineClientConfig.d.ts +58 -0
- package/dist/generated/admin/models/InLineClientConfig.d.ts.map +1 -0
- package/dist/generated/admin/models/InLineClientConfig.js +54 -0
- package/dist/generated/admin/models/InLineClientConfig.js.map +1 -0
- package/dist/generated/admin/models/ManagementLoginRequest.d.ts +39 -0
- package/dist/generated/admin/models/ManagementLoginRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementLoginRequest.js +49 -0
- package/dist/generated/admin/models/ManagementLoginRequest.js.map +1 -0
- package/dist/generated/admin/models/ManagementRefreshTokenRequest.d.ts +33 -0
- package/dist/generated/admin/models/ManagementRefreshTokenRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementRefreshTokenRequest.js +45 -0
- package/dist/generated/admin/models/ManagementRefreshTokenRequest.js.map +1 -0
- package/dist/generated/admin/models/ManagementSignupRequest.d.ts +45 -0
- package/dist/generated/admin/models/ManagementSignupRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementSignupRequest.js +53 -0
- package/dist/generated/admin/models/ManagementSignupRequest.js.map +1 -0
- package/dist/generated/admin/models/ManagementSignupResponse.d.ts +34 -0
- package/dist/generated/admin/models/ManagementSignupResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementSignupResponse.js +46 -0
- package/dist/generated/admin/models/ManagementSignupResponse.js.map +1 -0
- package/dist/generated/admin/models/ManagementSocialLoginRequest.d.ts +63 -0
- package/dist/generated/admin/models/ManagementSocialLoginRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementSocialLoginRequest.js +59 -0
- package/dist/generated/admin/models/ManagementSocialLoginRequest.js.map +1 -0
- package/dist/generated/admin/models/ManagementTokenResponse.d.ts +64 -0
- package/dist/generated/admin/models/ManagementTokenResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementTokenResponse.js +58 -0
- package/dist/generated/admin/models/ManagementTokenResponse.js.map +1 -0
- package/dist/generated/admin/models/ManagementUserResponse.d.ts +63 -0
- package/dist/generated/admin/models/ManagementUserResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ManagementUserResponse.js +63 -0
- package/dist/generated/admin/models/ManagementUserResponse.js.map +1 -0
- package/dist/generated/admin/models/PaginationResultClientResponse.d.ts +64 -0
- package/dist/generated/admin/models/PaginationResultClientResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/PaginationResultClientResponse.js +66 -0
- package/dist/generated/admin/models/PaginationResultClientResponse.js.map +1 -0
- package/dist/generated/admin/models/PaginationResultTenantResponse.d.ts +64 -0
- package/dist/generated/admin/models/PaginationResultTenantResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/PaginationResultTenantResponse.js +66 -0
- package/dist/generated/admin/models/PaginationResultTenantResponse.js.map +1 -0
- package/dist/generated/admin/models/PaginationResultUserWithExternalAccounts.d.ts +64 -0
- package/dist/generated/admin/models/PaginationResultUserWithExternalAccounts.d.ts.map +1 -0
- package/dist/generated/admin/models/PaginationResultUserWithExternalAccounts.js +66 -0
- package/dist/generated/admin/models/PaginationResultUserWithExternalAccounts.js.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsCreate.d.ts +84 -0
- package/dist/generated/admin/models/ProviderSettingsCreate.d.ts.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsCreate.js +72 -0
- package/dist/generated/admin/models/ProviderSettingsCreate.js.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsResponse.d.ts +102 -0
- package/dist/generated/admin/models/ProviderSettingsResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsResponse.js +90 -0
- package/dist/generated/admin/models/ProviderSettingsResponse.js.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsUpdate.d.ts +77 -0
- package/dist/generated/admin/models/ProviderSettingsUpdate.d.ts.map +1 -0
- package/dist/generated/admin/models/ProviderSettingsUpdate.js +57 -0
- package/dist/generated/admin/models/ProviderSettingsUpdate.js.map +1 -0
- package/dist/generated/admin/models/ProviderType.d.ts +29 -0
- package/dist/generated/admin/models/ProviderType.d.ts.map +1 -0
- package/dist/generated/admin/models/ProviderType.js +47 -0
- package/dist/generated/admin/models/ProviderType.js.map +1 -0
- package/dist/generated/admin/models/TenantCreateRequest.d.ts +45 -0
- package/dist/generated/admin/models/TenantCreateRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/TenantCreateRequest.js +53 -0
- package/dist/generated/admin/models/TenantCreateRequest.js.map +1 -0
- package/dist/generated/admin/models/TenantResponse.d.ts +58 -0
- package/dist/generated/admin/models/TenantResponse.d.ts.map +1 -0
- package/dist/generated/admin/models/TenantResponse.js +62 -0
- package/dist/generated/admin/models/TenantResponse.js.map +1 -0
- package/dist/generated/admin/models/TenantUpdateRequest.d.ts +33 -0
- package/dist/generated/admin/models/TenantUpdateRequest.d.ts.map +1 -0
- package/dist/generated/admin/models/TenantUpdateRequest.js +45 -0
- package/dist/generated/admin/models/TenantUpdateRequest.js.map +1 -0
- package/dist/generated/admin/models/UserStatus.d.ts +27 -0
- package/dist/generated/admin/models/UserStatus.d.ts.map +1 -0
- package/dist/generated/admin/models/UserStatus.js +45 -0
- package/dist/generated/admin/models/UserStatus.js.map +1 -0
- package/dist/generated/admin/models/UserWithExternalAccounts.d.ts +149 -0
- package/dist/generated/admin/models/UserWithExternalAccounts.d.ts.map +1 -0
- package/dist/generated/admin/models/UserWithExternalAccounts.js +93 -0
- package/dist/generated/admin/models/UserWithExternalAccounts.js.map +1 -0
- package/dist/generated/admin/models/ValidationError.d.ts +46 -0
- package/dist/generated/admin/models/ValidationError.d.ts.map +1 -0
- package/dist/generated/admin/models/ValidationError.js +54 -0
- package/dist/generated/admin/models/ValidationError.js.map +1 -0
- package/dist/generated/admin/models/ValidationErrorLocInner.d.ts +27 -0
- package/dist/generated/admin/models/ValidationErrorLocInner.d.ts.map +1 -0
- package/dist/generated/admin/models/ValidationErrorLocInner.js +33 -0
- package/dist/generated/admin/models/ValidationErrorLocInner.js.map +1 -0
- package/dist/generated/admin/models/index.d.ts +36 -0
- package/dist/generated/admin/models/index.d.ts.map +1 -0
- package/dist/generated/admin/models/index.js +38 -0
- package/dist/generated/admin/models/index.js.map +1 -0
- package/dist/generated/admin/runtime.d.ts +185 -0
- package/dist/generated/admin/runtime.d.ts.map +1 -0
- package/dist/generated/admin/runtime.js +334 -0
- package/dist/generated/admin/runtime.js.map +1 -0
- package/dist/generated/tenant/apis/AuthenticationApi.d.ts +411 -0
- package/dist/generated/tenant/apis/AuthenticationApi.d.ts.map +1 -0
- package/dist/generated/tenant/apis/AuthenticationApi.js +484 -0
- package/dist/generated/tenant/apis/AuthenticationApi.js.map +1 -0
- package/dist/generated/tenant/apis/ExternalAuthApi.d.ts +114 -0
- package/dist/generated/tenant/apis/ExternalAuthApi.d.ts.map +1 -0
- package/dist/generated/tenant/apis/ExternalAuthApi.js +129 -0
- package/dist/generated/tenant/apis/ExternalAuthApi.js.map +1 -0
- package/dist/generated/tenant/apis/OAuth2Api.d.ts +352 -0
- package/dist/generated/tenant/apis/OAuth2Api.d.ts.map +1 -0
- package/dist/generated/tenant/apis/OAuth2Api.js +419 -0
- package/dist/generated/tenant/apis/OAuth2Api.js.map +1 -0
- package/dist/generated/tenant/apis/OpenidApi.d.ts +49 -0
- package/dist/generated/tenant/apis/OpenidApi.d.ts.map +1 -0
- package/dist/generated/tenant/apis/OpenidApi.js +49 -0
- package/dist/generated/tenant/apis/OpenidApi.js.map +1 -0
- package/dist/generated/tenant/apis/SystemApi.d.ts +72 -0
- package/dist/generated/tenant/apis/SystemApi.d.ts.map +1 -0
- package/dist/generated/tenant/apis/SystemApi.js +78 -0
- package/dist/generated/tenant/apis/SystemApi.js.map +1 -0
- package/dist/generated/tenant/apis/UserProfileApi.d.ts +49 -0
- package/dist/generated/tenant/apis/UserProfileApi.d.ts.map +1 -0
- package/dist/generated/tenant/apis/UserProfileApi.js +49 -0
- package/dist/generated/tenant/apis/UserProfileApi.js.map +1 -0
- package/dist/generated/tenant/apis/index.d.ts +7 -0
- package/dist/generated/tenant/apis/index.d.ts.map +1 -0
- package/dist/generated/tenant/apis/index.js +9 -0
- package/dist/generated/tenant/apis/index.js.map +1 -0
- package/dist/generated/tenant/index.d.ts +4 -0
- package/dist/generated/tenant/index.d.ts.map +1 -0
- package/dist/generated/tenant/index.js +6 -0
- package/dist/generated/tenant/index.js.map +1 -0
- package/dist/generated/tenant/models/ApiKeyTokenRequest.d.ts +45 -0
- package/dist/generated/tenant/models/ApiKeyTokenRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/ApiKeyTokenRequest.js +47 -0
- package/dist/generated/tenant/models/ApiKeyTokenRequest.js.map +1 -0
- package/dist/generated/tenant/models/ApiKeyTokenResponse.d.ts +57 -0
- package/dist/generated/tenant/models/ApiKeyTokenResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/ApiKeyTokenResponse.js +57 -0
- package/dist/generated/tenant/models/ApiKeyTokenResponse.js.map +1 -0
- package/dist/generated/tenant/models/ClientConfigResponse.d.ts +93 -0
- package/dist/generated/tenant/models/ClientConfigResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/ClientConfigResponse.js +81 -0
- package/dist/generated/tenant/models/ClientConfigResponse.js.map +1 -0
- package/dist/generated/tenant/models/ClientDiscoveryResponse.d.ts +57 -0
- package/dist/generated/tenant/models/ClientDiscoveryResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/ClientDiscoveryResponse.js +55 -0
- package/dist/generated/tenant/models/ClientDiscoveryResponse.js.map +1 -0
- package/dist/generated/tenant/models/ConsentRequest.d.ts +51 -0
- package/dist/generated/tenant/models/ConsentRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/ConsentRequest.js +55 -0
- package/dist/generated/tenant/models/ConsentRequest.js.map +1 -0
- package/dist/generated/tenant/models/Credentials.d.ts +39 -0
- package/dist/generated/tenant/models/Credentials.d.ts.map +1 -0
- package/dist/generated/tenant/models/Credentials.js +49 -0
- package/dist/generated/tenant/models/Credentials.js.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthResponse.d.ts +51 -0
- package/dist/generated/tenant/models/DeviceAuthResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthResponse.js +55 -0
- package/dist/generated/tenant/models/DeviceAuthResponse.js.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthenticationRequest.d.ts +33 -0
- package/dist/generated/tenant/models/DeviceAuthenticationRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthenticationRequest.js +45 -0
- package/dist/generated/tenant/models/DeviceAuthenticationRequest.js.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthorizationRequest.d.ts +33 -0
- package/dist/generated/tenant/models/DeviceAuthorizationRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/DeviceAuthorizationRequest.js +45 -0
- package/dist/generated/tenant/models/DeviceAuthorizationRequest.js.map +1 -0
- package/dist/generated/tenant/models/EmailVerificationRequest.d.ts +33 -0
- package/dist/generated/tenant/models/EmailVerificationRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/EmailVerificationRequest.js +45 -0
- package/dist/generated/tenant/models/EmailVerificationRequest.js.map +1 -0
- package/dist/generated/tenant/models/HTTPValidationError.d.ts +34 -0
- package/dist/generated/tenant/models/HTTPValidationError.d.ts.map +1 -0
- package/dist/generated/tenant/models/HTTPValidationError.js +44 -0
- package/dist/generated/tenant/models/HTTPValidationError.js.map +1 -0
- package/dist/generated/tenant/models/IntrospectTokenRequest.d.ts +45 -0
- package/dist/generated/tenant/models/IntrospectTokenRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/IntrospectTokenRequest.js +53 -0
- package/dist/generated/tenant/models/IntrospectTokenRequest.js.map +1 -0
- package/dist/generated/tenant/models/IntrospectTokenResponse.d.ts +105 -0
- package/dist/generated/tenant/models/IntrospectTokenResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/IntrospectTokenResponse.js +81 -0
- package/dist/generated/tenant/models/IntrospectTokenResponse.js.map +1 -0
- package/dist/generated/tenant/models/LoginRequest.d.ts +45 -0
- package/dist/generated/tenant/models/LoginRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/LoginRequest.js +51 -0
- package/dist/generated/tenant/models/LoginRequest.js.map +1 -0
- package/dist/generated/tenant/models/LoginResponse.d.ts +63 -0
- package/dist/generated/tenant/models/LoginResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/LoginResponse.js +55 -0
- package/dist/generated/tenant/models/LoginResponse.js.map +1 -0
- package/dist/generated/tenant/models/LogoutRequest.d.ts +51 -0
- package/dist/generated/tenant/models/LogoutRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/LogoutRequest.js +51 -0
- package/dist/generated/tenant/models/LogoutRequest.js.map +1 -0
- package/dist/generated/tenant/models/MFARequest.d.ts +39 -0
- package/dist/generated/tenant/models/MFARequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/MFARequest.js +49 -0
- package/dist/generated/tenant/models/MFARequest.js.map +1 -0
- package/dist/generated/tenant/models/MagicLinkRequest.d.ts +51 -0
- package/dist/generated/tenant/models/MagicLinkRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/MagicLinkRequest.js +53 -0
- package/dist/generated/tenant/models/MagicLinkRequest.js.map +1 -0
- package/dist/generated/tenant/models/PhoneOTPRequest.d.ts +39 -0
- package/dist/generated/tenant/models/PhoneOTPRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/PhoneOTPRequest.js +47 -0
- package/dist/generated/tenant/models/PhoneOTPRequest.js.map +1 -0
- package/dist/generated/tenant/models/PhoneOTPVerificationRequest.d.ts +33 -0
- package/dist/generated/tenant/models/PhoneOTPVerificationRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/PhoneOTPVerificationRequest.js +45 -0
- package/dist/generated/tenant/models/PhoneOTPVerificationRequest.js.map +1 -0
- package/dist/generated/tenant/models/ProviderResponse.d.ts +51 -0
- package/dist/generated/tenant/models/ProviderResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/ProviderResponse.js +55 -0
- package/dist/generated/tenant/models/ProviderResponse.js.map +1 -0
- package/dist/generated/tenant/models/ProviderType.d.ts +29 -0
- package/dist/generated/tenant/models/ProviderType.d.ts.map +1 -0
- package/dist/generated/tenant/models/ProviderType.js +47 -0
- package/dist/generated/tenant/models/ProviderType.js.map +1 -0
- package/dist/generated/tenant/models/RequestMagicLinkResponse.d.ts +33 -0
- package/dist/generated/tenant/models/RequestMagicLinkResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/RequestMagicLinkResponse.js +45 -0
- package/dist/generated/tenant/models/RequestMagicLinkResponse.js.map +1 -0
- package/dist/generated/tenant/models/ResendEmailVerificationRequest.d.ts +33 -0
- package/dist/generated/tenant/models/ResendEmailVerificationRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/ResendEmailVerificationRequest.js +45 -0
- package/dist/generated/tenant/models/ResendEmailVerificationRequest.js.map +1 -0
- package/dist/generated/tenant/models/SignupRequest.d.ts +57 -0
- package/dist/generated/tenant/models/SignupRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/SignupRequest.js +57 -0
- package/dist/generated/tenant/models/SignupRequest.js.map +1 -0
- package/dist/generated/tenant/models/SignupResponse.d.ts +69 -0
- package/dist/generated/tenant/models/SignupResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/SignupResponse.js +69 -0
- package/dist/generated/tenant/models/SignupResponse.js.map +1 -0
- package/dist/generated/tenant/models/TokenRequest.d.ts +99 -0
- package/dist/generated/tenant/models/TokenRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/TokenRequest.js +69 -0
- package/dist/generated/tenant/models/TokenRequest.js.map +1 -0
- package/dist/generated/tenant/models/TokenResponse.d.ts +57 -0
- package/dist/generated/tenant/models/TokenResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/TokenResponse.js +59 -0
- package/dist/generated/tenant/models/TokenResponse.js.map +1 -0
- package/dist/generated/tenant/models/UserInfoResponse.d.ts +75 -0
- package/dist/generated/tenant/models/UserInfoResponse.d.ts.map +1 -0
- package/dist/generated/tenant/models/UserInfoResponse.js +73 -0
- package/dist/generated/tenant/models/UserInfoResponse.js.map +1 -0
- package/dist/generated/tenant/models/ValidationError.d.ts +46 -0
- package/dist/generated/tenant/models/ValidationError.d.ts.map +1 -0
- package/dist/generated/tenant/models/ValidationError.js +54 -0
- package/dist/generated/tenant/models/ValidationError.js.map +1 -0
- package/dist/generated/tenant/models/ValidationErrorLocInner.d.ts +27 -0
- package/dist/generated/tenant/models/ValidationErrorLocInner.d.ts.map +1 -0
- package/dist/generated/tenant/models/ValidationErrorLocInner.js +33 -0
- package/dist/generated/tenant/models/ValidationErrorLocInner.js.map +1 -0
- package/dist/generated/tenant/models/VerifyMagicLinkCodeRequest.d.ts +33 -0
- package/dist/generated/tenant/models/VerifyMagicLinkCodeRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/VerifyMagicLinkCodeRequest.js +45 -0
- package/dist/generated/tenant/models/VerifyMagicLinkCodeRequest.js.map +1 -0
- package/dist/generated/tenant/models/VerifyMagicLinkTokenRequest.d.ts +33 -0
- package/dist/generated/tenant/models/VerifyMagicLinkTokenRequest.d.ts.map +1 -0
- package/dist/generated/tenant/models/VerifyMagicLinkTokenRequest.js +45 -0
- package/dist/generated/tenant/models/VerifyMagicLinkTokenRequest.js.map +1 -0
- package/dist/generated/tenant/models/index.d.ts +34 -0
- package/dist/generated/tenant/models/index.d.ts.map +1 -0
- package/dist/generated/tenant/models/index.js +36 -0
- package/dist/generated/tenant/models/index.js.map +1 -0
- package/dist/generated/tenant/runtime.d.ts +185 -0
- package/dist/generated/tenant/runtime.d.ts.map +1 -0
- package/dist/generated/tenant/runtime.js +334 -0
- package/dist/generated/tenant/runtime.js.map +1 -0
- package/dist/oauth/client.d.ts.map +1 -1
- package/dist/oauth/client.js +1 -2
- package/dist/oauth/client.js.map +1 -1
- package/dist/oauth/flows/authorization-code.d.ts +1 -1
- package/dist/oauth/flows/authorization-code.d.ts.map +1 -1
- package/dist/oauth/flows/base-flow.d.ts +1 -1
- package/dist/oauth/flows/base-flow.d.ts.map +1 -1
- package/dist/oauth/flows/client-credentials.d.ts +1 -1
- package/dist/oauth/flows/client-credentials.d.ts.map +1 -1
- package/dist/oauth/flows/device-code.d.ts +1 -1
- package/dist/oauth/flows/device-code.d.ts.map +1 -1
- package/dist/oauth/flows/refresh-token.d.ts +1 -1
- package/dist/oauth/flows/refresh-token.d.ts.map +1 -1
- package/package.json +11 -3
@@ -0,0 +1,78 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* BinoAuth Tenant API
|
5
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
8
|
+
* Contact: support@binoauth.com
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
import * as runtime from '../runtime';
|
15
|
+
/**
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export class SystemApi extends runtime.BaseAPI {
|
19
|
+
/**
|
20
|
+
* Basic health check endpoint to verify API availability. Returns the current API status and version information. This endpoint can be used for monitoring and load balancer health checks. **No authentication required.**
|
21
|
+
* Health Check
|
22
|
+
*/
|
23
|
+
async healthCheckHealthGetRaw(initOverrides) {
|
24
|
+
const queryParameters = {};
|
25
|
+
const headerParameters = {};
|
26
|
+
let urlPath = `/health`;
|
27
|
+
const response = await this.request({
|
28
|
+
path: urlPath,
|
29
|
+
method: 'GET',
|
30
|
+
headers: headerParameters,
|
31
|
+
query: queryParameters,
|
32
|
+
}, initOverrides);
|
33
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
34
|
+
return new runtime.JSONApiResponse(response);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
return new runtime.TextApiResponse(response);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Basic health check endpoint to verify API availability. Returns the current API status and version information. This endpoint can be used for monitoring and load balancer health checks. **No authentication required.**
|
42
|
+
* Health Check
|
43
|
+
*/
|
44
|
+
async healthCheckHealthGet(initOverrides) {
|
45
|
+
const response = await this.healthCheckHealthGetRaw(initOverrides);
|
46
|
+
return await response.value();
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Get the current tenant\'s profile information. Returns basic information about the tenant context for the current request. This endpoint helps identify which tenant is being accessed. **Authentication required.**
|
50
|
+
* Get Tenant Profile
|
51
|
+
*/
|
52
|
+
async tenantProfileApiV1ProfileGetRaw(initOverrides) {
|
53
|
+
const queryParameters = {};
|
54
|
+
const headerParameters = {};
|
55
|
+
let urlPath = `/api/v1/profile`;
|
56
|
+
const response = await this.request({
|
57
|
+
path: urlPath,
|
58
|
+
method: 'GET',
|
59
|
+
headers: headerParameters,
|
60
|
+
query: queryParameters,
|
61
|
+
}, initOverrides);
|
62
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
63
|
+
return new runtime.JSONApiResponse(response);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
return new runtime.TextApiResponse(response);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* Get the current tenant\'s profile information. Returns basic information about the tenant context for the current request. This endpoint helps identify which tenant is being accessed. **Authentication required.**
|
71
|
+
* Get Tenant Profile
|
72
|
+
*/
|
73
|
+
async tenantProfileApiV1ProfileGet(initOverrides) {
|
74
|
+
const response = await this.tenantProfileApiV1ProfileGetRaw(initOverrides);
|
75
|
+
return await response.value();
|
76
|
+
}
|
77
|
+
}
|
78
|
+
//# sourceMappingURL=SystemApi.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SystemApi.js","sourceRoot":"","sources":["../../../../src/generated/tenant/apis/SystemApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAyCtC;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,aAA0D;QACpF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,SAAS,CAAC;QAExB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACxD,OAAO,IAAI,OAAO,CAAC,eAAe,CAAM,QAAQ,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAQ,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,aAA0D;QACjF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;QACnE,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,+BAA+B,CAAC,aAA0D;QAC5F,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,iBAAiB,CAAC;QAEhC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACxD,OAAO,IAAI,OAAO,CAAC,eAAe,CAAM,QAAQ,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAQ,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,4BAA4B,CAAC,aAA0D;QACzF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,+BAA+B,CAAC,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* BinoAuth Tenant API
|
3
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
* Contact: support@binoauth.com
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import * as runtime from '../runtime';
|
13
|
+
/**
|
14
|
+
* UserProfileApi - interface
|
15
|
+
*
|
16
|
+
* @export
|
17
|
+
* @interface UserProfileApiInterface
|
18
|
+
*/
|
19
|
+
export interface UserProfileApiInterface {
|
20
|
+
/**
|
21
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
22
|
+
* @summary Get Current User Information
|
23
|
+
* @param {*} [options] Override http request option.
|
24
|
+
* @throws {RequiredError}
|
25
|
+
* @memberof UserProfileApiInterface
|
26
|
+
*/
|
27
|
+
getCurrentUserApiV1AuthUserinfoGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
28
|
+
/**
|
29
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
30
|
+
* Get Current User Information
|
31
|
+
*/
|
32
|
+
getCurrentUserApiV1AuthUserinfoGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
export declare class UserProfileApi extends runtime.BaseAPI implements UserProfileApiInterface {
|
38
|
+
/**
|
39
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
40
|
+
* Get Current User Information
|
41
|
+
*/
|
42
|
+
getCurrentUserApiV1AuthUserinfoGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
|
43
|
+
/**
|
44
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
45
|
+
* Get Current User Information
|
46
|
+
*/
|
47
|
+
getCurrentUserApiV1AuthUserinfoGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=UserProfileApi.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserProfileApi.d.ts","sourceRoot":"","sources":["../../../../src/generated/tenant/apis/UserProfileApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;;;OAMG;IACH,qCAAqC,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAErI;;;OAGG;IACH,kCAAkC,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAEhH;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,OAAO,CAAC,OAAQ,YAAW,uBAAuB;IAElF;;;OAGG;IACG,qCAAqC,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAsB1I;;;OAGG;IACG,kCAAkC,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAKrH"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* BinoAuth Tenant API
|
5
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
8
|
+
* Contact: support@binoauth.com
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
import * as runtime from '../runtime';
|
15
|
+
/**
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export class UserProfileApi extends runtime.BaseAPI {
|
19
|
+
/**
|
20
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
21
|
+
* Get Current User Information
|
22
|
+
*/
|
23
|
+
async getCurrentUserApiV1AuthUserinfoGetRaw(initOverrides) {
|
24
|
+
const queryParameters = {};
|
25
|
+
const headerParameters = {};
|
26
|
+
let urlPath = `/api/v1/auth/userinfo`;
|
27
|
+
const response = await this.request({
|
28
|
+
path: urlPath,
|
29
|
+
method: 'GET',
|
30
|
+
headers: headerParameters,
|
31
|
+
query: queryParameters,
|
32
|
+
}, initOverrides);
|
33
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
34
|
+
return new runtime.JSONApiResponse(response);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
return new runtime.TextApiResponse(response);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Retrieve the current authenticated user\'s profile information. This endpoint returns user information in a format compatible with OpenID Connect UserInfo. Authentication is required via session cookie, API key, or Bearer token. **Authentication Methods:** - Session cookie (web applications) - API key via X-API-Key header - Bearer token via Authorization header **Example Usage:** ```bash # Using session cookie curl -H \"Cookie: session_id=...\" /api/v1/auth/userinfo # Using API key curl -H \"X-API-Key: ak_live_...\" /api/v1/auth/userinfo # Using Bearer token curl -H \"Authorization: Bearer ...\" /api/v1/auth/userinfo ```
|
42
|
+
* Get Current User Information
|
43
|
+
*/
|
44
|
+
async getCurrentUserApiV1AuthUserinfoGet(initOverrides) {
|
45
|
+
const response = await this.getCurrentUserApiV1AuthUserinfoGetRaw(initOverrides);
|
46
|
+
return await response.value();
|
47
|
+
}
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=UserProfileApi.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UserProfileApi.js","sourceRoot":"","sources":["../../../../src/generated/tenant/apis/UserProfileApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AA0BtC;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO,CAAC,OAAO;IAE/C;;;OAGG;IACH,KAAK,CAAC,qCAAqC,CAAC,aAA0D;QAClG,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAGjD,IAAI,OAAO,GAAG,uBAAuB,CAAC;QAEtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACxD,OAAO,IAAI,OAAO,CAAC,eAAe,CAAM,QAAQ,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAQ,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,kCAAkC,CAAC,aAA0D;QAC/F,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qCAAqC,CAAC,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/tenant/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
export * from './AuthenticationApi';
|
4
|
+
export * from './ExternalAuthApi';
|
5
|
+
export * from './OAuth2Api';
|
6
|
+
export * from './OpenidApi';
|
7
|
+
export * from './SystemApi';
|
8
|
+
export * from './UserProfileApi';
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/tenant/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/tenant/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/tenant/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* BinoAuth Tenant API
|
3
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
* Contact: support@binoauth.com
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* Schema for generating tokens using API key
|
14
|
+
* @export
|
15
|
+
* @interface ApiKeyTokenRequest
|
16
|
+
*/
|
17
|
+
export interface ApiKeyTokenRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof ApiKeyTokenRequest
|
22
|
+
*/
|
23
|
+
clientId?: string | null;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof ApiKeyTokenRequest
|
28
|
+
*/
|
29
|
+
scope?: string | null;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {number}
|
33
|
+
* @memberof ApiKeyTokenRequest
|
34
|
+
*/
|
35
|
+
expiresIn?: number | null;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Check if a given object implements the ApiKeyTokenRequest interface.
|
39
|
+
*/
|
40
|
+
export declare function instanceOfApiKeyTokenRequest(value: object): value is ApiKeyTokenRequest;
|
41
|
+
export declare function ApiKeyTokenRequestFromJSON(json: any): ApiKeyTokenRequest;
|
42
|
+
export declare function ApiKeyTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyTokenRequest;
|
43
|
+
export declare function ApiKeyTokenRequestToJSON(json: any): ApiKeyTokenRequest;
|
44
|
+
export declare function ApiKeyTokenRequestToJSONTyped(value?: ApiKeyTokenRequest | null, ignoreDiscriminator?: boolean): any;
|
45
|
+
//# sourceMappingURL=ApiKeyTokenRequest.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApiKeyTokenRequest.d.ts","sourceRoot":"","sources":["../../../../src/generated/tenant/models/ApiKeyTokenRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAU3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1H"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* BinoAuth Tenant API
|
5
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
8
|
+
* Contact: support@binoauth.com
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
import { mapValues } from '../runtime';
|
15
|
+
/**
|
16
|
+
* Check if a given object implements the ApiKeyTokenRequest interface.
|
17
|
+
*/
|
18
|
+
export function instanceOfApiKeyTokenRequest(value) {
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
export function ApiKeyTokenRequestFromJSON(json) {
|
22
|
+
return ApiKeyTokenRequestFromJSONTyped(json, false);
|
23
|
+
}
|
24
|
+
export function ApiKeyTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
25
|
+
if (json == null) {
|
26
|
+
return json;
|
27
|
+
}
|
28
|
+
return {
|
29
|
+
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
30
|
+
'scope': json['scope'] == null ? undefined : json['scope'],
|
31
|
+
'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
|
32
|
+
};
|
33
|
+
}
|
34
|
+
export function ApiKeyTokenRequestToJSON(json) {
|
35
|
+
return ApiKeyTokenRequestToJSONTyped(json, false);
|
36
|
+
}
|
37
|
+
export function ApiKeyTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
38
|
+
if (value == null) {
|
39
|
+
return value;
|
40
|
+
}
|
41
|
+
return {
|
42
|
+
'client_id': value['clientId'],
|
43
|
+
'scope': value['scope'],
|
44
|
+
'expires_in': value['expiresIn'],
|
45
|
+
};
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=ApiKeyTokenRequest.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApiKeyTokenRequest.js","sourceRoot":"","sources":["../../../../src/generated/tenant/models/ApiKeyTokenRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA2BvC;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACrE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC3E,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC;QAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;KACnC,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* BinoAuth Tenant API
|
3
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
* Contact: support@binoauth.com
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* Schema for token response from API key
|
14
|
+
* @export
|
15
|
+
* @interface ApiKeyTokenResponse
|
16
|
+
*/
|
17
|
+
export interface ApiKeyTokenResponse {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof ApiKeyTokenResponse
|
22
|
+
*/
|
23
|
+
accessToken: string;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof ApiKeyTokenResponse
|
28
|
+
*/
|
29
|
+
tokenType?: string;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {number}
|
33
|
+
* @memberof ApiKeyTokenResponse
|
34
|
+
*/
|
35
|
+
expiresIn: number;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof ApiKeyTokenResponse
|
40
|
+
*/
|
41
|
+
scope?: string | null;
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* @type {string}
|
45
|
+
* @memberof ApiKeyTokenResponse
|
46
|
+
*/
|
47
|
+
userId: string;
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the ApiKeyTokenResponse interface.
|
51
|
+
*/
|
52
|
+
export declare function instanceOfApiKeyTokenResponse(value: object): value is ApiKeyTokenResponse;
|
53
|
+
export declare function ApiKeyTokenResponseFromJSON(json: any): ApiKeyTokenResponse;
|
54
|
+
export declare function ApiKeyTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyTokenResponse;
|
55
|
+
export declare function ApiKeyTokenResponseToJSON(json: any): ApiKeyTokenResponse;
|
56
|
+
export declare function ApiKeyTokenResponseToJSONTyped(value?: ApiKeyTokenResponse | null, ignoreDiscriminator?: boolean): any;
|
57
|
+
//# sourceMappingURL=ApiKeyTokenResponse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApiKeyTokenResponse.d.ts","sourceRoot":"","sources":["../../../../src/generated/tenant/models/ApiKeyTokenResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAKzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAY7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5H"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* BinoAuth Tenant API
|
5
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
8
|
+
* Contact: support@binoauth.com
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
import { mapValues } from '../runtime';
|
15
|
+
/**
|
16
|
+
* Check if a given object implements the ApiKeyTokenResponse interface.
|
17
|
+
*/
|
18
|
+
export function instanceOfApiKeyTokenResponse(value) {
|
19
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
20
|
+
return false;
|
21
|
+
if (!('expiresIn' in value) || value['expiresIn'] === undefined)
|
22
|
+
return false;
|
23
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
24
|
+
return false;
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
export function ApiKeyTokenResponseFromJSON(json) {
|
28
|
+
return ApiKeyTokenResponseFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
export function ApiKeyTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if (json == null) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'accessToken': json['access_token'],
|
36
|
+
'tokenType': json['token_type'] == null ? undefined : json['token_type'],
|
37
|
+
'expiresIn': json['expires_in'],
|
38
|
+
'scope': json['scope'] == null ? undefined : json['scope'],
|
39
|
+
'userId': json['user_id'],
|
40
|
+
};
|
41
|
+
}
|
42
|
+
export function ApiKeyTokenResponseToJSON(json) {
|
43
|
+
return ApiKeyTokenResponseToJSONTyped(json, false);
|
44
|
+
}
|
45
|
+
export function ApiKeyTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
46
|
+
if (value == null) {
|
47
|
+
return value;
|
48
|
+
}
|
49
|
+
return {
|
50
|
+
'access_token': value['accessToken'],
|
51
|
+
'token_type': value['tokenType'],
|
52
|
+
'expires_in': value['expiresIn'],
|
53
|
+
'scope': value['scope'],
|
54
|
+
'user_id': value['userId'],
|
55
|
+
};
|
56
|
+
}
|
57
|
+
//# sourceMappingURL=ApiKeyTokenResponse.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApiKeyTokenResponse.js","sourceRoot":"","sources":["../../../../src/generated/tenant/models/ApiKeyTokenResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAuCvC;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC;QACnC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACxE,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC;QAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC;KAC5B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;QACpC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;QAChC,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;QAChC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC7B,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* BinoAuth Tenant API
|
3
|
+
* A comprehensive multi-tenant authentication and authorization API supporting OAuth2, OpenID Connect, API keys, and multiple authentication methods. ## Features - **Multi-Tenant Architecture**: Isolated tenant-specific authentication - **OAuth2 & OpenID Connect**: Full OAuth2/OIDC implementation with PKCE support - **API Keys**: Long-lived keys for programmatic access - **Multiple Auth Methods**: Password, magic links, phone OTP, social login, MFA - **Session Management**: Secure session handling with Redis backing - **Comprehensive Security**: Rate limiting, audit logging, secure token handling ## Authentication Methods ### 1. Session-Based (Web Applications) - HTTP-only secure cookies - Automatic session management - CSRF protection ### 2. API Keys (Programmatic Access) - Long-lived keys with scoped permissions - SHA-256 hashed storage - Usage tracking and analytics - **Header**: `X-API-Key: ak_live_...` ### 3. OAuth2 Bearer Tokens - Short-lived JWT tokens - Full OAuth2/OIDC support - Refresh token capability - **Header**: `Authorization: Bearer ...` ## Getting Started ### For Web Applications 1. Use `/auth/login` for password authentication 2. Session cookies are automatically managed 3. Access protected endpoints directly ### For Mobile Applications 1. Use OAuth2 authorization code flow with PKCE 2. Handle deep links for OAuth callbacks 3. Store and use refresh tokens for long-lived sessions ### For Backend Services 1. Create API keys via `/api-keys` endpoint 2. Use API keys for direct authentication 3. Generate short-lived tokens when needed ## Error Handling All endpoints return structured error responses: ```json { \"detail\": \"Error description\", \"error\": \"error_code\", \"error_description\": \"Detailed error message\" } ``` ## Rate Limiting API endpoints are rate limited to prevent abuse: - Authentication endpoints: 10 requests/minute - API key operations: 100 requests/hour - General endpoints: 1000 requests/hour ## Support - Documentation: [API Documentation](https://docs.binoauth.com) - Support: support@binoauth.com - Status: [Status Page](https://status.binoauth.com)
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
6
|
+
* Contact: support@binoauth.com
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
* @export
|
15
|
+
* @interface ClientConfigResponse
|
16
|
+
*/
|
17
|
+
export interface ClientConfigResponse {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof ClientConfigResponse
|
22
|
+
*/
|
23
|
+
clientId: string;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {Array<string>}
|
27
|
+
* @memberof ClientConfigResponse
|
28
|
+
*/
|
29
|
+
authMethods: Array<string>;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof ClientConfigResponse
|
34
|
+
*/
|
35
|
+
name: string;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof ClientConfigResponse
|
40
|
+
*/
|
41
|
+
description?: string | null;
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* @type {string}
|
45
|
+
* @memberof ClientConfigResponse
|
46
|
+
*/
|
47
|
+
logoUri?: string | null;
|
48
|
+
/**
|
49
|
+
*
|
50
|
+
* @type {string}
|
51
|
+
* @memberof ClientConfigResponse
|
52
|
+
*/
|
53
|
+
authorizeEndpoint: string;
|
54
|
+
/**
|
55
|
+
*
|
56
|
+
* @type {string}
|
57
|
+
* @memberof ClientConfigResponse
|
58
|
+
*/
|
59
|
+
userinfoEndpoint: string;
|
60
|
+
/**
|
61
|
+
*
|
62
|
+
* @type {string}
|
63
|
+
* @memberof ClientConfigResponse
|
64
|
+
*/
|
65
|
+
tokenEndpoint: string;
|
66
|
+
/**
|
67
|
+
*
|
68
|
+
* @type {string}
|
69
|
+
* @memberof ClientConfigResponse
|
70
|
+
*/
|
71
|
+
logoutEndpoint: string;
|
72
|
+
/**
|
73
|
+
*
|
74
|
+
* @type {string}
|
75
|
+
* @memberof ClientConfigResponse
|
76
|
+
*/
|
77
|
+
revokeEndpoint: string;
|
78
|
+
/**
|
79
|
+
*
|
80
|
+
* @type {string}
|
81
|
+
* @memberof ClientConfigResponse
|
82
|
+
*/
|
83
|
+
scope: string;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* Check if a given object implements the ClientConfigResponse interface.
|
87
|
+
*/
|
88
|
+
export declare function instanceOfClientConfigResponse(value: object): value is ClientConfigResponse;
|
89
|
+
export declare function ClientConfigResponseFromJSON(json: any): ClientConfigResponse;
|
90
|
+
export declare function ClientConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientConfigResponse;
|
91
|
+
export declare function ClientConfigResponseToJSON(json: any): ClientConfigResponse;
|
92
|
+
export declare function ClientConfigResponseToJSONTyped(value?: ClientConfigResponse | null, ignoreDiscriminator?: boolean): any;
|
93
|
+
//# sourceMappingURL=ClientConfigResponse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ClientConfigResponse.d.ts","sourceRoot":"","sources":["../../../../src/generated/tenant/models/ClientConfigResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAW3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAkB/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmB9H"}
|