@capxul/observability 4.2.0-rc.1 → 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.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "source": {
3
- "commit": "efa1ae30674425e4db92020bfad513fb6cf36011",
4
- "tree": "91f805524a7c7b53e6c28cf484b549b0c1dbd9dd",
3
+ "commit": "a7e55e5f1c2af5567a8b285a4ef70b8b5a3289f6",
4
+ "tree": "91bf1b080c0006fe30131711c13c843afd627158",
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.1"
10
+ "version": "4.2.0-rc.10"
11
11
  }
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;
@@ -3360,4 +3768,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
3360
3768
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
3361
3769
  }
3362
3770
  //#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 };
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 };
package/dist/index.mjs CHANGED
@@ -114,6 +114,8 @@ const CAPXUL_OPERATIONS = {
114
114
  emitAnnotationSaved: "activity.emitAnnotationSaved",
115
115
  get: "activity.get",
116
116
  list: "activity.list",
117
+ /** The SDK's live Activity read over the indexer's SSE stream. */
118
+ subscribe: "activity.subscribe",
117
119
  summary: "activity.summary"
118
120
  },
119
121
  addressBook: {
@@ -473,6 +475,7 @@ const TELEMETRY_EVENT_NAMES = [
473
475
  "auth_otp_expired",
474
476
  "auth_verified",
475
477
  "auth_failed",
478
+ "identity_refused",
476
479
  "auth_signed_out",
477
480
  "onboarding_intent_selected",
478
481
  "onboarding_profile_submitted",
@@ -521,7 +524,18 @@ const TELEMETRY_EVENT_NAMES = [
521
524
  "activity_annotation_saved",
522
525
  "ui_activity_action_completed",
523
526
  "contact_relationship_changed",
524
- "ui_contact_action_completed"
527
+ "ui_contact_action_completed",
528
+ "access_recovery_completed",
529
+ "ui_access_step_completed",
530
+ "org_invite_progressed",
531
+ "invoice_issued",
532
+ "invoice_request_transitioned",
533
+ "ui_invoice_step_completed",
534
+ "ui_treasury_step_completed",
535
+ "ui_receive_step_completed",
536
+ "payroll_group_changed",
537
+ "payroll_run_transitioned",
538
+ "ui_payroll_action_completed"
525
539
  ];
526
540
  const TELEMETRY_JOURNEYS = {
527
541
  returning_user_login: {
@@ -869,6 +883,17 @@ const AuthFailedProps = Schema.Struct({
869
883
  auth_type: OptionalString,
870
884
  reason: OptionalString
871
885
  });
886
+ const IdentityRefusedProps = Schema.Struct({
887
+ ...TelemetryEnvelopeProps,
888
+ /** The refused identity event tag, for example CreateOrganization. */
889
+ event: OptionalString,
890
+ /** The machine's refusal code: WRONG_STATE, SUPERSEDED or STALE_EPOCH. */
891
+ refusal_code: OptionalString,
892
+ /** The machine slot the request targeted, for example identity:org. */
893
+ slot: OptionalString,
894
+ /** The machine state at refusal, for example authenticated:claiming. */
895
+ state: OptionalString
896
+ });
872
897
  const AuthSignedOutProps = Schema.Struct(TelemetryEnvelopeProps);
873
898
  const ProvisioningSafeCreatedProps = Schema.Struct({
874
899
  ...TelemetryEnvelopeProps,
@@ -1256,10 +1281,24 @@ const DepositSettledProps = Schema.Struct({
1256
1281
  });
1257
1282
  const PermissionMirrorVerificationProps = Schema.Struct({
1258
1283
  ...TelemetryEnvelopeProps,
1284
+ /** The RECEIPT verification outcome. What the mirror then did is separate. */
1259
1285
  outcome: Schema.String,
1260
1286
  reason: Schema.String,
1261
1287
  chain_id: Schema.Number,
1262
- retry_count: Schema.Number
1288
+ retry_count: Schema.Number,
1289
+ /**
1290
+ * #1960 R02, consumed by R03. A verified receipt is not an applied Permission:
1291
+ * these two optional fields let the producer say what the applying mutation
1292
+ * actually returned, and which command it was, without either fact rewriting
1293
+ * the receipt outcome above. Absent when application has not happened yet.
1294
+ */
1295
+ application_result: Schema.optional(Schema.Literals([
1296
+ "applied",
1297
+ "replayed",
1298
+ "conflicting_replay",
1299
+ "revision_mismatch"
1300
+ ])),
1301
+ command_id: OptionalString
1263
1302
  });
1264
1303
  const MovementScanWindowProps = Schema.Struct({
1265
1304
  ...TelemetryEnvelopeProps,
@@ -1305,6 +1344,10 @@ const AuthFailedTelemetryEventSchema = Schema.Struct({
1305
1344
  name: Schema.Literal("auth_failed"),
1306
1345
  props: AuthFailedProps
1307
1346
  });
1347
+ const IdentityRefusedTelemetryEventSchema = Schema.Struct({
1348
+ name: Schema.Literal("identity_refused"),
1349
+ props: IdentityRefusedProps
1350
+ });
1308
1351
  const AuthSignedOutTelemetryEventSchema = Schema.Struct({
1309
1352
  name: Schema.Literal("auth_signed_out"),
1310
1353
  props: AuthSignedOutProps
@@ -1485,6 +1528,10 @@ const MovementScanIncidentTelemetryEventSchema = Schema.Struct({
1485
1528
  name: Schema.Literal("movement_scan_incident"),
1486
1529
  props: MovementScanIncidentProps
1487
1530
  });
1531
+ /** The one spelling of "whose scope did this happen in" across every surface. */
1532
+ const ScopeKindSchema = Schema.Literals(["account", "organization"]);
1533
+ const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
1534
+ const OptionalReasonCode = Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES));
1488
1535
  const ActivityReferenceProps = {
1489
1536
  reference_kind: Schema.Literals(["payment", "movement"]),
1490
1537
  reference_id: Schema.String
@@ -1515,8 +1562,8 @@ const ActivityFilterProps = {
1515
1562
  };
1516
1563
  const ActivityActionProps = {
1517
1564
  ...TelemetryEnvelopeProps,
1518
- scope_kind: Schema.Literals(["account", "organization"]),
1519
- reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
1565
+ scope_kind: ScopeKindSchema,
1566
+ reason_code: OptionalReasonCode
1520
1567
  };
1521
1568
  const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1522
1569
  name: Schema.Literal("contact_relationship_changed"),
@@ -1528,7 +1575,7 @@ const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1528
1575
  "hidden",
1529
1576
  "restored"
1530
1577
  ]),
1531
- scope_kind: Schema.Literals(["account", "organization"]),
1578
+ scope_kind: ScopeKindSchema,
1532
1579
  scope_id: Schema.String,
1533
1580
  owner_party_id: Schema.String,
1534
1581
  party_id: Schema.String,
@@ -1544,9 +1591,9 @@ const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
1544
1591
  });
1545
1592
  const ContactActionProps = {
1546
1593
  ...TelemetryEnvelopeProps,
1547
- scope_kind: Schema.Literals(["account", "organization"]),
1594
+ scope_kind: ScopeKindSchema,
1548
1595
  party_id: OptionalString,
1549
- reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
1596
+ reason_code: OptionalReasonCode
1550
1597
  };
1551
1598
  const UiContactActionCompletedTelemetryEventSchema = Schema.Struct({
1552
1599
  name: Schema.Literal("ui_contact_action_completed"),
@@ -1573,7 +1620,7 @@ const ActivityAnnotationSavedTelemetryEventSchema = Schema.Struct({
1573
1620
  props: Schema.Struct({
1574
1621
  ...TelemetryEnvelopeProps,
1575
1622
  ...ActivityReferenceProps,
1576
- scope_kind: Schema.Literals(["account", "organization"]),
1623
+ scope_kind: ScopeKindSchema,
1577
1624
  scope_id: Schema.String,
1578
1625
  occurred_at: Schema.Number
1579
1626
  })
@@ -1628,8 +1675,206 @@ const UiActivityActionCompletedTelemetryEventSchema = Schema.Struct({
1628
1675
  })
1629
1676
  ])
1630
1677
  });
1678
+ /**
1679
+ * Reliability closeout (#1960 R02) — the shape every explicit UI observation
1680
+ * below shares. `scope_kind` says whose surface the person was looking at,
1681
+ * `organization_id` is the verified Organization the producer resolved (absent
1682
+ * on a personal action), and `reason_code` is a catalog error code, never copy.
1683
+ */
1684
+ const UiStepProps = {
1685
+ ...TelemetryEnvelopeProps,
1686
+ scope_kind: ScopeKindSchema,
1687
+ organization_id: OptionalOrgId,
1688
+ reason_code: OptionalReasonCode
1689
+ };
1690
+ const AccessRecoveryCompletedProps = Schema.Union([Schema.Struct({
1691
+ ...TelemetryEnvelopeProps,
1692
+ recovery: Schema.Literal("session_restoration"),
1693
+ outcome: Schema.Literals([
1694
+ "restored",
1695
+ "absent",
1696
+ "failed"
1697
+ ]),
1698
+ reason_code: OptionalReasonCode,
1699
+ organization_id: OptionalOrgId
1700
+ }), Schema.Struct({
1701
+ ...TelemetryEnvelopeProps,
1702
+ recovery: Schema.Literal("signer_readiness"),
1703
+ outcome: Schema.Literals(["ready", "unavailable"]),
1704
+ reason_code: OptionalReasonCode,
1705
+ organization_id: OptionalOrgId
1706
+ })]);
1707
+ const AccessRecoveryCompletedTelemetryEventSchema = Schema.Struct({
1708
+ name: Schema.Literal("access_recovery_completed"),
1709
+ props: AccessRecoveryCompletedProps
1710
+ });
1711
+ const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
1712
+ name: Schema.Literal("ui_access_step_completed"),
1713
+ props: Schema.Struct({
1714
+ ...UiStepProps,
1715
+ step: Schema.Literals([
1716
+ "dashboard_granted",
1717
+ "redirect_completed",
1718
+ "gate_error_displayed",
1719
+ "retry_selected",
1720
+ "capability_refusal_displayed",
1721
+ "signer_refusal_displayed"
1722
+ ]),
1723
+ capability: Schema.optional(Schema.Literals(["spend", "managePeople"])),
1724
+ probe: Schema.optional(Schema.Literals([
1725
+ "session",
1726
+ "membership",
1727
+ "lifecycle"
1728
+ ])),
1729
+ reason: Schema.optional(Schema.Literals([
1730
+ "loading",
1731
+ "no-permission",
1732
+ "org-unavailable"
1733
+ ]))
1734
+ })
1735
+ });
1736
+ const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
1737
+ name: Schema.Literal("org_invite_progressed"),
1738
+ props: Schema.Struct({
1739
+ ...TelemetryEnvelopeProps,
1740
+ organization_id: OrgIdTelemetrySchema,
1741
+ progress: Schema.Literals([
1742
+ "account_ready",
1743
+ "permission_applied",
1744
+ "membership_activated",
1745
+ "revoked"
1746
+ ]),
1747
+ /** The invited Party. The initiating actor stays on the envelope's identity. */
1748
+ member_party_id: Schema.String,
1749
+ occurred_at: Schema.Number
1750
+ })
1751
+ });
1752
+ const InvoiceIssuedTelemetryEventSchema = Schema.Struct({
1753
+ name: Schema.Literal("invoice_issued"),
1754
+ props: Schema.Struct({
1755
+ ...TelemetryEnvelopeProps,
1756
+ request_id: Schema.String,
1757
+ issuer_scope_kind: ScopeKindSchema,
1758
+ issuer_scope_id: Schema.String,
1759
+ payer_party_id: OptionalString,
1760
+ occurred_at: Schema.Number
1761
+ })
1762
+ });
1763
+ const InvoiceRequestTransitionedTelemetryEventSchema = Schema.Struct({
1764
+ name: Schema.Literal("invoice_request_transitioned"),
1765
+ props: Schema.Struct({
1766
+ ...TelemetryEnvelopeProps,
1767
+ request_id: Schema.String,
1768
+ transition: Schema.Literals([
1769
+ "approval_prepared",
1770
+ "declined",
1771
+ "cancelled"
1772
+ ]),
1773
+ actor_scope_kind: ScopeKindSchema,
1774
+ actor_scope_id: Schema.String,
1775
+ occurred_at: Schema.Number
1776
+ })
1777
+ });
1778
+ const UiInvoiceStepCompletedTelemetryEventSchema = Schema.Struct({
1779
+ name: Schema.Literal("ui_invoice_step_completed"),
1780
+ props: Schema.Struct({
1781
+ ...UiStepProps,
1782
+ step: Schema.Literals([
1783
+ "opened",
1784
+ "previewed",
1785
+ "dismissed",
1786
+ "submitted",
1787
+ "result_displayed",
1788
+ "refusal_displayed",
1789
+ "retry_selected"
1790
+ ]),
1791
+ request_id: OptionalString
1792
+ })
1793
+ });
1794
+ const UiTreasuryStepCompletedTelemetryEventSchema = Schema.Struct({
1795
+ name: Schema.Literal("ui_treasury_step_completed"),
1796
+ props: Schema.Struct({
1797
+ ...UiStepProps,
1798
+ step: Schema.Literals([
1799
+ "balance_displayed",
1800
+ "read_refusal_displayed",
1801
+ "retry_selected",
1802
+ "recovery_completed"
1803
+ ]),
1804
+ account_kind: Schema.optional(AccountKindSchema)
1805
+ })
1806
+ });
1807
+ const UiReceiveStepCompletedTelemetryEventSchema = Schema.Struct({
1808
+ name: Schema.Literal("ui_receive_step_completed"),
1809
+ props: Schema.Struct({
1810
+ ...UiStepProps,
1811
+ step: Schema.Literals([
1812
+ "instructions_displayed",
1813
+ "address_copied",
1814
+ "copy_failed",
1815
+ "refusal_displayed",
1816
+ "retry_selected"
1817
+ ]),
1818
+ account_kind: Schema.optional(AccountKindSchema)
1819
+ })
1820
+ });
1821
+ const PayrollGroupChangedTelemetryEventSchema = Schema.Struct({
1822
+ name: Schema.Literal("payroll_group_changed"),
1823
+ props: Schema.Struct({
1824
+ ...TelemetryEnvelopeProps,
1825
+ organization_id: OrgIdTelemetrySchema,
1826
+ change: Schema.Literals([
1827
+ "created",
1828
+ "updated",
1829
+ "deleted"
1830
+ ]),
1831
+ group_id: Schema.String,
1832
+ member_count: Schema.Number,
1833
+ occurred_at: Schema.Number
1834
+ })
1835
+ });
1836
+ const PayrollRunTransitionedTelemetryEventSchema = Schema.Struct({
1837
+ name: Schema.Literal("payroll_run_transitioned"),
1838
+ props: Schema.Struct({
1839
+ ...TelemetryEnvelopeProps,
1840
+ organization_id: OrgIdTelemetrySchema,
1841
+ transition: Schema.Literals([
1842
+ "prepared",
1843
+ "authorized",
1844
+ "settled"
1845
+ ]),
1846
+ run_id: Schema.String,
1847
+ payment_count: Schema.optional(Schema.Number),
1848
+ occurred_at: Schema.Number
1849
+ })
1850
+ });
1851
+ const UiPayrollActionCompletedTelemetryEventSchema = Schema.Struct({
1852
+ name: Schema.Literal("ui_payroll_action_completed"),
1853
+ props: Schema.Struct({
1854
+ ...UiStepProps,
1855
+ action: Schema.Literals([
1856
+ "opened",
1857
+ "refusal_displayed",
1858
+ "recovery_completed",
1859
+ "cancelled",
1860
+ "submitted_displayed"
1861
+ ]),
1862
+ run_id: OptionalString
1863
+ })
1864
+ });
1631
1865
  const TELEMETRY_EVENT_SCHEMAS = {
1632
1866
  contact_relationship_changed: ContactRelationshipChangedTelemetryEventSchema,
1867
+ access_recovery_completed: AccessRecoveryCompletedTelemetryEventSchema,
1868
+ ui_access_step_completed: UiAccessStepCompletedTelemetryEventSchema,
1869
+ org_invite_progressed: OrgInviteProgressedTelemetryEventSchema,
1870
+ invoice_issued: InvoiceIssuedTelemetryEventSchema,
1871
+ invoice_request_transitioned: InvoiceRequestTransitionedTelemetryEventSchema,
1872
+ ui_invoice_step_completed: UiInvoiceStepCompletedTelemetryEventSchema,
1873
+ ui_treasury_step_completed: UiTreasuryStepCompletedTelemetryEventSchema,
1874
+ ui_receive_step_completed: UiReceiveStepCompletedTelemetryEventSchema,
1875
+ payroll_group_changed: PayrollGroupChangedTelemetryEventSchema,
1876
+ payroll_run_transitioned: PayrollRunTransitionedTelemetryEventSchema,
1877
+ ui_payroll_action_completed: UiPayrollActionCompletedTelemetryEventSchema,
1633
1878
  ui_contact_action_completed: UiContactActionCompletedTelemetryEventSchema,
1634
1879
  activity_annotation_saved: ActivityAnnotationSavedTelemetryEventSchema,
1635
1880
  ui_activity_action_completed: UiActivityActionCompletedTelemetryEventSchema,
@@ -1638,6 +1883,7 @@ const TELEMETRY_EVENT_SCHEMAS = {
1638
1883
  auth_otp_expired: AuthOtpExpiredTelemetryEventSchema,
1639
1884
  auth_verified: AuthVerifiedTelemetryEventSchema,
1640
1885
  auth_failed: AuthFailedTelemetryEventSchema,
1886
+ identity_refused: IdentityRefusedTelemetryEventSchema,
1641
1887
  auth_signed_out: AuthSignedOutTelemetryEventSchema,
1642
1888
  onboarding_intent_selected: OnboardingIntentSelectedTelemetryEventSchema,
1643
1889
  onboarding_profile_submitted: OnboardingProfileSubmittedTelemetryEventSchema,
@@ -1691,7 +1937,14 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
1691
1937
  * A domain node removes its entry when it adds the producer. The telemetry
1692
1938
  * gate rejects an entry that has a producer.
1693
1939
  */
1694
- const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
1940
+ const CONTRACT_FIRST_TELEMETRY_EVENTS = [
1941
+ "access_recovery_completed",
1942
+ "org_invite_progressed",
1943
+ "invoice_issued",
1944
+ "invoice_request_transitioned",
1945
+ "payroll_group_changed",
1946
+ "payroll_run_transitioned"
1947
+ ];
1695
1948
  /**
1696
1949
  * Catalog events whose product mapper remains gated on the #1150 frontend
1697
1950
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
@@ -1707,7 +1960,12 @@ const BROWSER_GATED_TELEMETRY_EVENTS = [
1707
1960
  "onboarding_organization_submitted",
1708
1961
  "onboarding_dashboard_reached",
1709
1962
  "ui_activity_action_completed",
1710
- "ui_contact_action_completed"
1963
+ "ui_contact_action_completed",
1964
+ "ui_access_step_completed",
1965
+ "ui_invoice_step_completed",
1966
+ "ui_treasury_step_completed",
1967
+ "ui_receive_step_completed",
1968
+ "ui_payroll_action_completed"
1711
1969
  ];
1712
1970
  let trackHandler = () => {};
1713
1971
  function setTrackHandler(handler) {
@@ -2289,4 +2547,4 @@ function rotr(value, bits) {
2289
2547
  return value >>> bits | value << 32 - bits;
2290
2548
  }
2291
2549
  //#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 };
2550
+ 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, IdentityRefusedTelemetryEventSchema, 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.1",
3
+ "version": "4.2.0-rc.10",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,8 @@
37
37
  "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
38
38
  "vite-plus": "0.3.0",
39
39
  "vitest": "4.1.11",
40
- "@capxul/types": "0.3.0",
41
40
  "@capxul/errors": "0.3.0",
41
+ "@capxul/types": "0.3.0",
42
42
  "@capxul/typescript-config": "0.0.0"
43
43
  },
44
44
  "scripts": {