@sudoplatform/sudo-user 16.0.0 → 16.0.2
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/cjs/client/amplifyClient.js +40 -7
- package/cjs/client/amplifyClient.js.map +1 -1
- package/docs/assets/highlight.css +1 -1
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/style.css +3 -3
- package/docs/classes/AlreadyRegisteredError.html +2 -2
- package/docs/classes/DefaultSudoUserClient.html +32 -32
- package/docs/classes/IdentityServiceConfigNotFoundError.html +2 -2
- package/docs/classes/LocalAuthenticationProvider.html +4 -4
- package/docs/classes/TESTAuthenticationProvider.html +4 -4
- package/docs/classes/internal.AmplifyClient.html +5 -5
- package/docs/enums/GraphQLClientAuthMode.html +2 -2
- package/docs/functions/internal.getIdentityServiceConfig.html +1 -1
- package/docs/index.html +7 -3
- package/docs/interfaces/AuthenticationProvider.html +3 -3
- package/docs/interfaces/AuthenticationTokens.html +2 -2
- package/docs/interfaces/GraphQLClient.html +4 -4
- package/docs/interfaces/GraphQLClientOptions.html +7 -7
- package/docs/interfaces/SudoUserClient.html +27 -27
- package/docs/interfaces/internal.SudoUserOptions.html +2 -2
- package/docs/types/IAMCredentials.html +2 -2
- package/docs/types/TokenProvider.html +1 -1
- package/docs/types/internal.Config.html +1 -1
- package/docs/types/internal.FederatedSignInConfig.html +1 -1
- package/docs/types/internal.IdentityServiceConfig.html +1 -1
- package/docs/variables/internal.Config.html +1 -1
- package/docs/variables/internal.FederatedSignInConfigCodec.html +1 -1
- package/docs/variables/internal.IdentityServiceConfigCodec.html +1 -1
- package/lib/client/amplifyClient.js +40 -7
- package/lib/client/amplifyClient.js.map +1 -1
- package/package.json +15 -25
- package/types/client/amplifyClient.d.ts +4 -0
|
@@ -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>FederatedSignInConfigCodec | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-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">@sudoplatform/sudo-user</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/internal.html">internal</a></li><li><a href="" aria-current="page">FederatedSignInConfigCodec</a></li></ul><h1>Variable FederatedSignInConfigCodec<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">FederatedSignInConfigCodec</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IntersectionC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">TypeC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">appClientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">signInRedirectUri</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">signOutRedirectUri</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">webDomain</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</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">PartialC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">identityProvider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">refreshTokenLifetime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">NumberC</span> <span class="tsd-signature-symbol">}</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-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/sudoplatform/sudo-user-js/blob/
|
|
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>FederatedSignInConfigCodec | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-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">@sudoplatform/sudo-user</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/internal.html">internal</a></li><li><a href="" aria-current="page">FederatedSignInConfigCodec</a></li></ul><h1>Variable FederatedSignInConfigCodec<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">FederatedSignInConfigCodec</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IntersectionC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">TypeC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">appClientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">signInRedirectUri</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">signOutRedirectUri</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">webDomain</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</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">PartialC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">identityProvider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">refreshTokenLifetime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">NumberC</span> <span class="tsd-signature-symbol">}</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-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/sudoplatform/sudo-user-js/blob/ed66112ef18c31248b42fbaa40d4f95629c97be6/src/core/sdk-config.ts#L35">src/core/sdk-config.ts:35</a></li></ul></aside></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">@sudoplatform/sudo-user</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>IdentityServiceConfigCodec | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-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">@sudoplatform/sudo-user</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/internal.html">internal</a></li><li><a href="" aria-current="page">IdentityServiceConfigCodec</a></li></ul><h1>Variable IdentityServiceConfigCodec<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IdentityServiceConfigCodec</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IntersectionC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">TypeC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">apiUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">bucket</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">identityPoolId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">poolId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">region</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">registrationMethods</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ArrayC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">transientBucket</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</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">PartialC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">refreshTokenLifetime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">NumberC</span> <span class="tsd-signature-symbol">}</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-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/sudoplatform/sudo-user-js/blob/
|
|
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>IdentityServiceConfigCodec | @sudoplatform/sudo-user</title><meta name="description" content="Documentation for @sudoplatform/sudo-user"/><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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-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">@sudoplatform/sudo-user</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/internal.html">internal</a></li><li><a href="" aria-current="page">IdentityServiceConfigCodec</a></li></ul><h1>Variable IdentityServiceConfigCodec<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IdentityServiceConfigCodec</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IntersectionC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">TypeC</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">apiUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">bucket</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">clientId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">identityPoolId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">poolId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">region</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">registrationMethods</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ArrayC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">StringC</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">transientBucket</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">StringC</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">PartialC</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">refreshTokenLifetime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">NumberC</span> <span class="tsd-signature-symbol">}</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-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/sudoplatform/sudo-user-js/blob/ed66112ef18c31248b42fbaa40d4f95629c97be6/src/core/sdk-config.ts#L12">src/core/sdk-config.ts:12</a></li></ul></aside></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">@sudoplatform/sudo-user</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>
|
|
@@ -52,10 +52,7 @@ export class AmplifyClient {
|
|
|
52
52
|
this.options = options;
|
|
53
53
|
this.amplify = new AmplifyClassV6();
|
|
54
54
|
this.configure(options);
|
|
55
|
-
|
|
56
|
-
this.client = generateClient({
|
|
57
|
-
amplify: this.amplify,
|
|
58
|
-
});
|
|
55
|
+
this.client = this.createClient();
|
|
59
56
|
}
|
|
60
57
|
configure(options) {
|
|
61
58
|
const authModeToUse = options.authMode ?? GraphQLClientAuthMode.OpenIDConnect;
|
|
@@ -123,6 +120,9 @@ export class AmplifyClient {
|
|
|
123
120
|
* @returns query result.
|
|
124
121
|
*/
|
|
125
122
|
async query(options) {
|
|
123
|
+
return this.queryInternal(options, 0);
|
|
124
|
+
}
|
|
125
|
+
async queryInternal(options, retryCount) {
|
|
126
126
|
const authOptions = await this.resolveAuthOptions(options.authToken);
|
|
127
127
|
try {
|
|
128
128
|
return (await this.client.graphql({
|
|
@@ -132,7 +132,14 @@ export class AmplifyClient {
|
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
134
|
catch (err) {
|
|
135
|
-
|
|
135
|
+
const actual = err.errors?.pop() ?? err;
|
|
136
|
+
if ((actual.code === 'ECONNRESET' ||
|
|
137
|
+
actual.message?.includes('ECONNRESET')) &&
|
|
138
|
+
retryCount < 1) {
|
|
139
|
+
this.createClient();
|
|
140
|
+
return this.queryInternal(options, retryCount + 1);
|
|
141
|
+
}
|
|
142
|
+
throw actual;
|
|
136
143
|
}
|
|
137
144
|
}
|
|
138
145
|
/**
|
|
@@ -144,6 +151,9 @@ export class AmplifyClient {
|
|
|
144
151
|
* @returns mutation result.
|
|
145
152
|
*/
|
|
146
153
|
async mutate(options) {
|
|
154
|
+
return this.mutateInternal(options, 0);
|
|
155
|
+
}
|
|
156
|
+
async mutateInternal(options, retryCount) {
|
|
147
157
|
const authOptions = await this.resolveAuthOptions(options.authToken);
|
|
148
158
|
try {
|
|
149
159
|
return (await this.client.graphql({
|
|
@@ -153,7 +163,14 @@ export class AmplifyClient {
|
|
|
153
163
|
}));
|
|
154
164
|
}
|
|
155
165
|
catch (err) {
|
|
156
|
-
|
|
166
|
+
const actual = err.errors?.pop() ?? err;
|
|
167
|
+
if ((actual.code === 'ECONNRESET' ||
|
|
168
|
+
actual.message?.includes('ECONNRESET')) &&
|
|
169
|
+
retryCount < 1) {
|
|
170
|
+
this.createClient();
|
|
171
|
+
return this.mutateInternal(options, retryCount + 1);
|
|
172
|
+
}
|
|
173
|
+
throw actual;
|
|
157
174
|
}
|
|
158
175
|
}
|
|
159
176
|
/**
|
|
@@ -165,6 +182,9 @@ export class AmplifyClient {
|
|
|
165
182
|
* @returns observable for receiving subscription notifications.
|
|
166
183
|
*/
|
|
167
184
|
async subscribe(options) {
|
|
185
|
+
return this.subscribeInternal(options, 0);
|
|
186
|
+
}
|
|
187
|
+
async subscribeInternal(options, retryCount) {
|
|
168
188
|
if (this.options.authMode === GraphQLClientAuthMode.IAM) {
|
|
169
189
|
throw new Error('Subscriptions are not supported with IAM authentication mode');
|
|
170
190
|
}
|
|
@@ -178,7 +198,14 @@ export class AmplifyClient {
|
|
|
178
198
|
return result;
|
|
179
199
|
}
|
|
180
200
|
catch (err) {
|
|
181
|
-
|
|
201
|
+
const actual = err.errors?.pop() ?? err;
|
|
202
|
+
if ((actual.code === 'ECONNRESET' ||
|
|
203
|
+
actual.message?.includes('ECONNRESET')) &&
|
|
204
|
+
retryCount < 1) {
|
|
205
|
+
this.createClient();
|
|
206
|
+
return this.subscribeInternal(options, retryCount + 1);
|
|
207
|
+
}
|
|
208
|
+
throw actual;
|
|
182
209
|
}
|
|
183
210
|
}
|
|
184
211
|
/**
|
|
@@ -202,6 +229,12 @@ export class AmplifyClient {
|
|
|
202
229
|
return GraphQLAuthMode.ApiKey;
|
|
203
230
|
}
|
|
204
231
|
}
|
|
232
|
+
createClient() {
|
|
233
|
+
// @ts-expect-error complex typings not manageable by tsc
|
|
234
|
+
return generateClient({
|
|
235
|
+
amplify: this.amplify,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
205
238
|
async resolveAuthOptions(token) {
|
|
206
239
|
if (this.options.tokenProvider &&
|
|
207
240
|
(this.options.authMode ??
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amplifyClient.js","sourceRoot":"","sources":["../../src/client/amplifyClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,GAIf,MAAM,mBAAmB,CAAA;AAC1B,yEAAyE;A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"@sudoplatform/sudo-user",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.2",
|
|
4
4
|
"author": "Anonyome Labs, Inc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"fp-ts": "^2.16.11",
|
|
58
58
|
"graphql": "^16.12.0",
|
|
59
59
|
"io-ts": "^2.2.22",
|
|
60
|
-
"jws": "^4.0.
|
|
60
|
+
"jws": "^4.0.1",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"monocle-ts": "^2.3.13",
|
|
63
63
|
"newtype-ts": "^0.3.5",
|
|
@@ -73,16 +73,16 @@
|
|
|
73
73
|
"@graphql-codegen/add": "^6.0.0",
|
|
74
74
|
"@graphql-codegen/cli": "^6.0.1",
|
|
75
75
|
"@graphql-codegen/plugin-helpers": "^6.0.0",
|
|
76
|
-
"@graphql-codegen/typed-document-node": "^6.1.
|
|
77
|
-
"@graphql-codegen/typescript": "^5.0.
|
|
78
|
-
"@graphql-codegen/typescript-operations": "^5.0.
|
|
76
|
+
"@graphql-codegen/typed-document-node": "^6.1.4",
|
|
77
|
+
"@graphql-codegen/typescript": "^5.0.6",
|
|
78
|
+
"@graphql-codegen/typescript-operations": "^5.0.6",
|
|
79
79
|
"@sudoplatform/sudo-common": "^12.2.0",
|
|
80
80
|
"@types/amazon-cognito-auth-js": "^1.3.4",
|
|
81
81
|
"@types/firefox-webext-browser": "^143.0.0",
|
|
82
82
|
"@types/jest": "^29.5.14",
|
|
83
83
|
"@types/jws": "^3.2.11",
|
|
84
|
-
"@types/lodash": "^4.17.
|
|
85
|
-
"@types/node": "^22.19.
|
|
84
|
+
"@types/lodash": "^4.17.21",
|
|
85
|
+
"@types/node": "^22.19.1",
|
|
86
86
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
87
87
|
"@typescript-eslint/parser": "^8.46.3",
|
|
88
88
|
"concurrently": "^9.2.1",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"jest-environment-node": "^29.7.0",
|
|
98
98
|
"prettier": "^3.6.2",
|
|
99
99
|
"subscriptions-transport-ws": "^0.11.0",
|
|
100
|
-
"ts-jest": "^29.4.
|
|
100
|
+
"ts-jest": "^29.4.6",
|
|
101
101
|
"ts-mockito": "^2.6.1",
|
|
102
|
-
"typedoc": "^0.28.
|
|
102
|
+
"typedoc": "^0.28.15",
|
|
103
103
|
"typescript": "^5.9.3",
|
|
104
104
|
"websocket": "^1.0.35"
|
|
105
105
|
},
|
|
@@ -110,22 +110,12 @@
|
|
|
110
110
|
"engines": {
|
|
111
111
|
"node": ">=22"
|
|
112
112
|
},
|
|
113
|
+
"packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
|
|
113
114
|
"auditSuppressions": {
|
|
114
|
-
"
|
|
115
|
-
"until":
|
|
116
|
-
"untilISO": "
|
|
117
|
-
"reason": "
|
|
118
|
-
},
|
|
119
|
-
"1109801": {
|
|
120
|
-
"until": 1765917031,
|
|
121
|
-
"untilISO": "2025-12-16T20:30:31Z",
|
|
122
|
-
"reason": "waiting for fix - js-xaml"
|
|
123
|
-
},
|
|
124
|
-
"1109802": {
|
|
125
|
-
"until": 1765917031,
|
|
126
|
-
"untilISO": "2025-12-16T20:30:31Z",
|
|
127
|
-
"reason": "waiting for fix - js-xaml"
|
|
115
|
+
"1111987": {
|
|
116
|
+
"until": 1770781300,
|
|
117
|
+
"untilISO": "2026-02-11T03:41:40Z",
|
|
118
|
+
"reason": "Waiting for patch"
|
|
128
119
|
}
|
|
129
|
-
}
|
|
130
|
-
"packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54"
|
|
120
|
+
}
|
|
131
121
|
}
|
|
@@ -24,6 +24,7 @@ export declare class AmplifyClient implements GraphQLClient {
|
|
|
24
24
|
variables?: any;
|
|
25
25
|
authToken?: string;
|
|
26
26
|
}): Promise<GraphQLResult<T>>;
|
|
27
|
+
private queryInternal;
|
|
27
28
|
/**
|
|
28
29
|
* Performs GraphQL mutation operation.
|
|
29
30
|
*
|
|
@@ -37,6 +38,7 @@ export declare class AmplifyClient implements GraphQLClient {
|
|
|
37
38
|
variables?: any;
|
|
38
39
|
authToken?: string;
|
|
39
40
|
}): Promise<GraphQLResult<T>>;
|
|
41
|
+
private mutateInternal;
|
|
40
42
|
/**
|
|
41
43
|
* Performs GraphQL subscription operation.
|
|
42
44
|
*
|
|
@@ -50,11 +52,13 @@ export declare class AmplifyClient implements GraphQLClient {
|
|
|
50
52
|
variables?: any;
|
|
51
53
|
authToken?: string;
|
|
52
54
|
}): Promise<Observable<GraphQLResult<T>>>;
|
|
55
|
+
private subscribeInternal;
|
|
53
56
|
/**
|
|
54
57
|
* Resolves a TokenProvider into its actual token value.
|
|
55
58
|
* Handles both string tokens and async/sync function providers.
|
|
56
59
|
*/
|
|
57
60
|
private resolveToken;
|
|
58
61
|
private transformAuthMode;
|
|
62
|
+
private createClient;
|
|
59
63
|
private resolveAuthOptions;
|
|
60
64
|
}
|