@capxul/observability 4.20.0-beta.28 → 4.20.0-beta.29

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 UiAccessStepCompletedTelemetryEventSchema, $t as SYNCABLE_CAPXUL_ENVS, A as ProvisioningSafeConfirmedTelemetryEventSchema, At as DepositInitiatedTelemetryEventSchema, B as AuthFailedTelemetryEventSchema, Bt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, C as MemberActivationFailedTelemetryEventSchema, Ct as UiContactActionCompletedTelemetryEventSchema, D as OnboardingIntentSelectedTelemetryEventSchema, Dt as ReceiptPendingTelemetryEventSchema, E as OnboardingDashboardReachedTelemetryEventSchema, Et as OperationRetriedTelemetryEventSchema, F as CliFirstUsedTelemetryEventSchema, Ft as PaymentFailedTelemetryEventSchema, G as AuthVerifiedTelemetryEventSchema, Gt as ChainUpstreamSchema, H as AuthOtpExpiredTelemetryEventSchema, Ht as TELEMETRY_JOURNEYS, I as CLI_CAPABILITIES, It as PaymentInitiatedTelemetryEventSchema, J as NativeAuthorizationConnectedTelemetryEventSchema, Jt as FailureModeSchema, K as IdentityRefusedTelemetryEventSchema, Kt as EXCEPTION_EVENT_NAME, L as CLI_COMMAND_NAMES, Lt as PaymentLifecycleTransitionTelemetryEventSchema, M as CliCommandCompletedTelemetryEventSchema, Mt as FaucetConfirmedTelemetryEventSchema, N as CliCommandStartedTelemetryEventSchema, Nt as FaucetFailedTelemetryEventSchema, O as OnboardingOrganizationSubmittedTelemetryEventSchema, Ot as AccountBalanceFailedTelemetryEventSchema, P as CliDiagnosticCompletedTelemetryEventSchema, Pt as FaucetRequestedTelemetryEventSchema, Q as NativeAuthorizationStartedTelemetryEventSchema, Qt as SDK_EXPECTED_OUTCOME_EVENT_NAME, R as CLI_INVOCATION_KINDS, Rt as PaymentSettledTelemetryEventSchema, S as BootstrapResolvedTelemetryEventSchema, St as OrganizationCreationStartedTelemetryEventSchema, T as MemberActivationStartedTelemetryEventSchema, Tt as ChainUpstreamFallbackTelemetryEventSchema, U as AuthOtpRequestedTelemetryEventSchema, Ut as CAPXUL_ENVS, V as AuthOtpDeliveredTelemetryEventSchema, Vt as JOURNEYS, W as AuthSignedOutTelemetryEventSchema, Wt as ChainAttemptSchema, X as NativeAuthorizationFailedTelemetryEventSchema, Xt as PII, Y as NativeAuthorizationDeniedTelemetryEventSchema, Yt as JourneyVariantProps, Z as NativeAuthorizationReviewedTelemetryEventSchema, Zt as ResponseHeadersSchema, _ as CONTRACT_FIRST_TELEMETRY_EVENTS, _t as OrgInviteExpiredTelemetryEventSchema, a as initializeCapxulBrowserAnalytics, an as normalizeCapxulOperation, at as UiPayrollActionCompletedTelemetryEventSchema, b as TELEMETRY_EVENT_SCHEMAS, bt as OrganizationCreationFailedTelemetryEventSchema, c as utilityAppAnalytics, ct as ActivityAnnotationSavedTelemetryEventSchema, d as redactTelemetryEvent, dt as MovementScanCheckpointTelemetryEventSchema, en as TELEMETRY_PRODUCERS, et as InvoiceIssuedTelemetryEventSchema, f as redactTelemetryProps, ft as MovementScanIncidentTelemetryEventSchema, g as BROWSER_GATED_TELEMETRY_EVENTS, gt as OrgInviteAcceptedTelemetryEventSchema, h as track, ht as ContactRelationshipChangedTelemetryEventSchema, i as createPostHogBrowserPageviewTracker, in as isCapxulOperation, it as UiInvoiceStepCompletedTelemetryEventSchema, j as ProvisioningSafeCreatedTelemetryEventSchema, jt as DepositSettledTelemetryEventSchema, k as OnboardingProfileSubmittedTelemetryEventSchema, kt as AccountBalanceReadTelemetryEventSchema, l as sanitizePostHogBrowserEvent, lt as UiActivityActionCompletedTelemetryEventSchema, m as setTrackHandler, mt as PermissionMirrorVerificationTelemetryEventSchema, n as RecordingTelemetryAdapter, nn as TELEMETRY_EVENT_NAMES, nt as PayrollGroupChangedTelemetryEventSchema, o as initializePostHogBrowserAnalytics, ot as UiReceiveStepCompletedTelemetryEventSchema, p as getTrackHandler, pt as MovementScanWindowTelemetryEventSchema, q as NativeAuthorizationAcceptedTelemetryEventSchema, qt as EXPECTED_OUTCOME_EVENT_NAME, r as createCapxulBeforeSend, rn as CAPXUL_OPERATIONS, rt as PayrollRunTransitionedTelemetryEventSchema, s as productAppAnalytics, st as UiTreasuryStepCompletedTelemetryEventSchema, t as InMemoryTelemetryBusAdapter, tn as stampTelemetryEnvelope, tt as InvoiceRequestTransitionedTelemetryEventSchema, u as maskCapturedNetworkRequest, ut as IndexerDriftCorrectedTelemetryEventSchema, v as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, vt as OrgInviteProgressedTelemetryEventSchema, w as MemberActivationReadyTelemetryEventSchema, wt as BundlerErrorTelemetryEventSchema, x as BootstrapFailedTelemetryEventSchema, xt as OrganizationCreationReadyTelemetryEventSchema, y as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, yt as OrgInviteSentTelemetryEventSchema, z as AccessRecoveryCompletedTelemetryEventSchema, zt as PaymentVerificationRetryTelemetryEventSchema } from "./src-G-sneDMr.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, 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, ReceiptPendingTelemetryEventSchema, RecordingTelemetryAdapter, ResponseHeadersSchema, SDK_EXPECTED_OUTCOME_EVENT_NAME, SYNCABLE_CAPXUL_ENVS, TELEMETRY_EVENT_NAMES, TELEMETRY_EVENT_SCHEMAS, TELEMETRY_JOURNEYS, TELEMETRY_PRODUCERS, UiAccessStepCompletedTelemetryEventSchema, UiActivityActionCompletedTelemetryEventSchema, UiContactActionCompletedTelemetryEventSchema, UiInvoiceStepCompletedTelemetryEventSchema, UiPayrollActionCompletedTelemetryEventSchema, UiReceiveStepCompletedTelemetryEventSchema, UiTreasuryStepCompletedTelemetryEventSchema, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
1
+ import { $ as UiAccessStepCompletedTelemetryEventSchema, $t as SDK_EXPECTED_OUTCOME_EVENT_NAME, A as ProvisioningSafeConfirmedTelemetryEventSchema, At as AccountBalanceReadTelemetryEventSchema, B as AuthFailedTelemetryEventSchema, Bt as PaymentVerificationRetryTelemetryEventSchema, C as MemberActivationFailedTelemetryEventSchema, Ct as OrganizationCreationStartedTelemetryEventSchema, D as OnboardingIntentSelectedTelemetryEventSchema, Dt as OperationRetriedTelemetryEventSchema, E as OnboardingDashboardReachedTelemetryEventSchema, Et as ChainUpstreamFallbackTelemetryEventSchema, F as CliFirstUsedTelemetryEventSchema, Ft as FaucetRequestedTelemetryEventSchema, G as AuthVerifiedTelemetryEventSchema, Gt as ChainAttemptSchema, H as AuthOtpExpiredTelemetryEventSchema, Ht as JOURNEYS, I as CLI_CAPABILITIES, It as PaymentFailedTelemetryEventSchema, J as NativeAuthorizationConnectedTelemetryEventSchema, Jt as EXPECTED_OUTCOME_EVENT_NAME, K as IdentityRefusedTelemetryEventSchema, Kt as ChainUpstreamSchema, L as CLI_COMMAND_NAMES, Lt as PaymentInitiatedTelemetryEventSchema, M as CliCommandCompletedTelemetryEventSchema, Mt as DepositSettledTelemetryEventSchema, N as CliCommandStartedTelemetryEventSchema, Nt as FaucetConfirmedTelemetryEventSchema, O as OnboardingOrganizationSubmittedTelemetryEventSchema, Ot as ReceiptPendingTelemetryEventSchema, P as CliDiagnosticCompletedTelemetryEventSchema, Pt as FaucetFailedTelemetryEventSchema, Q as NativeAuthorizationStartedTelemetryEventSchema, Qt as ResponseHeadersSchema, R as CLI_INVOCATION_KINDS, Rt as PaymentLifecycleTransitionTelemetryEventSchema, S as BootstrapResolvedTelemetryEventSchema, St as OrganizationCreationReadyTelemetryEventSchema, T as MemberActivationStartedTelemetryEventSchema, Tt as BundlerErrorTelemetryEventSchema, U as AuthOtpRequestedTelemetryEventSchema, Ut as TELEMETRY_JOURNEYS, V as AuthOtpDeliveredTelemetryEventSchema, Vt as QuickPayExternalAddressAcknowledgedTelemetryEventSchema, W as AuthSignedOutTelemetryEventSchema, Wt as CAPXUL_ENVS, X as NativeAuthorizationFailedTelemetryEventSchema, Xt as JourneyVariantProps, Y as NativeAuthorizationDeniedTelemetryEventSchema, Yt as FailureModeSchema, Z as NativeAuthorizationReviewedTelemetryEventSchema, Zt as PII, _ as CONTRACT_FIRST_TELEMETRY_EVENTS, _t as OrgInviteAcceptedTelemetryEventSchema, a as initializeCapxulBrowserAnalytics, an as isCapxulOperation, at as UiInvoiceStepCompletedTelemetryEventSchema, b as TELEMETRY_EVENT_SCHEMAS, bt as OrgInviteSentTelemetryEventSchema, c as utilityAppAnalytics, ct as UiTreasuryStepCompletedTelemetryEventSchema, d as redactTelemetryEvent, dt as IndexerDriftCorrectedTelemetryEventSchema, en as SYNCABLE_CAPXUL_ENVS, et as InvoiceIssuedTelemetryEventSchema, f as redactTelemetryProps, ft as MovementScanCheckpointTelemetryEventSchema, g as BROWSER_GATED_TELEMETRY_EVENTS, gt as ContactRelationshipChangedTelemetryEventSchema, h as track, ht as PermissionMirrorVerificationTelemetryEventSchema, i as createPostHogBrowserPageviewTracker, in as CAPXUL_OPERATIONS, it as UiApprovalSignInRequiredTelemetryEventSchema, j as ProvisioningSafeCreatedTelemetryEventSchema, jt as DepositInitiatedTelemetryEventSchema, k as OnboardingProfileSubmittedTelemetryEventSchema, kt as AccountBalanceFailedTelemetryEventSchema, l as sanitizePostHogBrowserEvent, lt as ActivityAnnotationSavedTelemetryEventSchema, m as setTrackHandler, mt as MovementScanWindowTelemetryEventSchema, n as RecordingTelemetryAdapter, nn as stampTelemetryEnvelope, nt as PayrollGroupChangedTelemetryEventSchema, o as initializePostHogBrowserAnalytics, on as normalizeCapxulOperation, ot as UiPayrollActionCompletedTelemetryEventSchema, p as getTrackHandler, pt as MovementScanIncidentTelemetryEventSchema, q as NativeAuthorizationAcceptedTelemetryEventSchema, qt as EXCEPTION_EVENT_NAME, r as createCapxulBeforeSend, rn as TELEMETRY_EVENT_NAMES, rt as PayrollRunTransitionedTelemetryEventSchema, s as productAppAnalytics, st as UiReceiveStepCompletedTelemetryEventSchema, t as InMemoryTelemetryBusAdapter, tn as TELEMETRY_PRODUCERS, tt as InvoiceRequestTransitionedTelemetryEventSchema, u as maskCapturedNetworkRequest, ut as UiActivityActionCompletedTelemetryEventSchema, v as FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS, vt as OrgInviteExpiredTelemetryEventSchema, w as MemberActivationReadyTelemetryEventSchema, wt as UiContactActionCompletedTelemetryEventSchema, x as BootstrapFailedTelemetryEventSchema, xt as OrganizationCreationFailedTelemetryEventSchema, y as PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS, yt as OrgInviteProgressedTelemetryEventSchema, z as AccessRecoveryCompletedTelemetryEventSchema, zt as PaymentSettledTelemetryEventSchema } from "./src-CAQEATmQ.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, 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, 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, createCapxulBeforeSend, createPostHogBrowserPageviewTracker, getTrackHandler, initializeCapxulBrowserAnalytics, initializePostHogBrowserAnalytics, isCapxulOperation, maskCapturedNetworkRequest, normalizeCapxulOperation, productAppAnalytics, redactTelemetryEvent, redactTelemetryProps, sanitizePostHogBrowserEvent, setTrackHandler, stampTelemetryEnvelope, track, utilityAppAnalytics };
@@ -2047,7 +2047,9 @@ const OrganizationPaymentExecutionItemSchema = Schema.Struct({
2047
2047
  "invoice",
2048
2048
  "payroll",
2049
2049
  "reimbursement"
2050
- ]))
2050
+ ])),
2051
+ /** When the recipient gets it: instant (the default), or held until a date or over a period. */
2052
+ timing: Schema.optional(PaymentTiming)
2051
2053
  }).check(Schema.makeFilter((value) => Schema.is(PaymentDocumentOptionsSchema)(value)));
2052
2054
  const PrepareOrganizationPaymentExecutionInputSchema = Schema.Struct({
2053
2055
  orgId: nonEmpty("orgId"),
@@ -2157,11 +2159,20 @@ const PreparedPaymentCommandExecutionSchema = Schema.Struct({
2157
2159
  //#region ../protocol/src/accounts/approval-schema.ts
2158
2160
  const APPROVAL_ID_RE = /^approval_[0-9A-HJKMNP-TV-Z]{26}$/u;
2159
2161
  const ApprovalIdSchema = Schema.String.pipe(Schema.refine((value) => APPROVAL_ID_RE.test(value), { message: "must be approval_ plus a ULID" }));
2160
- /** What is being approved. */
2162
+ /**
2163
+ * What is being approved. A `permission_change` creates, changes, assigns,
2164
+ * revokes or replaces an Organization's Permissions; an `invitation` sets up
2165
+ * the rights an invitation offers. Neither moves money. A `payment_cancel`
2166
+ * returns a held Payment to whoever funded it; a `payment_redirect` sends it
2167
+ * to someone else.
2168
+ */
2161
2169
  const APPROVAL_KINDS = [
2162
2170
  "payment",
2163
2171
  "payroll_run",
2172
+ "payment_cancel",
2173
+ "payment_redirect",
2164
2174
  "permission_change",
2175
+ "invitation",
2165
2176
  "bank_payout"
2166
2177
  ];
2167
2178
  /**
@@ -2385,8 +2396,7 @@ const approvals = {
2385
2396
  errors: [
2386
2397
  ...CALL$10,
2387
2398
  ...DEFECTS,
2388
- "WRONG_STATE",
2389
- "NOT_IMPLEMENTED"
2399
+ "WRONG_STATE"
2390
2400
  ]
2391
2401
  }),
2392
2402
  /** The approval as the person reads it, with its state judged against its expiry. */
@@ -2968,6 +2978,15 @@ const PermissionSchema = Schema.Struct({
2968
2978
  limitRaw: Schema.optional(WeiAmountSchema$1),
2969
2979
  allowanceKey: Schema.optional(AllowanceKeySchema)
2970
2980
  });
2981
+ /**
2982
+ * A refilling Budget's refill (#2439): how much each one adds, every how many
2983
+ * days, and when the next one is due.
2984
+ */
2985
+ const BudgetNextRefillSchema = Schema.Struct({
2986
+ amount: AssetAmountSchema,
2987
+ everyDays: Schema.Finite,
2988
+ nextAt: EpochMsSchema$1
2989
+ });
2971
2990
  const PermissionAssignmentSchema = Schema.Struct({
2972
2991
  permissionAssignmentId: PermissionAssignmentIdSchema,
2973
2992
  permissionId: PermissionIdSchema,
@@ -5657,6 +5676,30 @@ const authorities = {
5657
5676
  "ROLE_PERMISSION_DENIED"
5658
5677
  ]
5659
5678
  }),
5679
+ /**
5680
+ * What one active Budget can still spend now: its Roles allowance, read on
5681
+ * chain at the latest block as the payment gate reads it. `left` is null for
5682
+ * a Budget with no allowance (no cap). `refill` names a refilling Budget's
5683
+ * refill and when the next one is due; null for a one-off or uncapped Budget
5684
+ * (#2439). For a participant of the Organization.
5685
+ */
5686
+ budgetLeft: Operation.action("permissions.authorities.budgetLeft", {
5687
+ input: Schema.Struct({
5688
+ orgId: OrgId,
5689
+ budgetId: PermissionIdSchema
5690
+ }),
5691
+ output: Schema.Struct({
5692
+ budgetId: PermissionIdSchema,
5693
+ left: Schema.NullOr(AssetAmountSchema),
5694
+ refill: Schema.optionalKey(Schema.NullOr(BudgetNextRefillSchema))
5695
+ }),
5696
+ errors: [
5697
+ ...CALL$2,
5698
+ ...DEFECTS,
5699
+ ...CHAIN$1,
5700
+ "ROLE_PERMISSION_DENIED"
5701
+ ]
5702
+ }),
5660
5703
  /** Whether the caller's Account may spend this amount from this Budget right now. */
5661
5704
  authorize: Operation.query("permissions.authorities.authorize", {
5662
5705
  input: MoneyAuthorizationRequestSchema,
@@ -6547,6 +6590,7 @@ const ORGANIZATION_OPERATIONS = {
6547
6590
  payment: "org.payment",
6548
6591
  permissions: {
6549
6592
  assign: "org.permissions.assign",
6593
+ budgetLeft: "org.permissions.budgetLeft",
6550
6594
  change: "org.permissions.change",
6551
6595
  create: "org.permissions.create",
6552
6596
  get: "org.permissions.get",
@@ -6793,6 +6837,9 @@ emitChanged: "payroll.groups.emitChanged" }
6793
6837
  },
6794
6838
  /** Permissions' internal functions; its public rows join from `OPERATIONS`. */
6795
6839
  permissions: {
6840
+ authorities: {
6841
+ /** The Budget-left read's participant check and the Budget's stored allowance. */
6842
+ loadBudgetLeft: "permissions.authorities.loadBudgetLeft" },
6796
6843
  commands: {
6797
6844
  /** The prepare action's transaction: authorize, plan and save the command. */
6798
6845
  prepareIntent: "permissions.commands.prepareIntent",
@@ -7087,6 +7134,7 @@ const TELEMETRY_EVENT_NAMES = [
7087
7134
  "payroll_group_changed",
7088
7135
  "payroll_run_transitioned",
7089
7136
  "ui_payroll_action_completed",
7137
+ "ui_approval_sign_in_required",
7090
7138
  "cli_diagnostic_completed",
7091
7139
  "cli_first_used",
7092
7140
  "cli_command_started",
@@ -8310,6 +8358,21 @@ const UiReceiveStepCompletedTelemetryEventSchema = Schema.Struct({
8310
8358
  account_kind: Schema.optional(AccountKindSchema)
8311
8359
  })
8312
8360
  });
8361
+ /**
8362
+ * The approval page (`/approve/<id>`) had to ask for sign-in before the person
8363
+ * could review: the browser had no session (`signed_out`), or held a different
8364
+ * account than the one that must sign (`wrong_account`). The browser's session
8365
+ * is separate from the CLI's, so this is the cost of the hand-off. It carries no
8366
+ * email or account of either side.
8367
+ */
8368
+ const UiApprovalSignInRequiredTelemetryEventSchema = Schema.Struct({
8369
+ name: Schema.Literal("ui_approval_sign_in_required"),
8370
+ props: Schema.Struct({
8371
+ ...TelemetryEnvelopeProps,
8372
+ approval_id: Schema.String,
8373
+ reason: Schema.Literals(["signed_out", "wrong_account"])
8374
+ })
8375
+ });
8313
8376
  const PayrollGroupChangedTelemetryEventSchema = Schema.Struct({
8314
8377
  name: Schema.Literal("payroll_group_changed"),
8315
8378
  props: Schema.Struct({
@@ -8577,6 +8640,8 @@ const CLI_COMMAND_NAMES = [
8577
8640
  "payment.get",
8578
8641
  "payment.wait",
8579
8642
  "payment.retry",
8643
+ "payment.cancel",
8644
+ "payment.redirect",
8580
8645
  "inbox",
8581
8646
  CAPXUL_OPERATIONS.inbox.list,
8582
8647
  "inbox.get",
@@ -8910,6 +8975,7 @@ const TELEMETRY_EVENT_SCHEMAS = {
8910
8975
  payroll_group_changed: PayrollGroupChangedTelemetryEventSchema,
8911
8976
  payroll_run_transitioned: PayrollRunTransitionedTelemetryEventSchema,
8912
8977
  ui_payroll_action_completed: UiPayrollActionCompletedTelemetryEventSchema,
8978
+ ui_approval_sign_in_required: UiApprovalSignInRequiredTelemetryEventSchema,
8913
8979
  ui_contact_action_completed: UiContactActionCompletedTelemetryEventSchema,
8914
8980
  cli_diagnostic_completed: CliDiagnosticCompletedTelemetryEventSchema,
8915
8981
  cli_first_used: CliFirstUsedTelemetryEventSchema,
@@ -8998,7 +9064,8 @@ const BROWSER_GATED_TELEMETRY_EVENTS = [
8998
9064
  "ui_invoice_step_completed",
8999
9065
  "ui_treasury_step_completed",
9000
9066
  "ui_receive_step_completed",
9001
- "ui_payroll_action_completed"
9067
+ "ui_payroll_action_completed",
9068
+ "ui_approval_sign_in_required"
9002
9069
  ];
9003
9070
  //#endregion
9004
9071
  //#region src/telemetry/track.ts
@@ -9558,4 +9625,4 @@ var InMemoryTelemetryBusAdapter = class extends EventOnlyPort {
9558
9625
  }
9559
9626
  };
9560
9627
  //#endregion
9561
- export { UiAccessStepCompletedTelemetryEventSchema as $, SYNCABLE_CAPXUL_ENVS as $t, ProvisioningSafeConfirmedTelemetryEventSchema as A, DepositInitiatedTelemetryEventSchema as At, AuthFailedTelemetryEventSchema as B, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Bt, MemberActivationFailedTelemetryEventSchema as C, UiContactActionCompletedTelemetryEventSchema as Ct, OnboardingIntentSelectedTelemetryEventSchema as D, ReceiptPendingTelemetryEventSchema as Dt, OnboardingDashboardReachedTelemetryEventSchema as E, OperationRetriedTelemetryEventSchema as Et, CliFirstUsedTelemetryEventSchema as F, PaymentFailedTelemetryEventSchema as Ft, AuthVerifiedTelemetryEventSchema as G, ChainUpstreamSchema as Gt, AuthOtpExpiredTelemetryEventSchema as H, TELEMETRY_JOURNEYS as Ht, CLI_CAPABILITIES as I, PaymentInitiatedTelemetryEventSchema as It, NativeAuthorizationConnectedTelemetryEventSchema as J, FailureModeSchema as Jt, IdentityRefusedTelemetryEventSchema as K, EXCEPTION_EVENT_NAME as Kt, CLI_COMMAND_NAMES as L, PaymentLifecycleTransitionTelemetryEventSchema as Lt, CliCommandCompletedTelemetryEventSchema as M, FaucetConfirmedTelemetryEventSchema as Mt, CliCommandStartedTelemetryEventSchema as N, FaucetFailedTelemetryEventSchema as Nt, OnboardingOrganizationSubmittedTelemetryEventSchema as O, AccountBalanceFailedTelemetryEventSchema as Ot, CliDiagnosticCompletedTelemetryEventSchema as P, FaucetRequestedTelemetryEventSchema as Pt, NativeAuthorizationStartedTelemetryEventSchema as Q, SDK_EXPECTED_OUTCOME_EVENT_NAME as Qt, CLI_INVOCATION_KINDS as R, PaymentSettledTelemetryEventSchema as Rt, BootstrapResolvedTelemetryEventSchema as S, OrganizationCreationStartedTelemetryEventSchema as St, MemberActivationStartedTelemetryEventSchema as T, ChainUpstreamFallbackTelemetryEventSchema as Tt, AuthOtpRequestedTelemetryEventSchema as U, CAPXUL_ENVS as Ut, AuthOtpDeliveredTelemetryEventSchema as V, JOURNEYS as Vt, AuthSignedOutTelemetryEventSchema as W, ChainAttemptSchema as Wt, NativeAuthorizationFailedTelemetryEventSchema as X, PII as Xt, NativeAuthorizationDeniedTelemetryEventSchema as Y, JourneyVariantProps as Yt, NativeAuthorizationReviewedTelemetryEventSchema as Z, ResponseHeadersSchema as Zt, CONTRACT_FIRST_TELEMETRY_EVENTS as _, OrgInviteExpiredTelemetryEventSchema as _t, initializeCapxulBrowserAnalytics as a, normalizeCapxulOperation as an, UiPayrollActionCompletedTelemetryEventSchema as at, TELEMETRY_EVENT_SCHEMAS as b, OrganizationCreationFailedTelemetryEventSchema as bt, utilityAppAnalytics as c, redactSecrets as cn, ActivityAnnotationSavedTelemetryEventSchema as ct, redactTelemetryEvent as d, CAPXUL_ERROR_CODES as dn, MovementScanCheckpointTelemetryEventSchema as dt, TELEMETRY_PRODUCERS as en, InvoiceIssuedTelemetryEventSchema as et, redactTelemetryProps as f, FAILURE_MODES as fn, MovementScanIncidentTelemetryEventSchema as ft, BROWSER_GATED_TELEMETRY_EVENTS as g, OrgInviteAcceptedTelemetryEventSchema as gt, track as h, ContactRelationshipChangedTelemetryEventSchema as ht, createPostHogBrowserPageviewTracker as i, isCapxulOperation as in, UiInvoiceStepCompletedTelemetryEventSchema as it, ProvisioningSafeCreatedTelemetryEventSchema as j, DepositSettledTelemetryEventSchema as jt, OnboardingProfileSubmittedTelemetryEventSchema as k, AccountBalanceReadTelemetryEventSchema as kt, sanitizePostHogBrowserEvent as l, redactUrlSecrets as ln, UiActivityActionCompletedTelemetryEventSchema as lt, setTrackHandler as m, PermissionMirrorVerificationTelemetryEventSchema as mt, RecordingTelemetryAdapter as n, TELEMETRY_EVENT_NAMES as nn, PayrollGroupChangedTelemetryEventSchema as nt, initializePostHogBrowserAnalytics as o, ORGANIZATION_SETUP_REASONS as on, UiReceiveStepCompletedTelemetryEventSchema as ot, getTrackHandler as p, MovementScanWindowTelemetryEventSchema as pt, NativeAuthorizationAcceptedTelemetryEventSchema as q, EXPECTED_OUTCOME_EVENT_NAME as qt, createCapxulBeforeSend as r, CAPXUL_OPERATIONS as rn, PayrollRunTransitionedTelemetryEventSchema as rt, productAppAnalytics as s, ORGANIZATION_SETUP_STATUSES as sn, UiTreasuryStepCompletedTelemetryEventSchema as st, InMemoryTelemetryBusAdapter as t, stampTelemetryEnvelope as tn, InvoiceRequestTransitionedTelemetryEventSchema as tt, maskCapturedNetworkRequest as u, isCredentialField as un, IndexerDriftCorrectedTelemetryEventSchema as ut, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as v, OrgInviteProgressedTelemetryEventSchema as vt, MemberActivationReadyTelemetryEventSchema as w, BundlerErrorTelemetryEventSchema as wt, BootstrapFailedTelemetryEventSchema as x, OrganizationCreationReadyTelemetryEventSchema as xt, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as y, OrgInviteSentTelemetryEventSchema as yt, AccessRecoveryCompletedTelemetryEventSchema as z, PaymentVerificationRetryTelemetryEventSchema as zt };
9628
+ export { UiAccessStepCompletedTelemetryEventSchema as $, SDK_EXPECTED_OUTCOME_EVENT_NAME as $t, ProvisioningSafeConfirmedTelemetryEventSchema as A, AccountBalanceReadTelemetryEventSchema as At, AuthFailedTelemetryEventSchema as B, PaymentVerificationRetryTelemetryEventSchema as Bt, MemberActivationFailedTelemetryEventSchema as C, OrganizationCreationStartedTelemetryEventSchema as Ct, OnboardingIntentSelectedTelemetryEventSchema as D, OperationRetriedTelemetryEventSchema as Dt, OnboardingDashboardReachedTelemetryEventSchema as E, ChainUpstreamFallbackTelemetryEventSchema as Et, CliFirstUsedTelemetryEventSchema as F, FaucetRequestedTelemetryEventSchema as Ft, AuthVerifiedTelemetryEventSchema as G, ChainAttemptSchema as Gt, AuthOtpExpiredTelemetryEventSchema as H, JOURNEYS as Ht, CLI_CAPABILITIES as I, PaymentFailedTelemetryEventSchema as It, NativeAuthorizationConnectedTelemetryEventSchema as J, EXPECTED_OUTCOME_EVENT_NAME as Jt, IdentityRefusedTelemetryEventSchema as K, ChainUpstreamSchema as Kt, CLI_COMMAND_NAMES as L, PaymentInitiatedTelemetryEventSchema as Lt, CliCommandCompletedTelemetryEventSchema as M, DepositSettledTelemetryEventSchema as Mt, CliCommandStartedTelemetryEventSchema as N, FaucetConfirmedTelemetryEventSchema as Nt, OnboardingOrganizationSubmittedTelemetryEventSchema as O, ReceiptPendingTelemetryEventSchema as Ot, CliDiagnosticCompletedTelemetryEventSchema as P, FaucetFailedTelemetryEventSchema as Pt, NativeAuthorizationStartedTelemetryEventSchema as Q, ResponseHeadersSchema as Qt, CLI_INVOCATION_KINDS as R, PaymentLifecycleTransitionTelemetryEventSchema as Rt, BootstrapResolvedTelemetryEventSchema as S, OrganizationCreationReadyTelemetryEventSchema as St, MemberActivationStartedTelemetryEventSchema as T, BundlerErrorTelemetryEventSchema as Tt, AuthOtpRequestedTelemetryEventSchema as U, TELEMETRY_JOURNEYS as Ut, AuthOtpDeliveredTelemetryEventSchema as V, QuickPayExternalAddressAcknowledgedTelemetryEventSchema as Vt, AuthSignedOutTelemetryEventSchema as W, CAPXUL_ENVS as Wt, NativeAuthorizationFailedTelemetryEventSchema as X, JourneyVariantProps as Xt, NativeAuthorizationDeniedTelemetryEventSchema as Y, FailureModeSchema as Yt, NativeAuthorizationReviewedTelemetryEventSchema as Z, PII as Zt, CONTRACT_FIRST_TELEMETRY_EVENTS as _, OrgInviteAcceptedTelemetryEventSchema as _t, initializeCapxulBrowserAnalytics as a, isCapxulOperation as an, UiInvoiceStepCompletedTelemetryEventSchema as at, TELEMETRY_EVENT_SCHEMAS as b, OrgInviteSentTelemetryEventSchema as bt, utilityAppAnalytics as c, ORGANIZATION_SETUP_STATUSES as cn, UiTreasuryStepCompletedTelemetryEventSchema as ct, redactTelemetryEvent as d, isCredentialField as dn, IndexerDriftCorrectedTelemetryEventSchema as dt, SYNCABLE_CAPXUL_ENVS as en, InvoiceIssuedTelemetryEventSchema as et, redactTelemetryProps as f, CAPXUL_ERROR_CODES as fn, MovementScanCheckpointTelemetryEventSchema as ft, BROWSER_GATED_TELEMETRY_EVENTS as g, ContactRelationshipChangedTelemetryEventSchema as gt, track as h, PermissionMirrorVerificationTelemetryEventSchema as ht, createPostHogBrowserPageviewTracker as i, CAPXUL_OPERATIONS as in, UiApprovalSignInRequiredTelemetryEventSchema as it, ProvisioningSafeCreatedTelemetryEventSchema as j, DepositInitiatedTelemetryEventSchema as jt, OnboardingProfileSubmittedTelemetryEventSchema as k, AccountBalanceFailedTelemetryEventSchema as kt, sanitizePostHogBrowserEvent as l, redactSecrets as ln, ActivityAnnotationSavedTelemetryEventSchema as lt, setTrackHandler as m, MovementScanWindowTelemetryEventSchema as mt, RecordingTelemetryAdapter as n, stampTelemetryEnvelope as nn, PayrollGroupChangedTelemetryEventSchema as nt, initializePostHogBrowserAnalytics as o, normalizeCapxulOperation as on, UiPayrollActionCompletedTelemetryEventSchema as ot, getTrackHandler as p, FAILURE_MODES as pn, MovementScanIncidentTelemetryEventSchema as pt, NativeAuthorizationAcceptedTelemetryEventSchema as q, EXCEPTION_EVENT_NAME as qt, createCapxulBeforeSend as r, TELEMETRY_EVENT_NAMES as rn, PayrollRunTransitionedTelemetryEventSchema as rt, productAppAnalytics as s, ORGANIZATION_SETUP_REASONS as sn, UiReceiveStepCompletedTelemetryEventSchema as st, InMemoryTelemetryBusAdapter as t, TELEMETRY_PRODUCERS as tn, InvoiceRequestTransitionedTelemetryEventSchema as tt, maskCapturedNetworkRequest as u, redactUrlSecrets as un, UiActivityActionCompletedTelemetryEventSchema as ut, FINANCIAL_OPS_TARGET_TELEMETRY_PRODUCERS as v, OrgInviteExpiredTelemetryEventSchema as vt, MemberActivationReadyTelemetryEventSchema as w, UiContactActionCompletedTelemetryEventSchema as wt, BootstrapFailedTelemetryEventSchema as x, OrganizationCreationFailedTelemetryEventSchema as xt, PRODUCT_MAPPER_GATED_TELEMETRY_EVENTS as y, OrgInviteProgressedTelemetryEventSchema as yt, AccessRecoveryCompletedTelemetryEventSchema as z, PaymentSettledTelemetryEventSchema as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/observability",
3
- "version": "4.20.0-beta.28",
3
+ "version": "4.20.0-beta.29",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
42
42
  "vite-plus": "1.0.0",
43
43
  "vitest": "5.0.1",
44
- "@capxul/protocol": "0.2.0-beta.2",
44
+ "@capxul/protocol": "0.2.0-beta.3",
45
45
  "@capxul/typescript-config": "0.0.0"
46
46
  },
47
47
  "scripts": {