@capxul/observability 2.7.0 → 2.8.2
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 +42 -24
- package/dist/index.mjs +11 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,8 @@ declare const FAILURE_MODES: readonly [
|
|
|
16
16
|
"app-env-allowlist",
|
|
17
17
|
/** Sandboxed/headless browser with no Web Crypto. */
|
|
18
18
|
"no-secure-context",
|
|
19
|
+
/** The embedded wallet lost its configured signer state. */
|
|
20
|
+
"signer-not-ready",
|
|
19
21
|
/** One upstream answered HTTP 429 or JSON-RPC -32005. Retryable. */
|
|
20
22
|
"rate-limited",
|
|
21
23
|
/** No answer inside the budget. Retryable. */
|
|
@@ -62,7 +64,7 @@ type ChainCause = {
|
|
|
62
64
|
};
|
|
63
65
|
//#endregion
|
|
64
66
|
//#region ../errors/src/errors.d.ts
|
|
65
|
-
declare const CAPXUL_ERROR_CODES: readonly ["NOT_AUTHENTICATED", "EMAIL_DELIVERY_FAILED", "PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING", "PLAYER_NOT_FOUND", "ACCOUNT_NOT_FOUND", "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"];
|
|
67
|
+
declare const CAPXUL_ERROR_CODES: 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"];
|
|
66
68
|
type CapxulErrorCode = (typeof CAPXUL_ERROR_CODES)[number];
|
|
67
69
|
type CapxulErrorDetails = Record<string, unknown>;
|
|
68
70
|
type CapxulErrorOptions = {
|
|
@@ -352,7 +354,7 @@ type TelemetryProducer = (typeof TELEMETRY_PRODUCERS)[number];
|
|
|
352
354
|
* failure came from the chain path. Spread into every failure event and posted
|
|
353
355
|
* on `$exception`, so one PostHog filter finds a cause wherever it was seen.
|
|
354
356
|
*/
|
|
355
|
-
declare const FailureModeSchema: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
357
|
+
declare const FailureModeSchema: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
356
358
|
declare const ChainUpstreamSchema: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
357
359
|
interface TelemetryEnvelopeDefaults {
|
|
358
360
|
readonly capxul_env: CapxulEnv;
|
|
@@ -422,7 +424,7 @@ declare const AuthFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
422
424
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
423
425
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
424
426
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
425
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
427
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
426
428
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
427
429
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
428
430
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -543,7 +545,7 @@ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
543
545
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
544
546
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
545
547
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
546
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
548
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
547
549
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
548
550
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
549
551
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -556,7 +558,10 @@ declare const BootstrapFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
556
558
|
readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
|
|
557
559
|
readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
558
560
|
readonly origin: Schema.optional<Schema.String>;
|
|
561
|
+
readonly provider: Schema.optional<Schema.String>;
|
|
562
|
+
readonly provider_operation: Schema.optional<Schema.String>;
|
|
559
563
|
readonly reason: Schema.optional<Schema.String>;
|
|
564
|
+
readonly target_host: Schema.optional<Schema.String>;
|
|
560
565
|
}>;
|
|
561
566
|
}>;
|
|
562
567
|
declare const MemberActivationStartedTelemetryEventSchema: Schema.Struct<{
|
|
@@ -590,7 +595,7 @@ declare const MemberActivationFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
590
595
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
591
596
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
592
597
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
593
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
598
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
594
599
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
595
600
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
596
601
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -641,7 +646,7 @@ declare const OrganizationCreationFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
641
646
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
642
647
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
643
648
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
644
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
649
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
645
650
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
646
651
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
647
652
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -684,7 +689,7 @@ declare const AccountBalanceFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
684
689
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
685
690
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
686
691
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
687
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
692
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
688
693
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
689
694
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
690
695
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -731,7 +736,7 @@ declare const FaucetFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
731
736
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
732
737
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
733
738
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
734
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
739
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
735
740
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
736
741
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
737
742
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -756,7 +761,7 @@ declare const ChainUpstreamFallbackTelemetryEventSchema: Schema.Struct<{
|
|
|
756
761
|
readonly method: Schema.String;
|
|
757
762
|
readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
758
763
|
readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
759
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
764
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
760
765
|
readonly exhausted: Schema.Boolean;
|
|
761
766
|
readonly http_status: Schema.optional<Schema.Number>;
|
|
762
767
|
readonly rpc_code: Schema.optional<Schema.Number>;
|
|
@@ -771,7 +776,7 @@ declare const BundlerErrorTelemetryEventSchema: Schema.Struct<{
|
|
|
771
776
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
772
777
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
773
778
|
readonly method: Schema.String;
|
|
774
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
779
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
775
780
|
readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
776
781
|
readonly chain_retryable: Schema.Boolean;
|
|
777
782
|
readonly http_status: Schema.optional<Schema.Number>;
|
|
@@ -803,7 +808,10 @@ declare const OperationRetriedTelemetryEventSchema: Schema.Struct<{
|
|
|
803
808
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
804
809
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
805
810
|
readonly operation: Schema.String;
|
|
806
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
811
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
812
|
+
readonly reason: Schema.optional<Schema.Literal<"connection-lost-in-flight">>;
|
|
813
|
+
readonly connection_id: Schema.optional<Schema.String>;
|
|
814
|
+
readonly connection_count: Schema.optional<Schema.Number>;
|
|
807
815
|
readonly attempt: Schema.Number;
|
|
808
816
|
readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
809
817
|
}>;
|
|
@@ -884,7 +892,7 @@ declare const OrgCreateFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
884
892
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
885
893
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
886
894
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
887
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
895
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
888
896
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
889
897
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
890
898
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -973,7 +981,7 @@ declare const PaymentFailedTelemetryEventSchema: Schema.Struct<{
|
|
|
973
981
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
974
982
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
975
983
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
976
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
984
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
977
985
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
978
986
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
979
987
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1000,6 +1008,8 @@ declare const PaymentVerificationRetryTelemetryEventSchema: Schema.Struct<{
|
|
|
1000
1008
|
readonly attempt: Schema.Number;
|
|
1001
1009
|
readonly reason_code: Schema.String;
|
|
1002
1010
|
readonly chain_id: Schema.Number;
|
|
1011
|
+
readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
1012
|
+
readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
|
|
1003
1013
|
}>;
|
|
1004
1014
|
}>;
|
|
1005
1015
|
declare const DepositInitiatedTelemetryEventSchema: Schema.Struct<{
|
|
@@ -1142,7 +1152,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1142
1152
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1143
1153
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1144
1154
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1145
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1155
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1146
1156
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1147
1157
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1148
1158
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1263,7 +1273,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1263
1273
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1264
1274
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1265
1275
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1266
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1276
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1267
1277
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1268
1278
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1269
1279
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1276,7 +1286,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1276
1286
|
readonly applicationId: Schema.optional<Schema.Codec<AppId, string, never, never>>;
|
|
1277
1287
|
readonly durationMs: Schema.optional<Schema.Codec<DurationMs, number, never, never>>;
|
|
1278
1288
|
readonly origin: Schema.optional<Schema.String>;
|
|
1289
|
+
readonly provider: Schema.optional<Schema.String>;
|
|
1290
|
+
readonly provider_operation: Schema.optional<Schema.String>;
|
|
1279
1291
|
readonly reason: Schema.optional<Schema.String>;
|
|
1292
|
+
readonly target_host: Schema.optional<Schema.String>;
|
|
1280
1293
|
}>;
|
|
1281
1294
|
}>;
|
|
1282
1295
|
readonly member_activation_started: Schema.Struct<{
|
|
@@ -1310,7 +1323,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1310
1323
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1311
1324
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1312
1325
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1313
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1326
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1314
1327
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1315
1328
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1316
1329
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1361,7 +1374,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1361
1374
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1362
1375
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1363
1376
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1364
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1377
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1365
1378
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1366
1379
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1367
1380
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1404,7 +1417,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1404
1417
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1405
1418
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1406
1419
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1407
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1420
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1408
1421
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1409
1422
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1410
1423
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1451,7 +1464,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1451
1464
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1452
1465
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1453
1466
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1454
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1467
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1455
1468
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1456
1469
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1457
1470
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1476,7 +1489,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1476
1489
|
readonly method: Schema.String;
|
|
1477
1490
|
readonly from_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
1478
1491
|
readonly to_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1479
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1492
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1480
1493
|
readonly exhausted: Schema.Boolean;
|
|
1481
1494
|
readonly http_status: Schema.optional<Schema.Number>;
|
|
1482
1495
|
readonly rpc_code: Schema.optional<Schema.Number>;
|
|
@@ -1491,7 +1504,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1491
1504
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1492
1505
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1493
1506
|
readonly method: Schema.String;
|
|
1494
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1507
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1495
1508
|
readonly chain_upstream: Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>;
|
|
1496
1509
|
readonly chain_retryable: Schema.Boolean;
|
|
1497
1510
|
readonly http_status: Schema.optional<Schema.Number>;
|
|
@@ -1523,7 +1536,10 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1523
1536
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1524
1537
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1525
1538
|
readonly operation: Schema.String;
|
|
1526
|
-
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1539
|
+
readonly failure_mode: Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>;
|
|
1540
|
+
readonly reason: Schema.optional<Schema.Literal<"connection-lost-in-flight">>;
|
|
1541
|
+
readonly connection_id: Schema.optional<Schema.String>;
|
|
1542
|
+
readonly connection_count: Schema.optional<Schema.Number>;
|
|
1527
1543
|
readonly attempt: Schema.Number;
|
|
1528
1544
|
readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
1529
1545
|
}>;
|
|
@@ -1604,7 +1620,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1604
1620
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1605
1621
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1606
1622
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1607
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1623
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1608
1624
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1609
1625
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1610
1626
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1693,7 +1709,7 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1693
1709
|
readonly journey_id: Schema.optional<Schema.String>;
|
|
1694
1710
|
readonly correlation_id: Schema.optional<Schema.String>;
|
|
1695
1711
|
readonly sdk_version: Schema.optional<Schema.String>;
|
|
1696
|
-
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1712
|
+
readonly failure_mode: Schema.optional<Schema.Literals<readonly ["auth-origin-mismatch", "stale-openfort-cache", "app-env-allowlist", "no-secure-context", "signer-not-ready", "rate-limited", "timeout", "upstream-down", "revert", "insufficient-balance", "insufficient-allowance", "rejected", "unauthorized", "unknown"]>>;
|
|
1697
1713
|
readonly chain_upstream: Schema.optional<Schema.Literals<readonly ["alchemy", "infura", "public", "alto", "gateway"]>>;
|
|
1698
1714
|
readonly chain_method: Schema.optional<Schema.String>;
|
|
1699
1715
|
readonly chain_retryable: Schema.optional<Schema.Boolean>;
|
|
@@ -1720,6 +1736,8 @@ declare const TELEMETRY_EVENT_SCHEMAS: {
|
|
|
1720
1736
|
readonly attempt: Schema.Number;
|
|
1721
1737
|
readonly reason_code: Schema.String;
|
|
1722
1738
|
readonly chain_id: Schema.Number;
|
|
1739
|
+
readonly delay_ms: Schema.Codec<DurationMs, number, never, never>;
|
|
1740
|
+
readonly outcome: Schema.Literals<readonly ["scheduled", "unresolved"]>;
|
|
1723
1741
|
}>;
|
|
1724
1742
|
}>;
|
|
1725
1743
|
readonly deposit_initiated: Schema.Struct<{
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ const FAILURE_MODES = [
|
|
|
12
12
|
"stale-openfort-cache",
|
|
13
13
|
"app-env-allowlist",
|
|
14
14
|
"no-secure-context",
|
|
15
|
+
"signer-not-ready",
|
|
15
16
|
"rate-limited",
|
|
16
17
|
"timeout",
|
|
17
18
|
"upstream-down",
|
|
@@ -468,7 +469,10 @@ const BootstrapFailedProps = Schema.Struct({
|
|
|
468
469
|
applicationId: OptionalAppId,
|
|
469
470
|
durationMs: OptionalDurationMs,
|
|
470
471
|
origin: OptionalString,
|
|
471
|
-
|
|
472
|
+
provider: OptionalString,
|
|
473
|
+
provider_operation: OptionalString,
|
|
474
|
+
reason: OptionalString,
|
|
475
|
+
target_host: OptionalString
|
|
472
476
|
});
|
|
473
477
|
const AccountBalanceReadProps = Schema.Struct({
|
|
474
478
|
...TelemetryEnvelopeProps,
|
|
@@ -533,6 +537,9 @@ const OperationRetriedProps = Schema.Struct({
|
|
|
533
537
|
...TelemetryEnvelopeProps,
|
|
534
538
|
operation: Schema.String,
|
|
535
539
|
failure_mode: FailureModeSchema,
|
|
540
|
+
reason: Schema.optional(Schema.Literal("connection-lost-in-flight")),
|
|
541
|
+
connection_id: OptionalString,
|
|
542
|
+
connection_count: Schema.optional(Schema.Number),
|
|
536
543
|
attempt: Schema.Number,
|
|
537
544
|
delay_ms: DurationMsSchema
|
|
538
545
|
});
|
|
@@ -709,7 +716,9 @@ const PaymentVerificationRetryProps = Schema.Struct({
|
|
|
709
716
|
command_id: Schema.String,
|
|
710
717
|
attempt: Schema.Number,
|
|
711
718
|
reason_code: Schema.String,
|
|
712
|
-
chain_id: Schema.Number
|
|
719
|
+
chain_id: Schema.Number,
|
|
720
|
+
delay_ms: DurationMsSchema,
|
|
721
|
+
outcome: Schema.Literals(["scheduled", "unresolved"])
|
|
713
722
|
});
|
|
714
723
|
const DepositInitiatedProps = Schema.Struct({ ...TelemetryEnvelopeProps });
|
|
715
724
|
const DepositSettledProps = Schema.Struct({
|