@capxul/sdk 4.20.0-beta.5 → 4.20.0-beta.7

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,5 +1,5 @@
1
- import { $ as OrgId, A as Address, At as RevertSummary, B as BudgetId, D as Account, Dt as ChainUpstream, E as CAPXUL_PAYMENTS_V2_ADDRESS, Et as ChainCause, F as AssetAmount, G as CurrencyCode, I as AssetId, J as EVM_ADDRESS_RE, L as AuthSession, O as AccountId, Ot as FAILURE_MODES, Q as Money, R as AuthUserId, St as Errors, Tt as CHAIN_UPSTREAMS, V as ChainId, W as CountryCode, Z as Handle, _ as Session, _t as toPartyId, a as Eip1193RequestProvider, bt as CapxulErrorCode, c as injectedWalletSigner, ct as RoleKey, d as AccountRequirement, dt as TesterKind, et as PartyId, f as Eip1193Provider, g as Profile, gt as toHandle, h as CapxulResult, ht as toCountryCode, i as CapxulSigner, kt as FailureMode, l as AccountProvider, m as localPrivateKeyAccountProvider, mt as toAddress, nt as PayrollGroupId, o as SignerStatus, p as eip1193AccountProvider, r as CapxulDigestSigner, rt as PayrollRunId, s as SignerStatusStore, u as AccountProviderSource, v as SmartAccount, vt as CAPXUL_ERROR_CODES, wt as isCapxulError, xt as CapxulErrorDetails, yt as CapxulError } from "./OAuthBearerAuthClient-BAxoi3SD.mjs";
2
- import { $ as OrganizationPaymentBatchInput, $n as PAYMENT_DIRECTIONS, $t as Destination, A as OrgScopedMethods, An as Ref, At as AddressBookAddInput, B as AuthorizeRunOptions, Bn as SmartAccountMethods, Bt as ActivityFilter, C as CurrentUserMethods, Cn as PaymentMoney, Ct as AccountMethods, D as MemberStatus, Dn as PaymentsMethods, Dt as ActorRequest, E as InviteMemberInput, En as PaymentType, Et as ActorRelationshipMethods, F as ResendInviteTokenInput, Fn as AccountLifecycle, Ft as InboxItem, G as PayrollGroupsMethods, Gn as OrgSetupStep, Gt as ActivityPage, H as PayrollGroup, Hn as AccountSetupPolicy, Ht as ActivityKind, I as RoleDefinition, In as AccountSetupStep, It as InboxMethods, J as PayrollRun, Jn as ActorRef, Jt as ActivitySummary, K as PayrollMethods, Kn as PayoutAddress, Kt as ActivityRange, L as RoleSpendCap, Ln as isSettingUpLifecycle, Lt as ActivityAnnotation, M as OrgView, Mn as TargetReference, Mt as AddressBookLabelInput, N as OrganizationAccount, Nn as TargetsMethods, Nt as AddressBookMethods, O as MemberView, On as PaymentsPayInput, Ot as ActorRequestIssueInput, P as OrganizationAuditLogItem, Pn as fingerprintPaymentIntent, Pt as InboxApproveInput, Q as PayrollTermsUnit, Qn as InboxStatus, Qt as DepositInstructions, R as RoleView, Rn as CompleteProfileInput, Rt as ActivityAnnotationInput, S as CurrentUserContext, Sn as PaymentDocumentsMethods, St as ReadyAccountLifecycle, T as DetectPendingOrgInvitationsResult, Tn as PaymentTiming, Tt as ActorProfileMethods, U as PayrollGroupInput, Un as ClientRequests, Ut as ActivityListParams, V as PayrollEngagementTerms, Vn as AuthMethods, Vt as ActivityItem, W as PayrollGroupMember, Wn as OrgLifecycle, Wt as ActivityMethods, X as PayrollRunStatus, Xn as Permission, Xt as ActivitySummaryTotal, Y as PayrollRunItemInput, Yn as CurrentHoldings, Yt as ActivitySummaryParams, Z as PayrollRuns, Zn as SubmittedPermissionExecution, Zt as ActorReference, _ as HoldingsMethods, _n as PaymentDirection, _r as InvocationControls, _t as OnboardingMethods, a as ObservationContext, an as DestinationRemoveInput, at as PermissionCreateInput, b as SystemHealth, bn as PaymentDocumentRender, bt as PersonOnboarding, c as HostObservability, cn as MeMethods, cr as IdentityEvent, ct as PermissionReplaceInput, d as postHogObservability, dn as OfframpMethods, dr as Readiness, dt as Budget, en as DestinationAddInput, er as PAYMENT_STATUSES, et as OrganizationPaymentInput, f as CapxulClient, fn as OfframpQuote, fr as StateLabel, ft as OrgMe, g as IdentityRuntimeSendResult, gn as PaymentActivityEvidence, gr as IdentityTransition, gt as CompletedPersonProfile, h as IdentityRuntime, hn as Payment, hr as isRestoring, ht as AccountsMethods, i as ObservationAdapter, in as DestinationRail, it as PermissionChangeInput, j as OrgTemplate, jn as ResolvedTarget, jt as AddressBookEntry, k as OrgMethods, kn as RecipientResolution, kt as ActorRequestsMethods, l as PostHogObservabilityClient, ln as MeProfile, lr as IdentityState, lt as PermissionRevokeInput, m as IdentityProfileDetails, mn as OfframpStatus, mr as isClaimed, mt as OrgMeOptions, nn as DestinationListInput, nr as RequestStatus, nt as OrganizationPaymentsMethods, o as ObservationDelivery, on as DestinationsMethods, or as TelemetryPort, ot as PermissionMethods, p as CreateCapxulClientInput, pn as OfframpQuoteInput, pr as destination, pt as OrgMeMethod, q as PayrollOptions, qn as ClientRequestView, qt as ActivityReference, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, rn as DestinationPayload, rt as PermissionAssignInput, s as SdkFailureObservation, sn as FinancialOpsMethods, sr as Destination$1, st as PermissionOptions, t as CapxulClientInput, tn as DestinationKind, tr as PaymentStatus$1, tt as OrganizationPaymentItemInput, u as PostHogObservabilityOptions, un as MovementActivityEvidence, ur as OrgLane, ut as PermissionReadResult, v as Holding, vn as PaymentDocumentKind, vt as OrganizationOnboarding, w as CreateOrgInput, wn as PaymentStatus, wt as ActorProfile, x as MediaMethods, xn as PaymentDocumentVerification, xt as PersonOnboardingInput, y as SystemMethods, yn as PaymentDocumentRef, yt as OrganizationOnboardingInput, z as AuthorizeRunInput, zn as IdentityMethods, zt as ActivityDetail } from "./production-DAhaxUik.mjs";
1
+ import { $ as OrgId, A as Address, At as ChainCause, B as BudgetId, Ct as CapxulError, D as Account, E as CAPXUL_PAYMENTS_V2_ADDRESS, Et as Errors, F as AssetAmount, G as CurrencyCode, I as AssetId, J as EVM_ADDRESS_RE, L as AuthSession, Mt as FAILURE_MODES, Nt as FailureMode, O as AccountId, Ot as isCapxulError, Pt as RevertSummary, Q as Money, R as AuthUserId, St as CAPXUL_ERROR_CODES, Tt as CapxulErrorDetails, V as ChainId, W as CountryCode, Z as Handle, _ as Session, _t as toCountryCode, a as Eip1193RequestProvider, at as PermissionId, bt as toPartyId, c as injectedWalletSigner, ct as RoleKey, d as AccountRequirement, dt as TesterKind, et as PartyId, f as Eip1193Provider, g as Profile, gt as toBudgetId, h as CapxulResult, ht as toAddress, i as CapxulSigner, jt as ChainUpstream, kt as CHAIN_UPSTREAMS, l as AccountProvider, m as localPrivateKeyAccountProvider, mt as toAccountId, nt as PayrollGroupId, o as SignerStatus, p as eip1193AccountProvider, r as CapxulDigestSigner, rt as PayrollRunId, s as SignerStatusStore, u as AccountProviderSource, v as SmartAccount, vt as toHandle, wt as CapxulErrorCode, xt as toPermissionId, yt as toOrgId } from "./OAuthBearerAuthClient-DOPDDSPs.mjs";
2
+ import { $ as PayrollRuns, $n as OrgSetupStep, $t as ActivityListParams, A as MemberStatus, An as PaymentDocumentsMethods, Ar as PAYMENT_STATUSES, At as PersonOnboarding, B as RoleView, Bn as TargetReference, Br as OrgLane, Bt as AddressBookAddInput, C as SystemHealth, Cn as OfframpQuoteInput, Cr as PaymentDocumentVerification, Ct as AccountsMethods, D as AssignmentProjection, Dn as PaymentDirection, Dr as SubmittedPermissionExecution, Dt as OrganizationOnboardingInput, E as CurrentUserMethods, En as PaymentActivityEvidence, Er as Permission, Et as OrganizationOnboarding, F as OrgView, Fn as PaymentsMethods, Ft as ActorProfileMethods, G as PayrollGroupInput, Gn as isSettingUpLifecycle, Gr as isRestoring, Gt as InboxItem, H as AuthorizeRunOptions, Hn as fingerprintPaymentIntent, Hr as StateLabel, Ht as AddressBookLabelInput, I as OrganizationAccess, In as PaymentsPayInput, Ir as TelemetryPort, It as ActorRelationshipMethods, J as PayrollMethods, Jn as SmartAccountMethods, Jt as ActivityAnnotationInput, K as PayrollGroupMember, Kn as CompleteProfileInput, Kr as IdentityTransition, Kt as InboxMethods, L as OrganizationAccount, Ln as RecipientResolution, Lr as Destination$1, Lt as ActorRequest, M as OrgMethods, Mn as PaymentStatus, Mr as RequestStatus, Mt as ReadyAccountLifecycle, N as OrgScopedMethods, Nn as PaymentTiming, Nt as AccountMethods, O as CreateOrgInput, On as PaymentDocumentKind, Or as InboxStatus, Ot as OrganizationOnboardingOptions, P as OrgTemplate, Pn as PaymentType, Pt as ActorProfile, Q as PayrollRunStatus, Qn as OrgLifecycle, Qt as ActivityKind, R as OrganizationAuditLogItem, Rn as Ref, Rr as IdentityEvent, Rt as ActorRequestIssueInput, S as SystemMethods, Sn as OfframpQuote, Sr as PaymentDocumentRender, St as OrgMeOptions, T as CurrentUserContext, Tn as Payment, Tr as CurrentHoldings, Tt as OnboardingMethods, U as PayrollEngagementTerms, Un as AccountLifecycle, Ur as destination, Ut as AddressBookMethods, V as AuthorizeRunInput, Vn as TargetsMethods, Vr as Readiness, Vt as AddressBookEntry, W as PayrollGroup, Wn as AccountSetupStep, Wr as isClaimed, Wt as InboxApproveInput, X as PayrollRun, Xn as AccountSetupPolicy, Xt as ActivityFilter, Y as PayrollOptions, Yn as AuthMethods, Yt as ActivityDetail, Z as PayrollRunItemInput, Zn as ClientRequests, Zt as ActivityItem, _ as CreateCapxulClientInput, _n as FinancialOpsMethods, _r as OfferedAuthority, _t as OrgInvitations, a as ObservationContext, an as ActivitySummaryParams, ar as GranteeRef, at as PermissionAssignInput, b as IdentityRuntimeSendResult, bn as MovementActivityEvidence, br as PaymentDocumentDownload, bt as OrgMe, c as HostObservability, cn as DepositInstructions, cr as InvitationPage, ct as PermissionMethods, d as postHogObservability, dn as DestinationKind, dr as InvitationRecovery, dt as PermissionRevokeInput, en as ActivityMethods, er as PayoutAddress, et as PayrollTermsUnit, f as OpenfortBrowserAuth, fn as DestinationListInput, fr as InvitationTarget, ft as PermissionReadResult, g as CapxulClient, gn as DestinationsMethods, gr as InvitePreview, gt as InvitePreviewInput, h as createOpenfortBrowserSigner, hn as DestinationRemoveInput, hr as InviteInput, ht as InvitePrepared, i as ObservationAdapter, in as ActivitySummary, ir as EndingReason, it as OrganizationPaymentsMethods, j as MemberView, jn as PaymentMoney, jr as PaymentStatus$1, jt as PersonOnboardingInput, k as MemberIdentityProjection, kn as PaymentDocumentRef, kr as PAYMENT_DIRECTIONS, kt as OrganizationOnboardingState, l as PostHogObservabilityClient, ln as Destination, lr as InvitationPageInput, lt as PermissionOptions, m as OpenfortBrowserSignerBootstrap, mn as DestinationRail, mr as InviteGrant, mt as InviteOptions, nn as ActivityRange, nr as BudgetIntent, nt as OrganizationPaymentInput, o as ObservationDelivery, on as ActivitySummaryTotal, or as InvitationAcceptInput, ot as PermissionChangeInput, p as OpenfortBrowserSigner, pn as DestinationPayload, pr as InvitationView, pt as InviteMethod, q as PayrollGroupsMethods, qn as IdentityMethods, qr as InvocationControls, qt as ActivityAnnotation, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, rn as ActivityReference, rr as CurrentPolicy, rt as OrganizationPaymentItemInput, s as SdkFailureObservation, sn as ActorReference, sr as InvitationId, st as PermissionCreateInput, t as CapxulClientInput, tn as ActivityPage, tr as AuthorityRef, tt as OrganizationPaymentBatchInput, u as PostHogObservabilityOptions, un as DestinationAddInput, ur as InvitationPhase, ut as PermissionReplaceInput, v as IdentityProfileDetails, vn as MeMethods, vr as SpendingScope, vt as OwnInvitationsMethod, w as MediaMethods, wn as OfframpStatus, wr as ActorRef, wt as CompletedPersonProfile, x as HoldingsMethods, xn as OfframpMethods, xr as PaymentDocumentReadRef, xt as OrgMeMethod, y as IdentityRuntime, yn as MeProfile, yr as ClientRequestView, yt as Budget, z as RoleDefinition, zn as ResolvedTarget, zr as IdentityState, zt as ActorRequestsMethods } from "./production-UMTDZSTH.mjs";
3
3
  import { Hex } from "viem";
4
4
  import { Effect, Layer } from "effect";
5
5
  //#region ../errors/src/index.d.ts
@@ -10,12 +10,11 @@ declare const HANDLE_RE: RegExp;
10
10
  /**
11
11
  * Where a registry row's liquidity comes from. `synthetic-test-liquidity`
12
12
  * marks an owned fixture whose balances and rates are authored inputs, never
13
- * market or provider data. `legacy` marks the preserved USDX rail, which the
14
- * live write path still settles until the named-asset writer replaces it.
13
+ * market or provider data.
15
14
  * Admission — which rows a treasury read returns — is `CONFIGURED_MONEY_ASSETS`,
16
15
  * not this field; an owned fixture is a settlement asset.
17
16
  */
18
- type AssetSource = "synthetic-test-liquidity" | "legacy";
17
+ type AssetSource = "synthetic-test-liquidity";
19
18
  /** Canonical metadata. A missing peg does not imply a missing market price. */
20
19
  interface AssetMetadata {
21
20
  readonly assetId: AssetId;
@@ -27,6 +26,14 @@ interface AssetMetadata {
27
26
  readonly deploymentStartBlock: number;
28
27
  readonly source: AssetSource;
29
28
  }
29
+ /** Public AssetIds for the admitted Base Sepolia test assets. */
30
+ declare const TOKENS: Readonly<{
31
+ BASE_SEPOLIA: Readonly<{
32
+ CAPXUL_TEST_USDC: AssetId;
33
+ CAPXUL_TEST_USDT: AssetId;
34
+ CAPXUL_TEST_WETH: AssetId;
35
+ }>;
36
+ }>;
30
37
  //#endregion
31
38
  //#region ../observability/src/operations.d.ts
32
39
  declare const CAPXUL_OPERATIONS: {
@@ -157,7 +164,6 @@ declare const CAPXUL_OPERATIONS: {
157
164
  };
158
165
  readonly holdings: {
159
166
  readonly current: "holdings.current";
160
- readonly primary: "holdings.primary";
161
167
  };
162
168
  readonly indexer: {
163
169
  readonly reconcile: "indexer.reconcile";
@@ -218,10 +224,12 @@ declare const CAPXUL_OPERATIONS: {
218
224
  readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
219
225
  readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
220
226
  readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
227
+ readonly prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration";
221
228
  readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
222
229
  readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
223
230
  readonly submit: "moneyExecution.submit";
224
231
  readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
232
+ readonly submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution";
225
233
  readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
226
234
  readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
227
235
  };
@@ -243,22 +251,54 @@ declare const CAPXUL_OPERATIONS: {
243
251
  readonly completePerson: "onboarding.completePerson";
244
252
  };
245
253
  readonly org: {
246
- readonly acceptInvitations: "org.acceptInvitations";
247
254
  readonly account: {
248
255
  readonly get: "org.account.get";
249
256
  };
250
- readonly activateMember: "org.activateMember";
251
257
  readonly auditLog: "org.auditLog";
252
258
  readonly confirmBootstrap: "org.confirmBootstrap";
253
259
  readonly createOrg: "org.createOrg";
254
260
  readonly create: "org.create";
255
- readonly detectAndAcceptPendingInvitations: "org.detectAndAcceptPendingInvitations";
261
+ /**
262
+ * §11: the consent mutation reports `org_invite_accepted` through its own
263
+ * scheduled emitter. It is named for the emit, not the acceptance, because
264
+ * the interactive acceptance itself owns `org.invitations.accept`.
265
+ */
266
+ readonly emitInviteAccepted: "org.emitInviteAccepted";
256
267
  readonly emitInviteProgressed: "org.emitInviteProgressed";
257
268
  readonly expireInvitations: "org.expireInvitations";
258
269
  readonly getLifecycle: "org.getLifecycle";
259
270
  readonly getProofReceipt: "org.getProofReceipt";
260
271
  readonly invite: "org.invite";
261
- readonly inviteMember: "org.inviteMember";
272
+ /** D8 invitation lifecycle: preview, own list, read, and the four transitions. */
273
+ readonly invitations: {
274
+ /** The exact grantee's consent commit (§8): one accepted digest, once. */
275
+ readonly accept: "org.invitations.accept";
276
+ /**
277
+ * The authoring write. It is named `authorize`, not `invite`, because the
278
+ * backend already uses `org.invitations.invite` as a refusal label and
279
+ * `lint:telemetry-spine` refuses a label that collides with an operation.
280
+ */
281
+ readonly authorize: "org.invitations.authorize";
282
+ readonly cancel: "org.invitations.cancel";
283
+ readonly decline: "org.invitations.decline";
284
+ readonly get: "org.invitations.get";
285
+ readonly list: "org.invitations.list";
286
+ /**
287
+ * The Admin-scoped Organization list. It is named `listScoped`, not
288
+ * `list`, because the own-offer list already owns `org.invitations.list`.
289
+ */
290
+ readonly listScoped: "org.invitations.listScoped";
291
+ /**
292
+ * The authoring write's inner hops: the SDK drives the backend's existing
293
+ * prepare/submit pair, and these names label the two Convex calls. The
294
+ * owning `capxul_sdk_operation` record stays `org.invitations.authorize`.
295
+ */
296
+ readonly prepareConfiguration: "org.invitations.prepareConfiguration";
297
+ readonly preview: "org.invitations.preview";
298
+ readonly resend: "org.invitations.resend";
299
+ readonly retry: "org.invitations.retry";
300
+ readonly submitConfiguration: "org.invitations.submitConfiguration";
301
+ };
262
302
  readonly list: "org.list";
263
303
  readonly load: "org.load";
264
304
  readonly me: "org.me";
@@ -319,7 +359,6 @@ declare const CAPXUL_OPERATIONS: {
319
359
  };
320
360
  readonly recordFailure: "org.recordFailure";
321
361
  readonly recordProgress: "org.recordProgress";
322
- readonly resendInviteToken: "org.resendInviteToken";
323
362
  readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
324
363
  readonly retry: "org.retry";
325
364
  readonly retrySetup: "org.retrySetup";
@@ -340,9 +379,6 @@ declare const CAPXUL_OPERATIONS: {
340
379
  readonly organizationSetup: {
341
380
  readonly getProofReceipt: "organizationSetup.getProofReceipt";
342
381
  };
343
- readonly organizations: {
344
- readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
345
- };
346
382
  readonly payments: {
347
383
  readonly cancel: "payments.cancel";
348
384
  readonly claim: "payments.claim";
@@ -359,6 +395,7 @@ declare const CAPXUL_OPERATIONS: {
359
395
  readonly submitExecution: "payments.submitExecution";
360
396
  };
361
397
  readonly paymentDocuments: {
398
+ readonly get: "paymentDocuments.get";
362
399
  readonly render: "paymentDocuments.render";
363
400
  readonly verify: "paymentDocuments.verify";
364
401
  };
@@ -381,6 +418,7 @@ declare const CAPXUL_OPERATIONS: {
381
418
  readonly terms: "payroll.terms";
382
419
  };
383
420
  readonly permission: {
421
+ readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
384
422
  readonly command: "permission.command";
385
423
  readonly retryVerification: "permission.retryVerification";
386
424
  readonly verify: "permission.verify";
@@ -515,10 +553,13 @@ declare function isMoneyParseError(value: AssetAmount | Money | MoneyParseError)
515
553
  declare function parseMoney(input: string, asset: Pick<Money, "currency" | "decimals">): Money | MoneyParseError;
516
554
  //#endregion
517
555
  //#region src/domain/money/asset-amount.d.ts
556
+ /** Exact scaling. This rejects excess precision instead of rounding it. */
557
+ declare function toRaw(amount: AssetAmount, asset: AssetMetadata): bigint;
518
558
  declare function parseAssetAmount(input: string, asset: AssetMetadata): AssetAmount | MoneyParseError;
519
559
  /** Display the full quantity. Only fiat formatting rounds for display. */
520
560
  declare function formatAssetAmount(amount: AssetAmount): string;
521
561
  declare function assetSymbolFor(asset: AssetId): string;
562
+ declare function requireAsset(id: AssetId): AssetMetadata;
522
563
  //#endregion
523
564
  //#region src/domain/money/valuation.d.ts
524
565
  interface Rate {
@@ -528,14 +569,21 @@ interface Rate {
528
569
  }
529
570
  /** Fiat balances use their currency directly, never an invented token identity. */
530
571
  type RateSource = (source: AssetMetadata | CurrencyCode, into: CurrencyCode) => Rate | null;
531
- declare const PEG_RATES: RateSource;
532
572
  interface Valuation<T extends AssetAmount | Money = AssetAmount | Money> {
533
573
  readonly total: Money | null;
534
574
  readonly counted: readonly T[];
535
575
  readonly unrated: readonly T[];
536
576
  }
537
577
  /** Sum exact fixed-point values. Missing rates never contribute zero. */
538
- declare function valueIn<T extends AssetAmount | Money>(amounts: readonly T[], displayCurrency: CurrencyCode, rates?: RateSource): Valuation<T>;
578
+ declare function valueIn<T extends AssetAmount | Money>(amounts: readonly T[], displayCurrency: CurrencyCode, rates: RateSource): Valuation<T>;
579
+ /** Value all Activity buckets. Compute net before display rounding. */
580
+ declare function valueActivitySummary(totals: readonly ActivitySummaryTotal[], displayCurrency?: CurrencyCode, rates?: RateSource): {
581
+ moneyIn: Money | null;
582
+ moneyOut: Money | null;
583
+ pending: Money | null;
584
+ net: Money | null;
585
+ unrated: ActivitySummaryTotal[];
586
+ };
539
587
  //#endregion
540
588
  //#region src/domain/money/account-positions.d.ts
541
589
  /**
@@ -683,4 +731,4 @@ declare function captureException(telemetry: TelemetryPort, error: unknown, cont
683
731
  */
684
732
  declare function captureExceptionSync(telemetry: TelemetryPort, error: unknown, context?: HandledErrorReportContext): void;
685
733
  //#endregion
686
- 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 AssetAmount, type AssetId, type AssetMetadata, type AuthMethods, type AuthSession, type AuthUserId, type AuthorizeRunInput, type AuthorizeRunOptions, type Budget, type BudgetId, 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 ClientRequestView, type ClientRequests, type CompleteProfileInput, type CompletedPersonProfile, type CountryCode, type CreateCapxulClientInput, type CreateOrgInput, type CurrentHoldings, type CurrentUserContext, type CurrentUserMethods, type DepositInstructions, type Destination, type DestinationAddInput, type DestinationKind, type DestinationListInput, type DestinationPayload, type DestinationRail, type DestinationRemoveInput, type DestinationsMethods, type DetectPendingOrgInvitationsResult, type DevPrivateKeySignerInput, EVM_ADDRESS_RE, type Eip1193Provider, type Eip1193RequestProvider, Errors, FAILURE_MODES, type FailureMode, type FinancialOpsMethods, HANDLE_RE, type Handle, type HandledErrorReportContext, type Holding, type HoldingsMethods, type HostObservability, type Destination$1 as IdentityDestination, type IdentityEvent, type IdentityMethods, type IdentityProfileDetails, type IdentityRuntime, type IdentityRuntimeSendResult, type IdentityState, type IdentityTransition, type InboxApproveInput, type InboxItem, type InboxMethods, type InviteMemberInput, type InvocationControls, type MeMethods, type MeProfile, type MediaMethods, type MemberStatus, type MemberView, type Money, type MoneyParseError, type MoneyParseErrorReason, type MovementActivityEvidence, type NormalizedCapxulOperation, type ObservationAdapter, type ObservationContext, type ObservationDelivery, type OfframpMethods, type OfframpQuote, type OfframpQuoteInput, type OfframpStatus, type OnboardingMethods, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OrgId, type OrgLane, type OrgLifecycle, type OrgMe, type OrgMeMethod, type OrgMeOptions, type OrgMethods, type OrgScopedMethods, type OrgSetupStep, type OrgTemplate, type OrgView, type OrganizationAccount, type OrganizationAuditLogItem, type OrganizationOnboarding, type OrganizationOnboardingInput, type OrganizationPaymentBatchInput, type OrganizationPaymentInput, type OrganizationPaymentItemInput, type OrganizationPaymentsMethods, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, PEG_RATES, type PartyId, type Payment, type PaymentActivityEvidence, type PaymentDirection, type PaymentDocumentKind, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentMoney, type PaymentStatus, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PayoutAddress, type PayrollEngagementTerms, type PayrollGroup, type PayrollGroupId, type PayrollGroupInput, type PayrollGroupMember, type PayrollGroupsMethods, type PayrollMethods, type PayrollOptions, type PayrollRun, type PayrollRunId, type PayrollRunItemInput, type PayrollRunStatus, type PayrollRuns, type PayrollTermsUnit, type Permission, type PermissionAssignInput, type PermissionChangeInput, type PermissionCreateInput, type PermissionMethods, type PermissionOptions, type PermissionReadResult, type PermissionReplaceInput, type PermissionRevokeInput, type PersonOnboarding, type PersonOnboardingInput, type PostHogObservabilityClient, type PostHogObservabilityOptions, type Profile, type Rate, type RateSource, type Readiness, type ReadyAccountLifecycle, type RecipientResolution, type Ref, type ResendInviteTokenInput, type ResolvedTarget, type RevertSummary, type RoleDefinition, type RoleKey, type RoleSpendCap, type RoleView, type SdkFailureObservation, type Session, type SignerStatus, type SignerStatusStore, type SmartAccount, type SmartAccountMethods, type StateLabel, type SubmittedPermissionExecution, type SystemHealth, type SystemMethods, type TargetReference, type TargetsMethods, type TelemetryPort, type TesterKind, type Valuation, assetSymbolFor, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, destination as resolveIdentityDestination, toCountryCode, toAddress as toEvmAddress, toHandle, toPartyId, valueIn };
734
+ 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 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 ClientRequestView, type ClientRequests, type CompleteProfileInput, type CompletedPersonProfile, type CountryCode, type CreateCapxulClientInput, type CreateOrgInput, 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, type Eip1193Provider, type Eip1193RequestProvider, type EndingReason, Errors, FAILURE_MODES, type FailureMode, type FinancialOpsMethods, type GranteeRef, HANDLE_RE, type Handle, type HandledErrorReportContext, type HoldingsMethods, type HostObservability, type Destination$1 as IdentityDestination, type IdentityEvent, type IdentityMethods, type IdentityProfileDetails, type IdentityRuntime, type IdentityRuntimeSendResult, type IdentityState, type IdentityTransition, type InboxApproveInput, type InboxItem, type InboxMethods, type InvitationAcceptInput, type InvitationId, type InvitationPage, type InvitationPageInput, type InvitationPhase, type InvitationRecovery, type InvitationTarget, type InvitationView, type InviteGrant, type InviteInput, type InviteMethod, type InviteOptions, type InvitePrepared, type InvitePreview, type InvitePreviewInput, type InvocationControls, type MeMethods, type MeProfile, type MediaMethods, type MemberIdentityProjection, type MemberStatus, type MemberView, type Money, type MoneyParseError, type MoneyParseErrorReason, type MovementActivityEvidence, type NormalizedCapxulOperation, type ObservationAdapter, type ObservationContext, type ObservationDelivery, type OfferedAuthority, type OfframpMethods, type OfframpQuote, type OfframpQuoteInput, type OfframpStatus, type OnboardingMethods, type OpenfortBrowserAuth, type OpenfortBrowserSigner, type OpenfortBrowserSignerBootstrap, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OrgId, type OrgInvitations, type OrgLane, type OrgLifecycle, type OrgMe, type OrgMeMethod, type OrgMeOptions, type OrgMethods, type OrgScopedMethods, type OrgSetupStep, type OrgTemplate, type OrgView, type OrganizationAccess, type OrganizationAccount, type OrganizationAuditLogItem, type OrganizationOnboarding, type OrganizationOnboardingInput, type OrganizationOnboardingOptions, type OrganizationOnboardingState, type OrganizationPaymentBatchInput, type OrganizationPaymentInput, type OrganizationPaymentItemInput, type OrganizationPaymentsMethods, type OwnInvitationsMethod, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, type PartyId, type Payment, type PaymentActivityEvidence, type PaymentDirection, type PaymentDocumentDownload, type PaymentDocumentKind, type PaymentDocumentReadRef, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentMoney, type PaymentStatus, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PayoutAddress, type PayrollEngagementTerms, type PayrollGroup, type PayrollGroupId, type PayrollGroupInput, type PayrollGroupMember, type PayrollGroupsMethods, type PayrollMethods, type PayrollOptions, type PayrollRun, type PayrollRunId, type PayrollRunItemInput, type PayrollRunStatus, type PayrollRuns, type PayrollTermsUnit, type Permission, type PermissionAssignInput, type PermissionChangeInput, type PermissionCreateInput, type PermissionId, type PermissionMethods, type PermissionOptions, type PermissionReadResult, type PermissionReplaceInput, type PermissionRevokeInput, type PersonOnboarding, type PersonOnboardingInput, type PostHogObservabilityClient, type PostHogObservabilityOptions, type Profile, type Rate, type RateSource, type Readiness, type ReadyAccountLifecycle, type RecipientResolution, type Ref, type ResolvedTarget, type RevertSummary, type RoleDefinition, type RoleKey, type RoleView, type SdkFailureObservation, type Session, type SignerStatus, type SignerStatusStore, type SmartAccount, type SmartAccountMethods, type SpendingScope, type StateLabel, type SubmittedPermissionExecution, type SystemHealth, type SystemMethods, TOKENS, type TargetReference, type TargetsMethods, type TelemetryPort, type TesterKind, type Valuation, assetSymbolFor, captureException, captureExceptionSync, createCapxulClient, createOpenfortBrowserSigner, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, requireAsset, destination as resolveIdentityDestination, toAccountId, toBudgetId, toCountryCode, toAddress as toEvmAddress, toHandle, toOrgId, toPartyId, toPermissionId, toRaw, valueActivitySummary, valueIn };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { A as resolveFailureMode, B as valueIn, C as normalizeExceptionErrorKind, D as isSettingUpLifecycle, E as safeExceptionLabel, F as isCapxulOperation, G as isMoneyParseError, H as assetSymbolFor, I as normalizeCapxulOperation, J as isClaimed, K as parseMoney, M as PAYMENT_STATUSES, O as injectedWalletSigner, P as CAPXUL_OPERATIONS, R as positionPeg, S as SDK_VERSION, T as projectSdkException, U as formatAssetAmount, W as parseAssetAmount, Y as isRestoring, _ as fingerprintPaymentIntent, b as failureDetail, d as embeddedSigner, f as openfortEmbeddedSigner, g as devPrivateKeySigner, h as deriveDevPrivateKey, j as PAYMENT_DIRECTIONS, k as signerFailure, m as openfortEmbeddedWalletPort, p as openfortEmbeddedSignerFromWallet, q as destination, r as postHogObservability, t as createCapxulClient$1, w as normalizeExceptionOperation, x as EXCEPTION_MESSAGE, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as PEG_RATES } from "./production-q0kwUWcj.mjs";
2
- import { A as EVM_ADDRESS_RE, F as currencySymbolFor, G as toCurrencyCode, L as toAddress, W as toCountryCode, X as toHandle, _t as CHAIN_UPSTREAMS, et as toPartyId, ft as CAPXUL_ERROR_CODES, g as CAPXUL_PAYMENTS_V2_ADDRESS, gt as isCapxulError, ht as Errors, pt as CapxulError, ut as HANDLE_RE, vt as FAILURE_MODES } from "./OAuthBearerAuthClient-BqQz-bnO.mjs";
1
+ import { A as resolveFailureMode, B as valueIn, C as normalizeExceptionErrorKind, D as isSettingUpLifecycle, E as safeExceptionLabel, F as isCapxulOperation, G as requireAsset, H as assetSymbolFor, I as normalizeCapxulOperation, J as parseMoney, K as toRaw, M as PAYMENT_STATUSES, O as injectedWalletSigner, P as CAPXUL_OPERATIONS, R as positionPeg, S as SDK_VERSION, T as projectSdkException, U as formatAssetAmount, W as parseAssetAmount, X as isClaimed, Y as destination, Z as isRestoring, _ as openfortEmbeddedWalletPort, b as failureDetail, d as deriveDevPrivateKey, f as devPrivateKeySigner, g as openfortEmbeddedSignerFromWallet, h as openfortEmbeddedSigner, j as PAYMENT_DIRECTIONS, k as signerFailure, m as embeddedSigner, p as createOpenfortBrowserSigner, q as isMoneyParseError, r as postHogObservability, t as createCapxulClient$1, v as fingerprintPaymentIntent, w as normalizeExceptionOperation, x as EXCEPTION_MESSAGE, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as valueActivitySummary } from "./production-B63Xm_fl.mjs";
2
+ import { G as toCountryCode, I as currencySymbolFor, K as toCurrencyCode, L as toAccountId, R as toAddress, U as toBudgetId, Z as toHandle, at as toPermissionId, bt as CHAIN_UPSTREAMS, et as toOrgId, gt as CapxulError, ht as CAPXUL_ERROR_CODES, j as EVM_ADDRESS_RE, m as CAPXUL_PAYMENTS_V2_ADDRESS, pt as HANDLE_RE, tt as toPartyId, vt as Errors, x as TOKENS, xt as FAILURE_MODES, yt as isCapxulError } from "./OAuthBearerAuthClient-DdKYPHE0.mjs";
3
3
  import { Effect } from "effect";
4
4
  import { privateKeyToAccount } from "viem/accounts";
5
5
  //#region src/domain/activity/phase.ts
@@ -348,4 +348,4 @@ function captureExceptionSync(telemetry, error, context) {
348
348
  } catch {}
349
349
  }
350
350
  //#endregion
351
- export { CAPXUL_ERROR_CODES, CAPXUL_OPERATIONS, CAPXUL_PAYMENTS_V2_ADDRESS, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, CHAIN_UPSTREAMS, CapxulError, EVM_ADDRESS_RE, Errors, FAILURE_MODES, HANDLE_RE, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, PEG_RATES, assetSymbolFor, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, destination as resolveIdentityDestination, toCountryCode, toAddress as toEvmAddress, toHandle, toPartyId, valueIn };
351
+ export { CAPXUL_ERROR_CODES, CAPXUL_OPERATIONS, CAPXUL_PAYMENTS_V2_ADDRESS, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, CHAIN_UPSTREAMS, CapxulError, EVM_ADDRESS_RE, Errors, FAILURE_MODES, HANDLE_RE, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, TOKENS, assetSymbolFor, captureException, captureExceptionSync, createCapxulClient, createOpenfortBrowserSigner, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, requireAsset, destination as resolveIdentityDestination, toAccountId, toBudgetId, toCountryCode, toAddress as toEvmAddress, toHandle, toOrgId, toPartyId, toPermissionId, toRaw, valueActivitySummary, valueIn };
@@ -1,4 +1,4 @@
1
- import { C as AuthCachePort, L as AuthSession, S as AuthCacheError, T as CachedJwt, i as CapxulSigner, n as oauthBearerAuthClient, t as OAuthBearerAuthClientInput, w as AuthCachePortTag } from "../OAuthBearerAuthClient-BAxoi3SD.mjs";
1
+ import { C as AuthCachePort, L as AuthSession, S as AuthCacheError, T as CachedJwt, i as CapxulSigner, n as oauthBearerAuthClient, t as OAuthBearerAuthClientInput, w as AuthCachePortTag } from "../OAuthBearerAuthClient-DOPDDSPs.mjs";
2
2
  import { Hex } from "viem";
3
3
  import { Effect, FileSystem, Layer, Path } from "effect";
4
4
  //#region src/adapters/auth-cache/FileSystemAuthCacheAdapter.d.ts
@@ -1,4 +1,4 @@
1
- import { L as toAddress, a as parseAuthSession, c as AuthCachePortTag, i as BrowserAuthCacheAdapter, o as parseCachedJwt, r as InMemoryAuthCacheAdapter, s as AuthCacheError, t as oauthBearerAuthClient } from "../OAuthBearerAuthClient-BqQz-bnO.mjs";
1
+ import { R as toAddress, a as parseAuthSession, c as AuthCachePortTag, i as BrowserAuthCacheAdapter, o as parseCachedJwt, r as InMemoryAuthCacheAdapter, s as AuthCacheError, t as oauthBearerAuthClient } from "../OAuthBearerAuthClient-DdKYPHE0.mjs";
2
2
  import { Effect, FileSystem, Layer, Path } from "effect";
3
3
  import { privateKeyToAccount } from "viem/accounts";
4
4
  import * as os from "node:os";