@capxul/observability 4.20.0-beta.35 → 4.20.0-beta.37
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/README.md +3 -0
- package/dist/engineering.d.mts +9 -0
- package/dist/engineering.mjs +232 -129
- package/dist/index.d.mts +222 -170
- package/dist/index.mjs +2 -2
- package/dist/{src-C_wvz630.mjs → src-CkM01SMk.mjs} +181 -30
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, EXCEPTION_EVENT_NAME, EXPECTED_OUTCOME_EVENT_NAME, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, JOURNEYS, JourneyVariantProps, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, RETIRED_TELEMETRY_EVENTS, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SDK_EXPECTED_OUTCOME_EVENT_NAME, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiApprovalSignInRequiredTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, VerificationApprovedTelemetryEventSchema, VerificationInformationRequestedTelemetryEventSchema, VerificationLivenessRequestedTelemetryEventSchema, VerificationRejectedTelemetryEventSchema, VerificationStartedTelemetryEventSchema, VerificationSubmittedTelemetryEventSchema, VerificationTermsAcceptedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
1
|
+
import { $ as AuthSignedOutTelemetryEventSchema, $t as CAPXUL_ENVS, A as BootstrapResolvedTelemetryEventSchema, At as OrganizationCreationFailedTelemetryEventSchema, B as CliCommandCompletedTelemetryEventSchema, Bt as DepositInitiatedTelemetryEventSchema, C as VerificationInformationRequestedTelemetryEventSchema, Ct as MovementScanWindowTelemetryEventSchema, D as VerificationSubmittedTelemetryEventSchema, Dt as OrgInviteExpiredTelemetryEventSchema, E as VerificationStartedTelemetryEventSchema, Et as OrgInviteAcceptedTelemetryEventSchema, F as OnboardingIntentSelectedTelemetryEventSchema, Ft as ChainUpstreamFallbackTelemetryEventSchema, G as CLI_COMMAND_NAMES, Gt as PaymentFailedTelemetryEventSchema, H as CliDiagnosticCompletedTelemetryEventSchema, Ht as FaucetConfirmedTelemetryEventSchema, I as OnboardingOrganizationSubmittedTelemetryEventSchema, It as OperationRetriedTelemetryEventSchema, J as AccessRecoveryCompletedTelemetryEventSchema, Jt as PaymentSettledTelemetryEventSchema, K as CLI_INVOCATION_KINDS, Kt as PaymentInitiatedTelemetryEventSchema, L as OnboardingProfileSubmittedTelemetryEventSchema, Lt as ReceiptPendingTelemetryEventSchema, M as MemberActivationReadyTelemetryEventSchema, Mt as OrganizationCreationStartedTelemetryEventSchema, N as MemberActivationStartedTelemetryEventSchema, Nt as UiContactActionCompletedTelemetryEventSchema, O as VerificationTermsAcceptedTelemetryEventSchema, Ot as OrgInviteProgressedTelemetryEventSchema, P as OnboardingDashboardReachedTelemetryEventSchema, Pt as BundlerErrorTelemetryEventSchema, Q as AuthOtpRequestedTelemetryEventSchema, Qt as TELEMETRY_JOURNEYS, R as ProvisioningSafeConfirmedTelemetryEventSchema, Rt as AccountBalanceFailedTelemetryEventSchema, S as VerificationApprovedTelemetryEventSchema, St as MovementScanIncidentTelemetryEventSchema, T as VerificationRejectedTelemetryEventSchema, Tt as ContactRelationshipChangedTelemetryEventSchema, U as CliFirstUsedTelemetryEventSchema, Ut as FaucetFailedTelemetryEventSchema, V as CliCommandStartedTelemetryEventSchema, Vt as DepositSettledTelemetryEventSchema, W as CLI_CAPABILITIES, Wt as FaucetRequestedTelemetryEventSchema, X as AuthOtpDeliveredTelemetryEventSchema, Xt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, Y as AuthFailedTelemetryEventSchema, Yt as PaymentVerificationRetryTelemetryEventSchema, Z as AuthOtpExpiredTelemetryEventSchema, Zt as JOURNEYS, _ as CONTRACT_FIRST_TELEMETRY_EVENTS, _t as UiTreasuryStepCompletedTelemetryEventSchema, a as initializeCapxulBrowserAnalytics, an as JourneyVariantProps, at as NativeAuthorizationFailedTelemetryEventSchema, b as RETIRED_TELEMETRY_EVENTS, bt as IndexerDriftCorrectedTelemetryEventSchema, c as utilityAppAnalytics, cn as ResponseHeadersSchema, ct as UiAccessStepCompletedTelemetryEventSchema, d as redactTelemetryEvent, dn as TELEMETRY_PRODUCERS, dt as PayrollGroupChangedTelemetryEventSchema, en as ChainAttemptSchema, et as AuthVerifiedTelemetryEventSchema, f as redactTelemetryProps, fn as stampTelemetryEnvelope, ft as PayrollRunTransitionedTelemetryEventSchema, g as BROWSER_GATED_TELEMETRY_EVENTS, gn as normalizeCapxulOperation, gt as UiReceiveStepCompletedTelemetryEventSchema, h as track, hn as isCapxulOperation, ht as UiPayrollActionCompletedTelemetryEventSchema, i as createPostHogBrowserPageviewTracker, in as FailureModeSchema, it as NativeAuthorizationDeniedTelemetryEventSchema, j as MemberActivationFailedTelemetryEventSchema, jt as OrganizationCreationReadyTelemetryEventSchema, k as BootstrapFailedTelemetryEventSchema, kt as OrgInviteSentTelemetryEventSchema, l as sanitizePostHogBrowserEvent, ln as SDK_EXPECTED_OUTCOME_EVENT_NAME, lt as InvoiceIssuedTelemetryEventSchema, m as setTrackHandler, mn as CAPXUL_OPERATIONS, mt as UiInvoiceStepCompletedTelemetryEventSchema, n as RecordingTelemetryAdapter, nn as EXCEPTION_EVENT_NAME, nt as NativeAuthorizationAcceptedTelemetryEventSchema, o as initializePostHogBrowserAnalytics, on as MCP_EXPECTED_OUTCOME_EVENT_NAME, ot as NativeAuthorizationReviewedTelemetryEventSchema, p as getTrackHandler, pn as TELEMETRY_EVENT_NAMES, pt as UiApprovalSignInRequiredTelemetryEventSchema, qt as PaymentLifecycleTransitionTelemetryEventSchema, r as createCapxulBeforeSend, rn as EXPECTED_OUTCOME_EVENT_NAME, rt as NativeAuthorizationConnectedTelemetryEventSchema, s as productAppAnalytics, sn as PII, st as NativeAuthorizationStartedTelemetryEventSchema, t as InMemoryTelemetryBusAdapter, tn as ChainUpstreamSchema, tt as IdentityRefusedTelemetryEventSchema, u as maskCapturedNetworkRequest, un as SYNCABLE_CAPXUL_ENVS, ut as InvoiceRequestTransitionedTelemetryEventSchema, v as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, vt as ActivityAnnotationSavedTelemetryEventSchema, w as VerificationLivenessRequestedTelemetryEventSchema, wt as PermissionMirrorVerificationTelemetryEventSchema, x as TELEMETRY_EVENT_SCHEMAS, xt as MovementScanCheckpointTelemetryEventSchema, y as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, yt as UiActivityActionCompletedTelemetryEventSchema, z as ProvisioningSafeCreatedTelemetryEventSchema, zt as AccountBalanceReadTelemetryEventSchema } from "./src-CkM01SMk.mjs";
|
|
2
|
+
export { AccessRecoveryCompletedTelemetryEventSchema, AccountBalanceFailedTelemetryEventSchema, AccountBalanceReadTelemetryEventSchema, ActivityAnnotationSavedTelemetryEventSchema, AuthFailedTelemetryEventSchema, AuthOtpDeliveredTelemetryEventSchema, AuthOtpExpiredTelemetryEventSchema, AuthOtpRequestedTelemetryEventSchema, AuthSignedOutTelemetryEventSchema, AuthVerifiedTelemetryEventSchema, BROWSER_GATED_TELEMETRY_EVENTS, BootstrapFailedTelemetryEventSchema, BootstrapResolvedTelemetryEventSchema, BundlerErrorTelemetryEventSchema, CAPXUL_ENVS, CAPXUL_OPERATIONS, CLI_CAPABILITIES, CLI_COMMAND_NAMES, CLI_INVOCATION_KINDS, CONTRACT_FIRST_TELEMETRY_EVENTS, ChainAttemptSchema, ChainUpstreamFallbackTelemetryEventSchema, ChainUpstreamSchema, CliCommandCompletedTelemetryEventSchema, CliCommandStartedTelemetryEventSchema, CliDiagnosticCompletedTelemetryEventSchema, CliFirstUsedTelemetryEventSchema, ContactRelationshipChangedTelemetryEventSchema, DepositInitiatedTelemetryEventSchema, DepositSettledTelemetryEventSchema, EXCEPTION_EVENT_NAME, EXPECTED_OUTCOME_EVENT_NAME, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, FailureModeSchema, FaucetConfirmedTelemetryEventSchema, FaucetFailedTelemetryEventSchema, FaucetRequestedTelemetryEventSchema, IdentityRefusedTelemetryEventSchema, InMemoryTelemetryBusAdapter, IndexerDriftCorrectedTelemetryEventSchema, InvoiceIssuedTelemetryEventSchema, InvoiceRequestTransitionedTelemetryEventSchema, JOURNEYS, JourneyVariantProps, MCP_EXPECTED_OUTCOME_EVENT_NAME, MemberActivationFailedTelemetryEventSchema, MemberActivationReadyTelemetryEventSchema, MemberActivationStartedTelemetryEventSchema, MovementScanCheckpointTelemetryEventSchema, MovementScanIncidentTelemetryEventSchema, MovementScanWindowTelemetryEventSchema, NativeAuthorizationAcceptedTelemetryEventSchema, NativeAuthorizationConnectedTelemetryEventSchema, NativeAuthorizationDeniedTelemetryEventSchema, NativeAuthorizationFailedTelemetryEventSchema, NativeAuthorizationReviewedTelemetryEventSchema, NativeAuthorizationStartedTelemetryEventSchema, OnboardingDashboardReachedTelemetryEventSchema, OnboardingIntentSelectedTelemetryEventSchema, OnboardingOrganizationSubmittedTelemetryEventSchema, OnboardingProfileSubmittedTelemetryEventSchema, OperationRetriedTelemetryEventSchema, OrgInviteAcceptedTelemetryEventSchema, OrgInviteExpiredTelemetryEventSchema, OrgInviteProgressedTelemetryEventSchema, OrgInviteSentTelemetryEventSchema, OrganizationCreationFailedTelemetryEventSchema, OrganizationCreationReadyTelemetryEventSchema, OrganizationCreationStartedTelemetryEventSchema, PII, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, PaymentFailedTelemetryEventSchema, PaymentInitiatedTelemetryEventSchema, PaymentLifecycleTransitionTelemetryEventSchema, PaymentSettledTelemetryEventSchema, PaymentVerificationRetryTelemetryEventSchema, PayrollGroupChangedTelemetryEventSchema, PayrollRunTransitionedTelemetryEventSchema, PermissionMirrorVerificationTelemetryEventSchema, ProvisioningSafeConfirmedTelemetryEventSchema, ProvisioningSafeCreatedTelemetryEventSchema, QuickPayExternalAddressAcknowledgedTelemetryEventSchema, RETIRED_TELEMETRY_EVENTS, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SDK_EXPECTED_OUTCOME_EVENT_NAME, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiApprovalSignInRequiredTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, VerificationApprovedTelemetryEventSchema, VerificationInformationRequestedTelemetryEventSchema, VerificationLivenessRequestedTelemetryEventSchema, VerificationRejectedTelemetryEventSchema, VerificationStartedTelemetryEventSchema, VerificationSubmittedTelemetryEventSchema, VerificationTermsAcceptedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
|
|
@@ -62,11 +62,13 @@ const sessions = {
|
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region ../protocol/src/errors/failure-modes.ts
|
|
64
64
|
/**
|
|
65
|
-
* Why an operation failed — the one flat vocabulary. The first
|
|
66
|
-
* auth
|
|
67
|
-
* path. `
|
|
68
|
-
* (
|
|
69
|
-
*
|
|
65
|
+
* Why an operation failed — the one flat vocabulary. The first five are the
|
|
66
|
+
* auth and signer diagnoses that predate this file. The next eleven name the
|
|
67
|
+
* chain path. `refused` and `defect` name a provider refusal and a Capxul
|
|
68
|
+
* fault on any path (ADR-0039 D2). `FailureMode` is derived from this list so
|
|
69
|
+
* a runtime membership check (the SDK's `$exception` projection, the
|
|
70
|
+
* observability schema) and the type can never drift apart. Every word has a
|
|
71
|
+
* failure class in `classes.ts`.
|
|
70
72
|
*/
|
|
71
73
|
const FAILURE_MODES = [
|
|
72
74
|
"auth-origin-mismatch",
|
|
@@ -85,6 +87,8 @@ const FAILURE_MODES = [
|
|
|
85
87
|
"forbidden",
|
|
86
88
|
"bad-request",
|
|
87
89
|
"method-unsupported",
|
|
90
|
+
"refused",
|
|
91
|
+
"defect",
|
|
88
92
|
"unknown"
|
|
89
93
|
];
|
|
90
94
|
function isFailureMode(value) {
|
|
@@ -119,6 +123,9 @@ var CapxulError = class extends Error {
|
|
|
119
123
|
if (options.chain !== void 0) this.chain = options.chain;
|
|
120
124
|
}
|
|
121
125
|
};
|
|
126
|
+
function isCapxulError(value) {
|
|
127
|
+
return value instanceof CapxulError;
|
|
128
|
+
}
|
|
122
129
|
//#endregion
|
|
123
130
|
//#region ../protocol/src/primitives/absurd.ts
|
|
124
131
|
/**
|
|
@@ -133,6 +140,48 @@ function absurd(value) {
|
|
|
133
140
|
} });
|
|
134
141
|
}
|
|
135
142
|
//#endregion
|
|
143
|
+
//#region ../protocol/src/errors/provider-evidence.ts
|
|
144
|
+
/**
|
|
145
|
+
* The providers a failure can name: Capxul's integrations and the ports the
|
|
146
|
+
* SDK and the backend call. Closed, so `details.provider` is a known word and
|
|
147
|
+
* a projection with no free text can still send it (ADR-0039 D6).
|
|
148
|
+
*/
|
|
149
|
+
const PROVIDERS = [
|
|
150
|
+
"account-abstraction",
|
|
151
|
+
"agent-exchange",
|
|
152
|
+
"auth-cache",
|
|
153
|
+
"auth-client",
|
|
154
|
+
"better-auth",
|
|
155
|
+
"bootstrap",
|
|
156
|
+
"bridge",
|
|
157
|
+
"browserBridge",
|
|
158
|
+
"capxul-backend",
|
|
159
|
+
"chain",
|
|
160
|
+
"chain-evidence",
|
|
161
|
+
"chain-rpc",
|
|
162
|
+
"clock",
|
|
163
|
+
"convex",
|
|
164
|
+
"convex-storage",
|
|
165
|
+
"credentials",
|
|
166
|
+
"indexer",
|
|
167
|
+
"invoice",
|
|
168
|
+
"openfort",
|
|
169
|
+
"openfort.shield",
|
|
170
|
+
"ponder",
|
|
171
|
+
"posthog",
|
|
172
|
+
"resend",
|
|
173
|
+
"sdk",
|
|
174
|
+
"sdk-react",
|
|
175
|
+
"signer",
|
|
176
|
+
"verification"
|
|
177
|
+
];
|
|
178
|
+
/** What is wrong with the part of a provider's answer that `field` names (ADR-0039 D1). */
|
|
179
|
+
const PROVIDER_PROBLEMS = [
|
|
180
|
+
"missing",
|
|
181
|
+
"invalid",
|
|
182
|
+
"conflict"
|
|
183
|
+
];
|
|
184
|
+
//#endregion
|
|
136
185
|
//#region ../protocol/src/evm/model.ts
|
|
137
186
|
const WEI_RE = /^[0-9]+$/;
|
|
138
187
|
const EVM_ADDRESS_RE$1 = /^0x[0-9a-f]{40}$/i;
|
|
@@ -1533,6 +1582,13 @@ const BankDepositCandidatesPageSchema = pageOf(Schema.Struct({
|
|
|
1533
1582
|
payerLabel: optionalText$1
|
|
1534
1583
|
}));
|
|
1535
1584
|
//#endregion
|
|
1585
|
+
//#region ../protocol/src/primitives/warning.ts
|
|
1586
|
+
/** A warning as a client reads it: any code, and the sentence to show. */
|
|
1587
|
+
const WarningSchema = Schema.Struct({
|
|
1588
|
+
code: Schema.String,
|
|
1589
|
+
message: Schema.String
|
|
1590
|
+
});
|
|
1591
|
+
//#endregion
|
|
1536
1592
|
//#region ../protocol/src/payments/payout-schema.ts
|
|
1537
1593
|
const PartyAccountRefSchema = Schema.Struct({
|
|
1538
1594
|
kind: Schema.Literal("party_account"),
|
|
@@ -1560,10 +1616,8 @@ const PaymentQuoteSchema = Schema.Struct({
|
|
|
1560
1616
|
onCapxul: Schema.Boolean
|
|
1561
1617
|
}),
|
|
1562
1618
|
rate: Schema.optionalKey(DecimalStringSchema),
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
message: Schema.String
|
|
1566
|
-
}))
|
|
1619
|
+
/** Read with any code: an unknown one does not make the quote unreadable. */
|
|
1620
|
+
warnings: Schema.Array(WarningSchema)
|
|
1567
1621
|
});
|
|
1568
1622
|
//#endregion
|
|
1569
1623
|
//#region ../protocol/src/permissions/value-schema.ts
|
|
@@ -2604,10 +2658,8 @@ const ApprovalSummarySchema = Schema.Struct({
|
|
|
2604
2658
|
/** The total, when every item moves one asset; null when nothing moves (a Permission change). */
|
|
2605
2659
|
amount: Schema.NullOr(AssetAmountSchema),
|
|
2606
2660
|
network: ApprovalNetworkSchema,
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
message: Schema.String
|
|
2610
|
-
})))
|
|
2661
|
+
/** Read with any code: an unknown one does not make the approval unreadable. */
|
|
2662
|
+
warnings: Schema.optional(Schema.Array(WarningSchema))
|
|
2611
2663
|
});
|
|
2612
2664
|
/** The exact operation the signature covers: the digest is the one thing the key signs. */
|
|
2613
2665
|
const ApprovalOperationSchema = Schema.Struct({
|
|
@@ -2649,6 +2701,8 @@ const ConsumedApprovalSchema = Schema.Struct({
|
|
|
2649
2701
|
const CALL$10 = ["NOT_AUTHENTICATED", "INVALID_INPUT"];
|
|
2650
2702
|
/** The chain or the bundler refused, timed out or was unreachable. */
|
|
2651
2703
|
const CHAIN$5 = ["PROVIDER_ERROR"];
|
|
2704
|
+
/** The bundler or the paymaster answered with something Capxul cannot use. */
|
|
2705
|
+
const ANSWER$3 = ["PROVIDER_RESPONSE_INVALID"];
|
|
2652
2706
|
/** The caller's Account binding: no Safe, no Account, or an Account bound to another Safe. */
|
|
2653
2707
|
const BINDING = [
|
|
2654
2708
|
"SMART_ACCOUNT_MISSING",
|
|
@@ -2736,6 +2790,7 @@ claim: Operation.action("accounts.claims.claim", {
|
|
|
2736
2790
|
...CALL$10,
|
|
2737
2791
|
...DEFECTS,
|
|
2738
2792
|
...CHAIN$5,
|
|
2793
|
+
...ANSWER$3,
|
|
2739
2794
|
"ACCOUNT_CLAIMED_BY_OTHER_SIGNER",
|
|
2740
2795
|
"INSUFFICIENT_BALANCE",
|
|
2741
2796
|
"PROFILE_NOT_FOUND",
|
|
@@ -2771,6 +2826,7 @@ faucetMint: Operation.action("accounts.grants.faucetMint", {
|
|
|
2771
2826
|
...CALL$10,
|
|
2772
2827
|
...DEFECTS,
|
|
2773
2828
|
...CHAIN$5,
|
|
2829
|
+
...ANSWER$3,
|
|
2774
2830
|
...BINDING,
|
|
2775
2831
|
"INSUFFICIENT_BALANCE",
|
|
2776
2832
|
"NOT_IMPLEMENTED",
|
|
@@ -3026,6 +3082,8 @@ const errors = [
|
|
|
3026
3082
|
...DEFECTS
|
|
3027
3083
|
];
|
|
3028
3084
|
const writeErrors = [...errors, "WRONG_STATE"];
|
|
3085
|
+
/** Bank-details writes also read Bridge's answer back, which can be unusable. */
|
|
3086
|
+
const bridgeWriteErrors = [...writeErrors, "PROVIDER_RESPONSE_INVALID"];
|
|
3029
3087
|
const bankDetails = {
|
|
3030
3088
|
list: Operation.query("banking.bankDetails.list", {
|
|
3031
3089
|
input: Schema.Struct({ actor: actor$3 }),
|
|
@@ -3040,7 +3098,7 @@ const bankDetails = {
|
|
|
3040
3098
|
open: Operation.action("banking.bankDetails.open", {
|
|
3041
3099
|
input: Schema.Struct(target),
|
|
3042
3100
|
output: BankDetailsSchema,
|
|
3043
|
-
errors:
|
|
3101
|
+
errors: bridgeWriteErrors
|
|
3044
3102
|
}),
|
|
3045
3103
|
settle: Operation.action("banking.bankDetails.settle", {
|
|
3046
3104
|
input: Schema.Struct({
|
|
@@ -3048,17 +3106,17 @@ const bankDetails = {
|
|
|
3048
3106
|
token: SettlementTokenSchema
|
|
3049
3107
|
}),
|
|
3050
3108
|
output: BankDetailsSchema,
|
|
3051
|
-
errors:
|
|
3109
|
+
errors: bridgeWriteErrors
|
|
3052
3110
|
}),
|
|
3053
3111
|
deactivate: Operation.action("banking.bankDetails.deactivate", {
|
|
3054
3112
|
input: Schema.Struct(target),
|
|
3055
3113
|
output: BankDetailsSchema,
|
|
3056
|
-
errors:
|
|
3114
|
+
errors: bridgeWriteErrors
|
|
3057
3115
|
}),
|
|
3058
3116
|
reactivate: Operation.action("banking.bankDetails.reactivate", {
|
|
3059
3117
|
input: Schema.Struct(target),
|
|
3060
3118
|
output: BankDetailsSchema,
|
|
3061
|
-
errors:
|
|
3119
|
+
errors: bridgeWriteErrors
|
|
3062
3120
|
})
|
|
3063
3121
|
};
|
|
3064
3122
|
const deposits = {
|
|
@@ -3904,6 +3962,7 @@ const CAPXUL_ERROR_CODES = [
|
|
|
3904
3962
|
"ACCOUNT_NOT_FOUND",
|
|
3905
3963
|
"ACCOUNT_CLAIMED_BY_OTHER_SIGNER",
|
|
3906
3964
|
"PROVIDER_ERROR",
|
|
3965
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
3907
3966
|
"CAPABILITY_UNAVAILABLE",
|
|
3908
3967
|
"INVALID_INPUT",
|
|
3909
3968
|
"ENV_MISSING",
|
|
@@ -3925,6 +3984,7 @@ const CAPXUL_ERROR_CODES = [
|
|
|
3925
3984
|
"WORK_DIED",
|
|
3926
3985
|
"ACTOR_STOPPED"
|
|
3927
3986
|
];
|
|
3987
|
+
new Set(CAPXUL_ERROR_CODES);
|
|
3928
3988
|
/** The existing Organization authority refusal vocabulary. */
|
|
3929
3989
|
const ROLE_PERMISSION_DENIED_REASONS = [
|
|
3930
3990
|
"over_cap",
|
|
@@ -4560,6 +4620,8 @@ const STATE$4 = ["WRONG_STATE"];
|
|
|
4560
4620
|
const PARTICIPANT = ["ROLE_PERMISSION_DENIED"];
|
|
4561
4621
|
/** The chain or the bundler refused, timed out or was unreachable. */
|
|
4562
4622
|
const CHAIN$3 = ["PROVIDER_ERROR"];
|
|
4623
|
+
/** The bundler or the paymaster answered with something Capxul cannot use. */
|
|
4624
|
+
const ANSWER$2 = ["PROVIDER_RESPONSE_INVALID"];
|
|
4563
4625
|
/** The founder has no Profile or no personal Account to found an Organization with. */
|
|
4564
4626
|
const FOUNDER = ["PROFILE_NOT_FOUND", "SMART_ACCOUNT_MISSING"];
|
|
4565
4627
|
const invitations = {
|
|
@@ -4797,6 +4859,7 @@ const setups = {
|
|
|
4797
4859
|
...DEFECTS,
|
|
4798
4860
|
...STATE$4,
|
|
4799
4861
|
...CHAIN$3,
|
|
4862
|
+
...ANSWER$2,
|
|
4800
4863
|
"INSUFFICIENT_BALANCE"
|
|
4801
4864
|
]
|
|
4802
4865
|
}),
|
|
@@ -4983,7 +5046,8 @@ const VERIFICATION_ERRORS = [
|
|
|
4983
5046
|
...DEFECTS,
|
|
4984
5047
|
...MEMBER$1,
|
|
4985
5048
|
"WRONG_STATE",
|
|
4986
|
-
"PROVIDER_ERROR"
|
|
5049
|
+
"PROVIDER_ERROR",
|
|
5050
|
+
"PROVIDER_RESPONSE_INVALID"
|
|
4987
5051
|
];
|
|
4988
5052
|
const verificationTarget = {
|
|
4989
5053
|
orgId: Schema.optionalKey(Schema.String),
|
|
@@ -5463,6 +5527,7 @@ const quotes = { quote: Operation.action("payments.quotes.quote", {
|
|
|
5463
5527
|
"INSUFFICIENT_BALANCE",
|
|
5464
5528
|
"WRONG_STATE",
|
|
5465
5529
|
"PROVIDER_ERROR",
|
|
5530
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
5466
5531
|
...DEFECTS
|
|
5467
5532
|
]
|
|
5468
5533
|
}) };
|
|
@@ -5483,6 +5548,8 @@ const DENIED$1 = ["ROLE_PERMISSION_DENIED"];
|
|
|
5483
5548
|
const STATE$3 = ["WRONG_STATE"];
|
|
5484
5549
|
/** The chain, the bundler or the paymaster refused or failed to answer. */
|
|
5485
5550
|
const CHAIN$2 = ["PROVIDER_ERROR"];
|
|
5551
|
+
/** The bundler or the paymaster answered with something Capxul cannot use. */
|
|
5552
|
+
const ANSWER$1 = ["PROVIDER_RESPONSE_INVALID"];
|
|
5486
5553
|
/** The sender's balance, or the paymaster, cannot cover the UserOperation. */
|
|
5487
5554
|
const FUNDING$1 = ["INSUFFICIENT_BALANCE"];
|
|
5488
5555
|
/** This deployment has money writes switched off. */
|
|
@@ -5496,6 +5563,7 @@ const PREPARE = [
|
|
|
5496
5563
|
...DENIED$1,
|
|
5497
5564
|
...STATE$3,
|
|
5498
5565
|
...CHAIN$2,
|
|
5566
|
+
...ANSWER$1,
|
|
5499
5567
|
...FUNDING$1,
|
|
5500
5568
|
...DISABLED$1
|
|
5501
5569
|
];
|
|
@@ -5507,6 +5575,7 @@ const SUBMIT$1 = [
|
|
|
5507
5575
|
...DENIED$1,
|
|
5508
5576
|
...STATE$3,
|
|
5509
5577
|
...CHAIN$2,
|
|
5578
|
+
...ANSWER$1,
|
|
5510
5579
|
...RACE,
|
|
5511
5580
|
...DISABLED$1
|
|
5512
5581
|
];
|
|
@@ -5813,6 +5882,7 @@ const runs = {
|
|
|
5813
5882
|
...DENIED,
|
|
5814
5883
|
...STATE$2,
|
|
5815
5884
|
"PROVIDER_ERROR",
|
|
5885
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
5816
5886
|
"INSUFFICIENT_BALANCE",
|
|
5817
5887
|
"NOT_IMPLEMENTED"
|
|
5818
5888
|
]
|
|
@@ -6326,6 +6396,8 @@ const ADMIN$1 = ["ROLE_PERMISSION_DENIED", ...ACCOUNT];
|
|
|
6326
6396
|
const STATE$1 = ["WRONG_STATE"];
|
|
6327
6397
|
/** The chain or the bundler refused or failed to answer. */
|
|
6328
6398
|
const CHAIN$1 = ["PROVIDER_ERROR"];
|
|
6399
|
+
/** The bundler or the paymaster answered with something Capxul cannot use. */
|
|
6400
|
+
const ANSWER = ["PROVIDER_RESPONSE_INVALID"];
|
|
6329
6401
|
/** Building a sponsored UserOperation can find the paymaster unable to pay. */
|
|
6330
6402
|
const SPONSOR = ["INSUFFICIENT_BALANCE"];
|
|
6331
6403
|
/** Another submission of the same execution won the race. */
|
|
@@ -6368,6 +6440,7 @@ const commands = {
|
|
|
6368
6440
|
...ADMIN$1,
|
|
6369
6441
|
...STATE$1,
|
|
6370
6442
|
...CHAIN$1,
|
|
6443
|
+
...ANSWER,
|
|
6371
6444
|
...SPONSOR
|
|
6372
6445
|
]
|
|
6373
6446
|
}),
|
|
@@ -6381,6 +6454,7 @@ const commands = {
|
|
|
6381
6454
|
...ADMIN$1,
|
|
6382
6455
|
...STATE$1,
|
|
6383
6456
|
...CHAIN$1,
|
|
6457
|
+
...ANSWER,
|
|
6384
6458
|
...SUBMIT
|
|
6385
6459
|
]
|
|
6386
6460
|
})
|
|
@@ -6410,6 +6484,7 @@ const replacements = {
|
|
|
6410
6484
|
...ADMIN$1,
|
|
6411
6485
|
...STATE$1,
|
|
6412
6486
|
...CHAIN$1,
|
|
6487
|
+
...ANSWER,
|
|
6413
6488
|
...SPONSOR
|
|
6414
6489
|
]
|
|
6415
6490
|
})
|
|
@@ -6466,6 +6541,7 @@ const authorities = {
|
|
|
6466
6541
|
...CALL$2,
|
|
6467
6542
|
...DEFECTS,
|
|
6468
6543
|
...CHAIN$1,
|
|
6544
|
+
...ANSWER,
|
|
6469
6545
|
"ROLE_PERMISSION_DENIED"
|
|
6470
6546
|
]
|
|
6471
6547
|
}),
|
|
@@ -6491,6 +6567,7 @@ const configurations = {
|
|
|
6491
6567
|
...ADMIN$1,
|
|
6492
6568
|
...STATE$1,
|
|
6493
6569
|
...CHAIN$1,
|
|
6570
|
+
...ANSWER,
|
|
6494
6571
|
...SPONSOR
|
|
6495
6572
|
]
|
|
6496
6573
|
}),
|
|
@@ -6504,6 +6581,7 @@ const configurations = {
|
|
|
6504
6581
|
...ADMIN$1,
|
|
6505
6582
|
...STATE$1,
|
|
6506
6583
|
...CHAIN$1,
|
|
6584
|
+
...ANSWER,
|
|
6507
6585
|
...SUBMIT
|
|
6508
6586
|
]
|
|
6509
6587
|
})
|
|
@@ -6730,6 +6808,15 @@ const CHAIN = ["PROVIDER_ERROR"];
|
|
|
6730
6808
|
const DISABLED = ["NOT_IMPLEMENTED"];
|
|
6731
6809
|
/** The sender's balance, or the paymaster, cannot cover the UserOperation. */
|
|
6732
6810
|
const FUNDING = ["INSUFFICIENT_BALANCE"];
|
|
6811
|
+
/**
|
|
6812
|
+
* Building a sponsored UserOperation: the chain failed, the bundler or the
|
|
6813
|
+
* paymaster answered with something Capxul cannot use, or the funding fell short.
|
|
6814
|
+
*/
|
|
6815
|
+
const SPONSORED = [
|
|
6816
|
+
...CHAIN,
|
|
6817
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
6818
|
+
...FUNDING
|
|
6819
|
+
];
|
|
6733
6820
|
/** The issuer's side: what it sent, and its cancellation. */
|
|
6734
6821
|
const receivables = {
|
|
6735
6822
|
/** Ask a payer for money, or anyone who holds the link when no payer is named. */
|
|
@@ -7071,8 +7158,7 @@ const checkouts = {
|
|
|
7071
7158
|
...DEFECTS,
|
|
7072
7159
|
...MEMBER,
|
|
7073
7160
|
...STATE,
|
|
7074
|
-
...
|
|
7075
|
-
...FUNDING,
|
|
7161
|
+
...SPONSORED,
|
|
7076
7162
|
...DISABLED
|
|
7077
7163
|
]
|
|
7078
7164
|
}),
|
|
@@ -7275,7 +7361,17 @@ const PEOPLE_OPERATIONS = {
|
|
|
7275
7361
|
},
|
|
7276
7362
|
auth: {
|
|
7277
7363
|
canSendOtp: "auth.canSendOtp",
|
|
7364
|
+
createEncryptionSession: "auth.createEncryptionSession",
|
|
7365
|
+
/** AUTH A3 (#2073): the SDK facade over the native continuation endpoints. */
|
|
7366
|
+
clientRequests: {
|
|
7367
|
+
accept: "auth.clientRequests.accept",
|
|
7368
|
+
cancel: "auth.clientRequests.cancel",
|
|
7369
|
+
read: "auth.clientRequests.read",
|
|
7370
|
+
sendOtp: "auth.clientRequests.sendOtp",
|
|
7371
|
+
verifyOtp: "auth.clientRequests.verifyOtp"
|
|
7372
|
+
},
|
|
7278
7373
|
getSession: "auth.getSession",
|
|
7374
|
+
resumeOtp: "auth.resumeOtp",
|
|
7279
7375
|
signIn: "auth.signIn",
|
|
7280
7376
|
signOut: "auth.signOut",
|
|
7281
7377
|
sendVerificationOtp: "auth.sendVerificationOTP",
|
|
@@ -7285,11 +7381,6 @@ const PEOPLE_OPERATIONS = {
|
|
|
7285
7381
|
createOrg: "createOrg",
|
|
7286
7382
|
orgs: "orgs"
|
|
7287
7383
|
},
|
|
7288
|
-
/** AUTH A3 (#2073): the SDK facade over the native continuation endpoints. */
|
|
7289
|
-
clientRequests: {
|
|
7290
|
-
decide: "clientRequests.decide",
|
|
7291
|
-
read: "clientRequests.read"
|
|
7292
|
-
},
|
|
7293
7384
|
currentUser: { get: "currentUser.get" },
|
|
7294
7385
|
identity: {
|
|
7295
7386
|
accountAt: "identity.AccountAt",
|
|
@@ -7332,8 +7423,10 @@ const PEOPLE_OPERATIONS = {
|
|
|
7332
7423
|
get: "me.get"
|
|
7333
7424
|
},
|
|
7334
7425
|
onboarding: {
|
|
7426
|
+
beginOrganization: "onboarding.beginOrganization",
|
|
7335
7427
|
completeOrganization: "onboarding.completeOrganization",
|
|
7336
|
-
completePerson: "onboarding.completePerson"
|
|
7428
|
+
completePerson: "onboarding.completePerson",
|
|
7429
|
+
listOrganizationSetups: "onboarding.listOrganizationSetups"
|
|
7337
7430
|
},
|
|
7338
7431
|
smartAccount: {
|
|
7339
7432
|
claim: "smartAccount.claim",
|
|
@@ -7432,6 +7525,12 @@ const ORGANIZATION_OPERATIONS = {
|
|
|
7432
7525
|
},
|
|
7433
7526
|
retry: "org.retry",
|
|
7434
7527
|
roles: "org.roles",
|
|
7528
|
+
/**
|
|
7529
|
+
* The host observer's name for `org(orgId).setup.subscribe`: a subscription
|
|
7530
|
+
* is named by its method path, as the others are (CAP-419). The other setup
|
|
7531
|
+
* methods name the row that failed, or `organization.setup`.
|
|
7532
|
+
*/
|
|
7533
|
+
setup: { subscribe: "org.setup.subscribe" },
|
|
7435
7534
|
treasury: "org.treasury"
|
|
7436
7535
|
},
|
|
7437
7536
|
organization: { setup: "organization.setup" },
|
|
@@ -7835,6 +7934,12 @@ const PLATFORM_OPERATIONS = {
|
|
|
7835
7934
|
health: "system.health",
|
|
7836
7935
|
ping: "system.ping"
|
|
7837
7936
|
},
|
|
7937
|
+
/**
|
|
7938
|
+
* The MCP server's own HTTP door: one request that failed outside any tool,
|
|
7939
|
+
* in the body read, the gate or the MCP handler. A tool's failure is named
|
|
7940
|
+
* by the tool.
|
|
7941
|
+
*/
|
|
7942
|
+
mcp: { request: "mcp.request" },
|
|
7838
7943
|
_internal: {
|
|
7839
7944
|
accounts: { fund: "_internal.accounts.fund" },
|
|
7840
7945
|
close: "_internal.close",
|
|
@@ -8079,8 +8184,9 @@ const EXCEPTION_EVENT_NAME = "$exception";
|
|
|
8079
8184
|
* same error evidence on its own stream, so expected versus unexpected stays a
|
|
8080
8185
|
* routing choice inside PostHog. It is its own event kind, not a catalog event:
|
|
8081
8186
|
* its properties are the error evidence, so no catalog schema validates it.
|
|
8082
|
-
* The wide `capxul_backend_operation` log row of the same failure carries
|
|
8083
|
-
*
|
|
8187
|
+
* The wide `capxul_backend_operation` log row of the same failure carries the
|
|
8188
|
+
* same failure row (ADR-0039 D6) beside its ids, but not the masked `details`,
|
|
8189
|
+
* the cause's stack or the chain cause's properties.
|
|
8084
8190
|
*/
|
|
8085
8191
|
const EXPECTED_OUTCOME_EVENT_NAME = "capxul_backend_expected_outcome";
|
|
8086
8192
|
/**
|
|
@@ -8090,6 +8196,13 @@ const EXPECTED_OUTCOME_EVENT_NAME = "capxul_backend_expected_outcome";
|
|
|
8090
8196
|
* validates it.
|
|
8091
8197
|
*/
|
|
8092
8198
|
const SDK_EXPECTED_OUTCOME_EVENT_NAME = "capxul_sdk_expected_outcome";
|
|
8199
|
+
/**
|
|
8200
|
+
* The MCP server's twin of `capxul_backend_expected_outcome`: an expected
|
|
8201
|
+
* outcome of a tool call, as the closed facts of the failure projection. Like
|
|
8202
|
+
* the other twins, its properties are the error evidence, so no catalog schema
|
|
8203
|
+
* validates it.
|
|
8204
|
+
*/
|
|
8205
|
+
const MCP_EXPECTED_OUTCOME_EVENT_NAME = "capxul_mcp_expected_outcome";
|
|
8093
8206
|
const PII = Schema.String.pipe(Schema.brand("PII"));
|
|
8094
8207
|
/**
|
|
8095
8208
|
* Environment discriminator (ADR-0020 A1 amendment, 2026-08-07). PostHog
|
|
@@ -9614,6 +9727,21 @@ const UiAccessStepCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
9614
9727
|
})
|
|
9615
9728
|
});
|
|
9616
9729
|
//#endregion
|
|
9730
|
+
//#region ../protocol/src/errors/classes.ts
|
|
9731
|
+
/**
|
|
9732
|
+
* Who acts on a failure (ADR-0039 D2). A class is derived from code and mode
|
|
9733
|
+
* by the two tables below and is never stored, so it cannot disagree with
|
|
9734
|
+
* them. No layer rewrites it (ADR-0023 R10).
|
|
9735
|
+
*/
|
|
9736
|
+
const FAILURE_CLASSES = [
|
|
9737
|
+
"input",
|
|
9738
|
+
"state",
|
|
9739
|
+
"provider-unavailable",
|
|
9740
|
+
"provider-refused",
|
|
9741
|
+
"provider-answer",
|
|
9742
|
+
"defect"
|
|
9743
|
+
];
|
|
9744
|
+
//#endregion
|
|
9617
9745
|
//#region src/catalog/cli.ts
|
|
9618
9746
|
/** Every command path of the `capxul` tree, dot-separated, plus the root and `unknown`. */
|
|
9619
9747
|
const CLI_COMMAND_NAMES = [
|
|
@@ -9815,6 +9943,28 @@ const CliCommandStartedTelemetryEventSchema = Schema.Struct({
|
|
|
9815
9943
|
])
|
|
9816
9944
|
})
|
|
9817
9945
|
});
|
|
9946
|
+
/** A bounded identifier the `none` text policy lets through (ADR-0039 D6). */
|
|
9947
|
+
const FailureIdentifier = Schema.String.check(Schema.isPattern(/^[A-Za-z0-9_][A-Za-z0-9_.:/[\]-]{0,127}$/u));
|
|
9948
|
+
/**
|
|
9949
|
+
* The closed facts of a failed command's failure row under the `none` text
|
|
9950
|
+
* policy (ADR-0039 D6): who acts, how it failed, which provider and call, and
|
|
9951
|
+
* the Convex request id. Never a message or a cause.
|
|
9952
|
+
*/
|
|
9953
|
+
const CliFailureFacts = {
|
|
9954
|
+
failure_class: Schema.optional(Schema.Literals(FAILURE_CLASSES)),
|
|
9955
|
+
failure_mode: Schema.optional(Schema.Literals(FAILURE_MODES)),
|
|
9956
|
+
provider: Schema.optional(Schema.Literals(PROVIDERS)),
|
|
9957
|
+
provider_operation: Schema.optional(FailureIdentifier),
|
|
9958
|
+
provider_code: Schema.optional(FailureIdentifier),
|
|
9959
|
+
http_status: Schema.optional(Schema.Number.check(Schema.isInt(), Schema.isBetween({
|
|
9960
|
+
minimum: 100,
|
|
9961
|
+
maximum: 599
|
|
9962
|
+
}))),
|
|
9963
|
+
field: Schema.optional(FailureIdentifier),
|
|
9964
|
+
problem: Schema.optional(Schema.Literals(PROVIDER_PROBLEMS)),
|
|
9965
|
+
request_id: Schema.optional(Schema.String.check(Schema.isPattern(/^[0-9a-f]{16}$/u))),
|
|
9966
|
+
elapsed_ms: Schema.optional(Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0)))
|
|
9967
|
+
};
|
|
9818
9968
|
const CliCommandCompletedTelemetryEventSchema = Schema.Struct({
|
|
9819
9969
|
name: Schema.Literal("cli_command_completed"),
|
|
9820
9970
|
props: Schema.Struct({
|
|
@@ -9837,7 +9987,8 @@ const CliCommandCompletedTelemetryEventSchema = Schema.Struct({
|
|
|
9837
9987
|
"CLI_STORAGE",
|
|
9838
9988
|
"CLI_DEFECT",
|
|
9839
9989
|
"CLI_DEADLINE"
|
|
9840
|
-
]))
|
|
9990
|
+
])),
|
|
9991
|
+
...CliFailureFacts
|
|
9841
9992
|
})
|
|
9842
9993
|
});
|
|
9843
9994
|
const CliDiagnosticCompletedTelemetryEventSchema = Schema.Struct({
|
|
@@ -10710,4 +10861,4 @@ var InMemoryTelemetryBusAdapter = class extends EventOnlyPort {
|
|
|
10710
10861
|
}
|
|
10711
10862
|
};
|
|
10712
10863
|
//#endregion
|
|
10713
|
-
export {
|
|
10864
|
+
export { AuthSignedOutTelemetryEventSchema as $, CAPXUL_ENVS as $t, BootstrapResolvedTelemetryEventSchema as A, OrganizationCreationFailedTelemetryEventSchema as At, CliCommandCompletedTelemetryEventSchema as B, DepositInitiatedTelemetryEventSchema as Bt, VerificationInformationRequestedTelemetryEventSchema as C, PROVIDERS as Cn, MovementScanWindowTelemetryEventSchema as Ct, VerificationSubmittedTelemetryEventSchema as D, OrgInviteExpiredTelemetryEventSchema as Dt, VerificationStartedTelemetryEventSchema as E, FAILURE_MODES as En, OrgInviteAcceptedTelemetryEventSchema as Et, OnboardingIntentSelectedTelemetryEventSchema as F, ChainUpstreamFallbackTelemetryEventSchema as Ft, CLI_COMMAND_NAMES as G, PaymentFailedTelemetryEventSchema as Gt, CliDiagnosticCompletedTelemetryEventSchema as H, FaucetConfirmedTelemetryEventSchema as Ht, OnboardingOrganizationSubmittedTelemetryEventSchema as I, OperationRetriedTelemetryEventSchema as It, AccessRecoveryCompletedTelemetryEventSchema as J, PaymentSettledTelemetryEventSchema as Jt, CLI_INVOCATION_KINDS as K, PaymentInitiatedTelemetryEventSchema as Kt, OnboardingProfileSubmittedTelemetryEventSchema as L, ReceiptPendingTelemetryEventSchema as Lt, MemberActivationReadyTelemetryEventSchema as M, OrganizationCreationStartedTelemetryEventSchema as Mt, MemberActivationStartedTelemetryEventSchema as N, UiContactActionCompletedTelemetryEventSchema as Nt, VerificationTermsAcceptedTelemetryEventSchema as O, OrgInviteProgressedTelemetryEventSchema as Ot, OnboardingDashboardReachedTelemetryEventSchema as P, BundlerErrorTelemetryEventSchema as Pt, AuthOtpRequestedTelemetryEventSchema as Q, TELEMETRY_JOURNEYS as Qt, ProvisioningSafeConfirmedTelemetryEventSchema as R, AccountBalanceFailedTelemetryEventSchema as Rt, VerificationApprovedTelemetryEventSchema as S, CAPXUL_ERROR_CODES as Sn, MovementScanIncidentTelemetryEventSchema as St, VerificationRejectedTelemetryEventSchema as T, isCapxulError as Tn, ContactRelationshipChangedTelemetryEventSchema as Tt, CliFirstUsedTelemetryEventSchema as U, FaucetFailedTelemetryEventSchema as Ut, CliCommandStartedTelemetryEventSchema as V, DepositSettledTelemetryEventSchema as Vt, CLI_CAPABILITIES as W, FaucetRequestedTelemetryEventSchema as Wt, AuthOtpDeliveredTelemetryEventSchema as X, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Xt, AuthFailedTelemetryEventSchema as Y, PaymentVerificationRetryTelemetryEventSchema as Yt, AuthOtpExpiredTelemetryEventSchema as Z, JOURNEYS as Zt, CONTRACT_FIRST_TELEMETRY_EVENTS as _, ORGANIZATION_SETUP_REASONS as _n, UiTreasuryStepCompletedTelemetryEventSchema as _t, initializeCapxulBrowserAnalytics as a, JourneyVariantProps as an, NativeAuthorizationFailedTelemetryEventSchema as at, RETIRED_TELEMETRY_EVENTS as b, redactUrlSecrets as bn, IndexerDriftCorrectedTelemetryEventSchema as bt, utilityAppAnalytics as c, ResponseHeadersSchema as cn, UiAccessStepCompletedTelemetryEventSchema as ct, redactTelemetryEvent as d, TELEMETRY_PRODUCERS as dn, PayrollGroupChangedTelemetryEventSchema as dt, ChainAttemptSchema as en, AuthVerifiedTelemetryEventSchema as et, redactTelemetryProps as f, stampTelemetryEnvelope as fn, PayrollRunTransitionedTelemetryEventSchema as ft, BROWSER_GATED_TELEMETRY_EVENTS as g, normalizeCapxulOperation as gn, UiReceiveStepCompletedTelemetryEventSchema as gt, track as h, isCapxulOperation as hn, UiPayrollActionCompletedTelemetryEventSchema as ht, createPostHogBrowserPageviewTracker as i, FailureModeSchema as in, NativeAuthorizationDeniedTelemetryEventSchema as it, MemberActivationFailedTelemetryEventSchema as j, OrganizationCreationReadyTelemetryEventSchema as jt, BootstrapFailedTelemetryEventSchema as k, OrgInviteSentTelemetryEventSchema as kt, sanitizePostHogBrowserEvent as l, SDK_EXPECTED_OUTCOME_EVENT_NAME as ln, InvoiceIssuedTelemetryEventSchema as lt, setTrackHandler as m, CAPXUL_OPERATIONS as mn, UiInvoiceStepCompletedTelemetryEventSchema as mt, RecordingTelemetryAdapter as n, EXCEPTION_EVENT_NAME as nn, NativeAuthorizationAcceptedTelemetryEventSchema as nt, initializePostHogBrowserAnalytics as o, MCP_EXPECTED_OUTCOME_EVENT_NAME as on, NativeAuthorizationReviewedTelemetryEventSchema as ot, getTrackHandler as p, TELEMETRY_EVENT_NAMES as pn, UiApprovalSignInRequiredTelemetryEventSchema as pt, FAILURE_CLASSES as q, PaymentLifecycleTransitionTelemetryEventSchema as qt, createCapxulBeforeSend as r, EXPECTED_OUTCOME_EVENT_NAME as rn, NativeAuthorizationConnectedTelemetryEventSchema as rt, productAppAnalytics as s, PII as sn, NativeAuthorizationStartedTelemetryEventSchema as st, InMemoryTelemetryBusAdapter as t, ChainUpstreamSchema as tn, IdentityRefusedTelemetryEventSchema as tt, maskCapturedNetworkRequest as u, SYNCABLE_CAPXUL_ENVS as un, InvoiceRequestTransitionedTelemetryEventSchema as ut, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as v, ORGANIZATION_SETUP_STATUSES as vn, ActivityAnnotationSavedTelemetryEventSchema as vt, VerificationLivenessRequestedTelemetryEventSchema as w, PROVIDER_PROBLEMS as wn, PermissionMirrorVerificationTelemetryEventSchema as wt, TELEMETRY_EVENT_SCHEMAS as x, isCredentialField as xn, MovementScanCheckpointTelemetryEventSchema as xt, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as y, redactSecrets as yn, UiActivityActionCompletedTelemetryEventSchema as yt, ProvisioningSafeCreatedTelemetryEventSchema as z, AccountBalanceReadTelemetryEventSchema as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/observability",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
|
|
47
47
|
"vite-plus": "1.0.0",
|
|
48
48
|
"vitest": "5.0.1",
|
|
49
|
-
"@capxul/protocol": "0.2.0-beta.
|
|
49
|
+
"@capxul/protocol": "0.2.0-beta.8",
|
|
50
50
|
"@capxul/typescript-config": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|