@capxul/observability 4.2.0-rc.13 → 4.2.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capxul-source.json +3 -3
- package/dist/index.d.mts +58 -3
- package/dist/index.mjs +61 -8
- package/package.json +3 -3
package/dist/capxul-source.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": {
|
|
3
|
-
"commit": "
|
|
4
|
-
"tree": "
|
|
3
|
+
"commit": "b2dff9052ea3f3a55dfca98530c02b4ac3bcfa96",
|
|
4
|
+
"tree": "9fc0a21bc2cb477c62dd9f5c44c4977d74548d94",
|
|
5
5
|
"branch": "codex/programme-rc",
|
|
6
6
|
"repository": "https://github.com/Xelmar-tech/infrastructure",
|
|
7
7
|
"lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
|
|
8
8
|
},
|
|
9
9
|
"name": "@capxul/observability",
|
|
10
|
-
"version": "4.2.0-rc.
|
|
10
|
+
"version": "4.2.0-rc.15"
|
|
11
11
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -254,6 +254,8 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
254
254
|
readonly cancelRequest: "financialOps.cancelRequest";
|
|
255
255
|
readonly createPayee: "financialOps.createPayee";
|
|
256
256
|
readonly declineRequest: "financialOps.declineRequest";
|
|
257
|
+
readonly emitInvoiceIssued: "financialOps.emitInvoiceIssued";
|
|
258
|
+
readonly emitInvoiceRequestTransitioned: "financialOps.emitInvoiceRequestTransitioned";
|
|
257
259
|
readonly emitPaymentWriterTelemetry: "financialOps.emitPaymentWriterTelemetry";
|
|
258
260
|
readonly issueRequest: "financialOps.issueRequest";
|
|
259
261
|
readonly recoverSettlementVerification: "financialOps.recoverSettlementVerification";
|
|
@@ -264,6 +266,9 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
264
266
|
readonly current: "holdings.current";
|
|
265
267
|
readonly primary: "holdings.primary";
|
|
266
268
|
};
|
|
269
|
+
readonly indexer: {
|
|
270
|
+
readonly reconcile: "indexer.reconcile";
|
|
271
|
+
};
|
|
267
272
|
readonly identity: {
|
|
268
273
|
readonly accountAt: "identity.AccountAt";
|
|
269
274
|
readonly accountClaimed: "identity.AccountClaimed";
|
|
@@ -355,6 +360,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
355
360
|
readonly createOrg: "org.createOrg";
|
|
356
361
|
readonly create: "org.create";
|
|
357
362
|
readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
|
|
363
|
+
readonly emitInviteProgressed: "org.emitInviteProgressed";
|
|
358
364
|
readonly expireInvitations: "org.expireInvitations";
|
|
359
365
|
readonly getLifecycle: "org.getLifecycle";
|
|
360
366
|
readonly getProofReceipt: "org.getProofReceipt";
|
|
@@ -604,7 +610,7 @@ interface TelemetryPort {
|
|
|
604
610
|
}
|
|
605
611
|
//#endregion
|
|
606
612
|
//#region src/index.d.ts
|
|
607
|
-
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "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", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed"];
|
|
613
|
+
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "identity_refused", "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", "indexer_drift_corrected", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed", "access_recovery_completed", "ui_access_step_completed", "org_invite_progressed", "invoice_issued", "invoice_request_transitioned", "ui_invoice_step_completed", "ui_treasury_step_completed", "ui_receive_step_completed", "payroll_group_changed", "payroll_run_transitioned", "ui_payroll_action_completed"];
|
|
608
614
|
type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
|
|
609
615
|
type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
|
|
610
616
|
type FunnelStepPropertyFilter = {
|
|
@@ -1229,6 +1235,9 @@ declare const AccountBalanceReadTelemetryEventSchema: Schema.Struct<{
|
|
|
1229
1235
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1230
1236
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1231
1237
|
readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
|
|
1238
|
+
readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
|
|
1239
|
+
readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
|
|
1240
|
+
readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
|
|
1232
1241
|
readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
|
|
1233
1242
|
readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
|
|
1234
1243
|
readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
@@ -1875,6 +1884,22 @@ declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
|
|
|
1875
1884
|
readonly anchor_block_number: Schema.Number;
|
|
1876
1885
|
}>;
|
|
1877
1886
|
}>;
|
|
1887
|
+
declare const IndexerDriftCorrectedTelemetryEventSchema: Schema.Struct<{
|
|
1888
|
+
readonly name: Schema.Literal<"indexer_drift_corrected">;
|
|
1889
|
+
readonly props: Schema.Struct<{
|
|
1890
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1891
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1892
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1893
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1894
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1895
|
+
readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement"]>;
|
|
1896
|
+
readonly previous_state: Schema.String;
|
|
1897
|
+
readonly current_state: Schema.String;
|
|
1898
|
+
readonly previous_block: Schema.optional<Schema.Number>;
|
|
1899
|
+
readonly current_block: Schema.optional<Schema.Number>;
|
|
1900
|
+
readonly logical_event_id: Schema.optional<Schema.String>;
|
|
1901
|
+
}>;
|
|
1902
|
+
}>;
|
|
1878
1903
|
declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
|
|
1879
1904
|
readonly name: Schema.Literal<"contact_relationship_changed">;
|
|
1880
1905
|
readonly props: Schema.Struct<{
|
|
@@ -2074,6 +2099,17 @@ declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
|
|
|
2074
2099
|
readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
|
|
2075
2100
|
}>;
|
|
2076
2101
|
}>;
|
|
2102
|
+
/**
|
|
2103
|
+
* R06 (#1964) wired three of the four progress words to the durable writer that
|
|
2104
|
+
* commits each one. `account_ready` comes from `org/memberLifecycle.ts`, for
|
|
2105
|
+
* every membership row a claimed personal Account actually advanced.
|
|
2106
|
+
* `permission_applied` and `membership_activated` come from
|
|
2107
|
+
* `permission/mirror.ts`: the first only when the mirror wrote a NEW Permission
|
|
2108
|
+
* state, the second only when that call flipped a `pending_grant` row to
|
|
2109
|
+
* `active`. A replay of an applied command writes neither, so it reports
|
|
2110
|
+
* neither. `revoked` stays RESERVED and unproduced — no writer revokes a
|
|
2111
|
+
* membership yet, and #1459 owns that ceremony.
|
|
2112
|
+
*/
|
|
2077
2113
|
declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
|
|
2078
2114
|
readonly name: Schema.Literal<"org_invite_progressed">;
|
|
2079
2115
|
readonly props: Schema.Struct<{
|
|
@@ -2939,6 +2975,9 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2939
2975
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2940
2976
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2941
2977
|
readonly account_id: Schema.optional<Schema.Codec<AccountId, string, never, never>>;
|
|
2978
|
+
readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
|
|
2979
|
+
readonly chain_id: Schema.optional<Schema.Codec<ChainId, number, never, never>>;
|
|
2980
|
+
readonly token_address: Schema.optional<Schema.Codec<Address, string, never, never>>;
|
|
2942
2981
|
readonly currency: Schema.optional<Schema.Codec<CurrencyCode, string, never, never>>;
|
|
2943
2982
|
readonly balance_bucket: Schema.optional<Schema.Literals<readonly ["zero", "nonzero"]>>;
|
|
2944
2983
|
readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
@@ -3585,6 +3624,22 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
3585
3624
|
readonly anchor_block_number: Schema.Number;
|
|
3586
3625
|
}>;
|
|
3587
3626
|
}>;
|
|
3627
|
+
readonly indexer_drift_corrected: Schema.Struct<{
|
|
3628
|
+
readonly name: Schema.Literal<"indexer_drift_corrected">;
|
|
3629
|
+
readonly props: Schema.Struct<{
|
|
3630
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
3631
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
3632
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
3633
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
3634
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
3635
|
+
readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement"]>;
|
|
3636
|
+
readonly previous_state: Schema.String;
|
|
3637
|
+
readonly current_state: Schema.String;
|
|
3638
|
+
readonly previous_block: Schema.optional<Schema.Number>;
|
|
3639
|
+
readonly current_block: Schema.optional<Schema.Number>;
|
|
3640
|
+
readonly logical_event_id: Schema.optional<Schema.String>;
|
|
3641
|
+
}>;
|
|
3642
|
+
}>;
|
|
3588
3643
|
};
|
|
3589
3644
|
declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
|
|
3590
3645
|
/**
|
|
@@ -3593,7 +3648,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
|
|
|
3593
3648
|
* A domain node removes its entry when it adds the producer. The telemetry
|
|
3594
3649
|
* gate rejects an entry that has a producer.
|
|
3595
3650
|
*/
|
|
3596
|
-
declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [
|
|
3651
|
+
declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
|
|
3597
3652
|
/**
|
|
3598
3653
|
* Catalog events whose product mapper remains gated on the #1150 frontend
|
|
3599
3654
|
* adoption. L1 S1 removes their retired SDK-flow producers without inventing
|
|
@@ -3822,4 +3877,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
|
|
|
3822
3877
|
reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
|
|
3823
3878
|
}
|
|
3824
3879
|
//#endregion
|
|
3825
|
-
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, 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, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, 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, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
3880
|
+
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, 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, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, FunnelJourney, FunnelStepPropertyFilter, type HandledErrorReportContext, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InitializePostHogBrowserAnalyticsInput, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, Journey, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NonEmptyTelemetryEventNames, type NormalizedCapxulOperation, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, 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, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
package/dist/index.mjs
CHANGED
|
@@ -159,6 +159,8 @@ const CAPXUL_OPERATIONS = {
|
|
|
159
159
|
cancelRequest: "financialOps.cancelRequest",
|
|
160
160
|
createPayee: "financialOps.createPayee",
|
|
161
161
|
declineRequest: "financialOps.declineRequest",
|
|
162
|
+
emitInvoiceIssued: "financialOps.emitInvoiceIssued",
|
|
163
|
+
emitInvoiceRequestTransitioned: "financialOps.emitInvoiceRequestTransitioned",
|
|
162
164
|
emitPaymentWriterTelemetry: "financialOps.emitPaymentWriterTelemetry",
|
|
163
165
|
issueRequest: "financialOps.issueRequest",
|
|
164
166
|
recoverSettlementVerification: "financialOps.recoverSettlementVerification",
|
|
@@ -169,6 +171,7 @@ const CAPXUL_OPERATIONS = {
|
|
|
169
171
|
current: "holdings.current",
|
|
170
172
|
primary: "holdings.primary"
|
|
171
173
|
},
|
|
174
|
+
indexer: { reconcile: "indexer.reconcile" },
|
|
172
175
|
identity: {
|
|
173
176
|
accountAt: "identity.AccountAt",
|
|
174
177
|
accountClaimed: "identity.AccountClaimed",
|
|
@@ -258,6 +261,7 @@ const CAPXUL_OPERATIONS = {
|
|
|
258
261
|
createOrg: "org.createOrg",
|
|
259
262
|
create: "org.create",
|
|
260
263
|
detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations",
|
|
264
|
+
emitInviteProgressed: "org.emitInviteProgressed",
|
|
261
265
|
expireInvitations: "org.expireInvitations",
|
|
262
266
|
getLifecycle: "org.getLifecycle",
|
|
263
267
|
getProofReceipt: "org.getProofReceipt",
|
|
@@ -523,6 +527,7 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
523
527
|
"movement_scan_window",
|
|
524
528
|
"movement_scan_checkpoint",
|
|
525
529
|
"movement_scan_incident",
|
|
530
|
+
"indexer_drift_corrected",
|
|
526
531
|
"activity_annotation_saved",
|
|
527
532
|
"ui_activity_action_completed",
|
|
528
533
|
"contact_relationship_changed",
|
|
@@ -735,6 +740,10 @@ const OptionalAccountId = Schema.optional(AccountIdSchema);
|
|
|
735
740
|
const OptionalWeiAmount = Schema.optional(WeiAmountSchema);
|
|
736
741
|
const OptionalCurrencyCode = Schema.optional(CurrencyCodeSchema);
|
|
737
742
|
const OptionalBalanceBucket = Schema.optional(BalanceBucketSchema);
|
|
743
|
+
/** Which Safe a money record is about. Declared here so the money-domain
|
|
744
|
+
* props below can name it as well as the UI-step props further down. */
|
|
745
|
+
const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
|
|
746
|
+
const OptionalAccountKind = Schema.optional(AccountKindSchema);
|
|
738
747
|
const OptionalAddress = Schema.optional(AddressSchema);
|
|
739
748
|
const OptionalAppId = Schema.optional(AppIdSchema);
|
|
740
749
|
const OptionalBlockNumber = Schema.optional(BlockNumberSchema);
|
|
@@ -930,9 +939,22 @@ const BootstrapFailedProps = Schema.Struct({
|
|
|
930
939
|
reason: OptionalString,
|
|
931
940
|
target_host: OptionalString
|
|
932
941
|
});
|
|
942
|
+
/**
|
|
943
|
+
* R08 (#1966): which Safe was read, on which chain, of which token. `currency`
|
|
944
|
+
* is the DISPLAY code the surface shows ("USD"); it never says which ERC-20 the
|
|
945
|
+
* `balanceOf` actually hit, so a reader could not tell a treasury read from a
|
|
946
|
+
* personal one, nor USDX from any other dollar-labelled token. The producer
|
|
947
|
+
* takes each of these from the authority that already decided it — the verified
|
|
948
|
+
* Organization row's chain, the configured token address — never from a label.
|
|
949
|
+
* The verified `organization_id` and its group arrive from the backend
|
|
950
|
+
* attribution, so they are not repeated here.
|
|
951
|
+
*/
|
|
933
952
|
const AccountBalanceReadProps = Schema.Struct({
|
|
934
953
|
...TelemetryEnvelopeProps,
|
|
935
954
|
account_id: OptionalAccountId,
|
|
955
|
+
account_kind: OptionalAccountKind,
|
|
956
|
+
chain_id: OptionalChainId,
|
|
957
|
+
token_address: OptionalAddress,
|
|
936
958
|
currency: OptionalCurrencyCode,
|
|
937
959
|
balance_bucket: OptionalBalanceBucket,
|
|
938
960
|
durationMs: OptionalDurationMs
|
|
@@ -1346,6 +1368,26 @@ const MovementScanIncidentProps = Schema.Struct({
|
|
|
1346
1368
|
incident_kind: Schema.String,
|
|
1347
1369
|
anchor_block_number: Schema.Number
|
|
1348
1370
|
});
|
|
1371
|
+
/**
|
|
1372
|
+
* One durable row the reconciliation job corrected against Ponder (SPEC D9).
|
|
1373
|
+
*
|
|
1374
|
+
* Both block fields are optional and for the same reason: a correction INTO
|
|
1375
|
+
* drift (a Payment settled in Convex whose Ponder fact a reorg removed) has no
|
|
1376
|
+
* current block, and a correction that confirms a later fact has one.
|
|
1377
|
+
*
|
|
1378
|
+
* `projection_kind` is closed. A later ticket that reconciles a deploy, a
|
|
1379
|
+
* bootstrap or a grant outcome adds its kind here in the same change; an
|
|
1380
|
+
* unknown kind must not decode.
|
|
1381
|
+
*/
|
|
1382
|
+
const IndexerDriftCorrectedProps = Schema.Struct({
|
|
1383
|
+
...TelemetryEnvelopeProps,
|
|
1384
|
+
projection_kind: Schema.Literals(["member_authority", "payment_settlement"]),
|
|
1385
|
+
previous_state: Schema.String,
|
|
1386
|
+
current_state: Schema.String,
|
|
1387
|
+
previous_block: Schema.optional(Schema.Number),
|
|
1388
|
+
current_block: Schema.optional(Schema.Number),
|
|
1389
|
+
logical_event_id: Schema.optional(Schema.String)
|
|
1390
|
+
});
|
|
1349
1391
|
const AuthOtpRequestedTelemetryEventSchema = Schema.Struct({
|
|
1350
1392
|
name: Schema.Literal("auth_otp_requested"),
|
|
1351
1393
|
props: AuthOtpRequestedProps
|
|
@@ -1550,9 +1592,12 @@ const MovementScanIncidentTelemetryEventSchema = Schema.Struct({
|
|
|
1550
1592
|
name: Schema.Literal("movement_scan_incident"),
|
|
1551
1593
|
props: MovementScanIncidentProps
|
|
1552
1594
|
});
|
|
1595
|
+
const IndexerDriftCorrectedTelemetryEventSchema = Schema.Struct({
|
|
1596
|
+
name: Schema.Literal("indexer_drift_corrected"),
|
|
1597
|
+
props: IndexerDriftCorrectedProps
|
|
1598
|
+
});
|
|
1553
1599
|
/** The one spelling of "whose scope did this happen in" across every surface. */
|
|
1554
1600
|
const ScopeKindSchema = Schema.Literals(["account", "organization"]);
|
|
1555
|
-
const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
|
|
1556
1601
|
const OptionalReasonCode = Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES));
|
|
1557
1602
|
const ActivityReferenceProps = {
|
|
1558
1603
|
reference_kind: Schema.Literals(["payment", "movement"]),
|
|
@@ -1767,6 +1812,17 @@ const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
1767
1812
|
]))
|
|
1768
1813
|
})
|
|
1769
1814
|
});
|
|
1815
|
+
/**
|
|
1816
|
+
* R06 (#1964) wired three of the four progress words to the durable writer that
|
|
1817
|
+
* commits each one. `account_ready` comes from `org/memberLifecycle.ts`, for
|
|
1818
|
+
* every membership row a claimed personal Account actually advanced.
|
|
1819
|
+
* `permission_applied` and `membership_activated` come from
|
|
1820
|
+
* `permission/mirror.ts`: the first only when the mirror wrote a NEW Permission
|
|
1821
|
+
* state, the second only when that call flipped a `pending_grant` row to
|
|
1822
|
+
* `active`. A replay of an applied command writes neither, so it reports
|
|
1823
|
+
* neither. `revoked` stays RESERVED and unproduced — no writer revokes a
|
|
1824
|
+
* membership yet, and #1459 owns that ceremony.
|
|
1825
|
+
*/
|
|
1770
1826
|
const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
|
|
1771
1827
|
name: Schema.Literal("org_invite_progressed"),
|
|
1772
1828
|
props: Schema.Struct({
|
|
@@ -1968,7 +2024,8 @@ const TELEMETRY_EVENT_SCHEMAS = {
|
|
|
1968
2024
|
permission_mirror_verification: PermissionMirrorVerificationTelemetryEventSchema,
|
|
1969
2025
|
movement_scan_window: MovementScanWindowTelemetryEventSchema,
|
|
1970
2026
|
movement_scan_checkpoint: MovementScanCheckpointTelemetryEventSchema,
|
|
1971
|
-
movement_scan_incident: MovementScanIncidentTelemetryEventSchema
|
|
2027
|
+
movement_scan_incident: MovementScanIncidentTelemetryEventSchema,
|
|
2028
|
+
indexer_drift_corrected: IndexerDriftCorrectedTelemetryEventSchema
|
|
1972
2029
|
};
|
|
1973
2030
|
const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
|
|
1974
2031
|
/**
|
|
@@ -1977,11 +2034,7 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
|
|
|
1977
2034
|
* A domain node removes its entry when it adds the producer. The telemetry
|
|
1978
2035
|
* gate rejects an entry that has a producer.
|
|
1979
2036
|
*/
|
|
1980
|
-
const CONTRACT_FIRST_TELEMETRY_EVENTS = [
|
|
1981
|
-
"org_invite_progressed",
|
|
1982
|
-
"invoice_issued",
|
|
1983
|
-
"invoice_request_transitioned"
|
|
1984
|
-
];
|
|
2037
|
+
const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
|
|
1985
2038
|
/**
|
|
1986
2039
|
* Catalog events whose product mapper remains gated on the #1150 frontend
|
|
1987
2040
|
* adoption. L1 S1 removes their retired SDK-flow producers without inventing
|
|
@@ -2584,4 +2637,4 @@ function rotr(value, bits) {
|
|
|
2584
2637
|
return value >>> bits | value << 32 - bits;
|
|
2585
2638
|
}
|
|
2586
2639
|
//#endregion
|
|
2587
|
-
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
2640
|
+
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgCreateFailedTelemetryEventSchema, OrgCreateStartedTelemetryEventSchema, OrgCreatedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrgRolesSeededTelemetryEventSchema, OrgSafeConfirmedTelemetryEventSchema, OrgSafeCreatedTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, PostHogTelemetryAdapter, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/observability",
|
|
3
|
-
"version": "4.2.0-rc.
|
|
3
|
+
"version": "4.2.0-rc.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"vite-plus": "0.3.0",
|
|
39
39
|
"vitest": "4.1.11",
|
|
40
40
|
"@capxul/errors": "0.3.0",
|
|
41
|
-
"@capxul/
|
|
42
|
-
"@capxul/
|
|
41
|
+
"@capxul/typescript-config": "0.0.0",
|
|
42
|
+
"@capxul/types": "0.3.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",
|