@sylphx/sdk 0.15.1 → 0.15.3

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.
@@ -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
- webhookSecret?: string;
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
- webhookSecret?: string;
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.webhookSecret) {
8048
- * alert(`New secret: ${result.webhookSecret}`)
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 (production, staging, development) */
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;