mito-ai 0.1.41__py3-none-any.whl → 0.1.42__py3-none-any.whl

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.

Potentially problematic release.


This version of mito-ai might be problematic. Click here for more details.

Files changed (54) hide show
  1. mito_ai/__init__.py +7 -0
  2. mito_ai/_version.py +1 -1
  3. mito_ai/app_manager/__init__.py +4 -0
  4. mito_ai/app_manager/handlers.py +129 -0
  5. mito_ai/app_manager/models.py +58 -0
  6. mito_ai/completions/completion_handlers/agent_execution_handler.py +1 -1
  7. mito_ai/completions/completion_handlers/chat_completion_handler.py +2 -2
  8. mito_ai/completions/completion_handlers/utils.py +77 -37
  9. mito_ai/completions/models.py +2 -0
  10. mito_ai/completions/prompt_builders/utils.py +7 -0
  11. mito_ai/tests/completions/completion_handlers_utils_test.py +51 -0
  12. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/build_log.json +100 -100
  13. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/package.json +2 -2
  14. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/schemas/mito_ai/package.json.orig +1 -1
  15. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/lib_index_js.01a962c68c8fae380f30.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/lib_index_js.a9a35b6fcc54a7bcb32c.js +807 -44
  16. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/lib_index_js.a9a35b6fcc54a7bcb32c.js.map +1 -0
  17. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/node_modules_process_browser_js.4b128e94d31a81ebd209.js +198 -0
  18. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/node_modules_process_browser_js.4b128e94d31a81ebd209.js.map +1 -0
  19. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/remoteEntry.9a70f033717ba8689564.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/remoteEntry.c7d9d8635826165de52e.js +23 -23
  20. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/remoteEntry.c7d9d8635826165de52e.js.map +1 -0
  21. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_apis_signOut_mjs-node_module-75790d.688c25857e7b81b1740f.js +533 -0
  22. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_apis_signOut_mjs-node_module-75790d.688c25857e7b81b1740f.js.map +1 -0
  23. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_tokenProvider_tokenProvider_mjs.16430abf3466c3153f59.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_tokenProvider_tokenProvider_-72f1c8.a917210f057fcfe224ad.js +2977 -610
  24. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_tokenProvider_tokenProvider_-72f1c8.a917210f057fcfe224ad.js.map +1 -0
  25. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_ui-react_dist_esm_index_mjs.61289bff0db44828605b.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_ui-react_dist_esm_index_mjs.4fcecd65bef9e9847609.js +1 -481
  26. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_ui-react_dist_esm_index_mjs.4fcecd65bef9e9847609.js.map +1 -0
  27. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_core_dist_esm_singleton_apis_fetchAuthSession_mjs-node_modul-758875.dc495fd682071d97070c.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_react-dom_client_js-node_modules_aws-amplify_ui-react_dist_styles_css.b43d4249e4d3dac9ad7b.js +2 -60
  28. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_react-dom_client_js-node_modules_aws-amplify_ui-react_dist_styles_css.b43d4249e4d3dac9ad7b.js.map +1 -0
  29. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_semver_index_js.9795f79265ddb416864b.js → mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_semver_index_js.3f6754ac5116d47de76b.js +2 -240
  30. mito_ai-0.1.42.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_semver_index_js.3f6754ac5116d47de76b.js.map +1 -0
  31. {mito_ai-0.1.41.dist-info → mito_ai-0.1.42.dist-info}/METADATA +1 -1
  32. {mito_ai-0.1.41.dist-info → mito_ai-0.1.42.dist-info}/RECORD +44 -40
  33. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/lib_index_js.01a962c68c8fae380f30.js.map +0 -1
  34. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/node_modules_aws-amplify_core_dist_esm_singleton_apis_fetchAuthSession_mjs.182232e7bc6311fe4528.js +0 -63
  35. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/node_modules_aws-amplify_core_dist_esm_singleton_apis_fetchAuthSession_mjs.182232e7bc6311fe4528.js.map +0 -1
  36. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/remoteEntry.9a70f033717ba8689564.js.map +0 -1
  37. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_tokenProvider_tokenProvider_mjs.16430abf3466c3153f59.js.map +0 -1
  38. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_core_dist_esm_singleton_Amplify_mjs.3c0035b95fe369aede82.js +0 -2345
  39. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_core_dist_esm_singleton_Amplify_mjs.3c0035b95fe369aede82.js.map +0 -1
  40. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_core_dist_esm_singleton_apis_fetchAuthSession_mjs-node_modul-758875.dc495fd682071d97070c.js.map +0 -1
  41. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_ui-react_dist_esm_index_mjs.61289bff0db44828605b.js.map +0 -1
  42. mito_ai-0.1.41.data/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_semver_index_js.9795f79265ddb416864b.js.map +0 -1
  43. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/etc/jupyter/jupyter_server_config.d/mito_ai.json +0 -0
  44. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/schemas/mito_ai/toolbar-buttons.json +0 -0
  45. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/style.js +0 -0
  46. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/style_index_js.5876024bb17dbd6a3ee6.js +0 -0
  47. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/style_index_js.5876024bb17dbd6a3ee6.js.map +0 -0
  48. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_dist_esm_index_mjs.6bac1a8c4cc93f15f6b7.js +0 -0
  49. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_aws-amplify_dist_esm_index_mjs.6bac1a8c4cc93f15f6b7.js.map +0 -0
  50. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_vscode-diff_dist_index_js.ea55f1f9346638aafbcf.js +0 -0
  51. {mito_ai-0.1.41.data → mito_ai-0.1.42.data}/data/share/jupyter/labextensions/mito_ai/static/vendors-node_modules_vscode-diff_dist_index_js.ea55f1f9346638aafbcf.js.map +0 -0
  52. {mito_ai-0.1.41.dist-info → mito_ai-0.1.42.dist-info}/WHEEL +0 -0
  53. {mito_ai-0.1.41.dist-info → mito_ai-0.1.42.dist-info}/entry_points.txt +0 -0
  54. {mito_ai-0.1.41.dist-info → mito_ai-0.1.42.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,533 @@
1
+ "use strict";
2
+ (self["webpackChunkmito_ai"] = self["webpackChunkmito_ai"] || []).push([["vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_apis_signOut_mjs-node_module-75790d"],{
3
+
4
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs":
5
+ /*!*******************************************************************************************************************************************!*\
6
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs ***!
7
+ \*******************************************************************************************************************************************/
8
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ createGlobalSignOutClient: () => (/* binding */ createGlobalSignOutClient)
13
+ /* harmony export */ });
14
+ /* harmony import */ var _aws_amplify_core_internals_aws_client_utils_composers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core/internals/aws-client-utils/composers */ "./node_modules/@aws-amplify/core/dist/esm/clients/internal/composeServiceApi.mjs");
15
+ /* harmony import */ var _shared_handler_cognitoUserPoolTransferHandler_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shared/handler/cognitoUserPoolTransferHandler.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs");
16
+ /* harmony import */ var _shared_serde_createUserPoolSerializer_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/serde/createUserPoolSerializer.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.mjs");
17
+ /* harmony import */ var _shared_serde_createUserPoolDeserializer_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared/serde/createUserPoolDeserializer.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.mjs");
18
+ /* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/constants.mjs");
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
28
+ // SPDX-License-Identifier: Apache-2.0
29
+ const createGlobalSignOutClient = (config) => (0,_aws_amplify_core_internals_aws_client_utils_composers__WEBPACK_IMPORTED_MODULE_0__.composeServiceApi)(_shared_handler_cognitoUserPoolTransferHandler_mjs__WEBPACK_IMPORTED_MODULE_1__.cognitoUserPoolTransferHandler, (0,_shared_serde_createUserPoolSerializer_mjs__WEBPACK_IMPORTED_MODULE_2__.createUserPoolSerializer)('GlobalSignOut'), (0,_shared_serde_createUserPoolDeserializer_mjs__WEBPACK_IMPORTED_MODULE_3__.createUserPoolDeserializer)(), {
30
+ ..._constants_mjs__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_SERVICE_CLIENT_API_CONFIG,
31
+ ...config,
32
+ });
33
+
34
+
35
+ //# sourceMappingURL=createGlobalSignOutClient.mjs.map
36
+
37
+
38
+ /***/ }),
39
+
40
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs":
41
+ /*!*****************************************************************************************************************************************!*\
42
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs ***!
43
+ \*****************************************************************************************************************************************/
44
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45
+
46
+ __webpack_require__.r(__webpack_exports__);
47
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48
+ /* harmony export */ createRevokeTokenClient: () => (/* binding */ createRevokeTokenClient)
49
+ /* harmony export */ });
50
+ /* harmony import */ var _aws_amplify_core_internals_aws_client_utils_composers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core/internals/aws-client-utils/composers */ "./node_modules/@aws-amplify/core/dist/esm/clients/internal/composeServiceApi.mjs");
51
+ /* harmony import */ var _shared_handler_cognitoUserPoolTransferHandler_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shared/handler/cognitoUserPoolTransferHandler.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs");
52
+ /* harmony import */ var _shared_serde_createUserPoolSerializer_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/serde/createUserPoolSerializer.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.mjs");
53
+ /* harmony import */ var _shared_serde_createUserPoolDeserializer_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared/serde/createUserPoolDeserializer.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.mjs");
54
+ /* harmony import */ var _constants_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/constants.mjs");
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
64
+ // SPDX-License-Identifier: Apache-2.0
65
+ const createRevokeTokenClient = (config) => (0,_aws_amplify_core_internals_aws_client_utils_composers__WEBPACK_IMPORTED_MODULE_0__.composeServiceApi)(_shared_handler_cognitoUserPoolTransferHandler_mjs__WEBPACK_IMPORTED_MODULE_1__.cognitoUserPoolTransferHandler, (0,_shared_serde_createUserPoolSerializer_mjs__WEBPACK_IMPORTED_MODULE_2__.createUserPoolSerializer)('RevokeToken'), (0,_shared_serde_createUserPoolDeserializer_mjs__WEBPACK_IMPORTED_MODULE_3__.createUserPoolDeserializer)(), {
66
+ ..._constants_mjs__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_SERVICE_CLIENT_API_CONFIG,
67
+ ...config,
68
+ });
69
+
70
+
71
+ //# sourceMappingURL=createRevokeTokenClient.mjs.map
72
+
73
+
74
+ /***/ }),
75
+
76
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/signOut.mjs":
77
+ /*!************************************************************************************!*\
78
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/signOut.mjs ***!
79
+ \************************************************************************************/
80
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
81
+
82
+ __webpack_require__.r(__webpack_exports__);
83
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
84
+ /* harmony export */ signOut: () => (/* binding */ signOut)
85
+ /* harmony export */ });
86
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "./node_modules/@aws-amplify/core/dist/esm/Logger/ConsoleLogger.mjs");
87
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "./node_modules/@aws-amplify/core/dist/esm/singleton/Amplify.mjs");
88
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/core */ "./node_modules/@aws-amplify/core/dist/esm/storage/index.mjs");
89
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-amplify/core */ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/clearCredentials.mjs");
90
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/Hub/index.mjs");
91
+ /* harmony import */ var _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/singleton/Auth/utils/index.mjs");
92
+ /* harmony import */ var _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/Platform/types.mjs");
93
+ /* harmony import */ var _utils_getAuthUserAgentValue_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../utils/getAuthUserAgentValue.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/utils/getAuthUserAgentValue.mjs");
94
+ /* harmony import */ var _errors_AuthError_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../errors/AuthError.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/errors/AuthError.mjs");
95
+ /* harmony import */ var _utils_signInWithRedirectStore_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/signInWithRedirectStore.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/signInWithRedirectStore.mjs");
96
+ /* harmony import */ var _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tokenProvider/tokenProvider.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/tokenProvider/tokenProvider.mjs");
97
+ /* harmony import */ var _foundation_parsers_regionParsers_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../foundation/parsers/regionParsers.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/parsers/regionParsers.mjs");
98
+ /* harmony import */ var _utils_types_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/types.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/types.mjs");
99
+ /* harmony import */ var _aws_crypto_sha256_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/sha256-js */ "./node_modules/@aws-crypto/sha256-js/build/module/index.js");
100
+ /* harmony import */ var _utils_oauth_handleOAuthSignOut_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/oauth/handleOAuthSignOut.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/handleOAuthSignOut.mjs");
101
+ /* harmony import */ var _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../errors/constants.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/errors/constants.mjs");
102
+ /* harmony import */ var _foundation_factories_serviceClients_cognitoIdentityProvider_createRevokeTokenClient_mjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs");
103
+ /* harmony import */ var _foundation_factories_serviceClients_cognitoIdentityProvider_createGlobalSignOutClient_mjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs");
104
+ /* harmony import */ var _factories_createCognitoUserPoolEndpointResolver_mjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../factories/createCognitoUserPoolEndpointResolver.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/factories/createCognitoUserPoolEndpointResolver.mjs");
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
132
+ // SPDX-License-Identifier: Apache-2.0
133
+ const logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__.ConsoleLogger('Auth');
134
+ /**
135
+ * Signs a user out
136
+ *
137
+ * @param input - The SignOutInput object
138
+ * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
139
+ */
140
+ async function signOut(input) {
141
+ const cognitoConfig = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__.Amplify.getConfig().Auth?.Cognito;
142
+ (0,_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_3__.assertTokenProviderConfig)(cognitoConfig);
143
+ if (input?.global) {
144
+ await globalSignOut(cognitoConfig);
145
+ }
146
+ else {
147
+ await clientSignOut(cognitoConfig);
148
+ }
149
+ let hasOAuthConfig;
150
+ try {
151
+ (0,_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_3__.assertOAuthConfig)(cognitoConfig);
152
+ hasOAuthConfig = true;
153
+ }
154
+ catch (err) {
155
+ hasOAuthConfig = false;
156
+ }
157
+ if (hasOAuthConfig) {
158
+ const oAuthStore = new _utils_signInWithRedirectStore_mjs__WEBPACK_IMPORTED_MODULE_4__.DefaultOAuthStore(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__.defaultStorage);
159
+ oAuthStore.setAuthConfig(cognitoConfig);
160
+ const { type } = (await (0,_utils_oauth_handleOAuthSignOut_mjs__WEBPACK_IMPORTED_MODULE_6__.handleOAuthSignOut)(cognitoConfig, oAuthStore, _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_7__.tokenOrchestrator, input?.oauth?.redirectUrl)) ?? {};
161
+ if (type === 'error') {
162
+ throw new _errors_AuthError_mjs__WEBPACK_IMPORTED_MODULE_8__.AuthError({
163
+ name: _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_9__.OAUTH_SIGNOUT_EXCEPTION,
164
+ message: `An error occurred when attempting to log out from OAuth provider.`,
165
+ });
166
+ }
167
+ }
168
+ else {
169
+ // complete sign out
170
+ _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_7__.tokenOrchestrator.clearTokens();
171
+ await (0,_aws_amplify_core__WEBPACK_IMPORTED_MODULE_10__.clearCredentials)();
172
+ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_11__.Hub.dispatch('auth', { event: 'signedOut' }, 'Auth', _aws_amplify_core__WEBPACK_IMPORTED_MODULE_11__.AMPLIFY_SYMBOL);
173
+ }
174
+ }
175
+ async function clientSignOut(cognitoConfig) {
176
+ try {
177
+ const { userPoolEndpoint, userPoolId, userPoolClientId } = cognitoConfig;
178
+ const authTokens = await _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_7__.tokenOrchestrator.getTokenStore().loadTokens();
179
+ (0,_utils_types_mjs__WEBPACK_IMPORTED_MODULE_12__.assertAuthTokensWithRefreshToken)(authTokens);
180
+ if (isSessionRevocable(authTokens.accessToken)) {
181
+ const revokeToken = (0,_foundation_factories_serviceClients_cognitoIdentityProvider_createRevokeTokenClient_mjs__WEBPACK_IMPORTED_MODULE_13__.createRevokeTokenClient)({
182
+ endpointResolver: (0,_factories_createCognitoUserPoolEndpointResolver_mjs__WEBPACK_IMPORTED_MODULE_14__.createCognitoUserPoolEndpointResolver)({
183
+ endpointOverride: userPoolEndpoint,
184
+ }),
185
+ });
186
+ await revokeToken({
187
+ region: (0,_foundation_parsers_regionParsers_mjs__WEBPACK_IMPORTED_MODULE_15__.getRegionFromUserPoolId)(userPoolId),
188
+ userAgentValue: (0,_utils_getAuthUserAgentValue_mjs__WEBPACK_IMPORTED_MODULE_16__.getAuthUserAgentValue)(_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_17__.AuthAction.SignOut),
189
+ }, {
190
+ ClientId: userPoolClientId,
191
+ Token: authTokens.refreshToken,
192
+ });
193
+ }
194
+ }
195
+ catch (err) {
196
+ // this shouldn't throw
197
+ logger.debug('Client signOut error caught but will proceed with token removal');
198
+ }
199
+ }
200
+ async function globalSignOut(cognitoConfig) {
201
+ try {
202
+ const { userPoolEndpoint, userPoolId } = cognitoConfig;
203
+ const authTokens = await _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_7__.tokenOrchestrator.getTokenStore().loadTokens();
204
+ (0,_utils_types_mjs__WEBPACK_IMPORTED_MODULE_12__.assertAuthTokens)(authTokens);
205
+ const globalSignOutClient = (0,_foundation_factories_serviceClients_cognitoIdentityProvider_createGlobalSignOutClient_mjs__WEBPACK_IMPORTED_MODULE_18__.createGlobalSignOutClient)({
206
+ endpointResolver: (0,_factories_createCognitoUserPoolEndpointResolver_mjs__WEBPACK_IMPORTED_MODULE_14__.createCognitoUserPoolEndpointResolver)({
207
+ endpointOverride: userPoolEndpoint,
208
+ }),
209
+ });
210
+ await globalSignOutClient({
211
+ region: (0,_foundation_parsers_regionParsers_mjs__WEBPACK_IMPORTED_MODULE_15__.getRegionFromUserPoolId)(userPoolId),
212
+ userAgentValue: (0,_utils_getAuthUserAgentValue_mjs__WEBPACK_IMPORTED_MODULE_16__.getAuthUserAgentValue)(_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_17__.AuthAction.SignOut),
213
+ }, {
214
+ AccessToken: authTokens.accessToken.toString(),
215
+ });
216
+ }
217
+ catch (err) {
218
+ // it should not throw
219
+ logger.debug('Global signOut error caught but will proceed with token removal');
220
+ }
221
+ }
222
+ const isSessionRevocable = (token) => !!token?.payload?.origin_jti;
223
+
224
+
225
+ //# sourceMappingURL=signOut.mjs.map
226
+
227
+
228
+ /***/ }),
229
+
230
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/completeOAuthSignOut.mjs":
231
+ /*!********************************************************************************************************!*\
232
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/completeOAuthSignOut.mjs ***!
233
+ \********************************************************************************************************/
234
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
235
+
236
+ __webpack_require__.r(__webpack_exports__);
237
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
238
+ /* harmony export */ completeOAuthSignOut: () => (/* binding */ completeOAuthSignOut)
239
+ /* harmony export */ });
240
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/clearCredentials.mjs");
241
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/Hub/index.mjs");
242
+ /* harmony import */ var _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../tokenProvider/tokenProvider.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/tokenProvider/tokenProvider.mjs");
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
251
+ // SPDX-License-Identifier: Apache-2.0
252
+ const completeOAuthSignOut = async (store) => {
253
+ await store.clearOAuthData();
254
+ _tokenProvider_tokenProvider_mjs__WEBPACK_IMPORTED_MODULE_0__.tokenOrchestrator.clearTokens();
255
+ await (0,_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__.clearCredentials)();
256
+ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__.Hub.dispatch('auth', { event: 'signedOut' }, 'Auth', _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__.AMPLIFY_SYMBOL);
257
+ };
258
+
259
+
260
+ //# sourceMappingURL=completeOAuthSignOut.mjs.map
261
+
262
+
263
+ /***/ }),
264
+
265
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs":
266
+ /*!**************************************************************************************************!*\
267
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs ***!
268
+ \**************************************************************************************************/
269
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
270
+
271
+ __webpack_require__.r(__webpack_exports__);
272
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
273
+ /* harmony export */ getRedirectUrl: () => (/* binding */ getRedirectUrl)
274
+ /* harmony export */ });
275
+ /* harmony import */ var _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../errors/constants.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/errors/constants.mjs");
276
+
277
+
278
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
279
+ // SPDX-License-Identifier: Apache-2.0
280
+ /** @internal */
281
+ function getRedirectUrl(redirects, preferredRedirectUrl) {
282
+ if (preferredRedirectUrl) {
283
+ const redirectUrl = redirects?.find(redirect => redirect === preferredRedirectUrl);
284
+ if (!redirectUrl) {
285
+ throw _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_0__.invalidPreferredRedirectUrlException;
286
+ }
287
+ return redirectUrl;
288
+ }
289
+ else {
290
+ const redirectUrlFromTheSameOrigin = redirects?.find(isSameOriginAndPathName) ??
291
+ redirects?.find(isTheSameDomain);
292
+ const redirectUrlFromDifferentOrigin = redirects?.find(isHttps) ?? redirects?.find(isHttp);
293
+ if (redirectUrlFromTheSameOrigin) {
294
+ return redirectUrlFromTheSameOrigin;
295
+ }
296
+ else if (redirectUrlFromDifferentOrigin) {
297
+ throw _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_0__.invalidOriginException;
298
+ }
299
+ throw _errors_constants_mjs__WEBPACK_IMPORTED_MODULE_0__.invalidRedirectException;
300
+ }
301
+ }
302
+ // origin + pathname => https://example.com/app
303
+ const isSameOriginAndPathName = (redirect) => redirect.startsWith(String(window.location.origin + (window.location.pathname || '/')));
304
+ // domain => outlook.live.com, github.com
305
+ const isTheSameDomain = (redirect) => redirect.includes(String(window.location.hostname));
306
+ const isHttp = (redirect) => redirect.startsWith('http://');
307
+ const isHttps = (redirect) => redirect.startsWith('https://');
308
+
309
+
310
+ //# sourceMappingURL=getRedirectUrl.mjs.map
311
+
312
+
313
+ /***/ }),
314
+
315
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/handleOAuthSignOut.mjs":
316
+ /*!******************************************************************************************************!*\
317
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/handleOAuthSignOut.mjs ***!
318
+ \******************************************************************************************************/
319
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
320
+
321
+ __webpack_require__.r(__webpack_exports__);
322
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
323
+ /* harmony export */ handleOAuthSignOut: () => (/* binding */ handleOAuthSignOut)
324
+ /* harmony export */ });
325
+ /* harmony import */ var _completeOAuthSignOut_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./completeOAuthSignOut.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/completeOAuthSignOut.mjs");
326
+ /* harmony import */ var _oAuthSignOutRedirect_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./oAuthSignOutRedirect.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/oAuthSignOutRedirect.mjs");
327
+
328
+
329
+
330
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
331
+ // SPDX-License-Identifier: Apache-2.0
332
+ const handleOAuthSignOut = async (cognitoConfig, store, tokenOrchestrator, redirectUrl) => {
333
+ const { isOAuthSignIn } = await store.loadOAuthSignIn();
334
+ const oauthMetadata = await tokenOrchestrator.getOAuthMetadata();
335
+ // Clear everything before attempting to visted logout endpoint since the current application
336
+ // state could be wiped away on redirect
337
+ await (0,_completeOAuthSignOut_mjs__WEBPACK_IMPORTED_MODULE_0__.completeOAuthSignOut)(store);
338
+ // The isOAuthSignIn flag is propagated by the oAuthToken store which manages oauth keys in local storage only.
339
+ // These keys are used to determine if a user is in an inflight or signedIn oauth states.
340
+ // However, this behavior represents an issue when 2 apps share the same set of tokens in Cookie storage because the app that didn't
341
+ // start the OAuth will not have access to the oauth keys.
342
+ // A heuristic solution is to add oauth metadata to the tokenOrchestrator which will have access to the underlying
343
+ // storage mechanism that is used by Amplify.
344
+ if (isOAuthSignIn || oauthMetadata?.oauthSignIn) {
345
+ // On web, this will always end up being a void action
346
+ return (0,_oAuthSignOutRedirect_mjs__WEBPACK_IMPORTED_MODULE_1__.oAuthSignOutRedirect)(cognitoConfig, false, redirectUrl);
347
+ }
348
+ };
349
+
350
+
351
+ //# sourceMappingURL=handleOAuthSignOut.mjs.map
352
+
353
+
354
+ /***/ }),
355
+
356
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/oAuthSignOutRedirect.mjs":
357
+ /*!********************************************************************************************************!*\
358
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/oAuthSignOutRedirect.mjs ***!
359
+ \********************************************************************************************************/
360
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
361
+
362
+ __webpack_require__.r(__webpack_exports__);
363
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
364
+ /* harmony export */ oAuthSignOutRedirect: () => (/* binding */ oAuthSignOutRedirect)
365
+ /* harmony export */ });
366
+ /* harmony import */ var _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/singleton/Auth/utils/index.mjs");
367
+ /* harmony import */ var _utils_openAuthSession_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/openAuthSession.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/utils/openAuthSession.mjs");
368
+ /* harmony import */ var _getRedirectUrl_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getRedirectUrl.mjs */ "./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs");
369
+
370
+
371
+
372
+
373
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
374
+ // SPDX-License-Identifier: Apache-2.0
375
+ const oAuthSignOutRedirect = async (authConfig, preferPrivateSession = false, redirectUrl) => {
376
+ (0,_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_0__.assertOAuthConfig)(authConfig);
377
+ const { loginWith, userPoolClientId } = authConfig;
378
+ const { domain, redirectSignOut } = loginWith.oauth;
379
+ const signoutUri = (0,_getRedirectUrl_mjs__WEBPACK_IMPORTED_MODULE_1__.getRedirectUrl)(redirectSignOut, redirectUrl);
380
+ const oAuthLogoutEndpoint = `https://${domain}/logout?${Object.entries({
381
+ client_id: userPoolClientId,
382
+ logout_uri: encodeURIComponent(signoutUri),
383
+ })
384
+ .map(([k, v]) => `${k}=${v}`)
385
+ .join('&')}`;
386
+ return (0,_utils_openAuthSession_mjs__WEBPACK_IMPORTED_MODULE_2__.openAuthSession)(oAuthLogoutEndpoint);
387
+ };
388
+
389
+
390
+ //# sourceMappingURL=oAuthSignOutRedirect.mjs.map
391
+
392
+
393
+ /***/ }),
394
+
395
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/utils/getAuthUserAgentValue.mjs":
396
+ /*!*********************************************************************************!*\
397
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/utils/getAuthUserAgentValue.mjs ***!
398
+ \*********************************************************************************/
399
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
400
+
401
+ __webpack_require__.r(__webpack_exports__);
402
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
403
+ /* harmony export */ getAuthUserAgentValue: () => (/* binding */ getAuthUserAgentValue)
404
+ /* harmony export */ });
405
+ /* harmony import */ var _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/Platform/index.mjs");
406
+ /* harmony import */ var _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core/internals/utils */ "./node_modules/@aws-amplify/core/dist/esm/Platform/types.mjs");
407
+
408
+
409
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
410
+ // SPDX-License-Identifier: Apache-2.0
411
+ const getAuthUserAgentValue = (action, customUserAgentDetails) => (0,_aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_0__.getAmplifyUserAgent)({
412
+ category: _aws_amplify_core_internals_utils__WEBPACK_IMPORTED_MODULE_1__.Category.Auth,
413
+ action,
414
+ ...customUserAgentDetails,
415
+ });
416
+
417
+
418
+ //# sourceMappingURL=getAuthUserAgentValue.mjs.map
419
+
420
+
421
+ /***/ }),
422
+
423
+ /***/ "./node_modules/@aws-amplify/auth/dist/esm/utils/openAuthSession.mjs":
424
+ /*!***************************************************************************!*\
425
+ !*** ./node_modules/@aws-amplify/auth/dist/esm/utils/openAuthSession.mjs ***!
426
+ \***************************************************************************/
427
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
428
+
429
+ __webpack_require__.r(__webpack_exports__);
430
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
431
+ /* harmony export */ openAuthSession: () => (/* binding */ openAuthSession)
432
+ /* harmony export */ });
433
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
434
+ // SPDX-License-Identifier: Apache-2.0
435
+ const openAuthSession = async (url) => {
436
+ if (!window?.location) {
437
+ return;
438
+ }
439
+ // enforce HTTPS
440
+ window.location.href = url.replace('http://', 'https://');
441
+ };
442
+
443
+
444
+ //# sourceMappingURL=openAuthSession.mjs.map
445
+
446
+
447
+ /***/ }),
448
+
449
+ /***/ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/clearCredentials.mjs":
450
+ /*!*************************************************************************************!*\
451
+ !*** ./node_modules/@aws-amplify/core/dist/esm/singleton/apis/clearCredentials.mjs ***!
452
+ \*************************************************************************************/
453
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
454
+
455
+ __webpack_require__.r(__webpack_exports__);
456
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
457
+ /* harmony export */ clearCredentials: () => (/* binding */ clearCredentials)
458
+ /* harmony export */ });
459
+ /* harmony import */ var _Amplify_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Amplify.mjs */ "./node_modules/@aws-amplify/core/dist/esm/singleton/Amplify.mjs");
460
+
461
+
462
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
463
+ // SPDX-License-Identifier: Apache-2.0
464
+ function clearCredentials() {
465
+ return _Amplify_mjs__WEBPACK_IMPORTED_MODULE_0__.Amplify.Auth.clearCredentials();
466
+ }
467
+
468
+
469
+ //# sourceMappingURL=clearCredentials.mjs.map
470
+
471
+
472
+ /***/ }),
473
+
474
+ /***/ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/fetchAuthSession.mjs":
475
+ /*!*************************************************************************************!*\
476
+ !*** ./node_modules/@aws-amplify/core/dist/esm/singleton/apis/fetchAuthSession.mjs ***!
477
+ \*************************************************************************************/
478
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
479
+
480
+ __webpack_require__.r(__webpack_exports__);
481
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
482
+ /* harmony export */ fetchAuthSession: () => (/* binding */ fetchAuthSession)
483
+ /* harmony export */ });
484
+ /* harmony import */ var _Amplify_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Amplify.mjs */ "./node_modules/@aws-amplify/core/dist/esm/singleton/Amplify.mjs");
485
+ /* harmony import */ var _internal_fetchAuthSession_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/fetchAuthSession.mjs */ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/internal/fetchAuthSession.mjs");
486
+
487
+
488
+
489
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
490
+ // SPDX-License-Identifier: Apache-2.0
491
+ /**
492
+ * Fetch the auth session including the tokens and credentials if they are available. By default it
493
+ * will automatically refresh expired auth tokens if a valid refresh token is present. You can force a refresh
494
+ * of non-expired tokens with `{ forceRefresh: true }` input.
495
+ *
496
+ * @param options - Options configuring the fetch behavior.
497
+ * @throws {@link AuthError} - Throws error when session information cannot be refreshed.
498
+ * @returns Promise<AuthSession>
499
+ */
500
+ const fetchAuthSession = (options) => {
501
+ return (0,_internal_fetchAuthSession_mjs__WEBPACK_IMPORTED_MODULE_0__.fetchAuthSession)(_Amplify_mjs__WEBPACK_IMPORTED_MODULE_1__.Amplify, options);
502
+ };
503
+
504
+
505
+ //# sourceMappingURL=fetchAuthSession.mjs.map
506
+
507
+
508
+ /***/ }),
509
+
510
+ /***/ "./node_modules/@aws-amplify/core/dist/esm/singleton/apis/internal/fetchAuthSession.mjs":
511
+ /*!**********************************************************************************************!*\
512
+ !*** ./node_modules/@aws-amplify/core/dist/esm/singleton/apis/internal/fetchAuthSession.mjs ***!
513
+ \**********************************************************************************************/
514
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
515
+
516
+ __webpack_require__.r(__webpack_exports__);
517
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
518
+ /* harmony export */ fetchAuthSession: () => (/* binding */ fetchAuthSession)
519
+ /* harmony export */ });
520
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
521
+ // SPDX-License-Identifier: Apache-2.0
522
+ const fetchAuthSession = (amplify, options) => {
523
+ return amplify.Auth.fetchAuthSession(options);
524
+ };
525
+
526
+
527
+ //# sourceMappingURL=fetchAuthSession.mjs.map
528
+
529
+
530
+ /***/ })
531
+
532
+ }]);
533
+ //# sourceMappingURL=vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_apis_signOut_mjs-node_module-75790d.688c25857e7b81b1740f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendors-node_modules_aws-amplify_auth_dist_esm_providers_cognito_apis_signOut_mjs-node_module-75790d.688c25857e7b81b1740f.js","mappings":"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","sources":["webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/signOut.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/completeOAuthSignOut.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/getRedirectUrl.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/handleOAuthSignOut.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/providers/cognito/utils/oauth/oAuthSignOutRedirect.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/utils/getAuthUserAgentValue.mjs","webpack://mito_ai/./node_modules/@aws-amplify/auth/dist/esm/utils/openAuthSession.mjs","webpack://mito_ai/./node_modules/@aws-amplify/core/dist/esm/singleton/apis/clearCredentials.mjs","webpack://mito_ai/./node_modules/@aws-amplify/core/dist/esm/singleton/apis/fetchAuthSession.mjs","webpack://mito_ai/./node_modules/@aws-amplify/core/dist/esm/singleton/apis/internal/fetchAuthSession.mjs"],"sourcesContent":["import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';\nimport { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '@aws-amplify/core/internals/utils';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst createGlobalSignOutClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('GlobalSignOut'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n\nexport { createGlobalSignOutClient };\n//# sourceMappingURL=createGlobalSignOutClient.mjs.map\n","import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';\nimport { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '@aws-amplify/core/internals/utils';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst createRevokeTokenClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('RevokeToken'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n\nexport { createRevokeTokenClient };\n//# sourceMappingURL=createRevokeTokenClient.mjs.map\n","import { ConsoleLogger, Amplify, clearCredentials, Hub, defaultStorage } from '@aws-amplify/core';\nimport { assertTokenProviderConfig, assertOAuthConfig, AMPLIFY_SYMBOL, AuthAction } from '@aws-amplify/core/internals/utils';\nimport { getAuthUserAgentValue } from '../../../utils/getAuthUserAgentValue.mjs';\nimport '../utils/refreshAuthTokens.mjs';\nimport { AuthError } from '../../../errors/AuthError.mjs';\nimport '../tokenProvider/errorHelpers.mjs';\nimport { DefaultOAuthStore } from '../utils/signInWithRedirectStore.mjs';\nimport { tokenOrchestrator } from '../tokenProvider/tokenProvider.mjs';\nimport { getRegionFromUserPoolId } from '../../../foundation/parsers/regionParsers.mjs';\nimport { assertAuthTokens, assertAuthTokensWithRefreshToken } from '../utils/types.mjs';\nimport '@aws-crypto/sha256-js';\nimport { handleOAuthSignOut } from '../utils/oauth/handleOAuthSignOut.mjs';\nimport { OAUTH_SIGNOUT_EXCEPTION } from '../../../errors/constants.mjs';\nimport '../../../Errors.mjs';\nimport '../../../common/AuthErrorStrings.mjs';\nimport '../../../types/Auth.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils/composers';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/constants.mjs';\nimport { createRevokeTokenClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.mjs';\nimport '../../../errors/types/validation.mjs';\nimport '../types/errors.mjs';\nimport { createGlobalSignOutClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.mjs';\nimport { createCognitoUserPoolEndpointResolver } from '../factories/createCognitoUserPoolEndpointResolver.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst logger = new ConsoleLogger('Auth');\n/**\n * Signs a user out\n *\n * @param input - The SignOutInput object\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function signOut(input) {\n const cognitoConfig = Amplify.getConfig().Auth?.Cognito;\n assertTokenProviderConfig(cognitoConfig);\n if (input?.global) {\n await globalSignOut(cognitoConfig);\n }\n else {\n await clientSignOut(cognitoConfig);\n }\n let hasOAuthConfig;\n try {\n assertOAuthConfig(cognitoConfig);\n hasOAuthConfig = true;\n }\n catch (err) {\n hasOAuthConfig = false;\n }\n if (hasOAuthConfig) {\n const oAuthStore = new DefaultOAuthStore(defaultStorage);\n oAuthStore.setAuthConfig(cognitoConfig);\n const { type } = (await handleOAuthSignOut(cognitoConfig, oAuthStore, tokenOrchestrator, input?.oauth?.redirectUrl)) ?? {};\n if (type === 'error') {\n throw new AuthError({\n name: OAUTH_SIGNOUT_EXCEPTION,\n message: `An error occurred when attempting to log out from OAuth provider.`,\n });\n }\n }\n else {\n // complete sign out\n tokenOrchestrator.clearTokens();\n await clearCredentials();\n Hub.dispatch('auth', { event: 'signedOut' }, 'Auth', AMPLIFY_SYMBOL);\n }\n}\nasync function clientSignOut(cognitoConfig) {\n try {\n const { userPoolEndpoint, userPoolId, userPoolClientId } = cognitoConfig;\n const authTokens = await tokenOrchestrator.getTokenStore().loadTokens();\n assertAuthTokensWithRefreshToken(authTokens);\n if (isSessionRevocable(authTokens.accessToken)) {\n const revokeToken = createRevokeTokenClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n await revokeToken({\n region: getRegionFromUserPoolId(userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.SignOut),\n }, {\n ClientId: userPoolClientId,\n Token: authTokens.refreshToken,\n });\n }\n }\n catch (err) {\n // this shouldn't throw\n logger.debug('Client signOut error caught but will proceed with token removal');\n }\n}\nasync function globalSignOut(cognitoConfig) {\n try {\n const { userPoolEndpoint, userPoolId } = cognitoConfig;\n const authTokens = await tokenOrchestrator.getTokenStore().loadTokens();\n assertAuthTokens(authTokens);\n const globalSignOutClient = createGlobalSignOutClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n await globalSignOutClient({\n region: getRegionFromUserPoolId(userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.SignOut),\n }, {\n AccessToken: authTokens.accessToken.toString(),\n });\n }\n catch (err) {\n // it should not throw\n logger.debug('Global signOut error caught but will proceed with token removal');\n }\n}\nconst isSessionRevocable = (token) => !!token?.payload?.origin_jti;\n\nexport { signOut };\n//# sourceMappingURL=signOut.mjs.map\n","import { clearCredentials, Hub } from '@aws-amplify/core';\nimport { AMPLIFY_SYMBOL } from '@aws-amplify/core/internals/utils';\nimport '../refreshAuthTokens.mjs';\nimport '../../tokenProvider/errorHelpers.mjs';\nimport '../types.mjs';\nimport { tokenOrchestrator } from '../../tokenProvider/tokenProvider.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst completeOAuthSignOut = async (store) => {\n await store.clearOAuthData();\n tokenOrchestrator.clearTokens();\n await clearCredentials();\n Hub.dispatch('auth', { event: 'signedOut' }, 'Auth', AMPLIFY_SYMBOL);\n};\n\nexport { completeOAuthSignOut };\n//# sourceMappingURL=completeOAuthSignOut.mjs.map\n","import { invalidOriginException, invalidRedirectException, invalidPreferredRedirectUrlException } from '../../../../errors/constants.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/** @internal */\nfunction getRedirectUrl(redirects, preferredRedirectUrl) {\n if (preferredRedirectUrl) {\n const redirectUrl = redirects?.find(redirect => redirect === preferredRedirectUrl);\n if (!redirectUrl) {\n throw invalidPreferredRedirectUrlException;\n }\n return redirectUrl;\n }\n else {\n const redirectUrlFromTheSameOrigin = redirects?.find(isSameOriginAndPathName) ??\n redirects?.find(isTheSameDomain);\n const redirectUrlFromDifferentOrigin = redirects?.find(isHttps) ?? redirects?.find(isHttp);\n if (redirectUrlFromTheSameOrigin) {\n return redirectUrlFromTheSameOrigin;\n }\n else if (redirectUrlFromDifferentOrigin) {\n throw invalidOriginException;\n }\n throw invalidRedirectException;\n }\n}\n// origin + pathname => https://example.com/app\nconst isSameOriginAndPathName = (redirect) => redirect.startsWith(String(window.location.origin + (window.location.pathname || '/')));\n// domain => outlook.live.com, github.com\nconst isTheSameDomain = (redirect) => redirect.includes(String(window.location.hostname));\nconst isHttp = (redirect) => redirect.startsWith('http://');\nconst isHttps = (redirect) => redirect.startsWith('https://');\n\nexport { getRedirectUrl };\n//# sourceMappingURL=getRedirectUrl.mjs.map\n","import { completeOAuthSignOut } from './completeOAuthSignOut.mjs';\nimport { oAuthSignOutRedirect } from './oAuthSignOutRedirect.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst handleOAuthSignOut = async (cognitoConfig, store, tokenOrchestrator, redirectUrl) => {\n const { isOAuthSignIn } = await store.loadOAuthSignIn();\n const oauthMetadata = await tokenOrchestrator.getOAuthMetadata();\n // Clear everything before attempting to visted logout endpoint since the current application\n // state could be wiped away on redirect\n await completeOAuthSignOut(store);\n // The isOAuthSignIn flag is propagated by the oAuthToken store which manages oauth keys in local storage only.\n // These keys are used to determine if a user is in an inflight or signedIn oauth states.\n // However, this behavior represents an issue when 2 apps share the same set of tokens in Cookie storage because the app that didn't\n // start the OAuth will not have access to the oauth keys.\n // A heuristic solution is to add oauth metadata to the tokenOrchestrator which will have access to the underlying\n // storage mechanism that is used by Amplify.\n if (isOAuthSignIn || oauthMetadata?.oauthSignIn) {\n // On web, this will always end up being a void action\n return oAuthSignOutRedirect(cognitoConfig, false, redirectUrl);\n }\n};\n\nexport { handleOAuthSignOut };\n//# sourceMappingURL=handleOAuthSignOut.mjs.map\n","import { assertOAuthConfig } from '@aws-amplify/core/internals/utils';\nimport { openAuthSession } from '../../../../utils/openAuthSession.mjs';\nimport { getRedirectUrl } from './getRedirectUrl.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst oAuthSignOutRedirect = async (authConfig, preferPrivateSession = false, redirectUrl) => {\n assertOAuthConfig(authConfig);\n const { loginWith, userPoolClientId } = authConfig;\n const { domain, redirectSignOut } = loginWith.oauth;\n const signoutUri = getRedirectUrl(redirectSignOut, redirectUrl);\n const oAuthLogoutEndpoint = `https://${domain}/logout?${Object.entries({\n client_id: userPoolClientId,\n logout_uri: encodeURIComponent(signoutUri),\n })\n .map(([k, v]) => `${k}=${v}`)\n .join('&')}`;\n return openAuthSession(oAuthLogoutEndpoint);\n};\n\nexport { oAuthSignOutRedirect };\n//# sourceMappingURL=oAuthSignOutRedirect.mjs.map\n","import { getAmplifyUserAgent, Category } from '@aws-amplify/core/internals/utils';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst getAuthUserAgentValue = (action, customUserAgentDetails) => getAmplifyUserAgent({\n category: Category.Auth,\n action,\n ...customUserAgentDetails,\n});\n\nexport { getAuthUserAgentValue };\n//# sourceMappingURL=getAuthUserAgentValue.mjs.map\n","// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst openAuthSession = async (url) => {\n if (!window?.location) {\n return;\n }\n // enforce HTTPS\n window.location.href = url.replace('http://', 'https://');\n};\n\nexport { openAuthSession };\n//# sourceMappingURL=openAuthSession.mjs.map\n","import { Amplify } from '../Amplify.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nfunction clearCredentials() {\n return Amplify.Auth.clearCredentials();\n}\n\nexport { clearCredentials };\n//# sourceMappingURL=clearCredentials.mjs.map\n","import { Amplify } from '../Amplify.mjs';\nimport { fetchAuthSession as fetchAuthSession$1 } from './internal/fetchAuthSession.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Fetch the auth session including the tokens and credentials if they are available. By default it\n * will automatically refresh expired auth tokens if a valid refresh token is present. You can force a refresh\n * of non-expired tokens with `{ forceRefresh: true }` input.\n *\n * @param options - Options configuring the fetch behavior.\n * @throws {@link AuthError} - Throws error when session information cannot be refreshed.\n * @returns Promise<AuthSession>\n */\nconst fetchAuthSession = (options) => {\n return fetchAuthSession$1(Amplify, options);\n};\n\nexport { fetchAuthSession };\n//# sourceMappingURL=fetchAuthSession.mjs.map\n","// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst fetchAuthSession = (amplify, options) => {\n return amplify.Auth.fetchAuthSession(options);\n};\n\nexport { fetchAuthSession };\n//# sourceMappingURL=fetchAuthSession.mjs.map\n"],"names":[],"sourceRoot":""}