@capxul/observability 4.2.0-rc.12 → 4.2.0-rc.14
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 +64 -3
- package/dist/index.mjs +56 -7
- 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": "ad9386dd8d539fea17964d05292fc0ca16495d2f",
|
|
4
|
+
"tree": "87b1723ed13d7be72487cbcbbfded24b0ac850e5",
|
|
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.14"
|
|
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 = {
|
|
@@ -1875,6 +1881,22 @@ declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
|
|
|
1875
1881
|
readonly anchor_block_number: Schema.Number;
|
|
1876
1882
|
}>;
|
|
1877
1883
|
}>;
|
|
1884
|
+
declare const IndexerDriftCorrectedTelemetryEventSchema: Schema.Struct<{
|
|
1885
|
+
readonly name: Schema.Literal<"indexer_drift_corrected">;
|
|
1886
|
+
readonly props: Schema.Struct<{
|
|
1887
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1888
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1889
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1890
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1891
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1892
|
+
readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement"]>;
|
|
1893
|
+
readonly previous_state: Schema.String;
|
|
1894
|
+
readonly current_state: Schema.String;
|
|
1895
|
+
readonly previous_block: Schema.optional<Schema.Number>;
|
|
1896
|
+
readonly current_block: Schema.optional<Schema.Number>;
|
|
1897
|
+
readonly logical_event_id: Schema.optional<Schema.String>;
|
|
1898
|
+
}>;
|
|
1899
|
+
}>;
|
|
1878
1900
|
declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
|
|
1879
1901
|
readonly name: Schema.Literal<"contact_relationship_changed">;
|
|
1880
1902
|
readonly props: Schema.Struct<{
|
|
@@ -2045,6 +2067,18 @@ declare const AccessRecoveryCompletedTelemetryEventSchema: Schema.Struct<{
|
|
|
2045
2067
|
readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
2046
2068
|
}>]>;
|
|
2047
2069
|
}>;
|
|
2070
|
+
/**
|
|
2071
|
+
* R05 (#1963) wired three of these steps at the app's dashboard Access
|
|
2072
|
+
* boundary: `dashboard_granted` on the commit of the granted content,
|
|
2073
|
+
* `gate_error_displayed` on the mounted error surface, and `retry_selected` on
|
|
2074
|
+
* the actual selection. `redirect_completed` stays RESERVED and unproduced —
|
|
2075
|
+
* asking for a navigation is not arriving, and the destination page's own
|
|
2076
|
+
* normalized pageview already carries the arrival on the same journey, so a
|
|
2077
|
+
* second event would add no fact. `capability_refusal_displayed` and
|
|
2078
|
+
* `signer_refusal_displayed` belong to the screens that draw those refusals
|
|
2079
|
+
* (Recipients, Invoice, Payroll, Quick Pay); Access publishes the contract and
|
|
2080
|
+
* the `CanReason` those owners report, and produces neither itself.
|
|
2081
|
+
*/
|
|
2048
2082
|
declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
|
|
2049
2083
|
readonly name: Schema.Literal<"ui_access_step_completed">;
|
|
2050
2084
|
readonly props: Schema.Struct<{
|
|
@@ -2062,6 +2096,17 @@ declare const UiAccessStepCompletedTelemetryEventSchema: Schema.Struct<{
|
|
|
2062
2096
|
readonly reason: Schema.optional<Schema.Literals<readonly ["loading", "no-permission", "org-unavailable"]>>;
|
|
2063
2097
|
}>;
|
|
2064
2098
|
}>;
|
|
2099
|
+
/**
|
|
2100
|
+
* R06 (#1964) wired three of the four progress words to the durable writer that
|
|
2101
|
+
* commits each one. `account_ready` comes from `org/memberLifecycle.ts`, for
|
|
2102
|
+
* every membership row a claimed personal Account actually advanced.
|
|
2103
|
+
* `permission_applied` and `membership_activated` come from
|
|
2104
|
+
* `permission/mirror.ts`: the first only when the mirror wrote a NEW Permission
|
|
2105
|
+
* state, the second only when that call flipped a `pending_grant` row to
|
|
2106
|
+
* `active`. A replay of an applied command writes neither, so it reports
|
|
2107
|
+
* neither. `revoked` stays RESERVED and unproduced — no writer revokes a
|
|
2108
|
+
* membership yet, and #1459 owns that ceremony.
|
|
2109
|
+
*/
|
|
2065
2110
|
declare const OrgInviteProgressedTelemetryEventSchema: Schema.Struct<{
|
|
2066
2111
|
readonly name: Schema.Literal<"org_invite_progressed">;
|
|
2067
2112
|
readonly props: Schema.Struct<{
|
|
@@ -3573,6 +3618,22 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
3573
3618
|
readonly anchor_block_number: Schema.Number;
|
|
3574
3619
|
}>;
|
|
3575
3620
|
}>;
|
|
3621
|
+
readonly indexer_drift_corrected: Schema.Struct<{
|
|
3622
|
+
readonly name: Schema.Literal<"indexer_drift_corrected">;
|
|
3623
|
+
readonly props: Schema.Struct<{
|
|
3624
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
3625
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
3626
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
3627
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
3628
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
3629
|
+
readonly projection_kind: Schema.Literals<readonly ["member_authority", "payment_settlement"]>;
|
|
3630
|
+
readonly previous_state: Schema.String;
|
|
3631
|
+
readonly current_state: Schema.String;
|
|
3632
|
+
readonly previous_block: Schema.optional<Schema.Number>;
|
|
3633
|
+
readonly current_block: Schema.optional<Schema.Number>;
|
|
3634
|
+
readonly logical_event_id: Schema.optional<Schema.String>;
|
|
3635
|
+
}>;
|
|
3636
|
+
}>;
|
|
3576
3637
|
};
|
|
3577
3638
|
declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
|
|
3578
3639
|
/**
|
|
@@ -3581,7 +3642,7 @@ declare const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS: readonly [];
|
|
|
3581
3642
|
* A domain node removes its entry when it adds the producer. The telemetry
|
|
3582
3643
|
* gate rejects an entry that has a producer.
|
|
3583
3644
|
*/
|
|
3584
|
-
declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [
|
|
3645
|
+
declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
|
|
3585
3646
|
/**
|
|
3586
3647
|
* Catalog events whose product mapper remains gated on the #1150 frontend
|
|
3587
3648
|
* adoption. L1 S1 removes their retired SDK-flow producers without inventing
|
|
@@ -3810,4 +3871,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
|
|
|
3810
3871
|
reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
|
|
3811
3872
|
}
|
|
3812
3873
|
//#endregion
|
|
3813
|
-
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 };
|
|
3874
|
+
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",
|
|
@@ -1346,6 +1351,26 @@ const MovementScanIncidentProps = Schema.Struct({
|
|
|
1346
1351
|
incident_kind: Schema.String,
|
|
1347
1352
|
anchor_block_number: Schema.Number
|
|
1348
1353
|
});
|
|
1354
|
+
/**
|
|
1355
|
+
* One durable row the reconciliation job corrected against Ponder (SPEC D9).
|
|
1356
|
+
*
|
|
1357
|
+
* Both block fields are optional and for the same reason: a correction INTO
|
|
1358
|
+
* drift (a Payment settled in Convex whose Ponder fact a reorg removed) has no
|
|
1359
|
+
* current block, and a correction that confirms a later fact has one.
|
|
1360
|
+
*
|
|
1361
|
+
* `projection_kind` is closed. A later ticket that reconciles a deploy, a
|
|
1362
|
+
* bootstrap or a grant outcome adds its kind here in the same change; an
|
|
1363
|
+
* unknown kind must not decode.
|
|
1364
|
+
*/
|
|
1365
|
+
const IndexerDriftCorrectedProps = Schema.Struct({
|
|
1366
|
+
...TelemetryEnvelopeProps,
|
|
1367
|
+
projection_kind: Schema.Literals(["member_authority", "payment_settlement"]),
|
|
1368
|
+
previous_state: Schema.String,
|
|
1369
|
+
current_state: Schema.String,
|
|
1370
|
+
previous_block: Schema.optional(Schema.Number),
|
|
1371
|
+
current_block: Schema.optional(Schema.Number),
|
|
1372
|
+
logical_event_id: Schema.optional(Schema.String)
|
|
1373
|
+
});
|
|
1349
1374
|
const AuthOtpRequestedTelemetryEventSchema = Schema.Struct({
|
|
1350
1375
|
name: Schema.Literal("auth_otp_requested"),
|
|
1351
1376
|
props: AuthOtpRequestedProps
|
|
@@ -1550,6 +1575,10 @@ const MovementScanIncidentTelemetryEventSchema = Schema.Struct({
|
|
|
1550
1575
|
name: Schema.Literal("movement_scan_incident"),
|
|
1551
1576
|
props: MovementScanIncidentProps
|
|
1552
1577
|
});
|
|
1578
|
+
const IndexerDriftCorrectedTelemetryEventSchema = Schema.Struct({
|
|
1579
|
+
name: Schema.Literal("indexer_drift_corrected"),
|
|
1580
|
+
props: IndexerDriftCorrectedProps
|
|
1581
|
+
});
|
|
1553
1582
|
/** The one spelling of "whose scope did this happen in" across every surface. */
|
|
1554
1583
|
const ScopeKindSchema = Schema.Literals(["account", "organization"]);
|
|
1555
1584
|
const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
|
|
@@ -1730,6 +1759,18 @@ const AccessRecoveryCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
1730
1759
|
name: Schema.Literal("access_recovery_completed"),
|
|
1731
1760
|
props: AccessRecoveryCompletedProps
|
|
1732
1761
|
});
|
|
1762
|
+
/**
|
|
1763
|
+
* R05 (#1963) wired three of these steps at the app's dashboard Access
|
|
1764
|
+
* boundary: `dashboard_granted` on the commit of the granted content,
|
|
1765
|
+
* `gate_error_displayed` on the mounted error surface, and `retry_selected` on
|
|
1766
|
+
* the actual selection. `redirect_completed` stays RESERVED and unproduced —
|
|
1767
|
+
* asking for a navigation is not arriving, and the destination page's own
|
|
1768
|
+
* normalized pageview already carries the arrival on the same journey, so a
|
|
1769
|
+
* second event would add no fact. `capability_refusal_displayed` and
|
|
1770
|
+
* `signer_refusal_displayed` belong to the screens that draw those refusals
|
|
1771
|
+
* (Recipients, Invoice, Payroll, Quick Pay); Access publishes the contract and
|
|
1772
|
+
* the `CanReason` those owners report, and produces neither itself.
|
|
1773
|
+
*/
|
|
1733
1774
|
const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
|
|
1734
1775
|
name: Schema.Literal("ui_access_step_completed"),
|
|
1735
1776
|
props: Schema.Struct({
|
|
@@ -1755,6 +1796,17 @@ const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
1755
1796
|
]))
|
|
1756
1797
|
})
|
|
1757
1798
|
});
|
|
1799
|
+
/**
|
|
1800
|
+
* R06 (#1964) wired three of the four progress words to the durable writer that
|
|
1801
|
+
* commits each one. `account_ready` comes from `org/memberLifecycle.ts`, for
|
|
1802
|
+
* every membership row a claimed personal Account actually advanced.
|
|
1803
|
+
* `permission_applied` and `membership_activated` come from
|
|
1804
|
+
* `permission/mirror.ts`: the first only when the mirror wrote a NEW Permission
|
|
1805
|
+
* state, the second only when that call flipped a `pending_grant` row to
|
|
1806
|
+
* `active`. A replay of an applied command writes neither, so it reports
|
|
1807
|
+
* neither. `revoked` stays RESERVED and unproduced — no writer revokes a
|
|
1808
|
+
* membership yet, and #1459 owns that ceremony.
|
|
1809
|
+
*/
|
|
1758
1810
|
const OrgInviteProgressedTelemetryEventSchema = Schema.Struct({
|
|
1759
1811
|
name: Schema.Literal("org_invite_progressed"),
|
|
1760
1812
|
props: Schema.Struct({
|
|
@@ -1956,7 +2008,8 @@ const TELEMETRY_EVENT_SCHEMAS = {
|
|
|
1956
2008
|
permission_mirror_verification: PermissionMirrorVerificationTelemetryEventSchema,
|
|
1957
2009
|
movement_scan_window: MovementScanWindowTelemetryEventSchema,
|
|
1958
2010
|
movement_scan_checkpoint: MovementScanCheckpointTelemetryEventSchema,
|
|
1959
|
-
movement_scan_incident: MovementScanIncidentTelemetryEventSchema
|
|
2011
|
+
movement_scan_incident: MovementScanIncidentTelemetryEventSchema,
|
|
2012
|
+
indexer_drift_corrected: IndexerDriftCorrectedTelemetryEventSchema
|
|
1960
2013
|
};
|
|
1961
2014
|
const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
|
|
1962
2015
|
/**
|
|
@@ -1965,11 +2018,7 @@ const FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS = [];
|
|
|
1965
2018
|
* A domain node removes its entry when it adds the producer. The telemetry
|
|
1966
2019
|
* gate rejects an entry that has a producer.
|
|
1967
2020
|
*/
|
|
1968
|
-
const CONTRACT_FIRST_TELEMETRY_EVENTS = [
|
|
1969
|
-
"org_invite_progressed",
|
|
1970
|
-
"invoice_issued",
|
|
1971
|
-
"invoice_request_transitioned"
|
|
1972
|
-
];
|
|
2021
|
+
const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
|
|
1973
2022
|
/**
|
|
1974
2023
|
* Catalog events whose product mapper remains gated on the #1150 frontend
|
|
1975
2024
|
* adoption. L1 S1 removes their retired SDK-flow producers without inventing
|
|
@@ -2572,4 +2621,4 @@ function rotr(value, bits) {
|
|
|
2572
2621
|
return value >>> bits | value << 32 - bits;
|
|
2573
2622
|
}
|
|
2574
2623
|
//#endregion
|
|
2575
|
-
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 };
|
|
2624
|
+
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.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
38
38
|
"vite-plus": "0.3.0",
|
|
39
39
|
"vitest": "4.1.11",
|
|
40
|
-
"@capxul/
|
|
40
|
+
"@capxul/errors": "0.3.0",
|
|
41
41
|
"@capxul/types": "0.3.0",
|
|
42
|
-
"@capxul/
|
|
42
|
+
"@capxul/typescript-config": "0.0.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",
|