@capxul/sdk 4.20.0-beta.27 → 4.20.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as CurrentUserMethods, $i as CheckoutReceipt, $n as TOKENS, $o as toCurrencyCode, $r as ActivitySummaryTotal, $t as DestinationKind, A as assetSymbolFor, Aa as AuthorityRef, Ai as PaymentDocumentOptionsSchema, An as OrganizationPaymentBatchInput, Ao as toPermissionAssignmentId, Ar as isSettingUpLifecycle, At as PermissionPolicyChange, B as CreateCapxulClientInput, Ba as InvitationView, Bi as fingerprintPaymentIntent, Bn as FinancialOpsMethods, Bo as PartyId, Br as ActivityAnnotation, Bt as InvitationSubscriptionOptions, C as OpenfortBrowserAuth, Ca as InvocationControls, Ci as PaymentSubscriptionOptions, Cn as PayRequestRegisteredInput, Co as PayrollGroupId, Cr as PayrollRunSnapshot, Ct as decodePermissionIntent, D as createOpenfortBrowserSigner, Da as OrganizationSetupSnapshot, Di as PaymentsPayOptions, Dn as ResolvedTarget, Do as PermissionId, Dr as Approval, Dt as PermissionCreateInput, Ea as OrganizationSetupPageInput, Ei as PaymentsPayInput, En as Ref, Eo as BudgetId, Er as PayrollRunDetail, Et as PermissionChangeInput, F as MoneyParseError, Fa as InvitationPage, Fi as PaymentDocumentRender, Fn as OfframpMethods, Fo as CountryCode, Fr as MeProfile, Ft as PermissionCommandSnapshot, G as UploadImageResult, Ga as SpendingScope, Gi as SignerStatusStore, Gn as CurrentHoldings, Go as Address, Gr as ActivityKind, Gt as OrgInvitations, H as IdentityRuntime, Ha as InviteInput, Hi as CapxulSigner, Hn as SmartAccountMethods, Ho as toPartyId, Hr as ActivityDetail, Ht as InviteOptions, I as MoneyParseErrorReason, Ia as InvitationPageInput, Ii as PaymentDocumentVerification, In as OfframpQuote, Io as TesterKind, Ir as ActivityPhase, It as PermissionCommandView, J as Destination$1, Ja as CurrentPolicy, Ji as AccountProviderSource, Jn as RateSource, Jo as Errors, Jr as ActivityPage, Jt as OrgMe, K as SystemHealth, Ka as PermissionReplacementPreview, Ki as injectedWalletSigner, Kn as AccountsMethods, Ko as EVM_ADDRESS_RE, Kr as ActivityListParams, Kt as OwnInvitationsMethod, L as isMoneyParseError, La as InvitationPhase, Li as PAYMENT_DIRECTIONS, Ln as OfframpQuoteInput, Lo as toCountryCode, Lr as inboxPhase, Lt as SubmittedPermissionExecution, M as parseAssetAmount, Ma as GranteeRef, Mi as SupportingReceiptInput, Mn as OrganizationPaymentItemInput, Mo as Account, Mr as DepositInstructions, Mt as PermissionReadResult, N as requireAsset, Na as InvitationAcceptInput, Ni as PaymentDocumentDownload, Nn as OrganizationPaymentRetryPreview, No as AccountId, Nr as Home, Nt as PermissionReplaceInput, O as CAPXUL_PAYMENTS_V2_ADDRESS, Oa as SetupIssue, Oi as InvoiceDraft, On as TargetReference, Oo as RoleKey, Or as AccountLifecycle, Ot as PermissionMethods, P as toRaw, Pa as InvitationId, Pi as PaymentDocumentReadRef, Pn as OrganizationPaymentsMethods, Po as toAccountId, Pr as MeMethods, Pt as PermissionRevokeInput, Q as CurrentUserContext, Qi as localPrivateKeyAccountProvider, Qn as AssetMetadata, Qo as toAssetId, Qr as ActivitySummaryParams, Qt as DestinationAddInput, R as parseMoney, Ra as InvitationRecovery, Ri as PAYMENT_STATUSES, Rn as OfframpStatus, Ro as HANDLE_RE, Rr as paymentPhase, Rt as PermissionIntent, S as devPrivateKeySigner, Sa as RequestPaymentTerms, Si as PaymentStatus, Sn as PayInvoiceRegisteredInput, So as toOrgId, Sr as PayrollTermsUnit, St as RoleView, T as OpenfortBrowserSignerBootstrap, Ta as OrganizationSetupPage, Ti as PaymentType, Tn as RecipientResolution, To as toPayrollGroupId, Tr as PayrollGroupInputSchema, Tt as PermissionAssignmentEffect, U as IdentityRuntimeSendResult, Ua as InvitePreview, Ui as Eip1193RequestProvider, Un as positionPeg, Uo as AuthSession, Ur as ActivityFilter, Ut as InvitePrepared, V as IdentityProfileDetails, Va as InviteGrant, Vi as CapxulDigestSigner, Vn as SmartAccount, Vo as toHandle, Vr as ActivityAnnotationInput, Vt as InviteMethod, W as MediaMethods, Wa as OfferedAuthority, Wi as SignerStatus, Wn as HoldingsMethods, Wo as AuthUserId, Wr as ActivityItem, Wt as InvitePreviewInput, X as isClaimed, Xi as Eip1193Provider, Xn as valueActivitySummary, Xo as AssetId, Xr as ActivityReference, Xt as OrgMeOptions, Y as destination, Ya as Permission, Yi as AccountRequirement, Yn as Valuation, Yo as AssetAmount, Yr as ActivityRange, Yt as OrgMeMethod, Z as isRestoring, Zi as eip1193AccountProvider, Zn as valueIn, Zo as Money, Zr as ActivitySummary, Zt as Destination, _ as OpenfortEmbeddedWalletApi, _a as RequestCheckoutPreparation, _i as PaymentDocumentKind, _n as InboxFulfillOptions, _o as CapxulResult, _r as PayrollOptions, _t as OrgView, a as captureException, aa as OfferCheckout, ai as OrganizationOnboarding, an as ActorProfile, ao as normalizeCapxulOperation, ar as PayrollRunApprovalInput, as as ChainUpstream, at as IdentityEvent, b as DevPrivateKeySignerInput, ba as RequestCheckoutSummary, bi as PaymentPrepared, bn as CheckoutsMethods, bo as ORGANIZATION_SETUP_REASONS, br as PayrollRunStatus, bt as OrganizationAuditLogItem, c as createCapxulClient, ca as PreparedOfferCheckoutExecution, ci as PersonOnboarding, cn as AddressBookAddInput, co as ObservationAdapter, cr as decodePayrollRunInput, cs as FailureMode, ct as OrgLane, d as PostHogObservabilityClient, da as InvoiceCheckoutState, di as CompleteProfileInput, dn as AddressBookMethods, do as SdkFailureObservation, dr as PayrollEngagementTerms, ds as EXPECTED_OPERATION_OUTCOMES, dt as AssignmentProjection, ea as CheckoutReconciliation, ei as MovementActivityEvidence, en as DestinationListInput, eo as TelemetryPort, er as ApprovalInput, es as CapxulError, et as AuthMethods, f as PostHogObservabilityOptions, fa as InvoiceCheckoutSummary, fi as IdentityMethods, fn as ActorRequest, fr as PayrollGroup, ft as MemberIdentityProjection, g as openfortEmbeddedSignerFromWallet, ga as PreparedRequestCheckoutExecution, gi as PaymentDirection, gn as InboxApproveInput, go as ActorReference, gr as PayrollMethods, gt as OrgScopedMethods, h as embeddedSigner, ha as PreparedInvoiceCheckoutExecution, hi as Payment, hn as OffersMethods, hr as PayrollGroupsMethods, ht as OrgMethods, i as HandledErrorReportContext, ia as FixedOfferDraftSchema, ii as OnboardingMethods, in as DestinationsMethods, io as isCapxulOperation, ir as OrganizationApprovalInput, is as ChainCause, it as ClientRequestView, j as formatAssetAmount, ja as EndingReason, ji as PaymentInstructionInput, jn as OrganizationPaymentInput, jo as toPermissionId, jr as AccountMethods, jt as PermissionPrepared, k as formatMoney, ka as Unsubscribe, ki as PaymentDocumentOptions, kn as TargetsMethods, ko as toBudgetId, kr as AccountSetupStep, kt as PermissionOptions, l as CapxulClientInput, la as InvoiceCheckoutPreparation, li as PersonOnboardingInput, ln as AddressBookEntry, lo as ObservationContext, lr as AuthorizeRunInput, ls as CAPXUL_ERROR_CODES, lt as Readiness, m as OpenfortEmbeddedSignerInput, ma as PrepareRequestCheckoutExecutionInput, mi as PayoutAddress, mn as ActorRequestsMethods, mr as PayrollGroupMember, mt as MemberView, n as checkoutUrl, na as FixedOffer, ni as PaymentDocumentsMethods, nn as DestinationRail, no as CapxulOperation, nr as ApprovalWaitOptions, ns as isCapxulError, nt as AccountSetupPolicy, o as captureExceptionSync, oa as OfferCheckoutPreparation, oi as OrganizationOnboardingInput, on as ActorProfileMethods, or as RequestApprovalInput, os as RevertSummary, ot as IdentityTransition, p as postHogObservability, pa as PrepareInvoiceCheckoutExecutionInput, pi as Profile, pn as ActorRequestIssueInput, pr as PayrollGroupInput, pt as MemberStatus, q as SystemMethods, qa as BudgetIntent, qi as AccountProvider, qn as Rate, qo as toAddress, qr as ActivityMethods, qt as Budget, r as LineItemV3, ra as FixedOfferDraft, ri as CompletedPersonProfile, rn as DestinationRemoveInput, ro as NormalizedCapxulOperation, rr as ApprovalsMethods, rs as CHAIN_UPSTREAMS, rt as ClientRequests, s as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, sa as PrepareOfferCheckoutExecutionInput, si as OrganizationOnboardingOptions, sn as ActorRelationshipMethods, sr as RetryApprovalInput, ss as FAILURE_MODES, st as IdentityState, t as CheckoutLinkReference, ta as CheckoutState, ti as PaymentActivityEvidence, tn as DestinationPayload, to as CAPXUL_OPERATIONS, tr as ApprovalOutcome, ts as CapxulErrorDetails, tt as Session, u as HostObservability, ua as InvoiceCheckoutReconciliation, ui as ReadyAccountLifecycle, un as AddressBookLabelInput, uo as ObservationDelivery, ur as AuthorizeRunOptions, us as CapxulErrorCode, ut as StateLabel, v as OpenfortEmbeddedWalletPort, va as RequestCheckoutReconciliation, vi as PaymentDocumentRef, vn as InboxItem, vo as OperationResult, vr as PayrollRun, vt as OrganizationAccess, w as OpenfortBrowserSigner, wa as OrganizationSetup, wi as PaymentTiming, wn as isCheckoutSettlementConsumed, wo as PayrollRunId, wr as PayrollGroupIdSchema, wt as PermissionAssignInput, x as deriveDevPrivateKey, xa as RequestPaymentConfirmation, xi as PaymentSnapshot, xn as CreateOfferCheckoutInput, xo as OrgId, xr as PayrollRuns, xt as RoleDefinition, y as openfortEmbeddedWalletPort, ya as RequestCheckoutState, yi as PaymentMoney, yn as InboxMethods, yo as Page, yr as PayrollRunItemInput, yt as OrganizationAccount, z as CapxulClient, za as InvitationTarget, zi as ActorRef, zn as PaymentsMethods, zo as Handle, zr as requestPhase, zt as InvitationSnapshot } from "./index-BjDZXc7n.mjs";
1
+ import { $ as CurrentUserMethods, $i as CheckoutReceipt, $n as TOKENS, $o as toCurrencyCode, $r as ActivitySummaryTotal, $t as DestinationKind, A as assetSymbolFor, Aa as AuthorityRef, Ai as PaymentDocumentOptionsSchema, An as OrganizationPaymentBatchInput, Ao as toPermissionAssignmentId, Ar as isSettingUpLifecycle, At as PermissionPolicyChange, B as CreateCapxulClientInput, Ba as InvitationView, Bi as fingerprintPaymentIntent, Bn as FinancialOpsMethods, Bo as PartyId, Br as ActivityAnnotation, Bt as InvitationSubscriptionOptions, C as OpenfortBrowserAuth, Ca as InvocationControls, Ci as PaymentSubscriptionOptions, Cn as PayRequestRegisteredInput, Co as PayrollGroupId, Cr as PayrollRunSnapshot, Ct as decodePermissionIntent, D as createOpenfortBrowserSigner, Da as OrganizationSetupSnapshot, Di as PaymentsPayOptions, Dn as ResolvedTarget, Do as PermissionId, Dr as Approval, Dt as PermissionCreateInput, Ea as OrganizationSetupPageInput, Ei as PaymentsPayInput, En as Ref, Eo as BudgetId, Er as PayrollRunDetail, Et as PermissionChangeInput, F as MoneyParseError, Fa as InvitationPage, Fi as PaymentDocumentRender, Fn as OfframpMethods, Fo as CountryCode, Fr as MeProfile, Ft as PermissionCommandSnapshot, G as UploadImageResult, Ga as SpendingScope, Gi as SignerStatusStore, Gn as CurrentHoldings, Go as Address, Gr as ActivityKind, Gt as OrgInvitations, H as IdentityRuntime, Ha as InviteInput, Hi as CapxulSigner, Hn as SmartAccountMethods, Ho as toPartyId, Hr as ActivityDetail, Ht as InviteOptions, I as MoneyParseErrorReason, Ia as InvitationPageInput, Ii as PaymentDocumentVerification, In as OfframpQuote, Io as TesterKind, Ir as ActivityPhase, It as PermissionCommandView, J as Destination$1, Ja as CurrentPolicy, Ji as AccountProviderSource, Jn as RateSource, Jo as Errors, Jr as ActivityPage, Jt as OrgMe, K as SystemHealth, Ka as PermissionReplacementPreview, Ki as injectedWalletSigner, Kn as AccountsMethods, Ko as EVM_ADDRESS_RE, Kr as ActivityListParams, Kt as OwnInvitationsMethod, L as isMoneyParseError, La as InvitationPhase, Li as PAYMENT_DIRECTIONS, Ln as OfframpQuoteInput, Lo as toCountryCode, Lr as inboxPhase, Lt as SubmittedPermissionExecution, M as parseAssetAmount, Ma as GranteeRef, Mi as SupportingReceiptInput, Mn as OrganizationPaymentItemInput, Mo as Account, Mr as DepositInstructions, Mt as PermissionReadResult, N as requireAsset, Na as InvitationAcceptInput, Ni as PaymentDocumentDownload, Nn as OrganizationPaymentRetryPreview, No as AccountId, Nr as Home, Nt as PermissionReplaceInput, O as CAPXUL_PAYMENTS_V2_ADDRESS, Oa as SetupIssue, Oi as InvoiceDraft, On as TargetReference, Oo as RoleKey, Or as AccountLifecycle, Ot as PermissionMethods, P as toRaw, Pa as InvitationId, Pi as PaymentDocumentReadRef, Pn as OrganizationPaymentsMethods, Po as toAccountId, Pr as MeMethods, Pt as PermissionRevokeInput, Q as CurrentUserContext, Qi as localPrivateKeyAccountProvider, Qn as AssetMetadata, Qo as toAssetId, Qr as ActivitySummaryParams, Qt as DestinationAddInput, R as parseMoney, Ra as InvitationRecovery, Ri as PAYMENT_STATUSES, Rn as OfframpStatus, Ro as HANDLE_RE, Rr as paymentPhase, Rt as PermissionIntent, S as devPrivateKeySigner, Sa as RequestPaymentTerms, Si as PaymentStatus, Sn as PayInvoiceRegisteredInput, So as toOrgId, Sr as PayrollTermsUnit, St as RoleView, T as OpenfortBrowserSignerBootstrap, Ta as OrganizationSetupPage, Ti as PaymentType, Tn as RecipientResolution, To as toPayrollGroupId, Tr as PayrollGroupInputSchema, Tt as PermissionAssignmentEffect, U as IdentityRuntimeSendResult, Ua as InvitePreview, Ui as Eip1193RequestProvider, Un as positionPeg, Uo as AuthSession, Ur as ActivityFilter, Ut as InvitePrepared, V as IdentityProfileDetails, Va as InviteGrant, Vi as CapxulDigestSigner, Vn as SmartAccount, Vo as toHandle, Vr as ActivityAnnotationInput, Vt as InviteMethod, W as MediaMethods, Wa as OfferedAuthority, Wi as SignerStatus, Wn as HoldingsMethods, Wo as AuthUserId, Wr as ActivityItem, Wt as InvitePreviewInput, X as isClaimed, Xi as Eip1193Provider, Xn as valueActivitySummary, Xo as AssetId, Xr as ActivityReference, Xt as OrgMeOptions, Y as destination, Ya as Permission, Yi as AccountRequirement, Yn as Valuation, Yo as AssetAmount, Yr as ActivityRange, Yt as OrgMeMethod, Z as isRestoring, Zi as eip1193AccountProvider, Zn as valueIn, Zo as Money, Zr as ActivitySummary, Zt as Destination, _ as OpenfortEmbeddedWalletApi, _a as RequestCheckoutPreparation, _i as PaymentDocumentKind, _n as InboxFulfillOptions, _o as CapxulResult, _r as PayrollOptions, _t as OrgView, a as captureException, aa as OfferCheckout, ai as OrganizationOnboarding, an as ActorProfile, ao as normalizeCapxulOperation, ar as PayrollRunApprovalInput, as as ChainUpstream, at as IdentityEvent, b as DevPrivateKeySignerInput, ba as RequestCheckoutSummary, bi as PaymentPrepared, bn as CheckoutsMethods, bo as ORGANIZATION_SETUP_REASONS, br as PayrollRunStatus, bt as OrganizationAuditLogItem, c as createCapxulClient, ca as PreparedOfferCheckoutExecution, ci as PersonOnboarding, cn as AddressBookAddInput, co as ObservationAdapter, cr as decodePayrollRunInput, cs as FailureMode, ct as OrgLane, d as PostHogObservabilityClient, da as InvoiceCheckoutState, di as CompleteProfileInput, dn as AddressBookMethods, do as SdkFailureObservation, dr as PayrollEngagementTerms, ds as EXPECTED_OPERATION_OUTCOMES, dt as AssignmentProjection, ea as CheckoutReconciliation, ei as MovementActivityEvidence, en as DestinationListInput, eo as TelemetryPort, er as ApprovalInput, es as CapxulError, et as AuthMethods, f as PostHogObservabilityOptions, fa as InvoiceCheckoutSummary, fi as IdentityMethods, fn as ActorRequest, fr as PayrollGroup, ft as MemberIdentityProjection, g as openfortEmbeddedSignerFromWallet, ga as PreparedRequestCheckoutExecution, gi as PaymentDirection, gn as InboxApproveInput, go as ActorReference, gr as PayrollMethods, gt as OrgScopedMethods, h as embeddedSigner, ha as PreparedInvoiceCheckoutExecution, hi as Payment, hn as OffersMethods, hr as PayrollGroupsMethods, ht as OrgMethods, i as HandledErrorReportContext, ia as FixedOfferDraftSchema, ii as OnboardingMethods, in as DestinationsMethods, io as isCapxulOperation, ir as OrganizationApprovalInput, is as ChainCause, it as ClientRequestView, j as formatAssetAmount, ja as EndingReason, ji as PaymentInstructionInput, jn as OrganizationPaymentInput, jo as toPermissionId, jr as AccountMethods, jt as PermissionPrepared, k as formatMoney, ka as Unsubscribe, ki as PaymentDocumentOptions, kn as TargetsMethods, ko as toBudgetId, kr as AccountSetupStep, kt as PermissionOptions, l as CapxulClientInput, la as InvoiceCheckoutPreparation, li as PersonOnboardingInput, ln as AddressBookEntry, lo as ObservationContext, lr as AuthorizeRunInput, ls as CAPXUL_ERROR_CODES, lt as Readiness, m as OpenfortEmbeddedSignerInput, ma as PrepareRequestCheckoutExecutionInput, mi as PayoutAddress, mn as ActorRequestsMethods, mr as PayrollGroupMember, mt as MemberView, n as checkoutUrl, na as FixedOffer, ni as PaymentDocumentsMethods, nn as DestinationRail, no as CapxulOperation, nr as ApprovalWaitOptions, ns as isCapxulError, nt as AccountSetupPolicy, o as captureExceptionSync, oa as OfferCheckoutPreparation, oi as OrganizationOnboardingInput, on as ActorProfileMethods, or as RequestApprovalInput, os as RevertSummary, ot as IdentityTransition, p as postHogObservability, pa as PrepareInvoiceCheckoutExecutionInput, pi as Profile, pn as ActorRequestIssueInput, pr as PayrollGroupInput, pt as MemberStatus, q as SystemMethods, qa as BudgetIntent, qi as AccountProvider, qn as Rate, qo as toAddress, qr as ActivityMethods, qt as Budget, r as LineItemV3, ra as FixedOfferDraft, ri as CompletedPersonProfile, rn as DestinationRemoveInput, ro as NormalizedCapxulOperation, rr as ApprovalsMethods, rs as CHAIN_UPSTREAMS, rt as ClientRequests, s as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, sa as PrepareOfferCheckoutExecutionInput, si as OrganizationOnboardingOptions, sn as ActorRelationshipMethods, sr as RetryApprovalInput, ss as FAILURE_MODES, st as IdentityState, t as CheckoutLinkReference, ta as CheckoutState, ti as PaymentActivityEvidence, tn as DestinationPayload, to as CAPXUL_OPERATIONS, tr as ApprovalOutcome, ts as CapxulErrorDetails, tt as Session, u as HostObservability, ua as InvoiceCheckoutReconciliation, ui as ReadyAccountLifecycle, un as AddressBookLabelInput, uo as ObservationDelivery, ur as AuthorizeRunOptions, us as CapxulErrorCode, ut as StateLabel, v as OpenfortEmbeddedWalletPort, va as RequestCheckoutReconciliation, vi as PaymentDocumentRef, vn as InboxItem, vo as OperationResult, vr as PayrollRun, vt as OrganizationAccess, w as OpenfortBrowserSigner, wa as OrganizationSetup, wi as PaymentTiming, wn as isCheckoutSettlementConsumed, wo as PayrollRunId, wr as PayrollGroupIdSchema, wt as PermissionAssignInput, x as deriveDevPrivateKey, xa as RequestPaymentConfirmation, xi as PaymentSnapshot, xn as CreateOfferCheckoutInput, xo as OrgId, xr as PayrollRuns, xt as RoleDefinition, y as openfortEmbeddedWalletPort, ya as RequestCheckoutState, yi as PaymentMoney, yn as InboxMethods, yo as Page, yr as PayrollRunItemInput, yt as OrganizationAccount, z as CapxulClient, za as InvitationTarget, zi as ActorRef, zn as PaymentsMethods, zo as Handle, zr as requestPhase, zt as InvitationSnapshot } from "./index-V6HIBbMr.mjs";
2
2
  export { type Account, type AccountId, type AccountLifecycle, type AccountMethods, type AccountProvider, type AccountProviderSource, type AccountRequirement, type AccountSetupPolicy, type AccountSetupStep, type AccountsMethods, type ActivityAnnotation, type ActivityAnnotationInput, type ActivityDetail, type ActivityFilter, type ActivityItem, type ActivityKind, type ActivityListParams, type ActivityMethods, type ActivityPage, type ActivityPhase, type ActivityRange, type ActivityReference, type ActivitySummary, type ActivitySummaryParams, type ActivitySummaryTotal, type ActorProfile, type ActorProfileMethods, type ActorRef, type ActorReference, type ActorRelationshipMethods, type ActorRequest, type ActorRequestIssueInput, type ActorRequestsMethods, type Address, type AddressBookAddInput, type AddressBookEntry, type AddressBookLabelInput, type AddressBookMethods, type Approval, type ApprovalInput, type ApprovalOutcome, type ApprovalWaitOptions, type ApprovalsMethods, type AssetAmount, type AssetId, type AssetMetadata, type AssignmentProjection, type AuthMethods, type AuthSession, type AuthUserId, type AuthorityRef, type AuthorizeRunInput, type AuthorizeRunOptions, type Budget, type BudgetId, type BudgetIntent, CAPXUL_ERROR_CODES, CAPXUL_OPERATIONS, CAPXUL_PAYMENTS_V2_ADDRESS, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, CHAIN_UPSTREAMS, type CapxulClient, type CapxulClientInput, type CapxulDigestSigner, CapxulError, type CapxulErrorCode, type CapxulErrorDetails, type CapxulOperation, type CapxulResult, type CapxulSigner, type ChainCause, type ChainUpstream, type CheckoutLinkReference, type CheckoutReceipt, type CheckoutReconciliation, type CheckoutState, type CheckoutsMethods, type ClientRequestView, type ClientRequests, type CompleteProfileInput, type CompletedPersonProfile, type CountryCode, type CreateCapxulClientInput, type CreateOfferCheckoutInput, type CurrentHoldings, type CurrentPolicy, type CurrentUserContext, type CurrentUserMethods, type DepositInstructions, type Destination, type DestinationAddInput, type DestinationKind, type DestinationListInput, type DestinationPayload, type DestinationRail, type DestinationRemoveInput, type DestinationsMethods, type DevPrivateKeySignerInput, EVM_ADDRESS_RE, EXPECTED_OPERATION_OUTCOMES, type Eip1193Provider, type Eip1193RequestProvider, type EndingReason, Errors, FAILURE_MODES, type FailureMode, type FinancialOpsMethods, type FixedOffer, type FixedOfferDraft, FixedOfferDraftSchema, type GranteeRef, HANDLE_RE, type Handle, type HandledErrorReportContext, type HoldingsMethods, type Home, type HostObservability, type Destination$1 as IdentityDestination, type IdentityEvent, type IdentityMethods, type IdentityProfileDetails, type IdentityRuntime, type IdentityRuntimeSendResult, type IdentityState, type IdentityTransition, type InboxApproveInput, type InboxFulfillOptions, type InboxItem, type InboxMethods, type InvitationAcceptInput, type InvitationId, type InvitationPage, type InvitationPageInput, type InvitationPhase, type InvitationRecovery, type InvitationSnapshot, type InvitationSubscriptionOptions, type InvitationTarget, type InvitationView, type InviteGrant, type InviteInput, type InviteMethod, type InviteOptions, type InvitePrepared, type InvitePreview, type InvitePreviewInput, type InvocationControls, type InvoiceCheckoutPreparation, type InvoiceCheckoutReconciliation, type InvoiceCheckoutState, type InvoiceCheckoutSummary, type InvoiceDraft, type LineItemV3, type MeMethods, type MeProfile, type MediaMethods, type MemberIdentityProjection, type MemberStatus, type MemberView, type Money, type MoneyParseError, type MoneyParseErrorReason, type MovementActivityEvidence, type NormalizedCapxulOperation, ORGANIZATION_SETUP_REASONS, type ObservationAdapter, type ObservationContext, type ObservationDelivery, type OfferCheckout, type OfferCheckoutPreparation, type OfferedAuthority, type OffersMethods, type OfframpMethods, type OfframpQuote, type OfframpQuoteInput, type OfframpStatus, type OnboardingMethods, type OpenfortBrowserAuth, type OpenfortBrowserSigner, type OpenfortBrowserSignerBootstrap, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OperationResult, type OrgId, type OrgInvitations, type OrgLane, type OrgMe, type OrgMeMethod, type OrgMeOptions, type OrgMethods, type OrgScopedMethods, type OrgView, type OrganizationAccess, type OrganizationAccount, type OrganizationApprovalInput, type OrganizationAuditLogItem, type OrganizationOnboarding, type OrganizationOnboardingInput, type OrganizationOnboardingOptions, type OrganizationPaymentBatchInput, type OrganizationPaymentInput, type OrganizationPaymentItemInput, type OrganizationPaymentRetryPreview, type OrganizationPaymentsMethods, type OrganizationSetup, type OrganizationSetupPage, type OrganizationSetupPageInput, type OrganizationSetupSnapshot, type OwnInvitationsMethod, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, type Page, type PartyId, type PayInvoiceRegisteredInput, type PayRequestRegisteredInput, type Payment, type PaymentActivityEvidence, type PaymentDirection, type PaymentDocumentDownload, type PaymentDocumentKind, type PaymentDocumentOptions, PaymentDocumentOptionsSchema, type PaymentDocumentReadRef, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentInstructionInput, type PaymentMoney, type PaymentPrepared, type PaymentSnapshot, type PaymentStatus, type PaymentSubscriptionOptions, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PaymentsPayOptions, type PayoutAddress, type PayrollEngagementTerms, type PayrollGroup, type PayrollGroupId, PayrollGroupIdSchema, type PayrollGroupInput, PayrollGroupInputSchema, type PayrollGroupMember, type PayrollGroupsMethods, type PayrollMethods, type PayrollOptions, type PayrollRun, type PayrollRunApprovalInput, type PayrollRunDetail, type PayrollRunId, type PayrollRunItemInput, type PayrollRunSnapshot, type PayrollRunStatus, type PayrollRuns, type PayrollTermsUnit, type Permission, type PermissionAssignInput, type PermissionAssignmentEffect, type PermissionChangeInput, type PermissionCommandSnapshot, type PermissionCommandView, type PermissionCreateInput, type PermissionId, type PermissionIntent, type PermissionMethods, type PermissionOptions, type PermissionPolicyChange, type PermissionPrepared, type PermissionReadResult, type PermissionReplaceInput, type PermissionReplacementPreview, type PermissionRevokeInput, type PersonOnboarding, type PersonOnboardingInput, type PostHogObservabilityClient, type PostHogObservabilityOptions, type PrepareInvoiceCheckoutExecutionInput, type PrepareOfferCheckoutExecutionInput, type PrepareRequestCheckoutExecutionInput, type PreparedInvoiceCheckoutExecution, type PreparedOfferCheckoutExecution, type PreparedRequestCheckoutExecution, type Profile, type Rate, type RateSource, type Readiness, type ReadyAccountLifecycle, type RecipientResolution, type Ref, type RequestApprovalInput, type RequestCheckoutPreparation, type RequestCheckoutReconciliation, type RequestCheckoutState, type RequestCheckoutSummary, type RequestPaymentConfirmation, type RequestPaymentTerms, type ResolvedTarget, type RetryApprovalInput, type RevertSummary, type RoleDefinition, type RoleKey, type RoleView, type SdkFailureObservation, type Session, type SetupIssue, type SignerStatus, type SignerStatusStore, type SmartAccount, type SmartAccountMethods, type SpendingScope, type StateLabel, type SubmittedPermissionExecution, type SupportingReceiptInput, type SystemHealth, type SystemMethods, TOKENS, type TargetReference, type TargetsMethods, type TelemetryPort, type TesterKind, type Unsubscribe, type UploadImageResult, type Valuation, assetSymbolFor, captureException, captureExceptionSync, checkoutUrl, createCapxulClient, createOpenfortBrowserSigner, decodePayrollRunInput, decodePermissionIntent, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isCheckoutSettlementConsumed, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, requireAsset, destination as resolveIdentityDestination, toAccountId, toAssetId, toBudgetId, toCountryCode, toCurrencyCode, toAddress as toEvmAddress, toHandle, toOrgId, toPartyId, toPayrollGroupId, toPermissionAssignmentId, toPermissionId, toRaw, valueActivitySummary, valueIn };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { d as devPrivateKeySigner, f as createOpenfortBrowserSigner, g as decodePermissionIntent, h as openfortEmbeddedWalletPort, i as postHogObservability, m as openfortEmbeddedSignerFromWallet, p as embeddedSigner, t as createCapxulClient$1, u as deriveDevPrivateKey } from "./production-D5uC-i8N.mjs";
2
- import { $ as parseAssetAmount, Bn as FixedOfferDraftSchema, Cr as toAssetId, Dn as isCapxulOperation, Dt as TOKENS, En as CAPXUL_OPERATIONS, Er as EVM_ADDRESS_RE, F as decodePayrollRunInput, Fi as FAILURE_MODES, I as toPayrollGroupId, Jn as ORGANIZATION_SETUP_REASONS, Jr as EXPECTED_OPERATION_OUTCOMES, Jt as SDK_VERSION, Mi as Errors, Ni as CapxulError, On as normalizeCapxulOperation, Or as toAddress, Pi as isCapxulError, Q as formatAssetAmount, Qn as toOrgId, Qt as safeExceptionLabel, Rn as PayrollGroupIdSchema, S as valueIn, Sr as currencySymbolFor, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, Vt as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, Xn as CHAIN_UPSTREAMS, Xt as normalizeExceptionOperation, Yt as normalizeExceptionErrorKind, Z as assetSymbolFor, Zt as projectSdkException, _n as toPartyId, _r as toBudgetId, a as paymentPhase, at as fingerprintPaymentIntent, cn as signerFailure, en as isSettingUpLifecycle, et as requireAsset, fn as toCountryCode, gn as toHandle, hn as HANDLE_RE, i as inboxPhase, ln as resolveFailureMode, mr as PAYMENT_STATUSES, nt as isMoneyParseError, o as requestPhase, or as toAccountId, pr as PAYMENT_DIRECTIONS, q as isCheckoutSettlementConsumed, qr as CAPXUL_ERROR_CODES, qt as EXCEPTION_MESSAGE, rn as injectedWalletSigner, rt as parseMoney, sr as PaymentDocumentOptionsSchema, tt as toRaw, vr as toPermissionAssignmentId, wn as EXCEPTION_EVENT_NAME, wr as toCurrencyCode, x as valueActivitySummary, y as positionPeg, yr as toPermissionId, zn as PayrollGroupInputSchema, zt as failureDetail } from "./access-BnlgphFT.mjs";
1
+ import { d as devPrivateKeySigner, f as createOpenfortBrowserSigner, g as decodePermissionIntent, h as openfortEmbeddedWalletPort, i as postHogObservability, m as openfortEmbeddedSignerFromWallet, p as embeddedSigner, t as createCapxulClient$1, u as deriveDevPrivateKey } from "./production-CoxgepCr.mjs";
2
+ import { $ as parseAssetAmount, $t as isSettingUpLifecycle, Bt as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, Cn as EXCEPTION_EVENT_NAME, Dn as normalizeCapxulOperation, Dr as toCurrencyCode, En as isCapxulOperation, Er as toAssetId, Et as TOKENS, F as decodePayrollRunInput, Fi as Errors, I as toPayrollGroupId, Ii as CapxulError, Jt as normalizeExceptionErrorKind, Kt as EXCEPTION_MESSAGE, Li as isCapxulError, Ln as PayrollGroupIdSchema, Q as formatAssetAmount, Ri as FAILURE_MODES, Rn as PayrollGroupInputSchema, Rt as failureDetail, S as valueIn, Sr as toPermissionId, Tn as CAPXUL_OPERATIONS, Tr as currencySymbolFor, Xr as CAPXUL_ERROR_CODES, Xt as projectSdkException, Yn as CHAIN_UPSTREAMS, Yt as normalizeExceptionOperation, Z as assetSymbolFor, Zn as toOrgId, Zr as EXPECTED_OPERATION_OUTCOMES, Zt as safeExceptionLabel, _r as PAYMENT_STATUSES, a as paymentPhase, at as fingerprintPaymentIntent, br as toBudgetId, cn as resolveFailureMode, dn as toCountryCode, et as requireAsset, gn as toPartyId, gr as PAYMENT_DIRECTIONS, hn as toHandle, i as inboxPhase, jr as toAddress, kr as EVM_ADDRESS_RE, lr as toAccountId, mn as HANDLE_RE, nn as injectedWalletSigner, nt as isMoneyParseError, o as requestPhase, q as isCheckoutSettlementConsumed, qn as ORGANIZATION_SETUP_REASONS, qt as SDK_VERSION, rt as parseMoney, sn as signerFailure, tt as toRaw, ur as PaymentDocumentOptionsSchema, wt as CAPXUL_PAYMENTS_V2_ADDRESS, x as valueActivitySummary, xr as toPermissionAssignmentId, y as positionPeg, zn as FixedOfferDraftSchema } from "./access-SP-ur4Ku.mjs";
3
3
  import { Effect } from "effect";
4
4
  import { privateKeyToAccount } from "viem/accounts";
5
5
  //#region src/access/identity/selectors.ts
@@ -1,4 +1,4 @@
1
- import { Hi as CapxulSigner, Uo as AuthSession, fo as AuthCacheError, ho as CachedJwt, mo as AuthCachePortTag, oo as OAuthBearerAuthClientInput, po as AuthCachePort, so as oauthBearerAuthClient } from "../index-BjDZXc7n.mjs";
1
+ import { Hi as CapxulSigner, Uo as AuthSession, fo as AuthCacheError, ho as CachedJwt, mo as AuthCachePortTag, oo as OAuthBearerAuthClientInput, po as AuthCachePort, so as oauthBearerAuthClient } from "../index-V6HIBbMr.mjs";
2
2
  import { Effect, FileSystem, Layer, Path } from "effect";
3
3
  import { Hex } from "viem";
4
4
  //#region src/access/auth-cache/file-system.d.ts
@@ -1,4 +1,4 @@
1
- import { Bi as AuthCachePortTag, Ci as parseAuthSession, Li as isRecord, Or as toAddress, Qr as oauthBearerAuthClient, Si as BrowserAuthCacheAdapter, bi as globalLocalStorage, wi as parseCachedJwt, xi as InMemoryAuthCacheAdapter, zi as AuthCacheError } from "../access-BnlgphFT.mjs";
1
+ import { Bi as isRecord, Ci as globalLocalStorage, Di as parseCachedJwt, Ei as parseAuthSession, Hi as AuthCacheError, Ti as BrowserAuthCacheAdapter, Ui as AuthCachePortTag, jr as toAddress, ti as oauthBearerAuthClient, wi as InMemoryAuthCacheAdapter } from "../access-SP-ur4Ku.mjs";
2
2
  import { Effect, FileSystem, Layer, Option, Path } from "effect";
3
3
  import { privateKeyToAccount } from "viem/accounts";
4
4
  import * as os from "node:os";
@@ -1,4 +1,4 @@
1
- import { $n as InvitationViewSchema, $r as SystemClockLayer, $t as version$1, A as registerProductTelemetryInvocation, An as details, At as safe4337ExecuteUserOpCallData, B as makeOrganizationPaymentsMethods, Bi as AuthCachePortTag, Br as runCapxulEffect, Bt as failureEvidenceProps, C as AccountReadPortTag, Cn as CLI_INVOCATION_KINDS, Ct as SEND_BATCH_SIGNATURE, D as convexCallErrorFromCapxul, Dn as isCapxulOperation, Dr as isEvmAddress, E as ConvexCallPortTag, Ei as toEpochMs, En as CAPXUL_OPERATIONS, Et as CONFIGURED_MONEY_ASSETS, Fi as FAILURE_MODES, Fn as replacements, Fr as publicIdentityFailure, Ft as SAFE_SENTINEL_OWNERS, G as makeActorRelationshipMethods, Gn as treasuries, Gr as toCapxulResult, Gt as observationContextProps, H as makePaymentsMethods, Hn as members, Hr as awaitCapxulResult, Ht as postHogFailureObservation, Ii as isFailureMode, In as PreparedPermissionExecutionSchema, Ir as runIdentityFacade, It as callOperation, J as makeTargetsMethods, Jn as ORGANIZATION_SETUP_REASONS, K as makeCheckoutMethods, Kn as workspaces, Kr as formatTraceparent, Kt as withCapturedAttemptContext, L as makeAccountMethods, Li as isRecord, Ln as PermissionCommandViewSchema, Lr as runPortEffect, Lt as asCapxulError, M as makeApprovalsMethods, Mi as Errors, Mn as authorities, Mr as reference, Mt as buildSafeMultiSendExecTransactionCall, N as makePayrollMethods, Ni as CapxulError, Nn as commands, Nr as makeAuthMethods, Nt as BASE_SEPOLIA_CHAIN_ID, O as retryIdempotentRead, Oi as toAuthUserId, On as normalizeCapxulOperation, Or as toAddress, Ot as deriveCapxulSafeAddress, P as makeUnavailablePayrollMethods, Pi as isCapxulError, Pn as configurations, Pr as askIdentity, Pt as MULTI_SEND_CALL_ONLY, Qn as toOrgId, R as emitDepositInitiated, Ri as readField, Rr as sessionFromActor, Rt as toPublicError, Sn as CLI_COMMAND_NAMES, St as SAFE_ENABLE_MODULE_ABI, T as TelemetryPortTag, Tn as stampTelemetryEnvelope, Tr as toExactAssetAmount, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, U as waitForPaymentSubmission, Un as roles, Ur as defectAsCapxulError, Ut as observeFailedResult, V as makeOfframpMethods, Vn as invitations, Vr as withVerifiedOrganizationScope, W as makeDestinationsMethods, Wn as setups, Wr as runIfActive, Wt as observeSdkClient, Xr as carryInvocationParentSpan, Y as subscribeFreshQuery, Yn as ORGANIZATION_SETUP_STATUSES, Yr as ActorFailure, Zn as decodeChainCause, Zr as withInvocationParentSpan, _ as accountFromAccountPositions, _i as AuthClientError, _n as toPartyId, _r as toBudgetId, _t as ROLES_EXEC_TRANSACTION_WITH_ROLE_ABI, ai as observationRequestHeaders, an as isSignerNotReadySignal, ar as images, b as MONEY_READ_RATES, bi as globalLocalStorage, bn as redactTelemetryProps, br as toRoleKey, bt as ROLES_SET_UP_ABI, c as makePaymentDocumentsMethods, ci as readInvocationObservation, cn as signerFailure, cr as isBytes32, ct as roleKeyForPermission, d as SmartAccountPortTag, di as redactUrlSecrets, dn as makeClientRequestMethods, dr as toLowerBytes32, dt as CREATE_COMMITMENT_SIGNATURE, er as hashPermissionReplacementPreview, fi as isCredentialField, fn as toCountryCode, fr as toLowerHex, ft as MODULE_PROXY_FACTORY_ABI, g as ConvexAccountLayer, gn as toHandle, gr as EpochMsSchema, gt as ROLES_ASSIGN_ROLES_ABI, h as makeAccountsMethods, hi as toPublishableKey, hr as DurationMsSchema, ht as PARAMETER_TYPE, ii as BetterAuthBrowserLayer, in as isEcdsaSignatureHex, ir as AppIdSchema, it as canonicalJson, jn as onboardings, jr as absurd, jt as safe4337MultiSendUserOpCallData, k as bindProductTelemetryInvocation, ki as toEmail, kn as OPERATIONS, kt as normalizeSafeSaltEmail, l as makeSmartAccountMethods, li as sanitizeObservationContext, lr as toExactHex, lt as ZODIAC_MODULE_PROXY_FACTORY, m as PonderIndexerAdapter, mn as toTesterKind, mt as OPERATOR, n as bootIdentityFlow, nn as causeChain, nr as CurrentPolicySchema, oi as attachInvocationObservation, on as openfortSignerNotReadyCode, or as toAccountId, ot as moneySafeOpDigest, p as makeHoldingsMethods, pi as toAllowedOrigin, pn as toKycTier, pt as MULTI_SEND_SELECTOR, qn as OrganizationSetupSchema, qr as CAPXUL_ERROR_CODES, r as makeMeMethods, ri as BetterAuthNodeLayer, rr as diagnostics, s as makeActivityMethods, si as copyInvocationObservation, sn as recoverRawDigestSigner, st as ORG_BUDGET_ACTIONS, t as executeIdentityProductObservation, ti as ClockPortTag, tn as UNOBSERVABLE_SIGNER_STATUS, tr as decodePermissionIntent$1, u as ConvexSmartAccountLayer, ui as redactSecrets, un as makeCurrentUserMethods, ur as toLowerAddress, ut as resolveOrgPermissionIdentity, v as accountPositionsFromWire, vi as AuthClientPortTag, vn as validateHandle, vr as toPermissionAssignmentId, vt as ROLES_SET_ALLOWANCE_ABI, wt as SEND_SIGNATURE, xn as CLI_CAPABILITIES, xr as ChainIdSchema, xt as ROLE_MANAGEMENT_SIGNATURES, yi as detectAuthCacheAdapter, yr as toPermissionId, yt as ROLES_SET_TRANSACTION_UNWRAPPER_ABI, z as logDroppedEvent, zr as observationOnlyControls, zt as failureDetail } from "./access-BnlgphFT.mjs";
1
+ import { $n as hashPermissionReplacementPreview, $r as carryInvocationParentSpan, A as registerProductTelemetryInvocation, An as onboardings, Ar as isEvmAddress, At as safe4337MultiSendUserOpCallData, B as makeOrganizationPaymentsMethods, Bi as isRecord, Bn as invitations, Br as runPortEffect, C as AccountReadPortTag, Ci as globalLocalStorage, Cr as toRoleKey, Ct as SEND_SIGNATURE, D as convexCallErrorFromCapxul, Dn as normalizeCapxulOperation, Dt as deriveCapxulSafeAddress, E as ConvexCallPortTag, En as isCapxulOperation, Fi as Errors, Fn as PreparedPermissionExecutionSchema, Fr as reference, Ft as callOperation, G as makeActorRelationshipMethods, Gn as workspaces, Gr as awaitCapxulResult, Gt as withCapturedAttemptContext, H as makePaymentsMethods, Hn as roles, Hr as observationOnlyControls, Ht as observeFailedResult, Ii as CapxulError, In as PermissionCommandViewSchema, Ir as makeAuthMethods, It as asCapxulError, J as makeTargetsMethods, Jn as ORGANIZATION_SETUP_STATUSES, Jr as toCapxulResult, K as makeCheckoutMethods, Kn as OrganizationSetupSchema, Kr as defectAsCapxulError, L as makeAccountMethods, Li as isCapxulError, Lr as askIdentity, Lt as toPublicError, M as makeApprovalsMethods, Mi as toEmail, Mn as commands, Mt as BASE_SEPOLIA_CHAIN_ID, N as makePayrollMethods, Nn as configurations, Nt as MULTI_SEND_CALL_ONLY, O as retryIdempotentRead, On as OPERATIONS, Or as toExactAssetAmount, Ot as normalizeSafeSaltEmail, P as makeUnavailablePayrollMethods, Pn as replacements, Pr as absurd, Pt as SAFE_SENTINEL_OWNERS, Qn as InvitationViewSchema, Qr as ActorFailure, Qt as version$1, R as emitDepositInitiated, Ri as FAILURE_MODES, Rr as publicIdentityFailure, Rt as failureDetail, Si as detectAuthCacheAdapter, Sn as CLI_INVOCATION_KINDS, Sr as toPermissionId, St as SEND_BATCH_SIGNATURE, T as TelemetryPortTag, Tn as CAPXUL_OPERATIONS, Tt as CONFIGURED_MONEY_ASSETS, U as waitForPaymentSubmission, Ui as AuthCachePortTag, Un as setups, Ur as runCapxulEffect, Ut as observeSdkClient, V as makeOfframpMethods, Vi as readField, Vn as members, Vr as sessionFromActor, Vt as postHogFailureObservation, W as makeDestinationsMethods, Wn as treasuries, Wr as withVerifiedOrganizationScope, Wt as observationContextProps, Xn as decodeChainCause, Xr as CAPXUL_ERROR_CODES, Y as subscribeFreshQuery, Yr as formatTraceparent, Zn as toOrgId, _ as accountFromAccountPositions, _n as validateHandle, _t as ROLES_SET_ALLOWANCE_ABI, an as openfortSignerNotReadyCode, ar as roleKeyForPermission, b as MONEY_READ_RATES, bi as AuthClientError, bn as CLI_CAPABILITIES, br as toBudgetId, bt as ROLE_MANAGEMENT_SIGNATURES, c as makePaymentDocumentsMethods, ci as observationRequestHeaders, cr as images, ct as resolveOrgPermissionIdentity, d as SmartAccountPortTag, di as readInvocationObservation, dn as toCountryCode, dr as isBytes32, dt as MULTI_SEND_SELECTOR, ei as withInvocationParentSpan, en as UNOBSERVABLE_SIGNER_STATUS, er as decodePermissionIntent$1, fi as sanitizeObservationContext, fn as toKycTier, fr as toExactHex, ft as OPERATOR, g as ConvexAccountLayer, gi as toAllowedOrigin, gn as toPartyId, gt as ROLES_EXEC_TRANSACTION_WITH_ROLE_ABI, h as makeAccountsMethods, hi as isCredentialField, hn as toHandle, hr as toLowerHex, ht as ROLES_ASSIGN_ROLES_ABI, ii as ClockPortTag, in as isSignerNotReadySignal, ir as ORG_BUDGET_ACTIONS, it as canonicalJson, ji as toAuthUserId, jn as authorities, jr as toAddress, jt as buildSafeMultiSendExecTransactionCall, k as bindProductTelemetryInvocation, ki as toEpochMs, kn as details, kt as safe4337ExecuteUserOpCallData, l as makeSmartAccountMethods, li as attachInvocationObservation, ln as makeCurrentUserMethods, lr as toAccountId, lt as CREATE_COMMITMENT_SIGNATURE, m as PonderIndexerAdapter, mi as redactUrlSecrets, mr as toLowerBytes32, mt as PARAMETER_TYPE, n as bootIdentityFlow, ni as SystemClockLayer, nr as CurrentPolicySchema, oi as BetterAuthNodeLayer, on as recoverRawDigestSigner, or as diagnostics, ot as moneySafeOpDigest, p as makeHoldingsMethods, pi as redactSecrets, pn as toTesterKind, pr as toLowerAddress, pt as OWNER_COMMITMENT_SIGNATURES, qn as ORGANIZATION_SETUP_REASONS, qr as runIfActive, r as makeMeMethods, rn as isEcdsaSignatureHex, rr as MONTHLY_REFILL_PERIOD_SECONDS, s as makeActivityMethods, si as BetterAuthBrowserLayer, sn as signerFailure, sr as AppIdSchema, st as ZODIAC_MODULE_PROXY_FACTORY, t as executeIdentityProductObservation, tn as causeChain, tr as keepRefillOnChange, u as ConvexSmartAccountLayer, ui as copyInvocationObservation, un as makeClientRequestMethods, ut as MODULE_PROXY_FACTORY_ABI, v as accountPositionsFromWire, vi as toPublishableKey, vr as DurationMsSchema, vt as ROLES_SET_TRANSACTION_UNWRAPPER_ABI, wn as stampTelemetryEnvelope, wr as ChainIdSchema, wt as CAPXUL_PAYMENTS_V2_ADDRESS, xi as AuthClientPortTag, xn as CLI_COMMAND_NAMES, xr as toPermissionAssignmentId, xt as SAFE_ENABLE_MODULE_ABI, yn as redactTelemetryProps, yr as EpochMsSchema, yt as ROLES_SET_UP_ABI, z as logDroppedEvent, zi as isFailureMode, zr as runIdentityFacade, zt as failureEvidenceProps } from "./access-SP-ur4Ku.mjs";
2
2
  import { Cause, Clock, Context, Data, Deferred, Duration, Effect, Exit, FiberSet, Layer, Logger, Metric, Option, Predicate, References, Result, Schedule, Schema, SchemaIssue, SchemaParser, Scope, Stream, Tracer } from "effect";
3
3
  import { getFunctionName } from "convex/server";
4
4
  import { BaseError, decodeFunctionData, encodeAbiParameters, encodeFunctionData, formatUnits, getContractAddress, keccak256, padHex, parseAbiParameters, stringToHex, toBytes, toFunctionSelector, toHex } from "viem";
@@ -9740,13 +9740,15 @@ function normalizeOrgBudgetPolicy(policy) {
9740
9740
  if (actionSet.has(action)) throw Errors.invalidInput("policy.actions", `duplicate Budget action: ${action}`);
9741
9741
  actionSet.add(action);
9742
9742
  }
9743
+ if (policy.refill === "monthly" && limit.kind === "unlimited") throw Errors.invalidInput("policy.refill", "only a capped Budget can refill");
9743
9744
  return {
9744
9745
  assetId,
9745
9746
  tokenAddress,
9746
9747
  decimals: policy.asset.decimals,
9747
9748
  limit,
9748
9749
  recipients,
9749
- actions: ORG_BUDGET_ACTIONS.filter((action) => actionSet.has(action))
9750
+ actions: ORG_BUDGET_ACTIONS.filter((action) => actionSet.has(action)),
9751
+ refillPeriod: policy.refill === "monthly" ? MONTHLY_REFILL_PERIOD_SECONDS : 0n
9750
9752
  };
9751
9753
  }
9752
9754
  function resolvedBudgetApprovalPermission(tokenAddress) {
@@ -9821,8 +9823,8 @@ function buildOrgBudgetCallsWithEncoder(input, encodeRoles) {
9821
9823
  allowanceKey,
9822
9824
  BigInt(policy.limit.rawUnits),
9823
9825
  BigInt(policy.limit.rawUnits),
9824
- 0n,
9825
- 0n,
9826
+ policy.refillPeriod === 0n ? 0n : BigInt(policy.limit.rawUnits),
9827
+ policy.refillPeriod,
9826
9828
  0n
9827
9829
  ]
9828
9830
  }),
@@ -10016,13 +10018,20 @@ function buildExplicitBootstrapRoleCalls(input, encodeRoles) {
10016
10018
  roles: [{
10017
10019
  key: managementRoleKey,
10018
10020
  members: [input.ownerAddress],
10019
- permissions: [{
10020
- targetAddress: input.rolesModuleAddress,
10021
- signature: "assignRoles(address,bytes32[],bool[])"
10022
- }, ...ROLE_MANAGEMENT_SIGNATURES.map((signature) => ({
10023
- targetAddress: input.rolesModuleAddress,
10024
- signature
10025
- }))]
10021
+ permissions: [
10022
+ {
10023
+ targetAddress: input.rolesModuleAddress,
10024
+ signature: "assignRoles(address,bytes32[],bool[])"
10025
+ },
10026
+ ...ROLE_MANAGEMENT_SIGNATURES.map((signature) => ({
10027
+ targetAddress: input.rolesModuleAddress,
10028
+ signature
10029
+ })),
10030
+ ...OWNER_COMMITMENT_SIGNATURES.map((signature) => ({
10031
+ targetAddress: CAPXUL_PAYMENTS_V2_ADDRESS,
10032
+ signature
10033
+ }))
10034
+ ]
10026
10035
  }]
10027
10036
  }).map((call) => ({
10028
10037
  to: toLowerHex(call.to, "setUpRoles.call.to"),
@@ -10490,7 +10499,7 @@ function matchesCurrentPolicy(intent, policy) {
10490
10499
  asset: policy.asset,
10491
10500
  value: policy.limit
10492
10501
  }, CONFIGURED_MONEY_ASSETS).minorUnits;
10493
- return policy.asset === intent.asset && raw === recorded && (intent.scope === void 0 || canonicalJson(intent.scope) === canonicalJson(policy.scope));
10502
+ return policy.asset === intent.asset && raw === recorded && intent.refill === "monthly" === (policy.refill === "monthly") && (intent.scope === void 0 || canonicalJson(intent.scope) === canonicalJson(policy.scope));
10494
10503
  }
10495
10504
  function previousPolicyForChange(effect, command) {
10496
10505
  if (effect.previousIntent.type === "budget" && (effect.previousIntent.scope === void 0 || effect.previousRecipientBindings === void 0)) throw new EvidenceMismatch("Prior complete Budget proof is unavailable");
@@ -10508,8 +10517,9 @@ function policyCalls(evidence, context, command) {
10508
10517
  const roleKey = effect.operation === "change" ? effect.roleKey : roleKeyForPermission(permissionId);
10509
10518
  const revision = effect.operation === "change" ? effect.revision : 0;
10510
10519
  if (effect.operation !== command.operation || effect.operation === "change" && effect.permissionId !== permissionId || evidence.expectedRevision !== revision) throw new EvidenceMismatch("Permission policy binding mismatch");
10520
+ const intent = effect.operation === "change" ? keepRefillOnChange(command.intent, effect.previousCurrentPolicy) : command.intent;
10511
10521
  const value = evidence.value;
10512
- if (Array.isArray(value) || !("type" in value) || !matchesCurrentPolicy(command.intent, value.currentPolicy) || !permissionMatches(value, context.orgId, permissionId, command.operation === "create" ? 0 : revision + 1, command.intent, roleKey)) throw new EvidenceMismatch("Permission value mismatch");
10522
+ if (Array.isArray(value) || !("type" in value) || !matchesCurrentPolicy(intent, value.currentPolicy) || !permissionMatches(value, context.orgId, permissionId, command.operation === "create" ? 0 : revision + 1, intent, roleKey)) throw new EvidenceMismatch("Permission value mismatch");
10513
10523
  const planned = compilePermissionPolicyCallsWithEncoder({
10514
10524
  permissionId,
10515
10525
  roleKey,
@@ -10517,7 +10527,7 @@ function policyCalls(evidence, context, command) {
10517
10527
  actorSafe: evidence.userOpSenderSafe,
10518
10528
  rolesModule: context.rolesModule,
10519
10529
  managerRoleKey: context.managerRoleKey,
10520
- nextIntent: encodingIntent(command.intent, effect.recipientBindings),
10530
+ nextIntent: encodingIntent(intent, effect.recipientBindings),
10521
10531
  ...previous === void 0 ? {} : { previousIntent: previous },
10522
10532
  ...effect.operation !== "change" || effect.previousAllowanceKey === null ? {} : { previousAllowanceKey: effect.previousAllowanceKey }
10523
10533
  }, encodeRoles);
@@ -10569,7 +10579,8 @@ function encodingIntent(intent, bindings) {
10569
10579
  "send",
10570
10580
  "sendBatch",
10571
10581
  "createCommitment"
10572
- ].filter((action) => action === "createCommitment" ? intent.scope.actions.includes("commitments") : intent.scope.actions.includes("pay"))
10582
+ ].filter((action) => action === "createCommitment" ? intent.scope.actions.includes("commitments") : intent.scope.actions.includes("pay")),
10583
+ ...intent.refill === "monthly" ? { refill: intent.refill } : {}
10573
10584
  }
10574
10585
  };
10575
10586
  }
@@ -12161,6 +12172,22 @@ function normalizeRuntimeUrl(field, raw) {
12161
12172
  }
12162
12173
  //#endregion
12163
12174
  //#region src/applications/bootstrap-adapter.ts
12175
+ /** A cached envelope this close to its expiry is fetched again, so it cannot lapse mid-command. */
12176
+ const CACHE_EXPIRY_MARGIN_MS = 3e4;
12177
+ /**
12178
+ * The cached envelope, when it is still inside its own lifetime. It is decoded
12179
+ * as a fresh body is; anything that does not decode, or a store that fails,
12180
+ * is a miss.
12181
+ */
12182
+ async function cachedEnvelope(cache, now) {
12183
+ try {
12184
+ const cached = decodeBootstrapBody(await cache.load());
12185
+ const expiresAt = cached.issuedAt + cached.expiresIn - CACHE_EXPIRY_MARGIN_MS;
12186
+ return cached.issuedAt <= now && now < expiresAt ? cached : null;
12187
+ } catch {
12188
+ return null;
12189
+ }
12190
+ }
12164
12191
  const DEFAULT_RETRY = {
12165
12192
  attempts: 2,
12166
12193
  baseDelayMs: 400
@@ -12201,19 +12228,24 @@ var HttpBootstrapAdapter = class {
12201
12228
  fetchImpl;
12202
12229
  observation;
12203
12230
  retry;
12231
+ cache;
12204
12232
  constructor(deps) {
12205
12233
  this.bootstrapBaseUrl = deps.bootstrapBaseUrl.replace(/\/$/, "");
12206
12234
  this.bootstrapHost = hostOf(this.bootstrapBaseUrl);
12207
12235
  this.observation = deps.observation;
12208
12236
  this.retry = deps.retry ?? DEFAULT_RETRY;
12237
+ this.cache = deps.cache;
12209
12238
  this.fetchImpl = deps.fetch ?? ((input, init) => globalThis.fetch(input, init));
12210
12239
  }
12211
12240
  resolve(input) {
12212
- return this.attempt(input).pipe(Effect.retry({
12241
+ const fetched = this.attempt(input).pipe(Effect.retry({
12213
12242
  times: this.retry.attempts,
12214
12243
  while: isTransientBootstrapFailure,
12215
12244
  schedule: Schedule.exponential(Duration.millis(this.retry.baseDelayMs))
12216
12245
  }));
12246
+ const cache = this.cache;
12247
+ if (cache === void 0) return fetched;
12248
+ return Effect.promise(() => cachedEnvelope(cache, Date.now())).pipe(Effect.filterOrElse((cached) => cached !== null, () => fetched));
12217
12249
  }
12218
12250
  attempt(input) {
12219
12251
  return Effect.tryPromise({
@@ -12238,7 +12270,13 @@ var HttpBootstrapAdapter = class {
12238
12270
  }
12239
12271
  mapResponse(res, input) {
12240
12272
  if (res.ok) return Effect.tryPromise({
12241
- try: async () => decodeBootstrapBody(await res.json()),
12273
+ try: async () => {
12274
+ const body = await res.json();
12275
+ const resolution = decodeBootstrapBody(body);
12276
+ const cache = this.cache;
12277
+ if (cache !== void 0) await Promise.resolve().then(() => cache.save(body)).catch(() => void 0);
12278
+ return resolution;
12279
+ },
12242
12280
  catch: (cause) => {
12243
12281
  if (cause instanceof CapxulError && cause.code === "INVALID_INPUT") return bootstrapErrorFromCapxul("invalidInput", cause);
12244
12282
  return bootstrapErrorFromCapxul("malformedBody", Errors.providerError("convex", "bootstrap", cause instanceof Error ? cause : new Error(String(cause))));
@@ -13907,7 +13945,9 @@ function makeNotImplementedOrganizationPaymentsMethods() {
13907
13945
  subscribe: organizationPaymentExecutionUnavailable,
13908
13946
  pay: organizationPaymentExecutionUnavailable,
13909
13947
  payBatch: organizationPaymentExecutionUnavailable,
13910
- retry: organizationPaymentExecutionUnavailable
13948
+ retry: organizationPaymentExecutionUnavailable,
13949
+ cancel: organizationPaymentExecutionUnavailable,
13950
+ redirect: organizationPaymentExecutionUnavailable
13911
13951
  };
13912
13952
  }
13913
13953
  const orgMeUnavailable = () => Promise.resolve({
@@ -14810,6 +14850,23 @@ function subscribeConvexQuery(client, fn, args, callback, options) {
14810
14850
  * ever needs a different one.
14811
14851
  */
14812
14852
  const DEFAULT_CLOSE_TIMEOUT_MS = 5e3;
14853
+ /**
14854
+ * The fetcher the Convex client's auth handshake gets. Convex first asks for
14855
+ * "a possibly cached token" (`forceRefreshToken: false`) and, as soon as the
14856
+ * server accepts it, for a fresh one (`true`): the token whose `exp` it
14857
+ * schedules the next refresh from. The Better Auth clients keep no token: each
14858
+ * ask mints one over the network, so the cached ask was a second token fetch
14859
+ * and a second server verification (a JWKS read) on every session restore. It
14860
+ * answers "none" instead, and Convex makes its one fetch forced, as a fresh
14861
+ * token. Every forced ask still reaches the auth client: that first fetch, the
14862
+ * refresh before `exp`, and the retry after the server rejects a token.
14863
+ * ponytail: the OAuth bearer client can hold a cached exchange; it now pays one
14864
+ * exchange for the first authentication instead of reusing it (never more
14865
+ * fetches than before). Pass the cache through if that start ever matters.
14866
+ */
14867
+ function freshTokenHandshake(fetchToken) {
14868
+ return async (args) => args.forceRefreshToken ? fetchToken(args) : null;
14869
+ }
14813
14870
  /** Run a Convex call under the current trace parent, when there is one. */
14814
14871
  const withTraceparent = (run) => Effect.flatMap(Effect.serviceOption(Tracer.ParentSpan), (parent) => run(parent._tag === "Some" ? formatTraceparent(parent.value) : void 0));
14815
14872
  var ConvexCallAdapter = class {
@@ -14834,10 +14891,10 @@ var ConvexCallAdapter = class {
14834
14891
  this.#tokenProvider = deps.tokenProvider;
14835
14892
  this.#applicationId = deps.applicationId;
14836
14893
  this.#observation = deps.observation;
14837
- if (this.#tokenProvider) this.#client.setAuth(this.#tokenProvider);
14894
+ this.refreshAuth();
14838
14895
  }
14839
14896
  refreshAuth() {
14840
- if (this.#tokenProvider) this.#client.setAuth(this.#tokenProvider);
14897
+ if (this.#tokenProvider) this.#client.setAuth(freshTokenHandshake(this.#tokenProvider));
14841
14898
  }
14842
14899
  observeConnection(observer) {
14843
14900
  return this.#connectionMonitor.observe(this.#client, observer);
@@ -16394,7 +16451,8 @@ async function createProductionAdapters(input) {
16394
16451
  const bootstrapLayer = HttpBootstrapLayer({
16395
16452
  bootstrapBaseUrl: resolvedInput.value.bootstrapBaseUrl,
16396
16453
  ...input.fetch === void 0 ? {} : { fetch: input.fetch },
16397
- ...invocationObservation === void 0 ? {} : { observation: invocationObservation }
16454
+ ...invocationObservation === void 0 ? {} : { observation: invocationObservation },
16455
+ ...input.bootstrapCache === void 0 ? {} : { cache: input.bootstrapCache }
16398
16456
  });
16399
16457
  try {
16400
16458
  const bootstrapContext = await Effect.runPromise(Layer.buildWithScope(bootstrapLayer, scope));
@@ -1,4 +1,4 @@
1
- import { $a as TelemetryPortEvent, E as OpenfortBrowserSignerOptions, Hi as CapxulSigner, Qa as TelemetryEvent, Xa as TelemetryGroupInput, Za as TelemetryIdentifyInput, _o as CapxulResult, co as ObservationAdapter, l as CapxulClientInput, ot as IdentityTransition, wa as OrganizationSetup, z as CapxulClient } from "../index-BjDZXc7n.mjs";
1
+ import { $a as TelemetryPortEvent, E as OpenfortBrowserSignerOptions, Hi as CapxulSigner, Qa as TelemetryEvent, Xa as TelemetryGroupInput, Za as TelemetryIdentifyInput, _o as CapxulResult, co as ObservationAdapter, l as CapxulClientInput, ot as IdentityTransition, wa as OrganizationSetup, z as CapxulClient } from "../index-V6HIBbMr.mjs";
2
2
  import { Effect, Layer } from "effect";
3
3
  //#region src/platform/production-client.d.ts
4
4
  /** Per-client signing controls; only the testing entry exposes these to consumers. */
@@ -1,5 +1,5 @@
1
- import { a as cloneTelemetryEvent, c as identityErrorFromCapxul, l as bootstrapErrorFromCapxul, n as createCapxulClientWithSignerControls, o as cloneTelemetryProps, r as assembleCapxulClient, s as IdentityPortTag } from "../production-D5uC-i8N.mjs";
2
- import { Ai as toJwtToken, Ar as toWeiAmount, D as convexCallErrorFromCapxul, Di as toEpochSeconds, Ei as toEpochMs, Et as CONFIGURED_MONEY_ASSETS, Mi as Errors, Ni as CapxulError, Oi as toAuthUserId, Or as toAddress, Ot as deriveCapxulSafeAddress, Qn as toOrgId, Ti as toDurationMs, X as assetAmountFromRaw, _ as accountFromAccountPositions, ei as ClockError, f as smartAccountErrorFromCapxul, fn as toCountryCode, gi as authClientPortFromPromiseAdapter, gn as toHandle, hi as toPublishableKey, j as wireChainId, ji as toSessionToken, jr as absurd, ki as toEmail, kr as toChainId, mi as toAppId, ni as readClockNow, or as toAccountId, pi as toAllowedOrigin, pn as toKycTier, ti as ClockPortTag, tt as toRaw, vn as validateHandle, w as accountReadErrorFromCapxul, xi as InMemoryAuthCacheAdapter, yn as redactTelemetryEvent } from "../access-BnlgphFT.mjs";
1
+ import { a as cloneTelemetryEvent, c as identityErrorFromCapxul, l as bootstrapErrorFromCapxul, n as createCapxulClientWithSignerControls, o as cloneTelemetryProps, r as assembleCapxulClient, s as IdentityPortTag } from "../production-CoxgepCr.mjs";
2
+ import { Ai as toEpochSeconds, D as convexCallErrorFromCapxul, Dt as deriveCapxulSafeAddress, Fi as Errors, Ii as CapxulError, Mi as toEmail, Mr as toChainId, Ni as toJwtToken, Nr as toWeiAmount, Oi as toDurationMs, Pi as toSessionToken, Pr as absurd, Tt as CONFIGURED_MONEY_ASSETS, X as assetAmountFromRaw, Zn as toOrgId, _ as accountFromAccountPositions, _i as toAppId, _n as validateHandle, ai as readClockNow, dn as toCountryCode, f as smartAccountErrorFromCapxul, fn as toKycTier, gi as toAllowedOrigin, hn as toHandle, ii as ClockPortTag, j as wireChainId, ji as toAuthUserId, jr as toAddress, ki as toEpochMs, lr as toAccountId, ri as ClockError, tt as toRaw, vi as toPublishableKey, vn as redactTelemetryEvent, w as accountReadErrorFromCapxul, wi as InMemoryAuthCacheAdapter, yi as authClientPortFromPromiseAdapter } from "../access-SP-ur4Ku.mjs";
3
3
  import { Effect, Layer, Result, Semaphore } from "effect";
4
4
  import { getFunctionName } from "convex/server";
5
5
  //#region src/testing/production-client.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk",
3
- "version": "4.20.0-beta.27",
3
+ "version": "4.20.0-beta.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Xelmar-tech/infrastructure.git",
@@ -83,8 +83,8 @@
83
83
  "vite-plus": "1.0.0",
84
84
  "vitest": "5.0.1",
85
85
  "zodiac-roles-sdk": "2.22.2",
86
- "@capxul/observability": "4.20.0-beta.27",
87
- "@capxul/protocol": "0.2.0-beta.1",
86
+ "@capxul/observability": "4.20.0-beta.28",
87
+ "@capxul/protocol": "0.2.0-beta.2",
88
88
  "@capxul/typescript-config": "0.0.0"
89
89
  },
90
90
  "_permissionlessPinReason": "permissionless.toSafeSmartAccount is pinned to 0.3.4 for live Safe deployment E2E. Counterfactual address fixtures captured 2026-05-17 in packages/backend/convex/_shared/__tests__/counterfactual.test.ts and packages/config/tests/safe.test.ts must be re-verified before upgrading.",