@capxul/observability 4.20.0-beta.4 → 4.20.0-beta.5

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,4 +1,4 @@
1
- import { _ as CLI_COMMAND_NAMES, an as redactSecrets, en as isCapxulOperation, g as CLI_CAPABILITIES, in as isCredentialField, nn as CAPXUL_ERROR_CODES, on as redactUrlSecrets, rn as FAILURE_MODES, v as CLI_INVOCATION_KINDS } from "./src-CyMef9yy.mjs";
1
+ import { _ as CLI_COMMAND_NAMES, cn as CAPXUL_ERROR_CODES, dn as redactSecrets, fn as redactUrlSecrets, g as CLI_CAPABILITIES, ln as FAILURE_MODES, on as isCapxulOperation, un as isCredentialField, v as CLI_INVOCATION_KINDS } from "./src-DiNkwk99.mjs";
2
2
  import { Cause, Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, LogLevel, Logger, Metric, Option, References, Schedule, Stream, Tracer } from "effect";
3
3
  import { FetchHttpClient, Headers, HttpBody, HttpClient, HttpClientError, HttpClientResponse } from "effect/unstable/http";
4
4
  import { OtlpExporter, OtlpLogger, OtlpMetrics, OtlpSerialization, OtlpTracer } from "effect/unstable/observability";
@@ -581,7 +581,7 @@ const MINIMAL_ENUM_VALUES = /* @__PURE__ */ new Map([
581
581
  ["command", CLI_COMMAND_NAMES],
582
582
  ["capability", CLI_CAPABILITIES],
583
583
  ["invocation_kind", CLI_INVOCATION_KINDS],
584
- ["cli_identity_kind", ["anonymous"]],
584
+ ["cli_identity_kind", ["anonymous", "identified"]],
585
585
  ["output_mode", ["human", "json"]],
586
586
  ["unit", [
587
587
  "1",
package/dist/index.d.mts CHANGED
@@ -227,6 +227,26 @@ declare const CAPXUL_OPERATIONS: {
227
227
  readonly createOrg: "createOrg";
228
228
  readonly orgs: "orgs";
229
229
  };
230
+ /** AUTH A3 (#2073): the SDK facade over the native continuation endpoints. */
231
+ readonly clientRequests: {
232
+ readonly decide: "clientRequests.decide";
233
+ readonly read: "clientRequests.read";
234
+ };
235
+ /** AUTH A2 (#2072): the native client authorization issuer and its browser
236
+ * continuation. One name per durable transition the endpoints can fail on. */
237
+ readonly clientAuthorization: {
238
+ readonly acceptRequest: "clientAuthorization.acceptRequest";
239
+ readonly cancelRequest: "clientAuthorization.cancelRequest";
240
+ readonly consumeRequest: "clientAuthorization.consumeRequest";
241
+ readonly denyRequest: "clientAuthorization.denyRequest";
242
+ readonly invalidateContext: "clientAuthorization.invalidateContext";
243
+ readonly markConsented: "clientAuthorization.markConsented";
244
+ readonly readMetadata: "clientAuthorization.readMetadata";
245
+ readonly revokeGrant: "clientAuthorization.revokeGrant";
246
+ readonly rotateGrant: "clientAuthorization.rotateGrant";
247
+ readonly startRequest: "clientAuthorization.startRequest";
248
+ readonly sweepExpired: "clientAuthorization.sweepExpired";
249
+ };
230
250
  readonly credentials: {
231
251
  readonly bootstrapClient: "credentials.bootstrapClient";
232
252
  readonly mintQuickstartKey: "credentials.mintQuickstartKey";
@@ -612,7 +632,7 @@ interface TelemetryPort {
612
632
  }
613
633
  //#endregion
614
634
  //#region src/index.d.ts
615
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed", "cli_diagnostic_completed", "cli_first_used", "cli_command_started", "cli_command_completed"];
635
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "auth_signed_out", "native_authorization_started", "native_authorization_reviewed", "native_authorization_accepted", "native_authorization_denied", "native_authorization_connected", "native_authorization_failed", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed", "cli_diagnostic_completed", "cli_first_used", "cli_command_started", "cli_command_completed"];
616
636
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
617
637
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
618
638
  type FunnelStepPropertyFilter = {
@@ -959,6 +979,81 @@ declare const AuthSignedOutTelemetryEventSchema: Schema.Struct<{
959
979
  sdk_version: Schema.optional<Schema.String>;
960
980
  }>;
961
981
  }>;
982
+ declare const NativeAuthorizationStartedTelemetryEventSchema: Schema.Struct<{
983
+ readonly name: Schema.Literal<"native_authorization_started">;
984
+ readonly props: Schema.Struct<{
985
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
986
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
987
+ readonly journey_id: Schema.optional<Schema.String>;
988
+ readonly correlation_id: Schema.optional<Schema.String>;
989
+ readonly sdk_version: Schema.optional<Schema.String>;
990
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
991
+ }>;
992
+ }>;
993
+ declare const NativeAuthorizationReviewedTelemetryEventSchema: Schema.Struct<{
994
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
995
+ readonly props: Schema.Struct<{
996
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
997
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
998
+ readonly journey_id: Schema.optional<Schema.String>;
999
+ readonly correlation_id: Schema.optional<Schema.String>;
1000
+ readonly sdk_version: Schema.optional<Schema.String>;
1001
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1002
+ }>;
1003
+ }>;
1004
+ declare const NativeAuthorizationAcceptedTelemetryEventSchema: Schema.Struct<{
1005
+ readonly name: Schema.Literal<"native_authorization_accepted">;
1006
+ readonly props: Schema.Struct<{
1007
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1008
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1009
+ readonly journey_id: Schema.optional<Schema.String>;
1010
+ readonly correlation_id: Schema.optional<Schema.String>;
1011
+ readonly sdk_version: Schema.optional<Schema.String>;
1012
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1013
+ /** Whether consent also had to finish account setup first. */
1014
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
1015
+ }>;
1016
+ }>;
1017
+ declare const NativeAuthorizationDeniedTelemetryEventSchema: Schema.Struct<{
1018
+ readonly name: Schema.Literal<"native_authorization_denied">;
1019
+ readonly props: Schema.Struct<{
1020
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1021
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1022
+ readonly journey_id: Schema.optional<Schema.String>;
1023
+ readonly correlation_id: Schema.optional<Schema.String>;
1024
+ readonly sdk_version: Schema.optional<Schema.String>;
1025
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1026
+ }>;
1027
+ }>;
1028
+ declare const NativeAuthorizationConnectedTelemetryEventSchema: Schema.Struct<{
1029
+ readonly name: Schema.Literal<"native_authorization_connected">;
1030
+ readonly props: Schema.Struct<{
1031
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1032
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1033
+ readonly journey_id: Schema.optional<Schema.String>;
1034
+ readonly correlation_id: Schema.optional<Schema.String>;
1035
+ readonly sdk_version: Schema.optional<Schema.String>;
1036
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
1037
+ }>;
1038
+ }>;
1039
+ declare const NativeAuthorizationFailedTelemetryEventSchema: Schema.Struct<{
1040
+ readonly name: Schema.Literal<"native_authorization_failed">;
1041
+ readonly props: Schema.Struct<{
1042
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1043
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1044
+ readonly journey_id: Schema.optional<Schema.String>;
1045
+ readonly correlation_id: Schema.optional<Schema.String>;
1046
+ readonly sdk_version: Schema.optional<Schema.String>;
1047
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
1048
+ /** The refusal word the store returned, for example `identity_mismatch` or
1049
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
1050
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
1051
+ * which the continuation maps to `identity_mismatch` on the wire but reports
1052
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
1053
+ * set: this package must not depend on the transport contract. */
1054
+ readonly reason: Schema.optional<Schema.String>;
1055
+ }>;
1056
+ }>;
962
1057
  declare const OnboardingIntentSelectedTelemetryEventSchema: Schema.Struct<{
963
1058
  readonly name: Schema.Literal<"onboarding_intent_selected">;
964
1059
  readonly props: Schema.Struct<{
@@ -1240,6 +1335,7 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
1240
1335
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
1241
1336
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1242
1337
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1338
+ readonly asset_id: Schema.optional<Schema.String>;
1243
1339
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1244
1340
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1245
1341
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -1924,8 +2020,8 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
1924
2020
  }>;
1925
2021
  }>;
1926
2022
  /** One completed online CLI diagnostic. No command input or provider text. */
1927
- declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"];
1928
- declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection"];
2023
+ declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"];
2024
+ declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication"];
1929
2025
  declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
1930
2026
  type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
1931
2027
  type CliCapability = (typeof CLI_CAPABILITIES)[number];
@@ -1938,12 +2034,13 @@ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
1938
2034
  journey_id: Schema.optional<Schema.String>;
1939
2035
  correlation_id: Schema.optional<Schema.String>;
1940
2036
  schema_version: Schema.Literal<1>;
1941
- command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
1942
- capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2037
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2038
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
1943
2039
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
1944
2040
  invocation_id: Schema.String;
1945
- cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2041
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
1946
2042
  anonymous_id: Schema.optional<Schema.String>;
2043
+ auth_user_id: Schema.optional<Schema.String>;
1947
2044
  occurred_at: Schema.Number;
1948
2045
  cli_version: Schema.String;
1949
2046
  sdk_version: Schema.String;
@@ -1963,11 +2060,12 @@ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
1963
2060
  readonly journey_id: Schema.optional<Schema.String>;
1964
2061
  readonly correlation_id: Schema.optional<Schema.String>;
1965
2062
  readonly schema_version: Schema.Literal<1>;
1966
- readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
1967
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2063
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2064
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
1968
2065
  readonly invocation_id: Schema.String;
1969
- readonly cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2066
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
1970
2067
  readonly anonymous_id: Schema.optional<Schema.String>;
2068
+ readonly auth_user_id: Schema.optional<Schema.String>;
1971
2069
  readonly occurred_at: Schema.Number;
1972
2070
  readonly cli_version: Schema.String;
1973
2071
  readonly sdk_version: Schema.String;
@@ -1988,12 +2086,13 @@ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
1988
2086
  readonly journey_id: Schema.optional<Schema.String>;
1989
2087
  readonly correlation_id: Schema.optional<Schema.String>;
1990
2088
  readonly schema_version: Schema.Literal<1>;
1991
- readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
1992
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2089
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2090
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
1993
2091
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
1994
2092
  readonly invocation_id: Schema.String;
1995
- readonly cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2093
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
1996
2094
  readonly anonymous_id: Schema.optional<Schema.String>;
2095
+ readonly auth_user_id: Schema.optional<Schema.String>;
1997
2096
  readonly occurred_at: Schema.Number;
1998
2097
  readonly cli_version: Schema.String;
1999
2098
  readonly sdk_version: Schema.String;
@@ -2624,12 +2723,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2624
2723
  journey_id: Schema.optional<Schema.String>;
2625
2724
  correlation_id: Schema.optional<Schema.String>;
2626
2725
  schema_version: Schema.Literal<1>;
2627
- command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
2628
- capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2726
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2727
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
2629
2728
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2630
2729
  invocation_id: Schema.String;
2631
- cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2730
+ cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2632
2731
  anonymous_id: Schema.optional<Schema.String>;
2732
+ auth_user_id: Schema.optional<Schema.String>;
2633
2733
  occurred_at: Schema.Number;
2634
2734
  cli_version: Schema.String;
2635
2735
  sdk_version: Schema.String;
@@ -2649,11 +2749,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2649
2749
  readonly journey_id: Schema.optional<Schema.String>;
2650
2750
  readonly correlation_id: Schema.optional<Schema.String>;
2651
2751
  readonly schema_version: Schema.Literal<1>;
2652
- readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
2653
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2752
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2753
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
2654
2754
  readonly invocation_id: Schema.String;
2655
- readonly cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2755
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2656
2756
  readonly anonymous_id: Schema.optional<Schema.String>;
2757
+ readonly auth_user_id: Schema.optional<Schema.String>;
2657
2758
  readonly occurred_at: Schema.Number;
2658
2759
  readonly cli_version: Schema.String;
2659
2760
  readonly sdk_version: Schema.String;
@@ -2674,12 +2775,13 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2674
2775
  readonly journey_id: Schema.optional<Schema.String>;
2675
2776
  readonly correlation_id: Schema.optional<Schema.String>;
2676
2777
  readonly schema_version: Schema.Literal<1>;
2677
- readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "unknown"]>;
2678
- readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection"]>;
2778
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.status", "auth.logout", "unknown"]>;
2779
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication"]>;
2679
2780
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2680
2781
  readonly invocation_id: Schema.String;
2681
- readonly cli_identity_kind: Schema.optional<Schema.Literal<"anonymous">>;
2782
+ readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2682
2783
  readonly anonymous_id: Schema.optional<Schema.String>;
2784
+ readonly auth_user_id: Schema.optional<Schema.String>;
2683
2785
  readonly occurred_at: Schema.Number;
2684
2786
  readonly cli_version: Schema.String;
2685
2787
  readonly sdk_version: Schema.String;
@@ -2913,6 +3015,81 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2913
3015
  sdk_version: Schema.optional<Schema.String>;
2914
3016
  }>;
2915
3017
  }>;
3018
+ readonly native_authorization_started: Schema.Struct<{
3019
+ readonly name: Schema.Literal<"native_authorization_started">;
3020
+ readonly props: Schema.Struct<{
3021
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3022
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3023
+ readonly journey_id: Schema.optional<Schema.String>;
3024
+ readonly correlation_id: Schema.optional<Schema.String>;
3025
+ readonly sdk_version: Schema.optional<Schema.String>;
3026
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3027
+ }>;
3028
+ }>;
3029
+ readonly native_authorization_reviewed: Schema.Struct<{
3030
+ readonly name: Schema.Literal<"native_authorization_reviewed">;
3031
+ readonly props: Schema.Struct<{
3032
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3033
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3034
+ readonly journey_id: Schema.optional<Schema.String>;
3035
+ readonly correlation_id: Schema.optional<Schema.String>;
3036
+ readonly sdk_version: Schema.optional<Schema.String>;
3037
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3038
+ }>;
3039
+ }>;
3040
+ readonly native_authorization_accepted: Schema.Struct<{
3041
+ readonly name: Schema.Literal<"native_authorization_accepted">;
3042
+ readonly props: Schema.Struct<{
3043
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3044
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3045
+ readonly journey_id: Schema.optional<Schema.String>;
3046
+ readonly correlation_id: Schema.optional<Schema.String>;
3047
+ readonly sdk_version: Schema.optional<Schema.String>;
3048
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3049
+ /** Whether consent also had to finish account setup first. */
3050
+ readonly setup_state: Schema.optional<Schema.Literals<readonly ["not_required", "new", "resumable"]>>;
3051
+ }>;
3052
+ }>;
3053
+ readonly native_authorization_denied: Schema.Struct<{
3054
+ readonly name: Schema.Literal<"native_authorization_denied">;
3055
+ readonly props: Schema.Struct<{
3056
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3057
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3058
+ readonly journey_id: Schema.optional<Schema.String>;
3059
+ readonly correlation_id: Schema.optional<Schema.String>;
3060
+ readonly sdk_version: Schema.optional<Schema.String>;
3061
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3062
+ }>;
3063
+ }>;
3064
+ readonly native_authorization_connected: Schema.Struct<{
3065
+ readonly name: Schema.Literal<"native_authorization_connected">;
3066
+ readonly props: Schema.Struct<{
3067
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3068
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3069
+ readonly journey_id: Schema.optional<Schema.String>;
3070
+ readonly correlation_id: Schema.optional<Schema.String>;
3071
+ readonly sdk_version: Schema.optional<Schema.String>;
3072
+ readonly mode: Schema.Literals<readonly ["login", "signup"]>;
3073
+ }>;
3074
+ }>;
3075
+ readonly native_authorization_failed: Schema.Struct<{
3076
+ readonly name: Schema.Literal<"native_authorization_failed">;
3077
+ readonly props: Schema.Struct<{
3078
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
3079
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
3080
+ readonly journey_id: Schema.optional<Schema.String>;
3081
+ readonly correlation_id: Schema.optional<Schema.String>;
3082
+ readonly sdk_version: Schema.optional<Schema.String>;
3083
+ readonly mode: Schema.optional<Schema.Literals<readonly ["login", "signup"]>>;
3084
+ /** The refusal word the store returned, for example `identity_mismatch` or
3085
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
3086
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
3087
+ * which the continuation maps to `identity_mismatch` on the wire but reports
3088
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
3089
+ * set: this package must not depend on the transport contract. */
3090
+ readonly reason: Schema.optional<Schema.String>;
3091
+ }>;
3092
+ }>;
2916
3093
  readonly onboarding_intent_selected: Schema.Struct<{
2917
3094
  readonly name: Schema.Literal<"onboarding_intent_selected">;
2918
3095
  readonly props: Schema.Struct<{
@@ -3194,6 +3371,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3194
3371
  readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
3195
3372
  readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3196
3373
  readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3374
+ readonly asset_id: Schema.optional<Schema.String>;
3197
3375
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
3198
3376
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
3199
3377
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -4096,4 +4274,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
4096
4274
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
4097
4275
  }
4098
4276
  //#endregion
4099
- export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCapability, CliCommandCompletedTelemetryEventSchema, CliCommandName, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, CliInvocationKind, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
4277
+ export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCapability, CliCommandCompletedTelemetryEventSchema, CliCommandName, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, CliInvocationKind, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, 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
@@ -1,2 +1,2 @@
1
- import { $ as OrgCreatedTelemetryEventSchema, $t as CAPXUL_OPERATIONS, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as TELEMETRY_JOURNEYS, B as MemberActivationFailedTelemetryEventSchema, Bt as createPostHogBrowserPageviewTracker, C as CliCommandCompletedTelemetryEventSchema, Ct as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as SYNCABLE_CAPXUL_ENVS, E as CliFirstUsedTelemetryEventSchema, Et as ResponseHeadersSchema, F as IdentityRefusedTelemetryEventSchema, Ft as UiInvoiceStepCompletedTelemetryEventSchema, G as MovementScanWindowTelemetryEventSchema, Gt as productAppAnalytics, H as MemberActivationStartedTelemetryEventSchema, Ht as initializeCapxulBrowserAnalytics, I as InMemoryTelemetryBusAdapter, It as UiPayrollActionCompletedTelemetryEventSchema, J as OnboardingOrganizationSubmittedTelemetryEventSchema, Jt as sanitizePostHogBrowserEvent, K as OnboardingDashboardReachedTelemetryEventSchema, Kt as redactTelemetryEvent, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as UiReceiveStepCompletedTelemetryEventSchema, M as FaucetConfirmedTelemetryEventSchema, Mt as UiAccessStepCompletedTelemetryEventSchema, N as FaucetFailedTelemetryEventSchema, Nt as UiActivityActionCompletedTelemetryEventSchema, O as DepositInitiatedTelemetryEventSchema, Ot as TELEMETRY_EVENT_NAMES, P as FaucetRequestedTelemetryEventSchema, Pt as UiContactActionCompletedTelemetryEventSchema, Q as OrgCreateStartedTelemetryEventSchema, Qt as utilityAppAnalytics, R as InvoiceIssuedTelemetryEventSchema, Rt as UiTreasuryStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as ProvisioningSafeCreatedTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as RecordingTelemetryAdapter, U as MovementScanCheckpointTelemetryEventSchema, Ut as initializePostHogBrowserAnalytics, V as MemberActivationReadyTelemetryEventSchema, Vt as getTrackHandler, W as MovementScanIncidentTelemetryEventSchema, Wt as maskCapturedNetworkRequest, X as OperationRetriedTelemetryEventSchema, Xt as stampTelemetryEnvelope, Y as OnboardingProfileSubmittedTelemetryEventSchema, Yt as setTrackHandler, Z as OrgCreateFailedTelemetryEventSchema, Zt as track, _ as CLI_COMMAND_NAMES, _t as PayrollGroupChangedTelemetryEventSchema, a as AuthFailedTelemetryEventSchema, at as OrgSafeConfirmedTelemetryEventSchema, b as ChainAttemptSchema, bt as PostHogTelemetryAdapter, c as AuthOtpRequestedTelemetryEventSchema, ct as OrganizationCreationReadyTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, en as isCapxulOperation, et as OrgInviteAcceptedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as PaymentFailedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PaymentVerificationRetryTelemetryEventSchema, h as CAPXUL_ENVS, ht as PaymentSettledTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, it as OrgRolesSeededTelemetryEventSchema, j as FailureModeSchema, jt as TELEMETRY_PRODUCERS, k as DepositSettledTelemetryEventSchema, kt as TELEMETRY_EVENT_SCHEMAS, l as AuthSignedOutTelemetryEventSchema, lt as OrganizationCreationStartedTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as PaymentLifecycleTransitionTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nt as OrgInviteProgressedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, ot as OrgSafeCreatedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as PaymentInitiatedTelemetryEventSchema, q as OnboardingIntentSelectedTelemetryEventSchema, qt as redactTelemetryProps, r as AccountBalanceReadTelemetryEventSchema, rt as OrgInviteSentTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, st as OrganizationCreationFailedTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as normalizeCapxulOperation, tt as OrgInviteExpiredTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as PII, v as CLI_INVOCATION_KINDS, vt as PayrollRunTransitionedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as ReceiptPendingTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as ProvisioningSafeConfirmedTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PermissionMirrorVerificationTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as createCapxulBeforeSend } from "./src-CyMef9yy.mjs";
2
- export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, 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 };
1
+ import { $ as OnboardingIntentSelectedTelemetryEventSchema, $t as redactTelemetryProps, A as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, At as ReceiptPendingTelemetryEventSchema, B as MemberActivationFailedTelemetryEventSchema, Bt as UiContactActionCompletedTelemetryEventSchema, C as CliCommandCompletedTelemetryEventSchema, Ct as PayrollGroupChangedTelemetryEventSchema, D as ContactRelationshipChangedTelemetryEventSchema, Dt as ProvisioningSafeConfirmedTelemetryEventSchema, E as CliFirstUsedTelemetryEventSchema, Et as PostHogTelemetryAdapter, F as IdentityRefusedTelemetryEventSchema, Ft as TELEMETRY_EVENT_SCHEMAS, G as MovementScanWindowTelemetryEventSchema, Gt as createCapxulBeforeSend, H as MemberActivationStartedTelemetryEventSchema, Ht as UiPayrollActionCompletedTelemetryEventSchema, I as InMemoryTelemetryBusAdapter, It as TELEMETRY_JOURNEYS, J as NativeAuthorizationDeniedTelemetryEventSchema, Jt as initializeCapxulBrowserAnalytics, K as NativeAuthorizationAcceptedTelemetryEventSchema, Kt as createPostHogBrowserPageviewTracker, L as IndexerDriftCorrectedTelemetryEventSchema, Lt as TELEMETRY_PRODUCERS, M as FaucetConfirmedTelemetryEventSchema, Mt as ResponseHeadersSchema, N as FaucetFailedTelemetryEventSchema, Nt as SYNCABLE_CAPXUL_ENVS, O as DepositInitiatedTelemetryEventSchema, Ot as ProvisioningSafeCreatedTelemetryEventSchema, P as FaucetRequestedTelemetryEventSchema, Pt as TELEMETRY_EVENT_NAMES, Q as OnboardingDashboardReachedTelemetryEventSchema, Qt as redactTelemetryEvent, R as InvoiceIssuedTelemetryEventSchema, Rt as UiAccessStepCompletedTelemetryEventSchema, S as ChainUpstreamSchema, St as PaymentVerificationRetryTelemetryEventSchema, T as CliDiagnosticCompletedTelemetryEventSchema, Tt as PermissionMirrorVerificationTelemetryEventSchema, U as MovementScanCheckpointTelemetryEventSchema, Ut as UiReceiveStepCompletedTelemetryEventSchema, V as MemberActivationReadyTelemetryEventSchema, Vt as UiInvoiceStepCompletedTelemetryEventSchema, W as MovementScanIncidentTelemetryEventSchema, Wt as UiTreasuryStepCompletedTelemetryEventSchema, X as NativeAuthorizationReviewedTelemetryEventSchema, Xt as maskCapturedNetworkRequest, Y as NativeAuthorizationFailedTelemetryEventSchema, Yt as initializePostHogBrowserAnalytics, Z as NativeAuthorizationStartedTelemetryEventSchema, Zt as productAppAnalytics, _ as CLI_COMMAND_NAMES, _t as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, a as AuthFailedTelemetryEventSchema, an as CAPXUL_OPERATIONS, at as OrgCreatedTelemetryEventSchema, b as ChainAttemptSchema, bt as PaymentLifecycleTransitionTelemetryEventSchema, c as AuthOtpRequestedTelemetryEventSchema, ct as OrgInviteProgressedTelemetryEventSchema, d as BROWSER_GATED_TELEMETRY_EVENTS, dt as OrgSafeConfirmedTelemetryEventSchema, en as sanitizePostHogBrowserEvent, et as OnboardingOrganizationSubmittedTelemetryEventSchema, f as BootstrapFailedTelemetryEventSchema, ft as OrgSafeCreatedTelemetryEventSchema, g as CLI_CAPABILITIES, gt as PII, h as CAPXUL_ENVS, ht as OrganizationCreationStartedTelemetryEventSchema, i as ActivityAnnotationSavedTelemetryEventSchema, in as utilityAppAnalytics, it as OrgCreateStartedTelemetryEventSchema, j as FailureModeSchema, jt as RecordingTelemetryAdapter, k as DepositSettledTelemetryEventSchema, kt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, l as AuthSignedOutTelemetryEventSchema, lt as OrgInviteSentTelemetryEventSchema, m as BundlerErrorTelemetryEventSchema, mt as OrganizationCreationReadyTelemetryEventSchema, n as AccountBalanceFailedTelemetryEventSchema, nn as stampTelemetryEnvelope, nt as OperationRetriedTelemetryEventSchema, o as AuthOtpDeliveredTelemetryEventSchema, on as isCapxulOperation, ot as OrgInviteAcceptedTelemetryEventSchema, p as BootstrapResolvedTelemetryEventSchema, pt as OrganizationCreationFailedTelemetryEventSchema, q as NativeAuthorizationConnectedTelemetryEventSchema, qt as getTrackHandler, r as AccountBalanceReadTelemetryEventSchema, rn as track, rt as OrgCreateFailedTelemetryEventSchema, s as AuthOtpExpiredTelemetryEventSchema, sn as normalizeCapxulOperation, st as OrgInviteExpiredTelemetryEventSchema, t as AccessRecoveryCompletedTelemetryEventSchema, tn as setTrackHandler, tt as OnboardingProfileSubmittedTelemetryEventSchema, u as AuthVerifiedTelemetryEventSchema, ut as OrgRolesSeededTelemetryEventSchema, v as CLI_INVOCATION_KINDS, vt as PaymentFailedTelemetryEventSchema, w as CliCommandStartedTelemetryEventSchema, wt as PayrollRunTransitionedTelemetryEventSchema, x as ChainUpstreamFallbackTelemetryEventSchema, xt as PaymentSettledTelemetryEventSchema, y as CONTRACT_FIRST_TELEMETRY_EVENTS, yt as PaymentInitiatedTelemetryEventSchema, z as InvoiceRequestTransitionedTelemetryEventSchema, zt as UiActivityActionCompletedTelemetryEventSchema } from "./src-DiNkwk99.mjs";
2
+ export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, 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 };
@@ -451,6 +451,26 @@ const CAPXUL_OPERATIONS = {
451
451
  createOrg: "createOrg",
452
452
  orgs: "orgs"
453
453
  },
454
+ /** AUTH A3 (#2073): the SDK facade over the native continuation endpoints. */
455
+ clientRequests: {
456
+ decide: "clientRequests.decide",
457
+ read: "clientRequests.read"
458
+ },
459
+ /** AUTH A2 (#2072): the native client authorization issuer and its browser
460
+ * continuation. One name per durable transition the endpoints can fail on. */
461
+ clientAuthorization: {
462
+ acceptRequest: "clientAuthorization.acceptRequest",
463
+ cancelRequest: "clientAuthorization.cancelRequest",
464
+ consumeRequest: "clientAuthorization.consumeRequest",
465
+ denyRequest: "clientAuthorization.denyRequest",
466
+ invalidateContext: "clientAuthorization.invalidateContext",
467
+ markConsented: "clientAuthorization.markConsented",
468
+ readMetadata: "clientAuthorization.readMetadata",
469
+ revokeGrant: "clientAuthorization.revokeGrant",
470
+ rotateGrant: "clientAuthorization.rotateGrant",
471
+ startRequest: "clientAuthorization.startRequest",
472
+ sweepExpired: "clientAuthorization.sweepExpired"
473
+ },
454
474
  credentials: {
455
475
  bootstrapClient: "credentials.bootstrapClient",
456
476
  mintQuickstartKey: "credentials.mintQuickstartKey"
@@ -796,6 +816,12 @@ const TELEMETRY_EVENT_NAMES = [
796
816
  "auth_failed",
797
817
  "identity_refused",
798
818
  "auth_signed_out",
819
+ "native_authorization_started",
820
+ "native_authorization_reviewed",
821
+ "native_authorization_accepted",
822
+ "native_authorization_denied",
823
+ "native_authorization_connected",
824
+ "native_authorization_failed",
799
825
  "onboarding_intent_selected",
800
826
  "onboarding_profile_submitted",
801
827
  "onboarding_organization_submitted",
@@ -1223,6 +1249,44 @@ const IdentityRefusedProps = Schema.Struct({
1223
1249
  state: OptionalString
1224
1250
  });
1225
1251
  const AuthSignedOutProps = Schema.Struct(TelemetryEnvelopeProps);
1252
+ const NativeAuthorizationMode = Schema.Literals(["login", "signup"]);
1253
+ const NativeAuthorizationStartedProps = Schema.Struct({
1254
+ ...TelemetryEnvelopeProps,
1255
+ mode: NativeAuthorizationMode
1256
+ });
1257
+ const NativeAuthorizationReviewedProps = Schema.Struct({
1258
+ ...TelemetryEnvelopeProps,
1259
+ mode: NativeAuthorizationMode
1260
+ });
1261
+ const NativeAuthorizationAcceptedProps = Schema.Struct({
1262
+ ...TelemetryEnvelopeProps,
1263
+ mode: NativeAuthorizationMode,
1264
+ /** Whether consent also had to finish account setup first. */
1265
+ setup_state: Schema.optional(Schema.Literals([
1266
+ "not_required",
1267
+ "new",
1268
+ "resumable"
1269
+ ]))
1270
+ });
1271
+ const NativeAuthorizationDeniedProps = Schema.Struct({
1272
+ ...TelemetryEnvelopeProps,
1273
+ mode: NativeAuthorizationMode
1274
+ });
1275
+ const NativeAuthorizationConnectedProps = Schema.Struct({
1276
+ ...TelemetryEnvelopeProps,
1277
+ mode: NativeAuthorizationMode
1278
+ });
1279
+ const NativeAuthorizationFailedProps = Schema.Struct({
1280
+ ...TelemetryEnvelopeProps,
1281
+ mode: Schema.optional(NativeAuthorizationMode),
1282
+ /** The refusal word the store returned, for example `identity_mismatch` or
1283
+ * `request_expired`. These are the closed `CLIENT_AUTHORIZATION_REFUSALS` from
1284
+ * `@capxul/wire` plus the store-internal `fresh_session_required` (ruling R3),
1285
+ * which the continuation maps to `identity_mismatch` on the wire but reports
1286
+ * truthfully here. Kept as `OptionalString` rather than an imported literal
1287
+ * set: this package must not depend on the transport contract. */
1288
+ reason: OptionalString
1289
+ });
1226
1290
  const ProvisioningSafeCreatedProps = Schema.Struct({
1227
1291
  ...TelemetryEnvelopeProps,
1228
1292
  safe_address: OptionalAddress
@@ -1265,6 +1329,12 @@ const BootstrapFailedProps = Schema.Struct({
1265
1329
  * Organization row's chain, the configured token address — never from a label.
1266
1330
  * The verified `organization_id` and its group arrive from the backend
1267
1331
  * attribution, so they are not repeated here.
1332
+ *
1333
+ * D1 (2026-09-10): `asset_id` carries the canonical branded identity the read
1334
+ * resolved, `eip155:<chainId>/erc20:<lowercase-address>`, from the registry
1335
+ * row. `token_address`/`chain_id` are its parts; `currency` is the peg and a
1336
+ * display code. The producer emits the branded id so the live read can be
1337
+ * grouped by ASSET, never by symbol or peg.
1268
1338
  */
1269
1339
  const AccountBalanceReadProps = Schema.Struct({
1270
1340
  ...TelemetryEnvelopeProps,
@@ -1272,6 +1342,7 @@ const AccountBalanceReadProps = Schema.Struct({
1272
1342
  account_kind: OptionalAccountKind,
1273
1343
  chain_id: OptionalChainId,
1274
1344
  token_address: OptionalAddress,
1345
+ asset_id: OptionalString,
1275
1346
  currency: OptionalCurrencyCode,
1276
1347
  balance_bucket: OptionalBalanceBucket,
1277
1348
  durationMs: OptionalDurationMs
@@ -1740,6 +1811,30 @@ const AuthSignedOutTelemetryEventSchema = Schema.Struct({
1740
1811
  name: Schema.Literal("auth_signed_out"),
1741
1812
  props: AuthSignedOutProps
1742
1813
  });
1814
+ const NativeAuthorizationStartedTelemetryEventSchema = Schema.Struct({
1815
+ name: Schema.Literal("native_authorization_started"),
1816
+ props: NativeAuthorizationStartedProps
1817
+ });
1818
+ const NativeAuthorizationReviewedTelemetryEventSchema = Schema.Struct({
1819
+ name: Schema.Literal("native_authorization_reviewed"),
1820
+ props: NativeAuthorizationReviewedProps
1821
+ });
1822
+ const NativeAuthorizationAcceptedTelemetryEventSchema = Schema.Struct({
1823
+ name: Schema.Literal("native_authorization_accepted"),
1824
+ props: NativeAuthorizationAcceptedProps
1825
+ });
1826
+ const NativeAuthorizationDeniedTelemetryEventSchema = Schema.Struct({
1827
+ name: Schema.Literal("native_authorization_denied"),
1828
+ props: NativeAuthorizationDeniedProps
1829
+ });
1830
+ const NativeAuthorizationConnectedTelemetryEventSchema = Schema.Struct({
1831
+ name: Schema.Literal("native_authorization_connected"),
1832
+ props: NativeAuthorizationConnectedProps
1833
+ });
1834
+ const NativeAuthorizationFailedTelemetryEventSchema = Schema.Struct({
1835
+ name: Schema.Literal("native_authorization_failed"),
1836
+ props: NativeAuthorizationFailedProps
1837
+ });
1743
1838
  const OnboardingIntentSelectedTelemetryEventSchema = Schema.Struct({
1744
1839
  name: Schema.Literal("onboarding_intent_selected"),
1745
1840
  props: OnboardingIntentSelectedProps
@@ -1994,12 +2089,18 @@ const CLI_COMMAND_NAMES = [
1994
2089
  "telemetry.status",
1995
2090
  "telemetry.enable",
1996
2091
  "telemetry.disable",
2092
+ "auth",
2093
+ "auth.login",
2094
+ "auth.signup",
2095
+ "auth.status",
2096
+ "auth.logout",
1997
2097
  "unknown"
1998
2098
  ];
1999
2099
  const CLI_CAPABILITIES = [
2000
2100
  "cli",
2001
2101
  "diagnostics",
2002
- "collection"
2102
+ "collection",
2103
+ "authentication"
2003
2104
  ];
2004
2105
  const CLI_INVOCATION_KINDS = [
2005
2106
  "command",
@@ -2017,8 +2118,9 @@ const CliInvocationProps = {
2017
2118
  capability: Schema.Literals(CLI_CAPABILITIES),
2018
2119
  invocation_kind: Schema.Literals(CLI_INVOCATION_KINDS),
2019
2120
  invocation_id: Schema.String.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/u)),
2020
- cli_identity_kind: Schema.optional(Schema.Literal("anonymous")),
2121
+ cli_identity_kind: Schema.optional(Schema.Literals(["anonymous", "identified"])),
2021
2122
  anonymous_id: Schema.optional(Schema.String.check(Schema.isPattern(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/u))),
2123
+ auth_user_id: Schema.optional(Schema.String.check(Schema.isPattern(/^[^\s]{1,256}$/u))),
2022
2124
  occurred_at: Schema.Number,
2023
2125
  cli_version: CliRelease,
2024
2126
  sdk_version: CliRelease,
@@ -2419,6 +2521,12 @@ const TELEMETRY_EVENT_SCHEMAS = {
2419
2521
  auth_failed: AuthFailedTelemetryEventSchema,
2420
2522
  identity_refused: IdentityRefusedTelemetryEventSchema,
2421
2523
  auth_signed_out: AuthSignedOutTelemetryEventSchema,
2524
+ native_authorization_started: NativeAuthorizationStartedTelemetryEventSchema,
2525
+ native_authorization_reviewed: NativeAuthorizationReviewedTelemetryEventSchema,
2526
+ native_authorization_accepted: NativeAuthorizationAcceptedTelemetryEventSchema,
2527
+ native_authorization_denied: NativeAuthorizationDeniedTelemetryEventSchema,
2528
+ native_authorization_connected: NativeAuthorizationConnectedTelemetryEventSchema,
2529
+ native_authorization_failed: NativeAuthorizationFailedTelemetryEventSchema,
2422
2530
  onboarding_intent_selected: OnboardingIntentSelectedTelemetryEventSchema,
2423
2531
  onboarding_profile_submitted: OnboardingProfileSubmittedTelemetryEventSchema,
2424
2532
  onboarding_organization_submitted: OnboardingOrganizationSubmittedTelemetryEventSchema,
@@ -3075,4 +3183,4 @@ function rotr(value, bits) {
3075
3183
  return value >>> bits | value << 32 - bits;
3076
3184
  }
3077
3185
  //#endregion
3078
- export { OrgCreatedTelemetryEventSchema as $, CAPXUL_OPERATIONS as $t, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as A, TELEMETRY_JOURNEYS as At, MemberActivationFailedTelemetryEventSchema as B, createPostHogBrowserPageviewTracker as Bt, CliCommandCompletedTelemetryEventSchema as C, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Ct, ContactRelationshipChangedTelemetryEventSchema as D, SYNCABLE_CAPXUL_ENVS as Dt, CliFirstUsedTelemetryEventSchema as E, ResponseHeadersSchema as Et, IdentityRefusedTelemetryEventSchema as F, UiInvoiceStepCompletedTelemetryEventSchema as Ft, MovementScanWindowTelemetryEventSchema as G, productAppAnalytics as Gt, MemberActivationStartedTelemetryEventSchema as H, initializeCapxulBrowserAnalytics as Ht, InMemoryTelemetryBusAdapter as I, UiPayrollActionCompletedTelemetryEventSchema as It, OnboardingOrganizationSubmittedTelemetryEventSchema as J, sanitizePostHogBrowserEvent as Jt, OnboardingDashboardReachedTelemetryEventSchema as K, redactTelemetryEvent as Kt, IndexerDriftCorrectedTelemetryEventSchema as L, UiReceiveStepCompletedTelemetryEventSchema as Lt, FaucetConfirmedTelemetryEventSchema as M, UiAccessStepCompletedTelemetryEventSchema as Mt, FaucetFailedTelemetryEventSchema as N, UiActivityActionCompletedTelemetryEventSchema as Nt, DepositInitiatedTelemetryEventSchema as O, TELEMETRY_EVENT_NAMES as Ot, FaucetRequestedTelemetryEventSchema as P, UiContactActionCompletedTelemetryEventSchema as Pt, OrgCreateStartedTelemetryEventSchema as Q, utilityAppAnalytics as Qt, InvoiceIssuedTelemetryEventSchema as R, UiTreasuryStepCompletedTelemetryEventSchema as Rt, ChainUpstreamSchema as S, ProvisioningSafeCreatedTelemetryEventSchema as St, CliDiagnosticCompletedTelemetryEventSchema as T, RecordingTelemetryAdapter as Tt, MovementScanCheckpointTelemetryEventSchema as U, initializePostHogBrowserAnalytics as Ut, MemberActivationReadyTelemetryEventSchema as V, getTrackHandler as Vt, MovementScanIncidentTelemetryEventSchema as W, maskCapturedNetworkRequest as Wt, OperationRetriedTelemetryEventSchema as X, stampTelemetryEnvelope as Xt, OnboardingProfileSubmittedTelemetryEventSchema as Y, setTrackHandler as Yt, OrgCreateFailedTelemetryEventSchema as Z, track as Zt, CLI_COMMAND_NAMES as _, PayrollGroupChangedTelemetryEventSchema as _t, AuthFailedTelemetryEventSchema as a, redactSecrets as an, OrgSafeConfirmedTelemetryEventSchema as at, ChainAttemptSchema as b, PostHogTelemetryAdapter as bt, AuthOtpRequestedTelemetryEventSchema as c, OrganizationCreationReadyTelemetryEventSchema as ct, BROWSER_GATED_TELEMETRY_EVENTS as d, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as dt, isCapxulOperation as en, OrgInviteAcceptedTelemetryEventSchema as et, BootstrapFailedTelemetryEventSchema as f, PaymentFailedTelemetryEventSchema as ft, CLI_CAPABILITIES as g, PaymentVerificationRetryTelemetryEventSchema as gt, CAPXUL_ENVS as h, PaymentSettledTelemetryEventSchema as ht, ActivityAnnotationSavedTelemetryEventSchema as i, isCredentialField as in, OrgRolesSeededTelemetryEventSchema as it, FailureModeSchema as j, TELEMETRY_PRODUCERS as jt, DepositSettledTelemetryEventSchema as k, TELEMETRY_EVENT_SCHEMAS as kt, AuthSignedOutTelemetryEventSchema as l, OrganizationCreationStartedTelemetryEventSchema as lt, BundlerErrorTelemetryEventSchema as m, PaymentLifecycleTransitionTelemetryEventSchema as mt, AccountBalanceFailedTelemetryEventSchema as n, CAPXUL_ERROR_CODES as nn, OrgInviteProgressedTelemetryEventSchema as nt, AuthOtpDeliveredTelemetryEventSchema as o, redactUrlSecrets as on, OrgSafeCreatedTelemetryEventSchema as ot, BootstrapResolvedTelemetryEventSchema as p, PaymentInitiatedTelemetryEventSchema as pt, OnboardingIntentSelectedTelemetryEventSchema as q, redactTelemetryProps as qt, AccountBalanceReadTelemetryEventSchema as r, FAILURE_MODES as rn, OrgInviteSentTelemetryEventSchema as rt, AuthOtpExpiredTelemetryEventSchema as s, OrganizationCreationFailedTelemetryEventSchema as st, AccessRecoveryCompletedTelemetryEventSchema as t, normalizeCapxulOperation as tn, OrgInviteExpiredTelemetryEventSchema as tt, AuthVerifiedTelemetryEventSchema as u, PII as ut, CLI_INVOCATION_KINDS as v, PayrollRunTransitionedTelemetryEventSchema as vt, CliCommandStartedTelemetryEventSchema as w, ReceiptPendingTelemetryEventSchema as wt, ChainUpstreamFallbackTelemetryEventSchema as x, ProvisioningSafeConfirmedTelemetryEventSchema as xt, CONTRACT_FIRST_TELEMETRY_EVENTS as y, PermissionMirrorVerificationTelemetryEventSchema as yt, InvoiceRequestTransitionedTelemetryEventSchema as z, createCapxulBeforeSend as zt };
3186
+ export { OnboardingIntentSelectedTelemetryEventSchema as $, redactTelemetryProps as $t, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as A, ReceiptPendingTelemetryEventSchema as At, MemberActivationFailedTelemetryEventSchema as B, UiContactActionCompletedTelemetryEventSchema as Bt, CliCommandCompletedTelemetryEventSchema as C, PayrollGroupChangedTelemetryEventSchema as Ct, ContactRelationshipChangedTelemetryEventSchema as D, ProvisioningSafeConfirmedTelemetryEventSchema as Dt, CliFirstUsedTelemetryEventSchema as E, PostHogTelemetryAdapter as Et, IdentityRefusedTelemetryEventSchema as F, TELEMETRY_EVENT_SCHEMAS as Ft, MovementScanWindowTelemetryEventSchema as G, createCapxulBeforeSend as Gt, MemberActivationStartedTelemetryEventSchema as H, UiPayrollActionCompletedTelemetryEventSchema as Ht, InMemoryTelemetryBusAdapter as I, TELEMETRY_JOURNEYS as It, NativeAuthorizationDeniedTelemetryEventSchema as J, initializeCapxulBrowserAnalytics as Jt, NativeAuthorizationAcceptedTelemetryEventSchema as K, createPostHogBrowserPageviewTracker as Kt, IndexerDriftCorrectedTelemetryEventSchema as L, TELEMETRY_PRODUCERS as Lt, FaucetConfirmedTelemetryEventSchema as M, ResponseHeadersSchema as Mt, FaucetFailedTelemetryEventSchema as N, SYNCABLE_CAPXUL_ENVS as Nt, DepositInitiatedTelemetryEventSchema as O, ProvisioningSafeCreatedTelemetryEventSchema as Ot, FaucetRequestedTelemetryEventSchema as P, TELEMETRY_EVENT_NAMES as Pt, OnboardingDashboardReachedTelemetryEventSchema as Q, redactTelemetryEvent as Qt, InvoiceIssuedTelemetryEventSchema as R, UiAccessStepCompletedTelemetryEventSchema as Rt, ChainUpstreamSchema as S, PaymentVerificationRetryTelemetryEventSchema as St, CliDiagnosticCompletedTelemetryEventSchema as T, PermissionMirrorVerificationTelemetryEventSchema as Tt, MovementScanCheckpointTelemetryEventSchema as U, UiReceiveStepCompletedTelemetryEventSchema as Ut, MemberActivationReadyTelemetryEventSchema as V, UiInvoiceStepCompletedTelemetryEventSchema as Vt, MovementScanIncidentTelemetryEventSchema as W, UiTreasuryStepCompletedTelemetryEventSchema as Wt, NativeAuthorizationReviewedTelemetryEventSchema as X, maskCapturedNetworkRequest as Xt, NativeAuthorizationFailedTelemetryEventSchema as Y, initializePostHogBrowserAnalytics as Yt, NativeAuthorizationStartedTelemetryEventSchema as Z, productAppAnalytics as Zt, CLI_COMMAND_NAMES as _, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as _t, AuthFailedTelemetryEventSchema as a, CAPXUL_OPERATIONS as an, OrgCreatedTelemetryEventSchema as at, ChainAttemptSchema as b, PaymentLifecycleTransitionTelemetryEventSchema as bt, AuthOtpRequestedTelemetryEventSchema as c, CAPXUL_ERROR_CODES as cn, OrgInviteProgressedTelemetryEventSchema as ct, BROWSER_GATED_TELEMETRY_EVENTS as d, redactSecrets as dn, OrgSafeConfirmedTelemetryEventSchema as dt, sanitizePostHogBrowserEvent as en, OnboardingOrganizationSubmittedTelemetryEventSchema as et, BootstrapFailedTelemetryEventSchema as f, redactUrlSecrets as fn, OrgSafeCreatedTelemetryEventSchema as ft, CLI_CAPABILITIES as g, PII as gt, CAPXUL_ENVS as h, OrganizationCreationStartedTelemetryEventSchema as ht, ActivityAnnotationSavedTelemetryEventSchema as i, utilityAppAnalytics as in, OrgCreateStartedTelemetryEventSchema as it, FailureModeSchema as j, RecordingTelemetryAdapter as jt, DepositSettledTelemetryEventSchema as k, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as kt, AuthSignedOutTelemetryEventSchema as l, FAILURE_MODES as ln, OrgInviteSentTelemetryEventSchema as lt, BundlerErrorTelemetryEventSchema as m, OrganizationCreationReadyTelemetryEventSchema as mt, AccountBalanceFailedTelemetryEventSchema as n, stampTelemetryEnvelope as nn, OperationRetriedTelemetryEventSchema as nt, AuthOtpDeliveredTelemetryEventSchema as o, isCapxulOperation as on, OrgInviteAcceptedTelemetryEventSchema as ot, BootstrapResolvedTelemetryEventSchema as p, OrganizationCreationFailedTelemetryEventSchema as pt, NativeAuthorizationConnectedTelemetryEventSchema as q, getTrackHandler as qt, AccountBalanceReadTelemetryEventSchema as r, track as rn, OrgCreateFailedTelemetryEventSchema as rt, AuthOtpExpiredTelemetryEventSchema as s, normalizeCapxulOperation as sn, OrgInviteExpiredTelemetryEventSchema as st, AccessRecoveryCompletedTelemetryEventSchema as t, setTrackHandler as tn, OnboardingProfileSubmittedTelemetryEventSchema as tt, AuthVerifiedTelemetryEventSchema as u, isCredentialField as un, OrgRolesSeededTelemetryEventSchema as ut, CLI_INVOCATION_KINDS as v, PaymentFailedTelemetryEventSchema as vt, CliCommandStartedTelemetryEventSchema as w, PayrollRunTransitionedTelemetryEventSchema as wt, ChainUpstreamFallbackTelemetryEventSchema as x, PaymentSettledTelemetryEventSchema as xt, CONTRACT_FIRST_TELEMETRY_EVENTS as y, PaymentInitiatedTelemetryEventSchema as yt, InvoiceRequestTransitionedTelemetryEventSchema as z, UiActivityActionCompletedTelemetryEventSchema as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.20.0-beta.4",
3
+ "version": "4.20.0-beta.5",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,9 +37,9 @@
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/errors": "0.3.0",
41
40
  "@capxul/types": "0.3.0",
42
- "@capxul/typescript-config": "0.0.0"
41
+ "@capxul/typescript-config": "0.0.0",
42
+ "@capxul/errors": "0.3.0"
43
43
  },
44
44
  "scripts": {
45
45
  "check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",