@webitel/api-services 0.1.16 → 0.1.17
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/package.json +1 -1
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/users_users.getUsers.html +1 -1
- package/src/gen/_docs/html/functions/users_users.msw.getGetUserWarningsMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/users_users.msw.getGetUserWarningsResponseMock.html +1 -0
- package/src/gen/_docs/html/interfaces/_models_apiGetUserWarningsResponse.ApiGetUserWarningsResponse.html +2 -0
- package/src/gen/_docs/html/interfaces/_models_apiGetUserWarningsResponse.zod.ApiGetUserWarningsResponse.html +2 -0
- package/src/gen/_docs/html/interfaces/_models_apiLoginResponse.ApiLoginResponse.html +2 -3
- package/src/gen/_docs/html/interfaces/_models_apiLoginResponse.zod.ApiLoginResponse.html +2 -3
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_apiGetUserWarningsResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_apiGetUserWarningsResponse.zod.html +1 -0
- package/src/gen/_docs/html/modules/_models_index.zod.html +1 -1
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/users_users.html +1 -1
- package/src/gen/_docs/html/modules/users_users.msw.html +1 -1
- package/src/gen/_docs/html/modules/users_users.zod.html +1 -1
- package/src/gen/_docs/html/modules.html +1 -1
- package/src/gen/_docs/html/types/users_users.GetUserWarningsResult.html +1 -0
- package/src/gen/_docs/html/variables/auth_auth.zod.SignupResponse.html +1 -1
- package/src/gen/_docs/html/variables/users_users.zod.GetUserWarningsResponse.html +1 -0
- package/src/gen/_models/apiGetUserWarningsResponse.ts +11 -0
- package/src/gen/_models/apiGetUserWarningsResponse.zod.ts +11 -0
- package/src/gen/_models/apiLoginResponse.ts +0 -2
- package/src/gen/_models/apiLoginResponse.zod.ts +0 -2
- package/src/gen/_models/index.ts +1 -0
- package/src/gen/_models/index.zod.ts +1 -0
- package/src/gen/auth/auth.msw.ts +0 -59
- package/src/gen/auth/auth.zod.ts +0 -18
- package/src/gen/users/users.msw.ts +93 -0
- package/src/gen/users/users.ts +8 -0
- package/src/gen/users/users.zod.ts +21 -0
- package/types/gen/_models/apiGetUserWarningsResponse.d.ts +10 -0
- package/types/gen/_models/apiGetUserWarningsResponse.zod.d.ts +10 -0
- package/types/gen/_models/apiLoginResponse.d.ts +0 -2
- package/types/gen/_models/apiLoginResponse.zod.d.ts +0 -2
- package/types/gen/_models/index.zod.d.ts +1 -0
- package/types/gen/auth/auth.zod.d.ts +0 -10
- package/types/gen/users/users.d.ts +3 -1
- package/types/gen/users/users.msw.d.ts +3 -1
- package/types/gen/users/users.zod.d.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>GetUserWarningsResult | @webitel/api-services</title><meta name="description" content="Documentation for @webitel/api-services"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@webitel/api-services</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/users_users.html">users/users</a></li><li><a href="" aria-current="page">GetUserWarningsResult</a></li></ul><h1>Type Alias GetUserWarningsResult</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">GetUserWarningsResult</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AxiosResponse</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/_models_apiGetUserWarningsResponse.ApiGetUserWarningsResponse.html" class="tsd-signature-type tsd-kind-interface">ApiGetUserWarningsResponse</a><span class="tsd-signature-symbol">></span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@webitel/api-services</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SignupResponse | @webitel/api-services</title><meta name="description" content="Documentation for @webitel/api-services"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@webitel/api-services</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/auth_auth.zod.html">auth/auth.zod</a></li><li><a href="" aria-current="page">SignupResponse</a></li></ul><h1>Variable SignupResponse<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SignupResponse</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">authorization</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">accessToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">expiresIn</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">refreshToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">state</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">tokenType</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">warnings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodArray</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">detail</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">warningData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">passwordExpiry</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span>(...)<span class="tsd-signature-symbol">,</span> (...)<span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@webitel/api-services</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SignupResponse | @webitel/api-services</title><meta name="description" content="Documentation for @webitel/api-services"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@webitel/api-services</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/auth_auth.zod.html">auth/auth.zod</a></li><li><a href="" aria-current="page">SignupResponse</a></li></ul><h1>Variable SignupResponse<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SignupResponse</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">authorization</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">accessToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">expiresIn</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">refreshToken</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">state</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">tokenType</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@webitel/api-services</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>GetUserWarningsResponse | @webitel/api-services</title><meta name="description" content="Documentation for @webitel/api-services"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@webitel/api-services</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/users_users.zod.html">users/users.zod</a></li><li><a href="" aria-current="page">GetUserWarningsResponse</a></li></ul><h1>Variable GetUserWarningsResponse<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">GetUserWarningsResponse</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">warnings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodArray</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">detail</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">warningData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">passwordExpiry</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol"><</span>(...)<span class="tsd-signature-symbol">,</span> (...)<span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">$strip</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@webitel/api-services</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ApiUserWarning } from './apiUserWarning';
|
|
8
|
+
|
|
9
|
+
export interface ApiGetUserWarningsResponse {
|
|
10
|
+
warnings?: ApiUserWarning[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ApiUserWarning } from './apiUserWarning';
|
|
8
|
+
|
|
9
|
+
export interface ApiGetUserWarningsResponse {
|
|
10
|
+
warnings?: ApiUserWarning[];
|
|
11
|
+
}
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
import type { ApiAccessToken } from './apiAccessToken';
|
|
8
|
-
import type { ApiUserWarning } from './apiUserWarning';
|
|
9
8
|
|
|
10
9
|
export interface ApiLoginResponse {
|
|
11
10
|
authorization?: ApiAccessToken;
|
|
12
|
-
warnings?: ApiUserWarning[];
|
|
13
11
|
}
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
import type { ApiAccessToken } from './apiAccessToken';
|
|
8
|
-
import type { ApiUserWarning } from './apiUserWarning';
|
|
9
8
|
|
|
10
9
|
export interface ApiLoginResponse {
|
|
11
10
|
authorization?: ApiAccessToken;
|
|
12
|
-
warnings?: ApiUserWarning[];
|
|
13
11
|
}
|
package/src/gen/_models/index.ts
CHANGED
|
@@ -55,6 +55,7 @@ export * from './apiGetCustomerResponse';
|
|
|
55
55
|
export * from './apiGetPasswordSettingsResponse';
|
|
56
56
|
export * from './apiGetPasswordSettingsResponseSettings';
|
|
57
57
|
export * from './apiGetUserTfaKeyResponse';
|
|
58
|
+
export * from './apiGetUserWarningsResponse';
|
|
58
59
|
export * from './apiGrantAccessRequestV1';
|
|
59
60
|
export * from './apiLDAPCatalog';
|
|
60
61
|
export * from './apiLDAPCatalogTLSConfig';
|
|
@@ -55,6 +55,7 @@ export * from './apiGetCustomerResponse.zod';
|
|
|
55
55
|
export * from './apiGetPasswordSettingsResponse.zod';
|
|
56
56
|
export * from './apiGetPasswordSettingsResponseSettings.zod';
|
|
57
57
|
export * from './apiGetUserTfaKeyResponse.zod';
|
|
58
|
+
export * from './apiGetUserWarningsResponse.zod';
|
|
58
59
|
export * from './apiGrantAccessRequestV1.zod';
|
|
59
60
|
export * from './apiLDAPCatalog.zod';
|
|
60
61
|
export * from './apiLDAPCatalogTLSConfig.zod';
|
package/src/gen/auth/auth.msw.ts
CHANGED
|
@@ -58,65 +58,6 @@ export const getSignupResponseMock = (
|
|
|
58
58
|
},
|
|
59
59
|
undefined,
|
|
60
60
|
]),
|
|
61
|
-
warnings: faker.helpers.arrayElement([
|
|
62
|
-
Array.from(
|
|
63
|
-
{
|
|
64
|
-
length: faker.number.int({
|
|
65
|
-
min: 1,
|
|
66
|
-
max: 10,
|
|
67
|
-
}),
|
|
68
|
-
},
|
|
69
|
-
(_, i) => i + 1,
|
|
70
|
-
).map(() => ({
|
|
71
|
-
detail: faker.helpers.arrayElement([
|
|
72
|
-
faker.string.alpha({
|
|
73
|
-
length: {
|
|
74
|
-
min: 10,
|
|
75
|
-
max: 20,
|
|
76
|
-
},
|
|
77
|
-
}),
|
|
78
|
-
undefined,
|
|
79
|
-
]),
|
|
80
|
-
id: faker.helpers.arrayElement([
|
|
81
|
-
faker.string.alpha({
|
|
82
|
-
length: {
|
|
83
|
-
min: 10,
|
|
84
|
-
max: 20,
|
|
85
|
-
},
|
|
86
|
-
}),
|
|
87
|
-
undefined,
|
|
88
|
-
]),
|
|
89
|
-
warningData: faker.helpers.arrayElement([
|
|
90
|
-
{
|
|
91
|
-
passwordExpiry: faker.helpers.arrayElement([
|
|
92
|
-
{
|
|
93
|
-
daysRemaining: faker.helpers.arrayElement([
|
|
94
|
-
faker.string.alpha({
|
|
95
|
-
length: {
|
|
96
|
-
min: 10,
|
|
97
|
-
max: 20,
|
|
98
|
-
},
|
|
99
|
-
}),
|
|
100
|
-
undefined,
|
|
101
|
-
]),
|
|
102
|
-
expiresAt: faker.helpers.arrayElement([
|
|
103
|
-
faker.string.alpha({
|
|
104
|
-
length: {
|
|
105
|
-
min: 10,
|
|
106
|
-
max: 20,
|
|
107
|
-
},
|
|
108
|
-
}),
|
|
109
|
-
undefined,
|
|
110
|
-
]),
|
|
111
|
-
},
|
|
112
|
-
undefined,
|
|
113
|
-
]),
|
|
114
|
-
},
|
|
115
|
-
undefined,
|
|
116
|
-
]),
|
|
117
|
-
})),
|
|
118
|
-
undefined,
|
|
119
|
-
]),
|
|
120
61
|
...overrideResponse,
|
|
121
62
|
});
|
|
122
63
|
|
package/src/gen/auth/auth.zod.ts
CHANGED
|
@@ -54,24 +54,6 @@ export const SignupResponse = zod.object({
|
|
|
54
54
|
),
|
|
55
55
|
})
|
|
56
56
|
.optional(),
|
|
57
|
-
warnings: zod
|
|
58
|
-
.array(
|
|
59
|
-
zod.object({
|
|
60
|
-
detail: zod.string().optional(),
|
|
61
|
-
id: zod.string().optional(),
|
|
62
|
-
warningData: zod
|
|
63
|
-
.object({
|
|
64
|
-
passwordExpiry: zod
|
|
65
|
-
.object({
|
|
66
|
-
daysRemaining: zod.string().optional(),
|
|
67
|
-
expiresAt: zod.string().optional(),
|
|
68
|
-
})
|
|
69
|
-
.optional(),
|
|
70
|
-
})
|
|
71
|
-
.optional(),
|
|
72
|
-
}),
|
|
73
|
-
)
|
|
74
|
-
.optional(),
|
|
75
57
|
});
|
|
76
58
|
|
|
77
59
|
/**
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
ApiCreateUserResponse,
|
|
13
13
|
ApiDeleteUsersResponse,
|
|
14
14
|
ApiGetPasswordSettingsResponse,
|
|
15
|
+
ApiGetUserWarningsResponse,
|
|
15
16
|
ApiLogoutUserResponse,
|
|
16
17
|
ApiReadUserResponse,
|
|
17
18
|
ApiSearchUsersResponse,
|
|
@@ -2634,6 +2635,71 @@ export const getSearchUsers2ResponseMock = (
|
|
|
2634
2635
|
...overrideResponse,
|
|
2635
2636
|
});
|
|
2636
2637
|
|
|
2638
|
+
export const getGetUserWarningsResponseMock = (
|
|
2639
|
+
overrideResponse: Partial<Extract<ApiGetUserWarningsResponse, object>> = {},
|
|
2640
|
+
): ApiGetUserWarningsResponse => ({
|
|
2641
|
+
warnings: faker.helpers.arrayElement([
|
|
2642
|
+
Array.from(
|
|
2643
|
+
{
|
|
2644
|
+
length: faker.number.int({
|
|
2645
|
+
min: 1,
|
|
2646
|
+
max: 10,
|
|
2647
|
+
}),
|
|
2648
|
+
},
|
|
2649
|
+
(_, i) => i + 1,
|
|
2650
|
+
).map(() => ({
|
|
2651
|
+
detail: faker.helpers.arrayElement([
|
|
2652
|
+
faker.string.alpha({
|
|
2653
|
+
length: {
|
|
2654
|
+
min: 10,
|
|
2655
|
+
max: 20,
|
|
2656
|
+
},
|
|
2657
|
+
}),
|
|
2658
|
+
undefined,
|
|
2659
|
+
]),
|
|
2660
|
+
id: faker.helpers.arrayElement([
|
|
2661
|
+
faker.string.alpha({
|
|
2662
|
+
length: {
|
|
2663
|
+
min: 10,
|
|
2664
|
+
max: 20,
|
|
2665
|
+
},
|
|
2666
|
+
}),
|
|
2667
|
+
undefined,
|
|
2668
|
+
]),
|
|
2669
|
+
warningData: faker.helpers.arrayElement([
|
|
2670
|
+
{
|
|
2671
|
+
passwordExpiry: faker.helpers.arrayElement([
|
|
2672
|
+
{
|
|
2673
|
+
daysRemaining: faker.helpers.arrayElement([
|
|
2674
|
+
faker.string.alpha({
|
|
2675
|
+
length: {
|
|
2676
|
+
min: 10,
|
|
2677
|
+
max: 20,
|
|
2678
|
+
},
|
|
2679
|
+
}),
|
|
2680
|
+
undefined,
|
|
2681
|
+
]),
|
|
2682
|
+
expiresAt: faker.helpers.arrayElement([
|
|
2683
|
+
faker.string.alpha({
|
|
2684
|
+
length: {
|
|
2685
|
+
min: 10,
|
|
2686
|
+
max: 20,
|
|
2687
|
+
},
|
|
2688
|
+
}),
|
|
2689
|
+
undefined,
|
|
2690
|
+
]),
|
|
2691
|
+
},
|
|
2692
|
+
undefined,
|
|
2693
|
+
]),
|
|
2694
|
+
},
|
|
2695
|
+
undefined,
|
|
2696
|
+
]),
|
|
2697
|
+
})),
|
|
2698
|
+
undefined,
|
|
2699
|
+
]),
|
|
2700
|
+
...overrideResponse,
|
|
2701
|
+
});
|
|
2702
|
+
|
|
2637
2703
|
export const getDeleteUsersResponseMock = (
|
|
2638
2704
|
overrideResponse: Partial<Extract<ApiDeleteUsersResponse, object>> = {},
|
|
2639
2705
|
): ApiDeleteUsersResponse => ({
|
|
@@ -4854,6 +4920,32 @@ export const getSearchUsers2MockHandler = (
|
|
|
4854
4920
|
);
|
|
4855
4921
|
};
|
|
4856
4922
|
|
|
4923
|
+
export const getGetUserWarningsMockHandler = (
|
|
4924
|
+
overrideResponse?:
|
|
4925
|
+
| ApiGetUserWarningsResponse
|
|
4926
|
+
| ((
|
|
4927
|
+
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
4928
|
+
) => Promise<ApiGetUserWarningsResponse> | ApiGetUserWarningsResponse),
|
|
4929
|
+
options?: RequestHandlerOptions,
|
|
4930
|
+
) => {
|
|
4931
|
+
return http.get(
|
|
4932
|
+
'*/users/warnings',
|
|
4933
|
+
async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {
|
|
4934
|
+
return HttpResponse.json(
|
|
4935
|
+
overrideResponse !== undefined
|
|
4936
|
+
? typeof overrideResponse === 'function'
|
|
4937
|
+
? await overrideResponse(info)
|
|
4938
|
+
: overrideResponse
|
|
4939
|
+
: getGetUserWarningsResponseMock(),
|
|
4940
|
+
{
|
|
4941
|
+
status: 200,
|
|
4942
|
+
},
|
|
4943
|
+
);
|
|
4944
|
+
},
|
|
4945
|
+
options,
|
|
4946
|
+
);
|
|
4947
|
+
};
|
|
4948
|
+
|
|
4857
4949
|
export const getDeleteUsersMockHandler = (
|
|
4858
4950
|
overrideResponse?:
|
|
4859
4951
|
| ApiDeleteUsersResponse
|
|
@@ -4991,6 +5083,7 @@ export const getUsersMock = () => [
|
|
|
4991
5083
|
getUpdatePasswordMockHandler(),
|
|
4992
5084
|
getReadPasswordSettingsMockHandler(),
|
|
4993
5085
|
getSearchUsers2MockHandler(),
|
|
5086
|
+
getGetUserWarningsMockHandler(),
|
|
4994
5087
|
getDeleteUsersMockHandler(),
|
|
4995
5088
|
getReadUserMockHandler(),
|
|
4996
5089
|
getLogoutUserMockHandler(),
|
package/src/gen/users/users.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
ApiCreateUserResponse,
|
|
14
14
|
ApiDeleteUsersResponse,
|
|
15
15
|
ApiGetPasswordSettingsResponse,
|
|
16
|
+
ApiGetUserWarningsResponse,
|
|
16
17
|
ApiLogoutUserResponse,
|
|
17
18
|
ApiReadUserResponse,
|
|
18
19
|
ApiSearchUsersRequest,
|
|
@@ -117,6 +118,11 @@ export const // --- title start
|
|
|
117
118
|
options,
|
|
118
119
|
);
|
|
119
120
|
};
|
|
121
|
+
const getUserWarnings = (
|
|
122
|
+
options?: AxiosRequestConfig,
|
|
123
|
+
): Promise<AxiosResponse<ApiGetUserWarningsResponse>> => {
|
|
124
|
+
return axiosInstance.get(`/users/warnings`, options);
|
|
125
|
+
};
|
|
120
126
|
const deleteUsers = (
|
|
121
127
|
id: string,
|
|
122
128
|
params?: DeleteUsersParams,
|
|
@@ -190,6 +196,7 @@ export const // --- title start
|
|
|
190
196
|
updatePassword,
|
|
191
197
|
readPasswordSettings,
|
|
192
198
|
searchUsers2,
|
|
199
|
+
getUserWarnings,
|
|
193
200
|
deleteUsers,
|
|
194
201
|
readUser,
|
|
195
202
|
logoutUser,
|
|
@@ -205,6 +212,7 @@ export type UpdatePasswordResult = AxiosResponse<ApiUpdatePasswordResponse>;
|
|
|
205
212
|
export type ReadPasswordSettingsResult =
|
|
206
213
|
AxiosResponse<ApiGetPasswordSettingsResponse>;
|
|
207
214
|
export type SearchUsers2Result = AxiosResponse<ApiSearchUsersResponse>;
|
|
215
|
+
export type GetUserWarningsResult = AxiosResponse<ApiGetUserWarningsResponse>;
|
|
208
216
|
export type DeleteUsersResult = AxiosResponse<ApiDeleteUsersResponse>;
|
|
209
217
|
export type ReadUserResult = AxiosResponse<ApiReadUserResponse>;
|
|
210
218
|
export type LogoutUserResult = AxiosResponse<ApiLogoutUserResponse>;
|
|
@@ -945,6 +945,27 @@ export const SearchUsers2Response = zod.object({
|
|
|
945
945
|
size: zod.number().optional(),
|
|
946
946
|
});
|
|
947
947
|
|
|
948
|
+
export const GetUserWarningsResponse = zod.object({
|
|
949
|
+
warnings: zod
|
|
950
|
+
.array(
|
|
951
|
+
zod.object({
|
|
952
|
+
detail: zod.string().optional(),
|
|
953
|
+
id: zod.string().optional(),
|
|
954
|
+
warningData: zod
|
|
955
|
+
.object({
|
|
956
|
+
passwordExpiry: zod
|
|
957
|
+
.object({
|
|
958
|
+
daysRemaining: zod.string().optional(),
|
|
959
|
+
expiresAt: zod.string().optional(),
|
|
960
|
+
})
|
|
961
|
+
.optional(),
|
|
962
|
+
})
|
|
963
|
+
.optional(),
|
|
964
|
+
}),
|
|
965
|
+
)
|
|
966
|
+
.optional(),
|
|
967
|
+
});
|
|
968
|
+
|
|
948
969
|
export const DeleteUsersParams = zod.object({
|
|
949
970
|
id: zod.string().describe('ONE /users/{id}'),
|
|
950
971
|
});
|
|
@@ -54,6 +54,7 @@ export * from './apiGetCustomerResponse.zod';
|
|
|
54
54
|
export * from './apiGetPasswordSettingsResponse.zod';
|
|
55
55
|
export * from './apiGetPasswordSettingsResponseSettings.zod';
|
|
56
56
|
export * from './apiGetUserTfaKeyResponse.zod';
|
|
57
|
+
export * from './apiGetUserWarningsResponse.zod';
|
|
57
58
|
export * from './apiGrantAccessRequestV1.zod';
|
|
58
59
|
export * from './apiLDAPCatalog.zod';
|
|
59
60
|
export * from './apiLDAPCatalogTLSConfig.zod';
|
|
@@ -24,16 +24,6 @@ export declare const SignupResponse: zod.ZodObject<{
|
|
|
24
24
|
state: zod.ZodOptional<zod.ZodString>;
|
|
25
25
|
tokenType: zod.ZodOptional<zod.ZodString>;
|
|
26
26
|
}, zod.z.core.$strip>>;
|
|
27
|
-
warnings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
28
|
-
detail: zod.ZodOptional<zod.ZodString>;
|
|
29
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
30
|
-
warningData: zod.ZodOptional<zod.ZodObject<{
|
|
31
|
-
passwordExpiry: zod.ZodOptional<zod.ZodObject<{
|
|
32
|
-
daysRemaining: zod.ZodOptional<zod.ZodString>;
|
|
33
|
-
expiresAt: zod.ZodOptional<zod.ZodString>;
|
|
34
|
-
}, zod.z.core.$strip>>;
|
|
35
|
-
}, zod.z.core.$strip>>;
|
|
36
|
-
}, zod.z.core.$strip>>>;
|
|
37
27
|
}, zod.z.core.$strip>;
|
|
38
28
|
/**
|
|
39
29
|
* @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import type { ApiCreateUserRequest, ApiCreateUserResponse, ApiDeleteUsersResponse, ApiGetPasswordSettingsResponse, ApiLogoutUserResponse, ApiReadUserResponse, ApiSearchUsersRequest, ApiSearchUsersResponse, ApiUpdatePasswordRequest, ApiUpdatePasswordResponse, ApiUser, DeleteUsers2Params, DeleteUsersParams, ReadPasswordSettingsParams, ReadUser2Params, ReadUserParams, SearchUsersParams, UpdateUser2Body, UpdateUser2Params, UpdateUserBody, UpdateUserParams, UsersLogoutUserBody } from '../_models';
|
|
2
|
+
import type { ApiCreateUserRequest, ApiCreateUserResponse, ApiDeleteUsersResponse, ApiGetPasswordSettingsResponse, ApiGetUserWarningsResponse, ApiLogoutUserResponse, ApiReadUserResponse, ApiSearchUsersRequest, ApiSearchUsersResponse, ApiUpdatePasswordRequest, ApiUpdatePasswordResponse, ApiUser, DeleteUsers2Params, DeleteUsersParams, ReadPasswordSettingsParams, ReadUser2Params, ReadUserParams, SearchUsersParams, UpdateUser2Body, UpdateUser2Params, UpdateUserBody, UpdateUserParams, UsersLogoutUserBody } from '../_models';
|
|
3
3
|
export declare const // --- title start
|
|
4
4
|
getUsers: (axiosInstance?: AxiosInstance) => {
|
|
5
5
|
readUser2: (params?: ReadUser2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiReadUserResponse>>;
|
|
@@ -9,6 +9,7 @@ getUsers: (axiosInstance?: AxiosInstance) => {
|
|
|
9
9
|
updatePassword: (apiUpdatePasswordRequest: ApiUpdatePasswordRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiUpdatePasswordResponse>>;
|
|
10
10
|
readPasswordSettings: (params?: ReadPasswordSettingsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiGetPasswordSettingsResponse>>;
|
|
11
11
|
searchUsers2: (apiSearchUsersRequest: ApiSearchUsersRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiSearchUsersResponse>>;
|
|
12
|
+
getUserWarnings: (options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiGetUserWarningsResponse>>;
|
|
12
13
|
deleteUsers: (id: string, params?: DeleteUsersParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiDeleteUsersResponse>>;
|
|
13
14
|
readUser: (id: string, params?: ReadUserParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiReadUserResponse>>;
|
|
14
15
|
logoutUser: (id: string, usersLogoutUserBody: UsersLogoutUserBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<ApiLogoutUserResponse>>;
|
|
@@ -22,6 +23,7 @@ export type CreateUserResult = AxiosResponse<ApiCreateUserResponse>;
|
|
|
22
23
|
export type UpdatePasswordResult = AxiosResponse<ApiUpdatePasswordResponse>;
|
|
23
24
|
export type ReadPasswordSettingsResult = AxiosResponse<ApiGetPasswordSettingsResponse>;
|
|
24
25
|
export type SearchUsers2Result = AxiosResponse<ApiSearchUsersResponse>;
|
|
26
|
+
export type GetUserWarningsResult = AxiosResponse<ApiGetUserWarningsResponse>;
|
|
25
27
|
export type DeleteUsersResult = AxiosResponse<ApiDeleteUsersResponse>;
|
|
26
28
|
export type ReadUserResult = AxiosResponse<ApiReadUserResponse>;
|
|
27
29
|
export type LogoutUserResult = AxiosResponse<ApiLogoutUserResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RequestHandlerOptions } from 'msw';
|
|
2
2
|
import { http } from 'msw';
|
|
3
|
-
import type { ApiCreateUserResponse, ApiDeleteUsersResponse, ApiGetPasswordSettingsResponse, ApiLogoutUserResponse, ApiReadUserResponse, ApiSearchUsersResponse, ApiUpdatePasswordResponse, ApiUser } from '../_models';
|
|
3
|
+
import type { ApiCreateUserResponse, ApiDeleteUsersResponse, ApiGetPasswordSettingsResponse, ApiGetUserWarningsResponse, ApiLogoutUserResponse, ApiReadUserResponse, ApiSearchUsersResponse, ApiUpdatePasswordResponse, ApiUser } from '../_models';
|
|
4
4
|
export declare const getReadUser2ResponseMock: (overrideResponse?: Partial<Extract<ApiReadUserResponse, object>>) => ApiReadUserResponse;
|
|
5
5
|
export declare const getDeleteUsers2ResponseMock: (overrideResponse?: Partial<Extract<ApiDeleteUsersResponse, object>>) => ApiDeleteUsersResponse;
|
|
6
6
|
export declare const getSearchUsersResponseMock: (overrideResponse?: Partial<Extract<ApiSearchUsersResponse, object>>) => ApiSearchUsersResponse;
|
|
@@ -8,6 +8,7 @@ export declare const getCreateUserResponseMock: (overrideResponse?: Partial<Extr
|
|
|
8
8
|
export declare const getUpdatePasswordResponseMock: () => ApiUpdatePasswordResponse;
|
|
9
9
|
export declare const getReadPasswordSettingsResponseMock: (overrideResponse?: Partial<Extract<ApiGetPasswordSettingsResponse, object>>) => ApiGetPasswordSettingsResponse;
|
|
10
10
|
export declare const getSearchUsers2ResponseMock: (overrideResponse?: Partial<Extract<ApiSearchUsersResponse, object>>) => ApiSearchUsersResponse;
|
|
11
|
+
export declare const getGetUserWarningsResponseMock: (overrideResponse?: Partial<Extract<ApiGetUserWarningsResponse, object>>) => ApiGetUserWarningsResponse;
|
|
11
12
|
export declare const getDeleteUsersResponseMock: (overrideResponse?: Partial<Extract<ApiDeleteUsersResponse, object>>) => ApiDeleteUsersResponse;
|
|
12
13
|
export declare const getReadUserResponseMock: (overrideResponse?: Partial<Extract<ApiReadUserResponse, object>>) => ApiReadUserResponse;
|
|
13
14
|
export declare const getLogoutUserResponseMock: () => ApiLogoutUserResponse;
|
|
@@ -20,6 +21,7 @@ export declare const getCreateUserMockHandler: (overrideResponse?: ApiCreateUser
|
|
|
20
21
|
export declare const getUpdatePasswordMockHandler: (overrideResponse?: ApiUpdatePasswordResponse | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<ApiUpdatePasswordResponse> | ApiUpdatePasswordResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
21
22
|
export declare const getReadPasswordSettingsMockHandler: (overrideResponse?: ApiGetPasswordSettingsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ApiGetPasswordSettingsResponse> | ApiGetPasswordSettingsResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
22
23
|
export declare const getSearchUsers2MockHandler: (overrideResponse?: ApiSearchUsersResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ApiSearchUsersResponse> | ApiSearchUsersResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
24
|
+
export declare const getGetUserWarningsMockHandler: (overrideResponse?: ApiGetUserWarningsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ApiGetUserWarningsResponse> | ApiGetUserWarningsResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
23
25
|
export declare const getDeleteUsersMockHandler: (overrideResponse?: ApiDeleteUsersResponse | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<ApiDeleteUsersResponse> | ApiDeleteUsersResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
24
26
|
export declare const getReadUserMockHandler: (overrideResponse?: ApiReadUserResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ApiReadUserResponse> | ApiReadUserResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
25
27
|
export declare const getLogoutUserMockHandler: (overrideResponse?: ApiLogoutUserResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ApiLogoutUserResponse> | ApiLogoutUserResponse), options?: RequestHandlerOptions) => import("msw").HttpHandler;
|
|
@@ -508,6 +508,18 @@ export declare const SearchUsers2Response: zod.ZodObject<{
|
|
|
508
508
|
page: zod.ZodOptional<zod.ZodNumber>;
|
|
509
509
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
510
510
|
}, zod.z.core.$strip>;
|
|
511
|
+
export declare const GetUserWarningsResponse: zod.ZodObject<{
|
|
512
|
+
warnings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
513
|
+
detail: zod.ZodOptional<zod.ZodString>;
|
|
514
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
515
|
+
warningData: zod.ZodOptional<zod.ZodObject<{
|
|
516
|
+
passwordExpiry: zod.ZodOptional<zod.ZodObject<{
|
|
517
|
+
daysRemaining: zod.ZodOptional<zod.ZodString>;
|
|
518
|
+
expiresAt: zod.ZodOptional<zod.ZodString>;
|
|
519
|
+
}, zod.z.core.$strip>>;
|
|
520
|
+
}, zod.z.core.$strip>>;
|
|
521
|
+
}, zod.z.core.$strip>>>;
|
|
522
|
+
}, zod.z.core.$strip>;
|
|
511
523
|
export declare const DeleteUsersParams: zod.ZodObject<{
|
|
512
524
|
id: zod.ZodString;
|
|
513
525
|
}, zod.z.core.$strip>;
|