@capxul/observability 4.2.0-rc.9 → 4.20.0-beta.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.
package/dist/index.d.mts CHANGED
@@ -254,8 +254,12 @@ declare const CAPXUL_OPERATIONS: {
254
254
  readonly cancelRequest: "financialOps.cancelRequest";
255
255
  readonly createPayee: "financialOps.createPayee";
256
256
  readonly declineRequest: "financialOps.declineRequest";
257
+ readonly emitInvoiceIssued: "financialOps.emitInvoiceIssued";
258
+ readonly emitInvoiceRequestTransitioned: "financialOps.emitInvoiceRequestTransitioned";
257
259
  readonly emitPaymentWriterTelemetry: "financialOps.emitPaymentWriterTelemetry";
258
260
  readonly issueRequest: "financialOps.issueRequest";
261
+ readonly migrateEvidenceIdentity: "financialOps.migrateEvidenceIdentity";
262
+ readonly planEvidenceIdentity: "financialOps.planEvidenceIdentity";
259
263
  readonly recoverSettlementVerification: "financialOps.recoverSettlementVerification";
260
264
  readonly removeDestination: "financialOps.removeDestination";
261
265
  readonly verifySettlement: "financialOps.verifySettlement";
@@ -264,6 +268,9 @@ declare const CAPXUL_OPERATIONS: {
264
268
  readonly current: "holdings.current";
265
269
  readonly primary: "holdings.primary";
266
270
  };
271
+ readonly indexer: {
272
+ readonly reconcile: "indexer.reconcile";
273
+ };
267
274
  readonly identity: {
268
275
  readonly accountAt: "identity.AccountAt";
269
276
  readonly accountClaimed: "identity.AccountClaimed";
@@ -355,6 +362,7 @@ declare const CAPXUL_OPERATIONS: {
355
362
  readonly createOrg: "org.createOrg";
356
363
  readonly create: "org.create";
357
364
  readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
365
+ readonly emitInviteProgressed: "org.emitInviteProgressed";
358
366
  readonly expireInvitations: "org.expireInvitations";
359
367
  readonly getLifecycle: "org.getLifecycle";
360
368
  readonly getProofReceipt: "org.getProofReceipt";
@@ -468,6 +476,8 @@ declare const CAPXUL_OPERATIONS: {
468
476
  };
469
477
  readonly payroll: {
470
478
  readonly authorizeRun: "payroll.authorizeRun";
479
+ readonly emitGroupChanged: "payroll.emitGroupChanged";
480
+ readonly emitRunTransitioned: "payroll.emitRunTransitioned";
471
481
  readonly groups: {
472
482
  readonly access: "payroll.groups";
473
483
  readonly list: "payroll.groups.list";
@@ -602,7 +612,7 @@ interface TelemetryPort {
602
612
  }
603
613
  //#endregion
604
614
  //#region src/index.d.ts
605
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed"];
615
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed", "cli_diagnostic_completed"];
606
616
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
607
617
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
608
618
  type FunnelStepPropertyFilter = {
@@ -1227,6 +1237,9 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
1227
1237
  readonly correlation_id: Schema.optional<Schema.String>;
1228
1238
  readonly sdk_version: Schema.optional<Schema.String>;
1229
1239
  readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
1240
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
1241
+ readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1242
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1230
1243
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1231
1244
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1232
1245
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -1812,6 +1825,20 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1812
1825
  */
1813
1826
  readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
1814
1827
  readonly command_id: Schema.optional<Schema.String>;
1828
+ /**
1829
+ * #1961 R03. The authorized stored row names the Permission it changed; the
1830
+ * verified receipt names the chain facts that prove it. Every field is
1831
+ * optional because a pending or provider-failed verification has neither an
1832
+ * application result nor a receipt to report.
1833
+ */
1834
+ readonly permission_id: Schema.optional<Schema.String>;
1835
+ readonly permission_assignment_id: Schema.optional<Schema.String>;
1836
+ readonly permission_operation: Schema.optional<Schema.Literals<readonly ["create", "change", "assign", "revoke", "replace"]>>;
1837
+ readonly revision: Schema.optional<Schema.Number>;
1838
+ readonly user_op_hash: Schema.optional<Schema.String>;
1839
+ readonly transaction_hash: Schema.optional<Schema.String>;
1840
+ readonly block_number: Schema.optional<Schema.Number>;
1841
+ readonly log_index: Schema.optional<Schema.Number>;
1815
1842
  }>;
1816
1843
  }>;
1817
1844
  declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
@@ -1859,6 +1886,25 @@ declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
1859
1886
  readonly anchor_block_number: Schema.Number;
1860
1887
  }>;
1861
1888
  }>;
1889
+ declare const IndexerDriftCorrectedTelemetryEventSchema: Schema.Struct<{
1890
+ readonly name: Schema.Literal<"indexer_drift_corrected">;
1891
+ readonly props: Schema.Struct<{
1892
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1893
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1894
+ readonly journey_id: Schema.optional<Schema.String>;
1895
+ readonly correlation_id: Schema.optional<Schema.String>;
1896
+ readonly sdk_version: Schema.optional<Schema.String>;
1897
+ readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement", "permission_assignment"]>;
1898
+ readonly previous_state: Schema.String;
1899
+ readonly current_state: Schema.String;
1900
+ readonly previous_block: Schema.optional<Schema.Number>;
1901
+ readonly current_block: Schema.optional<Schema.Number>;
1902
+ readonly logical_event_id: Schema.optional<Schema.String>;
1903
+ readonly scope_kind: Schema.optional<Schema.Literals<readonly ["account", "organization"]>>;
1904
+ readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
1905
+ readonly reference_id: Schema.optional<Schema.String>;
1906
+ }>;
1907
+ }>;
1862
1908
  declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
1863
1909
  readonly name: Schema.Literal<"contact_relationship_changed">;
1864
1910
  readonly props: Schema.Struct<{
@@ -1877,6 +1923,20 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
1877
1923
  readonly operation: Schema.Literals<readonly ["addressBook.add", "addressBook.label", "addressBook.hide", "addressBook.unhide"]>;
1878
1924
  }>;
1879
1925
  }>;
1926
+ /** One completed online CLI diagnostic. No command input or provider text. */
1927
+ declare const CliDiagnosticCompletedTelemetryEventSchema: Schema.Struct<{
1928
+ readonly name: Schema.Literal<"cli_diagnostic_completed">;
1929
+ readonly props: Schema.Struct<{
1930
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1931
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1932
+ readonly journey_id: Schema.optional<Schema.String>;
1933
+ readonly correlation_id: Schema.optional<Schema.String>;
1934
+ readonly sdk_version: Schema.optional<Schema.String>;
1935
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
1936
+ readonly invocation_id: Schema.String;
1937
+ readonly cli_version: Schema.String;
1938
+ }>;
1939
+ }>;
1880
1940
  declare const UiContactActionCompletedTelemetryEventSchema: Schema.Struct<{
1881
1941
  readonly name: Schema.Literal<"ui_contact_action_completed">;
1882
1942
  readonly props: Schema.Union<readonly [Schema.Struct<{
@@ -1932,6 +1992,17 @@ declare const ActivityAnnotationSavedTelemetryEventSchema: Schema.Struct<{
1932
1992
  declare const UiActivityActionCompletedTelemetryEventSchema: Schema.Struct<{
1933
1993
  readonly name: Schema.Literal<"ui_activity_action_completed">;
1934
1994
  readonly props: Schema.Union<readonly [Schema.Struct<{
1995
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1996
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1997
+ readonly journey_id: Schema.optional<Schema.String>;
1998
+ readonly correlation_id: Schema.optional<Schema.String>;
1999
+ readonly sdk_version: Schema.optional<Schema.String>;
2000
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2001
+ readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
2002
+ readonly action: Schema.Literal<"read">;
2003
+ readonly outcome: Schema.Literals<readonly ["partial_displayed", "recovered"]>;
2004
+ readonly surface: Schema.Literals<readonly ["transactions", "recent", "summary"]>;
2005
+ }>, Schema.Struct<{
1935
2006
  readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1936
2007
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1937
2008
  readonly journey_id: Schema.optional<Schema.String>;
@@ -2029,6 +2100,18 @@ declare const AccessRecoveryCompletedTelemetryEventSchema: Schema.Struct<{
2029
2100
  readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2030
2101
  }>]>;
2031
2102
  }>;
2103
+ /**
2104
+ * R05 (#1963) wired three of these steps at the app's dashboard Access
2105
+ * boundary: `dashboard_granted` on the commit of the granted content,
2106
+ * `gate_error_displayed` on the mounted error surface, and `retry_selected` on
2107
+ * the actual selection. `redirect_completed` stays RESERVED and unproduced —
2108
+ * asking for a navigation is not arriving, and the destination page's own
2109
+ * normalized pageview already carries the arrival on the same journey, so a
2110
+ * second event would add no fact. `capability_refusal_displayed` and
2111
+ * `signer_refusal_displayed` belong to the screens that draw those refusals
2112
+ * (Recipients, Invoice, Payroll, Quick Pay); Access publishes the contract and
2113
+ * the `CanReason` those owners report, and produces neither itself.
2114
+ */
2032
2115
  declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
2033
2116
  readonly name: Schema.Literal<"ui_access_step_completed">;
2034
2117
  readonly props: Schema.Struct<{
@@ -2046,6 +2129,17 @@ declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
2046
2129
  readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
2047
2130
  }>;
2048
2131
  }>;
2132
+ /**
2133
+ * R06 (#1964) wired three of the four progress words to the durable writer that
2134
+ * commits each one. `account_ready` comes from `org/memberLifecycle.ts`, for
2135
+ * every membership row a claimed personal Account actually advanced.
2136
+ * `permission_applied` and `membership_activated` come from
2137
+ * `permission/mirror.ts`: the first only when the mirror wrote a NEW Permission
2138
+ * state, the second only when that call flipped a `pending_grant` row to
2139
+ * `active`. A replay of an applied command writes neither, so it reports
2140
+ * neither. `revoked` stays RESERVED and unproduced — no writer revokes a
2141
+ * membership yet, and #1459 owns that ceremony.
2142
+ */
2049
2143
  declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2050
2144
  readonly name: Schema.Literal<"org_invite_progressed">;
2051
2145
  readonly props: Schema.Struct<{
@@ -2162,6 +2256,12 @@ declare const PayrollRunTransitionedTelemetryEventSchema: Schema.Struct<{
2162
2256
  readonly organization_id: Schema.Codec<string, string, never, never>;
2163
2257
  readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2164
2258
  readonly run_id: Schema.String;
2259
+ /**
2260
+ * The `paymentCommands` row at `payrollRuns.batchRef` — the durable owner of
2261
+ * this run's Payment membership. `payment_count` counts THAT command's
2262
+ * `paymentIds`, so an unrelated Payment quoting the run id changes neither.
2263
+ */
2264
+ readonly command_id: Schema.optional<Schema.String>;
2165
2265
  readonly payment_count: Schema.optional<Schema.Number>;
2166
2266
  readonly occurred_at: Schema.Number;
2167
2267
  }>;
@@ -2357,6 +2457,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2357
2457
  readonly organization_id: Schema.Codec<string, string, never, never>;
2358
2458
  readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2359
2459
  readonly run_id: Schema.String;
2460
+ /**
2461
+ * The `paymentCommands` row at `payrollRuns.batchRef` — the durable owner of
2462
+ * this run's Payment membership. `payment_count` counts THAT command's
2463
+ * `paymentIds`, so an unrelated Payment quoting the run id changes neither.
2464
+ */
2465
+ readonly command_id: Schema.optional<Schema.String>;
2360
2466
  readonly payment_count: Schema.optional<Schema.Number>;
2361
2467
  readonly occurred_at: Schema.Number;
2362
2468
  }>;
@@ -2413,6 +2519,19 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2413
2519
  readonly outcome: Schema.Literal<"requested">;
2414
2520
  }>]>;
2415
2521
  }>;
2522
+ readonly cli_diagnostic_completed: Schema.Struct<{
2523
+ readonly name: Schema.Literal<"cli_diagnostic_completed">;
2524
+ readonly props: Schema.Struct<{
2525
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2526
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2527
+ readonly journey_id: Schema.optional<Schema.String>;
2528
+ readonly correlation_id: Schema.optional<Schema.String>;
2529
+ readonly sdk_version: Schema.optional<Schema.String>;
2530
+ readonly outcome: Schema.Literals<readonly ["succeeded", "refused", "failed", "cancelled"]>;
2531
+ readonly invocation_id: Schema.String;
2532
+ readonly cli_version: Schema.String;
2533
+ }>;
2534
+ }>;
2416
2535
  readonly activity_annotation_saved: Schema.Struct<{
2417
2536
  readonly name: Schema.Literal<"activity_annotation_saved">;
2418
2537
  readonly props: Schema.Struct<{
@@ -2431,6 +2550,17 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2431
2550
  readonly ui_activity_action_completed: Schema.Struct<{
2432
2551
  readonly name: Schema.Literal<"ui_activity_action_completed">;
2433
2552
  readonly props: Schema.Union<readonly [Schema.Struct<{
2553
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2554
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2555
+ readonly journey_id: Schema.optional<Schema.String>;
2556
+ readonly correlation_id: Schema.optional<Schema.String>;
2557
+ readonly sdk_version: Schema.optional<Schema.String>;
2558
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2559
+ readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
2560
+ readonly action: Schema.Literal<"read">;
2561
+ readonly outcome: Schema.Literals<readonly ["partial_displayed", "recovered"]>;
2562
+ readonly surface: Schema.Literals<readonly ["transactions", "recent", "summary"]>;
2563
+ }>, Schema.Struct<{
2434
2564
  readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2435
2565
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2436
2566
  readonly journey_id: Schema.optional<Schema.String>;
@@ -2899,6 +3029,9 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2899
3029
  readonly correlation_id: Schema.optional<Schema.String>;
2900
3030
  readonly sdk_version: Schema.optional<Schema.String>;
2901
3031
  readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
3032
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
3033
+ readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3034
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2902
3035
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2903
3036
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
2904
3037
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -3484,6 +3617,20 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3484
3617
  */
3485
3618
  readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
3486
3619
  readonly command_id: Schema.optional<Schema.String>;
3620
+ /**
3621
+ * #1961 R03. The authorized stored row names the Permission it changed; the
3622
+ * verified receipt names the chain facts that prove it. Every field is
3623
+ * optional because a pending or provider-failed verification has neither an
3624
+ * application result nor a receipt to report.
3625
+ */
3626
+ readonly permission_id: Schema.optional<Schema.String>;
3627
+ readonly permission_assignment_id: Schema.optional<Schema.String>;
3628
+ readonly permission_operation: Schema.optional<Schema.Literals<readonly ["create", "change", "assign", "revoke", "replace"]>>;
3629
+ readonly revision: Schema.optional<Schema.Number>;
3630
+ readonly user_op_hash: Schema.optional<Schema.String>;
3631
+ readonly transaction_hash: Schema.optional<Schema.String>;
3632
+ readonly block_number: Schema.optional<Schema.Number>;
3633
+ readonly log_index: Schema.optional<Schema.Number>;
3487
3634
  }>;
3488
3635
  }>;
3489
3636
  readonly movement_scan_window: Schema.Struct<{
@@ -3531,6 +3678,25 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3531
3678
  readonly anchor_block_number: Schema.Number;
3532
3679
  }>;
3533
3680
  }>;
3681
+ readonly indexer_drift_corrected: Schema.Struct<{
3682
+ readonly name: Schema.Literal<"indexer_drift_corrected">;
3683
+ readonly props: Schema.Struct<{
3684
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3685
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3686
+ readonly journey_id: Schema.optional<Schema.String>;
3687
+ readonly correlation_id: Schema.optional<Schema.String>;
3688
+ readonly sdk_version: Schema.optional<Schema.String>;
3689
+ readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement", "permission_assignment"]>;
3690
+ readonly previous_state: Schema.String;
3691
+ readonly current_state: Schema.String;
3692
+ readonly previous_block: Schema.optional<Schema.Number>;
3693
+ readonly current_block: Schema.optional<Schema.Number>;
3694
+ readonly logical_event_id: Schema.optional<Schema.String>;
3695
+ readonly scope_kind: Schema.optional<Schema.Literals<readonly ["account", "organization"]>>;
3696
+ readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
3697
+ readonly reference_id: Schema.optional<Schema.String>;
3698
+ }>;
3699
+ }>;
3534
3700
  };
3535
3701
  declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
3536
3702
  /**
@@ -3539,7 +3705,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
3539
3705
  * A domain node removes its entry when it adds the producer. The telemetry
3540
3706
  * gate rejects an entry that has a producer.
3541
3707
  */
3542
- declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly ["access_recovery_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "payroll_group_changed", "payroll_run_transitioned"];
3708
+ declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
3543
3709
  /**
3544
3710
  * Catalog events whose product mapper remains gated on the #1150 frontend
3545
3711
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -3586,8 +3752,8 @@ interface PostHogBrowserCapture {
3586
3752
  * property before transport. Browser applications may carry emails, draft ids,
3587
3753
  * or other capabilities in the URL; those values must never leave the origin.
3588
3754
  *
3589
- * The callback mutates and returns the supplied event, matching PostHog's
3590
- * `before_send` contract while preserving the event's full structural type.
3755
+ * The callback replaces the event's data with a sanitized copy. Nested values
3756
+ * can refer to live clients or configuration; observation must never mutate them.
3591
3757
  */
3592
3758
  declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T, urlPolicy?: "path-only" | "diagnostic"): T;
3593
3759
  /**
@@ -3768,4 +3934,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3768
3934
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3769
3935
  }
3770
3936
  //#endregion
3771
- export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
3937
+ export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliDiagnosticCompletedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };