@capxul/observability 2.5.5 → 2.6.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
@@ -1,38 +1,62 @@
1
1
  import { Effect, Schema } from "effect";
2
2
 
3
+ //#region ../errors/src/chain-cause.d.ts
4
+ /**
5
+ * Why an operation failed — the one flat vocabulary. The first four are the
6
+ * auth/provider diagnoses that predate this file. The rest name the chain
7
+ * path. `FailureMode` is derived from this list so a runtime membership check
8
+ * (the SDK's `$exception` projection, the observability schema) and the type
9
+ * can never drift apart.
10
+ */
11
+ declare const FAILURE_MODES: readonly [/** OTP cookies live on `localhost:PORT` but OpenFort hits the Convex host. */"auth-origin-mismatch", /** An old `userId` in scoped storage makes the SDK skip re-auth → 401. */"stale-openfort-cache", /** The selected app/deployment origin is not allowlisted → 401. */"app-env-allowlist", /** Sandboxed/headless browser with no Web Crypto. */"no-secure-context", /** One upstream answered HTTP 429 or JSON-RPC -32005. Retryable. */"rate-limited", /** No answer inside the budget. Retryable. */"timeout", /** HTTP 5xx, a connection failure, or a malformed envelope. Retryable. */"upstream-down", /** Simulation or execution reverted; `chain.revert` names it when decodable. */"revert", /** A balance pre-flight shortfall or a decoded `ERC20InsufficientBalance`. */"insufficient-balance", /** A decoded `ERC20InsufficientAllowance`. */"insufficient-allowance", /** The bundler's validation refused the operation (AA2x/AA3x); its text is carried. */"rejected", /** The gateway refused the token. */"unauthorized", /** No cause could be determined. */"unknown"];
12
+ type FailureMode = (typeof FAILURE_MODES)[number];
13
+ /** Who answered. `alto` is the bundler; `gateway` is the AA gateway's own logic. */
14
+ declare const CHAIN_UPSTREAMS: readonly ["alchemy", "infura", "public", "alto", "gateway"];
15
+ type ChainUpstream = (typeof CHAIN_UPSTREAMS)[number];
16
+ /** A decoded revert. `name` is null when the selector is unknown or the data was empty. */
17
+ type RevertSummary = {
18
+ readonly name: string | null;
19
+ readonly selector: string;
20
+ readonly args: Readonly<Record<string, string>>;
21
+ };
22
+ /**
23
+ * The structured cause of a chain-path failure. Built once by the layer that
24
+ * saw the failure and passed on unchanged. `providerMessage` is the provider's
25
+ * own words, bounded and secret-masked by the producer; it is evidence, never
26
+ * something a consumer routes on.
27
+ */
28
+ type ChainCause = {
29
+ readonly mode: FailureMode;
30
+ readonly upstream: ChainUpstream;
31
+ readonly method: string;
32
+ readonly retryable: boolean;
33
+ readonly httpStatus?: number;
34
+ readonly rpcCode?: number;
35
+ readonly revert?: RevertSummary;
36
+ readonly providerMessage?: string;
37
+ };
38
+ //#endregion
3
39
  //#region ../errors/src/errors.d.ts
4
40
  declare const CAPXUL_ERROR_CODES: readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "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"];
5
41
  type CapxulErrorCode = (typeof CAPXUL_ERROR_CODES)[number];
6
- /**
7
- * Why an auth/provider call failed — a flat CAUSE enum. The *where* (which
8
- * OpenFort operation) stays in the separate `operation` detail field; this
9
- * names the root cause so a single `$exception` can be triaged without
10
- * parsing the message. Five members, no free strings:
11
- *
12
- * - `auth-origin-mismatch`: OTP cookies live on `localhost:PORT` but OpenFort
13
- * hits the Convex host → no session reaches the provider.
14
- * - `stale-openfort-cache`: an old `userId` in scoped storage makes the SDK
15
- * skip re-auth → 401 on `v2/accounts`.
16
- * - `app-env-allowlist`: the selected app/deployment origin is not allowlisted
17
- * → 401.
18
- * - `no-secure-context`: sandboxed/headless browser with no Web Crypto, so
19
- * `getAddress`/`configure` can never produce an address. Previously vanished
20
- * into `unknown`; the signer's secure-context probe now names it.
21
- * - `unknown`: catch-all when no cause could be determined.
22
- */
23
- type FailureMode = "auth-origin-mismatch" | "stale-openfort-cache" | "app-env-allowlist" | "no-secure-context" /** #1684: an upstream RPC provider throttled the call (HTTP 429 or JSON-RPC -32005). Retryable. */ | "rate-limited" | "unknown";
24
42
  type CapxulErrorDetails = Record<string, unknown>;
25
43
  type CapxulErrorOptions = {
26
44
  readonly cause?: unknown;
27
45
  readonly details?: CapxulErrorDetails;
28
46
  readonly correlationId?: string;
29
47
  readonly layer?: string;
48
+ readonly mode?: FailureMode;
49
+ readonly chain?: ChainCause;
30
50
  };
31
51
  declare class CapxulError extends Error {
32
52
  readonly code: CapxulErrorCode;
33
53
  readonly details?: CapxulErrorDetails;
34
54
  readonly correlationId?: string;
35
55
  readonly layer?: string;
56
+ /** The one-word cause (`FailureMode`). `chain.mode` when a chain cause is set. */
57
+ readonly mode?: FailureMode;
58
+ /** The structured chain-path cause. Never rewritten by a later layer. */
59
+ readonly chain?: ChainCause;
36
60
  constructor(code: CapxulErrorCode, message: string, options?: CapxulErrorOptions);
37
61
  }
38
62
  //#endregion
@@ -109,7 +133,7 @@ interface TelemetryPort {
109
133
  }
110
134
  //#endregion
111
135
  //#region src/index.d.ts
112
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "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", "aa_gateway_upstream_fallback", "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", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
136
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "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", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
113
137
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
114
138
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
115
139
  type FunnelStepPropertyFilter = {
@@ -297,6 +321,14 @@ declare const SYNCABLE_CAPXUL_ENVS: readonly ["development", "staging", "product
297
321
  */
298
322
  declare const TELEMETRY_PRODUCERS: readonly ["server", "browser", "sdk", "mcp", "e2e"];
299
323
  type TelemetryProducer = (typeof TELEMETRY_PRODUCERS)[number];
324
+ /**
325
+ * The cause of a failure, flat (ADR-0023 R7–R8). `failure_mode` is the one
326
+ * word from `@capxul/errors`; the `chain_*` keys are the `ChainCause` when the
327
+ * failure came from the chain path. Spread into every failure event and posted
328
+ * on `$exception`, so one PostHog filter finds a cause wherever it was seen.
329
+ */
330
+ declare const FailureModeSchema: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
331
+ declare const ChainUpstreamSchema: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
300
332
  interface TelemetryEnvelopeDefaults {
301
333
  readonly capxul_env: CapxulEnv;
302
334
  readonly producer: TelemetryProducer;
@@ -365,6 +397,16 @@ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
365
397
  readonly journey_id: Schema.optional<Schema.String>;
366
398
  readonly correlation_id: Schema.optional<Schema.String>;
367
399
  readonly sdk_version: Schema.optional<Schema.String>;
400
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
401
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
402
+ readonly chain_method: Schema.optional<Schema.String>;
403
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
404
+ readonly chain_http_status: Schema.optional<Schema.Number>;
405
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
406
+ readonly chain_revert_name: Schema.optional<Schema.String>;
407
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
408
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
409
+ readonly chain_provider_message: Schema.optional<Schema.String>;
368
410
  readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
369
411
  readonly auth_type: Schema.optional<Schema.String>;
370
412
  readonly reason: Schema.optional<Schema.String>;
@@ -476,6 +518,16 @@ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
476
518
  readonly journey_id: Schema.optional<Schema.String>;
477
519
  readonly correlation_id: Schema.optional<Schema.String>;
478
520
  readonly sdk_version: Schema.optional<Schema.String>;
521
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
522
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
523
+ readonly chain_method: Schema.optional<Schema.String>;
524
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
525
+ readonly chain_http_status: Schema.optional<Schema.Number>;
526
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
527
+ readonly chain_revert_name: Schema.optional<Schema.String>;
528
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
529
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
530
+ readonly chain_provider_message: Schema.optional<Schema.String>;
479
531
  readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
480
532
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
481
533
  readonly origin: Schema.optional<Schema.String>;
@@ -513,6 +565,16 @@ declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
513
565
  readonly journey_id: Schema.optional<Schema.String>;
514
566
  readonly correlation_id: Schema.optional<Schema.String>;
515
567
  readonly sdk_version: Schema.optional<Schema.String>;
568
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
569
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
570
+ readonly chain_method: Schema.optional<Schema.String>;
571
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
572
+ readonly chain_http_status: Schema.optional<Schema.Number>;
573
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
574
+ readonly chain_revert_name: Schema.optional<Schema.String>;
575
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
576
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
577
+ readonly chain_provider_message: Schema.optional<Schema.String>;
516
578
  readonly $insert_id: Schema.String;
517
579
  readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
518
580
  readonly error_code: Schema.String;
@@ -554,6 +616,16 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
554
616
  readonly journey_id: Schema.optional<Schema.String>;
555
617
  readonly correlation_id: Schema.optional<Schema.String>;
556
618
  readonly sdk_version: Schema.optional<Schema.String>;
619
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
620
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
621
+ readonly chain_method: Schema.optional<Schema.String>;
622
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
623
+ readonly chain_http_status: Schema.optional<Schema.Number>;
624
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
625
+ readonly chain_revert_name: Schema.optional<Schema.String>;
626
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
627
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
628
+ readonly chain_provider_message: Schema.optional<Schema.String>;
557
629
  readonly $insert_id: Schema.String;
558
630
  readonly organization_id: Schema.Codec<string, string, never, never>;
559
631
  readonly attempt_number: Schema.refine<number, Schema.Number>;
@@ -586,6 +658,16 @@ declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
586
658
  readonly journey_id: Schema.optional<Schema.String>;
587
659
  readonly correlation_id: Schema.optional<Schema.String>;
588
660
  readonly sdk_version: Schema.optional<Schema.String>;
661
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
662
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
663
+ readonly chain_method: Schema.optional<Schema.String>;
664
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
665
+ readonly chain_http_status: Schema.optional<Schema.Number>;
666
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
667
+ readonly chain_revert_name: Schema.optional<Schema.String>;
668
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
669
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
670
+ readonly chain_provider_message: Schema.optional<Schema.String>;
589
671
  readonly reason: Schema.optional<Schema.String>;
590
672
  }>;
591
673
  }>;
@@ -623,11 +705,39 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
623
705
  readonly journey_id: Schema.optional<Schema.String>;
624
706
  readonly correlation_id: Schema.optional<Schema.String>;
625
707
  readonly sdk_version: Schema.optional<Schema.String>;
708
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
709
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
710
+ readonly chain_method: Schema.optional<Schema.String>;
711
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
712
+ readonly chain_http_status: Schema.optional<Schema.Number>;
713
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
714
+ readonly chain_revert_name: Schema.optional<Schema.String>;
715
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
716
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
717
+ readonly chain_provider_message: Schema.optional<Schema.String>;
626
718
  readonly reason: Schema.optional<Schema.String>;
627
719
  }>;
628
720
  }>;
629
- declare const AaGatewayUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
630
- readonly name: Schema.Literal<"aa_gateway_upstream_fallback">;
721
+ declare const ChainUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
722
+ readonly name: Schema.Literal<"chain_upstream_fallback">;
723
+ readonly props: Schema.Struct<{
724
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
725
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
726
+ readonly journey_id: Schema.optional<Schema.String>;
727
+ readonly correlation_id: Schema.optional<Schema.String>;
728
+ readonly sdk_version: Schema.optional<Schema.String>;
729
+ readonly service: Schema.Literals<readonly ["aa-gateway", "backend"]>;
730
+ readonly method: Schema.String;
731
+ readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
732
+ readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
733
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
734
+ readonly exhausted: Schema.Boolean;
735
+ readonly http_status: Schema.optional<Schema.Number>;
736
+ readonly rpc_code: Schema.optional<Schema.Number>;
737
+ }>;
738
+ }>;
739
+ declare const BundlerErrorTelemetryEventSchema: Schema.Struct<{
740
+ readonly name: Schema.Literal<"bundler_error">;
631
741
  readonly props: Schema.Struct<{
632
742
  readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
633
743
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
@@ -635,10 +745,41 @@ declare const AaGatewayUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
635
745
  readonly correlation_id: Schema.optional<Schema.String>;
636
746
  readonly sdk_version: Schema.optional<Schema.String>;
637
747
  readonly method: Schema.String;
638
- readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public"]>;
639
- readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public"]>>;
640
- readonly failure: Schema.Literals<readonly ["http-429", "http-5xx", "rpc-rate-limit", "timeout", "network"]>;
641
- readonly status: Schema.optional<Schema.Number>;
748
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
749
+ readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
750
+ readonly chain_retryable: Schema.Boolean;
751
+ readonly http_status: Schema.optional<Schema.Number>;
752
+ readonly rpc_code: Schema.optional<Schema.Number>;
753
+ readonly chain_revert_name: Schema.optional<Schema.String>;
754
+ readonly chain_provider_message: Schema.optional<Schema.String>;
755
+ }>;
756
+ }>;
757
+ declare const ReceiptPendingTelemetryEventSchema: Schema.Struct<{
758
+ readonly name: Schema.Literal<"receipt_pending">;
759
+ readonly props: Schema.Struct<{
760
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
761
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
762
+ readonly journey_id: Schema.optional<Schema.String>;
763
+ readonly correlation_id: Schema.optional<Schema.String>;
764
+ readonly sdk_version: Schema.optional<Schema.String>;
765
+ readonly service: Schema.Literals<readonly ["aa-gateway", "backend"]>;
766
+ readonly method: Schema.String;
767
+ readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
768
+ readonly reason: Schema.Literals<readonly ["zero_block_hash", "no_receipt"]>;
769
+ }>;
770
+ }>;
771
+ declare const OperationRetriedTelemetryEventSchema: Schema.Struct<{
772
+ readonly name: Schema.Literal<"operation_retried">;
773
+ readonly props: Schema.Struct<{
774
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
775
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
776
+ readonly journey_id: Schema.optional<Schema.String>;
777
+ readonly correlation_id: Schema.optional<Schema.String>;
778
+ readonly sdk_version: Schema.optional<Schema.String>;
779
+ readonly operation: Schema.String;
780
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
781
+ readonly attempt: Schema.Number;
782
+ readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
642
783
  }>;
643
784
  }>;
644
785
  declare const OrgCreateStartedTelemetryEventSchema: Schema.Struct<{
@@ -717,6 +858,16 @@ declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
717
858
  readonly journey_id: Schema.optional<Schema.String>;
718
859
  readonly correlation_id: Schema.optional<Schema.String>;
719
860
  readonly sdk_version: Schema.optional<Schema.String>;
861
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
862
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
863
+ readonly chain_method: Schema.optional<Schema.String>;
864
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
865
+ readonly chain_http_status: Schema.optional<Schema.Number>;
866
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
867
+ readonly chain_revert_name: Schema.optional<Schema.String>;
868
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
869
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
870
+ readonly chain_provider_message: Schema.optional<Schema.String>;
720
871
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
721
872
  readonly reason: Schema.optional<Schema.String>;
722
873
  }>;
@@ -796,11 +947,35 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
796
947
  readonly journey_id: Schema.optional<Schema.String>;
797
948
  readonly correlation_id: Schema.optional<Schema.String>;
798
949
  readonly sdk_version: Schema.optional<Schema.String>;
950
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
951
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
952
+ readonly chain_method: Schema.optional<Schema.String>;
953
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
954
+ readonly chain_http_status: Schema.optional<Schema.Number>;
955
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
956
+ readonly chain_revert_name: Schema.optional<Schema.String>;
957
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
958
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
959
+ readonly chain_provider_message: Schema.optional<Schema.String>;
799
960
  readonly kind: Schema.String;
800
961
  readonly payment_id: Schema.String;
801
962
  readonly reason_code: Schema.String;
802
963
  }>;
803
964
  }>;
965
+ declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
966
+ readonly name: Schema.Literal<"payment_verification_retry">;
967
+ readonly props: Schema.Struct<{
968
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
969
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
970
+ readonly journey_id: Schema.optional<Schema.String>;
971
+ readonly correlation_id: Schema.optional<Schema.String>;
972
+ readonly sdk_version: Schema.optional<Schema.String>;
973
+ readonly command_id: Schema.String;
974
+ readonly attempt: Schema.Number;
975
+ readonly reason_code: Schema.String;
976
+ readonly chain_id: Schema.Number;
977
+ }>;
978
+ }>;
804
979
  declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
805
980
  readonly name: Schema.Literal<"deposit_initiated">;
806
981
  readonly props: Schema.Struct<{
@@ -941,6 +1116,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
941
1116
  readonly journey_id: Schema.optional<Schema.String>;
942
1117
  readonly correlation_id: Schema.optional<Schema.String>;
943
1118
  readonly sdk_version: Schema.optional<Schema.String>;
1119
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1120
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1121
+ readonly chain_method: Schema.optional<Schema.String>;
1122
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1123
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1124
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1125
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1126
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1127
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1128
+ readonly chain_provider_message: Schema.optional<Schema.String>;
944
1129
  readonly email: Schema.optional<Schema.brand<Schema.String, "PII">>;
945
1130
  readonly auth_type: Schema.optional<Schema.String>;
946
1131
  readonly reason: Schema.optional<Schema.String>;
@@ -1052,6 +1237,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1052
1237
  readonly journey_id: Schema.optional<Schema.String>;
1053
1238
  readonly correlation_id: Schema.optional<Schema.String>;
1054
1239
  readonly sdk_version: Schema.optional<Schema.String>;
1240
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1241
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1242
+ readonly chain_method: Schema.optional<Schema.String>;
1243
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1244
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1245
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1246
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1247
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1248
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1249
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1055
1250
  readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
1056
1251
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1057
1252
  readonly origin: Schema.optional<Schema.String>;
@@ -1089,6 +1284,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1089
1284
  readonly journey_id: Schema.optional<Schema.String>;
1090
1285
  readonly correlation_id: Schema.optional<Schema.String>;
1091
1286
  readonly sdk_version: Schema.optional<Schema.String>;
1287
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1288
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1289
+ readonly chain_method: Schema.optional<Schema.String>;
1290
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1291
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1292
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1293
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1294
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1295
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1296
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1092
1297
  readonly $insert_id: Schema.String;
1093
1298
  readonly stage: Schema.Literals<readonly ["profile", "accountProvisioning", "accountClaim", "preparingFounderAccount", "awaitingFounderAuthorization", "submittingBootstrap", "confirmingBootstrap"]>;
1094
1299
  readonly error_code: Schema.String;
@@ -1130,6 +1335,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1130
1335
  readonly journey_id: Schema.optional<Schema.String>;
1131
1336
  readonly correlation_id: Schema.optional<Schema.String>;
1132
1337
  readonly sdk_version: Schema.optional<Schema.String>;
1338
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1339
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1340
+ readonly chain_method: Schema.optional<Schema.String>;
1341
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1342
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1343
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1344
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1345
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1346
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1347
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1133
1348
  readonly $insert_id: Schema.String;
1134
1349
  readonly organization_id: Schema.Codec<string, string, never, never>;
1135
1350
  readonly attempt_number: Schema.refine<number, Schema.Number>;
@@ -1162,6 +1377,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1162
1377
  readonly journey_id: Schema.optional<Schema.String>;
1163
1378
  readonly correlation_id: Schema.optional<Schema.String>;
1164
1379
  readonly sdk_version: Schema.optional<Schema.String>;
1380
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1381
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1382
+ readonly chain_method: Schema.optional<Schema.String>;
1383
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1384
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1385
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1386
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1387
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1388
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1389
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1165
1390
  readonly reason: Schema.optional<Schema.String>;
1166
1391
  }>;
1167
1392
  }>;
@@ -1199,22 +1424,81 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1199
1424
  readonly journey_id: Schema.optional<Schema.String>;
1200
1425
  readonly correlation_id: Schema.optional<Schema.String>;
1201
1426
  readonly sdk_version: Schema.optional<Schema.String>;
1427
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1428
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1429
+ readonly chain_method: Schema.optional<Schema.String>;
1430
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1431
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1432
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1433
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1434
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1435
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1436
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1202
1437
  readonly reason: Schema.optional<Schema.String>;
1203
1438
  }>;
1204
1439
  }>;
1205
- readonly aa_gateway_upstream_fallback: Schema.Struct<{
1206
- readonly name: Schema.Literal<"aa_gateway_upstream_fallback">;
1440
+ readonly chain_upstream_fallback: Schema.Struct<{
1441
+ readonly name: Schema.Literal<"chain_upstream_fallback">;
1442
+ readonly props: Schema.Struct<{
1443
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1444
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1445
+ readonly journey_id: Schema.optional<Schema.String>;
1446
+ readonly correlation_id: Schema.optional<Schema.String>;
1447
+ readonly sdk_version: Schema.optional<Schema.String>;
1448
+ readonly service: Schema.Literals<readonly ["aa-gateway", "backend"]>;
1449
+ readonly method: Schema.String;
1450
+ readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
1451
+ readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1452
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
1453
+ readonly exhausted: Schema.Boolean;
1454
+ readonly http_status: Schema.optional<Schema.Number>;
1455
+ readonly rpc_code: Schema.optional<Schema.Number>;
1456
+ }>;
1457
+ }>;
1458
+ readonly bundler_error: Schema.Struct<{
1459
+ readonly name: Schema.Literal<"bundler_error">;
1460
+ readonly props: Schema.Struct<{
1461
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1462
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1463
+ readonly journey_id: Schema.optional<Schema.String>;
1464
+ readonly correlation_id: Schema.optional<Schema.String>;
1465
+ readonly sdk_version: Schema.optional<Schema.String>;
1466
+ readonly method: Schema.String;
1467
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
1468
+ readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
1469
+ readonly chain_retryable: Schema.Boolean;
1470
+ readonly http_status: Schema.optional<Schema.Number>;
1471
+ readonly rpc_code: Schema.optional<Schema.Number>;
1472
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1473
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1474
+ }>;
1475
+ }>;
1476
+ readonly receipt_pending: Schema.Struct<{
1477
+ readonly name: Schema.Literal<"receipt_pending">;
1207
1478
  readonly props: Schema.Struct<{
1208
1479
  readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1209
1480
  readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1210
1481
  readonly journey_id: Schema.optional<Schema.String>;
1211
1482
  readonly correlation_id: Schema.optional<Schema.String>;
1212
1483
  readonly sdk_version: Schema.optional<Schema.String>;
1484
+ readonly service: Schema.Literals<readonly ["aa-gateway", "backend"]>;
1213
1485
  readonly method: Schema.String;
1214
- readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public"]>;
1215
- readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public"]>>;
1216
- readonly failure: Schema.Literals<readonly ["http-429", "http-5xx", "rpc-rate-limit", "timeout", "network"]>;
1217
- readonly status: Schema.optional<Schema.Number>;
1486
+ readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
1487
+ readonly reason: Schema.Literals<readonly ["zero_block_hash", "no_receipt"]>;
1488
+ }>;
1489
+ }>;
1490
+ readonly operation_retried: Schema.Struct<{
1491
+ readonly name: Schema.Literal<"operation_retried">;
1492
+ readonly props: Schema.Struct<{
1493
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1494
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1495
+ readonly journey_id: Schema.optional<Schema.String>;
1496
+ readonly correlation_id: Schema.optional<Schema.String>;
1497
+ readonly sdk_version: Schema.optional<Schema.String>;
1498
+ readonly operation: Schema.String;
1499
+ readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
1500
+ readonly attempt: Schema.Number;
1501
+ readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
1218
1502
  }>;
1219
1503
  }>;
1220
1504
  readonly org_create_started: Schema.Struct<{
@@ -1293,6 +1577,16 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1293
1577
  readonly journey_id: Schema.optional<Schema.String>;
1294
1578
  readonly correlation_id: Schema.optional<Schema.String>;
1295
1579
  readonly sdk_version: Schema.optional<Schema.String>;
1580
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1581
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1582
+ readonly chain_method: Schema.optional<Schema.String>;
1583
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1584
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1585
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1586
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1587
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1588
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1589
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1296
1590
  readonly org_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1297
1591
  readonly reason: Schema.optional<Schema.String>;
1298
1592
  }>;
@@ -1372,11 +1666,35 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1372
1666
  readonly journey_id: Schema.optional<Schema.String>;
1373
1667
  readonly correlation_id: Schema.optional<Schema.String>;
1374
1668
  readonly sdk_version: Schema.optional<Schema.String>;
1669
+ readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
1670
+ readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
1671
+ readonly chain_method: Schema.optional<Schema.String>;
1672
+ readonly chain_retryable: Schema.optional<Schema.Boolean>;
1673
+ readonly chain_http_status: Schema.optional<Schema.Number>;
1674
+ readonly chain_rpc_code: Schema.optional<Schema.Number>;
1675
+ readonly chain_revert_name: Schema.optional<Schema.String>;
1676
+ readonly chain_revert_selector: Schema.optional<Schema.String>;
1677
+ readonly chain_revert_args: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
1678
+ readonly chain_provider_message: Schema.optional<Schema.String>;
1375
1679
  readonly kind: Schema.String;
1376
1680
  readonly payment_id: Schema.String;
1377
1681
  readonly reason_code: Schema.String;
1378
1682
  }>;
1379
1683
  }>;
1684
+ readonly payment_verification_retry: Schema.Struct<{
1685
+ readonly name: Schema.Literal<"payment_verification_retry">;
1686
+ readonly props: Schema.Struct<{
1687
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1688
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1689
+ readonly journey_id: Schema.optional<Schema.String>;
1690
+ readonly correlation_id: Schema.optional<Schema.String>;
1691
+ readonly sdk_version: Schema.optional<Schema.String>;
1692
+ readonly command_id: Schema.String;
1693
+ readonly attempt: Schema.Number;
1694
+ readonly reason_code: Schema.String;
1695
+ readonly chain_id: Schema.Number;
1696
+ }>;
1697
+ }>;
1380
1698
  readonly deposit_initiated: Schema.Struct<{
1381
1699
  readonly name: Schema.Literal<"deposit_initiated">;
1382
1700
  readonly props: Schema.Struct<{
@@ -1698,4 +2016,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
1698
2016
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
1699
2017
  }
1700
2018
  //#endregion
1701
- export { AaGatewayUpstreamFallbackTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, RecordingTelemetryAdapter, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
2019
+ export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
package/dist/index.mjs CHANGED
@@ -1,4 +1,35 @@
1
1
  import { Effect, Schema, SchemaGetter } from "effect";
2
+ //#region ../errors/src/chain-cause.ts
3
+ /**
4
+ * Why an operation failed — the one flat vocabulary. The first four are the
5
+ * auth/provider diagnoses that predate this file. The rest name the chain
6
+ * path. `FailureMode` is derived from this list so a runtime membership check
7
+ * (the SDK's `$exception` projection, the observability schema) and the type
8
+ * can never drift apart.
9
+ */
10
+ const FAILURE_MODES = [
11
+ "auth-origin-mismatch",
12
+ "stale-openfort-cache",
13
+ "app-env-allowlist",
14
+ "no-secure-context",
15
+ "rate-limited",
16
+ "timeout",
17
+ "upstream-down",
18
+ "revert",
19
+ "insufficient-balance",
20
+ "insufficient-allowance",
21
+ "rejected",
22
+ "unauthorized",
23
+ "unknown"
24
+ ];
25
+ /** Who answered. `alto` is the bundler; `gateway` is the AA gateway's own logic. */
26
+ const CHAIN_UPSTREAMS = [
27
+ "alchemy",
28
+ "infura",
29
+ "public",
30
+ "alto",
31
+ "gateway"
32
+ ];
2
33
  new Set([
3
34
  "NOT_AUTHENTICATED",
4
35
  "EMAIL_DELIVERY_FAILED",
@@ -87,7 +118,10 @@ const TELEMETRY_EVENT_NAMES = [
87
118
  "organization_creation_started",
88
119
  "organization_creation_ready",
89
120
  "organization_creation_failed",
90
- "aa_gateway_upstream_fallback",
121
+ "chain_upstream_fallback",
122
+ "bundler_error",
123
+ "receipt_pending",
124
+ "operation_retried",
91
125
  "account_balance_read",
92
126
  "account_balance_failed",
93
127
  "faucet_requested",
@@ -105,6 +139,7 @@ const TELEMETRY_EVENT_NAMES = [
105
139
  "payment_initiated",
106
140
  "payment_settled",
107
141
  "payment_failed",
142
+ "payment_verification_retry",
108
143
  "deposit_initiated",
109
144
  "deposit_settled",
110
145
  "permission_mirror_verification",
@@ -371,6 +406,26 @@ const TelemetryEnvelopeProps = {
371
406
  sdk_version: OptionalString
372
407
  };
373
408
  /**
409
+ * The cause of a failure, flat (ADR-0023 R7–R8). `failure_mode` is the one
410
+ * word from `@capxul/errors`; the `chain_*` keys are the `ChainCause` when the
411
+ * failure came from the chain path. Spread into every failure event and posted
412
+ * on `$exception`, so one PostHog filter finds a cause wherever it was seen.
413
+ */
414
+ const FailureModeSchema = Schema.Literals(FAILURE_MODES);
415
+ const ChainUpstreamSchema = Schema.Literals(CHAIN_UPSTREAMS);
416
+ const ChainCauseTelemetryProps = {
417
+ failure_mode: Schema.optional(FailureModeSchema),
418
+ chain_upstream: Schema.optional(ChainUpstreamSchema),
419
+ chain_method: OptionalString,
420
+ chain_retryable: Schema.optional(Schema.Boolean),
421
+ chain_http_status: Schema.optional(Schema.Number),
422
+ chain_rpc_code: Schema.optional(Schema.Number),
423
+ chain_revert_name: OptionalString,
424
+ chain_revert_selector: OptionalString,
425
+ chain_revert_args: Schema.optional(Schema.Record(Schema.String, Schema.String)),
426
+ chain_provider_message: OptionalString
427
+ };
428
+ /**
374
429
  * Stamp the required envelope onto an event at its emit boundary. Call-site
375
430
  * props win on conflict: a relay that already knows the true producer (the
376
431
  * browser-failure relay stamps `browser` while running on the server) must not
@@ -408,6 +463,7 @@ const AuthVerifiedProps = Schema.Struct({
408
463
  });
409
464
  const AuthFailedProps = Schema.Struct({
410
465
  ...TelemetryEnvelopeProps,
466
+ ...ChainCauseTelemetryProps,
411
467
  email: Schema.optional(PII),
412
468
  auth_type: OptionalString,
413
469
  reason: OptionalString
@@ -437,6 +493,7 @@ const BootstrapResolvedProps = Schema.Struct({
437
493
  });
438
494
  const BootstrapFailedProps = Schema.Struct({
439
495
  ...TelemetryEnvelopeProps,
496
+ ...ChainCauseTelemetryProps,
440
497
  applicationId: OptionalAppId,
441
498
  durationMs: OptionalDurationMs,
442
499
  origin: OptionalString,
@@ -451,6 +508,7 @@ const AccountBalanceReadProps = Schema.Struct({
451
508
  });
452
509
  const AccountBalanceFailedProps = Schema.Struct({
453
510
  ...TelemetryEnvelopeProps,
511
+ ...ChainCauseTelemetryProps,
454
512
  reason: OptionalString
455
513
  });
456
514
  const FaucetRequestedProps = Schema.Struct({
@@ -467,29 +525,45 @@ const FaucetConfirmedProps = Schema.Struct({
467
525
  });
468
526
  const FaucetFailedProps = Schema.Struct({
469
527
  ...TelemetryEnvelopeProps,
528
+ ...ChainCauseTelemetryProps,
470
529
  reason: OptionalString
471
530
  });
472
- const AaGatewayUpstreamFallbackProps = Schema.Struct({
531
+ const ChainServiceSchema = Schema.Literals(["aa-gateway", "backend"]);
532
+ const ChainUpstreamFallbackProps = Schema.Struct({
473
533
  ...TelemetryEnvelopeProps,
534
+ service: ChainServiceSchema,
474
535
  method: Schema.String,
475
- from_upstream: Schema.Literals([
476
- "alchemy",
477
- "infura",
478
- "public"
479
- ]),
480
- to_upstream: Schema.optional(Schema.Literals([
481
- "alchemy",
482
- "infura",
483
- "public"
484
- ])),
485
- failure: Schema.Literals([
486
- "http-429",
487
- "http-5xx",
488
- "rpc-rate-limit",
489
- "timeout",
490
- "network"
491
- ]),
492
- status: Schema.optional(Schema.Number)
536
+ from_upstream: ChainUpstreamSchema,
537
+ to_upstream: Schema.optional(ChainUpstreamSchema),
538
+ failure_mode: FailureModeSchema,
539
+ exhausted: Schema.Boolean,
540
+ http_status: Schema.optional(Schema.Number),
541
+ rpc_code: Schema.optional(Schema.Number)
542
+ });
543
+ const BundlerErrorProps = Schema.Struct({
544
+ ...TelemetryEnvelopeProps,
545
+ method: Schema.String,
546
+ failure_mode: FailureModeSchema,
547
+ chain_upstream: ChainUpstreamSchema,
548
+ chain_retryable: Schema.Boolean,
549
+ http_status: Schema.optional(Schema.Number),
550
+ rpc_code: Schema.optional(Schema.Number),
551
+ chain_revert_name: OptionalString,
552
+ chain_provider_message: OptionalString
553
+ });
554
+ const ReceiptPendingProps = Schema.Struct({
555
+ ...TelemetryEnvelopeProps,
556
+ service: ChainServiceSchema,
557
+ method: Schema.String,
558
+ chain_upstream: ChainUpstreamSchema,
559
+ reason: Schema.Literals(["zero_block_hash", "no_receipt"])
560
+ });
561
+ const OperationRetriedProps = Schema.Struct({
562
+ ...TelemetryEnvelopeProps,
563
+ operation: Schema.String,
564
+ failure_mode: FailureModeSchema,
565
+ attempt: Schema.Number,
566
+ delay_ms: DurationMsSchema
493
567
  });
494
568
  const ORG_ID_TELEMETRY_RE = /^org_[0-9A-Za-z]+$/;
495
569
  const OrgIdTelemetrySchema = Schema.String.pipe(Schema.refine((value) => ORG_ID_TELEMETRY_RE.test(value), { message: "must be org_ plus an alphanumeric id" }));
@@ -515,6 +589,7 @@ const MemberActivationReadyProps = Schema.Struct({
515
589
  });
516
590
  const MemberActivationFailedProps = Schema.Struct({
517
591
  ...TelemetryEnvelopeProps,
592
+ ...ChainCauseTelemetryProps,
518
593
  $insert_id: Schema.String,
519
594
  stage: OnboardingStageSchema,
520
595
  error_code: Schema.String,
@@ -535,6 +610,7 @@ const OrganizationCreationReadyProps = Schema.Struct({
535
610
  });
536
611
  const OrganizationCreationFailedProps = Schema.Struct({
537
612
  ...TelemetryEnvelopeProps,
613
+ ...ChainCauseTelemetryProps,
538
614
  $insert_id: Schema.String,
539
615
  organization_id: OrgIdTelemetrySchema,
540
616
  attempt_number: AttemptNumberSchema,
@@ -614,6 +690,7 @@ const OrgCreatedProps = Schema.Struct({
614
690
  });
615
691
  const OrgCreateFailedProps = Schema.Struct({
616
692
  ...TelemetryEnvelopeProps,
693
+ ...ChainCauseTelemetryProps,
617
694
  org_id: OptionalOrgId,
618
695
  reason: OptionalString
619
696
  });
@@ -651,10 +728,18 @@ const PaymentSettledL2Props = Schema.Struct({
651
728
  });
652
729
  const PaymentFailedL2Props = Schema.Struct({
653
730
  ...TelemetryEnvelopeProps,
731
+ ...ChainCauseTelemetryProps,
654
732
  kind: Schema.String,
655
733
  payment_id: Schema.String,
656
734
  reason_code: Schema.String
657
735
  });
736
+ const PaymentVerificationRetryProps = Schema.Struct({
737
+ ...TelemetryEnvelopeProps,
738
+ command_id: Schema.String,
739
+ attempt: Schema.Number,
740
+ reason_code: Schema.String,
741
+ chain_id: Schema.Number
742
+ });
658
743
  const DepositInitiatedProps = Schema.Struct({ ...TelemetryEnvelopeProps });
659
744
  const DepositSettledProps = Schema.Struct({
660
745
  ...TelemetryEnvelopeProps,
@@ -793,9 +878,21 @@ const FaucetFailedTelemetryEventSchema = Schema.Struct({
793
878
  name: Schema.Literal("faucet_failed"),
794
879
  props: FaucetFailedProps
795
880
  });
796
- const AaGatewayUpstreamFallbackTelemetryEventSchema = Schema.Struct({
797
- name: Schema.Literal("aa_gateway_upstream_fallback"),
798
- props: AaGatewayUpstreamFallbackProps
881
+ const ChainUpstreamFallbackTelemetryEventSchema = Schema.Struct({
882
+ name: Schema.Literal("chain_upstream_fallback"),
883
+ props: ChainUpstreamFallbackProps
884
+ });
885
+ const BundlerErrorTelemetryEventSchema = Schema.Struct({
886
+ name: Schema.Literal("bundler_error"),
887
+ props: BundlerErrorProps
888
+ });
889
+ const ReceiptPendingTelemetryEventSchema = Schema.Struct({
890
+ name: Schema.Literal("receipt_pending"),
891
+ props: ReceiptPendingProps
892
+ });
893
+ const OperationRetriedTelemetryEventSchema = Schema.Struct({
894
+ name: Schema.Literal("operation_retried"),
895
+ props: OperationRetriedProps
799
896
  });
800
897
  const OrgCreateStartedTelemetryEventSchema = Schema.Struct({
801
898
  name: Schema.Literal("org_create_started"),
@@ -845,6 +942,10 @@ const PaymentFailedTelemetryEventSchema = Schema.Struct({
845
942
  name: Schema.Literal("payment_failed"),
846
943
  props: PaymentFailedL2Props
847
944
  });
945
+ const PaymentVerificationRetryTelemetryEventSchema = Schema.Struct({
946
+ name: Schema.Literal("payment_verification_retry"),
947
+ props: PaymentVerificationRetryProps
948
+ });
848
949
  const DepositInitiatedTelemetryEventSchema = Schema.Struct({
849
950
  name: Schema.Literal("deposit_initiated"),
850
951
  props: DepositInitiatedProps
@@ -895,7 +996,10 @@ const TELEMETRY_EVENT_SCHEMAS = {
895
996
  faucet_requested: FaucetRequestedTelemetryEventSchema,
896
997
  faucet_confirmed: FaucetConfirmedTelemetryEventSchema,
897
998
  faucet_failed: FaucetFailedTelemetryEventSchema,
898
- aa_gateway_upstream_fallback: AaGatewayUpstreamFallbackTelemetryEventSchema,
999
+ chain_upstream_fallback: ChainUpstreamFallbackTelemetryEventSchema,
1000
+ bundler_error: BundlerErrorTelemetryEventSchema,
1001
+ receipt_pending: ReceiptPendingTelemetryEventSchema,
1002
+ operation_retried: OperationRetriedTelemetryEventSchema,
899
1003
  org_create_started: OrgCreateStartedTelemetryEventSchema,
900
1004
  org_safe_created: OrgSafeCreatedTelemetryEventSchema,
901
1005
  org_safe_confirmed: OrgSafeConfirmedTelemetryEventSchema,
@@ -908,6 +1012,7 @@ const TELEMETRY_EVENT_SCHEMAS = {
908
1012
  payment_initiated: PaymentInitiatedTelemetryEventSchema,
909
1013
  payment_settled: PaymentSettledTelemetryEventSchema,
910
1014
  payment_failed: PaymentFailedTelemetryEventSchema,
1015
+ payment_verification_retry: PaymentVerificationRetryTelemetryEventSchema,
911
1016
  deposit_initiated: DepositInitiatedTelemetryEventSchema,
912
1017
  deposit_settled: DepositSettledTelemetryEventSchema,
913
1018
  permission_mirror_verification: PermissionMirrorVerificationTelemetryEventSchema,
@@ -1504,4 +1609,4 @@ function rotr(value, bits) {
1504
1609
  return value >>> bits | value << 32 - bits;
1505
1610
  }
1506
1611
  //#endregion
1507
- export { AaGatewayUpstreamFallbackTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, RecordingTelemetryAdapter, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
1612
+ export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, maskCapturedNetworkRequest, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "2.5.5",
3
+ "version": "2.6.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",