@thunderid/browser 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/LICENSE +201 -0
  2. package/dist/FetchHttpClient.d.ts +33 -0
  3. package/dist/FetchHttpClient.d.ts.map +1 -0
  4. package/dist/ThunderIDBrowserClient.d.ts +29 -0
  5. package/dist/ThunderIDBrowserClient.d.ts.map +1 -0
  6. package/dist/__legacy__/client.d.ts +767 -0
  7. package/dist/__legacy__/client.d.ts.map +1 -0
  8. package/dist/__legacy__/clients/index.d.ts +20 -0
  9. package/dist/__legacy__/clients/index.d.ts.map +1 -0
  10. package/dist/__legacy__/clients/main-thread-client.d.ts +23 -0
  11. package/dist/__legacy__/clients/main-thread-client.d.ts.map +1 -0
  12. package/dist/__legacy__/clients/web-worker-client.d.ts +22 -0
  13. package/dist/__legacy__/clients/web-worker-client.d.ts.map +1 -0
  14. package/dist/__legacy__/constants/errors.d.ts +19 -0
  15. package/dist/__legacy__/constants/errors.d.ts.map +1 -0
  16. package/dist/__legacy__/constants/hooks.d.ts +30 -0
  17. package/dist/__legacy__/constants/hooks.d.ts.map +1 -0
  18. package/dist/__legacy__/constants/index.d.ts +24 -0
  19. package/dist/__legacy__/constants/index.d.ts.map +1 -0
  20. package/dist/__legacy__/constants/messages-types.d.ts +52 -0
  21. package/dist/__legacy__/constants/messages-types.d.ts.map +1 -0
  22. package/dist/__legacy__/constants/parameters.d.ts +22 -0
  23. package/dist/__legacy__/constants/parameters.d.ts.map +1 -0
  24. package/dist/__legacy__/constants/session-management.d.ts +26 -0
  25. package/dist/__legacy__/constants/session-management.d.ts.map +1 -0
  26. package/dist/__legacy__/constants/storage.d.ts +19 -0
  27. package/dist/__legacy__/constants/storage.d.ts.map +1 -0
  28. package/dist/__legacy__/helpers/authentication-helper.d.ts +59 -0
  29. package/dist/__legacy__/helpers/authentication-helper.d.ts.map +1 -0
  30. package/dist/__legacy__/helpers/index.d.ts +21 -0
  31. package/dist/__legacy__/helpers/index.d.ts.map +1 -0
  32. package/dist/__legacy__/helpers/session-management-helper.d.ts +21 -0
  33. package/dist/__legacy__/helpers/session-management-helper.d.ts.map +1 -0
  34. package/dist/__legacy__/helpers/spa-helper.d.ts +30 -0
  35. package/dist/__legacy__/helpers/spa-helper.d.ts.map +1 -0
  36. package/dist/__legacy__/models/client-config.d.ts +55 -0
  37. package/dist/__legacy__/models/client-config.d.ts.map +1 -0
  38. package/dist/__legacy__/models/client.d.ts +85 -0
  39. package/dist/__legacy__/models/client.d.ts.map +1 -0
  40. package/dist/__legacy__/models/http-client.d.ts +30 -0
  41. package/dist/__legacy__/models/http-client.d.ts.map +1 -0
  42. package/dist/__legacy__/models/index.d.ts +27 -0
  43. package/dist/__legacy__/models/index.d.ts.map +1 -0
  44. package/dist/__legacy__/models/message.d.ts +47 -0
  45. package/dist/__legacy__/models/message.d.ts.map +1 -0
  46. package/dist/__legacy__/models/request-custom-grant.d.ts +25 -0
  47. package/dist/__legacy__/models/request-custom-grant.d.ts.map +1 -0
  48. package/dist/__legacy__/models/session-management-helper.d.ts +24 -0
  49. package/dist/__legacy__/models/session-management-helper.d.ts.map +1 -0
  50. package/dist/__legacy__/models/sign-in.d.ts +22 -0
  51. package/dist/__legacy__/models/sign-in.d.ts.map +1 -0
  52. package/dist/__legacy__/models/sign-out-error.d.ts +22 -0
  53. package/dist/__legacy__/models/sign-out-error.d.ts.map +1 -0
  54. package/dist/__legacy__/models/storage.d.ts +39 -0
  55. package/dist/__legacy__/models/storage.d.ts.map +1 -0
  56. package/dist/__legacy__/models/web-worker.d.ts +57 -0
  57. package/dist/__legacy__/models/web-worker.d.ts.map +1 -0
  58. package/dist/__legacy__/stores/index.d.ts +21 -0
  59. package/dist/__legacy__/stores/index.d.ts.map +1 -0
  60. package/dist/__legacy__/stores/local-store.d.ts +24 -0
  61. package/dist/__legacy__/stores/local-store.d.ts.map +1 -0
  62. package/dist/__legacy__/stores/memory-store.d.ts +26 -0
  63. package/dist/__legacy__/stores/memory-store.d.ts.map +1 -0
  64. package/dist/__legacy__/stores/session-store.d.ts +24 -0
  65. package/dist/__legacy__/stores/session-store.d.ts.map +1 -0
  66. package/dist/__legacy__/utils/crypto-utils.d.ts +32 -0
  67. package/dist/__legacy__/utils/crypto-utils.d.ts.map +1 -0
  68. package/dist/__legacy__/utils/index.d.ts +20 -0
  69. package/dist/__legacy__/utils/index.d.ts.map +1 -0
  70. package/dist/__legacy__/utils/message-utils.d.ts +38 -0
  71. package/dist/__legacy__/utils/message-utils.d.ts.map +1 -0
  72. package/dist/__legacy__/utils/spa-utils.d.ts +108 -0
  73. package/dist/__legacy__/utils/spa-utils.d.ts.map +1 -0
  74. package/dist/__legacy__/worker/index.d.ts +20 -0
  75. package/dist/__legacy__/worker/index.d.ts.map +1 -0
  76. package/dist/__legacy__/worker/worker-core.d.ts +22 -0
  77. package/dist/__legacy__/worker/worker-core.d.ts.map +1 -0
  78. package/dist/__legacy__/worker/worker-receiver.d.ts +22 -0
  79. package/dist/__legacy__/worker/worker-receiver.d.ts.map +1 -0
  80. package/dist/cjs/index.js +5172 -0
  81. package/dist/cjs/index.js.map +1 -0
  82. package/dist/index.d.ts +45 -0
  83. package/dist/index.d.ts.map +1 -0
  84. package/dist/index.js +5136 -0
  85. package/dist/index.js.map +1 -0
  86. package/dist/models/config.d.ts +20 -0
  87. package/dist/models/config.d.ts.map +1 -0
  88. package/dist/theme/getActiveTheme.d.ts +28 -0
  89. package/dist/theme/getActiveTheme.d.ts.map +1 -0
  90. package/dist/theme/themeDetection.d.ts +41 -0
  91. package/dist/theme/themeDetection.d.ts.map +1 -0
  92. package/dist/utils/handleWebAuthnAuthentication.d.ts +98 -0
  93. package/dist/utils/handleWebAuthnAuthentication.d.ts.map +1 -0
  94. package/dist/utils/hasAuthParamsInUrl.d.ts +26 -0
  95. package/dist/utils/hasAuthParamsInUrl.d.ts.map +1 -0
  96. package/dist/utils/hasCalledForThisInstanceInUrl.d.ts +27 -0
  97. package/dist/utils/hasCalledForThisInstanceInUrl.d.ts.map +1 -0
  98. package/dist/utils/http.d.ts +51 -0
  99. package/dist/utils/http.d.ts.map +1 -0
  100. package/dist/utils/navigate.d.ts +43 -0
  101. package/dist/utils/navigate.d.ts.map +1 -0
  102. package/dist/utils/v2/resolveEmojiUrisInHtml.d.ts +30 -0
  103. package/dist/utils/v2/resolveEmojiUrisInHtml.d.ts.map +1 -0
  104. package/dist/web.worker.d.ts +20 -0
  105. package/dist/web.worker.d.ts.map +1 -0
  106. package/package.json +75 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACd,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,qBAAqB,EACtB,MAAM,GAAG,CAAC;AAEX,MAAM,WAAW,yBAAyB;IACxC,2BAA2B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACxD,6BAA6B,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,GAAG,IAAI,CAAC;IAChF,4BAA4B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACzD,2BAA2B,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACxF,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC9D,cAAc,CAAC,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,G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,MAAM,GAAG,OAAO,CAAC,EACnD,kBAAkB,CAAC,EAAE;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAC,GACrD,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;IAC3B,cAAc,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;CAC5E"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { HttpClient, HttpError, HttpRequestConfig } from '@thunderid/javascript';
19
+ import { SPACustomGrantConfig } from './request-custom-grant';
20
+ export { HttpClient } from '@thunderid/javascript';
21
+ export type { HttpError, HttpRequestConfig, HttpResponse } from '@thunderid/javascript';
22
+ export interface HttpRequestInterface {
23
+ httpClient: HttpClient;
24
+ requestConfig: HttpRequestConfig;
25
+ isHttpHandlerEnabled?: boolean;
26
+ httpErrorCallback?: (error: HttpError) => void | Promise<void>;
27
+ httpFinishCallback?: () => void;
28
+ enableRetrievingSignOutURLFromSession?: (config: SPACustomGrantConfig) => void;
29
+ }
30
+ //# sourceMappingURL=http-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/http-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAC,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEtF,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,qCAAqC,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAChF"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export * from './client';
19
+ export * from './message';
20
+ export * from './http-client';
21
+ export * from './web-worker';
22
+ export * from './session-management-helper';
23
+ export * from './sign-in';
24
+ export * from './sign-out-error';
25
+ export type { Config as LegacyConfig } from './client-config';
26
+ export type { SPAConfig, MainThreadClientConfig, WebWorkerClientConfig, AuthSPAClientConfig } from './client-config';
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC,YAAY,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC5D,YAAY,EAAC,SAAS,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AUTH_CODE, CHECK_SESSION_SIGNED_IN, CHECK_SESSION_SIGNED_OUT, DISABLE_HTTP_HANDLER, ENABLE_HTTP_HANDLER, END_USER_SESSION, GET_AUTH_URL, GET_BASIC_USER_INFO, GET_CONFIG_DATA, GET_CRYPTO_HELPER, GET_DECODED_IDP_ID_TOKEN, GET_DECODED_ID_TOKEN, GET_ID_TOKEN, GET_OIDC_SERVICE_ENDPOINTS, GET_SIGN_OUT_URL, HTTP_REQUEST, HTTP_REQUEST_ALL, INIT, IS_AUTHENTICATED, REFRESH_ACCESS_TOKEN, REFRESH_ACCESS_TOKEN_ERR0R, REQUEST_ACCESS_TOKEN, REQUEST_CUSTOM_GRANT, REQUEST_ERROR, REQUEST_FINISH, REQUEST_START, REQUEST_SUCCESS, REVOKE_ACCESS_TOKEN, SET_SESSION_STATE, SET_SESSION_STATE_FROM_IFRAME, SIGN_IN, SIGN_OUT, START_AUTO_REFRESH_TOKEN, UPDATE_CONFIG } from '../constants';
19
+ export interface ResponseMessage<T> {
20
+ success: boolean;
21
+ error?: string;
22
+ data?: T;
23
+ blob?: Blob;
24
+ }
25
+ export interface Message<T> {
26
+ type: MessageType;
27
+ data?: T;
28
+ instanceId?: number;
29
+ }
30
+ export interface AuthorizationInfo {
31
+ code: string;
32
+ sessionState: string;
33
+ pkce?: string;
34
+ state: string;
35
+ tokenRequestConfig?: {
36
+ params: Record<string, unknown>;
37
+ };
38
+ }
39
+ export type MessageType = typeof INIT | typeof SIGN_IN | typeof AUTH_CODE | typeof SIGN_OUT | typeof HTTP_REQUEST | typeof HTTP_REQUEST_ALL | typeof REQUEST_CUSTOM_GRANT | typeof REVOKE_ACCESS_TOKEN | typeof END_USER_SESSION | typeof REQUEST_ERROR | typeof REQUEST_FINISH | typeof REQUEST_START | typeof REQUEST_SUCCESS | typeof GET_OIDC_SERVICE_ENDPOINTS | typeof GET_BASIC_USER_INFO | typeof GET_DECODED_ID_TOKEN | typeof GET_CRYPTO_HELPER | typeof GET_DECODED_IDP_ID_TOKEN | typeof ENABLE_HTTP_HANDLER | typeof DISABLE_HTTP_HANDLER | typeof GET_AUTH_URL | typeof REQUEST_ACCESS_TOKEN | typeof IS_AUTHENTICATED | typeof GET_SIGN_OUT_URL | typeof REFRESH_ACCESS_TOKEN | typeof REFRESH_ACCESS_TOKEN_ERR0R | typeof SET_SESSION_STATE | typeof START_AUTO_REFRESH_TOKEN | typeof UPDATE_CONFIG | typeof GET_ID_TOKEN | typeof CHECK_SESSION_SIGNED_IN | typeof CHECK_SESSION_SIGNED_OUT | typeof GET_CONFIG_DATA | typeof SET_SESSION_STATE_FROM_IFRAME;
40
+ export interface CommunicationHelperInterface {
41
+ communicate: <T, R>(message: Message<T>) => Promise<R>;
42
+ }
43
+ export interface AuthorizationResponse {
44
+ authorizationURL: string;
45
+ pkce?: string;
46
+ }
47
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/message.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,OAAO,EACP,QAAQ,EACR,wBAAwB,EACxB,aAAa,EACd,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,OAAO,CAAC,CAAC;IACxB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAA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 * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { TokenExchangeRequestConfig } from '@thunderid/javascript';
19
+ /**
20
+ * SPA Custom Request Grant config model
21
+ */
22
+ export interface SPACustomGrantConfig extends TokenExchangeRequestConfig {
23
+ preventSignOutURLUpdate?: boolean;
24
+ }
25
+ //# sourceMappingURL=request-custom-grant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-custom-grant.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/request-custom-grant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACtE,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { ExtendedAuthorizeRequestUrlParams } from '@thunderid/javascript';
19
+ export interface SessionManagementHelperInterface {
20
+ initialize(clientId: string, checkSessionEndpoint: string, getSessionState: () => Promise<string>, interval: number, sessionRefreshInterval: number, redirectURL: string, getSignInUrl: (params?: ExtendedAuthorizeRequestUrlParams) => Promise<string>): void;
21
+ receivePromptNoneResponse(setSessionState?: (sessionState: string | null) => Promise<void>): Promise<boolean>;
22
+ reset(): any;
23
+ }
24
+ //# sourceMappingURL=session-management-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-management-helper.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/session-management-helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,iCAAiC,EAAC,MAAM,uBAAuB,CAAC;AAExE,MAAM,WAAW,gCAAgC;IAC/C,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,EACtC,QAAQ,EAAE,MAAM,EAChB,sBAAsB,EAAE,MAAM,EAC9B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,iCAAiC,KAAK,OAAO,CAAC,MAAM,CAAC,GAC5E,IAAI,CAAC;IACR,yBAAyB,CAAC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9G,KAAK,QAAG;CACT"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { ExtendedAuthorizeRequestUrlParams } from '@thunderid/javascript';
19
+ export type SignInConfig = ExtendedAuthorizeRequestUrlParams & {
20
+ callOnlyOnRedirect?: boolean;
21
+ };
22
+ //# sourceMappingURL=sign-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/sign-in.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,iCAAiC,EAAC,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,iCAAiC,GAAG;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export interface SignOutError {
19
+ error: string;
20
+ description: string;
21
+ }
22
+ //# sourceMappingURL=sign-out-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-out-error.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/sign-out-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ /**
19
+ * Enum for the different storage types.
20
+ */
21
+ export declare enum BrowserStorage {
22
+ /**
23
+ * Stores the session information in the local storage
24
+ */
25
+ LocalStorage = "localStorage",
26
+ /**
27
+ * Store the session information in the session storage.
28
+ */
29
+ SessionStorage = "sessionStorage",
30
+ /**
31
+ * Store the session information in the web worker.
32
+ */
33
+ WebWorker = "webWorker",
34
+ /**
35
+ * Store the session information in the browser memory.
36
+ */
37
+ BrowserMemory = "browserMemory"
38
+ }
39
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,YAAY,iBAAiB;IAC7B;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,aAAa,kBAAkB;CAChC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AuthClientConfig, AuthorizeRequestUrlParams, User, IsomorphicCrypto, TokenExchangeRequestConfig, IdToken, OIDCEndpoints } from '@thunderid/javascript';
19
+ import { HttpRequestConfig, HttpResponse, Message } from '.';
20
+ import { AuthorizationResponse, WebWorkerClientConfig } from '../..';
21
+ interface WebWorkerEvent<T> extends MessageEvent {
22
+ data: Message<T>;
23
+ }
24
+ export declare class WebWorkerClass<T> {
25
+ onmessage: (this: Worker, event: WebWorkerEvent<T>) => any;
26
+ postMessage: (message: Message<T>) => void;
27
+ }
28
+ export interface WebWorkerCoreInterface {
29
+ setHttpRequestStartCallback(callback: () => void): void;
30
+ setHttpRequestSuccessCallback(callback: (response: HttpResponse) => void): void;
31
+ setHttpRequestFinishCallback(callback: () => void): void;
32
+ httpRequest(config: HttpRequestConfig): Promise<HttpResponse>;
33
+ httpRequestAll(configs: HttpRequestConfig[]): Promise<HttpResponse[] | undefined>;
34
+ enableHttpHandler(): void;
35
+ disableHttpHandler(): void;
36
+ getSignInUrl(params?: AuthorizeRequestUrlParams, afterSignInUrl?: string): Promise<AuthorizationResponse>;
37
+ requestAccessToken(authorizationCode?: string, sessionState?: string, pkce?: string, state?: string): Promise<User>;
38
+ signOut(afterSignOutUrl?: string): Promise<string>;
39
+ getSignOutUrl(afterSignOutUrl?: string): Promise<string>;
40
+ exchangeToken(config: TokenExchangeRequestConfig): Promise<User | Response>;
41
+ refreshAccessToken(): Promise<User>;
42
+ revokeAccessToken(): Promise<boolean>;
43
+ getUser(): Promise<User>;
44
+ getDecodedIdToken(sessionId?: string): Promise<IdToken>;
45
+ getDecodedIDPIDToken(): Promise<IdToken>;
46
+ getCrypto(): Promise<IsomorphicCrypto>;
47
+ getIdToken(): Promise<string>;
48
+ getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
49
+ getAccessToken(): Promise<string>;
50
+ isSignedIn(): Promise<boolean>;
51
+ startAutoRefreshToken(): Promise<void>;
52
+ setSessionState(sessionState: string): Promise<void>;
53
+ reInitialize(config: Partial<AuthClientConfig<WebWorkerClientConfig>>): Promise<void>;
54
+ getConfigData(): Promise<AuthClientConfig<WebWorkerClientConfig>>;
55
+ }
56
+ export {};
57
+ //# sourceMappingURL=web-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-worker.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/web-worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,IAAI,EACJ,gBAAgB,EAChB,0BAA0B,EAC1B,OAAO,EACP,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAC,MAAM,GAAG,CAAC;AAC3D,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,OAAO,CAAC;AAEnE,UAAU,cAAc,CAAC,CAAC,CAAE,SAAQ,YAAY;IAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAClB;AAED,qBAAa,cAAc,CAAC,CAAC;IAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,GAAG,CAAc;IACxE,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAc;CACzD;AAED,MAAM,WAAW,sBAAsB;IACrC,2BAA2B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACxD,6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BAAgB,CAAC,CAAC;IACvC,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,0BAA0B,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IACrD,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtF,aAAa,IAAI,OAAO,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,CAAC;CACnE"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export * from './local-store';
19
+ export * from './memory-store';
20
+ export * from './session-store';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Storage } from '@thunderid/javascript';
19
+ export declare class LocalStore implements Storage {
20
+ setData(key: string, value: string): Promise<void>;
21
+ getData(key: string): Promise<string>;
22
+ removeData(key: string): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=local-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-store.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/local-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9C,qBAAa,UAAW,YAAW,OAAO;IAC3B,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpD"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Storage } from '@thunderid/javascript';
19
+ export declare class MemoryStore implements Storage {
20
+ private _data;
21
+ constructor();
22
+ setData(key: string, value: string): Promise<void>;
23
+ getData(key: string): Promise<string>;
24
+ removeData(key: string): Promise<void>;
25
+ }
26
+ //# sourceMappingURL=memory-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-store.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/memory-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,KAAK,CAAsB;;IAMtB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpD"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Storage } from '@thunderid/javascript';
19
+ export declare class SessionStore implements Storage {
20
+ setData(key: string, value: string): Promise<void>;
21
+ getData(key: string): Promise<string>;
22
+ removeData(key: string): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=session-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/session-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAE9C,qBAAa,YAAa,YAAW,OAAO;IAC7B,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpD"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Buffer } from 'buffer';
19
+ import { Crypto, JWKInterface } from '@thunderid/javascript';
20
+ export declare class SPACryptoUtils implements Crypto<Buffer | string> {
21
+ /**
22
+ * Get URL encoded string.
23
+ *
24
+ * @returns {string} base 64 url encoded value.
25
+ */
26
+ base64URLEncode(value: Buffer | string): string;
27
+ base64URLDecode(value: string): string;
28
+ hashSha256(data: string): string | Buffer;
29
+ generateRandomBytes(length: number): string | Buffer;
30
+ verifyJwt(idToken: string, jwk: Partial<JWKInterface>, algorithms: string[], clientId: string, issuer: string, subject: string, clockTolerance?: number, validateJwtIssuer?: boolean): Promise<boolean>;
31
+ }
32
+ //# sourceMappingURL=crypto-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto-utils.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/crypto-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAyB,MAAM,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAMnF,qBAAa,cAAe,YAAW,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IAC5D;;;;OAIG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAI/C,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAItC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAIzC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAIpD,SAAS,CACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,EAC1B,UAAU,EAAE,MAAM,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,MAAM,EACvB,iBAAiB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,OAAO,CAAC;CAgCpB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export * from './message-utils';
19
+ export * from './spa-utils';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { ResponseMessage } from '../models';
19
+ export declare class MessageUtils {
20
+ private constructor();
21
+ /**
22
+ * JSON stringifies the passed object.
23
+ *
24
+ * @param {any} data The data object.
25
+ *
26
+ * @return {ResponseMessage<string>} JSON string.
27
+ */
28
+ static generateSuccessMessage(data?: any): ResponseMessage<string>;
29
+ /**
30
+ * JSON stringifies the passed object.
31
+ *
32
+ * @param {any} error The error object.
33
+ *
34
+ * @return {ResponseMessage<string>} JSON string.
35
+ */
36
+ static generateFailureMessage(error?: any): ResponseMessage<string>;
37
+ }
38
+ //# sourceMappingURL=message-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/message-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAE1C,qBAAa,YAAY;IAEvB,OAAO;IAEP;;;;;;OAMG;WAEW,sBAAsB,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC;IAQzE;;;;;;OAMG;WAEW,sBAAsB,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC;CA4C3E"}