@capxul/observability 4.20.0-beta.34 → 4.20.0-beta.36
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/engineering.mjs +1 -1
- package/dist/index.d.mts +1244 -367
- package/dist/index.mjs +1 -1
- package/dist/{src-D6mFWvZL.mjs → src-B2XswhQh.mjs} +67 -19
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AuthVerifiedTelemetryEventSchema, $t as ChainAttemptSchema, A as BootstrapResolvedTelemetryEventSchema, At as OrganizationCreationReadyTelemetryEventSchema, B as CliCommandCompletedTelemetryEventSchema, Bt as DepositSettledTelemetryEventSchema, C as VerificationInformationRequestedTelemetryEventSchema, Ct as PermissionMirrorVerificationTelemetryEventSchema, D as VerificationSubmittedTelemetryEventSchema, Dt as OrgInviteProgressedTelemetryEventSchema, E as VerificationStartedTelemetryEventSchema, Et as OrgInviteExpiredTelemetryEventSchema, F as OnboardingIntentSelectedTelemetryEventSchema, Ft as OperationRetriedTelemetryEventSchema, G as CLI_COMMAND_NAMES, Gt as PaymentInitiatedTelemetryEventSchema, H as CliDiagnosticCompletedTelemetryEventSchema, Ht as FaucetFailedTelemetryEventSchema, I as OnboardingOrganizationSubmittedTelemetryEventSchema, It as ReceiptPendingTelemetryEventSchema, J as AuthFailedTelemetryEventSchema, Jt as PaymentVerificationRetryTelemetryEventSchema, K as CLI_INVOCATION_KINDS, Kt as PaymentLifecycleTransitionTelemetryEventSchema, L as OnboardingProfileSubmittedTelemetryEventSchema, Lt as AccountBalanceFailedTelemetryEventSchema, M as MemberActivationReadyTelemetryEventSchema, Mt as UiContactActionCompletedTelemetryEventSchema, N as MemberActivationStartedTelemetryEventSchema, Nt as BundlerErrorTelemetryEventSchema, O as VerificationTermsAcceptedTelemetryEventSchema, Ot as OrgInviteSentTelemetryEventSchema, P as OnboardingDashboardReachedTelemetryEventSchema, Pt as ChainUpstreamFallbackTelemetryEventSchema, Q as AuthSignedOutTelemetryEventSchema, Qt as CAPXUL_ENVS, R as ProvisioningSafeConfirmedTelemetryEventSchema, Rt as AccountBalanceReadTelemetryEventSchema, S as VerificationApprovedTelemetryEventSchema, St as MovementScanWindowTelemetryEventSchema, T as VerificationRejectedTelemetryEventSchema, Tt as OrgInviteAcceptedTelemetryEventSchema, U as CliFirstUsedTelemetryEventSchema, Ut as FaucetRequestedTelemetryEventSchema, V as CliCommandStartedTelemetryEventSchema, Vt as FaucetConfirmedTelemetryEventSchema, W as CLI_CAPABILITIES, Wt as PaymentFailedTelemetryEventSchema, X as AuthOtpExpiredTelemetryEventSchema, Xt as JOURNEYS, Y as AuthOtpDeliveredTelemetryEventSchema, Yt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, Z as AuthOtpRequestedTelemetryEventSchema, Zt as TELEMETRY_JOURNEYS, _ as CONTRACT_FIRST_TELEMETRY_EVENTS, _t as ActivityAnnotationSavedTelemetryEventSchema, a as initializeCapxulBrowserAnalytics, an as PII, at as NativeAuthorizationReviewedTelemetryEventSchema, b as RETIRED_TELEMETRY_EVENTS, bt as MovementScanCheckpointTelemetryEventSchema, c as utilityAppAnalytics, cn as SYNCABLE_CAPXUL_ENVS, ct as InvoiceIssuedTelemetryEventSchema, d as redactTelemetryEvent, dn as TELEMETRY_EVENT_NAMES, dt as PayrollRunTransitionedTelemetryEventSchema, en as ChainUpstreamSchema, et as IdentityRefusedTelemetryEventSchema, f as redactTelemetryProps, fn as CAPXUL_OPERATIONS, ft as UiApprovalSignInRequiredTelemetryEventSchema, g as BROWSER_GATED_TELEMETRY_EVENTS, gt as UiTreasuryStepCompletedTelemetryEventSchema, h as track, ht as UiReceiveStepCompletedTelemetryEventSchema, i as createPostHogBrowserPageviewTracker, in as JourneyVariantProps, it as NativeAuthorizationFailedTelemetryEventSchema, j as MemberActivationFailedTelemetryEventSchema, jt as OrganizationCreationStartedTelemetryEventSchema, k as BootstrapFailedTelemetryEventSchema, kt as OrganizationCreationFailedTelemetryEventSchema, l as sanitizePostHogBrowserEvent, ln as TELEMETRY_PRODUCERS, lt as InvoiceRequestTransitionedTelemetryEventSchema, m as setTrackHandler, mn as normalizeCapxulOperation, mt as UiPayrollActionCompletedTelemetryEventSchema, n as RecordingTelemetryAdapter, nn as EXPECTED_OUTCOME_EVENT_NAME, nt as NativeAuthorizationConnectedTelemetryEventSchema, o as initializePostHogBrowserAnalytics, on as ResponseHeadersSchema, ot as NativeAuthorizationStartedTelemetryEventSchema, p as getTrackHandler, pn as isCapxulOperation, pt as UiInvoiceStepCompletedTelemetryEventSchema, q as AccessRecoveryCompletedTelemetryEventSchema, qt as PaymentSettledTelemetryEventSchema, r as createCapxulBeforeSend, rn as FailureModeSchema, rt as NativeAuthorizationDeniedTelemetryEventSchema, s as productAppAnalytics, sn as SDK_EXPECTED_OUTCOME_EVENT_NAME, st as UiAccessStepCompletedTelemetryEventSchema, t as InMemoryTelemetryBusAdapter, tn as EXCEPTION_EVENT_NAME, tt as NativeAuthorizationAcceptedTelemetryEventSchema, u as maskCapturedNetworkRequest, un as stampTelemetryEnvelope, ut as PayrollGroupChangedTelemetryEventSchema, v as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, vt as UiActivityActionCompletedTelemetryEventSchema, w as VerificationLivenessRequestedTelemetryEventSchema, wt as ContactRelationshipChangedTelemetryEventSchema, x as TELEMETRY_EVENT_SCHEMAS, xt as MovementScanIncidentTelemetryEventSchema, y as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, yt as IndexerDriftCorrectedTelemetryEventSchema, z as ProvisioningSafeCreatedTelemetryEventSchema, zt as DepositInitiatedTelemetryEventSchema } from "./src-
|
|
1
|
+
import { $ as AuthVerifiedTelemetryEventSchema, $t as ChainAttemptSchema, A as BootstrapResolvedTelemetryEventSchema, At as OrganizationCreationReadyTelemetryEventSchema, B as CliCommandCompletedTelemetryEventSchema, Bt as DepositSettledTelemetryEventSchema, C as VerificationInformationRequestedTelemetryEventSchema, Ct as PermissionMirrorVerificationTelemetryEventSchema, D as VerificationSubmittedTelemetryEventSchema, Dt as OrgInviteProgressedTelemetryEventSchema, E as VerificationStartedTelemetryEventSchema, Et as OrgInviteExpiredTelemetryEventSchema, F as OnboardingIntentSelectedTelemetryEventSchema, Ft as OperationRetriedTelemetryEventSchema, G as CLI_COMMAND_NAMES, Gt as PaymentInitiatedTelemetryEventSchema, H as CliDiagnosticCompletedTelemetryEventSchema, Ht as FaucetFailedTelemetryEventSchema, I as OnboardingOrganizationSubmittedTelemetryEventSchema, It as ReceiptPendingTelemetryEventSchema, J as AuthFailedTelemetryEventSchema, Jt as PaymentVerificationRetryTelemetryEventSchema, K as CLI_INVOCATION_KINDS, Kt as PaymentLifecycleTransitionTelemetryEventSchema, L as OnboardingProfileSubmittedTelemetryEventSchema, Lt as AccountBalanceFailedTelemetryEventSchema, M as MemberActivationReadyTelemetryEventSchema, Mt as UiContactActionCompletedTelemetryEventSchema, N as MemberActivationStartedTelemetryEventSchema, Nt as BundlerErrorTelemetryEventSchema, O as VerificationTermsAcceptedTelemetryEventSchema, Ot as OrgInviteSentTelemetryEventSchema, P as OnboardingDashboardReachedTelemetryEventSchema, Pt as ChainUpstreamFallbackTelemetryEventSchema, Q as AuthSignedOutTelemetryEventSchema, Qt as CAPXUL_ENVS, R as ProvisioningSafeConfirmedTelemetryEventSchema, Rt as AccountBalanceReadTelemetryEventSchema, S as VerificationApprovedTelemetryEventSchema, St as MovementScanWindowTelemetryEventSchema, T as VerificationRejectedTelemetryEventSchema, Tt as OrgInviteAcceptedTelemetryEventSchema, U as CliFirstUsedTelemetryEventSchema, Ut as FaucetRequestedTelemetryEventSchema, V as CliCommandStartedTelemetryEventSchema, Vt as FaucetConfirmedTelemetryEventSchema, W as CLI_CAPABILITIES, Wt as PaymentFailedTelemetryEventSchema, X as AuthOtpExpiredTelemetryEventSchema, Xt as JOURNEYS, Y as AuthOtpDeliveredTelemetryEventSchema, Yt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, Z as AuthOtpRequestedTelemetryEventSchema, Zt as TELEMETRY_JOURNEYS, _ as CONTRACT_FIRST_TELEMETRY_EVENTS, _t as ActivityAnnotationSavedTelemetryEventSchema, a as initializeCapxulBrowserAnalytics, an as PII, at as NativeAuthorizationReviewedTelemetryEventSchema, b as RETIRED_TELEMETRY_EVENTS, bt as MovementScanCheckpointTelemetryEventSchema, c as utilityAppAnalytics, cn as SYNCABLE_CAPXUL_ENVS, ct as InvoiceIssuedTelemetryEventSchema, d as redactTelemetryEvent, dn as TELEMETRY_EVENT_NAMES, dt as PayrollRunTransitionedTelemetryEventSchema, en as ChainUpstreamSchema, et as IdentityRefusedTelemetryEventSchema, f as redactTelemetryProps, fn as CAPXUL_OPERATIONS, ft as UiApprovalSignInRequiredTelemetryEventSchema, g as BROWSER_GATED_TELEMETRY_EVENTS, gt as UiTreasuryStepCompletedTelemetryEventSchema, h as track, ht as UiReceiveStepCompletedTelemetryEventSchema, i as createPostHogBrowserPageviewTracker, in as JourneyVariantProps, it as NativeAuthorizationFailedTelemetryEventSchema, j as MemberActivationFailedTelemetryEventSchema, jt as OrganizationCreationStartedTelemetryEventSchema, k as BootstrapFailedTelemetryEventSchema, kt as OrganizationCreationFailedTelemetryEventSchema, l as sanitizePostHogBrowserEvent, ln as TELEMETRY_PRODUCERS, lt as InvoiceRequestTransitionedTelemetryEventSchema, m as setTrackHandler, mn as normalizeCapxulOperation, mt as UiPayrollActionCompletedTelemetryEventSchema, n as RecordingTelemetryAdapter, nn as EXPECTED_OUTCOME_EVENT_NAME, nt as NativeAuthorizationConnectedTelemetryEventSchema, o as initializePostHogBrowserAnalytics, on as ResponseHeadersSchema, ot as NativeAuthorizationStartedTelemetryEventSchema, p as getTrackHandler, pn as isCapxulOperation, pt as UiInvoiceStepCompletedTelemetryEventSchema, q as AccessRecoveryCompletedTelemetryEventSchema, qt as PaymentSettledTelemetryEventSchema, r as createCapxulBeforeSend, rn as FailureModeSchema, rt as NativeAuthorizationDeniedTelemetryEventSchema, s as productAppAnalytics, sn as SDK_EXPECTED_OUTCOME_EVENT_NAME, st as UiAccessStepCompletedTelemetryEventSchema, t as InMemoryTelemetryBusAdapter, tn as EXCEPTION_EVENT_NAME, tt as NativeAuthorizationAcceptedTelemetryEventSchema, u as maskCapturedNetworkRequest, un as stampTelemetryEnvelope, ut as PayrollGroupChangedTelemetryEventSchema, v as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, vt as UiActivityActionCompletedTelemetryEventSchema, w as VerificationLivenessRequestedTelemetryEventSchema, wt as ContactRelationshipChangedTelemetryEventSchema, x as TELEMETRY_EVENT_SCHEMAS, xt as MovementScanIncidentTelemetryEventSchema, y as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, yt as IndexerDriftCorrectedTelemetryEventSchema, z as ProvisioningSafeCreatedTelemetryEventSchema, zt as DepositInitiatedTelemetryEventSchema } from "./src-B2XswhQh.mjs";
|
|
2
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 };
|
|
@@ -2201,16 +2201,19 @@ const PaymentCommandSchema = Schema.Union([
|
|
|
2201
2201
|
PaymentBirthCommandSchema,
|
|
2202
2202
|
Schema.Struct({
|
|
2203
2203
|
kind: Schema.Literal("claim_commitment"),
|
|
2204
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2204
2205
|
actor: AccountActorRefSchema,
|
|
2205
2206
|
paymentId: PaymentIdSchema
|
|
2206
2207
|
}),
|
|
2207
2208
|
Schema.Struct({
|
|
2208
2209
|
kind: Schema.Literal("cancel_commitment"),
|
|
2210
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2209
2211
|
actor: ActorRefSchema,
|
|
2210
2212
|
paymentId: PaymentIdSchema
|
|
2211
2213
|
}),
|
|
2212
2214
|
Schema.Struct({
|
|
2213
2215
|
kind: Schema.Literal("redirect_commitment"),
|
|
2216
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2214
2217
|
actor: ActorRefSchema,
|
|
2215
2218
|
paymentId: PaymentIdSchema,
|
|
2216
2219
|
recipient: ActorOrDestinationRefSchema
|
|
@@ -2235,8 +2238,10 @@ const PreparedMoneyItemSchema = Schema.Union([
|
|
|
2235
2238
|
tokenAddress: AddressSchema$1,
|
|
2236
2239
|
rawAmount: WeiAmountSchema$1,
|
|
2237
2240
|
kind: Uint16Schema,
|
|
2238
|
-
documentHash: NonzeroDocumentHashSchema
|
|
2239
|
-
|
|
2241
|
+
documentHash: NonzeroDocumentHashSchema,
|
|
2242
|
+
jobNonce: Schema.optional(Bytes32Schema),
|
|
2243
|
+
executor: Schema.optional(AddressSchema$1)
|
|
2244
|
+
}).pipe(Schema.refine((item) => item.jobNonce === void 0 === (item.executor === void 0), { message: "Prepared V3 identity requires both jobNonce and executor" })),
|
|
2240
2245
|
Schema.Struct({
|
|
2241
2246
|
operation: Schema.Literal("create_commitment"),
|
|
2242
2247
|
paymentId: PaymentIdSchema,
|
|
@@ -2333,6 +2338,12 @@ const PersonalUnsignedUserOperationSchema = Schema.Struct({
|
|
|
2333
2338
|
entryPoint: Schema.optional(Schema.Never),
|
|
2334
2339
|
safe4337ModuleAddress: Schema.optional(Schema.Never)
|
|
2335
2340
|
});
|
|
2341
|
+
const SubmittedPaymentExecutionSchema = Schema.Struct({
|
|
2342
|
+
executionId: MoneyExecutionIdSchema,
|
|
2343
|
+
commandId: PaymentCommandIdSchema,
|
|
2344
|
+
userOpHash: Bytes32Schema,
|
|
2345
|
+
payment: Payment
|
|
2346
|
+
});
|
|
2336
2347
|
const PreparedPaymentExecutionSchema = Schema.Struct({
|
|
2337
2348
|
actorAccountId: AccountIdSchema$1,
|
|
2338
2349
|
item: PreparedMoneyItemSchema,
|
|
@@ -2350,7 +2361,8 @@ const PreparedPaymentExecutionSchema = Schema.Struct({
|
|
|
2350
2361
|
chainId: BaseSepoliaChainIdSchema,
|
|
2351
2362
|
signerAddress: AddressSchema$1,
|
|
2352
2363
|
userOpSenderSafe: SafeAddressSchema,
|
|
2353
|
-
digest: Bytes32Schema
|
|
2364
|
+
digest: Bytes32Schema,
|
|
2365
|
+
settled: Schema.optional(SubmittedPaymentExecutionSchema)
|
|
2354
2366
|
});
|
|
2355
2367
|
const SubmitPaymentExecutionInputSchema = Schema.Struct({
|
|
2356
2368
|
executionId: MoneyExecutionIdSchema,
|
|
@@ -2364,12 +2376,6 @@ const AbandonPaymentExecutionInputSchema = Schema.Struct({
|
|
|
2364
2376
|
"prepared_mismatch"
|
|
2365
2377
|
])
|
|
2366
2378
|
});
|
|
2367
|
-
const SubmittedPaymentExecutionSchema = Schema.Struct({
|
|
2368
|
-
executionId: MoneyExecutionIdSchema,
|
|
2369
|
-
commandId: PaymentCommandIdSchema,
|
|
2370
|
-
userOpHash: Bytes32Schema,
|
|
2371
|
-
payment: Payment
|
|
2372
|
-
});
|
|
2373
2379
|
const SubmittedPaymentCommandExecutionSchema = Schema.Struct({
|
|
2374
2380
|
executionId: MoneyExecutionIdSchema,
|
|
2375
2381
|
commandId: PaymentCommandIdSchema,
|
|
@@ -2384,14 +2390,17 @@ const PaymentLifecycleExecutionIntentSchema = Schema.Union([
|
|
|
2384
2390
|
}),
|
|
2385
2391
|
Schema.Struct({
|
|
2386
2392
|
kind: Schema.Literal("claim"),
|
|
2387
|
-
paymentId: PaymentIdSchema
|
|
2393
|
+
paymentId: PaymentIdSchema,
|
|
2394
|
+
requestKey: Schema.optional(nonEmpty("requestKey"))
|
|
2388
2395
|
}),
|
|
2389
2396
|
Schema.Struct({
|
|
2390
2397
|
kind: Schema.Literal("cancel"),
|
|
2391
|
-
paymentId: PaymentIdSchema
|
|
2398
|
+
paymentId: PaymentIdSchema,
|
|
2399
|
+
requestKey: Schema.optional(nonEmpty("requestKey"))
|
|
2392
2400
|
}),
|
|
2393
2401
|
Schema.Struct({
|
|
2394
2402
|
kind: Schema.Literal("redirect"),
|
|
2403
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2395
2404
|
paymentId: PaymentIdSchema,
|
|
2396
2405
|
recipient: RedirectPaymentRef
|
|
2397
2406
|
})
|
|
@@ -2450,10 +2459,12 @@ const RequestPaymentConfirmationFields = {
|
|
|
2450
2459
|
const RequestPaymentTermsSchema = Schema.Struct(RequestPaymentConfirmationFields);
|
|
2451
2460
|
const RequestPaymentConfirmationSchema = Schema.Union([Schema.Struct({
|
|
2452
2461
|
...RequestPaymentConfirmationFields,
|
|
2462
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2453
2463
|
payer: Schema.Struct({ kind: Schema.Literal("account") }),
|
|
2454
2464
|
permissionId: Schema.optional(Schema.Never)
|
|
2455
2465
|
}), Schema.Struct({
|
|
2456
2466
|
...RequestPaymentConfirmationFields,
|
|
2467
|
+
requestKey: Schema.optional(nonEmpty("requestKey")),
|
|
2457
2468
|
payer: OrganizationActorRefSchema,
|
|
2458
2469
|
permissionId: PermissionIdSchema
|
|
2459
2470
|
})]);
|
|
@@ -2513,13 +2524,14 @@ const PreparedPaymentCommandExecutionSchema = Schema.Struct({
|
|
|
2513
2524
|
commitmentId: Uint256StringSchema,
|
|
2514
2525
|
documentHash: NonzeroDocumentHashSchema
|
|
2515
2526
|
})),
|
|
2516
|
-
documentBundles: Schema.optional(Schema.Array(PaymentDocumentBundleV3Schema))
|
|
2527
|
+
documentBundles: Schema.optional(Schema.Array(PaymentDocumentBundleV3Schema)),
|
|
2528
|
+
settled: Schema.optional(SubmittedPaymentCommandExecutionSchema)
|
|
2517
2529
|
}).check(Schema.makeFilter((execution) => {
|
|
2518
2530
|
if (!("kind" in execution.request) || execution.request.kind !== "payment_request") return true;
|
|
2519
2531
|
const source = execution.sourceCommand;
|
|
2520
2532
|
const prepared = execution.preparedCommand;
|
|
2521
2533
|
if (source?.kind !== "birth" || prepared === void 0 || source.lineage?.kind !== "payment_request") return false;
|
|
2522
|
-
if (source.lineage.requestId !== execution.request.confirmation.requestId || source.requestKey !== execution.request.requestKey || source.requestKey !== execution.request.confirmation.requestId || execution.userOperation === void 0) return false;
|
|
2534
|
+
if (source.lineage.requestId !== execution.request.confirmation.requestId || source.requestKey !== execution.request.requestKey || source.requestKey !== (execution.request.confirmation.requestKey ?? execution.request.confirmation.requestId) || execution.userOperation === void 0) return false;
|
|
2523
2535
|
if ([
|
|
2524
2536
|
source.items.length,
|
|
2525
2537
|
execution.request.items.length,
|
|
@@ -2532,7 +2544,7 @@ const PreparedPaymentCommandExecutionSchema = Schema.Struct({
|
|
|
2532
2544
|
prepared.instructionDocuments?.length
|
|
2533
2545
|
].some((length) => length !== 1)) return false;
|
|
2534
2546
|
const item = prepared.items[0];
|
|
2535
|
-
return "recipientSafe" in item && item.operation === source.items[0].operation && item.operation === execution.request.items[0].operation && item.paymentId
|
|
2547
|
+
return "recipientSafe" in item && item.operation === source.items[0].operation && item.operation === execution.request.items[0].operation && [item.paymentId, execution.sourcePaymentIds?.[0]].every((id) => id === execution.paymentIds[0]) && item.recipientSafe === execution.sourceRecipientSafes?.[0];
|
|
2536
2548
|
}));
|
|
2537
2549
|
//#endregion
|
|
2538
2550
|
//#region ../protocol/src/accounts/approval-schema.ts
|
|
@@ -2600,6 +2612,7 @@ const ApprovalSummarySchema = Schema.Struct({
|
|
|
2600
2612
|
/** The exact operation the signature covers: the digest is the one thing the key signs. */
|
|
2601
2613
|
const ApprovalOperationSchema = Schema.Struct({
|
|
2602
2614
|
executionId: MoneyExecutionIdSchema,
|
|
2615
|
+
commandId: Schema.optional(nonEmpty("commandId")),
|
|
2603
2616
|
digest: Bytes32Schema,
|
|
2604
2617
|
userOperation: PersonalUnsignedUserOperationSchema,
|
|
2605
2618
|
paymentIds: Schema.Array(PaymentIdSchema)
|
|
@@ -2792,6 +2805,21 @@ const approvals = {
|
|
|
2792
2805
|
...APPROVAL
|
|
2793
2806
|
]
|
|
2794
2807
|
}),
|
|
2808
|
+
/** Read the signed operation's progress. Consumption alone does not prove completion. */
|
|
2809
|
+
observe: Operation.query("accounts.approvals.observe", {
|
|
2810
|
+
input: Schema.Struct({ approvalId: ApprovalIdSchema }),
|
|
2811
|
+
output: Schema.Struct({
|
|
2812
|
+
approval: ApprovalSchema,
|
|
2813
|
+
completed: Schema.Boolean
|
|
2814
|
+
}),
|
|
2815
|
+
errors: [
|
|
2816
|
+
...CALL$10,
|
|
2817
|
+
...DEFECTS,
|
|
2818
|
+
...APPROVAL,
|
|
2819
|
+
"SUPERSEDED",
|
|
2820
|
+
"TRANSACTION_FAILED"
|
|
2821
|
+
]
|
|
2822
|
+
}),
|
|
2795
2823
|
/** The person opened the approval page: stamp the first review of a pending approval. */
|
|
2796
2824
|
review: Operation.mutation("accounts.approvals.review", {
|
|
2797
2825
|
input: Schema.Struct({ approvalId: ApprovalIdSchema }),
|
|
@@ -2998,6 +3026,8 @@ const errors = [
|
|
|
2998
3026
|
...DEFECTS
|
|
2999
3027
|
];
|
|
3000
3028
|
const writeErrors = [...errors, "WRONG_STATE"];
|
|
3029
|
+
/** Bank-details writes also read Bridge's answer back, which can be unusable. */
|
|
3030
|
+
const bridgeWriteErrors = [...writeErrors, "PROVIDER_RESPONSE_INVALID"];
|
|
3001
3031
|
const bankDetails = {
|
|
3002
3032
|
list: Operation.query("banking.bankDetails.list", {
|
|
3003
3033
|
input: Schema.Struct({ actor: actor$3 }),
|
|
@@ -3012,7 +3042,7 @@ const bankDetails = {
|
|
|
3012
3042
|
open: Operation.action("banking.bankDetails.open", {
|
|
3013
3043
|
input: Schema.Struct(target),
|
|
3014
3044
|
output: BankDetailsSchema,
|
|
3015
|
-
errors:
|
|
3045
|
+
errors: bridgeWriteErrors
|
|
3016
3046
|
}),
|
|
3017
3047
|
settle: Operation.action("banking.bankDetails.settle", {
|
|
3018
3048
|
input: Schema.Struct({
|
|
@@ -3020,17 +3050,17 @@ const bankDetails = {
|
|
|
3020
3050
|
token: SettlementTokenSchema
|
|
3021
3051
|
}),
|
|
3022
3052
|
output: BankDetailsSchema,
|
|
3023
|
-
errors:
|
|
3053
|
+
errors: bridgeWriteErrors
|
|
3024
3054
|
}),
|
|
3025
3055
|
deactivate: Operation.action("banking.bankDetails.deactivate", {
|
|
3026
3056
|
input: Schema.Struct(target),
|
|
3027
3057
|
output: BankDetailsSchema,
|
|
3028
|
-
errors:
|
|
3058
|
+
errors: bridgeWriteErrors
|
|
3029
3059
|
}),
|
|
3030
3060
|
reactivate: Operation.action("banking.bankDetails.reactivate", {
|
|
3031
3061
|
input: Schema.Struct(target),
|
|
3032
3062
|
output: BankDetailsSchema,
|
|
3033
|
-
errors:
|
|
3063
|
+
errors: bridgeWriteErrors
|
|
3034
3064
|
})
|
|
3035
3065
|
};
|
|
3036
3066
|
const deposits = {
|
|
@@ -3876,6 +3906,7 @@ const CAPXUL_ERROR_CODES = [
|
|
|
3876
3906
|
"ACCOUNT_NOT_FOUND",
|
|
3877
3907
|
"ACCOUNT_CLAIMED_BY_OTHER_SIGNER",
|
|
3878
3908
|
"PROVIDER_ERROR",
|
|
3909
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
3879
3910
|
"CAPABILITY_UNAVAILABLE",
|
|
3880
3911
|
"INVALID_INPUT",
|
|
3881
3912
|
"ENV_MISSING",
|
|
@@ -3897,6 +3928,15 @@ const CAPXUL_ERROR_CODES = [
|
|
|
3897
3928
|
"WORK_DIED",
|
|
3898
3929
|
"ACTOR_STOPPED"
|
|
3899
3930
|
];
|
|
3931
|
+
/** The existing Organization authority refusal vocabulary. */
|
|
3932
|
+
const ROLE_PERMISSION_DENIED_REASONS = [
|
|
3933
|
+
"over_cap",
|
|
3934
|
+
"daily_cap",
|
|
3935
|
+
"not_member",
|
|
3936
|
+
"disallowed_recipient",
|
|
3937
|
+
"condition_violation",
|
|
3938
|
+
"budget_exhausted"
|
|
3939
|
+
];
|
|
3900
3940
|
//#endregion
|
|
3901
3941
|
//#region ../protocol/src/errors/credential-fields.ts
|
|
3902
3942
|
const CREDENTIAL_FIELDS = /* @__PURE__ */ new Set([
|
|
@@ -4197,6 +4237,12 @@ const CHAIN_UPSTREAMS = [
|
|
|
4197
4237
|
//#endregion
|
|
4198
4238
|
//#region ../protocol/src/errors/schema.ts
|
|
4199
4239
|
const FailureModeSchema$1 = Schema.Literals(FAILURE_MODES);
|
|
4240
|
+
Schema.Struct({
|
|
4241
|
+
reason: Schema.Literals(ROLE_PERMISSION_DENIED_REASONS),
|
|
4242
|
+
operation: Schema.optionalKey(Schema.String),
|
|
4243
|
+
remaining: Schema.optionalKey(AssetAmountSchema),
|
|
4244
|
+
required: Schema.optionalKey(AssetAmountSchema)
|
|
4245
|
+
});
|
|
4200
4246
|
const ChainUpstreamSchema$1 = Schema.Literals(CHAIN_UPSTREAMS);
|
|
4201
4247
|
const ChainCauseSchema = Schema.Struct({
|
|
4202
4248
|
mode: FailureModeSchema$1,
|
|
@@ -6818,6 +6864,7 @@ const inboxes = {
|
|
|
6818
6864
|
input: Schema.Struct({
|
|
6819
6865
|
actor,
|
|
6820
6866
|
paymentRequestId: Schema.String,
|
|
6867
|
+
requestKey: Schema.optionalKey(nonEmpty("requestKey")),
|
|
6821
6868
|
timing: Schema.optionalKey(PaymentTiming),
|
|
6822
6869
|
permissionId: Schema.optionalKey(Schema.String)
|
|
6823
6870
|
}),
|
|
@@ -7194,7 +7241,8 @@ const PEOPLE_OPERATIONS = {
|
|
|
7194
7241
|
expire: "accounts.approvals.expire",
|
|
7195
7242
|
recordApproval: "accounts.approvals.recordApproval",
|
|
7196
7243
|
recordExpiry: "accounts.approvals.recordExpiry",
|
|
7197
|
-
sendApproved: "accounts.approvals.sendApproved"
|
|
7244
|
+
sendApproved: "accounts.approvals.sendApproved",
|
|
7245
|
+
rescheduleApproved: "accounts.approvals.rescheduleApproved"
|
|
7198
7246
|
},
|
|
7199
7247
|
balances: { readBinding: "accounts.balances.readBinding" },
|
|
7200
7248
|
claims: {
|
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.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,8 +46,8 @@
|
|
|
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/
|
|
50
|
-
"@capxul/
|
|
49
|
+
"@capxul/protocol": "0.2.0-beta.7",
|
|
50
|
+
"@capxul/typescript-config": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"check-types": "vp exec ../../node_modules/@typescript/native/bin/tsc -p tsconfig.json --noEmit",
|