@keverdjs/fraud-sdk-angular 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -93,7 +93,6 @@ interface KeverdVisitorData {
93
93
  }
94
94
  interface KeverdConfig {
95
95
  apiKey: string;
96
- endpoint?: string;
97
96
  userId?: string;
98
97
  debug?: boolean;
99
98
  extendedResult?: boolean;
@@ -101,7 +100,6 @@ interface KeverdConfig {
101
100
  }
102
101
  interface KeverdLoadOptions {
103
102
  apiKey: string;
104
- endpoint?: string;
105
103
  debug?: boolean;
106
104
  }
107
105
  interface KeverdVisitorDataOptions {
@@ -144,14 +142,39 @@ declare class KeverdService {
144
142
  * Transform API response to visitor data format
145
143
  */
146
144
  private transformResponse;
147
- /**
148
- * Get default endpoint
149
- */
150
- private getDefaultEndpoint;
151
145
  /**
152
146
  * Generate a session ID
153
147
  */
154
148
  private generateSessionId;
149
+ /**
150
+ * Start a new session (called automatically on init, but can be called manually)
151
+ */
152
+ startSession(userId?: string, deviceHash?: string, metadata?: Record<string, unknown>): Observable<void>;
153
+ /**
154
+ * End the current session
155
+ */
156
+ endSession(): Observable<void>;
157
+ /**
158
+ * Pause the current session (e.g., when app goes to background)
159
+ */
160
+ pauseSession(): Observable<void>;
161
+ /**
162
+ * Resume a paused session (e.g., when app comes to foreground)
163
+ */
164
+ resumeSession(): Observable<void>;
165
+ /**
166
+ * Get current session status
167
+ */
168
+ getSessionStatus(): Observable<{
169
+ session_id: string;
170
+ status: string;
171
+ is_active: boolean;
172
+ is_paused: boolean;
173
+ event_count: number;
174
+ started_at: string;
175
+ last_activity_at: string;
176
+ duration_seconds: number | null;
177
+ } | null>;
155
178
  /**
156
179
  * Destroy the SDK instance
157
180
  */
@@ -182,7 +205,6 @@ declare class KeverdModule {
182
205
  * imports: [
183
206
  * KeverdModule.forRoot({
184
207
  * apiKey: 'your-api-key',
185
- * endpoint: 'https://api.keverd.com'
186
208
  * })
187
209
  * ]
188
210
  * })
package/dist/index.d.ts CHANGED
@@ -93,7 +93,6 @@ interface KeverdVisitorData {
93
93
  }
94
94
  interface KeverdConfig {
95
95
  apiKey: string;
96
- endpoint?: string;
97
96
  userId?: string;
98
97
  debug?: boolean;
99
98
  extendedResult?: boolean;
@@ -101,7 +100,6 @@ interface KeverdConfig {
101
100
  }
102
101
  interface KeverdLoadOptions {
103
102
  apiKey: string;
104
- endpoint?: string;
105
103
  debug?: boolean;
106
104
  }
107
105
  interface KeverdVisitorDataOptions {
@@ -144,14 +142,39 @@ declare class KeverdService {
144
142
  * Transform API response to visitor data format
145
143
  */
146
144
  private transformResponse;
147
- /**
148
- * Get default endpoint
149
- */
150
- private getDefaultEndpoint;
151
145
  /**
152
146
  * Generate a session ID
153
147
  */
154
148
  private generateSessionId;
149
+ /**
150
+ * Start a new session (called automatically on init, but can be called manually)
151
+ */
152
+ startSession(userId?: string, deviceHash?: string, metadata?: Record<string, unknown>): Observable<void>;
153
+ /**
154
+ * End the current session
155
+ */
156
+ endSession(): Observable<void>;
157
+ /**
158
+ * Pause the current session (e.g., when app goes to background)
159
+ */
160
+ pauseSession(): Observable<void>;
161
+ /**
162
+ * Resume a paused session (e.g., when app comes to foreground)
163
+ */
164
+ resumeSession(): Observable<void>;
165
+ /**
166
+ * Get current session status
167
+ */
168
+ getSessionStatus(): Observable<{
169
+ session_id: string;
170
+ status: string;
171
+ is_active: boolean;
172
+ is_paused: boolean;
173
+ event_count: number;
174
+ started_at: string;
175
+ last_activity_at: string;
176
+ duration_seconds: number | null;
177
+ } | null>;
155
178
  /**
156
179
  * Destroy the SDK instance
157
180
  */
@@ -182,7 +205,6 @@ declare class KeverdModule {
182
205
  * imports: [
183
206
  * KeverdModule.forRoot({
184
207
  * apiKey: 'your-api-key',
185
- * endpoint: 'https://api.keverd.com'
186
208
  * })
187
209
  * ]
188
210
  * })