@capxul/observability 4.2.0-rc.2 → 4.2.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "source": {
3
- "commit": "fe4f1c05f1de962a7a76825816bdff2beaf5fc88",
4
- "tree": "45b0c3cfdd39d23a4cfb1c1bcc047521f16bc12d",
3
+ "commit": "400e4b861e8c10091ad2d9e71fc0502fe222a801",
4
+ "tree": "c3afb8bb5f3ce69ee8aa1e8fbe811fe213627887",
5
5
  "branch": "codex/programme-rc",
6
6
  "repository": "https://github.com/Xelmar-tech/infrastructure",
7
7
  "lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
8
8
  },
9
9
  "name": "@capxul/observability",
10
- "version": "4.2.0-rc.2"
10
+ "version": "4.2.0-rc.4"
11
11
  }
package/dist/index.d.mts CHANGED
@@ -600,7 +600,7 @@ interface TelemetryPort {
600
600
  }
601
601
  //#endregion
602
602
  //#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"];
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", "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
604
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
605
605
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
606
606
  type FunnelStepPropertyFilter = {
@@ -1779,10 +1779,19 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1779
1779
  readonly journey_id: Schema.optional<Schema.String>;
1780
1780
  readonly correlation_id: Schema.optional<Schema.String>;
1781
1781
  readonly sdk_version: Schema.optional<Schema.String>;
1782
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
1782
1783
  readonly outcome: Schema.String;
1783
1784
  readonly reason: Schema.String;
1784
1785
  readonly chain_id: Schema.Number;
1785
1786
  readonly retry_count: Schema.Number;
1787
+ /**
1788
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
1789
+ * these two optional fields let the producer say what the applying mutation
1790
+ * actually returned, and which command it was, without either fact rewriting
1791
+ * the receipt outcome above. Absent when application has not happened yet.
1792
+ */
1793
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
1794
+ readonly command_id: Schema.optional<Schema.String>;
1786
1795
  }>;
1787
1796
  }>;
1788
1797
  declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
@@ -1976,6 +1985,182 @@ declare const UiActivityActionCompletedTelemetryEventSchema: Schema.Struct<{
1976
1985
  readonly truncated: Schema.optional<Schema.Boolean>;
1977
1986
  }>]>;
1978
1987
  }>;
1988
+ declare const AccessRecoveryCompletedTelemetryEventSchema: Schema.Struct<{
1989
+ readonly name: Schema.Literal<"access_recovery_completed">;
1990
+ readonly props: Schema.Union<readonly [Schema.Struct<{
1991
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1992
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1993
+ readonly journey_id: Schema.optional<Schema.String>;
1994
+ readonly correlation_id: Schema.optional<Schema.String>;
1995
+ readonly sdk_version: Schema.optional<Schema.String>;
1996
+ readonly recovery: Schema.Literal<"session_restoration">;
1997
+ readonly outcome: Schema.Literals<readonly ["restored", "absent", "failed"]>;
1998
+ 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"]>>;
1999
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2000
+ }>, Schema.Struct<{
2001
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2002
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2003
+ readonly journey_id: Schema.optional<Schema.String>;
2004
+ readonly correlation_id: Schema.optional<Schema.String>;
2005
+ readonly sdk_version: Schema.optional<Schema.String>;
2006
+ readonly recovery: Schema.Literal<"signer_readiness">;
2007
+ readonly outcome: Schema.Literals<readonly ["ready", "unavailable"]>;
2008
+ 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"]>>;
2009
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2010
+ }>]>;
2011
+ }>;
2012
+ declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
2013
+ readonly name: Schema.Literal<"ui_access_step_completed">;
2014
+ readonly props: Schema.Struct<{
2015
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2016
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2017
+ readonly journey_id: Schema.optional<Schema.String>;
2018
+ readonly correlation_id: Schema.optional<Schema.String>;
2019
+ readonly sdk_version: Schema.optional<Schema.String>;
2020
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2021
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2022
+ 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"]>>;
2023
+ readonly step: Schema.Literals<readonly ["dashboard_granted", "redirect_completed", "gate_error_displayed", "retry_selected", "capability_refusal_displayed", "signer_refusal_displayed"]>;
2024
+ readonly capability: Schema.optional<Schema.Literals<readonly ["spend", "managePeople"]>>;
2025
+ readonly probe: Schema.optional<Schema.Literals<readonly ["session", "membership", "lifecycle"]>>;
2026
+ readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
2027
+ }>;
2028
+ }>;
2029
+ declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
2030
+ readonly name: Schema.Literal<"org_invite_progressed">;
2031
+ readonly props: Schema.Struct<{
2032
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2033
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2034
+ readonly journey_id: Schema.optional<Schema.String>;
2035
+ readonly correlation_id: Schema.optional<Schema.String>;
2036
+ readonly sdk_version: Schema.optional<Schema.String>;
2037
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2038
+ readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2039
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
2040
+ readonly member_party_id: Schema.String;
2041
+ readonly occurred_at: Schema.Number;
2042
+ }>;
2043
+ }>;
2044
+ declare const InvoiceIssuedTelemetryEventSchema: Schema.Struct<{
2045
+ readonly name: Schema.Literal<"invoice_issued">;
2046
+ readonly props: Schema.Struct<{
2047
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2048
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2049
+ readonly journey_id: Schema.optional<Schema.String>;
2050
+ readonly correlation_id: Schema.optional<Schema.String>;
2051
+ readonly sdk_version: Schema.optional<Schema.String>;
2052
+ readonly request_id: Schema.String;
2053
+ readonly issuer_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2054
+ readonly issuer_scope_id: Schema.String;
2055
+ readonly payer_party_id: Schema.optional<Schema.String>;
2056
+ readonly occurred_at: Schema.Number;
2057
+ }>;
2058
+ }>;
2059
+ declare const InvoiceRequestTransitionedTelemetryEventSchema: Schema.Struct<{
2060
+ readonly name: Schema.Literal<"invoice_request_transitioned">;
2061
+ readonly props: Schema.Struct<{
2062
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2063
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2064
+ readonly journey_id: Schema.optional<Schema.String>;
2065
+ readonly correlation_id: Schema.optional<Schema.String>;
2066
+ readonly sdk_version: Schema.optional<Schema.String>;
2067
+ readonly request_id: Schema.String;
2068
+ readonly transition: Schema.Literals<readonly ["approval_prepared", "declined", "cancelled"]>;
2069
+ readonly actor_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2070
+ readonly actor_scope_id: Schema.String;
2071
+ readonly occurred_at: Schema.Number;
2072
+ }>;
2073
+ }>;
2074
+ declare const UiInvoiceStepCompletedTelemetryEventSchema: Schema.Struct<{
2075
+ readonly name: Schema.Literal<"ui_invoice_step_completed">;
2076
+ readonly props: Schema.Struct<{
2077
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2078
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2079
+ readonly journey_id: Schema.optional<Schema.String>;
2080
+ readonly correlation_id: Schema.optional<Schema.String>;
2081
+ readonly sdk_version: Schema.optional<Schema.String>;
2082
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2083
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2084
+ 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"]>>;
2085
+ readonly step: Schema.Literals<readonly ["opened", "previewed", "dismissed", "submitted", "result_displayed", "refusal_displayed", "retry_selected"]>;
2086
+ readonly request_id: Schema.optional<Schema.String>;
2087
+ }>;
2088
+ }>;
2089
+ declare const UiTreasuryStepCompletedTelemetryEventSchema: Schema.Struct<{
2090
+ readonly name: Schema.Literal<"ui_treasury_step_completed">;
2091
+ readonly props: Schema.Struct<{
2092
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2093
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2094
+ readonly journey_id: Schema.optional<Schema.String>;
2095
+ readonly correlation_id: Schema.optional<Schema.String>;
2096
+ readonly sdk_version: Schema.optional<Schema.String>;
2097
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2098
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2099
+ 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"]>>;
2100
+ readonly step: Schema.Literals<readonly ["balance_displayed", "read_refusal_displayed", "retry_selected", "recovery_completed"]>;
2101
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2102
+ }>;
2103
+ }>;
2104
+ declare const UiReceiveStepCompletedTelemetryEventSchema: Schema.Struct<{
2105
+ readonly name: Schema.Literal<"ui_receive_step_completed">;
2106
+ readonly props: Schema.Struct<{
2107
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2108
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2109
+ readonly journey_id: Schema.optional<Schema.String>;
2110
+ readonly correlation_id: Schema.optional<Schema.String>;
2111
+ readonly sdk_version: Schema.optional<Schema.String>;
2112
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2113
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2114
+ 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"]>>;
2115
+ readonly step: Schema.Literals<readonly ["instructions_displayed", "address_copied", "copy_failed", "refusal_displayed", "retry_selected"]>;
2116
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2117
+ }>;
2118
+ }>;
2119
+ declare const PayrollGroupChangedTelemetryEventSchema: Schema.Struct<{
2120
+ readonly name: Schema.Literal<"payroll_group_changed">;
2121
+ readonly props: Schema.Struct<{
2122
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2123
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2124
+ readonly journey_id: Schema.optional<Schema.String>;
2125
+ readonly correlation_id: Schema.optional<Schema.String>;
2126
+ readonly sdk_version: Schema.optional<Schema.String>;
2127
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2128
+ readonly change: Schema.Literals<readonly ["created", "updated", "deleted"]>;
2129
+ readonly group_id: Schema.String;
2130
+ readonly member_count: Schema.Number;
2131
+ readonly occurred_at: Schema.Number;
2132
+ }>;
2133
+ }>;
2134
+ declare const PayrollRunTransitionedTelemetryEventSchema: Schema.Struct<{
2135
+ readonly name: Schema.Literal<"payroll_run_transitioned">;
2136
+ readonly props: Schema.Struct<{
2137
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2138
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2139
+ readonly journey_id: Schema.optional<Schema.String>;
2140
+ readonly correlation_id: Schema.optional<Schema.String>;
2141
+ readonly sdk_version: Schema.optional<Schema.String>;
2142
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2143
+ readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2144
+ readonly run_id: Schema.String;
2145
+ readonly payment_count: Schema.optional<Schema.Number>;
2146
+ readonly occurred_at: Schema.Number;
2147
+ }>;
2148
+ }>;
2149
+ declare const UiPayrollActionCompletedTelemetryEventSchema: Schema.Struct<{
2150
+ readonly name: Schema.Literal<"ui_payroll_action_completed">;
2151
+ readonly props: Schema.Struct<{
2152
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2153
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2154
+ readonly journey_id: Schema.optional<Schema.String>;
2155
+ readonly correlation_id: Schema.optional<Schema.String>;
2156
+ readonly sdk_version: Schema.optional<Schema.String>;
2157
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2158
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2159
+ 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"]>>;
2160
+ readonly action: Schema.Literals<readonly ["opened", "refusal_displayed", "recovery_completed", "cancelled", "submitted_displayed"]>;
2161
+ readonly run_id: Schema.optional<Schema.String>;
2162
+ }>;
2163
+ }>;
1979
2164
  declare const TELEMETRY_EVENT_SCHEMAS: {
1980
2165
  readonly contact_relationship_changed: Schema.Struct<{
1981
2166
  readonly name: Schema.Literal<"contact_relationship_changed">;
@@ -1995,6 +2180,182 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
1995
2180
  readonly operation: Schema.Literals<readonly ["addressBook.add", "addressBook.label", "addressBook.hide", "addressBook.unhide"]>;
1996
2181
  }>;
1997
2182
  }>;
2183
+ readonly access_recovery_completed: Schema.Struct<{
2184
+ readonly name: Schema.Literal<"access_recovery_completed">;
2185
+ readonly props: Schema.Union<readonly [Schema.Struct<{
2186
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2187
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2188
+ readonly journey_id: Schema.optional<Schema.String>;
2189
+ readonly correlation_id: Schema.optional<Schema.String>;
2190
+ readonly sdk_version: Schema.optional<Schema.String>;
2191
+ readonly recovery: Schema.Literal<"session_restoration">;
2192
+ readonly outcome: Schema.Literals<readonly ["restored", "absent", "failed"]>;
2193
+ 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"]>>;
2194
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2195
+ }>, Schema.Struct<{
2196
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2197
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2198
+ readonly journey_id: Schema.optional<Schema.String>;
2199
+ readonly correlation_id: Schema.optional<Schema.String>;
2200
+ readonly sdk_version: Schema.optional<Schema.String>;
2201
+ readonly recovery: Schema.Literal<"signer_readiness">;
2202
+ readonly outcome: Schema.Literals<readonly ["ready", "unavailable"]>;
2203
+ 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"]>>;
2204
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2205
+ }>]>;
2206
+ }>;
2207
+ readonly ui_access_step_completed: Schema.Struct<{
2208
+ readonly name: Schema.Literal<"ui_access_step_completed">;
2209
+ readonly props: Schema.Struct<{
2210
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2211
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2212
+ readonly journey_id: Schema.optional<Schema.String>;
2213
+ readonly correlation_id: Schema.optional<Schema.String>;
2214
+ readonly sdk_version: Schema.optional<Schema.String>;
2215
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2216
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2217
+ 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"]>>;
2218
+ readonly step: Schema.Literals<readonly ["dashboard_granted", "redirect_completed", "gate_error_displayed", "retry_selected", "capability_refusal_displayed", "signer_refusal_displayed"]>;
2219
+ readonly capability: Schema.optional<Schema.Literals<readonly ["spend", "managePeople"]>>;
2220
+ readonly probe: Schema.optional<Schema.Literals<readonly ["session", "membership", "lifecycle"]>>;
2221
+ readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
2222
+ }>;
2223
+ }>;
2224
+ readonly org_invite_progressed: Schema.Struct<{
2225
+ readonly name: Schema.Literal<"org_invite_progressed">;
2226
+ readonly props: Schema.Struct<{
2227
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2228
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2229
+ readonly journey_id: Schema.optional<Schema.String>;
2230
+ readonly correlation_id: Schema.optional<Schema.String>;
2231
+ readonly sdk_version: Schema.optional<Schema.String>;
2232
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2233
+ readonly progress: Schema.Literals<readonly ["account_ready", "permission_applied", "membership_activated", "revoked"]>;
2234
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
2235
+ readonly member_party_id: Schema.String;
2236
+ readonly occurred_at: Schema.Number;
2237
+ }>;
2238
+ }>;
2239
+ readonly invoice_issued: Schema.Struct<{
2240
+ readonly name: Schema.Literal<"invoice_issued">;
2241
+ readonly props: Schema.Struct<{
2242
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2243
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2244
+ readonly journey_id: Schema.optional<Schema.String>;
2245
+ readonly correlation_id: Schema.optional<Schema.String>;
2246
+ readonly sdk_version: Schema.optional<Schema.String>;
2247
+ readonly request_id: Schema.String;
2248
+ readonly issuer_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2249
+ readonly issuer_scope_id: Schema.String;
2250
+ readonly payer_party_id: Schema.optional<Schema.String>;
2251
+ readonly occurred_at: Schema.Number;
2252
+ }>;
2253
+ }>;
2254
+ readonly invoice_request_transitioned: Schema.Struct<{
2255
+ readonly name: Schema.Literal<"invoice_request_transitioned">;
2256
+ readonly props: Schema.Struct<{
2257
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2258
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2259
+ readonly journey_id: Schema.optional<Schema.String>;
2260
+ readonly correlation_id: Schema.optional<Schema.String>;
2261
+ readonly sdk_version: Schema.optional<Schema.String>;
2262
+ readonly request_id: Schema.String;
2263
+ readonly transition: Schema.Literals<readonly ["approval_prepared", "declined", "cancelled"]>;
2264
+ readonly actor_scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2265
+ readonly actor_scope_id: Schema.String;
2266
+ readonly occurred_at: Schema.Number;
2267
+ }>;
2268
+ }>;
2269
+ readonly ui_invoice_step_completed: Schema.Struct<{
2270
+ readonly name: Schema.Literal<"ui_invoice_step_completed">;
2271
+ readonly props: Schema.Struct<{
2272
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2273
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2274
+ readonly journey_id: Schema.optional<Schema.String>;
2275
+ readonly correlation_id: Schema.optional<Schema.String>;
2276
+ readonly sdk_version: Schema.optional<Schema.String>;
2277
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2278
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2279
+ 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"]>>;
2280
+ readonly step: Schema.Literals<readonly ["opened", "previewed", "dismissed", "submitted", "result_displayed", "refusal_displayed", "retry_selected"]>;
2281
+ readonly request_id: Schema.optional<Schema.String>;
2282
+ }>;
2283
+ }>;
2284
+ readonly ui_treasury_step_completed: Schema.Struct<{
2285
+ readonly name: Schema.Literal<"ui_treasury_step_completed">;
2286
+ readonly props: Schema.Struct<{
2287
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2288
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2289
+ readonly journey_id: Schema.optional<Schema.String>;
2290
+ readonly correlation_id: Schema.optional<Schema.String>;
2291
+ readonly sdk_version: Schema.optional<Schema.String>;
2292
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2293
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2294
+ 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"]>>;
2295
+ readonly step: Schema.Literals<readonly ["balance_displayed", "read_refusal_displayed", "retry_selected", "recovery_completed"]>;
2296
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2297
+ }>;
2298
+ }>;
2299
+ readonly ui_receive_step_completed: Schema.Struct<{
2300
+ readonly name: Schema.Literal<"ui_receive_step_completed">;
2301
+ readonly props: Schema.Struct<{
2302
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2303
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2304
+ readonly journey_id: Schema.optional<Schema.String>;
2305
+ readonly correlation_id: Schema.optional<Schema.String>;
2306
+ readonly sdk_version: Schema.optional<Schema.String>;
2307
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2308
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2309
+ 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"]>>;
2310
+ readonly step: Schema.Literals<readonly ["instructions_displayed", "address_copied", "copy_failed", "refusal_displayed", "retry_selected"]>;
2311
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2312
+ }>;
2313
+ }>;
2314
+ readonly payroll_group_changed: Schema.Struct<{
2315
+ readonly name: Schema.Literal<"payroll_group_changed">;
2316
+ readonly props: Schema.Struct<{
2317
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2318
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2319
+ readonly journey_id: Schema.optional<Schema.String>;
2320
+ readonly correlation_id: Schema.optional<Schema.String>;
2321
+ readonly sdk_version: Schema.optional<Schema.String>;
2322
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2323
+ readonly change: Schema.Literals<readonly ["created", "updated", "deleted"]>;
2324
+ readonly group_id: Schema.String;
2325
+ readonly member_count: Schema.Number;
2326
+ readonly occurred_at: Schema.Number;
2327
+ }>;
2328
+ }>;
2329
+ readonly payroll_run_transitioned: Schema.Struct<{
2330
+ readonly name: Schema.Literal<"payroll_run_transitioned">;
2331
+ readonly props: Schema.Struct<{
2332
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2333
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2334
+ readonly journey_id: Schema.optional<Schema.String>;
2335
+ readonly correlation_id: Schema.optional<Schema.String>;
2336
+ readonly sdk_version: Schema.optional<Schema.String>;
2337
+ readonly organization_id: Schema.Codec<string, string, never, never>;
2338
+ readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2339
+ readonly run_id: Schema.String;
2340
+ readonly payment_count: Schema.optional<Schema.Number>;
2341
+ readonly occurred_at: Schema.Number;
2342
+ }>;
2343
+ }>;
2344
+ readonly ui_payroll_action_completed: Schema.Struct<{
2345
+ readonly name: Schema.Literal<"ui_payroll_action_completed">;
2346
+ readonly props: Schema.Struct<{
2347
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2348
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2349
+ readonly journey_id: Schema.optional<Schema.String>;
2350
+ readonly correlation_id: Schema.optional<Schema.String>;
2351
+ readonly sdk_version: Schema.optional<Schema.String>;
2352
+ readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
2353
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2354
+ 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"]>>;
2355
+ readonly action: Schema.Literals<readonly ["opened", "refusal_displayed", "recovery_completed", "cancelled", "submitted_displayed"]>;
2356
+ readonly run_id: Schema.optional<Schema.String>;
2357
+ }>;
2358
+ }>;
1998
2359
  readonly ui_contact_action_completed: Schema.Struct<{
1999
2360
  readonly name: Schema.Literal<"ui_contact_action_completed">;
2000
2361
  readonly props: Schema.Union<readonly [Schema.Struct<{
@@ -3072,10 +3433,19 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3072
3433
  readonly journey_id: Schema.optional<Schema.String>;
3073
3434
  readonly correlation_id: Schema.optional<Schema.String>;
3074
3435
  readonly sdk_version: Schema.optional<Schema.String>;
3436
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
3075
3437
  readonly outcome: Schema.String;
3076
3438
  readonly reason: Schema.String;
3077
3439
  readonly chain_id: Schema.Number;
3078
3440
  readonly retry_count: Schema.Number;
3441
+ /**
3442
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
3443
+ * these two optional fields let the producer say what the applying mutation
3444
+ * actually returned, and which command it was, without either fact rewriting
3445
+ * the receipt outcome above. Absent when application has not happened yet.
3446
+ */
3447
+ readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
3448
+ readonly command_id: Schema.optional<Schema.String>;
3079
3449
  }>;
3080
3450
  }>;
3081
3451
  readonly movement_scan_window: Schema.Struct<{
@@ -3131,7 +3501,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
3131
3501
  * A domain node removes its entry when it adds the producer. The telemetry
3132
3502
  * gate rejects an entry that has a producer.
3133
3503
  */
3134
- declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
3504
+ 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
3505
  /**
3136
3506
  * Catalog events whose product mapper remains gated on the #1150 frontend
3137
3507
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -3141,7 +3511,7 @@ declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
3141
3511
  */
3142
3512
  declare const PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS: readonly ["auth_otp_expired"];
3143
3513
  /** 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"];
3514
+ 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
3515
  interface TelemetryIdentifyInput {
3146
3516
  readonly distinctId: string;
3147
3517
  readonly anonDistinctId?: AnonymousDistinctId;
@@ -3360,4 +3730,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3360
3730
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3361
3731
  }
3362
3732
  //#endregion
3363
- 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 };
3733
+ 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, 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 };
package/dist/index.mjs CHANGED
@@ -521,7 +521,18 @@ const TELEMETRY_EVENT_NAMES = [
521
521
  "activity_annotation_saved",
522
522
  "ui_activity_action_completed",
523
523
  "contact_relationship_changed",
524
- "ui_contact_action_completed"
524
+ "ui_contact_action_completed",
525
+ "access_recovery_completed",
526
+ "ui_access_step_completed",
527
+ "org_invite_progressed",
528
+ "invoice_issued",
529
+ "invoice_request_transitioned",
530
+ "ui_invoice_step_completed",
531
+ "ui_treasury_step_completed",
532
+ "ui_receive_step_completed",
533
+ "payroll_group_changed",
534
+ "payroll_run_transitioned",
535
+ "ui_payroll_action_completed"
525
536
  ];
526
537
  const TELEMETRY_JOURNEYS = {
527
538
  returning_user_login: {
@@ -1256,10 +1267,24 @@ const DepositSettledProps = Schema.Struct({
1256
1267
  });
1257
1268
  const PermissionMirrorVerificationProps = Schema.Struct({
1258
1269
  ...TelemetryEnvelopeProps,
1270
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
1259
1271
  outcome: Schema.String,
1260
1272
  reason: Schema.String,
1261
1273
  chain_id: Schema.Number,
1262
- retry_count: Schema.Number
1274
+ retry_count: Schema.Number,
1275
+ /**
1276
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
1277
+ * these two optional fields let the producer say what the applying mutation
1278
+ * actually returned, and which command it was, without either fact rewriting
1279
+ * the receipt outcome above. Absent when application has not happened yet.
1280
+ */
1281
+ application_result: Schema.optional(Schema.Literals([
1282
+ "applied",
1283
+ "replayed",
1284
+ "conflicting_replay",
1285
+ "revision_mismatch"
1286
+ ])),
1287
+ command_id: OptionalString
1263
1288
  });
1264
1289
  const MovementScanWindowProps = Schema.Struct({
1265
1290
  ...TelemetryEnvelopeProps,
@@ -1485,6 +1510,10 @@ const MovementScanIncidentTelemetryEventSchema = Schema.Struct({
1485
1510
  name: Schema.Literal("movement_scan_incident"),
1486
1511
  props: MovementScanIncidentProps
1487
1512
  });
1513
+ /** The one spelling of "whose scope did this happen in" across every surface. */
1514
+ const ScopeKindSchema = Schema.Literals(["account", "organization"]);
1515
+ const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
1516
+ const OptionalReasonCode = Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES));
1488
1517
  const ActivityReferenceProps = {
1489
1518
  reference_kind: Schema.Literals(["payment", "movement"]),
1490
1519
  reference_id: Schema.String
@@ -1515,8 +1544,8 @@ const ActivityFilterProps = {
1515
1544
  };
1516
1545
  const ActivityActionProps = {
1517
1546
  ...TelemetryEnvelopeProps,
1518
- scope_kind: Schema.Literals(["account", "organization"]),
1519
- reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
1547
+ scope_kind: ScopeKindSchema,
1548
+ reason_code: OptionalReasonCode
1520
1549
  };
1521
1550
  const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1522
1551
  name: Schema.Literal("contact_relationship_changed"),
@@ -1528,7 +1557,7 @@ const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1528
1557
  "hidden",
1529
1558
  "restored"
1530
1559
  ]),
1531
- scope_kind: Schema.Literals(["account", "organization"]),
1560
+ scope_kind: ScopeKindSchema,
1532
1561
  scope_id: Schema.String,
1533
1562
  owner_party_id: Schema.String,
1534
1563
  party_id: Schema.String,
@@ -1544,9 +1573,9 @@ const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1544
1573
  });
1545
1574
  const ContactActionProps = {
1546
1575
  ...TelemetryEnvelopeProps,
1547
- scope_kind: Schema.Literals(["account", "organization"]),
1576
+ scope_kind: ScopeKindSchema,
1548
1577
  party_id: OptionalString,
1549
- reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
1578
+ reason_code: OptionalReasonCode
1550
1579
  };
1551
1580
  const UiContactActionCompletedTelemetryEventSchema = Schema.Struct({
1552
1581
  name: Schema.Literal("ui_contact_action_completed"),
@@ -1573,7 +1602,7 @@ const ActivityAnnotationSavedTelemetryEventSchema = Schema.Struct({
1573
1602
  props: Schema.Struct({
1574
1603
  ...TelemetryEnvelopeProps,
1575
1604
  ...ActivityReferenceProps,
1576
- scope_kind: Schema.Literals(["account", "organization"]),
1605
+ scope_kind: ScopeKindSchema,
1577
1606
  scope_id: Schema.String,
1578
1607
  occurred_at: Schema.Number
1579
1608
  })
@@ -1628,8 +1657,206 @@ const UiActivityActionCompletedTelemetryEventSchema = Schema.Struct({
1628
1657
  })
1629
1658
  ])
1630
1659
  });
1660
+ /**
1661
+ * Reliability closeout (#1960 R02) — the shape every explicit UI observation
1662
+ * below shares. `scope_kind` says whose surface the person was looking at,
1663
+ * `organization_id` is the verified Organization the producer resolved (absent
1664
+ * on a personal action), and `reason_code` is a catalog error code, never copy.
1665
+ */
1666
+ const UiStepProps = {
1667
+ ...TelemetryEnvelopeProps,
1668
+ scope_kind: ScopeKindSchema,
1669
+ organization_id: OptionalOrgId,
1670
+ reason_code: OptionalReasonCode
1671
+ };
1672
+ const AccessRecoveryCompletedProps = Schema.Union([Schema.Struct({
1673
+ ...TelemetryEnvelopeProps,
1674
+ recovery: Schema.Literal("session_restoration"),
1675
+ outcome: Schema.Literals([
1676
+ "restored",
1677
+ "absent",
1678
+ "failed"
1679
+ ]),
1680
+ reason_code: OptionalReasonCode,
1681
+ organization_id: OptionalOrgId
1682
+ }), Schema.Struct({
1683
+ ...TelemetryEnvelopeProps,
1684
+ recovery: Schema.Literal("signer_readiness"),
1685
+ outcome: Schema.Literals(["ready", "unavailable"]),
1686
+ reason_code: OptionalReasonCode,
1687
+ organization_id: OptionalOrgId
1688
+ })]);
1689
+ const AccessRecoveryCompletedTelemetryEventSchema = Schema.Struct({
1690
+ name: Schema.Literal("access_recovery_completed"),
1691
+ props: AccessRecoveryCompletedProps
1692
+ });
1693
+ const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
1694
+ name: Schema.Literal("ui_access_step_completed"),
1695
+ props: Schema.Struct({
1696
+ ...UiStepProps,
1697
+ step: Schema.Literals([
1698
+ "dashboard_granted",
1699
+ "redirect_completed",
1700
+ "gate_error_displayed",
1701
+ "retry_selected",
1702
+ "capability_refusal_displayed",
1703
+ "signer_refusal_displayed"
1704
+ ]),
1705
+ capability: Schema.optional(Schema.Literals(["spend", "managePeople"])),
1706
+ probe: Schema.optional(Schema.Literals([
1707
+ "session",
1708
+ "membership",
1709
+ "lifecycle"
1710
+ ])),
1711
+ reason: Schema.optional(Schema.Literals([
1712
+ "loading",
1713
+ "no-permission",
1714
+ "org-unavailable"
1715
+ ]))
1716
+ })
1717
+ });
1718
+ const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
1719
+ name: Schema.Literal("org_invite_progressed"),
1720
+ props: Schema.Struct({
1721
+ ...TelemetryEnvelopeProps,
1722
+ organization_id: OrgIdTelemetrySchema,
1723
+ progress: Schema.Literals([
1724
+ "account_ready",
1725
+ "permission_applied",
1726
+ "membership_activated",
1727
+ "revoked"
1728
+ ]),
1729
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
1730
+ member_party_id: Schema.String,
1731
+ occurred_at: Schema.Number
1732
+ })
1733
+ });
1734
+ const InvoiceIssuedTelemetryEventSchema = Schema.Struct({
1735
+ name: Schema.Literal("invoice_issued"),
1736
+ props: Schema.Struct({
1737
+ ...TelemetryEnvelopeProps,
1738
+ request_id: Schema.String,
1739
+ issuer_scope_kind: ScopeKindSchema,
1740
+ issuer_scope_id: Schema.String,
1741
+ payer_party_id: OptionalString,
1742
+ occurred_at: Schema.Number
1743
+ })
1744
+ });
1745
+ const InvoiceRequestTransitionedTelemetryEventSchema = Schema.Struct({
1746
+ name: Schema.Literal("invoice_request_transitioned"),
1747
+ props: Schema.Struct({
1748
+ ...TelemetryEnvelopeProps,
1749
+ request_id: Schema.String,
1750
+ transition: Schema.Literals([
1751
+ "approval_prepared",
1752
+ "declined",
1753
+ "cancelled"
1754
+ ]),
1755
+ actor_scope_kind: ScopeKindSchema,
1756
+ actor_scope_id: Schema.String,
1757
+ occurred_at: Schema.Number
1758
+ })
1759
+ });
1760
+ const UiInvoiceStepCompletedTelemetryEventSchema = Schema.Struct({
1761
+ name: Schema.Literal("ui_invoice_step_completed"),
1762
+ props: Schema.Struct({
1763
+ ...UiStepProps,
1764
+ step: Schema.Literals([
1765
+ "opened",
1766
+ "previewed",
1767
+ "dismissed",
1768
+ "submitted",
1769
+ "result_displayed",
1770
+ "refusal_displayed",
1771
+ "retry_selected"
1772
+ ]),
1773
+ request_id: OptionalString
1774
+ })
1775
+ });
1776
+ const UiTreasuryStepCompletedTelemetryEventSchema = Schema.Struct({
1777
+ name: Schema.Literal("ui_treasury_step_completed"),
1778
+ props: Schema.Struct({
1779
+ ...UiStepProps,
1780
+ step: Schema.Literals([
1781
+ "balance_displayed",
1782
+ "read_refusal_displayed",
1783
+ "retry_selected",
1784
+ "recovery_completed"
1785
+ ]),
1786
+ account_kind: Schema.optional(AccountKindSchema)
1787
+ })
1788
+ });
1789
+ const UiReceiveStepCompletedTelemetryEventSchema = Schema.Struct({
1790
+ name: Schema.Literal("ui_receive_step_completed"),
1791
+ props: Schema.Struct({
1792
+ ...UiStepProps,
1793
+ step: Schema.Literals([
1794
+ "instructions_displayed",
1795
+ "address_copied",
1796
+ "copy_failed",
1797
+ "refusal_displayed",
1798
+ "retry_selected"
1799
+ ]),
1800
+ account_kind: Schema.optional(AccountKindSchema)
1801
+ })
1802
+ });
1803
+ const PayrollGroupChangedTelemetryEventSchema = Schema.Struct({
1804
+ name: Schema.Literal("payroll_group_changed"),
1805
+ props: Schema.Struct({
1806
+ ...TelemetryEnvelopeProps,
1807
+ organization_id: OrgIdTelemetrySchema,
1808
+ change: Schema.Literals([
1809
+ "created",
1810
+ "updated",
1811
+ "deleted"
1812
+ ]),
1813
+ group_id: Schema.String,
1814
+ member_count: Schema.Number,
1815
+ occurred_at: Schema.Number
1816
+ })
1817
+ });
1818
+ const PayrollRunTransitionedTelemetryEventSchema = Schema.Struct({
1819
+ name: Schema.Literal("payroll_run_transitioned"),
1820
+ props: Schema.Struct({
1821
+ ...TelemetryEnvelopeProps,
1822
+ organization_id: OrgIdTelemetrySchema,
1823
+ transition: Schema.Literals([
1824
+ "prepared",
1825
+ "authorized",
1826
+ "settled"
1827
+ ]),
1828
+ run_id: Schema.String,
1829
+ payment_count: Schema.optional(Schema.Number),
1830
+ occurred_at: Schema.Number
1831
+ })
1832
+ });
1833
+ const UiPayrollActionCompletedTelemetryEventSchema = Schema.Struct({
1834
+ name: Schema.Literal("ui_payroll_action_completed"),
1835
+ props: Schema.Struct({
1836
+ ...UiStepProps,
1837
+ action: Schema.Literals([
1838
+ "opened",
1839
+ "refusal_displayed",
1840
+ "recovery_completed",
1841
+ "cancelled",
1842
+ "submitted_displayed"
1843
+ ]),
1844
+ run_id: OptionalString
1845
+ })
1846
+ });
1631
1847
  const TELEMETRY_EVENT_SCHEMAS = {
1632
1848
  contact_relationship_changed: ContactRelationshipChangedTelemetryEventSchema,
1849
+ access_recovery_completed: AccessRecoveryCompletedTelemetryEventSchema,
1850
+ ui_access_step_completed: UiAccessStepCompletedTelemetryEventSchema,
1851
+ org_invite_progressed: OrgInviteProgressedTelemetryEventSchema,
1852
+ invoice_issued: InvoiceIssuedTelemetryEventSchema,
1853
+ invoice_request_transitioned: InvoiceRequestTransitionedTelemetryEventSchema,
1854
+ ui_invoice_step_completed: UiInvoiceStepCompletedTelemetryEventSchema,
1855
+ ui_treasury_step_completed: UiTreasuryStepCompletedTelemetryEventSchema,
1856
+ ui_receive_step_completed: UiReceiveStepCompletedTelemetryEventSchema,
1857
+ payroll_group_changed: PayrollGroupChangedTelemetryEventSchema,
1858
+ payroll_run_transitioned: PayrollRunTransitionedTelemetryEventSchema,
1859
+ ui_payroll_action_completed: UiPayrollActionCompletedTelemetryEventSchema,
1633
1860
  ui_contact_action_completed: UiContactActionCompletedTelemetryEventSchema,
1634
1861
  activity_annotation_saved: ActivityAnnotationSavedTelemetryEventSchema,
1635
1862
  ui_activity_action_completed: UiActivityActionCompletedTelemetryEventSchema,
@@ -1691,7 +1918,14 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
1691
1918
  * A domain node removes its entry when it adds the producer. The telemetry
1692
1919
  * gate rejects an entry that has a producer.
1693
1920
  */
1694
- const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
1921
+ const CONTRACT_FIRST_TELEMETRY_EVENTS = [
1922
+ "access_recovery_completed",
1923
+ "org_invite_progressed",
1924
+ "invoice_issued",
1925
+ "invoice_request_transitioned",
1926
+ "payroll_group_changed",
1927
+ "payroll_run_transitioned"
1928
+ ];
1695
1929
  /**
1696
1930
  * Catalog events whose product mapper remains gated on the #1150 frontend
1697
1931
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -1707,7 +1941,12 @@ const BROWSER_GATED_TELEMETRY_EVENTS = [
1707
1941
  "onboarding_organization_submitted",
1708
1942
  "onboarding_dashboard_reached",
1709
1943
  "ui_activity_action_completed",
1710
- "ui_contact_action_completed"
1944
+ "ui_contact_action_completed",
1945
+ "ui_access_step_completed",
1946
+ "ui_invoice_step_completed",
1947
+ "ui_treasury_step_completed",
1948
+ "ui_receive_step_completed",
1949
+ "ui_payroll_action_completed"
1711
1950
  ];
1712
1951
  let trackHandler = () => {};
1713
1952
  function setTrackHandler(handler) {
@@ -2289,4 +2528,4 @@ function rotr(value, bits) {
2289
2528
  return value >>> bits | value << 32 - bits;
2290
2529
  }
2291
2530
  //#endregion
2292
- 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, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, ContactRelationshipChangedTelemetryEventSchema, 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, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
2531
+ 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, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, 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, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, 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": "4.2.0-rc.2",
3
+ "version": "4.2.0-rc.4",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,8 +38,8 @@
38
38
  "vite-plus": "0.3.0",
39
39
  "vitest": "4.1.11",
40
40
  "@capxul/errors": "0.3.0",
41
- "@capxul/types": "0.3.0",
42
- "@capxul/typescript-config": "0.0.0"
41
+ "@capxul/typescript-config": "0.0.0",
42
+ "@capxul/types": "0.3.0"
43
43
  },
44
44
  "scripts": {
45
45
  "check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",