@capxul/observability 3.2.0 → 4.0.1

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";
@@ -277,6 +274,7 @@ declare const CAPXUL_OPERATIONS: {
277
274
  readonly createOrganization: "identity.CreateOrganization";
278
275
  readonly ensureAccount: "identity.EnsureAccount";
279
276
  readonly leaveOrganization: "identity.LeaveOrganization";
277
+ readonly loadByAuthUserId: "identity.loadByAuthUserId";
280
278
  readonly loadCurrent: "identity.loadCurrent";
281
279
  readonly orgAt: "identity.OrgAt";
282
280
  readonly orgFailed: "identity.OrgFailed";
@@ -298,7 +296,7 @@ declare const CAPXUL_OPERATIONS: {
298
296
  readonly signOut: "identity.SignOut";
299
297
  readonly signOutFailed: "identity.SignOutFailed";
300
298
  readonly update: "identity.update";
301
- readonly usernameAvailable: "identity.usernameAvailable";
299
+ readonly handleAvailable: "identity.handleAvailable";
302
300
  readonly verified: "identity.Verified";
303
301
  readonly verifyFailed: "identity.VerifyFailed";
304
302
  readonly verifyOtp: "identity.VerifyOtp";
@@ -314,10 +312,12 @@ declare const CAPXUL_OPERATIONS: {
314
312
  readonly get: "me.get";
315
313
  };
316
314
  readonly moneyExecution: {
315
+ readonly abandonPaymentExecution: "moneyExecution.abandonPaymentExecution";
317
316
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
318
317
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
319
318
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
320
319
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
320
+ readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
321
321
  readonly submit: "moneyExecution.submit";
322
322
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
323
323
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
@@ -337,12 +337,15 @@ declare const CAPXUL_OPERATIONS: {
337
337
  readonly status: "offramp.status";
338
338
  };
339
339
  readonly onboarding: {
340
+ readonly completeOrganization: "onboarding.completeOrganization";
340
341
  readonly completePerson: "onboarding.completePerson";
341
342
  };
342
343
  readonly org: {
344
+ readonly acceptInvitations: "org.acceptInvitations";
343
345
  readonly account: {
344
346
  readonly get: "org.account.get";
345
347
  };
348
+ readonly activateMember: "org.activateMember";
346
349
  readonly auditLog: "org.auditLog";
347
350
  readonly confirmBootstrap: "org.confirmBootstrap";
348
351
  readonly createOrg: "org.createOrg";
@@ -353,6 +356,7 @@ declare const CAPXUL_OPERATIONS: {
353
356
  readonly getProofReceipt: "org.getProofReceipt";
354
357
  readonly invite: "org.invite";
355
358
  readonly inviteMember: "org.inviteMember";
359
+ readonly list: "org.list";
356
360
  readonly load: "org.load";
357
361
  readonly me: "org.me";
358
362
  readonly members: "org.members";
@@ -428,6 +432,7 @@ declare const CAPXUL_OPERATIONS: {
428
432
  readonly pay: "organizationPayments.pay";
429
433
  readonly payBatch: "organizationPayments.payBatch";
430
434
  readonly prepareExecution: "organizationPayments.prepareExecution";
435
+ readonly retry: "organizationPayments.retry";
431
436
  };
432
437
  readonly organizationSetup: {
433
438
  readonly getProofReceipt: "organizationSetup.getProofReceipt";
@@ -446,6 +451,7 @@ declare const CAPXUL_OPERATIONS: {
446
451
  readonly prepareExecution: "payments.prepareExecution";
447
452
  readonly prepareLifecycleExecution: "payments.prepareLifecycleExecution";
448
453
  readonly redirect: "payments.redirect";
454
+ readonly retry: "payments.retry";
449
455
  readonly submitCommandExecution: "payments.submitCommandExecution";
450
456
  readonly submitExecution: "payments.submitExecution";
451
457
  };
@@ -453,10 +459,8 @@ declare const CAPXUL_OPERATIONS: {
453
459
  readonly render: "paymentDocuments.render";
454
460
  readonly verify: "paymentDocuments.verify";
455
461
  };
456
- readonly payees: {
457
- readonly create: "payees.create";
458
- readonly get: "payees.get";
459
- readonly resolve: "payees.resolve";
462
+ readonly recipient: {
463
+ readonly resolve: "recipient.resolve";
460
464
  };
461
465
  readonly payroll: {
462
466
  readonly authorizeRun: "payroll.authorizeRun";
@@ -531,6 +535,7 @@ declare const CAPXUL_OPERATIONS: {
531
535
  readonly smartAccount: {
532
536
  readonly claim: "smartAccount.claim";
533
537
  readonly confirmDeployment: "smartAccount.confirmDeployment";
538
+ readonly loadByAuthUserId: "smartAccount.loadByAuthUserId";
534
539
  readonly loadCurrent: "smartAccount.loadCurrent";
535
540
  readonly provision: "smartAccount.provision";
536
541
  };
@@ -539,14 +544,6 @@ declare const CAPXUL_OPERATIONS: {
539
544
  readonly ping: "system.ping";
540
545
  readonly runtimeChain: "system.runtimeChain";
541
546
  };
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
547
  readonly testUsdc: {
551
548
  readonly mint: "TestUSDC.mint";
552
549
  };
@@ -601,7 +598,7 @@ interface TelemetryPort {
601
598
  }
602
599
  //#endregion
603
600
  //#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"];
601
+ 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
602
  type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
606
603
  type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
607
604
  type FunnelStepPropertyFilter = {
@@ -1549,6 +1546,17 @@ declare const PaymentInitiatedTelemetryEventSchema: Schema.Struct<{
1549
1546
  readonly journey_id: Schema.optional<Schema.String>;
1550
1547
  readonly correlation_id: Schema.optional<Schema.String>;
1551
1548
  readonly sdk_version: Schema.optional<Schema.String>;
1549
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1550
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1551
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1552
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1553
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1554
+ readonly recipient_handle: Schema.optional<Schema.String>;
1555
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1556
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1557
+ readonly command_id: Schema.optional<Schema.String>;
1558
+ readonly execution_id: Schema.optional<Schema.String>;
1559
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1552
1560
  readonly kind: Schema.String;
1553
1561
  readonly payment_id: Schema.String;
1554
1562
  }>;
@@ -1561,9 +1569,30 @@ declare const PaymentSettledTelemetryEventSchema: Schema.Struct<{
1561
1569
  readonly journey_id: Schema.optional<Schema.String>;
1562
1570
  readonly correlation_id: Schema.optional<Schema.String>;
1563
1571
  readonly sdk_version: Schema.optional<Schema.String>;
1572
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1573
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1574
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1575
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1576
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1577
+ readonly recipient_handle: Schema.optional<Schema.String>;
1578
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1579
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1580
+ readonly payment_state: Schema.optional<Schema.String>;
1581
+ readonly execution_state: Schema.optional<Schema.String>;
1582
+ readonly occurred_at: Schema.optional<Schema.Number>;
1583
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1584
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1585
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1564
1586
  readonly kind: Schema.String;
1565
1587
  readonly chain_id: Schema.Number;
1566
1588
  readonly settlement_id: Schema.String;
1589
+ readonly payment_id: Schema.optional<Schema.String>;
1590
+ readonly payment_ids: Schema.optional<Schema.String>;
1591
+ readonly command_id: Schema.optional<Schema.String>;
1592
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1593
+ readonly execution_id: Schema.optional<Schema.String>;
1594
+ readonly user_op_hash: Schema.optional<Schema.String>;
1595
+ readonly transaction_hash: Schema.optional<Schema.String>;
1567
1596
  }>;
1568
1597
  }>;
1569
1598
  declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
@@ -1601,9 +1630,28 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
1601
1630
  readonly "x-ratelimit-reset": Schema.optional<Schema.String>;
1602
1631
  readonly server: Schema.optional<Schema.String>;
1603
1632
  }>>;
1633
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1634
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1635
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1636
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1637
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1638
+ readonly recipient_handle: Schema.optional<Schema.String>;
1639
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1640
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1641
+ readonly payment_state: Schema.optional<Schema.String>;
1642
+ readonly execution_state: Schema.optional<Schema.String>;
1643
+ readonly occurred_at: Schema.optional<Schema.Number>;
1644
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1645
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1646
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1604
1647
  readonly kind: Schema.String;
1605
1648
  readonly payment_id: Schema.String;
1649
+ readonly payment_ids: Schema.optional<Schema.String>;
1606
1650
  readonly reason_code: Schema.String;
1651
+ readonly command_id: Schema.optional<Schema.String>;
1652
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
1653
+ readonly execution_id: Schema.optional<Schema.String>;
1654
+ readonly user_op_hash: Schema.optional<Schema.String>;
1607
1655
  }>;
1608
1656
  }>;
1609
1657
  declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
@@ -1614,12 +1662,75 @@ declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
1614
1662
  readonly journey_id: Schema.optional<Schema.String>;
1615
1663
  readonly correlation_id: Schema.optional<Schema.String>;
1616
1664
  readonly sdk_version: Schema.optional<Schema.String>;
1665
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1666
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1667
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1668
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1669
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1670
+ readonly recipient_handle: Schema.optional<Schema.String>;
1671
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1672
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1673
+ readonly payment_state: Schema.optional<Schema.String>;
1674
+ readonly execution_state: Schema.optional<Schema.String>;
1675
+ readonly occurred_at: Schema.optional<Schema.Number>;
1676
+ readonly causal_sequence: Schema.optional<Schema.Number>;
1677
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1678
+ readonly terminal_event_id: Schema.optional<Schema.String>;
1617
1679
  readonly command_id: Schema.String;
1680
+ readonly payment_lifecycle_id: Schema.String;
1618
1681
  readonly attempt: Schema.Number;
1619
1682
  readonly reason_code: Schema.String;
1620
1683
  readonly chain_id: Schema.Number;
1621
1684
  readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
1622
1685
  readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
1686
+ readonly payment_id: Schema.optional<Schema.String>;
1687
+ readonly payment_ids: Schema.optional<Schema.String>;
1688
+ readonly execution_id: Schema.optional<Schema.String>;
1689
+ readonly user_op_hash: Schema.optional<Schema.String>;
1690
+ }>;
1691
+ }>;
1692
+ declare const PaymentLifecycleTransitionTelemetryEventSchema: Schema.Struct<{
1693
+ readonly name: Schema.Literal<"payment_lifecycle_transition">;
1694
+ readonly props: Schema.Struct<{
1695
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1696
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1697
+ readonly journey_id: Schema.optional<Schema.String>;
1698
+ readonly correlation_id: Schema.optional<Schema.String>;
1699
+ readonly sdk_version: Schema.optional<Schema.String>;
1700
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
1701
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
1702
+ readonly recipient_party_id: Schema.optional<Schema.String>;
1703
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
1704
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
1705
+ readonly recipient_handle: Schema.optional<Schema.String>;
1706
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
1707
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
1708
+ readonly payment_id: Schema.String;
1709
+ readonly payment_lifecycle_id: Schema.String;
1710
+ readonly command_id: Schema.String;
1711
+ readonly payment_state: Schema.String;
1712
+ readonly occurred_at: Schema.Number;
1713
+ readonly causal_sequence: Schema.Number;
1714
+ readonly execution_id: Schema.optional<Schema.String>;
1715
+ readonly execution_state: Schema.optional<Schema.String>;
1716
+ readonly user_op_hash: Schema.optional<Schema.String>;
1717
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
1718
+ readonly reason_code: Schema.optional<Schema.String>;
1719
+ }>;
1720
+ }>;
1721
+ declare const QuickPayExternalAddressAcknowledgedTelemetryEventSchema: Schema.Struct<{
1722
+ readonly name: Schema.Literal<"quick_pay_external_address_acknowledged">;
1723
+ readonly props: Schema.Struct<{
1724
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
1725
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
1726
+ readonly journey_id: Schema.optional<Schema.String>;
1727
+ readonly correlation_id: Schema.optional<Schema.String>;
1728
+ readonly sdk_version: Schema.optional<Schema.String>;
1729
+ readonly recipient_locator_kind: Schema.Literal<"address">;
1730
+ readonly recipient_resolution_status: Schema.Literal<"external_address">;
1731
+ readonly recipient_address: Schema.Codec<Address, string, never, never>;
1732
+ readonly external_address_acknowledged: Schema.Literal<true>;
1733
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
1623
1734
  }>;
1624
1735
  }>;
1625
1736
  declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
@@ -2423,6 +2534,17 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2423
2534
  readonly journey_id: Schema.optional<Schema.String>;
2424
2535
  readonly correlation_id: Schema.optional<Schema.String>;
2425
2536
  readonly sdk_version: Schema.optional<Schema.String>;
2537
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2538
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2539
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2540
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2541
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2542
+ readonly recipient_handle: Schema.optional<Schema.String>;
2543
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2544
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2545
+ readonly command_id: Schema.optional<Schema.String>;
2546
+ readonly execution_id: Schema.optional<Schema.String>;
2547
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2426
2548
  readonly kind: Schema.String;
2427
2549
  readonly payment_id: Schema.String;
2428
2550
  }>;
@@ -2435,9 +2557,30 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2435
2557
  readonly journey_id: Schema.optional<Schema.String>;
2436
2558
  readonly correlation_id: Schema.optional<Schema.String>;
2437
2559
  readonly sdk_version: Schema.optional<Schema.String>;
2560
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2561
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2562
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2563
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2564
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2565
+ readonly recipient_handle: Schema.optional<Schema.String>;
2566
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2567
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2568
+ readonly payment_state: Schema.optional<Schema.String>;
2569
+ readonly execution_state: Schema.optional<Schema.String>;
2570
+ readonly occurred_at: Schema.optional<Schema.Number>;
2571
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2572
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2573
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2438
2574
  readonly kind: Schema.String;
2439
2575
  readonly chain_id: Schema.Number;
2440
2576
  readonly settlement_id: Schema.String;
2577
+ readonly payment_id: Schema.optional<Schema.String>;
2578
+ readonly payment_ids: Schema.optional<Schema.String>;
2579
+ readonly command_id: Schema.optional<Schema.String>;
2580
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2581
+ readonly execution_id: Schema.optional<Schema.String>;
2582
+ readonly user_op_hash: Schema.optional<Schema.String>;
2583
+ readonly transaction_hash: Schema.optional<Schema.String>;
2441
2584
  }>;
2442
2585
  }>;
2443
2586
  readonly payment_failed: Schema.Struct<{
@@ -2475,9 +2618,28 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2475
2618
  readonly "x-ratelimit-reset": Schema.optional<Schema.String>;
2476
2619
  readonly server: Schema.optional<Schema.String>;
2477
2620
  }>>;
2621
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2622
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2623
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2624
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2625
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2626
+ readonly recipient_handle: Schema.optional<Schema.String>;
2627
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2628
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2629
+ readonly payment_state: Schema.optional<Schema.String>;
2630
+ readonly execution_state: Schema.optional<Schema.String>;
2631
+ readonly occurred_at: Schema.optional<Schema.Number>;
2632
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2633
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2634
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2478
2635
  readonly kind: Schema.String;
2479
2636
  readonly payment_id: Schema.String;
2637
+ readonly payment_ids: Schema.optional<Schema.String>;
2480
2638
  readonly reason_code: Schema.String;
2639
+ readonly command_id: Schema.optional<Schema.String>;
2640
+ readonly payment_lifecycle_id: Schema.optional<Schema.String>;
2641
+ readonly execution_id: Schema.optional<Schema.String>;
2642
+ readonly user_op_hash: Schema.optional<Schema.String>;
2481
2643
  }>;
2482
2644
  }>;
2483
2645
  readonly payment_verification_retry: Schema.Struct<{
@@ -2488,12 +2650,75 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
2488
2650
  readonly journey_id: Schema.optional<Schema.String>;
2489
2651
  readonly correlation_id: Schema.optional<Schema.String>;
2490
2652
  readonly sdk_version: Schema.optional<Schema.String>;
2653
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2654
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2655
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2656
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2657
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2658
+ readonly recipient_handle: Schema.optional<Schema.String>;
2659
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2660
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2661
+ readonly payment_state: Schema.optional<Schema.String>;
2662
+ readonly execution_state: Schema.optional<Schema.String>;
2663
+ readonly occurred_at: Schema.optional<Schema.Number>;
2664
+ readonly causal_sequence: Schema.optional<Schema.Number>;
2665
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2666
+ readonly terminal_event_id: Schema.optional<Schema.String>;
2491
2667
  readonly command_id: Schema.String;
2668
+ readonly payment_lifecycle_id: Schema.String;
2492
2669
  readonly attempt: Schema.Number;
2493
2670
  readonly reason_code: Schema.String;
2494
2671
  readonly chain_id: Schema.Number;
2495
2672
  readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
2496
2673
  readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
2674
+ readonly payment_id: Schema.optional<Schema.String>;
2675
+ readonly payment_ids: Schema.optional<Schema.String>;
2676
+ readonly execution_id: Schema.optional<Schema.String>;
2677
+ readonly user_op_hash: Schema.optional<Schema.String>;
2678
+ }>;
2679
+ }>;
2680
+ readonly payment_lifecycle_transition: Schema.Struct<{
2681
+ readonly name: Schema.Literal<"payment_lifecycle_transition">;
2682
+ readonly props: Schema.Struct<{
2683
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2684
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2685
+ readonly journey_id: Schema.optional<Schema.String>;
2686
+ readonly correlation_id: Schema.optional<Schema.String>;
2687
+ readonly sdk_version: Schema.optional<Schema.String>;
2688
+ readonly recipient_locator_kind: Schema.optional<Schema.Literals<readonly ["handle", "email", "address", "party"]>>;
2689
+ readonly recipient_resolution_status: Schema.optional<Schema.Literals<readonly ["known_party", "new_email", "external_address"]>>;
2690
+ readonly recipient_party_id: Schema.optional<Schema.String>;
2691
+ readonly recipient_party_kind: Schema.optional<Schema.Literals<readonly ["person", "organization", "unresolved"]>>;
2692
+ readonly recipient_is_capxul_account: Schema.optional<Schema.Boolean>;
2693
+ readonly recipient_handle: Schema.optional<Schema.String>;
2694
+ readonly recipient_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
2695
+ readonly external_address_acknowledged: Schema.optional<Schema.Boolean>;
2696
+ readonly payment_id: Schema.String;
2697
+ readonly payment_lifecycle_id: Schema.String;
2698
+ readonly command_id: Schema.String;
2699
+ readonly payment_state: Schema.String;
2700
+ readonly occurred_at: Schema.Number;
2701
+ readonly causal_sequence: Schema.Number;
2702
+ readonly execution_id: Schema.optional<Schema.String>;
2703
+ readonly execution_state: Schema.optional<Schema.String>;
2704
+ readonly user_op_hash: Schema.optional<Schema.String>;
2705
+ readonly sponsorship_valid_until: Schema.optional<Schema.Number>;
2706
+ readonly reason_code: Schema.optional<Schema.String>;
2707
+ }>;
2708
+ }>;
2709
+ readonly quick_pay_external_address_acknowledged: Schema.Struct<{
2710
+ readonly name: Schema.Literal<"quick_pay_external_address_acknowledged">;
2711
+ readonly props: Schema.Struct<{
2712
+ readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
2713
+ readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
2714
+ readonly journey_id: Schema.optional<Schema.String>;
2715
+ readonly correlation_id: Schema.optional<Schema.String>;
2716
+ readonly sdk_version: Schema.optional<Schema.String>;
2717
+ readonly recipient_locator_kind: Schema.Literal<"address">;
2718
+ readonly recipient_resolution_status: Schema.Literal<"external_address">;
2719
+ readonly recipient_address: Schema.Codec<Address, string, never, never>;
2720
+ readonly external_address_acknowledged: Schema.Literal<true>;
2721
+ readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
2497
2722
  }>;
2498
2723
  }>;
2499
2724
  readonly deposit_initiated: Schema.Struct<{
@@ -2818,4 +3043,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
2818
3043
  reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
2819
3044
  }
2820
3045
  //#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 };
3046
+ 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",
@@ -179,6 +178,7 @@ const CAPXUL_OPERATIONS = {
179
178
  createOrganization: "identity.CreateOrganization",
180
179
  ensureAccount: "identity.EnsureAccount",
181
180
  leaveOrganization: "identity.LeaveOrganization",
181
+ loadByAuthUserId: "identity.loadByAuthUserId",
182
182
  loadCurrent: "identity.loadCurrent",
183
183
  orgAt: "identity.OrgAt",
184
184
  orgFailed: "identity.OrgFailed",
@@ -200,7 +200,7 @@ const CAPXUL_OPERATIONS = {
200
200
  signOut: "identity.SignOut",
201
201
  signOutFailed: "identity.SignOutFailed",
202
202
  update: "identity.update",
203
- usernameAvailable: "identity.usernameAvailable",
203
+ handleAvailable: "identity.handleAvailable",
204
204
  verified: "identity.Verified",
205
205
  verifyFailed: "identity.VerifyFailed",
206
206
  verifyOtp: "identity.VerifyOtp"
@@ -216,10 +216,12 @@ const CAPXUL_OPERATIONS = {
216
216
  get: "me.get"
217
217
  },
218
218
  moneyExecution: {
219
+ abandonPaymentExecution: "moneyExecution.abandonPaymentExecution",
219
220
  prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution",
220
221
  preparePaymentExecution: "moneyExecution.preparePaymentExecution",
221
222
  preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution",
222
223
  preparePermissionExecution: "moneyExecution.preparePermissionExecution",
224
+ recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims",
223
225
  submit: "moneyExecution.submit",
224
226
  submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution",
225
227
  submitPaymentExecution: "moneyExecution.submitPaymentExecution",
@@ -238,9 +240,14 @@ const CAPXUL_OPERATIONS = {
238
240
  quote: "offramp.quote",
239
241
  status: "offramp.status"
240
242
  },
241
- onboarding: { completePerson: "onboarding.completePerson" },
243
+ onboarding: {
244
+ completeOrganization: "onboarding.completeOrganization",
245
+ completePerson: "onboarding.completePerson"
246
+ },
242
247
  org: {
248
+ acceptInvitations: "org.acceptInvitations",
243
249
  account: { get: "org.account.get" },
250
+ activateMember: "org.activateMember",
244
251
  auditLog: "org.auditLog",
245
252
  confirmBootstrap: "org.confirmBootstrap",
246
253
  createOrg: "org.createOrg",
@@ -251,6 +258,7 @@ const CAPXUL_OPERATIONS = {
251
258
  getProofReceipt: "org.getProofReceipt",
252
259
  invite: "org.invite",
253
260
  inviteMember: "org.inviteMember",
261
+ list: "org.list",
254
262
  load: "org.load",
255
263
  me: "org.me",
256
264
  members: "org.members",
@@ -321,7 +329,8 @@ const CAPXUL_OPERATIONS = {
321
329
  organizationPayments: {
322
330
  pay: "organizationPayments.pay",
323
331
  payBatch: "organizationPayments.payBatch",
324
- prepareExecution: "organizationPayments.prepareExecution"
332
+ prepareExecution: "organizationPayments.prepareExecution",
333
+ retry: "organizationPayments.retry"
325
334
  },
326
335
  organizationSetup: { getProofReceipt: "organizationSetup.getProofReceipt" },
327
336
  organizations: { detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations" },
@@ -336,6 +345,7 @@ const CAPXUL_OPERATIONS = {
336
345
  prepareExecution: "payments.prepareExecution",
337
346
  prepareLifecycleExecution: "payments.prepareLifecycleExecution",
338
347
  redirect: "payments.redirect",
348
+ retry: "payments.retry",
339
349
  submitCommandExecution: "payments.submitCommandExecution",
340
350
  submitExecution: "payments.submitExecution"
341
351
  },
@@ -343,11 +353,7 @@ const CAPXUL_OPERATIONS = {
343
353
  render: "paymentDocuments.render",
344
354
  verify: "paymentDocuments.verify"
345
355
  },
346
- payees: {
347
- create: "payees.create",
348
- get: "payees.get",
349
- resolve: "payees.resolve"
350
- },
356
+ recipient: { resolve: "recipient.resolve" },
351
357
  payroll: {
352
358
  authorizeRun: "payroll.authorizeRun",
353
359
  groups: {
@@ -421,6 +427,7 @@ const CAPXUL_OPERATIONS = {
421
427
  smartAccount: {
422
428
  claim: "smartAccount.claim",
423
429
  confirmDeployment: "smartAccount.confirmDeployment",
430
+ loadByAuthUserId: "smartAccount.loadByAuthUserId",
424
431
  loadCurrent: "smartAccount.loadCurrent",
425
432
  provision: "smartAccount.provision"
426
433
  },
@@ -429,12 +436,6 @@ const CAPXUL_OPERATIONS = {
429
436
  ping: "system.ping",
430
437
  runtimeChain: "system.runtimeChain"
431
438
  },
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
439
  testUsdc: { mint: "TestUSDC.mint" },
439
440
  _internal: {
440
441
  accounts: { fund: "_internal.accounts.fund" },
@@ -506,6 +507,8 @@ const TELEMETRY_EVENT_NAMES = [
506
507
  "payment_settled",
507
508
  "payment_failed",
508
509
  "payment_verification_retry",
510
+ "payment_lifecycle_transition",
511
+ "quick_pay_external_address_acknowledged",
509
512
  "deposit_initiated",
510
513
  "deposit_settled",
511
514
  "permission_mirror_verification",
@@ -1113,32 +1116,116 @@ const OrgInviteExpiredProps = Schema.Struct({
1113
1116
  role: OptionalString,
1114
1117
  status: OptionalString
1115
1118
  });
1119
+ const RecipientLocatorKindSchema = Schema.Literals([
1120
+ "handle",
1121
+ "email",
1122
+ "address",
1123
+ "party"
1124
+ ]);
1125
+ const RecipientResolutionStatusSchema = Schema.Literals([
1126
+ "known_party",
1127
+ "new_email",
1128
+ "external_address"
1129
+ ]);
1130
+ const RecipientPartyKindSchema = Schema.Literals([
1131
+ "person",
1132
+ "organization",
1133
+ "unresolved"
1134
+ ]);
1135
+ const RecipientTelemetryProps = {
1136
+ recipient_locator_kind: Schema.optional(RecipientLocatorKindSchema),
1137
+ recipient_resolution_status: Schema.optional(RecipientResolutionStatusSchema),
1138
+ recipient_party_id: OptionalString,
1139
+ recipient_party_kind: Schema.optional(RecipientPartyKindSchema),
1140
+ recipient_is_capxul_account: Schema.optional(Schema.Boolean),
1141
+ recipient_handle: OptionalString,
1142
+ recipient_address: OptionalAddress,
1143
+ external_address_acknowledged: Schema.optional(Schema.Boolean)
1144
+ };
1116
1145
  const PaymentInitiatedProps = Schema.Struct({
1146
+ command_id: OptionalString,
1147
+ execution_id: OptionalString,
1148
+ payment_lifecycle_id: OptionalString,
1117
1149
  ...TelemetryEnvelopeProps,
1150
+ ...RecipientTelemetryProps,
1118
1151
  kind: Schema.String,
1119
1152
  payment_id: Schema.String
1120
1153
  });
1154
+ const PaymentLifecycleProps = {
1155
+ payment_state: OptionalString,
1156
+ execution_state: OptionalString,
1157
+ occurred_at: Schema.optional(Schema.Number),
1158
+ causal_sequence: Schema.optional(Schema.Number),
1159
+ sponsorship_valid_until: Schema.optional(Schema.Number),
1160
+ terminal_event_id: OptionalString
1161
+ };
1121
1162
  const PaymentSettledL2Props = Schema.Struct({
1163
+ ...PaymentLifecycleProps,
1122
1164
  ...TelemetryEnvelopeProps,
1165
+ ...RecipientTelemetryProps,
1123
1166
  kind: Schema.String,
1124
1167
  chain_id: Schema.Number,
1125
- settlement_id: Schema.String
1168
+ settlement_id: Schema.String,
1169
+ payment_id: OptionalString,
1170
+ payment_ids: OptionalString,
1171
+ command_id: OptionalString,
1172
+ payment_lifecycle_id: OptionalString,
1173
+ execution_id: OptionalString,
1174
+ user_op_hash: OptionalString,
1175
+ transaction_hash: OptionalString
1126
1176
  });
1127
1177
  const PaymentFailedL2Props = Schema.Struct({
1178
+ ...PaymentLifecycleProps,
1128
1179
  ...TelemetryEnvelopeProps,
1129
1180
  ...ChainCauseTelemetryProps,
1181
+ ...RecipientTelemetryProps,
1130
1182
  kind: Schema.String,
1131
1183
  payment_id: Schema.String,
1132
- reason_code: Schema.String
1184
+ payment_ids: OptionalString,
1185
+ reason_code: Schema.String,
1186
+ command_id: OptionalString,
1187
+ payment_lifecycle_id: OptionalString,
1188
+ execution_id: OptionalString,
1189
+ user_op_hash: OptionalString
1133
1190
  });
1134
1191
  const PaymentVerificationRetryProps = Schema.Struct({
1192
+ ...PaymentLifecycleProps,
1135
1193
  ...TelemetryEnvelopeProps,
1194
+ ...RecipientTelemetryProps,
1136
1195
  command_id: Schema.String,
1196
+ payment_lifecycle_id: Schema.String,
1137
1197
  attempt: Schema.Number,
1138
1198
  reason_code: Schema.String,
1139
1199
  chain_id: Schema.Number,
1140
1200
  delay_ms: DurationMsSchema,
1141
- outcome: Schema.Literals(["scheduled", "unresolved"])
1201
+ outcome: Schema.Literals(["scheduled", "unresolved"]),
1202
+ payment_id: OptionalString,
1203
+ payment_ids: OptionalString,
1204
+ execution_id: OptionalString,
1205
+ user_op_hash: OptionalString
1206
+ });
1207
+ const PaymentLifecycleTransitionProps = Schema.Struct({
1208
+ ...TelemetryEnvelopeProps,
1209
+ ...RecipientTelemetryProps,
1210
+ payment_id: Schema.String,
1211
+ payment_lifecycle_id: Schema.String,
1212
+ command_id: Schema.String,
1213
+ payment_state: Schema.String,
1214
+ occurred_at: Schema.Number,
1215
+ causal_sequence: Schema.Number,
1216
+ execution_id: OptionalString,
1217
+ execution_state: OptionalString,
1218
+ user_op_hash: OptionalString,
1219
+ sponsorship_valid_until: Schema.optional(Schema.Number),
1220
+ reason_code: OptionalString
1221
+ });
1222
+ const QuickPayExternalAddressAcknowledgedProps = Schema.Struct({
1223
+ ...TelemetryEnvelopeProps,
1224
+ recipient_locator_kind: Schema.Literal("address"),
1225
+ recipient_resolution_status: Schema.Literal("external_address"),
1226
+ recipient_address: AddressSchema,
1227
+ external_address_acknowledged: Schema.Literal(true),
1228
+ organization_id: OptionalOrgId
1142
1229
  });
1143
1230
  const DepositInitiatedProps = Schema.Struct({ ...TelemetryEnvelopeProps });
1144
1231
  const DepositSettledProps = Schema.Struct({
@@ -1346,6 +1433,14 @@ const PaymentVerificationRetryTelemetryEventSchema = Schema.Struct({
1346
1433
  name: Schema.Literal("payment_verification_retry"),
1347
1434
  props: PaymentVerificationRetryProps
1348
1435
  });
1436
+ const PaymentLifecycleTransitionTelemetryEventSchema = Schema.Struct({
1437
+ name: Schema.Literal("payment_lifecycle_transition"),
1438
+ props: PaymentLifecycleTransitionProps
1439
+ });
1440
+ const QuickPayExternalAddressAcknowledgedTelemetryEventSchema = Schema.Struct({
1441
+ name: Schema.Literal("quick_pay_external_address_acknowledged"),
1442
+ props: QuickPayExternalAddressAcknowledgedProps
1443
+ });
1349
1444
  const DepositInitiatedTelemetryEventSchema = Schema.Struct({
1350
1445
  name: Schema.Literal("deposit_initiated"),
1351
1446
  props: DepositInitiatedProps
@@ -1413,6 +1508,8 @@ const TELEMETRY_EVENT_SCHEMAS = {
1413
1508
  payment_settled: PaymentSettledTelemetryEventSchema,
1414
1509
  payment_failed: PaymentFailedTelemetryEventSchema,
1415
1510
  payment_verification_retry: PaymentVerificationRetryTelemetryEventSchema,
1511
+ payment_lifecycle_transition: PaymentLifecycleTransitionTelemetryEventSchema,
1512
+ quick_pay_external_address_acknowledged: QuickPayExternalAddressAcknowledgedTelemetryEventSchema,
1416
1513
  deposit_initiated: DepositInitiatedTelemetryEventSchema,
1417
1514
  deposit_settled: DepositSettledTelemetryEventSchema,
1418
1515
  permission_mirror_verification: PermissionMirrorVerificationTelemetryEventSchema,
@@ -2009,4 +2106,4 @@ function rotr(value, bits) {
2009
2106
  return value >>> bits | value << 32 - bits;
2010
2107
  }
2011
2108
  //#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 };
2109
+ 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.1",
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": {