@capxul/sdk 3.2.0 → 4.0.0
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 +2 -2
- package/dist/{OAuthBearerAuthClient-8F_kyVP5.mjs → OAuthBearerAuthClient-BHvDR8_0.mjs} +1 -1
- package/dist/{OAuthBearerAuthClient-CsOgeeZa.d.mts → OAuthBearerAuthClient-D-DLYlKj.d.mts} +1 -1
- package/dist/{clock-CWpcQlLy.mjs → clock-C2AUlq1V.mjs} +34 -1
- package/dist/{create-capxul-client-BCq08ppe.mjs → create-capxul-client-DyCEJZtD.mjs} +700 -351
- package/dist/index.d.mts +17 -20
- package/dist/index.mjs +18 -8
- package/dist/node/index.d.mts +2 -2
- package/dist/node/index.mjs +2 -2
- package/dist/{observation-B76zFxd6.d.mts → observation-DtzTdv20.d.mts} +75 -71
- package/dist/{signer-DOqb8M1Y.d.mts → signer-C0hZ6Kiy.d.mts} +9 -2
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +6 -6
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { E as Address,
|
|
2
|
-
import { $ as OrganizationPaymentsMethods, $t as
|
|
3
|
-
import "./OAuthBearerAuthClient-
|
|
1
|
+
import { B as EVM_ADDRESS_RE, Ct as RevertSummary, E as Address, G as OrgId, I as CountryCode, J as PayrollGroupId, K as PartyId, M as AuthUserId, P as BudgetId, St as FailureMode, T as AccountId, U as Handle, W as Money, Y as PayrollRunId, _t as isCapxulError, a as SignerStatusStore, bt as ChainUpstream, c as AccountProviderSource, ct as toHandle, d as eip1193AccountProvider, dt as CAPXUL_ERROR_CODES, et as RoleKey, f as localPrivateKeyAccountProvider, ft as CapxulError, g as SmartAccount, h as Session, ht as Errors, i as SignerStatus, j as AuthSession, l as AccountRequirement, lt as toPartyId, m as Profile, mt as CapxulErrorDetails, n as CapxulSigner, o as injectedWalletSigner, ot as toAddress, p as CapxulResult, pt as CapxulErrorCode, r as Eip1193RequestProvider, rt as TesterKind, s as AccountProvider, st as toCountryCode, t as CapxulDigestSigner, u as Eip1193Provider, ut as CAPXUL_PAYMENTS_V2_ADDRESS, vt as CHAIN_UPSTREAMS, w as Account, xt as FAILURE_MODES, yt as ChainCause } from "./signer-C0hZ6Kiy.mjs";
|
|
2
|
+
import { $ as OrganizationPaymentsMethods, $n as TelemetryPort, $t as DestinationListInput, A as OrgView, An as TargetsMethods, At as AddressBookMethods, B as PayrollGroupInput, Bn as OrgSetupStep, Bt as ActivityListParams, C as DetectPendingOrgInvitationsResult, Cn as PaymentType, Ct as ActorRelationshipMethods, D as OrgMethods, Dn as Ref, Dt as AddressBookAddInput, E as MemberView, En as RecipientResolution, Et as ActorRequestsMethods, F as RoleSpendCap, Fn as CompleteProfileInput, Ft as ActivityAnnotationInput, G as PayrollRun, Gn as InboxStatus, Gt as ActivitySummary, H as PayrollGroupsMethods, Hn as CurrentHoldings, Ht as ActivityPage, I as RoleView, In as IdentityMethods, It as ActivityDetail, J as PayrollRuns, Jn as PaymentStatus$1, Jt as ActorReference, K as PayrollRunItemInput, Kn as PAYMENT_DIRECTIONS, Kt as ActivitySummaryParams, L as AuthorizeRunInput, Ln as SmartAccountMethods, Lt as ActivityFilter, M as OrganizationAuditLogItem, Mn as AccountLifecycle, Mt as InboxItem, N as ResendInviteTokenInput, Nn as AccountSetupStep, Nt as InboxMethods, O as OrgScopedMethods, On as ResolvedTarget, Ot as AddressBookEntry, P as RoleDefinition, Pn as isSettingUpLifecycle, Pt as ActivityAnnotation, Q as OrganizationPaymentItemInput, Qt as DestinationKind, R as PayrollEngagementTerms, Rn as AuthMethods, Rt as ActivityItem, S as CreateOrgInput, Sn as PaymentTiming, St as ActorProfileMethods, T as MemberStatus, Tn as PaymentsPayInput, Tt as ActorRequestIssueInput, U as PayrollMethods, Un as Permission, Ut as ActivityRange, V as PayrollGroupMember, Vn as ActorRef, Vt as ActivityMethods, W as PayrollOptions, Wn as SubmittedPermissionExecution, Wt as ActivityReference, X as OrganizationPaymentBatchInput, Xt as Destination, Y as PayrollTermsUnit, Yn as RequestStatus, Yt as DepositInstructions, Z as OrganizationPaymentInput, Zt as DestinationAddInput, _ as SystemMethods, _n as PaymentDocumentRender, _t as PersonOnboarding, a as SdkFailureObservation, an as MeMethods, ar as StateLabel, at as PermissionReplaceInput, b as CurrentUserContext, bn as PaymentMoney, bt as AccountMethods, c as PostHogObservabilityOptions, cn as OfframpMethods, cr as isRestoring, ct as Budget, d as CreateCapxulClientInput, dn as OfframpStatus, dt as OrgMeOptions, en as DestinationPayload, er as Destination$1, et as PermissionAssignInput, f as IdentityProfileDetails, fn as Payment, ft as AccountsMethods, g as Holding, gn as PaymentDocumentRef, gt as OrganizationOnboardingInput, h as HoldingsMethods, hn as PaymentDocumentKind, ht as OrganizationOnboarding, i as ObservationDelivery, in as FinancialOpsMethods, ir as Readiness, it as PermissionOptions, j as OrganizationAccount, jn as fingerprintPaymentIntent, jt as InboxApproveInput, k as OrgTemplate, kn as TargetReference, kt as AddressBookLabelInput, l as postHogObservability, ln as OfframpQuote, lr as IdentityTransition, lt as OrgMe, m as IdentityRuntimeSendResult, mn as PaymentDirection, mt as OnboardingMethods, n as ObservationAdapter, nn as DestinationRemoveInput, nr as IdentityState, nt as PermissionCreateInput, o as HostObservability, on as MeProfile, or as destination, ot as PermissionRevokeInput, p as IdentityRuntime, pn as PaymentActivityEvidence, pt as CompletedPersonProfile, q as PayrollRunStatus, qn as PAYMENT_STATUSES, qt as ActivitySummaryTotal, r as ObservationContext, rn as DestinationsMethods, rr as OrgLane, rt as PermissionMethods, s as PostHogObservabilityClient, sn as MovementActivityEvidence, sr as isClaimed, st as PermissionReadResult, t as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, tn as DestinationRail, tr as IdentityEvent, tt as PermissionChangeInput, u as CapxulClient, un as OfframpQuoteInput, ur as InvocationControls, ut as OrgMeMethod, v as SystemHealth, vn as PaymentDocumentVerification, vt as PersonOnboardingInput, w as InviteMemberInput, wn as PaymentsMethods, wt as ActorRequest, x as CurrentUserMethods, xn as PaymentStatus, xt as ActorProfile, y as MediaMethods, yn as PaymentDocumentsMethods, yt as ReadyAccountLifecycle, z as PayrollGroup, zn as OrgLifecycle, zt as ActivityKind } from "./observation-DtzTdv20.mjs";
|
|
3
|
+
import "./OAuthBearerAuthClient-D-DLYlKj.mjs";
|
|
4
4
|
import { Context, Effect, Layer } from "effect";
|
|
5
5
|
import { Hex } from "viem";
|
|
6
6
|
import { FunctionReference } from "convex/server";
|
|
7
|
+
//#region ../errors/src/index.d.ts
|
|
8
|
+
/** Canonical handle syntax shared by validation and branded constructors. */
|
|
9
|
+
declare const HANDLE_RE: RegExp;
|
|
10
|
+
//#endregion
|
|
7
11
|
//#region ../observability/src/operations.d.ts
|
|
8
12
|
declare const CAPXUL_OPERATIONS: {
|
|
9
13
|
readonly account: {
|
|
@@ -107,9 +111,6 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
107
111
|
readonly current: "holdings.current";
|
|
108
112
|
readonly primary: "holdings.primary";
|
|
109
113
|
};
|
|
110
|
-
readonly handles: {
|
|
111
|
-
readonly resolve: "handles.resolve";
|
|
112
|
-
};
|
|
113
114
|
readonly identity: {
|
|
114
115
|
readonly accountAt: "identity.AccountAt";
|
|
115
116
|
readonly accountClaimed: "identity.AccountClaimed";
|
|
@@ -145,7 +146,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
145
146
|
readonly signOut: "identity.SignOut";
|
|
146
147
|
readonly signOutFailed: "identity.SignOutFailed";
|
|
147
148
|
readonly update: "identity.update";
|
|
148
|
-
readonly
|
|
149
|
+
readonly handleAvailable: "identity.handleAvailable";
|
|
149
150
|
readonly verified: "identity.Verified";
|
|
150
151
|
readonly verifyFailed: "identity.VerifyFailed";
|
|
151
152
|
readonly verifyOtp: "identity.VerifyOtp";
|
|
@@ -161,10 +162,12 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
161
162
|
readonly get: "me.get";
|
|
162
163
|
};
|
|
163
164
|
readonly moneyExecution: {
|
|
165
|
+
readonly abandonPaymentExecution: "moneyExecution.abandonPaymentExecution";
|
|
164
166
|
readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
|
|
165
167
|
readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
|
|
166
168
|
readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
|
|
167
169
|
readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
|
|
170
|
+
readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
|
|
168
171
|
readonly submit: "moneyExecution.submit";
|
|
169
172
|
readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
|
|
170
173
|
readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
|
|
@@ -184,12 +187,15 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
184
187
|
readonly status: "offramp.status";
|
|
185
188
|
};
|
|
186
189
|
readonly onboarding: {
|
|
190
|
+
readonly completeOrganization: "onboarding.completeOrganization";
|
|
187
191
|
readonly completePerson: "onboarding.completePerson";
|
|
188
192
|
};
|
|
189
193
|
readonly org: {
|
|
194
|
+
readonly acceptInvitations: "org.acceptInvitations";
|
|
190
195
|
readonly account: {
|
|
191
196
|
readonly get: "org.account.get";
|
|
192
197
|
};
|
|
198
|
+
readonly activateMember: "org.activateMember";
|
|
193
199
|
readonly auditLog: "org.auditLog";
|
|
194
200
|
readonly confirmBootstrap: "org.confirmBootstrap";
|
|
195
201
|
readonly createOrg: "org.createOrg";
|
|
@@ -200,6 +206,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
200
206
|
readonly getProofReceipt: "org.getProofReceipt";
|
|
201
207
|
readonly invite: "org.invite";
|
|
202
208
|
readonly inviteMember: "org.inviteMember";
|
|
209
|
+
readonly list: "org.list";
|
|
203
210
|
readonly load: "org.load";
|
|
204
211
|
readonly me: "org.me";
|
|
205
212
|
readonly members: "org.members";
|
|
@@ -300,10 +307,8 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
300
307
|
readonly render: "paymentDocuments.render";
|
|
301
308
|
readonly verify: "paymentDocuments.verify";
|
|
302
309
|
};
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
305
|
-
readonly get: "payees.get";
|
|
306
|
-
readonly resolve: "payees.resolve";
|
|
310
|
+
readonly recipient: {
|
|
311
|
+
readonly resolve: "recipient.resolve";
|
|
307
312
|
};
|
|
308
313
|
readonly payroll: {
|
|
309
314
|
readonly authorizeRun: "payroll.authorizeRun";
|
|
@@ -386,14 +391,6 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
386
391
|
readonly ping: "system.ping";
|
|
387
392
|
readonly runtimeChain: "system.runtimeChain";
|
|
388
393
|
};
|
|
389
|
-
readonly targets: {
|
|
390
|
-
readonly resolve: {
|
|
391
|
-
readonly email: "targets.resolve.email";
|
|
392
|
-
readonly handle: "targets.resolve.handle";
|
|
393
|
-
readonly organization: "targets.resolve.organization";
|
|
394
|
-
readonly payee: "targets.resolve.payee";
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
394
|
readonly testUsdc: {
|
|
398
395
|
readonly mint: "TestUSDC.mint";
|
|
399
396
|
};
|
|
@@ -623,4 +620,4 @@ declare function captureException(telemetry: TelemetryPort, error: unknown, cont
|
|
|
623
620
|
*/
|
|
624
621
|
declare function captureExceptionSync(telemetry: TelemetryPort, error: unknown, context?: HandledErrorReportContext): void;
|
|
625
622
|
//#endregion
|
|
626
|
-
export { type Account, type AccountId, type AccountLifecycle, type AccountMethods, type AccountProvider, type AccountProviderSource, type AccountRequirement, 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 AuthMethods, type AuthSession, type AuthUserId, type AuthorizeRunInput, 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 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, type Eip1193Provider, type Eip1193RequestProvider, Errors, FAILURE_MODES, type FailureMode, type FinancialOpsMethods, type
|
|
623
|
+
export { type Account, type AccountId, type AccountLifecycle, type AccountMethods, type AccountProvider, type AccountProviderSource, type AccountRequirement, 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 AuthMethods, type AuthSession, type AuthUserId, type AuthorizeRunInput, 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 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, 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 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 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, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseMoney, paymentPhase, postHogObservability, requestPhase, destination as resolveIdentityDestination, toCountryCode, toAddress as toEvmAddress, toHandle, toPartyId };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as stampTelemetryEnvelope, A as safeExceptionLabel, B as resolveFailureMode, C as observeFailedResult, D as normalizeExceptionErrorKind, E as SDK_VERSION$1, F as causeChain, G as sanitizeObservationContext, H as readInvocationObservation, I as injectedWalletSigner, J as CAPXUL_FUNCTIONS, K as PAYMENT_DIRECTIONS, L as isSignerNotReadySignal, M as fromWei, N as isSettingUpLifecycle, O as normalizeExceptionOperation, P as formatTraceparent, Q as redactTelemetryProps, R as openfortSignerNotReadyCode, S as observationContextProps, T as EXCEPTION_MESSAGE, U as OBSERVATION_CONTEXT_HEADER, V as copyInvocationObservation, W as encodeObservationContextHeader, X as EngineeringTelemetryBootstrapPolicy, Y as BootstrapEnvelope, _ as fingerprintPaymentIntent, a as AccountReadPortTag, at as isRestoring, b as failureDetail, c as retryIdempotentRead, d as IdentityPortTag, et as CAPXUL_OPERATIONS, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, h as BootstrapPortTag, i as smartAccountErrorFromCapxul, it as isClaimed, j as version, k as projectSdkException, l as PRODUCT_INVOCATION, m as convexCallErrorFromCapxul, n as detectAuthCacheAdapter, nt as normalizeCapxulOperation, o as accountReadErrorFromCapxul, p as ConvexCallPortTag, q as PAYMENT_STATUSES, r as SmartAccountPortTag, rt as destination, s as TelemetryPortTag, t as assembleCapxulClient, tt as isCapxulOperation, u as wireChainId, v as toWei, w as postHogFailureObservation, x as failureEvidenceProps, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as signerFailure } from "./create-capxul-client-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { n as SystemClockLayer } from "./OAuthBearerAuthClient-
|
|
1
|
+
import { $ as stampTelemetryEnvelope, A as safeExceptionLabel, B as resolveFailureMode, C as observeFailedResult, D as normalizeExceptionErrorKind, E as SDK_VERSION$1, F as causeChain, G as sanitizeObservationContext, H as readInvocationObservation, I as injectedWalletSigner, J as CAPXUL_FUNCTIONS, K as PAYMENT_DIRECTIONS, L as isSignerNotReadySignal, M as fromWei, N as isSettingUpLifecycle, O as normalizeExceptionOperation, P as formatTraceparent, Q as redactTelemetryProps, R as openfortSignerNotReadyCode, S as observationContextProps, T as EXCEPTION_MESSAGE, U as OBSERVATION_CONTEXT_HEADER, V as copyInvocationObservation, W as encodeObservationContextHeader, X as EngineeringTelemetryBootstrapPolicy, Y as BootstrapEnvelope, _ as fingerprintPaymentIntent, a as AccountReadPortTag, at as isRestoring, b as failureDetail, c as retryIdempotentRead, d as IdentityPortTag, et as CAPXUL_OPERATIONS, f as identityErrorFromCapxul, g as bootstrapErrorFromCapxul, h as BootstrapPortTag, i as smartAccountErrorFromCapxul, it as isClaimed, j as version, k as projectSdkException, l as PRODUCT_INVOCATION, m as convexCallErrorFromCapxul, n as detectAuthCacheAdapter, nt as normalizeCapxulOperation, o as accountReadErrorFromCapxul, p as ConvexCallPortTag, q as PAYMENT_STATUSES, r as SmartAccountPortTag, rt as destination, s as TelemetryPortTag, t as assembleCapxulClient, tt as isCapxulOperation, u as wireChainId, v as toWei, w as postHogFailureObservation, x as failureEvidenceProps, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as signerFailure } from "./create-capxul-client-DyCEJZtD.mjs";
|
|
2
|
+
import { $ as CapxulError, A as toAuthUserId, B as toJwtToken, D as toAddress, E as toAccountId, F as toDurationMs, H as toOrgId, I as toEmail, J as toSessionToken, K as toPublishableKey, L as toEpochMs, M as toChainId, N as toCountryCode, O as toAllowedOrigin, P as toCurrencyCode, Q as CAPXUL_ERROR_CODES, R as toEpochSeconds, T as currencySymbolFor, U as toPartyId, V as toKycTier, X as HANDLE_RE, Y as toTesterKind, Z as decodeConvexError, d as AuthClientError, f as AuthClientPortTag, g as BASE_SEPOLIA_CHAIN_ID, h as normalizeBindingEmail, it as FAILURE_MODES, l as ClockPortTag, m as CAPXUL_PAYMENTS_V2_ADDRESS, nt as isCapxulError, q as toRoleKey, rt as CHAIN_UPSTREAMS, s as AuthCachePortTag, tt as Errors, u as authClientPortFromPromiseAdapter, x as EVM_ADDRESS_RE, z as toHandle } from "./clock-C2AUlq1V.mjs";
|
|
3
|
+
import { n as SystemClockLayer } from "./OAuthBearerAuthClient-BHvDR8_0.mjs";
|
|
4
4
|
import { Cause, Context, Data, Duration, Effect, Exit, Layer, Result, Schedule, SchemaIssue, SchemaParser, Scope, Tracer } from "effect";
|
|
5
5
|
import { keccak256, recoverAddress, stringToHex } from "viem";
|
|
6
6
|
import { getFunctionName, makeFunctionReference } from "convex/server";
|
|
@@ -60,7 +60,8 @@ function paymentPhase(status) {
|
|
|
60
60
|
case "pending_claim": return AWAITING_ACTOR;
|
|
61
61
|
case "settled": return COMPLETED;
|
|
62
62
|
case "cancelled": return WITHDRAWN;
|
|
63
|
-
case "failed":
|
|
63
|
+
case "failed":
|
|
64
|
+
case "unresolved": return FAILED;
|
|
64
65
|
default: return unknownStatus(status);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -1601,9 +1602,16 @@ const OBSERVED_CONVEX_ACTIONS = /* @__PURE__ */ new Set([
|
|
|
1601
1602
|
"org/actions:submitBootstrap",
|
|
1602
1603
|
"org/actions:resumeBootstrapSubmission",
|
|
1603
1604
|
"org/actions:confirmBootstrap",
|
|
1604
|
-
"org/actions:readTreasury"
|
|
1605
|
+
"org/actions:readTreasury",
|
|
1606
|
+
"moneyExecution/actions:preparePaymentExecution",
|
|
1607
|
+
"moneyExecution/actions:abandonPaymentExecution",
|
|
1608
|
+
"moneyExecution/actions:submitPaymentExecution",
|
|
1609
|
+
"moneyExecution/paymentCommandActions:preparePaymentLifecycleExecution",
|
|
1610
|
+
"moneyExecution/paymentCommandActions:prepareOrganizationPaymentExecution",
|
|
1611
|
+
"moneyExecution/paymentCommandActions:submitPaymentCommandExecution"
|
|
1605
1612
|
]);
|
|
1606
1613
|
const OBSERVED_CONVEX_QUERIES = /* @__PURE__ */ new Set([
|
|
1614
|
+
"financialOps/queries:resolveRecipient",
|
|
1607
1615
|
"identity/queries:loadByAuthUserId",
|
|
1608
1616
|
"smartAccount/queries:loadByAuthUserId",
|
|
1609
1617
|
"org/lifecycle:load"
|
|
@@ -1834,12 +1842,13 @@ function ConvexIdentityLayer() {
|
|
|
1834
1842
|
function brandProfile(raw) {
|
|
1835
1843
|
return {
|
|
1836
1844
|
authUserId: toAuthUserId(raw.authUserId),
|
|
1845
|
+
...raw.testerKind === void 0 ? {} : { testerKind: toTesterKind(raw.testerKind) },
|
|
1837
1846
|
email: toEmail(raw.email),
|
|
1838
1847
|
displayName: raw.displayName,
|
|
1839
1848
|
country: raw.country === null ? null : toCountryCode(raw.country),
|
|
1840
1849
|
onboarded: raw.onboarded ?? false,
|
|
1841
1850
|
withdrawalAddress: raw.withdrawalAddress === null || raw.withdrawalAddress === void 0 ? null : toAddress(raw.withdrawalAddress),
|
|
1842
|
-
|
|
1851
|
+
handle: raw.handle === null || raw.handle === void 0 ? null : toHandle(raw.handle),
|
|
1843
1852
|
imageUrl: raw.imageUrl ?? null,
|
|
1844
1853
|
kycTier: toKycTier(raw.kycTier),
|
|
1845
1854
|
createdAt: toEpochMs(raw.createdAt),
|
|
@@ -2012,8 +2021,9 @@ var OrgPortTag = class extends Context.Service()("@capxul/sdk/ports/OrgPort") {}
|
|
|
2012
2021
|
function brandOrgView(wire, treasury, viewerRole) {
|
|
2013
2022
|
return {
|
|
2014
2023
|
id: toOrgId(wire.orgId),
|
|
2024
|
+
...wire.creationSource === void 0 ? {} : { creationSource: toTesterKind(wire.creationSource) },
|
|
2015
2025
|
name: wire.name,
|
|
2016
|
-
handle: wire.
|
|
2026
|
+
handle: wire.handle,
|
|
2017
2027
|
safeAddress: toAddress(wire.safeAddress.toLowerCase()),
|
|
2018
2028
|
role: viewerRole,
|
|
2019
2029
|
treasury,
|
|
@@ -3818,4 +3828,4 @@ function captureExceptionSync(telemetry, error, context) {
|
|
|
3818
3828
|
} catch {}
|
|
3819
3829
|
}
|
|
3820
3830
|
//#endregion
|
|
3821
|
-
export { CAPXUL_ERROR_CODES, CAPXUL_OPERATIONS, CAPXUL_PAYMENTS_V2_ADDRESS, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, CHAIN_UPSTREAMS, CapxulError, Errors, FAILURE_MODES, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseMoney, paymentPhase, postHogObservability, requestPhase, destination as resolveIdentityDestination, toCountryCode, toAddress as toEvmAddress };
|
|
3831
|
+
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, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseMoney, paymentPhase, postHogObservability, requestPhase, destination as resolveIdentityDestination, toCountryCode, toAddress as toEvmAddress, toHandle, toPartyId };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CachedJwt, S as AuthCachePortTag, b as AuthCacheError, j as AuthSession, n as CapxulSigner, x as AuthCachePort } from "../signer-
|
|
2
|
-
import { n as oauthBearerAuthClient, t as OAuthBearerAuthClientInput } from "../OAuthBearerAuthClient-
|
|
1
|
+
import { C as CachedJwt, S as AuthCachePortTag, b as AuthCacheError, j as AuthSession, n as CapxulSigner, x as AuthCachePort } from "../signer-C0hZ6Kiy.mjs";
|
|
2
|
+
import { n as oauthBearerAuthClient, t as OAuthBearerAuthClientInput } from "../OAuthBearerAuthClient-D-DLYlKj.mjs";
|
|
3
3
|
import { Effect, FileSystem, Layer, Path } from "effect";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
5
|
//#region src/adapters/auth-cache/FileSystemAuthCacheAdapter.d.ts
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as oauthBearerAuthClient } from "../OAuthBearerAuthClient-
|
|
1
|
+
import { D as toAddress, a as parseCachedJwt, i as parseAuthSession, n as InMemoryAuthCacheAdapter, o as AuthCacheError, r as BrowserAuthCacheAdapter, s as AuthCachePortTag } from "../clock-C2AUlq1V.mjs";
|
|
2
|
+
import { t as oauthBearerAuthClient } from "../OAuthBearerAuthClient-BHvDR8_0.mjs";
|
|
3
3
|
import { Effect, FileSystem, Layer, Path } from "effect";
|
|
4
4
|
import { privateKeyToAccount } from "viem/accounts";
|
|
5
5
|
import * as os from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as PublishableKey, A as AppId, D as AllowanceKey, E as Address$1, F as ChainId, G as OrgId, H as EpochMs, I as CountryCode, J as PayrollGroupId, K as PartyId, L as CurrencyCode, M as AuthUserId, N as BlockNumber, O as AllowedOrigin, P as BudgetId, Q as Profile, R as DocumentHash, St as FailureMode, V as Email, W as Money, X as PermissionAssignmentId, Y as PayrollRunId, Z as PermissionId, _ as ClockPort, a as SignerStatusStore, at as WeiAmount, c as AccountProviderSource, et as RoleKey, ft as CapxulError, g as SmartAccount$1, gt as Failure, h as Session$1, it as TxHash, j as AuthSession, k as AnonymousDistinctId, l as AccountRequirement, m as Profile$1, mt as CapxulErrorDetails, n as CapxulSigner, nt as SmartAccount, p as CapxulResult, pt as CapxulErrorCode, q as PaymentCommandId, rt as TesterKind, tt as SessionToken, v as AuthClientPort, w as Account$1, x as AuthCachePort, y as CanSendOtpStatus, z as DurationMs } from "./signer-C0hZ6Kiy.mjs";
|
|
2
2
|
import { Context, Effect, Layer, Schema, Scope, Tracer } from "effect";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
import { FunctionReference } from "convex/server";
|
|
@@ -279,7 +279,7 @@ interface TelemetryPort {
|
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region ../observability/src/index.d.ts
|
|
282
|
-
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
|
|
282
|
+
declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "onboarding_intent_selected", "onboarding_profile_submitted", "onboarding_organization_submitted", "onboarding_dashboard_reached", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "member_activation_started", "member_activation_ready", "member_activation_failed", "organization_creation_started", "organization_creation_ready", "organization_creation_failed", "chain_upstream_fallback", "bundler_error", "receipt_pending", "operation_retried", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_invite_expired", "payment_initiated", "payment_settled", "payment_failed", "payment_verification_retry", "payment_lifecycle_transition", "quick_pay_external_address_acknowledged", "deposit_initiated", "deposit_settled", "permission_mirror_verification", "movement_scan_window", "movement_scan_checkpoint", "movement_scan_incident"];
|
|
283
283
|
type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
|
|
284
284
|
type TelemetryProps = Record<string, unknown>;
|
|
285
285
|
type TelemetryEvent = {
|
|
@@ -323,8 +323,10 @@ type EngineeringTelemetryBootstrapPolicyV1 = Schema.Schema.Type<typeof Engineeri
|
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region ../wire/src/status.d.ts
|
|
325
325
|
/** The closed Payment status authority. */
|
|
326
|
-
declare const PAYMENT_STATUSES: readonly ["pending", "settling", "scheduled", "streaming", "pending_claim", "settled", "cancelled", "failed"];
|
|
326
|
+
declare const PAYMENT_STATUSES: readonly ["pending", "settling", "unresolved", "scheduled", "streaming", "pending_claim", "settled", "cancelled", "failed"];
|
|
327
327
|
type PaymentStatus$1 = (typeof PAYMENT_STATUSES)[number];
|
|
328
|
+
declare const PAYMENT_EXECUTION_STATUSES: readonly ["pending", "included", "dropped", "replaced", "expired", "unresolved", "superseded", "failed", "settled"];
|
|
329
|
+
type PaymentExecutionStatus = (typeof PAYMENT_EXECUTION_STATUSES)[number];
|
|
328
330
|
/** The payment direction relative to the current actor. */
|
|
329
331
|
declare const PAYMENT_DIRECTIONS: readonly ["in", "out", "self"];
|
|
330
332
|
type PaymentDirection$1 = (typeof PAYMENT_DIRECTIONS)[number];
|
|
@@ -722,8 +724,8 @@ type CompleteOnboardingIdentityInput = {
|
|
|
722
724
|
readonly displayName: string;
|
|
723
725
|
readonly country: CountryCode;
|
|
724
726
|
readonly withdrawalAddress?: Address$1;
|
|
725
|
-
/**
|
|
726
|
-
readonly
|
|
727
|
+
/** One globally unique Party handle. */
|
|
728
|
+
readonly handle: string;
|
|
727
729
|
};
|
|
728
730
|
declare const IdentityError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
729
731
|
readonly _tag: "IdentityError";
|
|
@@ -1020,21 +1022,21 @@ interface SmartAccountMethods {
|
|
|
1020
1022
|
interface CompleteProfileInput {
|
|
1021
1023
|
readonly displayName: string;
|
|
1022
1024
|
readonly country: string;
|
|
1023
|
-
readonly
|
|
1025
|
+
readonly handle: string;
|
|
1024
1026
|
}
|
|
1025
1027
|
interface IdentityMethods {
|
|
1026
1028
|
loadCurrent(options?: {
|
|
1027
1029
|
readonly signal?: AbortSignal;
|
|
1028
1030
|
}): Promise<CapxulResult<Profile$1 | null>>;
|
|
1029
|
-
/** Complete the Person profile. A normalized, globally unique
|
|
1031
|
+
/** Complete the Person profile. A normalized, globally unique handle is required. */
|
|
1030
1032
|
completeProfile(profile: CompleteProfileInput, options?: {
|
|
1031
1033
|
readonly signal?: AbortSignal;
|
|
1032
1034
|
}): Promise<CapxulResult<Profile$1>>;
|
|
1033
1035
|
/**
|
|
1034
|
-
* #1062: availability probe for the
|
|
1036
|
+
* #1062: availability probe for the handle the user is typing. Returns the
|
|
1035
1037
|
* canonical stored form so the UI can echo it.
|
|
1036
1038
|
*/
|
|
1037
|
-
|
|
1039
|
+
handleAvailable(handle: string, options?: {
|
|
1038
1040
|
readonly signal?: AbortSignal;
|
|
1039
1041
|
}): Promise<CapxulResult<{
|
|
1040
1042
|
readonly available: boolean;
|
|
@@ -1096,22 +1098,22 @@ type TargetReference = {
|
|
|
1096
1098
|
readonly kind: "email";
|
|
1097
1099
|
readonly email: string;
|
|
1098
1100
|
} | {
|
|
1099
|
-
readonly kind: "
|
|
1100
|
-
readonly
|
|
1101
|
-
} | {
|
|
1102
|
-
readonly kind: "payee";
|
|
1103
|
-
readonly id: string;
|
|
1101
|
+
readonly kind: "address";
|
|
1102
|
+
readonly address: Address$1;
|
|
1104
1103
|
} | {
|
|
1105
1104
|
readonly kind: "party";
|
|
1106
1105
|
readonly partyId: PartyId;
|
|
1107
|
-
} | {
|
|
1108
|
-
readonly kind: "destination";
|
|
1109
|
-
readonly id: string;
|
|
1110
1106
|
};
|
|
1111
1107
|
interface ResolvedTarget {
|
|
1112
1108
|
readonly reference: TargetReference;
|
|
1113
1109
|
readonly label: string;
|
|
1114
|
-
readonly
|
|
1110
|
+
readonly status: RecipientResolution["status"];
|
|
1111
|
+
readonly kind: "person" | "organization" | "external_address" | "unresolved";
|
|
1112
|
+
readonly safeAddress: Address$1;
|
|
1113
|
+
readonly isCapxulAccount: boolean;
|
|
1114
|
+
readonly partyId?: PartyId;
|
|
1115
|
+
readonly handle?: string;
|
|
1116
|
+
readonly requiresAcknowledgement?: true;
|
|
1115
1117
|
readonly capabilities: {
|
|
1116
1118
|
readonly canPay: boolean;
|
|
1117
1119
|
readonly canRequest: boolean;
|
|
@@ -1123,7 +1125,6 @@ interface TargetsMethods {
|
|
|
1123
1125
|
readonly signal?: AbortSignal;
|
|
1124
1126
|
}): Promise<CapxulResult<ResolvedTarget>>;
|
|
1125
1127
|
}
|
|
1126
|
-
type RecipientResolutionKind = "email" | "org" | "payee";
|
|
1127
1128
|
type Ref$1 = {
|
|
1128
1129
|
readonly kind: "handle";
|
|
1129
1130
|
readonly handle: string;
|
|
@@ -1131,14 +1132,8 @@ type Ref$1 = {
|
|
|
1131
1132
|
readonly kind: "email";
|
|
1132
1133
|
readonly email: string;
|
|
1133
1134
|
} | {
|
|
1134
|
-
readonly kind: "
|
|
1135
|
-
readonly
|
|
1136
|
-
} | {
|
|
1137
|
-
readonly kind: "capxulUserId";
|
|
1138
|
-
readonly capxulUserId: string;
|
|
1139
|
-
} | {
|
|
1140
|
-
readonly kind: "payeeId";
|
|
1141
|
-
readonly payeeId: string;
|
|
1135
|
+
readonly kind: "address";
|
|
1136
|
+
readonly address: Address$1;
|
|
1142
1137
|
} | {
|
|
1143
1138
|
readonly kind: "party";
|
|
1144
1139
|
readonly partyId: PartyId;
|
|
@@ -1157,24 +1152,19 @@ interface DepositInstructions {
|
|
|
1157
1152
|
readonly label: string;
|
|
1158
1153
|
}
|
|
1159
1154
|
interface RecipientResolution {
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly
|
|
1155
|
+
readonly status: "known_party" | "new_email" | "external_address";
|
|
1156
|
+
readonly kind: "party" | "email" | "external_address";
|
|
1157
|
+
readonly locatorKind: Ref$1["kind"];
|
|
1158
|
+
readonly recipient: Ref$1;
|
|
1162
1159
|
readonly label: string;
|
|
1163
1160
|
readonly safeAddress: string;
|
|
1164
|
-
readonly
|
|
1165
|
-
readonly
|
|
1161
|
+
readonly isCapxulAccount: boolean;
|
|
1162
|
+
readonly partyId?: string;
|
|
1163
|
+
readonly partyKind?: "person" | "org";
|
|
1166
1164
|
readonly handle?: string;
|
|
1167
1165
|
readonly email?: string;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
readonly payeeId: string;
|
|
1171
|
-
readonly label: string;
|
|
1172
|
-
readonly recipientRef: string;
|
|
1173
|
-
readonly handle: string | null;
|
|
1174
|
-
readonly destinationKind: "email" | "org" | "payeeHandle";
|
|
1175
|
-
readonly safeAddress: string;
|
|
1176
|
-
readonly createdAt: number;
|
|
1177
|
-
readonly updatedAt: number;
|
|
1166
|
+
readonly address?: string;
|
|
1167
|
+
readonly requiresAcknowledgement?: true;
|
|
1178
1168
|
}
|
|
1179
1169
|
interface MeMethods {
|
|
1180
1170
|
get(options?: {
|
|
@@ -1184,26 +1174,6 @@ interface MeMethods {
|
|
|
1184
1174
|
readonly signal?: AbortSignal;
|
|
1185
1175
|
}): Promise<CapxulResult<DepositInstructions>>;
|
|
1186
1176
|
}
|
|
1187
|
-
interface HandlesMethods {
|
|
1188
|
-
resolve(handle: string, options?: {
|
|
1189
|
-
readonly signal?: AbortSignal;
|
|
1190
|
-
}): Promise<CapxulResult<RecipientResolution>>;
|
|
1191
|
-
}
|
|
1192
|
-
interface PayeesMethods {
|
|
1193
|
-
create(input: {
|
|
1194
|
-
readonly label: string;
|
|
1195
|
-
readonly recipient: string;
|
|
1196
|
-
readonly handle?: string;
|
|
1197
|
-
}, options?: {
|
|
1198
|
-
readonly signal?: AbortSignal;
|
|
1199
|
-
}): Promise<CapxulResult<Payee>>;
|
|
1200
|
-
get(payeeId: string, options?: {
|
|
1201
|
-
readonly signal?: AbortSignal;
|
|
1202
|
-
}): Promise<CapxulResult<Payee | null>>;
|
|
1203
|
-
resolve(recipient: string, options?: {
|
|
1204
|
-
readonly signal?: AbortSignal;
|
|
1205
|
-
}): Promise<CapxulResult<RecipientResolution>>;
|
|
1206
|
-
}
|
|
1207
1177
|
interface PaymentMoney {
|
|
1208
1178
|
readonly currency: string;
|
|
1209
1179
|
readonly value: string;
|
|
@@ -1243,14 +1213,21 @@ interface Payment {
|
|
|
1243
1213
|
readonly transactionHash: string;
|
|
1244
1214
|
} | null;
|
|
1245
1215
|
readonly recipient: {
|
|
1246
|
-
readonly kind: "
|
|
1216
|
+
readonly kind: "party";
|
|
1217
|
+
readonly partyId: string;
|
|
1218
|
+
readonly label: string;
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly kind: "external_address";
|
|
1247
1221
|
readonly label: string;
|
|
1248
|
-
readonly payeeId?: string;
|
|
1249
1222
|
};
|
|
1250
1223
|
readonly documents: readonly PaymentDocumentRef[];
|
|
1251
1224
|
readonly timing: PaymentTiming;
|
|
1252
1225
|
readonly released: PaymentMoney;
|
|
1253
1226
|
readonly availableToClaim: PaymentMoney;
|
|
1227
|
+
readonly execution?: {
|
|
1228
|
+
readonly status: PaymentExecutionStatus;
|
|
1229
|
+
readonly retryRequired: boolean;
|
|
1230
|
+
};
|
|
1254
1231
|
readonly createdAt: number;
|
|
1255
1232
|
readonly updatedAt: number;
|
|
1256
1233
|
}
|
|
@@ -1258,6 +1235,7 @@ interface PaymentsPayInput {
|
|
|
1258
1235
|
readonly actor?: ActorReference;
|
|
1259
1236
|
readonly to: TargetReference;
|
|
1260
1237
|
readonly amount: PaymentMoney;
|
|
1238
|
+
readonly externalAddressAcknowledged?: true;
|
|
1261
1239
|
/**
|
|
1262
1240
|
* How the payment is classified on the ledger. When a `document` is
|
|
1263
1241
|
* attached, the type derived from the document kind is AUTHORITATIVE
|
|
@@ -1471,6 +1449,9 @@ interface PaymentActivityEvidence {
|
|
|
1471
1449
|
readonly transactionHash: string;
|
|
1472
1450
|
readonly blockNumber: number;
|
|
1473
1451
|
readonly blockHash: string;
|
|
1452
|
+
readonly inclusion: "included";
|
|
1453
|
+
readonly verification: "verified";
|
|
1454
|
+
/** @deprecated Use `inclusion` and `verification`. */
|
|
1474
1455
|
readonly finality: "finalized";
|
|
1475
1456
|
readonly paymentEventLogIndex: number | null;
|
|
1476
1457
|
readonly transferLogIndex: number;
|
|
@@ -1491,6 +1472,9 @@ interface MovementActivityEvidence {
|
|
|
1491
1472
|
readonly transactionHash: string;
|
|
1492
1473
|
readonly blockNumber: number;
|
|
1493
1474
|
readonly blockHash: string;
|
|
1475
|
+
readonly inclusion: "included";
|
|
1476
|
+
readonly verification: "verified";
|
|
1477
|
+
/** @deprecated Use `inclusion` and `verification`. */
|
|
1494
1478
|
readonly canonicalState: "finalized";
|
|
1495
1479
|
readonly transferLogIndex: number;
|
|
1496
1480
|
readonly source: string;
|
|
@@ -1602,6 +1586,9 @@ interface PaymentsMethods {
|
|
|
1602
1586
|
pay(input: PaymentsPayInput, options?: {
|
|
1603
1587
|
readonly signal?: AbortSignal;
|
|
1604
1588
|
}): Promise<CapxulResult<Payment>>;
|
|
1589
|
+
retry(paymentId: string, options?: {
|
|
1590
|
+
readonly signal?: AbortSignal;
|
|
1591
|
+
}): Promise<CapxulResult<readonly Payment[]>>;
|
|
1605
1592
|
createCommitment(input: PaymentsPayInput & {
|
|
1606
1593
|
readonly timing: Exclude<PaymentTiming, {
|
|
1607
1594
|
readonly kind: "instant";
|
|
@@ -1643,8 +1630,6 @@ interface PaymentDocumentsMethods {
|
|
|
1643
1630
|
}
|
|
1644
1631
|
interface FinancialOpsMethods {
|
|
1645
1632
|
readonly me: MeMethods;
|
|
1646
|
-
readonly handles: HandlesMethods;
|
|
1647
|
-
readonly payees: PayeesMethods;
|
|
1648
1633
|
readonly targets: TargetsMethods;
|
|
1649
1634
|
readonly destinations: DestinationsMethods;
|
|
1650
1635
|
readonly payments: PaymentsMethods;
|
|
@@ -1879,18 +1864,31 @@ type PersonOnboardingInput = CompleteProfileInput;
|
|
|
1879
1864
|
type ReadyAccountLifecycle = Extract<AccountLifecycle, {
|
|
1880
1865
|
readonly status: "ready";
|
|
1881
1866
|
}>;
|
|
1882
|
-
type CompletedPersonProfile = Omit<Profile$1, "displayName" | "
|
|
1867
|
+
type CompletedPersonProfile = Omit<Profile$1, "displayName" | "handle"> & {
|
|
1883
1868
|
readonly displayName: string;
|
|
1884
|
-
readonly
|
|
1869
|
+
readonly handle: string;
|
|
1885
1870
|
};
|
|
1886
1871
|
interface PersonOnboarding {
|
|
1887
1872
|
readonly profile: CompletedPersonProfile;
|
|
1888
1873
|
readonly account: ReadyAccountLifecycle;
|
|
1889
1874
|
}
|
|
1875
|
+
interface OrganizationOnboardingInput {
|
|
1876
|
+
readonly name: string;
|
|
1877
|
+
readonly handle: string;
|
|
1878
|
+
readonly country: string;
|
|
1879
|
+
readonly bio?: string;
|
|
1880
|
+
readonly size?: string;
|
|
1881
|
+
}
|
|
1882
|
+
interface OrganizationOnboarding {
|
|
1883
|
+
readonly organizationId: string;
|
|
1884
|
+
}
|
|
1890
1885
|
interface OnboardingMethods {
|
|
1891
1886
|
completePerson(input: PersonOnboardingInput, options?: {
|
|
1892
1887
|
readonly signal?: AbortSignal;
|
|
1893
1888
|
}): Promise<CapxulResult<PersonOnboarding>>;
|
|
1889
|
+
completeOrganization(input: OrganizationOnboardingInput, options?: {
|
|
1890
|
+
readonly signal?: AbortSignal;
|
|
1891
|
+
}): Promise<CapxulResult<OrganizationOnboarding>>;
|
|
1894
1892
|
}
|
|
1895
1893
|
//#endregion
|
|
1896
1894
|
//#region src/surface/accounts.d.ts
|
|
@@ -2023,6 +2021,8 @@ type PermissionAssignInput = {
|
|
|
2023
2021
|
readonly requestKey: string;
|
|
2024
2022
|
readonly permissionId: string;
|
|
2025
2023
|
readonly accountId: string;
|
|
2024
|
+
/** Bind a staff activation to the invited Person at the backend authority boundary. */
|
|
2025
|
+
readonly expectedMemberEmail?: string;
|
|
2026
2026
|
};
|
|
2027
2027
|
type PermissionRevokeInput = {
|
|
2028
2028
|
readonly requestKey: string;
|
|
@@ -2045,6 +2045,7 @@ interface PermissionMethods {
|
|
|
2045
2045
|
interface OrganizationPaymentItemInput {
|
|
2046
2046
|
readonly to: Ref$1;
|
|
2047
2047
|
readonly amount: PaymentMoney;
|
|
2048
|
+
readonly externalAddressAcknowledged?: true;
|
|
2048
2049
|
readonly paymentType?: PaymentType;
|
|
2049
2050
|
readonly document?: AttachablePaymentDocumentEnvelopeV1;
|
|
2050
2051
|
}
|
|
@@ -2064,6 +2065,9 @@ interface OrganizationPaymentsMethods {
|
|
|
2064
2065
|
payBatch(input: OrganizationPaymentBatchInput, options?: {
|
|
2065
2066
|
readonly signal?: AbortSignal;
|
|
2066
2067
|
}): Promise<CapxulResult<readonly Payment[]>>;
|
|
2068
|
+
retry(paymentId: string, options?: {
|
|
2069
|
+
readonly signal?: AbortSignal;
|
|
2070
|
+
}): Promise<CapxulResult<readonly Payment[]>>;
|
|
2067
2071
|
}
|
|
2068
2072
|
//#endregion
|
|
2069
2073
|
//#region src/surface/payroll.d.ts
|
|
@@ -2202,6 +2206,7 @@ interface PayrollMethods {
|
|
|
2202
2206
|
type MemberStatus = "pending" | "pending_safe" | "pending_grant" | "active" | "revoked" | "expired";
|
|
2203
2207
|
/** One Organization that the current user can access. */
|
|
2204
2208
|
type OrgView = {
|
|
2209
|
+
readonly creationSource?: TesterKind;
|
|
2205
2210
|
readonly id: OrgId;
|
|
2206
2211
|
readonly name: string;
|
|
2207
2212
|
readonly handle: string;
|
|
@@ -2533,7 +2538,7 @@ type IdentityRuntimeSendResult = {
|
|
|
2533
2538
|
type IdentityProfileDetails = {
|
|
2534
2539
|
readonly displayName: string;
|
|
2535
2540
|
readonly country: string;
|
|
2536
|
-
readonly
|
|
2541
|
+
readonly handle: string;
|
|
2537
2542
|
};
|
|
2538
2543
|
interface IdentityRuntime {
|
|
2539
2544
|
readonly snapshot: () => IdentityState;
|
|
@@ -2570,8 +2575,6 @@ interface CapxulClient {
|
|
|
2570
2575
|
readonly accounts: AccountsMethods;
|
|
2571
2576
|
readonly currentUser: CurrentUserMethods;
|
|
2572
2577
|
readonly me: MeMethods;
|
|
2573
|
-
readonly handles: HandlesMethods;
|
|
2574
|
-
readonly payees: PayeesMethods;
|
|
2575
2578
|
readonly targets: TargetsMethods;
|
|
2576
2579
|
readonly destinations: DestinationsMethods;
|
|
2577
2580
|
/**
|
|
@@ -2631,6 +2634,7 @@ interface CapxulClient {
|
|
|
2631
2634
|
readonly organizationSetup: OrganizationSetupProofMethods;
|
|
2632
2635
|
/** Product telemetry projection for internal composition and test harnesses. */
|
|
2633
2636
|
readonly telemetry?: TelemetryPort;
|
|
2637
|
+
readonly captureExternalAddressAcknowledged: (address: string, organizationId?: string) => void;
|
|
2634
2638
|
readonly close?: () => Promise<void>;
|
|
2635
2639
|
};
|
|
2636
2640
|
}
|
|
@@ -2825,4 +2829,4 @@ interface ObservationAdapter {
|
|
|
2825
2829
|
/** Stable PostHog event used for typed failures that are expected product outcomes. */
|
|
2826
2830
|
declare const CAPXUL_SDK_EXPECTED_OUTCOME_EVENT = "capxul_sdk_expected_outcome";
|
|
2827
2831
|
//#endregion
|
|
2828
|
-
export { OrganizationPaymentsMethods as $,
|
|
2832
|
+
export { OrganizationPaymentsMethods as $, TelemetryPort as $n, DestinationListInput as $t, OrgView as A, TargetsMethods as An, AddressBookMethods as At, PayrollGroupInput as B, OrgSetupStep as Bn, ActivityListParams as Bt, DetectPendingOrgInvitationsResult as C, PaymentType as Cn, ActorRelationshipMethods as Ct, OrgMethods as D, Ref$1 as Dn, AddressBookAddInput as Dt, MemberView as E, RecipientResolution as En, ActorRequestsMethods as Et, RoleSpendCap as F, CompleteProfileInput as Fn, ActivityAnnotationInput as Ft, PayrollRun as G, InboxStatus as Gn, ActivitySummary as Gt, PayrollGroupsMethods as H, CurrentHoldings as Hn, ActivityPage as Ht, RoleView as I, IdentityMethods as In, ActivityDetail as It, PayrollRuns as J, PaymentStatus$1 as Jn, ActorReference as Jt, PayrollRunItemInput as K, PAYMENT_DIRECTIONS as Kn, ActivitySummaryParams as Kt, AuthorizeRunInput as L, SmartAccountMethods as Ln, ActivityFilter as Lt, OrganizationAuditLogItem as M, AccountLifecycle as Mn, InboxItem as Mt, ResendInviteTokenInput as N, AccountSetupStep as Nn, InboxMethods as Nt, OrgScopedMethods as O, ResolvedTarget as On, AddressBookEntry as Ot, RoleDefinition as P, isSettingUpLifecycle as Pn, ActivityAnnotation as Pt, OrganizationPaymentItemInput as Q, TelemetryIdentifyInput as Qn, DestinationKind as Qt, PayrollEngagementTerms as R, AuthMethods as Rn, ActivityItem as Rt, CreateOrgInput as S, PaymentTiming as Sn, ActorProfileMethods as St, MemberStatus as T, PaymentsPayInput as Tn, ActorRequestIssueInput as Tt, PayrollMethods as U, Permission as Un, ActivityRange as Ut, PayrollGroupMember as V, ActorRef as Vn, ActivityMethods as Vt, PayrollOptions as W, SubmittedPermissionExecution as Wn, ActivityReference as Wt, OrganizationPaymentBatchInput as X, TelemetryEvent as Xn, Destination as Xt, PayrollTermsUnit as Y, RequestStatus as Yn, DepositInstructions as Yt, OrganizationPaymentInput as Z, TelemetryGroupInput as Zn, DestinationAddInput as Zt, SystemMethods as _, PaymentDocumentRender as _n, PersonOnboarding as _t, SdkFailureObservation as a, MeMethods as an, StateLabel as ar, PermissionReplaceInput as at, CurrentUserContext as b, PaymentMoney as bn, AccountMethods as bt, PostHogObservabilityOptions as c, OfframpMethods as cn, isRestoring as cr, Budget as ct, CreateCapxulClientInput as d, OfframpStatus as dn, OrgMeOptions as dt, DestinationPayload as en, Destination$1 as er, PermissionAssignInput as et, IdentityProfileDetails as f, Payment as fn, AccountsMethods as ft, Holding as g, PaymentDocumentRef as gn, OrganizationOnboardingInput as gt, HoldingsMethods as h, PaymentDocumentKind as hn, OrganizationOnboarding as ht, ObservationDelivery as i, FinancialOpsMethods as in, Readiness as ir, PermissionOptions as it, OrganizationAccount as j, fingerprintPaymentIntent as jn, InboxApproveInput as jt, OrgTemplate as k, TargetReference as kn, AddressBookLabelInput as kt, postHogObservability as l, OfframpQuote as ln, IdentityTransition as lr, OrgMe as lt, IdentityRuntimeSendResult as m, PaymentDirection as mn, OnboardingMethods as mt, ObservationAdapter as n, DestinationRemoveInput as nn, IdentityState as nr, PermissionCreateInput as nt, HostObservability as o, MeProfile as on, destination as or, PermissionRevokeInput as ot, IdentityRuntime as p, PaymentActivityEvidence as pn, CompletedPersonProfile as pt, PayrollRunStatus as q, PAYMENT_STATUSES as qn, ActivitySummaryTotal as qt, ObservationContext as r, DestinationsMethods as rn, OrgLane as rr, PermissionMethods as rt, PostHogObservabilityClient as s, MovementActivityEvidence as sn, isClaimed as sr, PermissionReadResult as st, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT as t, DestinationRail as tn, IdentityEvent as tr, PermissionChangeInput as tt, CapxulClient as u, OfframpQuoteInput as un, InvocationControls as ur, OrgMeMethod as ut, SystemHealth as v, PaymentDocumentVerification as vn, PersonOnboardingInput as vt, InviteMemberInput as w, PaymentsMethods as wn, ActorRequest as wt, CurrentUserMethods as x, PaymentStatus as xn, ActorProfile as xt, MediaMethods as y, PaymentDocumentsMethods as yn, ReadyAccountLifecycle as yt, PayrollGroup as z, OrgLifecycle as zn, ActivityKind as zt };
|