@capxul/observability 4.0.1 → 4.1.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 +324 -4
- package/dist/index.mjs +205 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -196,12 +196,14 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
196
196
|
};
|
|
197
197
|
readonly activity: {
|
|
198
198
|
readonly annotate: "activity.annotate";
|
|
199
|
+
readonly emitAnnotationSaved: "activity.emitAnnotationSaved";
|
|
199
200
|
readonly get: "activity.get";
|
|
200
201
|
readonly list: "activity.list";
|
|
201
202
|
readonly summary: "activity.summary";
|
|
202
203
|
};
|
|
203
204
|
readonly addressBook: {
|
|
204
205
|
readonly add: "addressBook.add";
|
|
206
|
+
readonly emitRelationshipChanged: "addressBook.emitRelationshipChanged";
|
|
205
207
|
readonly get: "addressBook.get";
|
|
206
208
|
readonly hide: "addressBook.hide";
|
|
207
209
|
readonly label: "addressBook.label";
|
|
@@ -598,7 +600,7 @@ interface TelemetryPort {
|
|
|
598
600
|
}
|
|
599
601
|
//#endregion
|
|
600
602
|
//#region src/index.d.ts
|
|
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"];
|
|
603
|
+
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", "activity_annotation_saved", "ui_activity_action_completed", "contact_relationship_changed", "ui_contact_action_completed"];
|
|
602
604
|
type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
|
|
603
605
|
type NonEmptyTelemetryEventNames = readonly [TelemetryEventName, ...TelemetryEventName[]];
|
|
604
606
|
type FunnelStepPropertyFilter = {
|
|
@@ -1741,6 +1743,19 @@ declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
|
1741
1743
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1742
1744
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1743
1745
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1746
|
+
readonly scope_kind: Schema.optional<Schema.Literals<readonly ["account", "organization"]>>;
|
|
1747
|
+
readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
|
|
1748
|
+
readonly chain_id: Schema.optional<Schema.Number>;
|
|
1749
|
+
readonly network: Schema.optional<Schema.Literal<"base-sepolia">>;
|
|
1750
|
+
readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
1751
|
+
readonly $groups: Schema.optional<Schema.Struct<{
|
|
1752
|
+
readonly organization: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
1753
|
+
}>>;
|
|
1754
|
+
readonly actor_id: Schema.optional<Schema.String>;
|
|
1755
|
+
readonly actor_kind: Schema.optional<Schema.Literal<"authenticated">>;
|
|
1756
|
+
readonly distinct_id: Schema.optional<Schema.String>;
|
|
1757
|
+
readonly trace_id: Schema.optional<Schema.String>;
|
|
1758
|
+
readonly span_id: Schema.optional<Schema.String>;
|
|
1744
1759
|
}>;
|
|
1745
1760
|
}>;
|
|
1746
1761
|
declare const DepositSettledTelemetryEventSchema: Schema.Struct<{
|
|
@@ -1815,7 +1830,299 @@ declare const MovementScanIncidentTelemetryEventSchema: Schema.Struct<{
|
|
|
1815
1830
|
readonly anchor_block_number: Schema.Number;
|
|
1816
1831
|
}>;
|
|
1817
1832
|
}>;
|
|
1833
|
+
declare const ContactRelationshipChangedTelemetryEventSchema: Schema.Struct<{
|
|
1834
|
+
readonly name: Schema.Literal<"contact_relationship_changed">;
|
|
1835
|
+
readonly props: Schema.Struct<{
|
|
1836
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1837
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1838
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1839
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1840
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1841
|
+
readonly change: Schema.Literals<readonly ["added", "renamed", "hidden", "restored"]>;
|
|
1842
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1843
|
+
readonly scope_id: Schema.String;
|
|
1844
|
+
readonly owner_party_id: Schema.String;
|
|
1845
|
+
readonly party_id: Schema.String;
|
|
1846
|
+
readonly hidden: Schema.Boolean;
|
|
1847
|
+
readonly occurred_at: Schema.Number;
|
|
1848
|
+
readonly operation: Schema.Literals<readonly ["addressBook.add", "addressBook.label", "addressBook.hide", "addressBook.unhide"]>;
|
|
1849
|
+
}>;
|
|
1850
|
+
}>;
|
|
1851
|
+
declare const UiContactActionCompletedTelemetryEventSchema: Schema.Struct<{
|
|
1852
|
+
readonly name: Schema.Literal<"ui_contact_action_completed">;
|
|
1853
|
+
readonly props: Schema.Union<readonly [Schema.Struct<{
|
|
1854
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1855
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1856
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1857
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1858
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1859
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1860
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
1861
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1862
|
+
readonly action: Schema.Literal<"add">;
|
|
1863
|
+
readonly outcome: Schema.Literals<readonly ["opened", "cancelled"]>;
|
|
1864
|
+
}>, Schema.Struct<{
|
|
1865
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1866
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1867
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1868
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1869
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1870
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1871
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
1872
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1873
|
+
readonly action: Schema.Literal<"refusal">;
|
|
1874
|
+
readonly outcome: Schema.Literal<"displayed">;
|
|
1875
|
+
}>, Schema.Struct<{
|
|
1876
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1877
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1878
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1879
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1880
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1881
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1882
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
1883
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1884
|
+
readonly action: Schema.Literal<"retry">;
|
|
1885
|
+
readonly outcome: Schema.Literal<"requested">;
|
|
1886
|
+
}>]>;
|
|
1887
|
+
}>;
|
|
1888
|
+
declare const ActivityAnnotationSavedTelemetryEventSchema: Schema.Struct<{
|
|
1889
|
+
readonly name: Schema.Literal<"activity_annotation_saved">;
|
|
1890
|
+
readonly props: Schema.Struct<{
|
|
1891
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1892
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1893
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1894
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1895
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1896
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
1897
|
+
readonly reference_id: Schema.String;
|
|
1898
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1899
|
+
readonly scope_id: Schema.String;
|
|
1900
|
+
readonly occurred_at: Schema.Number;
|
|
1901
|
+
}>;
|
|
1902
|
+
}>;
|
|
1903
|
+
declare const UiActivityActionCompletedTelemetryEventSchema: Schema.Struct<{
|
|
1904
|
+
readonly name: Schema.Literal<"ui_activity_action_completed">;
|
|
1905
|
+
readonly props: Schema.Union<readonly [Schema.Struct<{
|
|
1906
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1907
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1908
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1909
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1910
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1911
|
+
readonly filter_kind: Schema.optional<Schema.Literals<readonly ["all", "payment", "movement"]>>;
|
|
1912
|
+
readonly filter_direction: Schema.optional<Schema.Literals<readonly ["all", "in", "out", "self"]>>;
|
|
1913
|
+
readonly filter_status: Schema.optional<Schema.$Array<Schema.Literals<readonly ["pending", "settling", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "failed"]>>>;
|
|
1914
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1915
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1916
|
+
readonly action: Schema.Literal<"filter">;
|
|
1917
|
+
readonly outcome: Schema.Literal<"committed">;
|
|
1918
|
+
}>, Schema.Struct<{
|
|
1919
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1920
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1921
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1922
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1923
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1924
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1925
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1926
|
+
readonly action: Schema.Literal<"refusal">;
|
|
1927
|
+
readonly outcome: Schema.Literal<"displayed">;
|
|
1928
|
+
}>, Schema.Struct<{
|
|
1929
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1930
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1931
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1932
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1933
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1934
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1935
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1936
|
+
readonly action: Schema.Literal<"retry">;
|
|
1937
|
+
readonly outcome: Schema.Literal<"requested">;
|
|
1938
|
+
}>, Schema.Struct<{
|
|
1939
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1940
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1941
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1942
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1943
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1944
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
1945
|
+
readonly reference_id: Schema.String;
|
|
1946
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1947
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1948
|
+
readonly action: Schema.Literal<"detail">;
|
|
1949
|
+
readonly outcome: Schema.Literals<readonly ["opened", "failed"]>;
|
|
1950
|
+
}>, Schema.Struct<{
|
|
1951
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1952
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1953
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1954
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1955
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1956
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
1957
|
+
readonly reference_id: Schema.String;
|
|
1958
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1959
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1960
|
+
readonly action: Schema.Literal<"receipt">;
|
|
1961
|
+
readonly outcome: Schema.Literals<readonly ["document_rendered", "explorer_opened", "popup_blocked", "failed"]>;
|
|
1962
|
+
}>, Schema.Struct<{
|
|
1963
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1964
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1965
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1966
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1967
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1968
|
+
readonly filter_kind: Schema.optional<Schema.Literals<readonly ["all", "payment", "movement"]>>;
|
|
1969
|
+
readonly filter_direction: Schema.optional<Schema.Literals<readonly ["all", "in", "out", "self"]>>;
|
|
1970
|
+
readonly filter_status: Schema.optional<Schema.$Array<Schema.Literals<readonly ["pending", "settling", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "failed"]>>>;
|
|
1971
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1972
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
1973
|
+
readonly action: Schema.Literal<"export">;
|
|
1974
|
+
readonly outcome: Schema.Literals<readonly ["completed", "partial", "failed"]>;
|
|
1975
|
+
readonly row_count: Schema.optional<Schema.Number>;
|
|
1976
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
1977
|
+
}>]>;
|
|
1978
|
+
}>;
|
|
1818
1979
|
declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
1980
|
+
readonly contact_relationship_changed: Schema.Struct<{
|
|
1981
|
+
readonly name: Schema.Literal<"contact_relationship_changed">;
|
|
1982
|
+
readonly props: Schema.Struct<{
|
|
1983
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
1984
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
1985
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
1986
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1987
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1988
|
+
readonly change: Schema.Literals<readonly ["added", "renamed", "hidden", "restored"]>;
|
|
1989
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
1990
|
+
readonly scope_id: Schema.String;
|
|
1991
|
+
readonly owner_party_id: Schema.String;
|
|
1992
|
+
readonly party_id: Schema.String;
|
|
1993
|
+
readonly hidden: Schema.Boolean;
|
|
1994
|
+
readonly occurred_at: Schema.Number;
|
|
1995
|
+
readonly operation: Schema.Literals<readonly ["addressBook.add", "addressBook.label", "addressBook.hide", "addressBook.unhide"]>;
|
|
1996
|
+
}>;
|
|
1997
|
+
}>;
|
|
1998
|
+
readonly ui_contact_action_completed: Schema.Struct<{
|
|
1999
|
+
readonly name: Schema.Literal<"ui_contact_action_completed">;
|
|
2000
|
+
readonly props: Schema.Union<readonly [Schema.Struct<{
|
|
2001
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2002
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2003
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2004
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2005
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2006
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2007
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
2008
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2009
|
+
readonly action: Schema.Literal<"add">;
|
|
2010
|
+
readonly outcome: Schema.Literals<readonly ["opened", "cancelled"]>;
|
|
2011
|
+
}>, Schema.Struct<{
|
|
2012
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2013
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2014
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2015
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2016
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2017
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2018
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
2019
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2020
|
+
readonly action: Schema.Literal<"refusal">;
|
|
2021
|
+
readonly outcome: Schema.Literal<"displayed">;
|
|
2022
|
+
}>, Schema.Struct<{
|
|
2023
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2024
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2025
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2026
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2027
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2028
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2029
|
+
readonly party_id: Schema.optional<Schema.String>;
|
|
2030
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2031
|
+
readonly action: Schema.Literal<"retry">;
|
|
2032
|
+
readonly outcome: Schema.Literal<"requested">;
|
|
2033
|
+
}>]>;
|
|
2034
|
+
}>;
|
|
2035
|
+
readonly activity_annotation_saved: Schema.Struct<{
|
|
2036
|
+
readonly name: Schema.Literal<"activity_annotation_saved">;
|
|
2037
|
+
readonly props: Schema.Struct<{
|
|
2038
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2039
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2040
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2041
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2042
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2043
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
2044
|
+
readonly reference_id: Schema.String;
|
|
2045
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2046
|
+
readonly scope_id: Schema.String;
|
|
2047
|
+
readonly occurred_at: Schema.Number;
|
|
2048
|
+
}>;
|
|
2049
|
+
}>;
|
|
2050
|
+
readonly ui_activity_action_completed: Schema.Struct<{
|
|
2051
|
+
readonly name: Schema.Literal<"ui_activity_action_completed">;
|
|
2052
|
+
readonly props: Schema.Union<readonly [Schema.Struct<{
|
|
2053
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2054
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2055
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2056
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2057
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2058
|
+
readonly filter_kind: Schema.optional<Schema.Literals<readonly ["all", "payment", "movement"]>>;
|
|
2059
|
+
readonly filter_direction: Schema.optional<Schema.Literals<readonly ["all", "in", "out", "self"]>>;
|
|
2060
|
+
readonly filter_status: Schema.optional<Schema.$Array<Schema.Literals<readonly ["pending", "settling", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "failed"]>>>;
|
|
2061
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2062
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2063
|
+
readonly action: Schema.Literal<"filter">;
|
|
2064
|
+
readonly outcome: Schema.Literal<"committed">;
|
|
2065
|
+
}>, Schema.Struct<{
|
|
2066
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2067
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2068
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2069
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2070
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2071
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2072
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2073
|
+
readonly action: Schema.Literal<"refusal">;
|
|
2074
|
+
readonly outcome: Schema.Literal<"displayed">;
|
|
2075
|
+
}>, Schema.Struct<{
|
|
2076
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2077
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2078
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2079
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2080
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2081
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2082
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2083
|
+
readonly action: Schema.Literal<"retry">;
|
|
2084
|
+
readonly outcome: Schema.Literal<"requested">;
|
|
2085
|
+
}>, Schema.Struct<{
|
|
2086
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2087
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2088
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2089
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2090
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2091
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
2092
|
+
readonly reference_id: Schema.String;
|
|
2093
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2094
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2095
|
+
readonly action: Schema.Literal<"detail">;
|
|
2096
|
+
readonly outcome: Schema.Literals<readonly ["opened", "failed"]>;
|
|
2097
|
+
}>, Schema.Struct<{
|
|
2098
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2099
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2100
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2101
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2102
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2103
|
+
readonly reference_kind: Schema.Literals<readonly ["payment", "movement"]>;
|
|
2104
|
+
readonly reference_id: Schema.String;
|
|
2105
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2106
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2107
|
+
readonly action: Schema.Literal<"receipt">;
|
|
2108
|
+
readonly outcome: Schema.Literals<readonly ["document_rendered", "explorer_opened", "popup_blocked", "failed"]>;
|
|
2109
|
+
}>, Schema.Struct<{
|
|
2110
|
+
readonly capxul_env: Schema.Literals<readonly ["development", "staging", "production", "unknown", "local"]>;
|
|
2111
|
+
readonly producer: Schema.Literals<readonly ["server", "browser", "sdk", "mcp", "e2e"]>;
|
|
2112
|
+
readonly journey_id: Schema.optional<Schema.String>;
|
|
2113
|
+
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2114
|
+
readonly sdk_version: Schema.optional<Schema.String>;
|
|
2115
|
+
readonly filter_kind: Schema.optional<Schema.Literals<readonly ["all", "payment", "movement"]>>;
|
|
2116
|
+
readonly filter_direction: Schema.optional<Schema.Literals<readonly ["all", "in", "out", "self"]>>;
|
|
2117
|
+
readonly filter_status: Schema.optional<Schema.$Array<Schema.Literals<readonly ["pending", "settling", "pending_claim", "scheduled", "streaming", "settled", "cancelled", "failed"]>>>;
|
|
2118
|
+
readonly scope_kind: Schema.Literals<readonly ["account", "organization"]>;
|
|
2119
|
+
readonly reason_code: Schema.optional<Schema.Literals<readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "ACCOUNT_CLAIMED_BY_OTHER_SIGNER", "PROVIDER_ERROR", "CAPABILITY_UNAVAILABLE", "INVALID_INPUT", "ENV_MISSING", "NOT_IMPLEMENTED", "VERIFICATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RECIPIENT", "ROLE_PERMISSION_DENIED", "TRANSACTION_FAILED", "RATE_LIMITED", "NETWORK_ERROR", "UNKNOWN", "OTP_EXPIRED", "SIGNER_REJECTED", "CANCELLED", "WRONG_STATE", "STALE_EPOCH", "SUPERSEDED", "WORK_DIED", "ACTOR_STOPPED"]>>;
|
|
2120
|
+
readonly action: Schema.Literal<"export">;
|
|
2121
|
+
readonly outcome: Schema.Literals<readonly ["completed", "partial", "failed"]>;
|
|
2122
|
+
readonly row_count: Schema.optional<Schema.Number>;
|
|
2123
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
2124
|
+
}>]>;
|
|
2125
|
+
}>;
|
|
1819
2126
|
readonly auth_otp_requested: Schema.Struct<{
|
|
1820
2127
|
readonly name: Schema.Literal<"auth_otp_requested">;
|
|
1821
2128
|
readonly props: Schema.Struct<{
|
|
@@ -2729,6 +3036,19 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
2729
3036
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
2730
3037
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
2731
3038
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
3039
|
+
readonly scope_kind: Schema.optional<Schema.Literals<readonly ["account", "organization"]>>;
|
|
3040
|
+
readonly account_kind: Schema.optional<Schema.Literals<readonly ["personalSafe", "orgTreasury"]>>;
|
|
3041
|
+
readonly chain_id: Schema.optional<Schema.Number>;
|
|
3042
|
+
readonly network: Schema.optional<Schema.Literal<"base-sepolia">>;
|
|
3043
|
+
readonly organization_id: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
3044
|
+
readonly $groups: Schema.optional<Schema.Struct<{
|
|
3045
|
+
readonly organization: Schema.optional<Schema.Codec<string, string, never, never>>;
|
|
3046
|
+
}>>;
|
|
3047
|
+
readonly actor_id: Schema.optional<Schema.String>;
|
|
3048
|
+
readonly actor_kind: Schema.optional<Schema.Literal<"authenticated">>;
|
|
3049
|
+
readonly distinct_id: Schema.optional<Schema.String>;
|
|
3050
|
+
readonly trace_id: Schema.optional<Schema.String>;
|
|
3051
|
+
readonly span_id: Schema.optional<Schema.String>;
|
|
2732
3052
|
}>;
|
|
2733
3053
|
}>;
|
|
2734
3054
|
readonly deposit_settled: Schema.Struct<{
|
|
@@ -2820,8 +3140,8 @@ declare const CONTRACT_FIRST_TELEMETRY_EVENTS: readonly [];
|
|
|
2820
3140
|
* its real product-boundary producer.
|
|
2821
3141
|
*/
|
|
2822
3142
|
declare const PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS: readonly ["auth_otp_expired"];
|
|
2823
|
-
/** Catalogued browser observations whose
|
|
2824
|
-
declare const BROWSER_GATED_TELEMETRY_EVENTS: readonly ["onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached"];
|
|
3143
|
+
/** Catalogued browser observations whose producers remain owned by app adoption. */
|
|
3144
|
+
declare const BROWSER_GATED_TELEMETRY_EVENTS: readonly ["onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "ui_activity_action_completed", "ui_contact_action_completed"];
|
|
2825
3145
|
interface TelemetryIdentifyInput {
|
|
2826
3146
|
readonly distinctId: string;
|
|
2827
3147
|
readonly anonDistinctId?: AnonymousDistinctId;
|
|
@@ -3043,4 +3363,4 @@ declare class InMemoryTelemetryBusAdapter implements TelemetryPort {
|
|
|
3043
3363
|
reportHandledError(_error: CapxulError, _context?: HandledErrorReportContext): Effect.Effect<void, never>;
|
|
3044
3364
|
}
|
|
3045
3365
|
//#endregion
|
|
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 };
|
|
3366
|
+
export { 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, 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, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,39 @@ const CHAIN_UPSTREAMS = [
|
|
|
35
35
|
"gateway"
|
|
36
36
|
];
|
|
37
37
|
//#endregion
|
|
38
|
+
//#region ../errors/src/errors.ts
|
|
39
|
+
const CAPXUL_ERROR_CODES = [
|
|
40
|
+
"NOT_AUTHENTICATED",
|
|
41
|
+
"EMAIL_DELIVERY_FAILED",
|
|
42
|
+
"PROFILE_NOT_FOUND",
|
|
43
|
+
"SMART_ACCOUNT_MISSING",
|
|
44
|
+
"PLAYER_NOT_FOUND",
|
|
45
|
+
"ACCOUNT_NOT_FOUND",
|
|
46
|
+
"ACCOUNT_CLAIMED_BY_OTHER_SIGNER",
|
|
47
|
+
"PROVIDER_ERROR",
|
|
48
|
+
"CAPABILITY_UNAVAILABLE",
|
|
49
|
+
"INVALID_INPUT",
|
|
50
|
+
"ENV_MISSING",
|
|
51
|
+
"NOT_IMPLEMENTED",
|
|
52
|
+
"VERIFICATION_REQUIRED",
|
|
53
|
+
"INSUFFICIENT_BALANCE",
|
|
54
|
+
"INVALID_RECIPIENT",
|
|
55
|
+
"ROLE_PERMISSION_DENIED",
|
|
56
|
+
"TRANSACTION_FAILED",
|
|
57
|
+
"RATE_LIMITED",
|
|
58
|
+
"NETWORK_ERROR",
|
|
59
|
+
"UNKNOWN",
|
|
60
|
+
"OTP_EXPIRED",
|
|
61
|
+
"SIGNER_REJECTED",
|
|
62
|
+
"CANCELLED",
|
|
63
|
+
"WRONG_STATE",
|
|
64
|
+
"STALE_EPOCH",
|
|
65
|
+
"SUPERSEDED",
|
|
66
|
+
"WORK_DIED",
|
|
67
|
+
"ACTOR_STOPPED"
|
|
68
|
+
];
|
|
69
|
+
new Set(CAPXUL_ERROR_CODES);
|
|
70
|
+
//#endregion
|
|
38
71
|
//#region ../types/src/index.ts
|
|
39
72
|
const EVM_ADDRESS_RE = /^0x[0-9a-f]{40}$/i;
|
|
40
73
|
const BYTES32_RE = /^0x[0-9a-f]{64}$/i;
|
|
@@ -110,12 +143,14 @@ const CAPXUL_OPERATIONS = {
|
|
|
110
143
|
},
|
|
111
144
|
activity: {
|
|
112
145
|
annotate: "activity.annotate",
|
|
146
|
+
emitAnnotationSaved: "activity.emitAnnotationSaved",
|
|
113
147
|
get: "activity.get",
|
|
114
148
|
list: "activity.list",
|
|
115
149
|
summary: "activity.summary"
|
|
116
150
|
},
|
|
117
151
|
addressBook: {
|
|
118
152
|
add: "addressBook.add",
|
|
153
|
+
emitRelationshipChanged: "addressBook.emitRelationshipChanged",
|
|
119
154
|
get: "addressBook.get",
|
|
120
155
|
hide: "addressBook.hide",
|
|
121
156
|
label: "addressBook.label",
|
|
@@ -514,7 +549,11 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
514
549
|
"permission_mirror_verification",
|
|
515
550
|
"movement_scan_window",
|
|
516
551
|
"movement_scan_checkpoint",
|
|
517
|
-
"movement_scan_incident"
|
|
552
|
+
"movement_scan_incident",
|
|
553
|
+
"activity_annotation_saved",
|
|
554
|
+
"ui_activity_action_completed",
|
|
555
|
+
"contact_relationship_changed",
|
|
556
|
+
"ui_contact_action_completed"
|
|
518
557
|
];
|
|
519
558
|
const TELEMETRY_JOURNEYS = {
|
|
520
559
|
returning_user_login: {
|
|
@@ -1227,7 +1266,20 @@ const QuickPayExternalAddressAcknowledgedProps = Schema.Struct({
|
|
|
1227
1266
|
external_address_acknowledged: Schema.Literal(true),
|
|
1228
1267
|
organization_id: OptionalOrgId
|
|
1229
1268
|
});
|
|
1230
|
-
const DepositInitiatedProps = Schema.Struct({
|
|
1269
|
+
const DepositInitiatedProps = Schema.Struct({
|
|
1270
|
+
...TelemetryEnvelopeProps,
|
|
1271
|
+
scope_kind: Schema.optional(Schema.Literals(["account", "organization"])),
|
|
1272
|
+
account_kind: Schema.optional(Schema.Literals(["personalSafe", "orgTreasury"])),
|
|
1273
|
+
chain_id: Schema.optional(Schema.Number),
|
|
1274
|
+
network: Schema.optional(Schema.Literal("base-sepolia")),
|
|
1275
|
+
organization_id: OptionalOrgId,
|
|
1276
|
+
$groups: Schema.optional(Schema.Struct({ organization: OptionalOrgId })),
|
|
1277
|
+
actor_id: OptionalString,
|
|
1278
|
+
actor_kind: Schema.optional(Schema.Literal("authenticated")),
|
|
1279
|
+
distinct_id: OptionalString,
|
|
1280
|
+
trace_id: OptionalString,
|
|
1281
|
+
span_id: OptionalString
|
|
1282
|
+
});
|
|
1231
1283
|
const DepositSettledProps = Schema.Struct({
|
|
1232
1284
|
...TelemetryEnvelopeProps,
|
|
1233
1285
|
chain_id: Schema.Number,
|
|
@@ -1465,7 +1517,153 @@ const MovementScanIncidentTelemetryEventSchema = Schema.Struct({
|
|
|
1465
1517
|
name: Schema.Literal("movement_scan_incident"),
|
|
1466
1518
|
props: MovementScanIncidentProps
|
|
1467
1519
|
});
|
|
1520
|
+
const ActivityReferenceProps = {
|
|
1521
|
+
reference_kind: Schema.Literals(["payment", "movement"]),
|
|
1522
|
+
reference_id: Schema.String
|
|
1523
|
+
};
|
|
1524
|
+
const ActivityFilterProps = {
|
|
1525
|
+
filter_kind: Schema.optional(Schema.Literals([
|
|
1526
|
+
"all",
|
|
1527
|
+
"payment",
|
|
1528
|
+
"movement"
|
|
1529
|
+
])),
|
|
1530
|
+
filter_direction: Schema.optional(Schema.Literals([
|
|
1531
|
+
"all",
|
|
1532
|
+
"in",
|
|
1533
|
+
"out",
|
|
1534
|
+
"self"
|
|
1535
|
+
])),
|
|
1536
|
+
filter_status: Schema.optional(Schema.Array(Schema.Literals([
|
|
1537
|
+
"pending",
|
|
1538
|
+
"settling",
|
|
1539
|
+
"pending_claim",
|
|
1540
|
+
"scheduled",
|
|
1541
|
+
"streaming",
|
|
1542
|
+
"settled",
|
|
1543
|
+
"cancelled",
|
|
1544
|
+
"failed"
|
|
1545
|
+
])))
|
|
1546
|
+
};
|
|
1547
|
+
const ActivityActionProps = {
|
|
1548
|
+
...TelemetryEnvelopeProps,
|
|
1549
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1550
|
+
reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
|
|
1551
|
+
};
|
|
1552
|
+
const ContactRelationshipChangedTelemetryEventSchema = Schema.Struct({
|
|
1553
|
+
name: Schema.Literal("contact_relationship_changed"),
|
|
1554
|
+
props: Schema.Struct({
|
|
1555
|
+
...TelemetryEnvelopeProps,
|
|
1556
|
+
change: Schema.Literals([
|
|
1557
|
+
"added",
|
|
1558
|
+
"renamed",
|
|
1559
|
+
"hidden",
|
|
1560
|
+
"restored"
|
|
1561
|
+
]),
|
|
1562
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1563
|
+
scope_id: Schema.String,
|
|
1564
|
+
owner_party_id: Schema.String,
|
|
1565
|
+
party_id: Schema.String,
|
|
1566
|
+
hidden: Schema.Boolean,
|
|
1567
|
+
occurred_at: Schema.Number,
|
|
1568
|
+
operation: Schema.Literals([
|
|
1569
|
+
CAPXUL_OPERATIONS.addressBook.add,
|
|
1570
|
+
CAPXUL_OPERATIONS.addressBook.label,
|
|
1571
|
+
CAPXUL_OPERATIONS.addressBook.hide,
|
|
1572
|
+
CAPXUL_OPERATIONS.addressBook.unhide
|
|
1573
|
+
])
|
|
1574
|
+
})
|
|
1575
|
+
});
|
|
1576
|
+
const ContactActionProps = {
|
|
1577
|
+
...TelemetryEnvelopeProps,
|
|
1578
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1579
|
+
party_id: OptionalString,
|
|
1580
|
+
reason_code: Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES))
|
|
1581
|
+
};
|
|
1582
|
+
const UiContactActionCompletedTelemetryEventSchema = Schema.Struct({
|
|
1583
|
+
name: Schema.Literal("ui_contact_action_completed"),
|
|
1584
|
+
props: Schema.Union([
|
|
1585
|
+
Schema.Struct({
|
|
1586
|
+
...ContactActionProps,
|
|
1587
|
+
action: Schema.Literal("add"),
|
|
1588
|
+
outcome: Schema.Literals(["opened", "cancelled"])
|
|
1589
|
+
}),
|
|
1590
|
+
Schema.Struct({
|
|
1591
|
+
...ContactActionProps,
|
|
1592
|
+
action: Schema.Literal("refusal"),
|
|
1593
|
+
outcome: Schema.Literal("displayed")
|
|
1594
|
+
}),
|
|
1595
|
+
Schema.Struct({
|
|
1596
|
+
...ContactActionProps,
|
|
1597
|
+
action: Schema.Literal("retry"),
|
|
1598
|
+
outcome: Schema.Literal("requested")
|
|
1599
|
+
})
|
|
1600
|
+
])
|
|
1601
|
+
});
|
|
1602
|
+
const ActivityAnnotationSavedTelemetryEventSchema = Schema.Struct({
|
|
1603
|
+
name: Schema.Literal("activity_annotation_saved"),
|
|
1604
|
+
props: Schema.Struct({
|
|
1605
|
+
...TelemetryEnvelopeProps,
|
|
1606
|
+
...ActivityReferenceProps,
|
|
1607
|
+
scope_kind: Schema.Literals(["account", "organization"]),
|
|
1608
|
+
scope_id: Schema.String,
|
|
1609
|
+
occurred_at: Schema.Number
|
|
1610
|
+
})
|
|
1611
|
+
});
|
|
1612
|
+
const UiActivityActionCompletedTelemetryEventSchema = Schema.Struct({
|
|
1613
|
+
name: Schema.Literal("ui_activity_action_completed"),
|
|
1614
|
+
props: Schema.Union([
|
|
1615
|
+
Schema.Struct({
|
|
1616
|
+
...ActivityActionProps,
|
|
1617
|
+
...ActivityFilterProps,
|
|
1618
|
+
action: Schema.Literal("filter"),
|
|
1619
|
+
outcome: Schema.Literal("committed")
|
|
1620
|
+
}),
|
|
1621
|
+
Schema.Struct({
|
|
1622
|
+
...ActivityActionProps,
|
|
1623
|
+
action: Schema.Literal("refusal"),
|
|
1624
|
+
outcome: Schema.Literal("displayed")
|
|
1625
|
+
}),
|
|
1626
|
+
Schema.Struct({
|
|
1627
|
+
...ActivityActionProps,
|
|
1628
|
+
action: Schema.Literal("retry"),
|
|
1629
|
+
outcome: Schema.Literal("requested")
|
|
1630
|
+
}),
|
|
1631
|
+
Schema.Struct({
|
|
1632
|
+
...ActivityActionProps,
|
|
1633
|
+
...ActivityReferenceProps,
|
|
1634
|
+
action: Schema.Literal("detail"),
|
|
1635
|
+
outcome: Schema.Literals(["opened", "failed"])
|
|
1636
|
+
}),
|
|
1637
|
+
Schema.Struct({
|
|
1638
|
+
...ActivityActionProps,
|
|
1639
|
+
...ActivityReferenceProps,
|
|
1640
|
+
action: Schema.Literal("receipt"),
|
|
1641
|
+
outcome: Schema.Literals([
|
|
1642
|
+
"document_rendered",
|
|
1643
|
+
"explorer_opened",
|
|
1644
|
+
"popup_blocked",
|
|
1645
|
+
"failed"
|
|
1646
|
+
])
|
|
1647
|
+
}),
|
|
1648
|
+
Schema.Struct({
|
|
1649
|
+
...ActivityActionProps,
|
|
1650
|
+
...ActivityFilterProps,
|
|
1651
|
+
action: Schema.Literal("export"),
|
|
1652
|
+
outcome: Schema.Literals([
|
|
1653
|
+
"completed",
|
|
1654
|
+
"partial",
|
|
1655
|
+
"failed"
|
|
1656
|
+
]),
|
|
1657
|
+
row_count: Schema.optional(Schema.Number),
|
|
1658
|
+
truncated: Schema.optional(Schema.Boolean)
|
|
1659
|
+
})
|
|
1660
|
+
])
|
|
1661
|
+
});
|
|
1468
1662
|
const TELEMETRY_EVENT_SCHEMAS = {
|
|
1663
|
+
contact_relationship_changed: ContactRelationshipChangedTelemetryEventSchema,
|
|
1664
|
+
ui_contact_action_completed: UiContactActionCompletedTelemetryEventSchema,
|
|
1665
|
+
activity_annotation_saved: ActivityAnnotationSavedTelemetryEventSchema,
|
|
1666
|
+
ui_activity_action_completed: UiActivityActionCompletedTelemetryEventSchema,
|
|
1469
1667
|
auth_otp_requested: AuthOtpRequestedTelemetryEventSchema,
|
|
1470
1668
|
auth_otp_delivered: AuthOtpDeliveredTelemetryEventSchema,
|
|
1471
1669
|
auth_otp_expired: AuthOtpExpiredTelemetryEventSchema,
|
|
@@ -1533,12 +1731,14 @@ const CONTRACT_FIRST_TELEMETRY_EVENTS = [];
|
|
|
1533
1731
|
* its real product-boundary producer.
|
|
1534
1732
|
*/
|
|
1535
1733
|
const PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS = ["auth_otp_expired"];
|
|
1536
|
-
/** Catalogued browser observations whose
|
|
1734
|
+
/** Catalogued browser observations whose producers remain owned by app adoption. */
|
|
1537
1735
|
const BROWSER_GATED_TELEMETRY_EVENTS = [
|
|
1538
1736
|
"onboarding_intent_selected",
|
|
1539
1737
|
"onboarding_profile_submitted",
|
|
1540
1738
|
"onboarding_organization_submitted",
|
|
1541
|
-
"onboarding_dashboard_reached"
|
|
1739
|
+
"onboarding_dashboard_reached",
|
|
1740
|
+
"ui_activity_action_completed",
|
|
1741
|
+
"ui_contact_action_completed"
|
|
1542
1742
|
];
|
|
1543
1743
|
let trackHandler = () => {};
|
|
1544
1744
|
function setTrackHandler(handler) {
|
|
@@ -2106,4 +2306,4 @@ function rotr(value, bits) {
|
|
|
2106
2306
|
return value >>> bits | value << 32 - bits;
|
|
2107
2307
|
}
|
|
2108
2308
|
//#endregion
|
|
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 };
|
|
2309
|
+
export { 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, 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, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|