@zango-core/appbuilder 1.0.0-rc.1
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/ConfigurePage-DRzSb06z.js +29 -0
- package/dist/ConfigurePage-DRzSb06z.js.map +1 -0
- package/dist/LoginPageWithRoleSelection-xTr_eIWh.js +662 -0
- package/dist/LoginPageWithRoleSelection-xTr_eIWh.js.map +1 -0
- package/dist/PageTypeRegistry-5269IpiS.js +53 -0
- package/dist/PageTypeRegistry-5269IpiS.js.map +1 -0
- package/dist/index.framework-B8SMzgN1.js +28005 -0
- package/dist/index.framework-B8SMzgN1.js.map +1 -0
- package/dist/types/App.d.ts +14 -0
- package/dist/types/__tests__/mocks/data/appInitData.d.ts +197 -0
- package/dist/types/__tests__/mocks/data/authConfigData.d.ts +356 -0
- package/dist/types/__tests__/mocks/externalPackages.d.ts +42 -0
- package/dist/types/__tests__/mocks/handlers/appInit.handlers.d.ts +3 -0
- package/dist/types/__tests__/mocks/handlers/auth.handlers.d.ts +1 -0
- package/dist/types/__tests__/mocks/handlers/index.d.ts +5 -0
- package/dist/types/__tests__/mocks/handlers/profile.handlers.d.ts +15 -0
- package/dist/types/__tests__/mocks/handlers/session.handlers.d.ts +2 -0
- package/dist/types/__tests__/setup/setupDOMMatchers.d.ts +0 -0
- package/dist/types/__tests__/setup/setupMSW.d.ts +1 -0
- package/dist/types/__tests__/setup/setupTests.d.ts +34 -0
- package/dist/types/__tests__/utils/mockRouterUtils.d.ts +62 -0
- package/dist/types/__tests__/utils/renderWithProviders.d.ts +22 -0
- package/dist/types/__tests__/utils/waitForHelpers.d.ts +36 -0
- package/dist/types/auth/components/AuthMobileShell.d.ts +8 -0
- package/dist/types/auth/components/AuthProvider.d.ts +30 -0
- package/dist/types/auth/components/DynamicLoginForm.d.ts +9 -0
- package/dist/types/auth/components/ForgotPasswordForm.d.ts +11 -0
- package/dist/types/auth/components/LoginForm.d.ts +7 -0
- package/dist/types/auth/components/LoginRouter.d.ts +197 -0
- package/dist/types/auth/components/OAuthCallback.d.ts +19 -0
- package/dist/types/auth/components/OTPForm.d.ts +11 -0
- package/dist/types/auth/components/OTPInput.d.ts +8 -0
- package/dist/types/auth/components/PasswordResetRequired.d.ts +23 -0
- package/dist/types/auth/components/ProviderButton.d.ts +17 -0
- package/dist/types/auth/components/ResetPasswordForm.d.ts +12 -0
- package/dist/types/auth/components/RoleSelection.d.ts +25 -0
- package/dist/types/auth/components/SecondFactorAuth.d.ts +21 -0
- package/dist/types/auth/components/composable/OTPLoginForm.d.ts +17 -0
- package/dist/types/auth/components/composable/PasswordLoginForm.d.ts +17 -0
- package/dist/types/auth/components/composable/SSOButtons.d.ts +61 -0
- package/dist/types/auth/components/composable/index.d.ts +42 -0
- package/dist/types/auth/contexts/LoginContext.d.ts +6 -0
- package/dist/types/auth/hocs/withMultiStepAuth.d.ts +35 -0
- package/dist/types/auth/index.d.ts +23 -0
- package/dist/types/auth/pages/CompleteAuthFlow.d.ts +24 -0
- package/dist/types/auth/pages/LoginPage.d.ts +8 -0
- package/dist/types/auth/pages/LoginPageWithRoleSelection.d.ts +13 -0
- package/dist/types/auth/pages/OAuthCallbackPage.d.ts +17 -0
- package/dist/types/auth/pages/SAMLCallbackPage.d.ts +16 -0
- package/dist/types/auth/services/authService.d.ts +87 -0
- package/dist/types/auth/services/internal/apiClients.d.ts +9 -0
- package/dist/types/auth/services/internal/authState.d.ts +12 -0
- package/dist/types/auth/services/internal/errorHelper.d.ts +1 -0
- package/dist/types/auth/services/internal/oauthSamlService.d.ts +46 -0
- package/dist/types/auth/services/internal/passwordValidator.d.ts +17 -0
- package/dist/types/auth/services/network/api.d.ts +1629 -0
- package/dist/types/auth/services/network/base.d.ts +31 -0
- package/dist/types/auth/services/network/configuration.d.ts +74 -0
- package/dist/types/auth/services/network/index.d.ts +13 -0
- package/dist/types/auth/stores/index.d.ts +1 -0
- package/dist/types/auth/stores/useAuthStore.d.ts +6 -0
- package/dist/types/auth/types/index.d.ts +57 -0
- package/dist/types/auth/utils/authFlowHandler.d.ts +72 -0
- package/dist/types/auth/utils/authUtils.d.ts +21 -0
- package/dist/types/auth/utils/validators.d.ts +18 -0
- package/dist/types/components/ErrorBoundary.d.ts +23 -0
- package/dist/types/components/ErrorFallback.d.ts +8 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/ui/avatar.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts +10 -0
- package/dist/types/components/ui/collapsible.d.ts +5 -0
- package/dist/types/components/ui/dialog.d.ts +13 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +10 -0
- package/dist/types/components/ui/empty.d.ts +8 -0
- package/dist/types/components/ui/index.d.ts +12 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/sheet.d.ts +14 -0
- package/dist/types/components/ui/sidebar.d.ts +69 -0
- package/dist/types/components/ui/skeleton.d.ts +2 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/framework/ZangoApp.d.ts +19 -0
- package/dist/types/framework/components/CachedLogo.d.ts +9 -0
- package/dist/types/framework/components/CustomPageFallback.d.ts +13 -0
- package/dist/types/framework/components/CustomPageLoader.d.ts +10 -0
- package/dist/types/framework/components/DocumentHead.d.ts +5 -0
- package/dist/types/framework/components/RouteErrorBoundary.d.ts +16 -0
- package/dist/types/framework/components/SessionSecurityDialog.d.ts +10 -0
- package/dist/types/framework/components/SessionSecurityProvider.d.ts +8 -0
- package/dist/types/framework/components/SmartLink.d.ts +13 -0
- package/dist/types/framework/components/layout/AppSidebar.d.ts +36 -0
- package/dist/types/framework/components/layout/Breadcrumbs.d.ts +2 -0
- package/dist/types/framework/components/layout/CommandPalette.d.ts +2 -0
- package/dist/types/framework/components/layout/Layout.d.ts +2 -0
- package/dist/types/framework/components/layout/Navbar.d.ts +9 -0
- package/dist/types/framework/components/layout/NavbarIcon.d.ts +12 -0
- package/dist/types/framework/components/layout/Topbar.d.ts +50 -0
- package/dist/types/framework/components/layout/UserProfileDrawer.d.ts +7 -0
- package/dist/types/framework/components/layout/profile/PasswordCard.d.ts +18 -0
- package/dist/types/framework/components/layout/profile/PersonalInfoCard.d.ts +12 -0
- package/dist/types/framework/components/layout/profile/ProfileRail.d.ts +23 -0
- package/dist/types/framework/components/layout/profile/SessionsCard.d.ts +8 -0
- package/dist/types/framework/components/layout/profile/TokensCard.d.ts +11 -0
- package/dist/types/framework/components/layout/profile/TwoFactorCard.d.ts +7 -0
- package/dist/types/framework/config/defaultLayoutConfig.d.ts +34 -0
- package/dist/types/framework/constants/routes.d.ts +5 -0
- package/dist/types/framework/contexts/AppContext.d.ts +57 -0
- package/dist/types/framework/contexts/AuthConfigContext.d.ts +22 -0
- package/dist/types/framework/hooks/useProfileData.d.ts +73 -0
- package/dist/types/framework/hooks/useRoutes.d.ts +10 -0
- package/dist/types/framework/hooks/useSessionSecurity.d.ts +17 -0
- package/dist/types/framework/hooks/useSmartNavigation.d.ts +15 -0
- package/dist/types/framework/index.d.ts +35 -0
- package/dist/types/framework/pages/ConfigurePage.d.ts +2 -0
- package/dist/types/framework/pages/CrudPage.d.ts +6 -0
- package/dist/types/framework/pages/LoginPage.d.ts +5 -0
- package/dist/types/framework/pages/LogoutPage.d.ts +2 -0
- package/dist/types/framework/pages/NotFoundPage.d.ts +6 -0
- package/dist/types/framework/pages/TrainingPage.d.ts +6 -0
- package/dist/types/framework/routing/PageTypeRegistry.d.ts +43 -0
- package/dist/types/framework/routing/PageTypeRouter.d.ts +12 -0
- package/dist/types/framework/routing/dynamicPageRegistry.d.ts +41 -0
- package/dist/types/framework/routing/getRenderComponent.d.ts +6 -0
- package/dist/types/framework/types/layout.types.d.ts +107 -0
- package/dist/types/framework/utils/apiConfig.d.ts +41 -0
- package/dist/types/framework/utils/apiInterceptor.d.ts +12 -0
- package/dist/types/framework/utils/apiUrlUtils.d.ts +9 -0
- package/dist/types/framework/utils/authThemeUtils.d.ts +64 -0
- package/dist/types/framework/utils/colorUtils.d.ts +53 -0
- package/dist/types/framework/utils/cookieUtils.d.ts +20 -0
- package/dist/types/framework/utils/csrf.d.ts +27 -0
- package/dist/types/framework/utils/logoCache.d.ts +21 -0
- package/dist/types/framework/utils/logoutUtils.d.ts +15 -0
- package/dist/types/framework/utils/redirectUtils.d.ts +48 -0
- package/dist/types/framework/utils/safeRedirect.d.ts +21 -0
- package/dist/types/framework/utils/storageKeys.d.ts +44 -0
- package/dist/types/framework/utils/storageSanitizer.d.ts +20 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/queries/index.d.ts +4 -0
- package/dist/types/hooks/queries/useAppInitQuery.d.ts +1 -0
- package/dist/types/hooks/queries/useAuthConfigQuery.d.ts +1 -0
- package/dist/types/hooks/queries/useProfileQuery.d.ts +8 -0
- package/dist/types/hooks/useBreakpoint.d.ts +2 -0
- package/dist/types/hooks/useMobile.d.ts +1 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/index.framework.d.ts +39 -0
- package/dist/types/index.zango.d.ts +12 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/schemas/appInit.schema.d.ts +61 -0
- package/dist/types/schemas/index.d.ts +10 -0
- package/dist/types/schemas/profile.schema.d.ts +18 -0
- package/dist/types/schemas/route.schema.d.ts +9 -0
- package/dist/types/schemas/session.schema.d.ts +8 -0
- package/dist/types/schemas/theme.schema.d.ts +27 -0
- package/dist/types/services/api/index.d.ts +2 -0
- package/dist/types/services/api.d.ts +109 -0
- package/dist/types/services/index.d.ts +7 -0
- package/dist/types/services/legacyAdapter.d.ts +10 -0
- package/dist/types/services/logger.d.ts +32 -0
- package/dist/types/services/normalizeResponse.d.ts +29 -0
- package/dist/types/types/auth.d.ts +103 -0
- package/dist/types/types/common.d.ts +343 -0
- package/dist/types/types/index.d.ts +278 -0
- package/dist/zango-appbuilder.js +99 -0
- package/dist/zango-appbuilder.js.map +1 -0
- package/dist/zango-appbuilder.umd.cjs +247 -0
- package/dist/zango-appbuilder.umd.cjs.map +1 -0
- package/package.json +140 -0
|
@@ -0,0 +1,1629 @@
|
|
|
1
|
+
import { Configuration } from './configuration';
|
|
2
|
+
import { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
3
|
+
import { RequestArgs, BaseAPI } from './base';
|
|
4
|
+
export interface AuthConfig {
|
|
5
|
+
'login_methods': LoginMethods;
|
|
6
|
+
'session_policy': SessionPolicy;
|
|
7
|
+
'password_policy': PasswordPolicy;
|
|
8
|
+
'two_factor_auth': TwoFactorAuth;
|
|
9
|
+
}
|
|
10
|
+
export interface AuthConfigResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the request was successful
|
|
13
|
+
*/
|
|
14
|
+
'success': boolean;
|
|
15
|
+
/**
|
|
16
|
+
* HTTP status code
|
|
17
|
+
*/
|
|
18
|
+
'status'?: number;
|
|
19
|
+
'response'?: AuthConfig;
|
|
20
|
+
}
|
|
21
|
+
export interface AuthMethod {
|
|
22
|
+
/**
|
|
23
|
+
* Authentication method used
|
|
24
|
+
*/
|
|
25
|
+
'method': AuthMethodMethodEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Unix timestamp when authentication occurred
|
|
28
|
+
*/
|
|
29
|
+
'at': number;
|
|
30
|
+
/**
|
|
31
|
+
* Email address used for authentication
|
|
32
|
+
*/
|
|
33
|
+
'email': string;
|
|
34
|
+
}
|
|
35
|
+
export declare const AuthMethodMethodEnum: {
|
|
36
|
+
readonly Password: "password";
|
|
37
|
+
readonly Oauth: "oauth";
|
|
38
|
+
readonly Sso: "sso";
|
|
39
|
+
readonly Token: "token";
|
|
40
|
+
readonly Otp: "otp";
|
|
41
|
+
};
|
|
42
|
+
export type AuthMethodMethodEnum = typeof AuthMethodMethodEnum[keyof typeof AuthMethodMethodEnum];
|
|
43
|
+
export interface AuthStepRequiredResponse {
|
|
44
|
+
'success': boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTTP status code
|
|
47
|
+
*/
|
|
48
|
+
'status'?: number;
|
|
49
|
+
'response'?: AuthStepRequiredResponseAllOfResponse;
|
|
50
|
+
}
|
|
51
|
+
export interface AuthStepRequiredResponseAllOfResponse {
|
|
52
|
+
'status': number;
|
|
53
|
+
'data': AuthStepRequiredResponseAllOfResponseData;
|
|
54
|
+
'meta': AuthStepRequiredResponseAllOfResponseMeta;
|
|
55
|
+
}
|
|
56
|
+
export interface AuthStepRequiredResponseAllOfResponseData {
|
|
57
|
+
'next_step': NextStep;
|
|
58
|
+
'metadata'?: AuthStepRequiredResponseAllOfResponseDataMetadata;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @type AuthStepRequiredResponseAllOfResponseDataMetadata
|
|
62
|
+
*/
|
|
63
|
+
export type AuthStepRequiredResponseAllOfResponseDataMetadata = MfaStep | RoleStep | SetPasswordStep;
|
|
64
|
+
export interface AuthStepRequiredResponseAllOfResponseMeta {
|
|
65
|
+
'is_authenticated': boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface BaseResponse {
|
|
68
|
+
/**
|
|
69
|
+
* Indicates if the request was successful
|
|
70
|
+
*/
|
|
71
|
+
'success': boolean;
|
|
72
|
+
/**
|
|
73
|
+
* HTTP status code
|
|
74
|
+
*/
|
|
75
|
+
'status'?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface DeleteSessionsRequest {
|
|
78
|
+
/**
|
|
79
|
+
* The IDs of the sessions that are to be ended.
|
|
80
|
+
*/
|
|
81
|
+
'sessions': Array<number>;
|
|
82
|
+
}
|
|
83
|
+
export interface ErrorResponse {
|
|
84
|
+
'success': boolean;
|
|
85
|
+
/**
|
|
86
|
+
* HTTP status code
|
|
87
|
+
*/
|
|
88
|
+
'status'?: number;
|
|
89
|
+
'error'?: ErrorResponseAllOfError;
|
|
90
|
+
}
|
|
91
|
+
export interface ErrorResponseAllOfError {
|
|
92
|
+
/**
|
|
93
|
+
* Error message
|
|
94
|
+
*/
|
|
95
|
+
'message'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Error code
|
|
98
|
+
*/
|
|
99
|
+
'code'?: string;
|
|
100
|
+
/**
|
|
101
|
+
* param
|
|
102
|
+
*/
|
|
103
|
+
'param'?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @type GetAppAuthConfig403Response
|
|
107
|
+
*/
|
|
108
|
+
export type GetAppAuthConfig403Response = ErrorResponse | LockoutResponse;
|
|
109
|
+
export interface GetMfaCodeResponse {
|
|
110
|
+
/**
|
|
111
|
+
* Indicates if the request was successful
|
|
112
|
+
*/
|
|
113
|
+
'success': boolean;
|
|
114
|
+
/**
|
|
115
|
+
* HTTP status code
|
|
116
|
+
*/
|
|
117
|
+
'status'?: number;
|
|
118
|
+
'response'?: GetMfaCodeResponseAllOfResponse;
|
|
119
|
+
}
|
|
120
|
+
export interface GetMfaCodeResponseAllOfResponse {
|
|
121
|
+
/**
|
|
122
|
+
* The type of OTP that was sent
|
|
123
|
+
*/
|
|
124
|
+
'otp_type': GetMfaCodeResponseAllOfResponseOtpTypeEnum;
|
|
125
|
+
}
|
|
126
|
+
export declare const GetMfaCodeResponseAllOfResponseOtpTypeEnum: {
|
|
127
|
+
readonly Sms: "sms";
|
|
128
|
+
readonly Email: "email";
|
|
129
|
+
readonly Totp: "totp";
|
|
130
|
+
};
|
|
131
|
+
export type GetMfaCodeResponseAllOfResponseOtpTypeEnum = typeof GetMfaCodeResponseAllOfResponseOtpTypeEnum[keyof typeof GetMfaCodeResponseAllOfResponseOtpTypeEnum];
|
|
132
|
+
export interface ListSessions {
|
|
133
|
+
/**
|
|
134
|
+
* Indicates if the request was successful
|
|
135
|
+
*/
|
|
136
|
+
'success': boolean;
|
|
137
|
+
/**
|
|
138
|
+
* HTTP status code
|
|
139
|
+
*/
|
|
140
|
+
'status'?: number;
|
|
141
|
+
'data'?: Array<ListSessionsAllOfData>;
|
|
142
|
+
}
|
|
143
|
+
export interface ListSessionsAllOfData {
|
|
144
|
+
/**
|
|
145
|
+
* Unique identifier for the session.
|
|
146
|
+
*/
|
|
147
|
+
'id': number;
|
|
148
|
+
/**
|
|
149
|
+
* The user agent string of the client.
|
|
150
|
+
*/
|
|
151
|
+
'user_agent': string;
|
|
152
|
+
/**
|
|
153
|
+
* The IP address of the client.
|
|
154
|
+
*/
|
|
155
|
+
'ip': string;
|
|
156
|
+
/**
|
|
157
|
+
* Timestamp of when the session was created, in Unix epoch time.
|
|
158
|
+
*/
|
|
159
|
+
'created_at': number;
|
|
160
|
+
/**
|
|
161
|
+
* Timestamp of the last time the session was seen, in Unix epoch time.
|
|
162
|
+
*/
|
|
163
|
+
'last_seen_at': number;
|
|
164
|
+
/**
|
|
165
|
+
* Indicates if this is the current active session.
|
|
166
|
+
*/
|
|
167
|
+
'is_current': boolean;
|
|
168
|
+
}
|
|
169
|
+
export interface LockoutResponse {
|
|
170
|
+
'success': boolean;
|
|
171
|
+
/**
|
|
172
|
+
* HTTP status code
|
|
173
|
+
*/
|
|
174
|
+
'status'?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Account lockout message
|
|
177
|
+
*/
|
|
178
|
+
'message': string;
|
|
179
|
+
/**
|
|
180
|
+
* Cooloff time in seconds
|
|
181
|
+
*/
|
|
182
|
+
'cooloff_time_seconds': number;
|
|
183
|
+
/**
|
|
184
|
+
* Cooloff time in minutes
|
|
185
|
+
*/
|
|
186
|
+
'cooloff_time_minutes': number;
|
|
187
|
+
/**
|
|
188
|
+
* Error code for account lockout
|
|
189
|
+
*/
|
|
190
|
+
'error_code': string;
|
|
191
|
+
}
|
|
192
|
+
export interface LoginMethodStatus {
|
|
193
|
+
/**
|
|
194
|
+
* Indicates if the login method is enabled
|
|
195
|
+
*/
|
|
196
|
+
'enabled': boolean;
|
|
197
|
+
}
|
|
198
|
+
export interface LoginMethods {
|
|
199
|
+
'otp': LoginMethodStatus;
|
|
200
|
+
'sso': LoginMethodStatus;
|
|
201
|
+
'oidc': LoginMethodStatus;
|
|
202
|
+
'password': PasswordLoginMethod;
|
|
203
|
+
/**
|
|
204
|
+
* List of allowed username types for login
|
|
205
|
+
*/
|
|
206
|
+
'allowed_usernames': Array<LoginMethodsAllowedUsernamesEnum>;
|
|
207
|
+
}
|
|
208
|
+
export declare const LoginMethodsAllowedUsernamesEnum: {
|
|
209
|
+
readonly Email: "email";
|
|
210
|
+
readonly Mobile: "mobile";
|
|
211
|
+
readonly Username: "username";
|
|
212
|
+
};
|
|
213
|
+
export type LoginMethodsAllowedUsernamesEnum = typeof LoginMethodsAllowedUsernamesEnum[keyof typeof LoginMethodsAllowedUsernamesEnum];
|
|
214
|
+
export interface LoginOTPErrorResponse {
|
|
215
|
+
'success'?: boolean;
|
|
216
|
+
'response'?: LoginOTPErrorResponseResponse;
|
|
217
|
+
}
|
|
218
|
+
export interface LoginOTPErrorResponseResponse {
|
|
219
|
+
'status'?: number;
|
|
220
|
+
'data'?: LoginOTPErrorResponseResponseData;
|
|
221
|
+
'meta'?: LoginOTPResponseAllOfResponseMeta;
|
|
222
|
+
}
|
|
223
|
+
export interface LoginOTPErrorResponseResponseData {
|
|
224
|
+
'message'?: string;
|
|
225
|
+
}
|
|
226
|
+
export interface LoginOTPRequest {
|
|
227
|
+
'email'?: string;
|
|
228
|
+
'phone'?: string;
|
|
229
|
+
}
|
|
230
|
+
export interface LoginOTPResponse {
|
|
231
|
+
/**
|
|
232
|
+
* Indicates if the request was successful
|
|
233
|
+
*/
|
|
234
|
+
'success': boolean;
|
|
235
|
+
/**
|
|
236
|
+
* HTTP status code
|
|
237
|
+
*/
|
|
238
|
+
'status'?: number;
|
|
239
|
+
'response'?: LoginOTPResponseAllOfResponse;
|
|
240
|
+
}
|
|
241
|
+
export interface LoginOTPResponseAllOfResponse {
|
|
242
|
+
'status'?: number;
|
|
243
|
+
'data'?: LoginOTPResponseAllOfResponseData;
|
|
244
|
+
'meta'?: LoginOTPResponseAllOfResponseMeta;
|
|
245
|
+
}
|
|
246
|
+
export interface LoginOTPResponseAllOfResponseData {
|
|
247
|
+
'message'?: string;
|
|
248
|
+
'destination'?: string;
|
|
249
|
+
}
|
|
250
|
+
export interface LoginOTPResponseAllOfResponseMeta {
|
|
251
|
+
'is_authenticated'?: boolean;
|
|
252
|
+
}
|
|
253
|
+
export interface LoginOTPVerifyRequest {
|
|
254
|
+
/**
|
|
255
|
+
* OTP verification code
|
|
256
|
+
*/
|
|
257
|
+
'code': string;
|
|
258
|
+
}
|
|
259
|
+
export interface LoginSuccessResponse {
|
|
260
|
+
/**
|
|
261
|
+
* Indicates if the request was successful
|
|
262
|
+
*/
|
|
263
|
+
'success': boolean;
|
|
264
|
+
/**
|
|
265
|
+
* HTTP status code
|
|
266
|
+
*/
|
|
267
|
+
'status'?: number;
|
|
268
|
+
'response'?: LoginSuccessResponseAllOfResponse;
|
|
269
|
+
}
|
|
270
|
+
export interface LoginSuccessResponseAllOfResponse {
|
|
271
|
+
'status': number;
|
|
272
|
+
'data': LoginSuccessResponseAllOfResponseData;
|
|
273
|
+
'meta': LoginSuccessResponseAllOfResponseMeta;
|
|
274
|
+
}
|
|
275
|
+
export interface LoginSuccessResponseAllOfResponseData {
|
|
276
|
+
'user': User;
|
|
277
|
+
'methods': Array<AuthMethod>;
|
|
278
|
+
'redirect_url': string;
|
|
279
|
+
}
|
|
280
|
+
export interface LoginSuccessResponseAllOfResponseMeta {
|
|
281
|
+
'is_authenticated': boolean;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @type LoginUserRequest
|
|
285
|
+
*/
|
|
286
|
+
export type LoginUserRequest = LoginWithEmailRequest | LoginWithPhoneRequest;
|
|
287
|
+
export interface LoginWithEmailRequest {
|
|
288
|
+
'email': string;
|
|
289
|
+
'password': string;
|
|
290
|
+
}
|
|
291
|
+
export interface LoginWithPhoneRequest {
|
|
292
|
+
'phone': string;
|
|
293
|
+
'password': string;
|
|
294
|
+
}
|
|
295
|
+
export interface MfaMetadata {
|
|
296
|
+
'method': MfaMetadataMethodEnum;
|
|
297
|
+
}
|
|
298
|
+
export declare const MfaMetadataMethodEnum: {
|
|
299
|
+
readonly Sms: "sms";
|
|
300
|
+
readonly Email: "email";
|
|
301
|
+
readonly Totp: "totp";
|
|
302
|
+
};
|
|
303
|
+
export type MfaMetadataMethodEnum = typeof MfaMetadataMethodEnum[keyof typeof MfaMetadataMethodEnum];
|
|
304
|
+
export interface MfaStep {
|
|
305
|
+
'type'?: MfaStepTypeEnum;
|
|
306
|
+
}
|
|
307
|
+
export declare const MfaStepTypeEnum: {
|
|
308
|
+
readonly Email: "email";
|
|
309
|
+
readonly Sms: "sms";
|
|
310
|
+
readonly Totp: "totp";
|
|
311
|
+
};
|
|
312
|
+
export type MfaStepTypeEnum = typeof MfaStepTypeEnum[keyof typeof MfaStepTypeEnum];
|
|
313
|
+
export interface MfaVerifyRequest {
|
|
314
|
+
/**
|
|
315
|
+
* MFA verification code
|
|
316
|
+
*/
|
|
317
|
+
'code': string;
|
|
318
|
+
}
|
|
319
|
+
export interface NextStep {
|
|
320
|
+
'id': NextStepIdEnum;
|
|
321
|
+
'is_pending': boolean;
|
|
322
|
+
'metadata'?: NextStepMetadata;
|
|
323
|
+
}
|
|
324
|
+
export declare const NextStepIdEnum: {
|
|
325
|
+
readonly RoleSelection: "role_selection";
|
|
326
|
+
readonly MfaAuthenticate: "mfa_authenticate";
|
|
327
|
+
readonly SetPassword: "set_password";
|
|
328
|
+
readonly LoginByCode: "login_by_code";
|
|
329
|
+
};
|
|
330
|
+
export type NextStepIdEnum = typeof NextStepIdEnum[keyof typeof NextStepIdEnum];
|
|
331
|
+
/**
|
|
332
|
+
* @type NextStepMetadata
|
|
333
|
+
*/
|
|
334
|
+
export type NextStepMetadata = MfaMetadata | RoleSelectionMetadata | SetPasswordMetadata;
|
|
335
|
+
export interface OAuthRedirectResponse {
|
|
336
|
+
/**
|
|
337
|
+
* Indicates if the request was successful
|
|
338
|
+
*/
|
|
339
|
+
'success': boolean;
|
|
340
|
+
/**
|
|
341
|
+
* HTTP status code
|
|
342
|
+
*/
|
|
343
|
+
'status'?: number;
|
|
344
|
+
'response': OAuthRedirectResponseAllOfResponse;
|
|
345
|
+
}
|
|
346
|
+
export interface OAuthRedirectResponseAllOfResponse {
|
|
347
|
+
/**
|
|
348
|
+
* The URL to redirect to for OAuth authentication
|
|
349
|
+
*/
|
|
350
|
+
'redirect_url': string;
|
|
351
|
+
}
|
|
352
|
+
export interface PasswordChangeRequest {
|
|
353
|
+
/**
|
|
354
|
+
* New password
|
|
355
|
+
*/
|
|
356
|
+
'new_password': string;
|
|
357
|
+
/**
|
|
358
|
+
* Current Password
|
|
359
|
+
*/
|
|
360
|
+
'current_password': string;
|
|
361
|
+
}
|
|
362
|
+
export interface PasswordLoginMethod {
|
|
363
|
+
/**
|
|
364
|
+
* Indicates if password login is enabled
|
|
365
|
+
*/
|
|
366
|
+
'enabled': boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Indicates if the forgot password feature is enabled
|
|
369
|
+
*/
|
|
370
|
+
'forgot_password_enabled': boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Expiry time in hours for password reset links
|
|
373
|
+
*/
|
|
374
|
+
'password_reset_link_expiry_hours': number;
|
|
375
|
+
/**
|
|
376
|
+
* List of allowed username types for password login
|
|
377
|
+
*/
|
|
378
|
+
'allowed_usernames': Array<PasswordLoginMethodAllowedUsernamesEnum>;
|
|
379
|
+
}
|
|
380
|
+
export declare const PasswordLoginMethodAllowedUsernamesEnum: {
|
|
381
|
+
readonly Email: "email";
|
|
382
|
+
readonly Mobile: "mobile";
|
|
383
|
+
readonly Username: "username";
|
|
384
|
+
};
|
|
385
|
+
export type PasswordLoginMethodAllowedUsernamesEnum = typeof PasswordLoginMethodAllowedUsernamesEnum[keyof typeof PasswordLoginMethodAllowedUsernamesEnum];
|
|
386
|
+
export interface PasswordPolicy {
|
|
387
|
+
'reset': PasswordResetPolicy;
|
|
388
|
+
/**
|
|
389
|
+
* Minimum length required for passwords
|
|
390
|
+
*/
|
|
391
|
+
'min_length': number;
|
|
392
|
+
/**
|
|
393
|
+
* Indicates if users are allowed to change their password
|
|
394
|
+
*/
|
|
395
|
+
'allow_change': boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Indicates if passwords must contain numbers
|
|
398
|
+
*/
|
|
399
|
+
'require_numbers': boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Indicates if passwords must contain lowercase characters
|
|
402
|
+
*/
|
|
403
|
+
'require_lowercase': boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Indicates if passwords must contain uppercase characters
|
|
406
|
+
*/
|
|
407
|
+
'require_uppercase': boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Number of days after which passwords expire (0 for no expiry)
|
|
410
|
+
*/
|
|
411
|
+
'password_expiry_days': number;
|
|
412
|
+
/**
|
|
413
|
+
* Indicates if passwords must contain special characters
|
|
414
|
+
*/
|
|
415
|
+
'require_special_chars': boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Number of past passwords that cannot be reused
|
|
418
|
+
*/
|
|
419
|
+
'password_history_count': number;
|
|
420
|
+
/**
|
|
421
|
+
* Maximum length allowed for passwords
|
|
422
|
+
*/
|
|
423
|
+
'max_length'?: number;
|
|
424
|
+
/**
|
|
425
|
+
* Number of failed attempts before account lockout (0 for no lockout)
|
|
426
|
+
*/
|
|
427
|
+
'lockout_attempts'?: number;
|
|
428
|
+
/**
|
|
429
|
+
* Duration of account lockout in minutes
|
|
430
|
+
*/
|
|
431
|
+
'lockout_duration_minutes'?: number;
|
|
432
|
+
}
|
|
433
|
+
export interface PasswordResetPolicy {
|
|
434
|
+
/**
|
|
435
|
+
* Allowed methods for password reset
|
|
436
|
+
*/
|
|
437
|
+
'method': Array<PasswordResetPolicyMethodEnum>;
|
|
438
|
+
/**
|
|
439
|
+
* Indicates if password reset is enabled
|
|
440
|
+
*/
|
|
441
|
+
'enabled': boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Expiry time in hours for password reset tokens
|
|
444
|
+
*/
|
|
445
|
+
'expiry_hours': number;
|
|
446
|
+
}
|
|
447
|
+
export declare const PasswordResetPolicyMethodEnum: {
|
|
448
|
+
readonly Email: "email";
|
|
449
|
+
readonly Sms: "sms";
|
|
450
|
+
};
|
|
451
|
+
export type PasswordResetPolicyMethodEnum = typeof PasswordResetPolicyMethodEnum[keyof typeof PasswordResetPolicyMethodEnum];
|
|
452
|
+
export interface PasswordSetRequest {
|
|
453
|
+
/**
|
|
454
|
+
* New password
|
|
455
|
+
*/
|
|
456
|
+
'new_password': string;
|
|
457
|
+
}
|
|
458
|
+
export interface ProfileData {
|
|
459
|
+
/**
|
|
460
|
+
* User\'s display name
|
|
461
|
+
*/
|
|
462
|
+
'name': string;
|
|
463
|
+
/**
|
|
464
|
+
* User\'s email address
|
|
465
|
+
*/
|
|
466
|
+
'email': string;
|
|
467
|
+
/**
|
|
468
|
+
* User\'s mobile number
|
|
469
|
+
*/
|
|
470
|
+
'mobile': string;
|
|
471
|
+
/**
|
|
472
|
+
* URL to user\'s profile picture
|
|
473
|
+
*/
|
|
474
|
+
'profile_pic': string | null;
|
|
475
|
+
/**
|
|
476
|
+
* List of roles assigned to the user
|
|
477
|
+
*/
|
|
478
|
+
'roles': Array<Role>;
|
|
479
|
+
'auth_config': AuthConfig;
|
|
480
|
+
}
|
|
481
|
+
export interface ProfileResponse {
|
|
482
|
+
/**
|
|
483
|
+
* Indicates if the request was successful
|
|
484
|
+
*/
|
|
485
|
+
'success': boolean;
|
|
486
|
+
/**
|
|
487
|
+
* HTTP status code
|
|
488
|
+
*/
|
|
489
|
+
'status'?: number;
|
|
490
|
+
'response'?: ProfileResponseAllOfResponse;
|
|
491
|
+
}
|
|
492
|
+
export interface ProfileResponseAllOfResponse {
|
|
493
|
+
/**
|
|
494
|
+
* Response message
|
|
495
|
+
*/
|
|
496
|
+
'message': string;
|
|
497
|
+
'profile_data': ProfileData;
|
|
498
|
+
'password_policy': PasswordPolicy;
|
|
499
|
+
/**
|
|
500
|
+
* User authentication tokens
|
|
501
|
+
*/
|
|
502
|
+
'tokens': Array<Token>;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* @type RequestLoginOTP401Response
|
|
506
|
+
*/
|
|
507
|
+
export type RequestLoginOTP401Response = LoginOTPErrorResponse | LoginOTPResponse;
|
|
508
|
+
export interface Role {
|
|
509
|
+
/**
|
|
510
|
+
* Unique identifier for the role
|
|
511
|
+
*/
|
|
512
|
+
'id': number;
|
|
513
|
+
/**
|
|
514
|
+
* Timestamp when the role was created
|
|
515
|
+
*/
|
|
516
|
+
'created_at': string;
|
|
517
|
+
/**
|
|
518
|
+
* User who created the role
|
|
519
|
+
*/
|
|
520
|
+
'created_by': string;
|
|
521
|
+
/**
|
|
522
|
+
* Timestamp when the role was last modified
|
|
523
|
+
*/
|
|
524
|
+
'modified_at': string;
|
|
525
|
+
/**
|
|
526
|
+
* User who last modified the role
|
|
527
|
+
*/
|
|
528
|
+
'modified_by': string;
|
|
529
|
+
/**
|
|
530
|
+
* Name of the role
|
|
531
|
+
*/
|
|
532
|
+
'name': string;
|
|
533
|
+
/**
|
|
534
|
+
* Role configuration
|
|
535
|
+
*/
|
|
536
|
+
'config': object | null;
|
|
537
|
+
/**
|
|
538
|
+
* Whether the role is active
|
|
539
|
+
*/
|
|
540
|
+
'is_active': boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Whether this is the default role
|
|
543
|
+
*/
|
|
544
|
+
'is_default': boolean;
|
|
545
|
+
'auth_config': RoleAuthConfig;
|
|
546
|
+
/**
|
|
547
|
+
* List of policy IDs assigned to this role
|
|
548
|
+
*/
|
|
549
|
+
'policies': Array<number>;
|
|
550
|
+
/**
|
|
551
|
+
* List of policy group IDs assigned to this role
|
|
552
|
+
*/
|
|
553
|
+
'policy_groups': Array<number>;
|
|
554
|
+
}
|
|
555
|
+
export interface RoleAuthConfig {
|
|
556
|
+
/**
|
|
557
|
+
* URL to redirect after authentication
|
|
558
|
+
*/
|
|
559
|
+
'redirect_url': string;
|
|
560
|
+
}
|
|
561
|
+
export interface RoleSelectionMetadata {
|
|
562
|
+
'roles': Array<RoleSelectionMetadataRolesInner>;
|
|
563
|
+
}
|
|
564
|
+
export interface RoleSelectionMetadataRolesInner {
|
|
565
|
+
/**
|
|
566
|
+
* Unique identifier for the role
|
|
567
|
+
*/
|
|
568
|
+
'id': number;
|
|
569
|
+
/**
|
|
570
|
+
* Display name of the role
|
|
571
|
+
*/
|
|
572
|
+
'name': string;
|
|
573
|
+
}
|
|
574
|
+
export interface RoleStep {
|
|
575
|
+
'type'?: Array<RoleStepTypeInner>;
|
|
576
|
+
}
|
|
577
|
+
export interface RoleStepTypeInner {
|
|
578
|
+
'id'?: number;
|
|
579
|
+
'name'?: string;
|
|
580
|
+
}
|
|
581
|
+
export interface SessionPolicy {
|
|
582
|
+
/**
|
|
583
|
+
* Maximum number of concurrent sessions allowed (0 for unlimited)
|
|
584
|
+
*/
|
|
585
|
+
'max_concurrent_sessions': number;
|
|
586
|
+
/**
|
|
587
|
+
* Indicates if users are forced to log out on password change
|
|
588
|
+
*/
|
|
589
|
+
'force_logout_on_password_change': boolean;
|
|
590
|
+
/**
|
|
591
|
+
* Session timeout in minutes (0 for no timeout)
|
|
592
|
+
*/
|
|
593
|
+
'session_timeout_minutes'?: number;
|
|
594
|
+
/**
|
|
595
|
+
* Indicates if remember me functionality is enabled
|
|
596
|
+
*/
|
|
597
|
+
'remember_me_enabled'?: boolean;
|
|
598
|
+
/**
|
|
599
|
+
* Remember me duration in days
|
|
600
|
+
*/
|
|
601
|
+
'remember_me_duration_days'?: number;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* @type SetPassword200Response
|
|
605
|
+
*/
|
|
606
|
+
export type SetPassword200Response = AuthStepRequiredResponse | LoginSuccessResponse;
|
|
607
|
+
export interface SetPasswordMetadata {
|
|
608
|
+
'reset': PasswordResetPolicy;
|
|
609
|
+
/**
|
|
610
|
+
* Minimum length required for passwords
|
|
611
|
+
*/
|
|
612
|
+
'min_length': number;
|
|
613
|
+
/**
|
|
614
|
+
* Indicates if users are allowed to change their password
|
|
615
|
+
*/
|
|
616
|
+
'allow_change': boolean;
|
|
617
|
+
/**
|
|
618
|
+
* Indicates if passwords must contain numbers
|
|
619
|
+
*/
|
|
620
|
+
'require_numbers': boolean;
|
|
621
|
+
/**
|
|
622
|
+
* Indicates if passwords must contain lowercase characters
|
|
623
|
+
*/
|
|
624
|
+
'require_lowercase': boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Indicates if passwords must contain uppercase characters
|
|
627
|
+
*/
|
|
628
|
+
'require_uppercase': boolean;
|
|
629
|
+
/**
|
|
630
|
+
* Number of days after which passwords expire (0 for no expiry)
|
|
631
|
+
*/
|
|
632
|
+
'password_expiry_days': number;
|
|
633
|
+
/**
|
|
634
|
+
* Indicates if passwords must contain special characters
|
|
635
|
+
*/
|
|
636
|
+
'require_special_chars': boolean;
|
|
637
|
+
/**
|
|
638
|
+
* Number of past passwords that cannot be reused
|
|
639
|
+
*/
|
|
640
|
+
'password_history_count': number;
|
|
641
|
+
/**
|
|
642
|
+
* Maximum length allowed for passwords
|
|
643
|
+
*/
|
|
644
|
+
'max_length'?: number;
|
|
645
|
+
/**
|
|
646
|
+
* Number of failed attempts before account lockout (0 for no lockout)
|
|
647
|
+
*/
|
|
648
|
+
'lockout_attempts'?: number;
|
|
649
|
+
/**
|
|
650
|
+
* Duration of account lockout in minutes
|
|
651
|
+
*/
|
|
652
|
+
'lockout_duration_minutes'?: number;
|
|
653
|
+
}
|
|
654
|
+
export interface SetPasswordStep {
|
|
655
|
+
'passwordPolicy'?: PasswordPolicy;
|
|
656
|
+
}
|
|
657
|
+
export interface SuccessResponse {
|
|
658
|
+
/**
|
|
659
|
+
* Indicates if the request was successful
|
|
660
|
+
*/
|
|
661
|
+
'success': boolean;
|
|
662
|
+
/**
|
|
663
|
+
* HTTP status code
|
|
664
|
+
*/
|
|
665
|
+
'status'?: number;
|
|
666
|
+
/**
|
|
667
|
+
* Success message
|
|
668
|
+
*/
|
|
669
|
+
'message'?: string;
|
|
670
|
+
}
|
|
671
|
+
export interface Token {
|
|
672
|
+
/**
|
|
673
|
+
* Role associated with the token
|
|
674
|
+
*/
|
|
675
|
+
'role': string;
|
|
676
|
+
/**
|
|
677
|
+
* Token creation timestamp
|
|
678
|
+
*/
|
|
679
|
+
'created': string;
|
|
680
|
+
/**
|
|
681
|
+
* Token expiry timestamp
|
|
682
|
+
*/
|
|
683
|
+
'expiry': string;
|
|
684
|
+
}
|
|
685
|
+
export interface TwoFactorAuth {
|
|
686
|
+
/**
|
|
687
|
+
* Indicates if two-factor authentication is required
|
|
688
|
+
*/
|
|
689
|
+
'required': boolean;
|
|
690
|
+
/**
|
|
691
|
+
* List of allowed two-factor authentication methods
|
|
692
|
+
*/
|
|
693
|
+
'allowedMethods': Array<TwoFactorAuthAllowedMethodsEnum>;
|
|
694
|
+
/**
|
|
695
|
+
* The URL endpoint for triggering email-based two-factor authentication
|
|
696
|
+
*/
|
|
697
|
+
'email_hook'?: string;
|
|
698
|
+
/**
|
|
699
|
+
* The URL endpoint for triggering SMS-based two-factor authentication
|
|
700
|
+
*/
|
|
701
|
+
'sms_hook'?: string;
|
|
702
|
+
}
|
|
703
|
+
export declare const TwoFactorAuthAllowedMethodsEnum: {
|
|
704
|
+
readonly Sms: "sms";
|
|
705
|
+
readonly Email: "email";
|
|
706
|
+
readonly Totp: "totp";
|
|
707
|
+
};
|
|
708
|
+
export type TwoFactorAuthAllowedMethodsEnum = typeof TwoFactorAuthAllowedMethodsEnum[keyof typeof TwoFactorAuthAllowedMethodsEnum];
|
|
709
|
+
export interface UpdateConfigResponse {
|
|
710
|
+
/**
|
|
711
|
+
* Indicates if the request was successful
|
|
712
|
+
*/
|
|
713
|
+
'success': boolean;
|
|
714
|
+
/**
|
|
715
|
+
* HTTP status code
|
|
716
|
+
*/
|
|
717
|
+
'status'?: number;
|
|
718
|
+
'auth_config'?: AuthConfig;
|
|
719
|
+
}
|
|
720
|
+
export interface UpdateProfileResponse {
|
|
721
|
+
/**
|
|
722
|
+
* Indicates if the request was successful
|
|
723
|
+
*/
|
|
724
|
+
'success': boolean;
|
|
725
|
+
/**
|
|
726
|
+
* HTTP status code
|
|
727
|
+
*/
|
|
728
|
+
'status'?: number;
|
|
729
|
+
'response'?: UpdateProfileResponseAllOfResponse;
|
|
730
|
+
}
|
|
731
|
+
export interface UpdateProfileResponseAllOfResponse {
|
|
732
|
+
/**
|
|
733
|
+
* Indicates if the profile update was successful
|
|
734
|
+
*/
|
|
735
|
+
'success': boolean;
|
|
736
|
+
/**
|
|
737
|
+
* Response message
|
|
738
|
+
*/
|
|
739
|
+
'message': string;
|
|
740
|
+
}
|
|
741
|
+
export interface User {
|
|
742
|
+
/**
|
|
743
|
+
* Unique user identifier
|
|
744
|
+
*/
|
|
745
|
+
'id': number;
|
|
746
|
+
/**
|
|
747
|
+
* Display name for the user
|
|
748
|
+
*/
|
|
749
|
+
'display': string;
|
|
750
|
+
/**
|
|
751
|
+
* User\'s email address
|
|
752
|
+
*/
|
|
753
|
+
'email': string;
|
|
754
|
+
/**
|
|
755
|
+
* Whether the user has a usable password set
|
|
756
|
+
*/
|
|
757
|
+
'has_usable_password': boolean;
|
|
758
|
+
/**
|
|
759
|
+
* Username for the user
|
|
760
|
+
*/
|
|
761
|
+
'username': string;
|
|
762
|
+
/**
|
|
763
|
+
* User\'s phone number
|
|
764
|
+
*/
|
|
765
|
+
'phone'?: string;
|
|
766
|
+
/**
|
|
767
|
+
* User\'s first name
|
|
768
|
+
*/
|
|
769
|
+
'first_name'?: string;
|
|
770
|
+
/**
|
|
771
|
+
* User\'s last name
|
|
772
|
+
*/
|
|
773
|
+
'last_name'?: string;
|
|
774
|
+
/**
|
|
775
|
+
* Whether the user account is active
|
|
776
|
+
*/
|
|
777
|
+
'is_active'?: boolean;
|
|
778
|
+
/**
|
|
779
|
+
* Timestamp of last login
|
|
780
|
+
*/
|
|
781
|
+
'last_login'?: string;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* ApplicationConfigurationApi - axios parameter creator
|
|
785
|
+
*/
|
|
786
|
+
export declare const ApplicationConfigurationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
787
|
+
/**
|
|
788
|
+
* Retrieve authentication configuration for the application
|
|
789
|
+
* @summary Get application auth configuration
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
getAppAuthConfig: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
794
|
+
/**
|
|
795
|
+
* Update authentication configuration for the application
|
|
796
|
+
* @summary Update application auth configuration
|
|
797
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
798
|
+
* @param {string} authConfig JSON string containing authentication configuration
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
updateAppAuthConfig: (xCSRFToken: string, authConfig: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
803
|
+
};
|
|
804
|
+
/**
|
|
805
|
+
* ApplicationConfigurationApi - functional programming interface
|
|
806
|
+
*/
|
|
807
|
+
export declare const ApplicationConfigurationApiFp: (configuration?: Configuration) => {
|
|
808
|
+
/**
|
|
809
|
+
* Retrieve authentication configuration for the application
|
|
810
|
+
* @summary Get application auth configuration
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
getAppAuthConfig(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthConfigResponse>>;
|
|
815
|
+
/**
|
|
816
|
+
* Update authentication configuration for the application
|
|
817
|
+
* @summary Update application auth configuration
|
|
818
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
819
|
+
* @param {string} authConfig JSON string containing authentication configuration
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @throws {RequiredError}
|
|
822
|
+
*/
|
|
823
|
+
updateAppAuthConfig(xCSRFToken: string, authConfig: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateConfigResponse>>;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* ApplicationConfigurationApi - factory interface
|
|
827
|
+
*/
|
|
828
|
+
export declare const ApplicationConfigurationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
829
|
+
/**
|
|
830
|
+
* Retrieve authentication configuration for the application
|
|
831
|
+
* @summary Get application auth configuration
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
getAppAuthConfig(options?: RawAxiosRequestConfig): AxiosPromise<AuthConfigResponse>;
|
|
836
|
+
/**
|
|
837
|
+
* Update authentication configuration for the application
|
|
838
|
+
* @summary Update application auth configuration
|
|
839
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
840
|
+
* @param {string} authConfig JSON string containing authentication configuration
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
updateAppAuthConfig(xCSRFToken: string, authConfig: string, options?: RawAxiosRequestConfig): AxiosPromise<UpdateConfigResponse>;
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* ApplicationConfigurationApi - object-oriented interface
|
|
848
|
+
*/
|
|
849
|
+
export declare class ApplicationConfigurationApi extends BaseAPI {
|
|
850
|
+
/**
|
|
851
|
+
* Retrieve authentication configuration for the application
|
|
852
|
+
* @summary Get application auth configuration
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
getAppAuthConfig(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<AuthConfigResponse, any, {}, any>>;
|
|
857
|
+
/**
|
|
858
|
+
* Update authentication configuration for the application
|
|
859
|
+
* @summary Update application auth configuration
|
|
860
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
861
|
+
* @param {string} authConfig JSON string containing authentication configuration
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
updateAppAuthConfig(xCSRFToken: string, authConfig: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<UpdateConfigResponse, any, {}, any>>;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* AuthenticationApi - axios parameter creator
|
|
869
|
+
*/
|
|
870
|
+
export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
871
|
+
/**
|
|
872
|
+
* Authenticate user with email/phone and password
|
|
873
|
+
* @summary User login
|
|
874
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
875
|
+
* @param {LoginUserRequest} loginUserRequest
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
loginUser: (xCSRFToken: string, loginUserRequest: LoginUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
880
|
+
/**
|
|
881
|
+
* Logout user and invalidate session
|
|
882
|
+
* @summary User logout
|
|
883
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
logoutUser: (xCSRFToken: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* AuthenticationApi - functional programming interface
|
|
891
|
+
*/
|
|
892
|
+
export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
893
|
+
/**
|
|
894
|
+
* Authenticate user with email/phone and password
|
|
895
|
+
* @summary User login
|
|
896
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
897
|
+
* @param {LoginUserRequest} loginUserRequest
|
|
898
|
+
* @param {*} [options] Override http request option.
|
|
899
|
+
* @throws {RequiredError}
|
|
900
|
+
*/
|
|
901
|
+
loginUser(xCSRFToken: string, loginUserRequest: LoginUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginSuccessResponse>>;
|
|
902
|
+
/**
|
|
903
|
+
* Logout user and invalidate session
|
|
904
|
+
* @summary User logout
|
|
905
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
logoutUser(xCSRFToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* AuthenticationApi - factory interface
|
|
913
|
+
*/
|
|
914
|
+
export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
915
|
+
/**
|
|
916
|
+
* Authenticate user with email/phone and password
|
|
917
|
+
* @summary User login
|
|
918
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
919
|
+
* @param {LoginUserRequest} loginUserRequest
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
loginUser(xCSRFToken: string, loginUserRequest: LoginUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginSuccessResponse>;
|
|
924
|
+
/**
|
|
925
|
+
* Logout user and invalidate session
|
|
926
|
+
* @summary User logout
|
|
927
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
logoutUser(xCSRFToken: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
* AuthenticationApi - object-oriented interface
|
|
935
|
+
*/
|
|
936
|
+
export declare class AuthenticationApi extends BaseAPI {
|
|
937
|
+
/**
|
|
938
|
+
* Authenticate user with email/phone and password
|
|
939
|
+
* @summary User login
|
|
940
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
941
|
+
* @param {LoginUserRequest} loginUserRequest
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
loginUser(xCSRFToken: string, loginUserRequest: LoginUserRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<LoginSuccessResponse, any, {}, any>>;
|
|
946
|
+
/**
|
|
947
|
+
* Logout user and invalidate session
|
|
948
|
+
* @summary User logout
|
|
949
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
logoutUser(xCSRFToken: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any, {}, any>>;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* LoginWithOTPApi - axios parameter creator
|
|
957
|
+
*/
|
|
958
|
+
export declare const LoginWithOTPApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
959
|
+
/**
|
|
960
|
+
* Request OTP for login via email or phone
|
|
961
|
+
* @summary Request login OTP
|
|
962
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
963
|
+
* @param {LoginOTPRequest | null} loginOTPRequest
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
requestLoginOTP: (xCSRFToken: string, loginOTPRequest: LoginOTPRequest | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
968
|
+
/**
|
|
969
|
+
* Verify OTP for login and authenticate user
|
|
970
|
+
* @summary Verify login OTP
|
|
971
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
972
|
+
* @param {LoginOTPVerifyRequest} loginOTPVerifyRequest
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
verifyLoginOTP: (xCSRFToken: string, loginOTPVerifyRequest: LoginOTPVerifyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
977
|
+
};
|
|
978
|
+
/**
|
|
979
|
+
* LoginWithOTPApi - functional programming interface
|
|
980
|
+
*/
|
|
981
|
+
export declare const LoginWithOTPApiFp: (configuration?: Configuration) => {
|
|
982
|
+
/**
|
|
983
|
+
* Request OTP for login via email or phone
|
|
984
|
+
* @summary Request login OTP
|
|
985
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
986
|
+
* @param {LoginOTPRequest | null} loginOTPRequest
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
requestLoginOTP(xCSRFToken: string, loginOTPRequest: LoginOTPRequest | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
991
|
+
/**
|
|
992
|
+
* Verify OTP for login and authenticate user
|
|
993
|
+
* @summary Verify login OTP
|
|
994
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
995
|
+
* @param {LoginOTPVerifyRequest} loginOTPVerifyRequest
|
|
996
|
+
* @param {*} [options] Override http request option.
|
|
997
|
+
* @throws {RequiredError}
|
|
998
|
+
*/
|
|
999
|
+
verifyLoginOTP(xCSRFToken: string, loginOTPVerifyRequest: LoginOTPVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginSuccessResponse>>;
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
* LoginWithOTPApi - factory interface
|
|
1003
|
+
*/
|
|
1004
|
+
export declare const LoginWithOTPApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1005
|
+
/**
|
|
1006
|
+
* Request OTP for login via email or phone
|
|
1007
|
+
* @summary Request login OTP
|
|
1008
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1009
|
+
* @param {LoginOTPRequest | null} loginOTPRequest
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
requestLoginOTP(xCSRFToken: string, loginOTPRequest: LoginOTPRequest | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Verify OTP for login and authenticate user
|
|
1016
|
+
* @summary Verify login OTP
|
|
1017
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1018
|
+
* @param {LoginOTPVerifyRequest} loginOTPVerifyRequest
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
*/
|
|
1022
|
+
verifyLoginOTP(xCSRFToken: string, loginOTPVerifyRequest: LoginOTPVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginSuccessResponse>;
|
|
1023
|
+
};
|
|
1024
|
+
/**
|
|
1025
|
+
* LoginWithOTPApi - object-oriented interface
|
|
1026
|
+
*/
|
|
1027
|
+
export declare class LoginWithOTPApi extends BaseAPI {
|
|
1028
|
+
/**
|
|
1029
|
+
* Request OTP for login via email or phone
|
|
1030
|
+
* @summary Request login OTP
|
|
1031
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1032
|
+
* @param {LoginOTPRequest | null} loginOTPRequest
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
*/
|
|
1036
|
+
requestLoginOTP(xCSRFToken: string, loginOTPRequest: LoginOTPRequest | null, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any, {}, any>>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Verify OTP for login and authenticate user
|
|
1039
|
+
* @summary Verify login OTP
|
|
1040
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1041
|
+
* @param {LoginOTPVerifyRequest} loginOTPVerifyRequest
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
verifyLoginOTP(xCSRFToken: string, loginOTPVerifyRequest: LoginOTPVerifyRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<LoginSuccessResponse, any, {}, any>>;
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* MultiFactorAuthenticationApi - axios parameter creator
|
|
1049
|
+
*/
|
|
1050
|
+
export declare const MultiFactorAuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1051
|
+
/**
|
|
1052
|
+
* Generate and send MFA code for two-factor authentication
|
|
1053
|
+
* @summary Get MFA code
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
*/
|
|
1057
|
+
getMfaCode: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Verify the provided MFA code
|
|
1060
|
+
* @summary Verify MFA code
|
|
1061
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1062
|
+
* @param {MfaVerifyRequest} mfaVerifyRequest
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
verifyMfaCode: (xCSRFToken: string, mfaVerifyRequest: MfaVerifyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* MultiFactorAuthenticationApi - functional programming interface
|
|
1070
|
+
*/
|
|
1071
|
+
export declare const MultiFactorAuthenticationApiFp: (configuration?: Configuration) => {
|
|
1072
|
+
/**
|
|
1073
|
+
* Generate and send MFA code for two-factor authentication
|
|
1074
|
+
* @summary Get MFA code
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
getMfaCode(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMfaCodeResponse>>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Verify the provided MFA code
|
|
1081
|
+
* @summary Verify MFA code
|
|
1082
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1083
|
+
* @param {MfaVerifyRequest} mfaVerifyRequest
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
verifyMfaCode(xCSRFToken: string, mfaVerifyRequest: MfaVerifyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginSuccessResponse>>;
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* MultiFactorAuthenticationApi - factory interface
|
|
1091
|
+
*/
|
|
1092
|
+
export declare const MultiFactorAuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1093
|
+
/**
|
|
1094
|
+
* Generate and send MFA code for two-factor authentication
|
|
1095
|
+
* @summary Get MFA code
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
getMfaCode(options?: RawAxiosRequestConfig): AxiosPromise<GetMfaCodeResponse>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Verify the provided MFA code
|
|
1102
|
+
* @summary Verify MFA code
|
|
1103
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1104
|
+
* @param {MfaVerifyRequest} mfaVerifyRequest
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
verifyMfaCode(xCSRFToken: string, mfaVerifyRequest: MfaVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginSuccessResponse>;
|
|
1109
|
+
};
|
|
1110
|
+
/**
|
|
1111
|
+
* MultiFactorAuthenticationApi - object-oriented interface
|
|
1112
|
+
*/
|
|
1113
|
+
export declare class MultiFactorAuthenticationApi extends BaseAPI {
|
|
1114
|
+
/**
|
|
1115
|
+
* Generate and send MFA code for two-factor authentication
|
|
1116
|
+
* @summary Get MFA code
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
*/
|
|
1120
|
+
getMfaCode(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<GetMfaCodeResponse, any, {}, any>>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Verify the provided MFA code
|
|
1123
|
+
* @summary Verify MFA code
|
|
1124
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1125
|
+
* @param {MfaVerifyRequest} mfaVerifyRequest
|
|
1126
|
+
* @param {*} [options] Override http request option.
|
|
1127
|
+
* @throws {RequiredError}
|
|
1128
|
+
*/
|
|
1129
|
+
verifyMfaCode(xCSRFToken: string, mfaVerifyRequest: MfaVerifyRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<LoginSuccessResponse, any, {}, any>>;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* OAuthApi - axios parameter creator
|
|
1133
|
+
*/
|
|
1134
|
+
export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1135
|
+
/**
|
|
1136
|
+
* Handles OAuth callback for a specified provider (google or microsoft).
|
|
1137
|
+
* @summary OAuth callback for provider
|
|
1138
|
+
* @param {OauthCallbackProviderEnum} provider OAuth provider
|
|
1139
|
+
* @param {string} state
|
|
1140
|
+
* @param {string} code
|
|
1141
|
+
* @param {string} scope
|
|
1142
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1143
|
+
* @param {string} [authuser]
|
|
1144
|
+
* @param {string} [hd]
|
|
1145
|
+
* @param {string} [prompt]
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
oauthCallback: (provider: OauthCallbackProviderEnum, state: string, code: string, scope: string, xCSRFToken: string, authuser?: string, hd?: string, prompt?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Initiates an authentication process with a selected provider.
|
|
1152
|
+
* @summary OAuth provider redirect
|
|
1153
|
+
* @param {string} xCsrftoken CSRF token for security
|
|
1154
|
+
* @param {OauthRedirectProviderEnum} provider The OAuth provider to use for authentication
|
|
1155
|
+
* @param {OauthRedirectProcessEnum} process The type of process to initiate
|
|
1156
|
+
* @param {string} callbackUrl The URL to redirect to after OAuth completion
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
*/
|
|
1160
|
+
oauthRedirect: (xCsrftoken: string, provider: OauthRedirectProviderEnum, process: OauthRedirectProcessEnum, callbackUrl: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1161
|
+
};
|
|
1162
|
+
/**
|
|
1163
|
+
* OAuthApi - functional programming interface
|
|
1164
|
+
*/
|
|
1165
|
+
export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
1166
|
+
/**
|
|
1167
|
+
* Handles OAuth callback for a specified provider (google or microsoft).
|
|
1168
|
+
* @summary OAuth callback for provider
|
|
1169
|
+
* @param {OauthCallbackProviderEnum} provider OAuth provider
|
|
1170
|
+
* @param {string} state
|
|
1171
|
+
* @param {string} code
|
|
1172
|
+
* @param {string} scope
|
|
1173
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1174
|
+
* @param {string} [authuser]
|
|
1175
|
+
* @param {string} [hd]
|
|
1176
|
+
* @param {string} [prompt]
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
*/
|
|
1180
|
+
oauthCallback(provider: OauthCallbackProviderEnum, state: string, code: string, scope: string, xCSRFToken: string, authuser?: string, hd?: string, prompt?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginSuccessResponse>>;
|
|
1181
|
+
/**
|
|
1182
|
+
* Initiates an authentication process with a selected provider.
|
|
1183
|
+
* @summary OAuth provider redirect
|
|
1184
|
+
* @param {string} xCsrftoken CSRF token for security
|
|
1185
|
+
* @param {OauthRedirectProviderEnum} provider The OAuth provider to use for authentication
|
|
1186
|
+
* @param {OauthRedirectProcessEnum} process The type of process to initiate
|
|
1187
|
+
* @param {string} callbackUrl The URL to redirect to after OAuth completion
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
*/
|
|
1191
|
+
oauthRedirect(xCsrftoken: string, provider: OauthRedirectProviderEnum, process: OauthRedirectProcessEnum, callbackUrl: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthRedirectResponse>>;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* OAuthApi - factory interface
|
|
1195
|
+
*/
|
|
1196
|
+
export declare const OAuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1197
|
+
/**
|
|
1198
|
+
* Handles OAuth callback for a specified provider (google or microsoft).
|
|
1199
|
+
* @summary OAuth callback for provider
|
|
1200
|
+
* @param {OauthCallbackProviderEnum} provider OAuth provider
|
|
1201
|
+
* @param {string} state
|
|
1202
|
+
* @param {string} code
|
|
1203
|
+
* @param {string} scope
|
|
1204
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1205
|
+
* @param {string} [authuser]
|
|
1206
|
+
* @param {string} [hd]
|
|
1207
|
+
* @param {string} [prompt]
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
oauthCallback(provider: OauthCallbackProviderEnum, state: string, code: string, scope: string, xCSRFToken: string, authuser?: string, hd?: string, prompt?: string, options?: RawAxiosRequestConfig): AxiosPromise<LoginSuccessResponse>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Initiates an authentication process with a selected provider.
|
|
1214
|
+
* @summary OAuth provider redirect
|
|
1215
|
+
* @param {string} xCsrftoken CSRF token for security
|
|
1216
|
+
* @param {OauthRedirectProviderEnum} provider The OAuth provider to use for authentication
|
|
1217
|
+
* @param {OauthRedirectProcessEnum} process The type of process to initiate
|
|
1218
|
+
* @param {string} callbackUrl The URL to redirect to after OAuth completion
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
oauthRedirect(xCsrftoken: string, provider: OauthRedirectProviderEnum, process: OauthRedirectProcessEnum, callbackUrl: string, options?: RawAxiosRequestConfig): AxiosPromise<OAuthRedirectResponse>;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* OAuthApi - object-oriented interface
|
|
1226
|
+
*/
|
|
1227
|
+
export declare class OAuthApi extends BaseAPI {
|
|
1228
|
+
/**
|
|
1229
|
+
* Handles OAuth callback for a specified provider (google or microsoft).
|
|
1230
|
+
* @summary OAuth callback for provider
|
|
1231
|
+
* @param {OauthCallbackProviderEnum} provider OAuth provider
|
|
1232
|
+
* @param {string} state
|
|
1233
|
+
* @param {string} code
|
|
1234
|
+
* @param {string} scope
|
|
1235
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1236
|
+
* @param {string} [authuser]
|
|
1237
|
+
* @param {string} [hd]
|
|
1238
|
+
* @param {string} [prompt]
|
|
1239
|
+
* @param {*} [options] Override http request option.
|
|
1240
|
+
* @throws {RequiredError}
|
|
1241
|
+
*/
|
|
1242
|
+
oauthCallback(provider: OauthCallbackProviderEnum, state: string, code: string, scope: string, xCSRFToken: string, authuser?: string, hd?: string, prompt?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<LoginSuccessResponse, any, {}, any>>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Initiates an authentication process with a selected provider.
|
|
1245
|
+
* @summary OAuth provider redirect
|
|
1246
|
+
* @param {string} xCsrftoken CSRF token for security
|
|
1247
|
+
* @param {OauthRedirectProviderEnum} provider The OAuth provider to use for authentication
|
|
1248
|
+
* @param {OauthRedirectProcessEnum} process The type of process to initiate
|
|
1249
|
+
* @param {string} callbackUrl The URL to redirect to after OAuth completion
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
oauthRedirect(xCsrftoken: string, provider: OauthRedirectProviderEnum, process: OauthRedirectProcessEnum, callbackUrl: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<OAuthRedirectResponse, any, {}, any>>;
|
|
1254
|
+
}
|
|
1255
|
+
export declare const OauthCallbackProviderEnum: {
|
|
1256
|
+
readonly Google: "google";
|
|
1257
|
+
readonly Microsoft: "microsoft";
|
|
1258
|
+
};
|
|
1259
|
+
export type OauthCallbackProviderEnum = typeof OauthCallbackProviderEnum[keyof typeof OauthCallbackProviderEnum];
|
|
1260
|
+
export declare const OauthRedirectProviderEnum: {
|
|
1261
|
+
readonly Google: "google";
|
|
1262
|
+
readonly Microsoft: "microsoft";
|
|
1263
|
+
};
|
|
1264
|
+
export type OauthRedirectProviderEnum = typeof OauthRedirectProviderEnum[keyof typeof OauthRedirectProviderEnum];
|
|
1265
|
+
export declare const OauthRedirectProcessEnum: {
|
|
1266
|
+
readonly Login: "login";
|
|
1267
|
+
readonly Connect: "connect";
|
|
1268
|
+
};
|
|
1269
|
+
export type OauthRedirectProcessEnum = typeof OauthRedirectProcessEnum[keyof typeof OauthRedirectProcessEnum];
|
|
1270
|
+
/**
|
|
1271
|
+
* PasswordManagementApi - axios parameter creator
|
|
1272
|
+
*/
|
|
1273
|
+
export declare const PasswordManagementApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1274
|
+
/**
|
|
1275
|
+
* Change the current user\'s password
|
|
1276
|
+
* @summary Change user password
|
|
1277
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1278
|
+
* @param {PasswordChangeRequest} passwordChangeRequest
|
|
1279
|
+
* @param {*} [options] Override http request option.
|
|
1280
|
+
* @throws {RequiredError}
|
|
1281
|
+
*/
|
|
1282
|
+
changePassword: (xCSRFToken: string, passwordChangeRequest: PasswordChangeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1283
|
+
/**
|
|
1284
|
+
* Set the current user\'s password
|
|
1285
|
+
* @summary set user password
|
|
1286
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1287
|
+
* @param {PasswordSetRequest} passwordSetRequest
|
|
1288
|
+
* @param {*} [options] Override http request option.
|
|
1289
|
+
* @throws {RequiredError}
|
|
1290
|
+
*/
|
|
1291
|
+
setPassword: (xCSRFToken: string, passwordSetRequest: PasswordSetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1292
|
+
};
|
|
1293
|
+
/**
|
|
1294
|
+
* PasswordManagementApi - functional programming interface
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const PasswordManagementApiFp: (configuration?: Configuration) => {
|
|
1297
|
+
/**
|
|
1298
|
+
* Change the current user\'s password
|
|
1299
|
+
* @summary Change user password
|
|
1300
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1301
|
+
* @param {PasswordChangeRequest} passwordChangeRequest
|
|
1302
|
+
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @throws {RequiredError}
|
|
1304
|
+
*/
|
|
1305
|
+
changePassword(xCSRFToken: string, passwordChangeRequest: PasswordChangeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Set the current user\'s password
|
|
1308
|
+
* @summary set user password
|
|
1309
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1310
|
+
* @param {PasswordSetRequest} passwordSetRequest
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
*/
|
|
1314
|
+
setPassword(xCSRFToken: string, passwordSetRequest: PasswordSetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetPassword200Response>>;
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* PasswordManagementApi - factory interface
|
|
1318
|
+
*/
|
|
1319
|
+
export declare const PasswordManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1320
|
+
/**
|
|
1321
|
+
* Change the current user\'s password
|
|
1322
|
+
* @summary Change user password
|
|
1323
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1324
|
+
* @param {PasswordChangeRequest} passwordChangeRequest
|
|
1325
|
+
* @param {*} [options] Override http request option.
|
|
1326
|
+
* @throws {RequiredError}
|
|
1327
|
+
*/
|
|
1328
|
+
changePassword(xCSRFToken: string, passwordChangeRequest: PasswordChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Set the current user\'s password
|
|
1331
|
+
* @summary set user password
|
|
1332
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1333
|
+
* @param {PasswordSetRequest} passwordSetRequest
|
|
1334
|
+
* @param {*} [options] Override http request option.
|
|
1335
|
+
* @throws {RequiredError}
|
|
1336
|
+
*/
|
|
1337
|
+
setPassword(xCSRFToken: string, passwordSetRequest: PasswordSetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetPassword200Response>;
|
|
1338
|
+
};
|
|
1339
|
+
/**
|
|
1340
|
+
* PasswordManagementApi - object-oriented interface
|
|
1341
|
+
*/
|
|
1342
|
+
export declare class PasswordManagementApi extends BaseAPI {
|
|
1343
|
+
/**
|
|
1344
|
+
* Change the current user\'s password
|
|
1345
|
+
* @summary Change user password
|
|
1346
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1347
|
+
* @param {PasswordChangeRequest} passwordChangeRequest
|
|
1348
|
+
* @param {*} [options] Override http request option.
|
|
1349
|
+
* @throws {RequiredError}
|
|
1350
|
+
*/
|
|
1351
|
+
changePassword(xCSRFToken: string, passwordChangeRequest: PasswordChangeRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SuccessResponse, any, {}, any>>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Set the current user\'s password
|
|
1354
|
+
* @summary set user password
|
|
1355
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1356
|
+
* @param {PasswordSetRequest} passwordSetRequest
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
setPassword(xCSRFToken: string, passwordSetRequest: PasswordSetRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SetPassword200Response, any, {}, any>>;
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* RoleManagementApi - axios parameter creator
|
|
1364
|
+
*/
|
|
1365
|
+
export declare const RoleManagementApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1366
|
+
/**
|
|
1367
|
+
* Set the current user\'s active role
|
|
1368
|
+
* @summary Set user role
|
|
1369
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1370
|
+
* @param {string} role Role ID to set to
|
|
1371
|
+
* @param {*} [options] Override http request option.
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
*/
|
|
1374
|
+
setRole: (xCSRFToken: string, role: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Switch the current user\'s active role
|
|
1377
|
+
* @summary Switch user role
|
|
1378
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1379
|
+
* @param {string} role Role ID to switch to
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
*/
|
|
1383
|
+
switchRole: (xCSRFToken: string, role: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1384
|
+
};
|
|
1385
|
+
/**
|
|
1386
|
+
* RoleManagementApi - functional programming interface
|
|
1387
|
+
*/
|
|
1388
|
+
export declare const RoleManagementApiFp: (configuration?: Configuration) => {
|
|
1389
|
+
/**
|
|
1390
|
+
* Set the current user\'s active role
|
|
1391
|
+
* @summary Set user role
|
|
1392
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1393
|
+
* @param {string} role Role ID to set to
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
*/
|
|
1397
|
+
setRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginSuccessResponse>>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Switch the current user\'s active role
|
|
1400
|
+
* @summary Switch user role
|
|
1401
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1402
|
+
* @param {string} role Role ID to switch to
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
switchRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessResponse>>;
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* RoleManagementApi - factory interface
|
|
1410
|
+
*/
|
|
1411
|
+
export declare const RoleManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1412
|
+
/**
|
|
1413
|
+
* Set the current user\'s active role
|
|
1414
|
+
* @summary Set user role
|
|
1415
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1416
|
+
* @param {string} role Role ID to set to
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
setRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): AxiosPromise<LoginSuccessResponse>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Switch the current user\'s active role
|
|
1423
|
+
* @summary Switch user role
|
|
1424
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1425
|
+
* @param {string} role Role ID to switch to
|
|
1426
|
+
* @param {*} [options] Override http request option.
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
*/
|
|
1429
|
+
switchRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): AxiosPromise<SuccessResponse>;
|
|
1430
|
+
};
|
|
1431
|
+
/**
|
|
1432
|
+
* RoleManagementApi - object-oriented interface
|
|
1433
|
+
*/
|
|
1434
|
+
export declare class RoleManagementApi extends BaseAPI {
|
|
1435
|
+
/**
|
|
1436
|
+
* Set the current user\'s active role
|
|
1437
|
+
* @summary Set user role
|
|
1438
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1439
|
+
* @param {string} role Role ID to set to
|
|
1440
|
+
* @param {*} [options] Override http request option.
|
|
1441
|
+
* @throws {RequiredError}
|
|
1442
|
+
*/
|
|
1443
|
+
setRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<LoginSuccessResponse, any, {}, any>>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Switch the current user\'s active role
|
|
1446
|
+
* @summary Switch user role
|
|
1447
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1448
|
+
* @param {string} role Role ID to switch to
|
|
1449
|
+
* @param {*} [options] Override http request option.
|
|
1450
|
+
* @throws {RequiredError}
|
|
1451
|
+
*/
|
|
1452
|
+
switchRole(xCSRFToken: string, role: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<SuccessResponse, any, {}, any>>;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* SessionManagementApi - axios parameter creator
|
|
1456
|
+
*/
|
|
1457
|
+
export declare const SessionManagementApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1458
|
+
/**
|
|
1459
|
+
* Delete user sessions
|
|
1460
|
+
* @summary Delete user sessions
|
|
1461
|
+
* @param {DeleteSessionsRequest} deleteSessionsRequest
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
deleteSessions: (deleteSessionsRequest: DeleteSessionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1466
|
+
/**
|
|
1467
|
+
* List user sessions
|
|
1468
|
+
* @summary List user sessions
|
|
1469
|
+
* @param {*} [options] Override http request option.
|
|
1470
|
+
* @throws {RequiredError}
|
|
1471
|
+
*/
|
|
1472
|
+
listSessions: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1473
|
+
};
|
|
1474
|
+
/**
|
|
1475
|
+
* SessionManagementApi - functional programming interface
|
|
1476
|
+
*/
|
|
1477
|
+
export declare const SessionManagementApiFp: (configuration?: Configuration) => {
|
|
1478
|
+
/**
|
|
1479
|
+
* Delete user sessions
|
|
1480
|
+
* @summary Delete user sessions
|
|
1481
|
+
* @param {DeleteSessionsRequest} deleteSessionsRequest
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
deleteSessions(deleteSessionsRequest: DeleteSessionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1486
|
+
/**
|
|
1487
|
+
* List user sessions
|
|
1488
|
+
* @summary List user sessions
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
*/
|
|
1492
|
+
listSessions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSessions>>;
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* SessionManagementApi - factory interface
|
|
1496
|
+
*/
|
|
1497
|
+
export declare const SessionManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1498
|
+
/**
|
|
1499
|
+
* Delete user sessions
|
|
1500
|
+
* @summary Delete user sessions
|
|
1501
|
+
* @param {DeleteSessionsRequest} deleteSessionsRequest
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
deleteSessions(deleteSessionsRequest: DeleteSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1506
|
+
/**
|
|
1507
|
+
* List user sessions
|
|
1508
|
+
* @summary List user sessions
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
listSessions(options?: RawAxiosRequestConfig): AxiosPromise<ListSessions>;
|
|
1513
|
+
};
|
|
1514
|
+
/**
|
|
1515
|
+
* SessionManagementApi - object-oriented interface
|
|
1516
|
+
*/
|
|
1517
|
+
export declare class SessionManagementApi extends BaseAPI {
|
|
1518
|
+
/**
|
|
1519
|
+
* Delete user sessions
|
|
1520
|
+
* @summary Delete user sessions
|
|
1521
|
+
* @param {DeleteSessionsRequest} deleteSessionsRequest
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
deleteSessions(deleteSessionsRequest: DeleteSessionsRequest, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any, {}, any>>;
|
|
1526
|
+
/**
|
|
1527
|
+
* List user sessions
|
|
1528
|
+
* @summary List user sessions
|
|
1529
|
+
* @param {*} [options] Override http request option.
|
|
1530
|
+
* @throws {RequiredError}
|
|
1531
|
+
*/
|
|
1532
|
+
listSessions(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ListSessions, any, {}, any>>;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* UserProfileApi - axios parameter creator
|
|
1536
|
+
*/
|
|
1537
|
+
export declare const UserProfileApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1538
|
+
/**
|
|
1539
|
+
* Retrieve the authenticated user\'s profile information including roles and authentication configuration
|
|
1540
|
+
* @summary Get user profile
|
|
1541
|
+
* @param {*} [options] Override http request option.
|
|
1542
|
+
* @throws {RequiredError}
|
|
1543
|
+
*/
|
|
1544
|
+
getUserProfile: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Update the authenticated user\'s profile information including name, mobile number, authentication settings, and profile picture
|
|
1547
|
+
* @summary Update user profile
|
|
1548
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1549
|
+
* @param {string} [name] User\\\'s display name
|
|
1550
|
+
* @param {string} [mobile] User\\\'s mobile number with country code
|
|
1551
|
+
* @param {string} [authConfig] JSON string containing authentication configuration
|
|
1552
|
+
* @param {File} [profilePic] Profile picture file upload
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
updateUserProfile: (xCSRFToken: string, name?: string, mobile?: string, authConfig?: string, profilePic?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* UserProfileApi - functional programming interface
|
|
1560
|
+
*/
|
|
1561
|
+
export declare const UserProfileApiFp: (configuration?: Configuration) => {
|
|
1562
|
+
/**
|
|
1563
|
+
* Retrieve the authenticated user\'s profile information including roles and authentication configuration
|
|
1564
|
+
* @summary Get user profile
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
getUserProfile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileResponse>>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Update the authenticated user\'s profile information including name, mobile number, authentication settings, and profile picture
|
|
1571
|
+
* @summary Update user profile
|
|
1572
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1573
|
+
* @param {string} [name] User\\\'s display name
|
|
1574
|
+
* @param {string} [mobile] User\\\'s mobile number with country code
|
|
1575
|
+
* @param {string} [authConfig] JSON string containing authentication configuration
|
|
1576
|
+
* @param {File} [profilePic] Profile picture file upload
|
|
1577
|
+
* @param {*} [options] Override http request option.
|
|
1578
|
+
* @throws {RequiredError}
|
|
1579
|
+
*/
|
|
1580
|
+
updateUserProfile(xCSRFToken: string, name?: string, mobile?: string, authConfig?: string, profilePic?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProfileResponse>>;
|
|
1581
|
+
};
|
|
1582
|
+
/**
|
|
1583
|
+
* UserProfileApi - factory interface
|
|
1584
|
+
*/
|
|
1585
|
+
export declare const UserProfileApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1586
|
+
/**
|
|
1587
|
+
* Retrieve the authenticated user\'s profile information including roles and authentication configuration
|
|
1588
|
+
* @summary Get user profile
|
|
1589
|
+
* @param {*} [options] Override http request option.
|
|
1590
|
+
* @throws {RequiredError}
|
|
1591
|
+
*/
|
|
1592
|
+
getUserProfile(options?: RawAxiosRequestConfig): AxiosPromise<ProfileResponse>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Update the authenticated user\'s profile information including name, mobile number, authentication settings, and profile picture
|
|
1595
|
+
* @summary Update user profile
|
|
1596
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1597
|
+
* @param {string} [name] User\\\'s display name
|
|
1598
|
+
* @param {string} [mobile] User\\\'s mobile number with country code
|
|
1599
|
+
* @param {string} [authConfig] JSON string containing authentication configuration
|
|
1600
|
+
* @param {File} [profilePic] Profile picture file upload
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
*/
|
|
1604
|
+
updateUserProfile(xCSRFToken: string, name?: string, mobile?: string, authConfig?: string, profilePic?: File, options?: RawAxiosRequestConfig): AxiosPromise<UpdateProfileResponse>;
|
|
1605
|
+
};
|
|
1606
|
+
/**
|
|
1607
|
+
* UserProfileApi - object-oriented interface
|
|
1608
|
+
*/
|
|
1609
|
+
export declare class UserProfileApi extends BaseAPI {
|
|
1610
|
+
/**
|
|
1611
|
+
* Retrieve the authenticated user\'s profile information including roles and authentication configuration
|
|
1612
|
+
* @summary Get user profile
|
|
1613
|
+
* @param {*} [options] Override http request option.
|
|
1614
|
+
* @throws {RequiredError}
|
|
1615
|
+
*/
|
|
1616
|
+
getUserProfile(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<ProfileResponse, any, {}, any>>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Update the authenticated user\'s profile information including name, mobile number, authentication settings, and profile picture
|
|
1619
|
+
* @summary Update user profile
|
|
1620
|
+
* @param {string} xCSRFToken CSRF token for security
|
|
1621
|
+
* @param {string} [name] User\\\'s display name
|
|
1622
|
+
* @param {string} [mobile] User\\\'s mobile number with country code
|
|
1623
|
+
* @param {string} [authConfig] JSON string containing authentication configuration
|
|
1624
|
+
* @param {File} [profilePic] Profile picture file upload
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
updateUserProfile(xCSRFToken: string, name?: string, mobile?: string, authConfig?: string, profilePic?: File, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<UpdateProfileResponse, any, {}, any>>;
|
|
1629
|
+
}
|