@capxul/observability 4.2.0-rc.10 → 4.2.0-rc.12

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": "a7e55e5f1c2af5567a8b285a4ef70b8b5a3289f6",
4
- "tree": "91bf1b080c0006fe30131711c13c843afd627158",
3
+ "commit": "fd5b4d0f124c75f609e469b8673c61f84253c0dc",
4
+ "tree": "d61f0f6b0c83dfc2d405ffc6b55eecf2e9d80f2d",
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.10"
10
+ "version": "4.2.0-rc.12"
11
11
  }
package/dist/index.d.mts CHANGED
@@ -468,6 +468,8 @@ declare const CAPXUL_OPERATIONS: {
468
468
  };
469
469
  readonly payroll: {
470
470
  readonly authorizeRun: "payroll.authorizeRun";
471
+ readonly emitGroupChanged: "payroll.emitGroupChanged";
472
+ readonly emitRunTransitioned: "payroll.emitRunTransitioned";
471
473
  readonly groups: {
472
474
  readonly access: "payroll.groups";
473
475
  readonly list: "payroll.groups.list";
@@ -1812,6 +1814,20 @@ declare const PermissionMirrorVerificationTelemetryEventSchema: Schema.Struct<{
1812
1814
  */
1813
1815
  readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
1814
1816
  readonly command_id: Schema.optional<Schema.String>;
1817
+ /**
1818
+ * #1961 R03. The authorized stored row names the Permission it changed; the
1819
+ * verified receipt names the chain facts that prove it. Every field is
1820
+ * optional because a pending or provider-failed verification has neither an
1821
+ * application result nor a receipt to report.
1822
+ */
1823
+ readonly permission_id: Schema.optional<Schema.String>;
1824
+ readonly permission_assignment_id: Schema.optional<Schema.String>;
1825
+ readonly permission_operation: Schema.optional<Schema.Literals<readonly ["create", "change", "assign", "revoke", "replace"]>>;
1826
+ readonly revision: Schema.optional<Schema.Number>;
1827
+ readonly user_op_hash: Schema.optional<Schema.String>;
1828
+ readonly transaction_hash: Schema.optional<Schema.String>;
1829
+ readonly block_number: Schema.optional<Schema.Number>;
1830
+ readonly log_index: Schema.optional<Schema.Number>;
1815
1831
  }>;
1816
1832
  }>;
1817
1833
  declare const MovementScanWindowTelemetryEventSchema: Schema.Struct<{
@@ -2162,6 +2178,12 @@ declare const PayrollRunTransitionedTelemetryEventSchema: Schema.Struct<{
2162
2178
  readonly organization_id: Schema.Codec<string, string, never, never>;
2163
2179
  readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2164
2180
  readonly run_id: Schema.String;
2181
+ /**
2182
+ * The `paymentCommands` row at `payrollRuns.batchRef` — the durable owner of
2183
+ * this run's Payment membership. `payment_count` counts THAT command's
2184
+ * `paymentIds`, so an unrelated Payment quoting the run id changes neither.
2185
+ */
2186
+ readonly command_id: Schema.optional<Schema.String>;
2165
2187
  readonly payment_count: Schema.optional<Schema.Number>;
2166
2188
  readonly occurred_at: Schema.Number;
2167
2189
  }>;
@@ -2357,6 +2379,12 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2357
2379
  readonly organization_id: Schema.Codec<string, string, never, never>;
2358
2380
  readonly transition: Schema.Literals<readonly ["prepared", "authorized", "settled"]>;
2359
2381
  readonly run_id: Schema.String;
2382
+ /**
2383
+ * The `paymentCommands` row at `payrollRuns.batchRef` — the durable owner of
2384
+ * this run's Payment membership. `payment_count` counts THAT command's
2385
+ * `paymentIds`, so an unrelated Payment quoting the run id changes neither.
2386
+ */
2387
+ readonly command_id: Schema.optional<Schema.String>;
2360
2388
  readonly payment_count: Schema.optional<Schema.Number>;
2361
2389
  readonly occurred_at: Schema.Number;
2362
2390
  }>;
@@ -3484,6 +3512,20 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
3484
3512
  */
3485
3513
  readonly application_result: Schema.optional<Schema.Literals<readonly ["applied", "replayed", "conflicting_replay", "revision_mismatch"]>>;
3486
3514
  readonly command_id: Schema.optional<Schema.String>;
3515
+ /**
3516
+ * #1961 R03. The authorized stored row names the Permission it changed; the
3517
+ * verified receipt names the chain facts that prove it. Every field is
3518
+ * optional because a pending or provider-failed verification has neither an
3519
+ * application result nor a receipt to report.
3520
+ */
3521
+ readonly permission_id: Schema.optional<Schema.String>;
3522
+ readonly permission_assignment_id: Schema.optional<Schema.String>;
3523
+ readonly permission_operation: Schema.optional<Schema.Literals<readonly ["create", "change", "assign", "revoke", "replace"]>>;
3524
+ readonly revision: Schema.optional<Schema.Number>;
3525
+ readonly user_op_hash: Schema.optional<Schema.String>;
3526
+ readonly transaction_hash: Schema.optional<Schema.String>;
3527
+ readonly block_number: Schema.optional<Schema.Number>;
3528
+ readonly log_index: Schema.optional<Schema.Number>;
3487
3529
  }>;
3488
3530
  }>;
3489
3531
  readonly movement_scan_window: Schema.Struct<{
@@ -3539,7 +3581,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
3539
3581
  * A domain node removes its entry when it adds the producer. The telemetry
3540
3582
  * gate rejects an entry that has a producer.
3541
3583
  */
3542
- declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly ["access_recovery_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "payroll_group_changed", "payroll_run_transitioned"];
3584
+ declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly ["org_invite_progressed", "invoice_issued", "invoice_request_transitioned"];
3543
3585
  /**
3544
3586
  * Catalog events whose product mapper remains gated on the #1150 frontend
3545
3587
  * adoption. L1 S1 removes their retired SDK-flow producers without inventing
package/dist/index.mjs CHANGED
@@ -361,6 +361,8 @@ const CAPXUL_OPERATIONS = {
361
361
  recipient: { resolve: "recipient.resolve" },
362
362
  payroll: {
363
363
  authorizeRun: "payroll.authorizeRun",
364
+ emitGroupChanged: "payroll.emitGroupChanged",
365
+ emitRunTransitioned: "payroll.emitRunTransitioned",
364
366
  groups: {
365
367
  access: "payroll.groups",
366
368
  list: "payroll.groups.list",
@@ -1298,7 +1300,27 @@ const PermissionMirrorVerificationProps = Schema.Struct({
1298
1300
  "conflicting_replay",
1299
1301
  "revision_mismatch"
1300
1302
  ])),
1301
- command_id: OptionalString
1303
+ command_id: OptionalString,
1304
+ /**
1305
+ * #1961 R03. The authorized stored row names the Permission it changed; the
1306
+ * verified receipt names the chain facts that prove it. Every field is
1307
+ * optional because a pending or provider-failed verification has neither an
1308
+ * application result nor a receipt to report.
1309
+ */
1310
+ permission_id: OptionalString,
1311
+ permission_assignment_id: OptionalString,
1312
+ permission_operation: Schema.optional(Schema.Literals([
1313
+ "create",
1314
+ "change",
1315
+ "assign",
1316
+ "revoke",
1317
+ "replace"
1318
+ ])),
1319
+ revision: Schema.optional(Schema.Number),
1320
+ user_op_hash: OptionalString,
1321
+ transaction_hash: OptionalString,
1322
+ block_number: Schema.optional(Schema.Number),
1323
+ log_index: Schema.optional(Schema.Number)
1302
1324
  });
1303
1325
  const MovementScanWindowProps = Schema.Struct({
1304
1326
  ...TelemetryEnvelopeProps,
@@ -1844,6 +1866,12 @@ const PayrollRunTransitionedTelemetryEventSchema = Schema.Struct({
1844
1866
  "settled"
1845
1867
  ]),
1846
1868
  run_id: Schema.String,
1869
+ /**
1870
+ * The `paymentCommands` row at `payrollRuns.batchRef` — the durable owner of
1871
+ * this run's Payment membership. `payment_count` counts THAT command's
1872
+ * `paymentIds`, so an unrelated Payment quoting the run id changes neither.
1873
+ */
1874
+ command_id: OptionalString,
1847
1875
  payment_count: Schema.optional(Schema.Number),
1848
1876
  occurred_at: Schema.Number
1849
1877
  })
@@ -1938,12 +1966,9 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
1938
1966
  * gate rejects an entry that has a producer.
1939
1967
  */
1940
1968
  const CONTRACT_FIRST_TELEMETRY_EVENTS = [
1941
- "access_recovery_completed",
1942
1969
  "org_invite_progressed",
1943
1970
  "invoice_issued",
1944
- "invoice_request_transitioned",
1945
- "payroll_group_changed",
1946
- "payroll_run_transitioned"
1971
+ "invoice_request_transitioned"
1947
1972
  ];
1948
1973
  /**
1949
1974
  * Catalog events whose product mapper remains gated on the #1150 frontend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.2.0-rc.10",
3
+ "version": "4.2.0-rc.12",
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
+ "@capxul/typescript-config": "0.0.0",
41
41
  "@capxul/types": "0.3.0",
42
- "@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",