@capxul/sdk 4.20.0-beta.6 → 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/{OAuthBearerAuthClient-B7Nbepmu.d.mts → OAuthBearerAuthClient-DOPDDSPs.d.mts} +3 -1
- package/dist/{OAuthBearerAuthClient-5ujCTtKE.mjs → OAuthBearerAuthClient-DdKYPHE0.mjs} +23 -9
- package/dist/index.d.mts +42 -11
- package/dist/index.mjs +3 -3
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{production-B4NzzuUb.mjs → production-B63Xm_fl.mjs} +709 -117
- package/dist/{production-pLe7MsUo.d.mts → production-UMTDZSTH.d.mts} +551 -49
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +2 -2
- package/package.json +4 -4
|
@@ -395,6 +395,8 @@ declare function toAddress(raw: unknown): Address$1;
|
|
|
395
395
|
declare function toAccountId(raw: unknown): AccountId;
|
|
396
396
|
declare function toPartyId(raw: unknown): PartyId;
|
|
397
397
|
declare function toHandle(raw: unknown): Handle;
|
|
398
|
+
declare function toPermissionId(raw: unknown): PermissionId;
|
|
399
|
+
declare function toBudgetId(raw: unknown): BudgetId;
|
|
398
400
|
declare function toOrgId(raw: unknown): OrgId;
|
|
399
401
|
declare function toCountryCode(raw: unknown): CountryCode;
|
|
400
402
|
//#endregion
|
|
@@ -645,4 +647,4 @@ interface OAuthBearerAuthClientInput {
|
|
|
645
647
|
*/
|
|
646
648
|
declare function oauthBearerAuthClient(input: OAuthBearerAuthClientInput): AuthClientPort;
|
|
647
649
|
//#endregion
|
|
648
|
-
export { OrgId as $, Address$1 as A,
|
|
650
|
+
export { OrgId as $, Address$1 as A, ChainCause as At, BudgetId as B, AuthCachePort as C, CapxulError as Ct, Account$1 as D, Failure as Dt, CAPXUL_PAYMENTS_V2_ADDRESS as E, Errors as Et, AssetAmount as F, CurrencyCode as G, ClientGrantId as H, AssetId as I, EVM_ADDRESS_RE as J, DocumentHash as K, AuthSession as L, AllowedOrigin as M, FAILURE_MODES as Mt, AnonymousDistinctId as N, FailureMode as Nt, AccountId as O, isCapxulError as Ot, AppId as P, RevertSummary as Pt, Money as Q, AuthUserId as R, AuthCacheError as S, CAPXUL_ERROR_CODES as St, CachedJwt as T, CapxulErrorDetails as Tt, ClientRequestId as U, ChainId as V, CountryCode as W, EpochMs as X, Email as Y, Handle as Z, Session as _, toCountryCode as _t, Eip1193RequestProvider as a, PermissionId as at, AuthClientPort as b, toPartyId as bt, injectedWalletSigner as c, RoleKey as ct, AccountRequirement as d, TesterKind as dt, PartyId as et, Eip1193Provider as f, TxHash as ft, Profile as g, toBudgetId as gt, CapxulResult as h, toAddress as ht, CapxulSigner as i, PermissionAssignmentId as it, AllowanceKey as j, ChainUpstream as jt, AccountPosition as k, CHAIN_UPSTREAMS as kt, AccountProvider as l, SessionToken as lt, localPrivateKeyAccountProvider as m, toAccountId as mt, oauthBearerAuthClient as n, PayrollGroupId as nt, SignerStatus as o, Profile$1 as ot, eip1193AccountProvider as p, WeiAmount as pt, DurationMs as q, CapxulDigestSigner as r, PayrollRunId as rt, SignerStatusStore as s, PublishableKey as st, OAuthBearerAuthClientInput as t, PaymentCommandId as tt, AccountProviderSource as u, SmartAccount$1 as ut, SmartAccount as v, toHandle as vt, AuthCachePortTag as w, CapxulErrorCode as wt, CanSendOtpStatus as x, toPermissionId as xt, ClockPort as y, toOrgId as yt, BlockNumber as z };
|
|
@@ -1180,6 +1180,28 @@ function configuredMoneyAssetById(assetId) {
|
|
|
1180
1180
|
//#region ../config/src/org-payments.ts
|
|
1181
1181
|
/** Zodiac MultiSendCallOnly module on Base Sepolia. */
|
|
1182
1182
|
const MULTI_SEND_CALL_ONLY = "0x9641d764fc13c8b624c04430c7356c1c7c8102e2";
|
|
1183
|
+
/** Supported Organization permission identities, newest first. */
|
|
1184
|
+
const ORG_PERMISSION_IDENTITY_PROFILES = [{
|
|
1185
|
+
id: "zodiac-roles-2.1.1",
|
|
1186
|
+
moduleFactoryRuntimeKeccak256: "0x01623cbcf010a1c326230f1b2d5f48a66b440232ee49096102bc84967dc5f21e",
|
|
1187
|
+
mastercopy: "0xf2964ce6161ce0e75964fe7927ce114cb0b283d5",
|
|
1188
|
+
mastercopyRuntimeKeccak256: "0x471d8b3b419f1eb955230c0326c8812176df49bf3c7b414a563fda5a3c6c10b6",
|
|
1189
|
+
proxyRuntimeKeccak256: "0x248f9591f94c24c199ade3e73feb477cf02d387b2bea91f2f931a0deb094f163",
|
|
1190
|
+
multiSendUnwrapper: "0xb4cd4bb764c089f20da18700ce8bc5e49f369efd",
|
|
1191
|
+
multiSendUnwrapperRuntimeKeccak256: "0x1f6e088be5e6ef9d0fbe0547d3fa9a9e40d823433fd8a4449215b5663209a1eb"
|
|
1192
|
+
}, {
|
|
1193
|
+
id: "zodiac-roles-2.1.0",
|
|
1194
|
+
moduleFactoryRuntimeKeccak256: "0x01623cbcf010a1c326230f1b2d5f48a66b440232ee49096102bc84967dc5f21e",
|
|
1195
|
+
mastercopy: "0x9646fdad06d3e24444381f44362a3b0eb343d337",
|
|
1196
|
+
mastercopyRuntimeKeccak256: "0x87911cbc6aa0496e6bcb07dab2462b9c76daea130dede6dcc57d0adf307fa7ec",
|
|
1197
|
+
proxyRuntimeKeccak256: "0x9d4059abf46db50e4b48d9b6404b1f200cb5a1efeb3725be2de630a2a9001944",
|
|
1198
|
+
multiSendUnwrapper: "0x93b7fcbc63ed8a3a24b59e1c3e6649d50b7427c0",
|
|
1199
|
+
multiSendUnwrapperRuntimeKeccak256: "0x4d8d8608b70a6e2f40726b9dd74406bbf73e90cac58e23ee953e2b45ad7dc3df"
|
|
1200
|
+
}];
|
|
1201
|
+
const CURRENT_ORG_PERMISSION_IDENTITY = ORG_PERMISSION_IDENTITY_PROFILES[0];
|
|
1202
|
+
ORG_PERMISSION_IDENTITY_PROFILES[1];
|
|
1203
|
+
CURRENT_ORG_PERMISSION_IDENTITY.mastercopy;
|
|
1204
|
+
CURRENT_ORG_PERMISSION_IDENTITY.multiSendUnwrapper;
|
|
1183
1205
|
//#endregion
|
|
1184
1206
|
//#region ../config/src/safe.ts
|
|
1185
1207
|
const BASE_SEPOLIA_CHAIN_ID = 84532;
|
|
@@ -1410,14 +1432,6 @@ function normalizeBindingEmail(email) {
|
|
|
1410
1432
|
//#endregion
|
|
1411
1433
|
//#region ../config/src/role-dsl.ts
|
|
1412
1434
|
const ADMIN_ROLE_LABEL = "Admin";
|
|
1413
|
-
function normalizeOrgRoleLabel(label) {
|
|
1414
|
-
const normalized = label.trim().replace(/\s+/g, " ");
|
|
1415
|
-
if (normalized.length === 0) throw Errors.invalidInput("role.label", "must be a non-empty role label");
|
|
1416
|
-
return normalized;
|
|
1417
|
-
}
|
|
1418
|
-
function orgRoleKeyForLabel(label) {
|
|
1419
|
-
return keccak256(toBytes(normalizeOrgRoleLabel(label).toLowerCase()));
|
|
1420
|
-
}
|
|
1421
1435
|
//#endregion
|
|
1422
1436
|
//#region ../config/src/capxul-payments-v2.ts
|
|
1423
1437
|
/** The exact compiled CapxulPaymentsV2 ABI. */
|
|
@@ -2467,4 +2481,4 @@ function readExchange(body) {
|
|
|
2467
2481
|
};
|
|
2468
2482
|
}
|
|
2469
2483
|
//#endregion
|
|
2470
|
-
export {
|
|
2484
|
+
export { toKycTier as $, EMAIL_RE as A, containsSensitiveMaterial as At, toAppId as B, ACCOUNT_ID_RE as C, chainCauseProperties as Ct, CLIENT_GRANT_ID_RE as D, isChainUpstream as Dt, BYTES32_RE as E, failureFingerprint as Et, assetIdFor as F, toCountryCode as G, toAuthUserId as H, currencySymbolFor as I, toEmail as J, toCurrencyCode as K, toAccountId as L, SUPPORTED_CURRENCY_CODES as M, redactSecrets as Mt, WEI_RE as N, redactUrlSecrets as Nt, CLIENT_REQUEST_ID_RE as O, isFailureMode as Ot, ZERO_BYTES32 as P, toJwtToken as Q, toAddress as R, configuredMoneyAssetById as S, boundedResponseHeaders as St, ASSET_ID_RE as T, decodeChainCause as Tt, toBudgetId as U, toAssetId as V, toChainId as W, toEpochSeconds as X, toEpochMs as Y, toHandle as Z, BASE_SEPOLIA_CHAIN_ID as _, EXPECTED_OPERATION_OUTCOMES as _t, parseAuthSession as a, toPermissionId as at, SYNTHETIC_TEST_ASSET_FIXTURES as b, CHAIN_UPSTREAMS as bt, AuthCachePortTag as c, toSessionToken as ct, authClientPortFromPromiseAdapter as d, toWeiAmount as dt, toOrgId as et, AuthClientError as f, validateHandle as ft, normalizeBindingEmail as g, CapxulError as gt, ADMIN_ROLE_LABEL as h, CAPXUL_ERROR_CODES as ht, BrowserAuthCacheAdapter as i, toPermissionAssignmentId as it, EVM_ADDRESS_RE as j, isCredentialField as jt, COUNTRY_CODE_RE as k, revertSummaryText as kt, SystemClockLayer as l, toTesterKind as lt, CAPXUL_PAYMENTS_V2_ADDRESS as m, decodeConvexError as mt, readClockNow as n, toPayrollGroupId as nt, parseCachedJwt as o, toPublishableKey as ot, AuthClientPortTag as p, HANDLE_RE as pt, toDurationMs as q, InMemoryAuthCacheAdapter as r, toPayrollRunId as rt, AuthCacheError as s, toRoleKey as st, oauthBearerAuthClient as t, toPartyId as tt, ClockPortTag as u, toTxHash as ut, deriveCapxulSafeAddress as v, Errors as vt, APP_ID_RE as w, chainEvidenceLabel as wt, TOKENS as x, FAILURE_MODES as xt, CONFIGURED_MONEY_ASSETS as y, isCapxulError as yt, toAllowedOrigin as z };
|
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
|
|
@@ -224,10 +224,12 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
224
224
|
readonly prepareOrganizationPaymentExecution: "moneyExecution.prepareOrganizationPaymentExecution";
|
|
225
225
|
readonly preparePaymentExecution: "moneyExecution.preparePaymentExecution";
|
|
226
226
|
readonly preparePaymentLifecycleExecution: "moneyExecution.preparePaymentLifecycleExecution";
|
|
227
|
+
readonly prepareInvitationConfiguration: "moneyExecution.prepareInvitationConfiguration";
|
|
227
228
|
readonly preparePermissionExecution: "moneyExecution.preparePermissionExecution";
|
|
228
229
|
readonly recoverSubmissionClaims: "moneyExecution.recoverSubmissionClaims";
|
|
229
230
|
readonly submit: "moneyExecution.submit";
|
|
230
231
|
readonly submitPaymentCommandExecution: "moneyExecution.submitPaymentCommandExecution";
|
|
232
|
+
readonly submitInvitationConfigurationExecution: "moneyExecution.submitInvitationConfigurationExecution";
|
|
231
233
|
readonly submitPaymentExecution: "moneyExecution.submitPaymentExecution";
|
|
232
234
|
readonly submitPermissionExecution: "moneyExecution.submitPermissionExecution";
|
|
233
235
|
};
|
|
@@ -249,22 +251,54 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
249
251
|
readonly completePerson: "onboarding.completePerson";
|
|
250
252
|
};
|
|
251
253
|
readonly org: {
|
|
252
|
-
readonly acceptInvitations: "org.acceptInvitations";
|
|
253
254
|
readonly account: {
|
|
254
255
|
readonly get: "org.account.get";
|
|
255
256
|
};
|
|
256
|
-
readonly activateMember: "org.activateMember";
|
|
257
257
|
readonly auditLog: "org.auditLog";
|
|
258
258
|
readonly confirmBootstrap: "org.confirmBootstrap";
|
|
259
259
|
readonly createOrg: "org.createOrg";
|
|
260
260
|
readonly create: "org.create";
|
|
261
|
-
|
|
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";
|
|
262
267
|
readonly emitInviteProgressed: "org.emitInviteProgressed";
|
|
263
268
|
readonly expireInvitations: "org.expireInvitations";
|
|
264
269
|
readonly getLifecycle: "org.getLifecycle";
|
|
265
270
|
readonly getProofReceipt: "org.getProofReceipt";
|
|
266
271
|
readonly invite: "org.invite";
|
|
267
|
-
|
|
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
|
+
};
|
|
268
302
|
readonly list: "org.list";
|
|
269
303
|
readonly load: "org.load";
|
|
270
304
|
readonly me: "org.me";
|
|
@@ -325,7 +359,6 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
325
359
|
};
|
|
326
360
|
readonly recordFailure: "org.recordFailure";
|
|
327
361
|
readonly recordProgress: "org.recordProgress";
|
|
328
|
-
readonly resendInviteToken: "org.resendInviteToken";
|
|
329
362
|
readonly resumeBootstrapSubmission: "org.resumeBootstrapSubmission";
|
|
330
363
|
readonly retry: "org.retry";
|
|
331
364
|
readonly retrySetup: "org.retrySetup";
|
|
@@ -346,9 +379,6 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
346
379
|
readonly organizationSetup: {
|
|
347
380
|
readonly getProofReceipt: "organizationSetup.getProofReceipt";
|
|
348
381
|
};
|
|
349
|
-
readonly organizations: {
|
|
350
|
-
readonly detectAndAcceptPendingInvitations: "orgs.detectAndAcceptPendingInvitations";
|
|
351
|
-
};
|
|
352
382
|
readonly payments: {
|
|
353
383
|
readonly cancel: "payments.cancel";
|
|
354
384
|
readonly claim: "payments.claim";
|
|
@@ -388,6 +418,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
388
418
|
readonly terms: "payroll.terms";
|
|
389
419
|
};
|
|
390
420
|
readonly permission: {
|
|
421
|
+
readonly verifyInvitationConfiguration: "permission.verifyInvitationConfiguration";
|
|
391
422
|
readonly command: "permission.command";
|
|
392
423
|
readonly retryVerification: "permission.retryVerification";
|
|
393
424
|
readonly verify: "permission.verify";
|
|
@@ -700,4 +731,4 @@ declare function captureException(telemetry: TelemetryPort, error: unknown, cont
|
|
|
700
731
|
*/
|
|
701
732
|
declare function captureExceptionSync(telemetry: TelemetryPort, error: unknown, context?: HandledErrorReportContext): void;
|
|
702
733
|
//#endregion
|
|
703
|
-
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, 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
|
|
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 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-
|
|
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, 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, toCountryCode, toAddress as toEvmAddress, toHandle, toOrgId, toPartyId, toRaw, valueActivitySummary, 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 };
|
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 { a as parseAuthSession, c as AuthCachePortTag, i as BrowserAuthCacheAdapter, o as parseCachedJwt, r as InMemoryAuthCacheAdapter, s as AuthCacheError, t as oauthBearerAuthClient
|
|
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";
|