@sylphx/sdk 0.15.2 → 0.15.4
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.ts +7 -0
- package/dist/index.mjs +123 -4524
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.d.ts +277 -276
- package/dist/nextjs/index.mjs +198 -194
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.d.ts +12 -12
- package/dist/react/index.mjs +32 -3295
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.d.ts +12 -0
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/react/index.d.ts
CHANGED
|
@@ -1284,6 +1284,12 @@ interface AppMetadata {
|
|
|
1284
1284
|
id: string;
|
|
1285
1285
|
name: string;
|
|
1286
1286
|
slug: string;
|
|
1287
|
+
captcha?: {
|
|
1288
|
+
enabled: true;
|
|
1289
|
+
provider: 'turnstile' | 'hcaptcha';
|
|
1290
|
+
siteKey: string;
|
|
1291
|
+
action: 'register';
|
|
1292
|
+
};
|
|
1287
1293
|
}
|
|
1288
1294
|
/** Fetched server-side via `getAppConfig()`, passed to `SylphxProvider`. */
|
|
1289
1295
|
interface AppConfig {
|
|
@@ -1541,7 +1547,7 @@ interface UpdateWebhookConfigResult {
|
|
|
1541
1547
|
success: boolean;
|
|
1542
1548
|
webhookUrl: string | null;
|
|
1543
1549
|
secretGenerated: boolean;
|
|
1544
|
-
|
|
1550
|
+
webhookSecretPrefix?: string;
|
|
1545
1551
|
config?: unknown;
|
|
1546
1552
|
}
|
|
1547
1553
|
interface ReplayDeliveryResult {
|
|
@@ -8020,7 +8026,7 @@ interface UseWebhooksReturn {
|
|
|
8020
8026
|
success: boolean;
|
|
8021
8027
|
webhookUrl: string | null;
|
|
8022
8028
|
secretGenerated: boolean;
|
|
8023
|
-
|
|
8029
|
+
webhookSecretPrefix?: string;
|
|
8024
8030
|
}>;
|
|
8025
8031
|
/** Refresh the configuration */
|
|
8026
8032
|
refresh: () => Promise<void>;
|
|
@@ -8044,8 +8050,8 @@ interface UseWebhooksReturn {
|
|
|
8044
8050
|
* webhookUrl: url,
|
|
8045
8051
|
* regenerateSecret: true,
|
|
8046
8052
|
* })
|
|
8047
|
-
* if (result.
|
|
8048
|
-
* alert(`New secret: ${result.
|
|
8053
|
+
* if (result.webhookSecretPrefix) {
|
|
8054
|
+
* alert(`New secret prefix: ${result.webhookSecretPrefix}`)
|
|
8049
8055
|
* }
|
|
8050
8056
|
* }
|
|
8051
8057
|
*
|
|
@@ -10343,7 +10349,7 @@ interface SourceMapConfig {
|
|
|
10343
10349
|
interface ErrorTrackingConfig {
|
|
10344
10350
|
/** Enable/disable error tracking */
|
|
10345
10351
|
enabled: boolean;
|
|
10346
|
-
/** Environment
|
|
10352
|
+
/** Environment slug or type, for example production or a customer-created environment. */
|
|
10347
10353
|
environment?: string;
|
|
10348
10354
|
/** App release version */
|
|
10349
10355
|
release?: string;
|
|
@@ -11020,13 +11026,6 @@ declare function generatePrivacyReport(): {
|
|
|
11020
11026
|
recommendations: string[];
|
|
11021
11027
|
};
|
|
11022
11028
|
|
|
11023
|
-
/**
|
|
11024
|
-
* Session Replay Recorder
|
|
11025
|
-
*
|
|
11026
|
-
* Core recording engine built on rrweb with SOTA enhancements.
|
|
11027
|
-
* Handles recording lifecycle, event batching, and uploads.
|
|
11028
|
-
*/
|
|
11029
|
-
|
|
11030
11029
|
/**
|
|
11031
11030
|
* Session Replay Recorder
|
|
11032
11031
|
*
|
|
@@ -11048,6 +11047,7 @@ declare class SessionRecorder {
|
|
|
11048
11047
|
private networkRequests;
|
|
11049
11048
|
private consoleLogs;
|
|
11050
11049
|
private stopFn;
|
|
11050
|
+
private rrwebRecordingEpoch;
|
|
11051
11051
|
private rageClickDetector;
|
|
11052
11052
|
private deadClickDetector;
|
|
11053
11053
|
private scrollThrashingDetector;
|