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

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.
@@ -71,7 +71,7 @@ declare const flushEngineeringTelemetry: Effect.Effect<void, never, OtlpExporter
71
71
  declare const EngineeringLog_base: Context.ServiceClass<EngineeringLog, "capxul/EngineeringLog", Logger.Logger<unknown, void>>;
72
72
  declare class EngineeringLog extends EngineeringLog_base {}
73
73
  /** Deliver an owned engineering record without changing the caller's console verbosity. */
74
- declare const logEngineeringInfo: (message: string, attributes: Readonly<Record<string, unknown>>) => Effect.Effect<void, never, EngineeringLog>;
74
+ declare const logEngineeringInfo: (message: string, attributes: Readonly<Record<string, unknown>>) => Effect.Effect<void, never, never>;
75
75
  /** Shared browser/server OTLP layer. OtlpLogger merges with incumbent loggers once. */
76
76
  declare const makeEngineeringTelemetryLayer: (config: EngineeringTelemetryConfig) => Layer.Layer<EngineeringLog | OtlpExporter.Flusher, never, never>;
77
77
  //#endregion
@@ -1,4 +1,4 @@
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";
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-CQ3cNORQ.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";
@@ -137,7 +137,7 @@ const attributes = (input, limit = 32) => {
137
137
  } catch {}
138
138
  return out;
139
139
  };
140
- const terminalName = (name) => name === "cli.command.completed" || CLI_COMMAND_NAMES.some((command) => name === `cli.command.${command}`);
140
+ const terminalName = (name) => name === "cli.command.completed" || name === "cli.wallet.step" || CLI_COMMAND_NAMES.some((command) => name === `cli.command.${command}`);
141
141
  /** Native exporters retain their serialization and scheduling; this owns admission only. */
142
142
  function cliEngineeringDelivery(budget, ownsMetrics) {
143
143
  const closed = Deferred.makeUnsafe();
@@ -293,7 +293,7 @@ function cliEngineeringDelivery(budget, ownsMetrics) {
293
293
  const releases = logs.splice(0);
294
294
  try {
295
295
  const body = delegate.logs(data);
296
- if (data.resourceLogs.some((r) => r.scopeLogs.some((s) => s.logRecords?.some((l) => l.body?.stringValue === "cli.command.completed")))) terminalBodies.add(body);
296
+ if (data.resourceLogs.some((r) => r.scopeLogs.some((s) => s.logRecords?.some((l) => terminalName(l.body?.stringValue ?? ""))))) terminalBodies.add(body);
297
297
  holdBody(body, releases);
298
298
  return body;
299
299
  } catch (error) {
@@ -527,7 +527,8 @@ const MINIMAL_LOG_NAMES = /* @__PURE__ */ new Set([
527
527
  "convex.connection.changed",
528
528
  "convex.action.connection_lost",
529
529
  "cli.command.completed",
530
- "cli.sdk.operation.failed"
530
+ "cli.sdk.operation.failed",
531
+ "cli.wallet.step"
531
532
  ]);
532
533
  const MINIMAL_ERROR_CODES = /* @__PURE__ */ new Set([
533
534
  ...CAPXUL_ERROR_CODES,
@@ -546,7 +547,14 @@ const MINIMAL_NUMBERS = /* @__PURE__ */ new Set([
546
547
  "http_status",
547
548
  "rpc.code",
548
549
  "connection_count",
549
- "connection_retries"
550
+ "connection_retries",
551
+ "elapsed_ms",
552
+ "total_ms",
553
+ "token_calls",
554
+ "call",
555
+ "attempt",
556
+ "bridge_protocol_version",
557
+ "httpStatus"
550
558
  ]);
551
559
  const MINIMAL_CORRELATIONS = /* @__PURE__ */ new Set([
552
560
  "correlation_id",
@@ -581,6 +589,30 @@ const MINIMAL_ENUM_VALUES = /* @__PURE__ */ new Map([
581
589
  ["command", CLI_COMMAND_NAMES],
582
590
  ["capability", CLI_CAPABILITIES],
583
591
  ["invocation_kind", CLI_INVOCATION_KINDS],
592
+ ["diagnostic_scope", [
593
+ "openfort.step",
594
+ "openfort.token",
595
+ "openfort.encryptionSession",
596
+ "openfort.embeddedState",
597
+ "openfort.storageCleared",
598
+ "openfort.configure",
599
+ "openfort.get",
600
+ "openfort.address",
601
+ "openfort.staleCacheHeal",
602
+ "openfort.signerRecovery",
603
+ "openfort.signerStatusListener"
604
+ ]],
605
+ ["step", [
606
+ "initialize",
607
+ "token",
608
+ "encryptionSession",
609
+ "embeddedState",
610
+ "configure",
611
+ "get",
612
+ "healStaleCache",
613
+ "walletReady"
614
+ ]],
615
+ ["provider", ["better-auth", "oidc"]],
584
616
  ["cli_identity_kind", ["anonymous", "identified"]],
585
617
  ["output_mode", ["human", "json"]],
586
618
  ["unit", [
@@ -803,7 +835,7 @@ var EngineeringLog = class extends Context.Service()("capxul/EngineeringLog") {}
803
835
  /** Deliver an owned engineering record without changing the caller's console verbosity. */
804
836
  const logEngineeringInfo = (message, attributes) => {
805
837
  const record = Effect.logInfo(message).pipe(Effect.annotateLogs(attributes));
806
- return Effect.flatMap(LogLevel.isEnabled("Info"), (visible) => visible ? record : Effect.flatMap(EngineeringLog, (logger) => record.pipe(Effect.provideService(Logger.CurrentLoggers, /* @__PURE__ */ new Set([logger])), Effect.provideService(References.MinimumLogLevel, "All"))));
838
+ return Effect.flatMap(LogLevel.isEnabled("Info"), (visible) => visible ? record : Effect.flatMap(Effect.serviceOption(EngineeringLog), (logger) => logger._tag === "None" ? Effect.void : record.pipe(Effect.provideService(Logger.CurrentLoggers, /* @__PURE__ */ new Set([logger.value])), Effect.provideService(References.MinimumLogLevel, "All"))));
807
839
  };
808
840
  /** Shared browser/server OTLP layer. OtlpLogger merges with incumbent loggers once. */
809
841
  const makeEngineeringTelemetryLayer = (config) => {
package/dist/index.d.mts CHANGED
@@ -286,7 +286,6 @@ declare const CAPXUL_OPERATIONS: {
286
286
  };
287
287
  readonly holdings: {
288
288
  readonly current: "holdings.current";
289
- readonly primary: "holdings.primary";
290
289
  };
291
290
  readonly indexer: {
292
291
  readonly reconcile: "indexer.reconcile";
@@ -488,6 +487,7 @@ declare const CAPXUL_OPERATIONS: {
488
487
  readonly submitExecution: "payments.submitExecution";
489
488
  };
490
489
  readonly paymentDocuments: {
490
+ readonly get: "paymentDocuments.get";
491
491
  readonly render: "paymentDocuments.render";
492
492
  readonly verify: "paymentDocuments.verify";
493
493
  };
@@ -1389,6 +1389,7 @@ declare const FaucetRequestedTelemetryEventSchema: Schema.Struct<{
1389
1389
  readonly sdk_version: Schema.optional<Schema.String>;
1390
1390
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1391
1391
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1392
+ readonly asset_id: Schema.optional<Schema.String>;
1392
1393
  }>;
1393
1394
  }>;
1394
1395
  declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
@@ -1402,6 +1403,8 @@ declare const FaucetConfirmedTelemetryEventSchema: Schema.Struct<{
1402
1403
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1403
1404
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1404
1405
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
1406
+ readonly asset_id: Schema.optional<Schema.String>;
1407
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1405
1408
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
1406
1409
  }>;
1407
1410
  }>;
@@ -1441,6 +1444,10 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
1441
1444
  readonly server: Schema.optional<Schema.String>;
1442
1445
  }>>;
1443
1446
  readonly reason: Schema.optional<Schema.String>;
1447
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
1448
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1449
+ readonly asset_id: Schema.optional<Schema.String>;
1450
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1444
1451
  }>;
1445
1452
  }>;
1446
1453
  declare const ChainUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
@@ -2020,8 +2027,8 @@ declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
2020
2027
  }>;
2021
2028
  }>;
2022
2029
  /** One completed online CLI diagnostic. No command input or provider text. */
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"];
2030
+ declare const CLI_COMMAND_NAMES: readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"];
2031
+ declare const CLI_CAPABILITIES: readonly ["cli", "diagnostics", "collection", "authentication", "organization"];
2025
2032
  declare const CLI_INVOCATION_KINDS: readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"];
2026
2033
  type CliCommandName = (typeof CLI_COMMAND_NAMES)[number];
2027
2034
  type CliCapability = (typeof CLI_CAPABILITIES)[number];
@@ -2034,8 +2041,8 @@ declare const CliFirstUsedTelemetryEventSchema: Schema.Struct<{
2034
2041
  journey_id: Schema.optional<Schema.String>;
2035
2042
  correlation_id: Schema.optional<Schema.String>;
2036
2043
  schema_version: Schema.Literal<1>;
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"]>;
2044
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2045
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2039
2046
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2040
2047
  invocation_id: Schema.String;
2041
2048
  cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2060,8 +2067,8 @@ declare const CliCommandStartedTelemetryEventSchema: Schema.Struct<{
2060
2067
  readonly journey_id: Schema.optional<Schema.String>;
2061
2068
  readonly correlation_id: Schema.optional<Schema.String>;
2062
2069
  readonly schema_version: Schema.Literal<1>;
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"]>;
2070
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2071
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2065
2072
  readonly invocation_id: Schema.String;
2066
2073
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2067
2074
  readonly anonymous_id: Schema.optional<Schema.String>;
@@ -2086,8 +2093,8 @@ declare const CliCommandCompletedTelemetryEventSchema: Schema.Struct<{
2086
2093
  readonly journey_id: Schema.optional<Schema.String>;
2087
2094
  readonly correlation_id: Schema.optional<Schema.String>;
2088
2095
  readonly schema_version: Schema.Literal<1>;
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"]>;
2096
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2097
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2091
2098
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2092
2099
  readonly invocation_id: Schema.String;
2093
2100
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2723,8 +2730,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2723
2730
  journey_id: Schema.optional<Schema.String>;
2724
2731
  correlation_id: Schema.optional<Schema.String>;
2725
2732
  schema_version: Schema.Literal<1>;
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"]>;
2733
+ command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2734
+ capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2728
2735
  invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2729
2736
  invocation_id: Schema.String;
2730
2737
  cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -2749,8 +2756,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2749
2756
  readonly journey_id: Schema.optional<Schema.String>;
2750
2757
  readonly correlation_id: Schema.optional<Schema.String>;
2751
2758
  readonly schema_version: Schema.Literal<1>;
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"]>;
2759
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2760
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2754
2761
  readonly invocation_id: Schema.String;
2755
2762
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
2756
2763
  readonly anonymous_id: Schema.optional<Schema.String>;
@@ -2775,8 +2782,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2775
2782
  readonly journey_id: Schema.optional<Schema.String>;
2776
2783
  readonly correlation_id: Schema.optional<Schema.String>;
2777
2784
  readonly schema_version: Schema.Literal<1>;
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"]>;
2785
+ readonly command: Schema.Literals<readonly ["capxul", "doctor", "telemetry", "telemetry.status", "telemetry.enable", "telemetry.disable", "auth", "auth.login", "auth.signup", "auth.send", "auth.verify", "auth.profile", "auth.status", "auth.logout", "org", "org.list", "org.use", "org.status", "org.me", "org.members", "org.member", "org.member.get", "org.wait", "org.create", "org.retry", "unknown"]>;
2786
+ readonly capability: Schema.Literals<readonly ["cli", "diagnostics", "collection", "authentication", "organization"]>;
2780
2787
  readonly invocation_kind: Schema.Literals<readonly ["command", "help", "version", "completion", "parse_refusal", "collection_control"]>;
2781
2788
  readonly invocation_id: Schema.String;
2782
2789
  readonly cli_identity_kind: Schema.optional<Schema.Literals<readonly ["anonymous", "identified"]>>;
@@ -3425,6 +3432,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3425
3432
  readonly sdk_version: Schema.optional<Schema.String>;
3426
3433
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3427
3434
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3435
+ readonly asset_id: Schema.optional<Schema.String>;
3428
3436
  }>;
3429
3437
  }>;
3430
3438
  readonly faucet_confirmed: Schema.Struct<{
@@ -3438,6 +3446,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3438
3446
  readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3439
3447
  readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3440
3448
  readonly txHash: Schema.optional<Schema.Codec<TxHash, string, never, never>>;
3449
+ readonly asset_id: Schema.optional<Schema.String>;
3450
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3441
3451
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
3442
3452
  }>;
3443
3453
  }>;
@@ -3477,6 +3487,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3477
3487
  readonly server: Schema.optional<Schema.String>;
3478
3488
  }>>;
3479
3489
  readonly reason: Schema.optional<Schema.String>;
3490
+ readonly amount: Schema.optional<Schema.Codec<WeiAmount, string, never, never>>;
3491
+ readonly chainId: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
3492
+ readonly asset_id: Schema.optional<Schema.String>;
3493
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
3480
3494
  }>;
3481
3495
  }>;
3482
3496
  readonly chain_upstream_fallback: Schema.Struct<{
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
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";
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-CQ3cNORQ.mjs";
2
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 };
@@ -500,10 +500,7 @@ const CAPXUL_OPERATIONS = {
500
500
  removeDestination: "financialOps.removeDestination",
501
501
  verifySettlement: "financialOps.verifySettlement"
502
502
  },
503
- holdings: {
504
- current: "holdings.current",
505
- primary: "holdings.primary"
506
- },
503
+ holdings: { current: "holdings.current" },
507
504
  indexer: { reconcile: "indexer.reconcile" },
508
505
  identity: {
509
506
  accountAt: "identity.AccountAt",
@@ -692,6 +689,7 @@ const CAPXUL_OPERATIONS = {
692
689
  submitExecution: "payments.submitExecution"
693
690
  },
694
691
  paymentDocuments: {
692
+ get: "paymentDocuments.get",
695
693
  render: "paymentDocuments.render",
696
694
  verify: "paymentDocuments.verify"
697
695
  },
@@ -1324,7 +1322,7 @@ const BootstrapFailedProps = Schema.Struct({
1324
1322
  * R08 (#1966): which Safe was read, on which chain, of which token. `currency`
1325
1323
  * is the DISPLAY code the surface shows ("USD"); it never says which ERC-20 the
1326
1324
  * `balanceOf` actually hit, so a reader could not tell a treasury read from a
1327
- * personal one, nor USDX from any other dollar-labelled token. The producer
1325
+ * personal one, nor one token from another with the same fiat peg. The producer
1328
1326
  * takes each of these from the authority that already decided it — the verified
1329
1327
  * Organization row's chain, the configured token address — never from a label.
1330
1328
  * The verified `organization_id` and its group arrive from the backend
@@ -1355,19 +1353,26 @@ const AccountBalanceFailedProps = Schema.Struct({
1355
1353
  const FaucetRequestedProps = Schema.Struct({
1356
1354
  ...TelemetryEnvelopeProps,
1357
1355
  amount: OptionalWeiAmount,
1358
- chainId: OptionalChainId
1356
+ chainId: OptionalChainId,
1357
+ asset_id: OptionalString
1359
1358
  });
1360
1359
  const FaucetConfirmedProps = Schema.Struct({
1361
1360
  ...TelemetryEnvelopeProps,
1362
1361
  amount: OptionalWeiAmount,
1363
1362
  chainId: OptionalChainId,
1364
1363
  txHash: OptionalTxHash,
1364
+ asset_id: OptionalString,
1365
+ token_address: OptionalAddress,
1365
1366
  durationMs: OptionalDurationMs
1366
1367
  });
1367
1368
  const FaucetFailedProps = Schema.Struct({
1368
1369
  ...TelemetryEnvelopeProps,
1369
1370
  ...ChainCauseTelemetryProps,
1370
- reason: OptionalString
1371
+ reason: OptionalString,
1372
+ amount: OptionalWeiAmount,
1373
+ chainId: OptionalChainId,
1374
+ asset_id: OptionalString,
1375
+ token_address: OptionalAddress
1371
1376
  });
1372
1377
  const ChainServiceSchema = Schema.Literals(["aa-gateway", "backend"]);
1373
1378
  const ChainUpstreamFallbackProps = Schema.Struct({
@@ -2092,15 +2097,30 @@ const CLI_COMMAND_NAMES = [
2092
2097
  "auth",
2093
2098
  "auth.login",
2094
2099
  "auth.signup",
2100
+ "auth.send",
2101
+ "auth.verify",
2102
+ "auth.profile",
2095
2103
  "auth.status",
2096
2104
  "auth.logout",
2105
+ "org",
2106
+ CAPXUL_OPERATIONS.org.list,
2107
+ "org.use",
2108
+ "org.status",
2109
+ CAPXUL_OPERATIONS.org.me,
2110
+ CAPXUL_OPERATIONS.org.members,
2111
+ "org.member",
2112
+ "org.member.get",
2113
+ "org.wait",
2114
+ CAPXUL_OPERATIONS.org.create,
2115
+ CAPXUL_OPERATIONS.org.retry,
2097
2116
  "unknown"
2098
2117
  ];
2099
2118
  const CLI_CAPABILITIES = [
2100
2119
  "cli",
2101
2120
  "diagnostics",
2102
2121
  "collection",
2103
- "authentication"
2122
+ "authentication",
2123
+ "organization"
2104
2124
  ];
2105
2125
  const CLI_INVOCATION_KINDS = [
2106
2126
  "command",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.20.0-beta.5",
3
+ "version": "4.20.0-beta.6",
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",
40
41
  "@capxul/types": "0.3.0",
41
- "@capxul/typescript-config": "0.0.0",
42
- "@capxul/errors": "0.3.0"
42
+ "@capxul/typescript-config": "0.0.0"
43
43
  },
44
44
  "scripts": {
45
45
  "check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",