@capxul/observability 4.2.0-rc.14 → 4.2.0-rc.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "source": {
3
- "commit": "ad9386dd8d539fea17964d05292fc0ca16495d2f",
4
- "tree": "87b1723ed13d7be72487cbcbbfded24b0ac850e5",
3
+ "commit": "b2dff9052ea3f3a55dfca98530c02b4ac3bcfa96",
4
+ "tree": "9fc0a21bc2cb477c62dd9f5c44c4977d74548d94",
5
5
  "branch": "codex/programme-rc",
6
6
  "repository": "https://github.com/Xelmar-tech/infrastructure",
7
7
  "lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
8
8
  },
9
9
  "name": "@capxul/observability",
10
- "version": "4.2.0-rc.14"
10
+ "version": "4.2.0-rc.15"
11
11
  }
package/dist/index.d.mts CHANGED
@@ -1235,6 +1235,9 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
1235
1235
  readonly correlation_id: Schema.optional<Schema.String>;
1236
1236
  readonly sdk_version: Schema.optional<Schema.String>;
1237
1237
  readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
1238
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
1239
+ readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
1240
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1238
1241
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
1239
1242
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
1240
1243
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
@@ -2972,6 +2975,9 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2972
2975
  readonly correlation_id: Schema.optional<Schema.String>;
2973
2976
  readonly sdk_version: Schema.optional<Schema.String>;
2974
2977
  readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
2978
+ readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
2979
+ readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
2980
+ readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2975
2981
  readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
2976
2982
  readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
2977
2983
  readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
package/dist/index.mjs CHANGED
@@ -740,6 +740,10 @@ const OptionalAccountId = Schema.optional(AccountIdSchema);
740
740
  const OptionalWeiAmount = Schema.optional(WeiAmountSchema);
741
741
  const OptionalCurrencyCode = Schema.optional(CurrencyCodeSchema);
742
742
  const OptionalBalanceBucket = Schema.optional(BalanceBucketSchema);
743
+ /** Which Safe a money record is about. Declared here so the money-domain
744
+ * props below can name it as well as the UI-step props further down. */
745
+ const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
746
+ const OptionalAccountKind = Schema.optional(AccountKindSchema);
743
747
  const OptionalAddress = Schema.optional(AddressSchema);
744
748
  const OptionalAppId = Schema.optional(AppIdSchema);
745
749
  const OptionalBlockNumber = Schema.optional(BlockNumberSchema);
@@ -935,9 +939,22 @@ const BootstrapFailedProps = Schema.Struct({
935
939
  reason: OptionalString,
936
940
  target_host: OptionalString
937
941
  });
942
+ /**
943
+ * R08 (#1966): which Safe was read, on which chain, of which token. `currency`
944
+ * is the DISPLAY code the surface shows ("USD"); it never says which ERC-20 the
945
+ * `balanceOf` actually hit, so a reader could not tell a treasury read from a
946
+ * personal one, nor USDX from any other dollar-labelled token. The producer
947
+ * takes each of these from the authority that already decided it — the verified
948
+ * Organization row's chain, the configured token address — never from a label.
949
+ * The verified `organization_id` and its group arrive from the backend
950
+ * attribution, so they are not repeated here.
951
+ */
938
952
  const AccountBalanceReadProps = Schema.Struct({
939
953
  ...TelemetryEnvelopeProps,
940
954
  account_id: OptionalAccountId,
955
+ account_kind: OptionalAccountKind,
956
+ chain_id: OptionalChainId,
957
+ token_address: OptionalAddress,
941
958
  currency: OptionalCurrencyCode,
942
959
  balance_bucket: OptionalBalanceBucket,
943
960
  durationMs: OptionalDurationMs
@@ -1581,7 +1598,6 @@ const IndexerDriftCorrectedTelemetryEventSchema = Schema.Struct({
1581
1598
  });
1582
1599
  /** The one spelling of "whose scope did this happen in" across every surface. */
1583
1600
  const ScopeKindSchema = Schema.Literals(["account", "organization"]);
1584
- const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
1585
1601
  const OptionalReasonCode = Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES));
1586
1602
  const ActivityReferenceProps = {
1587
1603
  reference_kind: Schema.Literals(["payment", "movement"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.2.0-rc.14",
3
+ "version": "4.2.0-rc.15",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,8 +38,8 @@
38
38
  "vite-plus": "0.3.0",
39
39
  "vitest": "4.1.11",
40
40
  "@capxul/errors": "0.3.0",
41
- "@capxul/types": "0.3.0",
42
- "@capxul/typescript-config": "0.0.0"
41
+ "@capxul/typescript-config": "0.0.0",
42
+ "@capxul/types": "0.3.0"
43
43
  },
44
44
  "scripts": {
45
45
  "check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",