@capxul/observability 3.2.0 → 4.0.0

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.
package/dist/index.d.mts CHANGED
@@ -260,9 +260,6 @@ declare const CAPXUL_OPERATIONS: {
260
260
  readonly current: "holdings.current";
261
261
  readonly primary: "holdings.primary";
262
262
  };
263
- readonly handles: {
264
- readonly resolve: "handles.resolve";
265
- };
266
263
  readonly identity: {
267
264
  readonly accountAt: "identity.AccountAt";
268
265
  readonly accountClaimed: "identity.AccountClaimed";
@@ -298,7 +295,7 @@ declare const CAPXUL_OPERATIONS: {
298
295
  readonly signOut: "identity.SignOut";
299
296
  readonly signOutFailed: "identity.SignOutFailed";
300
297
  readonly update: "identity.update";
301
- readonly usernameAvailable: "identity.usernameAvailable";
298
+ readonly handleAvailable: "identity.handleAvailable";
302
299
  readonly verified: "identity.Verified";
303
300
  readonly verifyFailed: "identity.VerifyFailed";
304
301
  readonly verifyOtp: "identity.VerifyOtp";
@@ -314,10 +311,12 @@ declare const CAPXUL_OPERATIONS: {
314
311
  readonly get: "me.get";
315
312
  };
316
313
  readonly moneyExecution: {
314
+ readonly abandonPaymentExecution: "moneyExecution.abandonPaymentExecution";
317
315
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
318
316
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
319
317
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
320
318
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
319
+ readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
321
320
  readonly submit: "moneyExecution.submit";
322
321
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
323
322
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
@@ -337,12 +336,15 @@ declare const CAPXUL_OPERATIONS: {
337
336
  readonly status: "offramp.status";
338
337
  };
339
338
  readonly onboarding: {
339
+ readonly completeOrganization: "onboarding.completeOrganization";
340
340
  readonly completePerson: "onboarding.completePerson";
341
341
  };
342
342
  readonly org: {
343
+ readonly acceptInvitations: "org.acceptInvitations";
343
344
  readonly account: {
344
345
  readonly get: "org.account.get";
345
346
  };
347
+ readonly activateMember: "org.activateMember";
346
348
  readonly auditLog: "org.auditLog";
347
349
  readonly confirmBootstrap: "org.confirmBootstrap";
348
350
  readonly createOrg: "org.createOrg";
@@ -353,6 +355,7 @@ declare const CAPXUL_OPERATIONS: {
353
355
  readonly getProofReceipt: "org.getProofReceipt";
354
356
  readonly invite: "org.invite";
355
357
  readonly inviteMember: "org.inviteMember";
358
+ readonly list: "org.list";
356
359
  readonly load: "org.load";
357
360
  readonly me: "org.me";
358
361
  readonly members: "org.members";
@@ -453,10 +456,8 @@ declare const CAPXUL_OPERATIONS: {
453
456
  readonly render: "paymentDocuments.render";
454
457
  readonly verify: "paymentDocuments.verify";
455
458
  };
456
- readonly payees: {
457
- readonly create: "payees.create";
458
- readonly get: "payees.get";
459
- readonly resolve: "payees.resolve";
459
+ readonly recipient: {
460
+ readonly resolve: "recipient.resolve";
460
461
  };
461
462
  readonly payroll: {
462
463
  readonly authorizeRun: "payroll.authorizeRun";
@@ -539,14 +540,6 @@ declare const CAPXUL_OPERATIONS: {
539
540
  readonly ping: "system.ping";
540
541
  readonly runtimeChain: "system.runtimeChain";
541
542
  };
542
- readonly targets: {
543
- readonly resolve: {
544
- readonly email: "targets.resolve.email";
545
- readonly handle: "targets.resolve.handle";
546
- readonly organization: "targets.resolve.organization";
547
- readonly payee: "targets.resolve.payee";
548
- };
549
- };
550
543
  readonly testUsdc: {
551
544
  readonly mint: "TestUSDC.mint";
552
545
  };
@@ -601,7 +594,7 @@ interface TelemetryPort {
601
594
  }
602
595
  //#endregion
603
596
  //#region src/index.d.ts
604
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
597
+ declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
605
598
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
606
599
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
607
600
  type FunnelStepPropertyFilter = {
@@ -1549,6 +1542,17 @@ declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
1549
1542
  readonly journey_id: Schema.optional<Schema.String>;
1550
1543
  readonly correlation_id: Schema.optional<Schema.String>;
1551
1544
  readonly sdk_version: Schema.optional<Schema.String>;
1545
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1546
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1547
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1548
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1549
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1550
+ readonly recipient_handle: Schema.optional<Schema.String>;
1551
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1552
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1553
+ readonly command_id: Schema.optional<Schema.String>;
1554
+ readonly execution_id: Schema.optional<Schema.String>;
1555
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1552
1556
  readonly kind: Schema.String;
1553
1557
  readonly payment_id: Schema.String;
1554
1558
  }>;
@@ -1561,9 +1565,30 @@ declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
1561
1565
  readonly journey_id: Schema.optional<Schema.String>;
1562
1566
  readonly correlation_id: Schema.optional<Schema.String>;
1563
1567
  readonly sdk_version: Schema.optional<Schema.String>;
1568
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1569
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1570
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1571
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1572
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1573
+ readonly recipient_handle: Schema.optional<Schema.String>;
1574
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1575
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1576
+ readonly payment_state: Schema.optional<Schema.String>;
1577
+ readonly execution_state: Schema.optional<Schema.String>;
1578
+ readonly occurred_at: Schema.optional<Schema.Number>;
1579
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1580
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1581
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1564
1582
  readonly kind: Schema.String;
1565
1583
  readonly chain_id: Schema.Number;
1566
1584
  readonly settlement_id: Schema.String;
1585
+ readonly payment_id: Schema.optional<Schema.String>;
1586
+ readonly payment_ids: Schema.optional<Schema.String>;
1587
+ readonly command_id: Schema.optional<Schema.String>;
1588
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1589
+ readonly execution_id: Schema.optional<Schema.String>;
1590
+ readonly user_op_hash: Schema.optional<Schema.String>;
1591
+ readonly transaction_hash: Schema.optional<Schema.String>;
1567
1592
  }>;
1568
1593
  }>;
1569
1594
  declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
@@ -1601,9 +1626,28 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
1601
1626
  readonly "x-ratelimit-reset": Schema.optional<Schema.String>;
1602
1627
  readonly server: Schema.optional<Schema.String>;
1603
1628
  }>>;
1629
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1630
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1631
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1632
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1633
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1634
+ readonly recipient_handle: Schema.optional<Schema.String>;
1635
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1636
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1637
+ readonly payment_state: Schema.optional<Schema.String>;
1638
+ readonly execution_state: Schema.optional<Schema.String>;
1639
+ readonly occurred_at: Schema.optional<Schema.Number>;
1640
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1641
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1642
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1604
1643
  readonly kind: Schema.String;
1605
1644
  readonly payment_id: Schema.String;
1645
+ readonly payment_ids: Schema.optional<Schema.String>;
1606
1646
  readonly reason_code: Schema.String;
1647
+ readonly command_id: Schema.optional<Schema.String>;
1648
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1649
+ readonly execution_id: Schema.optional<Schema.String>;
1650
+ readonly user_op_hash: Schema.optional<Schema.String>;
1607
1651
  }>;
1608
1652
  }>;
1609
1653
  declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
@@ -1614,12 +1658,75 @@ declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
1614
1658
  readonly journey_id: Schema.optional<Schema.String>;
1615
1659
  readonly correlation_id: Schema.optional<Schema.String>;
1616
1660
  readonly sdk_version: Schema.optional<Schema.String>;
1661
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1662
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1663
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1664
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1665
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1666
+ readonly recipient_handle: Schema.optional<Schema.String>;
1667
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1668
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1669
+ readonly payment_state: Schema.optional<Schema.String>;
1670
+ readonly execution_state: Schema.optional<Schema.String>;
1671
+ readonly occurred_at: Schema.optional<Schema.Number>;
1672
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1673
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1674
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1617
1675
  readonly command_id: Schema.String;
1676
+ readonly payment_lifecycle_id: Schema.String;
1618
1677
  readonly attempt: Schema.Number;
1619
1678
  readonly reason_code: Schema.String;
1620
1679
  readonly chain_id: Schema.Number;
1621
1680
  readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
1622
1681
  readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
1682
+ readonly payment_id: Schema.optional<Schema.String>;
1683
+ readonly payment_ids: Schema.optional<Schema.String>;
1684
+ readonly execution_id: Schema.optional<Schema.String>;
1685
+ readonly user_op_hash: Schema.optional<Schema.String>;
1686
+ }>;
1687
+ }>;
1688
+ declare const PaymentLifecycleTransitionTelemetryEventSchema: Schema.Struct<{
1689
+ readonly name: Schema.Literal<"payment_lifecycle_transition">;
1690
+ readonly props: Schema.Struct<{
1691
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1692
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1693
+ readonly journey_id: Schema.optional<Schema.String>;
1694
+ readonly correlation_id: Schema.optional<Schema.String>;
1695
+ readonly sdk_version: Schema.optional<Schema.String>;
1696
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1697
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1698
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1699
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1700
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1701
+ readonly recipient_handle: Schema.optional<Schema.String>;
1702
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1703
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1704
+ readonly payment_id: Schema.String;
1705
+ readonly payment_lifecycle_id: Schema.String;
1706
+ readonly command_id: Schema.String;
1707
+ readonly payment_state: Schema.String;
1708
+ readonly occurred_at: Schema.Number;
1709
+ readonly causal_sequence: Schema.Number;
1710
+ readonly execution_id: Schema.optional<Schema.String>;
1711
+ readonly execution_state: Schema.optional<Schema.String>;
1712
+ readonly user_op_hash: Schema.optional<Schema.String>;
1713
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1714
+ readonly reason_code: Schema.optional<Schema.String>;
1715
+ }>;
1716
+ }>;
1717
+ declare const QuickPayExternalAddressAcknowledgedTelemetryEventSchema: Schema.Struct<{
1718
+ readonly name: Schema.Literal<"quick_pay_external_address_acknowledged">;
1719
+ readonly props: Schema.Struct<{
1720
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1721
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1722
+ readonly journey_id: Schema.optional<Schema.String>;
1723
+ readonly correlation_id: Schema.optional<Schema.String>;
1724
+ readonly sdk_version: Schema.optional<Schema.String>;
1725
+ readonly recipient_locator_kind: Schema.Literal<"address">;
1726
+ readonly recipient_resolution_status: Schema.Literal<"external_address">;
1727
+ readonly recipient_address: Schema.Codec<Address, string, never, never>;
1728
+ readonly external_address_acknowledged: Schema.Literal<true>;
1729
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1623
1730
  }>;
1624
1731
  }>;
1625
1732
  declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
@@ -2423,6 +2530,17 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2423
2530
  readonly journey_id: Schema.optional<Schema.String>;
2424
2531
  readonly correlation_id: Schema.optional<Schema.String>;
2425
2532
  readonly sdk_version: Schema.optional<Schema.String>;
2533
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2534
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2535
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2536
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2537
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2538
+ readonly recipient_handle: Schema.optional<Schema.String>;
2539
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2540
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2541
+ readonly command_id: Schema.optional<Schema.String>;
2542
+ readonly execution_id: Schema.optional<Schema.String>;
2543
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2426
2544
  readonly kind: Schema.String;
2427
2545
  readonly payment_id: Schema.String;
2428
2546
  }>;
@@ -2435,9 +2553,30 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2435
2553
  readonly journey_id: Schema.optional<Schema.String>;
2436
2554
  readonly correlation_id: Schema.optional<Schema.String>;
2437
2555
  readonly sdk_version: Schema.optional<Schema.String>;
2556
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2557
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2558
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2559
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2560
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2561
+ readonly recipient_handle: Schema.optional<Schema.String>;
2562
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2563
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2564
+ readonly payment_state: Schema.optional<Schema.String>;
2565
+ readonly execution_state: Schema.optional<Schema.String>;
2566
+ readonly occurred_at: Schema.optional<Schema.Number>;
2567
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2568
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2569
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2438
2570
  readonly kind: Schema.String;
2439
2571
  readonly chain_id: Schema.Number;
2440
2572
  readonly settlement_id: Schema.String;
2573
+ readonly payment_id: Schema.optional<Schema.String>;
2574
+ readonly payment_ids: Schema.optional<Schema.String>;
2575
+ readonly command_id: Schema.optional<Schema.String>;
2576
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2577
+ readonly execution_id: Schema.optional<Schema.String>;
2578
+ readonly user_op_hash: Schema.optional<Schema.String>;
2579
+ readonly transaction_hash: Schema.optional<Schema.String>;
2441
2580
  }>;
2442
2581
  }>;
2443
2582
  readonly payment_failed: Schema.Struct<{
@@ -2475,9 +2614,28 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2475
2614
  readonly "x-ratelimit-reset": Schema.optional<Schema.String>;
2476
2615
  readonly server: Schema.optional<Schema.String>;
2477
2616
  }>>;
2617
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2618
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2619
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2620
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2621
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2622
+ readonly recipient_handle: Schema.optional<Schema.String>;
2623
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2624
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2625
+ readonly payment_state: Schema.optional<Schema.String>;
2626
+ readonly execution_state: Schema.optional<Schema.String>;
2627
+ readonly occurred_at: Schema.optional<Schema.Number>;
2628
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2629
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2630
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2478
2631
  readonly kind: Schema.String;
2479
2632
  readonly payment_id: Schema.String;
2633
+ readonly payment_ids: Schema.optional<Schema.String>;
2480
2634
  readonly reason_code: Schema.String;
2635
+ readonly command_id: Schema.optional<Schema.String>;
2636
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2637
+ readonly execution_id: Schema.optional<Schema.String>;
2638
+ readonly user_op_hash: Schema.optional<Schema.String>;
2481
2639
  }>;
2482
2640
  }>;
2483
2641
  readonly payment_verification_retry: Schema.Struct<{
@@ -2488,12 +2646,75 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2488
2646
  readonly journey_id: Schema.optional<Schema.String>;
2489
2647
  readonly correlation_id: Schema.optional<Schema.String>;
2490
2648
  readonly sdk_version: Schema.optional<Schema.String>;
2649
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2650
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2651
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2652
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2653
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2654
+ readonly recipient_handle: Schema.optional<Schema.String>;
2655
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2656
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2657
+ readonly payment_state: Schema.optional<Schema.String>;
2658
+ readonly execution_state: Schema.optional<Schema.String>;
2659
+ readonly occurred_at: Schema.optional<Schema.Number>;
2660
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2661
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2662
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2491
2663
  readonly command_id: Schema.String;
2664
+ readonly payment_lifecycle_id: Schema.String;
2492
2665
  readonly attempt: Schema.Number;
2493
2666
  readonly reason_code: Schema.String;
2494
2667
  readonly chain_id: Schema.Number;
2495
2668
  readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
2496
2669
  readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
2670
+ readonly payment_id: Schema.optional<Schema.String>;
2671
+ readonly payment_ids: Schema.optional<Schema.String>;
2672
+ readonly execution_id: Schema.optional<Schema.String>;
2673
+ readonly user_op_hash: Schema.optional<Schema.String>;
2674
+ }>;
2675
+ }>;
2676
+ readonly payment_lifecycle_transition: Schema.Struct<{
2677
+ readonly name: Schema.Literal<"payment_lifecycle_transition">;
2678
+ readonly props: Schema.Struct<{
2679
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2680
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2681
+ readonly journey_id: Schema.optional<Schema.String>;
2682
+ readonly correlation_id: Schema.optional<Schema.String>;
2683
+ readonly sdk_version: Schema.optional<Schema.String>;
2684
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2685
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2686
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2687
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2688
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2689
+ readonly recipient_handle: Schema.optional<Schema.String>;
2690
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2691
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2692
+ readonly payment_id: Schema.String;
2693
+ readonly payment_lifecycle_id: Schema.String;
2694
+ readonly command_id: Schema.String;
2695
+ readonly payment_state: Schema.String;
2696
+ readonly occurred_at: Schema.Number;
2697
+ readonly causal_sequence: Schema.Number;
2698
+ readonly execution_id: Schema.optional<Schema.String>;
2699
+ readonly execution_state: Schema.optional<Schema.String>;
2700
+ readonly user_op_hash: Schema.optional<Schema.String>;
2701
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2702
+ readonly reason_code: Schema.optional<Schema.String>;
2703
+ }>;
2704
+ }>;
2705
+ readonly quick_pay_external_address_acknowledged: Schema.Struct<{
2706
+ readonly name: Schema.Literal<"quick_pay_external_address_acknowledged">;
2707
+ readonly props: Schema.Struct<{
2708
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2709
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2710
+ readonly journey_id: Schema.optional<Schema.String>;
2711
+ readonly correlation_id: Schema.optional<Schema.String>;
2712
+ readonly sdk_version: Schema.optional<Schema.String>;
2713
+ readonly recipient_locator_kind: Schema.Literal<"address">;
2714
+ readonly recipient_resolution_status: Schema.Literal<"external_address">;
2715
+ readonly recipient_address: Schema.Codec<Address, string, never, never>;
2716
+ readonly external_address_acknowledged: Schema.Literal<true>;
2717
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2497
2718
  }>;
2498
2719
  }>;
2499
2720
  readonly deposit_initiated: Schema.Struct<{
@@ -2818,4 +3039,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
2818
3039
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
2819
3040
  }
2820
3041
  //#endregion
2821
- export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, 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, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
3042
+ export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, CapturedNetworkRequestLike, CapxulBrowserAnalyticsInput, CapxulEnv, type CapxulOperation, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PointEventJourney, PostHogBeforeSend, PostHogBrowserCapture, PostHogBrowserInitialize, PostHogBrowserOptions, PostHogBrowserPageviewClient, PostHogProductAppOptions, PostHogTelemetryAdapter, PostHogUtilityAppOptions, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, TelemetryEnvelopeDefaults, TelemetryEvent, TelemetryEventName, TelemetryGroupInput, TelemetryIdentifyInput, type TelemetryPort, TelemetryProducer, TelemetryProps, TelemetryRedactionOptions, TrackHandler, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
package/dist/index.mjs CHANGED
@@ -164,7 +164,6 @@ const CAPXUL_OPERATIONS = {
164
164
  current: "holdings.current",
165
165
  primary: "holdings.primary"
166
166
  },
167
- handles: { resolve: "handles.resolve" },
168
167
  identity: {
169
168
  accountAt: "identity.AccountAt",
170
169
  accountClaimed: "identity.AccountClaimed",
@@ -200,7 +199,7 @@ const CAPXUL_OPERATIONS = {
200
199
  signOut: "identity.SignOut",
201
200
  signOutFailed: "identity.SignOutFailed",
202
201
  update: "identity.update",
203
- usernameAvailable: "identity.usernameAvailable",
202
+ handleAvailable: "identity.handleAvailable",
204
203
  verified: "identity.Verified",
205
204
  verifyFailed: "identity.VerifyFailed",
206
205
  verifyOtp: "identity.VerifyOtp"
@@ -216,10 +215,12 @@ const CAPXUL_OPERATIONS = {
216
215
  get: "me.get"
217
216
  },
218
217
  moneyExecution: {
218
+ abandonPaymentExecution: "moneyExecution.abandonPaymentExecution",
219
219
  prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution",
220
220
  preparePaymentExecution: "moneyExecution.preparePaymentExecution",
221
221
  preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution",
222
222
  preparePermissionExecution: "moneyExecution.preparePermissionExecution",
223
+ recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims",
223
224
  submit: "moneyExecution.submit",
224
225
  submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution",
225
226
  submitPaymentExecution: "moneyExecution.submitPaymentExecution",
@@ -238,9 +239,14 @@ const CAPXUL_OPERATIONS = {
238
239
  quote: "offramp.quote",
239
240
  status: "offramp.status"
240
241
  },
241
- onboarding: { completePerson: "onboarding.completePerson" },
242
+ onboarding: {
243
+ completeOrganization: "onboarding.completeOrganization",
244
+ completePerson: "onboarding.completePerson"
245
+ },
242
246
  org: {
247
+ acceptInvitations: "org.acceptInvitations",
243
248
  account: { get: "org.account.get" },
249
+ activateMember: "org.activateMember",
244
250
  auditLog: "org.auditLog",
245
251
  confirmBootstrap: "org.confirmBootstrap",
246
252
  createOrg: "org.createOrg",
@@ -251,6 +257,7 @@ const CAPXUL_OPERATIONS = {
251
257
  getProofReceipt: "org.getProofReceipt",
252
258
  invite: "org.invite",
253
259
  inviteMember: "org.inviteMember",
260
+ list: "org.list",
254
261
  load: "org.load",
255
262
  me: "org.me",
256
263
  members: "org.members",
@@ -343,11 +350,7 @@ const CAPXUL_OPERATIONS = {
343
350
  render: "paymentDocuments.render",
344
351
  verify: "paymentDocuments.verify"
345
352
  },
346
- payees: {
347
- create: "payees.create",
348
- get: "payees.get",
349
- resolve: "payees.resolve"
350
- },
353
+ recipient: { resolve: "recipient.resolve" },
351
354
  payroll: {
352
355
  authorizeRun: "payroll.authorizeRun",
353
356
  groups: {
@@ -429,12 +432,6 @@ const CAPXUL_OPERATIONS = {
429
432
  ping: "system.ping",
430
433
  runtimeChain: "system.runtimeChain"
431
434
  },
432
- targets: { resolve: {
433
- email: "targets.resolve.email",
434
- handle: "targets.resolve.handle",
435
- organization: "targets.resolve.organization",
436
- payee: "targets.resolve.payee"
437
- } },
438
435
  testUsdc: { mint: "TestUSDC.mint" },
439
436
  _internal: {
440
437
  accounts: { fund: "_internal.accounts.fund" },
@@ -506,6 +503,8 @@ const TELEMETRY_EVENT_NAMES = [
506
503
  "payment_settled",
507
504
  "payment_failed",
508
505
  "payment_verification_retry",
506
+ "payment_lifecycle_transition",
507
+ "quick_pay_external_address_acknowledged",
509
508
  "deposit_initiated",
510
509
  "deposit_settled",
511
510
  "permission_mirror_verification",
@@ -1113,32 +1112,116 @@ const OrgInviteExpiredProps = Schema.Struct({
1113
1112
  role: OptionalString,
1114
1113
  status: OptionalString
1115
1114
  });
1115
+ const RecipientLocatorKindSchema = Schema.Literals([
1116
+ "handle",
1117
+ "email",
1118
+ "address",
1119
+ "party"
1120
+ ]);
1121
+ const RecipientResolutionStatusSchema = Schema.Literals([
1122
+ "known_party",
1123
+ "new_email",
1124
+ "external_address"
1125
+ ]);
1126
+ const RecipientPartyKindSchema = Schema.Literals([
1127
+ "person",
1128
+ "organization",
1129
+ "unresolved"
1130
+ ]);
1131
+ const RecipientTelemetryProps = {
1132
+ recipient_locator_kind: Schema.optional(RecipientLocatorKindSchema),
1133
+ recipient_resolution_status: Schema.optional(RecipientResolutionStatusSchema),
1134
+ recipient_party_id: OptionalString,
1135
+ recipient_party_kind: Schema.optional(RecipientPartyKindSchema),
1136
+ recipient_is_capxul_account: Schema.optional(Schema.Boolean),
1137
+ recipient_handle: OptionalString,
1138
+ recipient_address: OptionalAddress,
1139
+ external_address_acknowledged: Schema.optional(Schema.Boolean)
1140
+ };
1116
1141
  const PaymentInitiatedProps = Schema.Struct({
1142
+ command_id: OptionalString,
1143
+ execution_id: OptionalString,
1144
+ payment_lifecycle_id: OptionalString,
1117
1145
  ...TelemetryEnvelopeProps,
1146
+ ...RecipientTelemetryProps,
1118
1147
  kind: Schema.String,
1119
1148
  payment_id: Schema.String
1120
1149
  });
1150
+ const PaymentLifecycleProps = {
1151
+ payment_state: OptionalString,
1152
+ execution_state: OptionalString,
1153
+ occurred_at: Schema.optional(Schema.Number),
1154
+ causal_sequence: Schema.optional(Schema.Number),
1155
+ sponsorship_valid_until: Schema.optional(Schema.Number),
1156
+ terminal_event_id: OptionalString
1157
+ };
1121
1158
  const PaymentSettledL2Props = Schema.Struct({
1159
+ ...PaymentLifecycleProps,
1122
1160
  ...TelemetryEnvelopeProps,
1161
+ ...RecipientTelemetryProps,
1123
1162
  kind: Schema.String,
1124
1163
  chain_id: Schema.Number,
1125
- settlement_id: Schema.String
1164
+ settlement_id: Schema.String,
1165
+ payment_id: OptionalString,
1166
+ payment_ids: OptionalString,
1167
+ command_id: OptionalString,
1168
+ payment_lifecycle_id: OptionalString,
1169
+ execution_id: OptionalString,
1170
+ user_op_hash: OptionalString,
1171
+ transaction_hash: OptionalString
1126
1172
  });
1127
1173
  const PaymentFailedL2Props = Schema.Struct({
1174
+ ...PaymentLifecycleProps,
1128
1175
  ...TelemetryEnvelopeProps,
1129
1176
  ...ChainCauseTelemetryProps,
1177
+ ...RecipientTelemetryProps,
1130
1178
  kind: Schema.String,
1131
1179
  payment_id: Schema.String,
1132
- reason_code: Schema.String
1180
+ payment_ids: OptionalString,
1181
+ reason_code: Schema.String,
1182
+ command_id: OptionalString,
1183
+ payment_lifecycle_id: OptionalString,
1184
+ execution_id: OptionalString,
1185
+ user_op_hash: OptionalString
1133
1186
  });
1134
1187
  const PaymentVerificationRetryProps = Schema.Struct({
1188
+ ...PaymentLifecycleProps,
1135
1189
  ...TelemetryEnvelopeProps,
1190
+ ...RecipientTelemetryProps,
1136
1191
  command_id: Schema.String,
1192
+ payment_lifecycle_id: Schema.String,
1137
1193
  attempt: Schema.Number,
1138
1194
  reason_code: Schema.String,
1139
1195
  chain_id: Schema.Number,
1140
1196
  delay_ms: DurationMsSchema,
1141
- outcome: Schema.Literals(["scheduled", "unresolved"])
1197
+ outcome: Schema.Literals(["scheduled", "unresolved"]),
1198
+ payment_id: OptionalString,
1199
+ payment_ids: OptionalString,
1200
+ execution_id: OptionalString,
1201
+ user_op_hash: OptionalString
1202
+ });
1203
+ const PaymentLifecycleTransitionProps = Schema.Struct({
1204
+ ...TelemetryEnvelopeProps,
1205
+ ...RecipientTelemetryProps,
1206
+ payment_id: Schema.String,
1207
+ payment_lifecycle_id: Schema.String,
1208
+ command_id: Schema.String,
1209
+ payment_state: Schema.String,
1210
+ occurred_at: Schema.Number,
1211
+ causal_sequence: Schema.Number,
1212
+ execution_id: OptionalString,
1213
+ execution_state: OptionalString,
1214
+ user_op_hash: OptionalString,
1215
+ sponsorship_valid_until: Schema.optional(Schema.Number),
1216
+ reason_code: OptionalString
1217
+ });
1218
+ const QuickPayExternalAddressAcknowledgedProps = Schema.Struct({
1219
+ ...TelemetryEnvelopeProps,
1220
+ recipient_locator_kind: Schema.Literal("address"),
1221
+ recipient_resolution_status: Schema.Literal("external_address"),
1222
+ recipient_address: AddressSchema,
1223
+ external_address_acknowledged: Schema.Literal(true),
1224
+ organization_id: OptionalOrgId
1142
1225
  });
1143
1226
  const DepositInitiatedProps = Schema.Struct({ ...TelemetryEnvelopeProps });
1144
1227
  const DepositSettledProps = Schema.Struct({
@@ -1346,6 +1429,14 @@ const PaymentVerificationRetryTelemetryEventSchema = Schema.Struct({
1346
1429
  name: Schema.Literal("payment_verification_retry"),
1347
1430
  props: PaymentVerificationRetryProps
1348
1431
  });
1432
+ const PaymentLifecycleTransitionTelemetryEventSchema = Schema.Struct({
1433
+ name: Schema.Literal("payment_lifecycle_transition"),
1434
+ props: PaymentLifecycleTransitionProps
1435
+ });
1436
+ const QuickPayExternalAddressAcknowledgedTelemetryEventSchema = Schema.Struct({
1437
+ name: Schema.Literal("quick_pay_external_address_acknowledged"),
1438
+ props: QuickPayExternalAddressAcknowledgedProps
1439
+ });
1349
1440
  const DepositInitiatedTelemetryEventSchema = Schema.Struct({
1350
1441
  name: Schema.Literal("deposit_initiated"),
1351
1442
  props: DepositInitiatedProps
@@ -1413,6 +1504,8 @@ const TELEMETRY_EVENT_SCHEMAS = {
1413
1504
  payment_settled: PaymentSettledTelemetryEventSchema,
1414
1505
  payment_failed: PaymentFailedTelemetryEventSchema,
1415
1506
  payment_verification_retry: PaymentVerificationRetryTelemetryEventSchema,
1507
+ payment_lifecycle_transition: PaymentLifecycleTransitionTelemetryEventSchema,
1508
+ quick_pay_external_address_acknowledged: QuickPayExternalAddressAcknowledgedTelemetryEventSchema,
1416
1509
  deposit_initiated: DepositInitiatedTelemetryEventSchema,
1417
1510
  deposit_settled: DepositSettledTelemetryEventSchema,
1418
1511
  permission_mirror_verification: PermissionMirrorVerificationTelemetryEventSchema,
@@ -2009,4 +2102,4 @@ function rotr(value, bits) {
2009
2102
  return value >>> bits | value << 32 - bits;
2010
2103
  }
2011
2104
  //#endregion
2012
- export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
2105
+ export { AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, InMemoryTelemetryBusAdapter, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,8 @@
37
37
  "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
38
38
  "vite-plus": "0.3.0",
39
39
  "vitest": "4.1.11",
40
- "@capxul/errors": "0.2.0",
41
- "@capxul/types": "0.2.3",
40
+ "@capxul/errors": "0.3.0",
41
+ "@capxul/types": "0.3.0",
42
42
  "@capxul/typescript-config": "0.0.0"
43
43
  },
44
44
  "scripts": {