@capxul/observability 4.20.0-beta.33 → 4.20.0-beta.35

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.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-D6mFWvZL.mjs";
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-C_wvz630.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 === execution.paymentIds[0] && item.paymentId === execution.sourcePaymentIds?.[0] && item.recipientSafe === execution.sourceRecipientSafes?.[0];
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 }),
@@ -3897,6 +3925,15 @@ const CAPXUL_ERROR_CODES = [
3897
3925
  "WORK_DIED",
3898
3926
  "ACTOR_STOPPED"
3899
3927
  ];
3928
+ /** The existing Organization authority refusal vocabulary. */
3929
+ const ROLE_PERMISSION_DENIED_REASONS = [
3930
+ "over_cap",
3931
+ "daily_cap",
3932
+ "not_member",
3933
+ "disallowed_recipient",
3934
+ "condition_violation",
3935
+ "budget_exhausted"
3936
+ ];
3900
3937
  //#endregion
3901
3938
  //#region ../protocol/src/errors/credential-fields.ts
3902
3939
  const CREDENTIAL_FIELDS = /* @__PURE__ */ new Set([
@@ -4197,6 +4234,12 @@ const CHAIN_UPSTREAMS = [
4197
4234
  //#endregion
4198
4235
  //#region ../protocol/src/errors/schema.ts
4199
4236
  const FailureModeSchema$1 = Schema.Literals(FAILURE_MODES);
4237
+ Schema.Struct({
4238
+ reason: Schema.Literals(ROLE_PERMISSION_DENIED_REASONS),
4239
+ operation: Schema.optionalKey(Schema.String),
4240
+ remaining: Schema.optionalKey(AssetAmountSchema),
4241
+ required: Schema.optionalKey(AssetAmountSchema)
4242
+ });
4200
4243
  const ChainUpstreamSchema$1 = Schema.Literals(CHAIN_UPSTREAMS);
4201
4244
  const ChainCauseSchema = Schema.Struct({
4202
4245
  mode: FailureModeSchema$1,
@@ -6818,6 +6861,7 @@ const inboxes = {
6818
6861
  input: Schema.Struct({
6819
6862
  actor,
6820
6863
  paymentRequestId: Schema.String,
6864
+ requestKey: Schema.optionalKey(nonEmpty("requestKey")),
6821
6865
  timing: Schema.optionalKey(PaymentTiming),
6822
6866
  permissionId: Schema.optionalKey(Schema.String)
6823
6867
  }),
@@ -7194,7 +7238,8 @@ const PEOPLE_OPERATIONS = {
7194
7238
  expire: "accounts.approvals.expire",
7195
7239
  recordApproval: "accounts.approvals.recordApproval",
7196
7240
  recordExpiry: "accounts.approvals.recordExpiry",
7197
- sendApproved: "accounts.approvals.sendApproved"
7241
+ sendApproved: "accounts.approvals.sendApproved",
7242
+ rescheduleApproved: "accounts.approvals.rescheduleApproved"
7198
7243
  },
7199
7244
  balances: { readBinding: "accounts.balances.readBinding" },
7200
7245
  claims: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.20.0-beta.33",
3
+ "version": "4.20.0-beta.35",
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.5",
49
+ "@capxul/protocol": "0.2.0-beta.6",
50
50
  "@capxul/typescript-config": "0.0.0"
51
51
  },
52
52
  "scripts": {