@capxul/observability 4.1.4 → 4.2.0-rc.10

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
@@ -199,6 +199,8 @@ declare const CAPXUL_OPERATIONS: {
199
199
  readonly emitAnnotationSaved: "activity.emitAnnotationSaved";
200
200
  readonly get: "activity.get";
201
201
  readonly list: "activity.list";
202
+ /** The SDK's live Activity read over the indexer's SSE stream. */
203
+ readonly subscribe: "activity.subscribe";
202
204
  readonly summary: "activity.summary";
203
205
  };
204
206
  readonly addressBook: {
@@ -600,7 +602,7 @@ interface TelemetryPort {
600
602
  }
601
603
  //#endregion
602
604
  //#region src/index.d.ts
603
- 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", "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"];
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"];
604
606
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
605
607
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
606
608
  type FunnelStepPropertyFilter = {
@@ -919,6 +921,24 @@ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
919
921
  readonly reason: Schema.optional<Schema.String>;
920
922
  }>;
921
923
  }>;
924
+ declare const IdentityRefusedTelemetryEventSchema: Schema.Struct<{
925
+ readonly name: Schema.Literal<"identity_refused">;
926
+ readonly props: Schema.Struct<{
927
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
928
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
929
+ readonly journey_id: Schema.optional<Schema.String>;
930
+ readonly correlation_id: Schema.optional<Schema.String>;
931
+ readonly sdk_version: Schema.optional<Schema.String>;
932
+ /** The refused identity event tag, for example CreateOrganization. */
933
+ readonly event: Schema.optional<Schema.String>;
934
+ /** The machine's refusal code: WRONG_STATE, SUPERSEDED or STALE_EPOCH. */
935
+ readonly refusal_code: Schema.optional<Schema.String>;
936
+ /** The machine slot the request targeted, for example identity:org. */
937
+ readonly slot: Schema.optional<Schema.String>;
938
+ /** The machine state at refusal, for example authenticated:claiming. */
939
+ readonly state: Schema.optional<Schema.String>;
940
+ }>;
941
+ }>;
922
942
  declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
923
943
  readonly name: Schema.Literal<"auth_signed_out">;
924
944
  readonly props: Schema.Struct<{
@@ -1779,10 +1799,19 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1779
1799
  readonly journey_id: Schema.optional<Schema.String>;
1780
1800
  readonly correlation_id: Schema.optional<Schema.String>;
1781
1801
  readonly sdk_version: Schema.optional<Schema.String>;
1802
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
1782
1803
  readonly outcome: Schema.String;
1783
1804
  readonly reason: Schema.String;
1784
1805
  readonly chain_id: Schema.Number;
1785
1806
  readonly retry_count: Schema.Number;
1807
+ /**
1808
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
1809
+ * these two optional fields let the producer say what the applying mutation
1810
+ * actually returned, and which command it was, without either fact rewriting
1811
+ * the receipt outcome above. Absent when application has not happened yet.
1812
+ */
1813
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
1814
+ readonly command_id: Schema.optional<Schema.String>;
1786
1815
  }>;
1787
1816
  }>;
1788
1817
  declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
@@ -1976,6 +2005,182 @@ declare const UiActivityActionCompletedTelemetryEventSchema: Schema.Struct<{
1976
2005
  readonly truncated: Schema.optional<Schema.Boolean>;
1977
2006
  }>]>;
1978
2007
  }>;
2008
+ declare const AccessRecoveryCompletedTelemetryEventSchema: Schema.Struct<{
2009
+ readonly name: Schema.Literal<"access_recovery_completed">;
2010
+ readonly props: Schema.Union<readonly [Schema.Struct<{
2011
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2012
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2013
+ readonly journey_id: Schema.optional<Schema.String>;
2014
+ readonly correlation_id: Schema.optional<Schema.String>;
2015
+ readonly sdk_version: Schema.optional<Schema.String>;
2016
+ readonly recovery: Schema.Literal<"session_restoration">;
2017
+ readonly outcome: Schema.Literals<readonly ["restored", "absent", "failed"]>;
2018
+ 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"]>>;
2019
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2020
+ }>, Schema.Struct<{
2021
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2022
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2023
+ readonly journey_id: Schema.optional<Schema.String>;
2024
+ readonly correlation_id: Schema.optional<Schema.String>;
2025
+ readonly sdk_version: Schema.optional<Schema.String>;
2026
+ readonly recovery: Schema.Literal<"signer_readiness">;
2027
+ readonly outcome: Schema.Literals<readonly ["ready", "unavailable"]>;
2028
+ 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"]>>;
2029
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2030
+ }>]>;
2031
+ }>;
2032
+ declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
2033
+ readonly name: Schema.Literal<"ui_access_step_completed">;
2034
+ readonly props: Schema.Struct<{
2035
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2036
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2037
+ readonly journey_id: Schema.optional<Schema.String>;
2038
+ readonly correlation_id: Schema.optional<Schema.String>;
2039
+ readonly sdk_version: Schema.optional<Schema.String>;
2040
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2041
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2042
+ 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"]>>;
2043
+ readonly step: Schema.Literals<readonly ["dashboard_granted", "redirect_completed", "gate_error_displayed", "retry_selected", "capability_refusal_displayed", "signer_refusal_displayed"]>;
2044
+ readonly capability: Schema.optional<Schema.Literals<readonly ["spend", "managePeople"]>>;
2045
+ readonly probe: Schema.optional<Schema.Literals<readonly ["session", "membership", "lifecycle"]>>;
2046
+ readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
2047
+ }>;
2048
+ }>;
2049
+ declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2050
+ readonly name: Schema.Literal<"org_invite_progressed">;
2051
+ readonly props: Schema.Struct<{
2052
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2053
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2054
+ readonly journey_id: Schema.optional<Schema.String>;
2055
+ readonly correlation_id: Schema.optional<Schema.String>;
2056
+ readonly sdk_version: Schema.optional<Schema.String>;
2057
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2058
+ readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2059
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
2060
+ readonly member_party_id: Schema.String;
2061
+ readonly occurred_at: Schema.Number;
2062
+ }>;
2063
+ }>;
2064
+ declare const InvoiceIssuedTelemetryEventSchema: Schema.Struct<{
2065
+ readonly name: Schema.Literal<"invoice_issued">;
2066
+ readonly props: Schema.Struct<{
2067
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2068
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2069
+ readonly journey_id: Schema.optional<Schema.String>;
2070
+ readonly correlation_id: Schema.optional<Schema.String>;
2071
+ readonly sdk_version: Schema.optional<Schema.String>;
2072
+ readonly request_id: Schema.String;
2073
+ readonly issuer_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2074
+ readonly issuer_scope_id: Schema.String;
2075
+ readonly payer_party_id: Schema.optional<Schema.String>;
2076
+ readonly occurred_at: Schema.Number;
2077
+ }>;
2078
+ }>;
2079
+ declare const InvoiceRequestTransitionedTelemetryEventSchema: Schema.Struct<{
2080
+ readonly name: Schema.Literal<"invoice_request_transitioned">;
2081
+ readonly props: Schema.Struct<{
2082
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2083
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2084
+ readonly journey_id: Schema.optional<Schema.String>;
2085
+ readonly correlation_id: Schema.optional<Schema.String>;
2086
+ readonly sdk_version: Schema.optional<Schema.String>;
2087
+ readonly request_id: Schema.String;
2088
+ readonly transition: Schema.Literals<readonly ["approval_prepared", "declined", "cancelled"]>;
2089
+ readonly actor_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2090
+ readonly actor_scope_id: Schema.String;
2091
+ readonly occurred_at: Schema.Number;
2092
+ }>;
2093
+ }>;
2094
+ declare const UiInvoiceStepCompletedTelemetryEventSchema: Schema.Struct<{
2095
+ readonly name: Schema.Literal<"ui_invoice_step_completed">;
2096
+ readonly props: Schema.Struct<{
2097
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2098
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2099
+ readonly journey_id: Schema.optional<Schema.String>;
2100
+ readonly correlation_id: Schema.optional<Schema.String>;
2101
+ readonly sdk_version: Schema.optional<Schema.String>;
2102
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2103
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2104
+ 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"]>>;
2105
+ readonly step: Schema.Literals<readonly ["opened", "previewed", "dismissed", "submitted", "result_displayed", "refusal_displayed", "retry_selected"]>;
2106
+ readonly request_id: Schema.optional<Schema.String>;
2107
+ }>;
2108
+ }>;
2109
+ declare const UiTreasuryStepCompletedTelemetryEventSchema: Schema.Struct<{
2110
+ readonly name: Schema.Literal<"ui_treasury_step_completed">;
2111
+ readonly props: Schema.Struct<{
2112
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2113
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2114
+ readonly journey_id: Schema.optional<Schema.String>;
2115
+ readonly correlation_id: Schema.optional<Schema.String>;
2116
+ readonly sdk_version: Schema.optional<Schema.String>;
2117
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2118
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2119
+ 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"]>>;
2120
+ readonly step: Schema.Literals<readonly ["balance_displayed", "read_refusal_displayed", "retry_selected", "recovery_completed"]>;
2121
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2122
+ }>;
2123
+ }>;
2124
+ declare const UiReceiveStepCompletedTelemetryEventSchema: Schema.Struct<{
2125
+ readonly name: Schema.Literal<"ui_receive_step_completed">;
2126
+ readonly props: Schema.Struct<{
2127
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2128
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2129
+ readonly journey_id: Schema.optional<Schema.String>;
2130
+ readonly correlation_id: Schema.optional<Schema.String>;
2131
+ readonly sdk_version: Schema.optional<Schema.String>;
2132
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2133
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2134
+ 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"]>>;
2135
+ readonly step: Schema.Literals<readonly ["instructions_displayed", "address_copied", "copy_failed", "refusal_displayed", "retry_selected"]>;
2136
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2137
+ }>;
2138
+ }>;
2139
+ declare const PayrollGroupChangedTelemetryEventSchema: Schema.Struct<{
2140
+ readonly name: Schema.Literal<"payroll_group_changed">;
2141
+ readonly props: Schema.Struct<{
2142
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2143
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2144
+ readonly journey_id: Schema.optional<Schema.String>;
2145
+ readonly correlation_id: Schema.optional<Schema.String>;
2146
+ readonly sdk_version: Schema.optional<Schema.String>;
2147
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2148
+ readonly change: Schema.Literals<readonly ["created", "updated", "deleted"]>;
2149
+ readonly group_id: Schema.String;
2150
+ readonly member_count: Schema.Number;
2151
+ readonly occurred_at: Schema.Number;
2152
+ }>;
2153
+ }>;
2154
+ declare const PayrollRunTransitionedTelemetryEventSchema: Schema.Struct<{
2155
+ readonly name: Schema.Literal<"payroll_run_transitioned">;
2156
+ readonly props: Schema.Struct<{
2157
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2158
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2159
+ readonly journey_id: Schema.optional<Schema.String>;
2160
+ readonly correlation_id: Schema.optional<Schema.String>;
2161
+ readonly sdk_version: Schema.optional<Schema.String>;
2162
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2163
+ readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2164
+ readonly run_id: Schema.String;
2165
+ readonly payment_count: Schema.optional<Schema.Number>;
2166
+ readonly occurred_at: Schema.Number;
2167
+ }>;
2168
+ }>;
2169
+ declare const UiPayrollActionCompletedTelemetryEventSchema: Schema.Struct<{
2170
+ readonly name: Schema.Literal<"ui_payroll_action_completed">;
2171
+ readonly props: Schema.Struct<{
2172
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2173
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2174
+ readonly journey_id: Schema.optional<Schema.String>;
2175
+ readonly correlation_id: Schema.optional<Schema.String>;
2176
+ readonly sdk_version: Schema.optional<Schema.String>;
2177
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2178
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2179
+ 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"]>>;
2180
+ readonly action: Schema.Literals<readonly ["opened", "refusal_displayed", "recovery_completed", "cancelled", "submitted_displayed"]>;
2181
+ readonly run_id: Schema.optional<Schema.String>;
2182
+ }>;
2183
+ }>;
1979
2184
  declare const TELEMETRY_EVENT_SCHEMAS: {
1980
2185
  readonly contact_relationship_changed: Schema.Struct<{
1981
2186
  readonly name: Schema.Literal<"contact_relationship_changed">;
@@ -1995,6 +2200,182 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1995
2200
  readonly operation: Schema.Literals<readonly ["addressBook.add", "addressBook.label", "addressBook.hide", "addressBook.unhide"]>;
1996
2201
  }>;
1997
2202
  }>;
2203
+ readonly access_recovery_completed: Schema.Struct<{
2204
+ readonly name: Schema.Literal<"access_recovery_completed">;
2205
+ readonly props: Schema.Union<readonly [Schema.Struct<{
2206
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2207
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2208
+ readonly journey_id: Schema.optional<Schema.String>;
2209
+ readonly correlation_id: Schema.optional<Schema.String>;
2210
+ readonly sdk_version: Schema.optional<Schema.String>;
2211
+ readonly recovery: Schema.Literal<"session_restoration">;
2212
+ readonly outcome: Schema.Literals<readonly ["restored", "absent", "failed"]>;
2213
+ 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"]>>;
2214
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2215
+ }>, Schema.Struct<{
2216
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2217
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2218
+ readonly journey_id: Schema.optional<Schema.String>;
2219
+ readonly correlation_id: Schema.optional<Schema.String>;
2220
+ readonly sdk_version: Schema.optional<Schema.String>;
2221
+ readonly recovery: Schema.Literal<"signer_readiness">;
2222
+ readonly outcome: Schema.Literals<readonly ["ready", "unavailable"]>;
2223
+ 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"]>>;
2224
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2225
+ }>]>;
2226
+ }>;
2227
+ readonly ui_access_step_completed: Schema.Struct<{
2228
+ readonly name: Schema.Literal<"ui_access_step_completed">;
2229
+ readonly props: Schema.Struct<{
2230
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2231
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2232
+ readonly journey_id: Schema.optional<Schema.String>;
2233
+ readonly correlation_id: Schema.optional<Schema.String>;
2234
+ readonly sdk_version: Schema.optional<Schema.String>;
2235
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2236
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2237
+ 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"]>>;
2238
+ readonly step: Schema.Literals<readonly ["dashboard_granted", "redirect_completed", "gate_error_displayed", "retry_selected", "capability_refusal_displayed", "signer_refusal_displayed"]>;
2239
+ readonly capability: Schema.optional<Schema.Literals<readonly ["spend", "managePeople"]>>;
2240
+ readonly probe: Schema.optional<Schema.Literals<readonly ["session", "membership", "lifecycle"]>>;
2241
+ readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
2242
+ }>;
2243
+ }>;
2244
+ readonly org_invite_progressed: Schema.Struct<{
2245
+ readonly name: Schema.Literal<"org_invite_progressed">;
2246
+ readonly props: Schema.Struct<{
2247
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2248
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2249
+ readonly journey_id: Schema.optional<Schema.String>;
2250
+ readonly correlation_id: Schema.optional<Schema.String>;
2251
+ readonly sdk_version: Schema.optional<Schema.String>;
2252
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2253
+ readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2254
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
2255
+ readonly member_party_id: Schema.String;
2256
+ readonly occurred_at: Schema.Number;
2257
+ }>;
2258
+ }>;
2259
+ readonly invoice_issued: Schema.Struct<{
2260
+ readonly name: Schema.Literal<"invoice_issued">;
2261
+ readonly props: Schema.Struct<{
2262
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2263
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2264
+ readonly journey_id: Schema.optional<Schema.String>;
2265
+ readonly correlation_id: Schema.optional<Schema.String>;
2266
+ readonly sdk_version: Schema.optional<Schema.String>;
2267
+ readonly request_id: Schema.String;
2268
+ readonly issuer_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2269
+ readonly issuer_scope_id: Schema.String;
2270
+ readonly payer_party_id: Schema.optional<Schema.String>;
2271
+ readonly occurred_at: Schema.Number;
2272
+ }>;
2273
+ }>;
2274
+ readonly invoice_request_transitioned: Schema.Struct<{
2275
+ readonly name: Schema.Literal<"invoice_request_transitioned">;
2276
+ readonly props: Schema.Struct<{
2277
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2278
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2279
+ readonly journey_id: Schema.optional<Schema.String>;
2280
+ readonly correlation_id: Schema.optional<Schema.String>;
2281
+ readonly sdk_version: Schema.optional<Schema.String>;
2282
+ readonly request_id: Schema.String;
2283
+ readonly transition: Schema.Literals<readonly ["approval_prepared", "declined", "cancelled"]>;
2284
+ readonly actor_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2285
+ readonly actor_scope_id: Schema.String;
2286
+ readonly occurred_at: Schema.Number;
2287
+ }>;
2288
+ }>;
2289
+ readonly ui_invoice_step_completed: Schema.Struct<{
2290
+ readonly name: Schema.Literal<"ui_invoice_step_completed">;
2291
+ readonly props: Schema.Struct<{
2292
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2293
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2294
+ readonly journey_id: Schema.optional<Schema.String>;
2295
+ readonly correlation_id: Schema.optional<Schema.String>;
2296
+ readonly sdk_version: Schema.optional<Schema.String>;
2297
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2298
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2299
+ 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"]>>;
2300
+ readonly step: Schema.Literals<readonly ["opened", "previewed", "dismissed", "submitted", "result_displayed", "refusal_displayed", "retry_selected"]>;
2301
+ readonly request_id: Schema.optional<Schema.String>;
2302
+ }>;
2303
+ }>;
2304
+ readonly ui_treasury_step_completed: Schema.Struct<{
2305
+ readonly name: Schema.Literal<"ui_treasury_step_completed">;
2306
+ readonly props: Schema.Struct<{
2307
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2308
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2309
+ readonly journey_id: Schema.optional<Schema.String>;
2310
+ readonly correlation_id: Schema.optional<Schema.String>;
2311
+ readonly sdk_version: Schema.optional<Schema.String>;
2312
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2313
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2314
+ 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"]>>;
2315
+ readonly step: Schema.Literals<readonly ["balance_displayed", "read_refusal_displayed", "retry_selected", "recovery_completed"]>;
2316
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2317
+ }>;
2318
+ }>;
2319
+ readonly ui_receive_step_completed: Schema.Struct<{
2320
+ readonly name: Schema.Literal<"ui_receive_step_completed">;
2321
+ readonly props: Schema.Struct<{
2322
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2323
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2324
+ readonly journey_id: Schema.optional<Schema.String>;
2325
+ readonly correlation_id: Schema.optional<Schema.String>;
2326
+ readonly sdk_version: Schema.optional<Schema.String>;
2327
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2328
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2329
+ 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"]>>;
2330
+ readonly step: Schema.Literals<readonly ["instructions_displayed", "address_copied", "copy_failed", "refusal_displayed", "retry_selected"]>;
2331
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2332
+ }>;
2333
+ }>;
2334
+ readonly payroll_group_changed: Schema.Struct<{
2335
+ readonly name: Schema.Literal<"payroll_group_changed">;
2336
+ readonly props: Schema.Struct<{
2337
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2338
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2339
+ readonly journey_id: Schema.optional<Schema.String>;
2340
+ readonly correlation_id: Schema.optional<Schema.String>;
2341
+ readonly sdk_version: Schema.optional<Schema.String>;
2342
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2343
+ readonly change: Schema.Literals<readonly ["created", "updated", "deleted"]>;
2344
+ readonly group_id: Schema.String;
2345
+ readonly member_count: Schema.Number;
2346
+ readonly occurred_at: Schema.Number;
2347
+ }>;
2348
+ }>;
2349
+ readonly payroll_run_transitioned: Schema.Struct<{
2350
+ readonly name: Schema.Literal<"payroll_run_transitioned">;
2351
+ readonly props: Schema.Struct<{
2352
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2353
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2354
+ readonly journey_id: Schema.optional<Schema.String>;
2355
+ readonly correlation_id: Schema.optional<Schema.String>;
2356
+ readonly sdk_version: Schema.optional<Schema.String>;
2357
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2358
+ readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2359
+ readonly run_id: Schema.String;
2360
+ readonly payment_count: Schema.optional<Schema.Number>;
2361
+ readonly occurred_at: Schema.Number;
2362
+ }>;
2363
+ }>;
2364
+ readonly ui_payroll_action_completed: Schema.Struct<{
2365
+ readonly name: Schema.Literal<"ui_payroll_action_completed">;
2366
+ readonly props: Schema.Struct<{
2367
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2368
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2369
+ readonly journey_id: Schema.optional<Schema.String>;
2370
+ readonly correlation_id: Schema.optional<Schema.String>;
2371
+ readonly sdk_version: Schema.optional<Schema.String>;
2372
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2373
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2374
+ 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"]>>;
2375
+ readonly action: Schema.Literals<readonly ["opened", "refusal_displayed", "recovery_completed", "cancelled", "submitted_displayed"]>;
2376
+ readonly run_id: Schema.optional<Schema.String>;
2377
+ }>;
2378
+ }>;
1998
2379
  readonly ui_contact_action_completed: Schema.Struct<{
1999
2380
  readonly name: Schema.Literal<"ui_contact_action_completed">;
2000
2381
  readonly props: Schema.Union<readonly [Schema.Struct<{
@@ -2212,6 +2593,24 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2212
2593
  readonly reason: Schema.optional<Schema.String>;
2213
2594
  }>;
2214
2595
  }>;
2596
+ readonly identity_refused: Schema.Struct<{
2597
+ readonly name: Schema.Literal<"identity_refused">;
2598
+ readonly props: Schema.Struct<{
2599
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2600
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2601
+ readonly journey_id: Schema.optional<Schema.String>;
2602
+ readonly correlation_id: Schema.optional<Schema.String>;
2603
+ readonly sdk_version: Schema.optional<Schema.String>;
2604
+ /** The refused identity event tag, for example CreateOrganization. */
2605
+ readonly event: Schema.optional<Schema.String>;
2606
+ /** The machine's refusal code: WRONG_STATE, SUPERSEDED or STALE_EPOCH. */
2607
+ readonly refusal_code: Schema.optional<Schema.String>;
2608
+ /** The machine slot the request targeted, for example identity:org. */
2609
+ readonly slot: Schema.optional<Schema.String>;
2610
+ /** The machine state at refusal, for example authenticated:claiming. */
2611
+ readonly state: Schema.optional<Schema.String>;
2612
+ }>;
2613
+ }>;
2215
2614
  readonly auth_signed_out: Schema.Struct<{
2216
2615
  readonly name: Schema.Literal<"auth_signed_out">;
2217
2616
  readonly props: Schema.Struct<{
@@ -3072,10 +3471,19 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3072
3471
  readonly journey_id: Schema.optional<Schema.String>;
3073
3472
  readonly correlation_id: Schema.optional<Schema.String>;
3074
3473
  readonly sdk_version: Schema.optional<Schema.String>;
3474
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
3075
3475
  readonly outcome: Schema.String;
3076
3476
  readonly reason: Schema.String;
3077
3477
  readonly chain_id: Schema.Number;
3078
3478
  readonly retry_count: Schema.Number;
3479
+ /**
3480
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
3481
+ * these two optional fields let the producer say what the applying mutation
3482
+ * actually returned, and which command it was, without either fact rewriting
3483
+ * the receipt outcome above. Absent when application has not happened yet.
3484
+ */
3485
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
3486
+ readonly command_id: Schema.optional<Schema.String>;
3079
3487
  }>;
3080
3488
  }>;
3081
3489
  readonly movement_scan_window: Schema.Struct<{
@@ -3131,7 +3539,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
3131
3539
  * A domain node removes its entry when it adds the producer. The telemetry
3132
3540
  * gate rejects an entry that has a producer.
3133
3541
  */
3134
- declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
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"];
3135
3543
  /**
3136
3544
  * Catalog events whose product mapper remains gated on the #1150 frontend
3137
3545
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -3141,7 +3549,7 @@ declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
3141
3549
  */
3142
3550
  declare const PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS: readonly ["auth_otp_expired"];
3143
3551
  /** Catalogued browser observations whose producers remain owned by app adoption. */
3144
- declare const BROWSER_GATED_TELEMETRY_EVENTS: readonly ["onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "ui_activity_action_completed", "ui_contact_action_completed"];
3552
+ declare const BROWSER_GATED_TELEMETRY_EVENTS: readonly ["onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "ui_activity_action_completed", "ui_contact_action_completed", "ui_access_step_completed", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "ui_payroll_action_completed"];
3145
3553
  interface TelemetryIdentifyInput {
3146
3554
  readonly distinctId: string;
3147
3555
  readonly anonDistinctId?: AnonymousDistinctId;
@@ -3181,12 +3589,12 @@ interface PostHogBrowserCapture {
3181
3589
  * The callback mutates and returns the supplied event, matching PostHog's
3182
3590
  * `before_send` contract while preserving the event's full structural type.
3183
3591
  */
3184
- declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T): T;
3592
+ declare function sanitizePostHogBrowserEvent<T extends PostHogBrowserCapture | null>(event: T, urlPolicy?: "path-only" | "diagnostic"): T;
3185
3593
  /**
3186
3594
  * Drop local events before transport. Sanitize and stamp every other browser
3187
3595
  * event with `capxul_env` and `producer: "browser"`.
3188
3596
  */
3189
- declare function createCapxulBeforeSend(capxulEnv: CapxulEnv): <T extends PostHogBrowserCapture | null>(event: T) => T | null;
3597
+ declare function createCapxulBeforeSend(capxulEnv: CapxulEnv, urlPolicy?: "path-only" | "diagnostic"): <T extends PostHogBrowserCapture | null>(event: T) => T | null;
3190
3598
  type PostHogBeforeSend = ReturnType<typeof createCapxulBeforeSend>;
3191
3599
  /**
3192
3600
  * ADR-0016 posture, unchanged: capability-URL utility apps (approval links,
@@ -3227,7 +3635,7 @@ type PostHogBrowserOptions = PostHogUtilityAppOptions;
3227
3635
  * funnel lies.
3228
3636
  * - identify-driven person profiles (ADR-0020 A2 wires the calls at L1).
3229
3637
  * - session replay in EVERY environment. Ordinary text and input values remain
3230
- * visible. Inputs with `autocomplete="one-time-code"` are masked. Network
3638
+ * visible. Password, OTP, and credential controls are masked. Network
3231
3639
  * timing plus request/response headers and bodies are recorded, so a failed
3232
3640
  * call shows its status and body in the replay. Canvas stays off. The
3233
3641
  * recorder script loads from PostHog, so external dependency loading is on.
@@ -3298,17 +3706,14 @@ declare function utilityAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHo
3298
3706
  * generic over the real request type and returns the same type it was given.
3299
3707
  */
3300
3708
  interface CapturedNetworkRequestLike {
3709
+ readonly name?: string | undefined;
3710
+ readonly url?: string | undefined;
3301
3711
  readonly requestHeaders?: Record<string, string> | undefined;
3302
3712
  readonly responseHeaders?: Record<string, string> | undefined;
3303
3713
  readonly requestBody?: unknown;
3304
3714
  readonly responseBody?: unknown;
3305
3715
  }
3306
- /**
3307
- * Replay keeps the request line, status, timing, headers, and bodies, so a
3308
- * failed call carries its evidence. Credential headers and secret material
3309
- * never leave the browser: bearer tokens, cookies, API keys, and the OTP a
3310
- * user just typed are masked before the recording is sent.
3311
- */
3716
+ /** Keep request evidence while masking credential values at the browser boundary. */
3312
3717
  declare function maskCapturedNetworkRequest<T extends CapturedNetworkRequestLike>(request: T): T;
3313
3718
  declare function productAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHogProductAppOptions;
3314
3719
  type PostHogBrowserInitialize<Options, T> = (key: string, options: Options) => T;
@@ -3363,4 +3768,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3363
3768
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3364
3769
  }
3365
3770
  //#endregion
3366
- export { 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, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, 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, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, 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, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
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 };