@dynamic-labs-sdk/client 0.0.1-alpha.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 (151) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +29 -0
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.js +530 -0
  5. package/index.esm.d.ts +1 -0
  6. package/index.esm.js +522 -0
  7. package/package.json +20 -0
  8. package/src/client/consts.d.ts +5 -0
  9. package/src/client/consts.d.ts.map +1 -0
  10. package/src/client/createCore/createCore.d.ts +7 -0
  11. package/src/client/createCore/createCore.d.ts.map +1 -0
  12. package/src/client/createCore/index.d.ts +2 -0
  13. package/src/client/createCore/index.d.ts.map +1 -0
  14. package/src/client/createCore/types/DynamicCore.d.ts +56 -0
  15. package/src/client/createCore/types/DynamicCore.d.ts.map +1 -0
  16. package/src/client/createCore/types/DynamicCoreConfig.d.ts +6 -0
  17. package/src/client/createCore/types/DynamicCoreConfig.d.ts.map +1 -0
  18. package/src/client/createCore/types/DynamicCoreState.d.ts +30 -0
  19. package/src/client/createCore/types/DynamicCoreState.d.ts.map +1 -0
  20. package/src/client/createCore/types/index.d.ts +4 -0
  21. package/src/client/createCore/types/index.d.ts.map +1 -0
  22. package/src/client/createDynamicClient/createDynamicClient.d.ts +3 -0
  23. package/src/client/createDynamicClient/createDynamicClient.d.ts.map +1 -0
  24. package/src/client/createDynamicClient/index.d.ts +2 -0
  25. package/src/client/createDynamicClient/index.d.ts.map +1 -0
  26. package/src/client/types/DynamicClient.d.ts +25 -0
  27. package/src/client/types/DynamicClient.d.ts.map +1 -0
  28. package/src/client/types/DynamicClientConfig.d.ts +42 -0
  29. package/src/client/types/DynamicClientConfig.d.ts.map +1 -0
  30. package/src/client/types/index.d.ts +3 -0
  31. package/src/client/types/index.d.ts.map +1 -0
  32. package/src/errors/base/BaseError.d.ts +29 -0
  33. package/src/errors/base/BaseError.d.ts.map +1 -0
  34. package/src/errors/base/index.d.ts +2 -0
  35. package/src/errors/base/index.d.ts.map +1 -0
  36. package/src/index.d.ts +9 -0
  37. package/src/index.d.ts.map +1 -0
  38. package/src/modules/apiClient/createApiClient.d.ts +9 -0
  39. package/src/modules/apiClient/createApiClient.d.ts.map +1 -0
  40. package/src/modules/apiClient/index.d.ts +2 -0
  41. package/src/modules/apiClient/index.d.ts.map +1 -0
  42. package/src/modules/auth/logout/index.d.ts +3 -0
  43. package/src/modules/auth/logout/index.d.ts.map +1 -0
  44. package/src/modules/auth/logout/logout.d.ts +3 -0
  45. package/src/modules/auth/logout/logout.d.ts.map +1 -0
  46. package/src/modules/auth/logout/types.d.ts +10 -0
  47. package/src/modules/auth/logout/types.d.ts.map +1 -0
  48. package/src/modules/events/events.d.ts +19 -0
  49. package/src/modules/events/events.d.ts.map +1 -0
  50. package/src/modules/events/index.d.ts +2 -0
  51. package/src/modules/events/index.d.ts.map +1 -0
  52. package/src/modules/events/types.d.ts +12 -0
  53. package/src/modules/events/types.d.ts.map +1 -0
  54. package/src/modules/initializeClient/errors/ClientAlreadyInitializedError.d.ts +5 -0
  55. package/src/modules/initializeClient/errors/ClientAlreadyInitializedError.d.ts.map +1 -0
  56. package/src/modules/initializeClient/index.d.ts +2 -0
  57. package/src/modules/initializeClient/index.d.ts.map +1 -0
  58. package/src/modules/initializeClient/initializeClient.d.ts +7 -0
  59. package/src/modules/initializeClient/initializeClient.d.ts.map +1 -0
  60. package/src/modules/otp/sendEmailOTP/index.d.ts +2 -0
  61. package/src/modules/otp/sendEmailOTP/index.d.ts.map +1 -0
  62. package/src/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +7 -0
  63. package/src/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -0
  64. package/src/modules/otp/types.d.ts +19 -0
  65. package/src/modules/otp/types.d.ts.map +1 -0
  66. package/src/modules/otp/verifyOTP/index.d.ts +2 -0
  67. package/src/modules/otp/verifyOTP/index.d.ts.map +1 -0
  68. package/src/modules/otp/verifyOTP/verifyOTP.d.ts +6 -0
  69. package/src/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -0
  70. package/src/modules/projectSettings/fetchProjectSettings.d.ts +6 -0
  71. package/src/modules/projectSettings/fetchProjectSettings.d.ts.map +1 -0
  72. package/src/modules/projectSettings/index.d.ts +2 -0
  73. package/src/modules/projectSettings/index.d.ts.map +1 -0
  74. package/src/modules/user/types.d.ts +6 -0
  75. package/src/modules/user/types.d.ts.map +1 -0
  76. package/src/services/asyncTrack/createAsyncTrack.d.ts +6 -0
  77. package/src/services/asyncTrack/createAsyncTrack.d.ts.map +1 -0
  78. package/src/services/asyncTrack/errors/CannotTrackError.d.ts +5 -0
  79. package/src/services/asyncTrack/errors/CannotTrackError.d.ts.map +1 -0
  80. package/src/services/asyncTrack/index.d.ts +3 -0
  81. package/src/services/asyncTrack/index.d.ts.map +1 -0
  82. package/src/services/asyncTrack/types.d.ts +45 -0
  83. package/src/services/asyncTrack/types.d.ts.map +1 -0
  84. package/src/services/eventEmitter/createEventEmitter.d.ts +3 -0
  85. package/src/services/eventEmitter/createEventEmitter.d.ts.map +1 -0
  86. package/src/services/eventEmitter/index.d.ts +2 -0
  87. package/src/services/eventEmitter/index.d.ts.map +1 -0
  88. package/src/services/fetch/createWebFetch.d.ts +6 -0
  89. package/src/services/fetch/createWebFetch.d.ts.map +1 -0
  90. package/src/services/fetch/index.d.ts +2 -0
  91. package/src/services/fetch/index.d.ts.map +1 -0
  92. package/src/services/fetch/types.d.ts +5 -0
  93. package/src/services/fetch/types.d.ts.map +1 -0
  94. package/src/services/logger/createLogger/createLogger.d.ts +14 -0
  95. package/src/services/logger/createLogger/createLogger.d.ts.map +1 -0
  96. package/src/services/logger/createLogger/index.d.ts +2 -0
  97. package/src/services/logger/createLogger/index.d.ts.map +1 -0
  98. package/src/services/logger/index.d.ts +2 -0
  99. package/src/services/logger/index.d.ts.map +1 -0
  100. package/src/services/logger/types.d.ts +15 -0
  101. package/src/services/logger/types.d.ts.map +1 -0
  102. package/src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +6 -0
  103. package/src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts.map +1 -0
  104. package/src/services/openDeeplink/createWebDeeplinkOpener/index.d.ts +2 -0
  105. package/src/services/openDeeplink/createWebDeeplinkOpener/index.d.ts.map +1 -0
  106. package/src/services/openDeeplink/index.d.ts +2 -0
  107. package/src/services/openDeeplink/index.d.ts.map +1 -0
  108. package/src/services/openDeeplink/types.d.ts +5 -0
  109. package/src/services/openDeeplink/types.d.ts.map +1 -0
  110. package/src/services/storage/createWebStorage/createWebStorage.d.ts +6 -0
  111. package/src/services/storage/createWebStorage/createWebStorage.d.ts.map +1 -0
  112. package/src/services/storage/createWebStorage/formatForStorage/index.d.ts +2 -0
  113. package/src/services/storage/createWebStorage/formatForStorage/index.d.ts.map +1 -0
  114. package/src/services/storage/createWebStorage/formatForStorage/storageFormat.d.ts +3 -0
  115. package/src/services/storage/createWebStorage/formatForStorage/storageFormat.d.ts.map +1 -0
  116. package/src/services/storage/createWebStorage/index.d.ts +2 -0
  117. package/src/services/storage/createWebStorage/index.d.ts.map +1 -0
  118. package/src/services/storage/types.d.ts +24 -0
  119. package/src/services/storage/types.d.ts.map +1 -0
  120. package/src/utils/deferredPromise/createDeferredPromise.d.ts +3 -0
  121. package/src/utils/deferredPromise/createDeferredPromise.d.ts.map +1 -0
  122. package/src/utils/deferredPromise/index.d.ts +3 -0
  123. package/src/utils/deferredPromise/index.d.ts.map +1 -0
  124. package/src/utils/deferredPromise/types.d.ts +6 -0
  125. package/src/utils/deferredPromise/types.d.ts.map +1 -0
  126. package/src/utils/getClient/assignClient.d.ts +3 -0
  127. package/src/utils/getClient/assignClient.d.ts.map +1 -0
  128. package/src/utils/getClient/erros/ClientNotPresentError.d.ts +5 -0
  129. package/src/utils/getClient/erros/ClientNotPresentError.d.ts.map +1 -0
  130. package/src/utils/getClient/getClient.d.ts +2 -0
  131. package/src/utils/getClient/getClient.d.ts.map +1 -0
  132. package/src/utils/getClient/index.d.ts +3 -0
  133. package/src/utils/getClient/index.d.ts.map +1 -0
  134. package/src/utils/getCore/getCore.d.ts +4 -0
  135. package/src/utils/getCore/getCore.d.ts.map +1 -0
  136. package/src/utils/getCore/index.d.ts +2 -0
  137. package/src/utils/getCore/index.d.ts.map +1 -0
  138. package/src/utils/observable/createObservableState/createObservableState.d.ts +3 -0
  139. package/src/utils/observable/createObservableState/createObservableState.d.ts.map +1 -0
  140. package/src/utils/observable/createObservableState/index.d.ts +2 -0
  141. package/src/utils/observable/createObservableState/index.d.ts.map +1 -0
  142. package/src/utils/observable/subscribeWithSelector/index.d.ts +2 -0
  143. package/src/utils/observable/subscribeWithSelector/index.d.ts.map +1 -0
  144. package/src/utils/observable/subscribeWithSelector/isEqualShallow/index.d.ts +2 -0
  145. package/src/utils/observable/subscribeWithSelector/isEqualShallow/index.d.ts.map +1 -0
  146. package/src/utils/observable/subscribeWithSelector/isEqualShallow/isEqualShallow.d.ts +7 -0
  147. package/src/utils/observable/subscribeWithSelector/isEqualShallow/isEqualShallow.d.ts.map +1 -0
  148. package/src/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts +10 -0
  149. package/src/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts.map +1 -0
  150. package/src/utils/observable/types.d.ts +28 -0
  151. package/src/utils/observable/types.d.ts.map +1 -0
@@ -0,0 +1,3 @@
1
+ import type { DynamicClient, DynamicClientConfig } from '../types';
2
+ export declare const createDynamicClient: (config: DynamicClientConfig) => DynamicClient;
3
+ //# sourceMappingURL=createDynamicClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDynamicClient.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/client/createDynamicClient/createDynamicClient.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEnE,eAAO,MAAM,mBAAmB,WACtB,mBAAmB,KAC1B,aA4BF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createDynamicClient } from './createDynamicClient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/client/createDynamicClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ProjectSettings } from '@dynamic-labs/sdk-api-core';
2
+ import type { User } from 'src/modules/user/types';
3
+ import type { DynamicInitStatus } from '../createCore/types';
4
+ /**
5
+ * The client object needed to work with Dynamic SDK's functionality.
6
+ */
7
+ export type DynamicClient = {
8
+ /**
9
+ * Status of client initialization.
10
+ */
11
+ readonly initStatus: DynamicInitStatus;
12
+ /**
13
+ * The settings of your Dynamic project as configured in dashboard.
14
+ */
15
+ readonly projectSettings: ProjectSettings | null;
16
+ /**
17
+ * The JWT of the current user.
18
+ */
19
+ readonly token: string | null;
20
+ /**
21
+ * The current user of the app.
22
+ */
23
+ readonly user: User | null;
24
+ };
25
+ //# sourceMappingURL=DynamicClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicClient.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/client/types/DynamicClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { DynamicCoreConfig } from '../createCore/types/DynamicCoreConfig';
2
+ /**
3
+ * All available options to configure the Dynamic client.
4
+ */
5
+ export type DynamicClientConfig = {
6
+ /**
7
+ * Whether to automatically initialize the client.
8
+ *
9
+ * If disabled, the client will be uninitialized and you will need to call
10
+ * `initializeClient` with it manually.
11
+ *
12
+ * @defaultValue `true`
13
+ */
14
+ autoInitialize?: boolean;
15
+ /**
16
+ * Available options for internal configuration of the Dynamic SDK client.
17
+ * Ignore unless you know what you are doing.
18
+ */
19
+ coreConfig?: DynamicCoreConfig;
20
+ /**
21
+ * The environment ID of the Dynamic app.
22
+ */
23
+ environmentId: string;
24
+ /**
25
+ * Metadata relating to your app.
26
+ */
27
+ metadata?: {
28
+ /**
29
+ * The URL of the icon of your app.
30
+ */
31
+ iconUrl?: string;
32
+ /**
33
+ * The name of your app.
34
+ */
35
+ name?: string;
36
+ /**
37
+ * The URL of your app.
38
+ */
39
+ url?: string;
40
+ };
41
+ };
42
+ //# sourceMappingURL=DynamicClientConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicClientConfig.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/client/types/DynamicClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { DynamicClient } from './DynamicClient';
2
+ export type { DynamicClientConfig } from './DynamicClientConfig';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/client/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,29 @@
1
+ type BaseErrorParameters = {
2
+ /** The underlying error that caused this error, if any */
3
+ cause: Error | null;
4
+ /** Additional detailed information about the error */
5
+ details?: string;
6
+ /** URL to relevant documentation for this error */
7
+ docsUrl: string | null;
8
+ /** Array of additional contextual messages to be displayed */
9
+ metaMessages?: string[];
10
+ /** Custom name for the error. Defaults to 'BaseError' if not provided */
11
+ name: string;
12
+ /** A brief, human-readable description of the error */
13
+ shortMessage: string;
14
+ };
15
+ /**
16
+ * Base error class that provides structured error handling with detailed information
17
+ */
18
+ export declare abstract class BaseError extends Error {
19
+ details: string | undefined;
20
+ name: string;
21
+ cause: BaseError | Error | undefined;
22
+ constructor(args: BaseErrorParameters);
23
+ /**
24
+ * Walks the cause chain of the error and returns the root error
25
+ */
26
+ walk(): Error | undefined;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=BaseError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/errors/base/BaseError.ts"],"names":[],"mappings":"AAEA,KAAK,mBAAmB,GAAG;IACzB,0DAA0D;IAC1D,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAkCF;;GAEG;AACH,8BAAsB,SAAU,SAAQ,KAAK;IAC3C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IACnB,IAAI,SAAe;IACnB,KAAK,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;gBAElC,IAAI,EAAE,mBAAmB;IAarC;;OAEG;IACH,IAAI,IAAI,KAAK,GAAG,SAAS;CAS1B"}
@@ -0,0 +1,2 @@
1
+ export { BaseError } from './BaseError';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/errors/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
package/src/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export type { DynamicCoreConfig } from './client/createCore/types';
2
+ export { createDynamicClient } from './client/createDynamicClient';
3
+ export type { DynamicClient, DynamicClientConfig } from './client/types';
4
+ export { logout } from './modules/auth/logout';
5
+ export { offEvent, onceEvent, onEvent } from './modules/events';
6
+ export { sendEmailOTP } from './modules/otp/sendEmailOTP';
7
+ export type { OTPVerification } from './modules/otp/types';
8
+ export { verifyOTP } from './modules/otp/verifyOTP';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/client/src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SDKApi } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../client/types';
3
+ /**
4
+ * Returns a new instance of the SDK API client.
5
+ *
6
+ * This is not meant for storing, as it is very light we can create it whenever needed.
7
+ */
8
+ export declare const createApiClient: (client: DynamicClient) => SDKApi;
9
+ //# sourceMappingURL=createApiClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createApiClient.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/apiClient/createApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAaxD;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,aAAa,WAsBpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createApiClient } from './createApiClient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/apiClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { logout } from './logout';
2
+ import './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/auth/logout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ export declare const logout: (client: DynamicClient) => Promise<void>;
3
+ //# sourceMappingURL=logout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/auth/logout/logout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,eAAO,MAAM,MAAM,WAAkB,aAAa,kBAajD,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare global {
2
+ interface DynamicEvents {
3
+ /**
4
+ * Raised when "logout" is called.
5
+ */
6
+ logout: () => void;
7
+ }
8
+ }
9
+ export {};
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/auth/logout/types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB;;WAEG;QACH,MAAM,EAAE,MAAM,IAAI,CAAC;KACpB;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { DynamicClient } from '../../client/types';
2
+ import type { DynamicEvents } from './types';
3
+ /**
4
+ * Listen to an event from the client.
5
+ *
6
+ * @returns A function that can be called to remove the listener.
7
+ */
8
+ export declare const onEvent: <E extends keyof DynamicEvents>(client: DynamicClient, event: E, listener: DynamicEvents[E]) => () => void;
9
+ /**
10
+ * Remove a listener from an event.
11
+ */
12
+ export declare const offEvent: <E extends keyof DynamicEvents>(client: DynamicClient, event: E, listener: DynamicEvents[E]) => void;
13
+ /**
14
+ * Listen to an event that will only fire once.
15
+ *
16
+ * @returns A function that can be called to remove the listener.
17
+ */
18
+ export declare const onceEvent: <E extends keyof DynamicEvents>(client: DynamicClient, event: E, listener: DynamicEvents[E]) => () => void;
19
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/events/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,aAAa,UAC3C,aAAa,SACd,CAAC,YACE,aAAa,CAAC,CAAC,CAAC,eAS3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,aAAa,UAC5C,aAAa,SACd,CAAC,YACE,aAAa,CAAC,CAAC,CAAC,SAK3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,UAC7C,aAAa,SACd,CAAC,YACE,aAAa,CAAC,CAAC,CAAC,eAS3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { onEvent, offEvent, onceEvent } from './events';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ /**
3
+ * All events that can be listened to from the client.
4
+ *
5
+ * This interface may be re-declared in other modules when they are imported to add more events,
6
+ * such as EVM specific events.
7
+ */
8
+ export interface DynamicEvents {
9
+ }
10
+ }
11
+ export type { DynamicEvents };
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/events/types.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb;;;;;OAKG;IAEH,MAAM,WAAW,aAAa;KAAG;CAClC;AAED,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseError } from '../../../errors/base';
2
+ export declare class ClientAlreadyInitializedError extends BaseError {
3
+ constructor();
4
+ }
5
+ //# sourceMappingURL=ClientAlreadyInitializedError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientAlreadyInitializedError.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/initializeClient/errors/ClientAlreadyInitializedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,6BAA8B,SAAQ,SAAS;;CAS3D"}
@@ -0,0 +1,2 @@
1
+ export { initializeClient } from './initializeClient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/initializeClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { DynamicClient } from '../../client/types';
2
+ /**
3
+ * Orchestrates the initialization of all modules and services of the SDK, and keeps
4
+ * the loading flag updated.
5
+ */
6
+ export declare const initializeClient: (client: DynamicClient) => Promise<void>;
7
+ //# sourceMappingURL=initializeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAAkB,aAAa,kBAyB3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { sendEmailOTP } from './sendEmailOTP';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/otp/sendEmailOTP/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { OTPVerification } from '../types';
3
+ export type SendEmailOTPParams = {
4
+ email: string;
5
+ };
6
+ export declare const sendEmailOTP: (client: DynamicClient, { email }: SendEmailOTPParams) => Promise<OTPVerification>;
7
+ //# sourceMappingURL=sendEmailOTP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,WACf,aAAa,aACV,kBAAkB,KAC5B,OAAO,CAAC,eAAe,CAYzB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Intermediary state that identifies a single OTP verification process.
3
+ * This is used to track the OTP verification process and to verify the OTP.
4
+ */
5
+ export type OTPVerification = {
6
+ /**
7
+ * The email address of the user who is verifying the OTP, if the OTP was sent to an email address.
8
+ */
9
+ email?: string;
10
+ /**
11
+ * The phone number of the user who is verifying the OTP, if the OTP was sent to a phone number.
12
+ */
13
+ phoneNumber?: string;
14
+ /**
15
+ * The UUID of the OTP verification.
16
+ */
17
+ verificationUUID: string;
18
+ };
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/otp/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { verifyOTP } from './verifyOTP';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/otp/verifyOTP/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { OTPVerification } from '../types';
2
+ export type VerifyOTPParams = {
3
+ verificationToken: string;
4
+ };
5
+ export declare const verifyOTP: (otpVerification: OTPVerification, { verificationToken }: VerifyOTPParams) => Promise<import("@dynamic-labs/sdk-api-core").SdkUser>;
6
+ //# sourceMappingURL=verifyOTP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,oBACH,eAAe,yBACT,eAAe,0DAqBvC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type DynamicClient } from '../../client/types';
2
+ /**
3
+ * Updates the project settings in the core state to the latest values.
4
+ */
5
+ export declare const fetchProjectSettings: (client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").ProjectSettings>;
6
+ //# sourceMappingURL=fetchProjectSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/projectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAkB,aAAa,kEAkB/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { fetchProjectSettings } from './fetchProjectSettings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/projectSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { SdkUser } from '@dynamic-labs/sdk-api-core';
2
+ /**
3
+ * A user that is authenticated with the Dynamic SDK.
4
+ */
5
+ export type User = SdkUser;
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/modules/user/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { AsyncTrack } from './types';
2
+ /**
3
+ * Creates a tracker that associates names with promises and raises as promises resolve.
4
+ */
5
+ export declare const createAsyncTrack: () => AsyncTrack;
6
+ //# sourceMappingURL=createAsyncTrack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAsyncTrack.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/asyncTrack/createAsyncTrack.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,UAAU,EAEX,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,UAkEnC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseError } from '../../../errors/base';
2
+ export declare class CannotTrackError extends BaseError {
3
+ constructor();
4
+ }
5
+ //# sourceMappingURL=CannotTrackError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CannotTrackError.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/services/asyncTrack/errors/CannotTrackError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,gBAAiB,SAAQ,SAAS;;CAS9C"}
@@ -0,0 +1,3 @@
1
+ export { type AsyncTrack } from './types';
2
+ export { createAsyncTrack } from './createAsyncTrack';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/asyncTrack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { type EventEmitter } from 'eventemitter3';
2
+ export type AsyncProcessStatus = 'pending' | 'resolved' | 'failed';
3
+ export type AsyncTrackEmitter = EventEmitter<{
4
+ /**
5
+ * Emitted when a specific async process fails.
6
+ * @param name - The identifier for the async process
7
+ * @param error - The error that occurred
8
+ */
9
+ failed: (name: string, error: unknown) => void;
10
+ /**
11
+ * Emitted when a specific async process completes.
12
+ * @param name - The identifier for the async resolves
13
+ */
14
+ resolved: (name: string) => void;
15
+ }>;
16
+ /**
17
+ * A tracker that associates names with promises and raises events as promises resolve.
18
+ */
19
+ export type AsyncTrack = {
20
+ /**
21
+ * Gets the map of all registered async processes.
22
+ */
23
+ getTracker: () => Map<string, AsyncProcessStatus>;
24
+ /**
25
+ * Tracks a specific async process.
26
+ */
27
+ track: (props: {
28
+ /**
29
+ * The identifier for the async process
30
+ */
31
+ name: string;
32
+ /**
33
+ * The promise representing the async process
34
+ */
35
+ promise: Promise<unknown>;
36
+ }) => void;
37
+ /**
38
+ * Waits for all registered async processes to complete.
39
+ *
40
+ * Resolves when all processes are resolved, rejects with
41
+ * the respective error when the first process fails.
42
+ */
43
+ waitForAll: () => Promise<void>;
44
+ } & Pick<AsyncTrackEmitter, 'on' | 'off'>;
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/asyncTrack/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;IAC3C;;;;OAIG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/C;;;OAGG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAElD;;OAEG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE;QACb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;KAC3B,KAAK,IAAI,CAAC;IAEX;;;;;OAKG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import EventEmitter from 'eventemitter3';
2
+ export declare const createEventEmitter: () => EventEmitter<string | symbol, any>;
3
+ //# sourceMappingURL=createEventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEventEmitter.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/eventEmitter/createEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,eAAO,MAAM,kBAAkB,0CAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createEventEmitter } from './createEventEmitter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/eventEmitter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Fetch } from './types';
2
+ /**
3
+ * Creates a fetch instance that uses the native window.fetch API.
4
+ */
5
+ export declare const createWebFetch: () => Fetch;
6
+ //# sourceMappingURL=createWebFetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWebFetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/fetch/createWebFetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AAEH,eAAO,MAAM,cAAc,QAAO,KAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { type Fetch } from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A function that makes an HTTP request.
3
+ */
4
+ export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/fetch/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,CAClB,KAAK,EAAE,WAAW,EAClB,IAAI,CAAC,EAAE,WAAW,KACf,OAAO,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { LogLevel, Logger } from '../types';
2
+ /**
3
+ * Configuration options for the logger
4
+ */
5
+ type CreateLoggerOptions = {
6
+ level?: LogLevel;
7
+ };
8
+ /**
9
+ * Creates a logger instance with configurable log level and event emission capabilities.
10
+ * @returns A logger instance with debug, info, warn, and error methods
11
+ */
12
+ export declare const createLogger: (options?: CreateLoggerOptions) => Logger;
13
+ export {};
14
+ //# sourceMappingURL=createLogger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createLogger.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/services/logger/createLogger/createLogger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAsB,MAAM,UAAU,CAAC;AAErE;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB,CAAC;AAeF;;;GAGG;AACH,eAAO,MAAM,YAAY,aAAa,mBAAmB,KAAQ,MAgDhE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createLogger } from './createLogger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/services/logger/createLogger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { Logger, LogLevel } from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/logger/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type EventEmitter } from 'eventemitter3';
2
+ /** Minimum log level to display */
3
+ export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
4
+ /** Event emitter for the logger */
5
+ export type LoggerEventEmitter = EventEmitter<{
6
+ log: (level: LogLevel, message: string, ...args: unknown[]) => void;
7
+ }>;
8
+ /** Logger object with methods for each log level and event emitter methods */
9
+ export type Logger = {
10
+ debug: (message: string, ...args: unknown[]) => void;
11
+ error: (message: string, ...args: unknown[]) => void;
12
+ info: (message: string, ...args: unknown[]) => void;
13
+ warn: (message: string, ...args: unknown[]) => void;
14
+ } & Pick<LoggerEventEmitter, 'on' | 'off'>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/client/src/services/logger/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3D,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;IAC5C,GAAG,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACrE,CAAC,CAAC;AAEH,8EAA8E;AAC9E,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACrD,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { OpenDeeplink } from '../types';
2
+ /**
3
+ * Creates a deeplink opener that uses the native window.open API.
4
+ */
5
+ export declare const createWebDeeplinkOpener: () => OpenDeeplink;
6
+ //# sourceMappingURL=createWebDeeplinkOpener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWebDeeplinkOpener.d.ts","sourceRoot":"","sources":["../../../../../../../packages/client/src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,YAK1C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createWebDeeplinkOpener } from './createWebDeeplinkOpener';
2
+ //# sourceMappingURL=index.d.ts.map