@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/README.md +57 -26
- package/dist/{OAuthBearerAuthClient-BAxoi3SD.d.mts → OAuthBearerAuthClient-DOPDDSPs.d.mts} +9 -4
- package/dist/{OAuthBearerAuthClient-BqQz-bnO.mjs → OAuthBearerAuthClient-DdKYPHE0.mjs} +94 -102
- package/dist/index.d.mts +65 -17
- package/dist/index.mjs +3 -3
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{production-q0kwUWcj.mjs → production-B63Xm_fl.mjs} +3588 -2153
- package/dist/{production-DAhaxUik.d.mts → production-UMTDZSTH.d.mts} +804 -177
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +6 -6
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as OrgId, A as Address, At as
|
|
2
|
-
import { $ as
|
|
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.
|
|
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"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
2
|
-
import {
|
|
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,
|
|
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 };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -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-
|
|
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
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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";
|