@capxul/sdk 4.2.0-rc.14 → 4.2.0-rc.15
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/capxul-source.json +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{production-C2EwEcoX.mjs → production-Bw1sledP.mjs} +33 -22
- package/dist/{production-DuSjYRk4.d.mts → production-CJ42VSls.d.mts} +12 -13
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +1 -1
- package/package.json +5 -5
package/dist/capxul-source.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": {
|
|
3
|
-
"commit": "
|
|
4
|
-
"tree": "
|
|
3
|
+
"commit": "b2dff9052ea3f3a55dfca98530c02b4ac3bcfa96",
|
|
4
|
+
"tree": "9fc0a21bc2cb477c62dd9f5c44c4977d74548d94",
|
|
5
5
|
"branch": "codex/programme-rc",
|
|
6
6
|
"repository": "https://github.com/Xelmar-tech/infrastructure",
|
|
7
7
|
"lockfileSha256": "5870f53b72706d103220c1bcf733cb4fb71196aea32a9cfbdc277d73cc959264"
|
|
8
8
|
},
|
|
9
9
|
"name": "@capxul/sdk",
|
|
10
|
-
"version": "4.2.0-rc.
|
|
10
|
+
"version": "4.2.0-rc.15"
|
|
11
11
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as PayrollGroupId, B as ChainId, Ct as ChainCause, D as Account, Dt as RevertSummary, E as CAPXUL_PAYMENTS_V2_ADDRESS, Et as FailureMode, F as AssetId, G as EVM_ADDRESS_RE, H as CurrencyCode, I as AuthSession, J as Handle, L as AuthUserId, O as AccountId, P as AssetAmount, St as CHAIN_UPSTREAMS, Tt as FAILURE_MODES, V as CountryCode, X as OrgId, Y as Money, Z as PartyId, _ as Session, _t as CapxulErrorCode, a as Eip1193RequestProvider, at as RoleKey, c as injectedWalletSigner, ct as TesterKind, d as AccountRequirement, dt as toAddress, et as PayrollRunId, f as Eip1193Provider, ft as toCountryCode, g as Profile, gt as CapxulError, h as CapxulResult, ht as CAPXUL_ERROR_CODES, i as CapxulSigner, k as Address, l as AccountProvider, m as localPrivateKeyAccountProvider, mt as toPartyId, o as SignerStatus, p as eip1193AccountProvider, pt as toHandle, r as CapxulDigestSigner, s as SignerStatusStore, u as AccountProviderSource, v as SmartAccount, vt as CapxulErrorDetails, wt as ChainUpstream, xt as isCapxulError, yt as Errors, z as BudgetId } from "./OAuthBearerAuthClient-C-ip-z8M.mjs";
|
|
2
|
-
import { $ as OrganizationPaymentBatchInput, $n as RequestStatus, $t as Destination, A as OrgScopedMethods, An as Ref, At as AddressBookAddInput, B as AuthorizeRunOptions, Bn as SmartAccountMethods, Bt as ActivityFilter, C as CurrentUserMethods, Cn as PaymentMoney, Ct as AccountMethods, D as MemberStatus, Dn as PaymentsMethods, Dt as ActorRequest, E as InviteMemberInput, En as PaymentType, Et as ActorRelationshipMethods, F as ResendInviteTokenInput, Fn as AccountLifecycle, Ft as InboxItem, G as PayrollGroupsMethods, Gn as ActorRef, Gt as ActivityPage, H as PayrollGroup, Hn as OrgLifecycle, Ht as ActivityKind, I as RoleDefinition, In as AccountSetupStep, It as InboxMethods, J as PayrollRun, Jn as SubmittedPermissionExecution, Jt as ActivitySummary, K as PayrollMethods, Kn as CurrentHoldings, Kt as ActivityRange, L as RoleSpendCap, Ln as isSettingUpLifecycle, Lt as ActivityAnnotation, M as OrgView, Mn as TargetReference, Mt as AddressBookLabelInput, N as OrganizationAccount, Nn as TargetsMethods, Nt as AddressBookMethods, O as MemberView, On as PaymentsPayInput, Ot as ActorRequestIssueInput, P as OrganizationAuditLogItem, Pn as fingerprintPaymentIntent, Pt as InboxApproveInput, Q as PayrollTermsUnit, Qn as PaymentStatus$1, Qt as DepositInstructions, R as RoleView, Rn as CompleteProfileInput, Rt as ActivityAnnotationInput, S as CurrentUserContext, Sn as PaymentDocumentsMethods, St as ReadyAccountLifecycle, T as DetectPendingOrgInvitationsResult, Tn as PaymentTiming, Tt as ActorProfileMethods, U as PayrollGroupInput, Un as OrgSetupStep, Ut as ActivityListParams, V as PayrollEngagementTerms, Vn as AuthMethods, Vt as ActivityItem, W as PayrollGroupMember, Wn as PayoutAddress, Wt as ActivityMethods, X as PayrollRunStatus, Xn as PAYMENT_DIRECTIONS, Xt as ActivitySummaryTotal, Y as PayrollRunItemInput, Yn as InboxStatus, Yt as ActivitySummaryParams, Z as PayrollRuns, Zn as PAYMENT_STATUSES, Zt as ActorReference, _ as HoldingsMethods, _n as PaymentDirection, _t as OnboardingMethods, a as ObservationContext, an as DestinationRemoveInput, ar as IdentityEvent, at as PermissionCreateInput, b as SystemHealth, bn as PaymentDocumentRender, bt as PersonOnboarding, c as HostObservability, cn as MeMethods, cr as Readiness, ct as PermissionReplaceInput, d as postHogObservability, dn as OfframpMethods, dr as isClaimed, dt as Budget, en as DestinationAddInput, et as OrganizationPaymentInput, f as CapxulClient, fn as OfframpQuote, fr as isRestoring, ft as OrgMe, g as IdentityRuntimeSendResult, gn as PaymentActivityEvidence, gt as CompletedPersonProfile, h as IdentityRuntime, hn as Payment, ht as AccountsMethods, i as ObservationAdapter, in as DestinationRail, ir as Destination$1, it as PermissionChangeInput, j as OrgTemplate, jn as ResolvedTarget, jt as AddressBookEntry, k as OrgMethods, kn as RecipientResolution, kt as ActorRequestsMethods, l as PostHogObservabilityClient, ln as MeProfile, lr as StateLabel, lt as PermissionRevokeInput, m as IdentityProfileDetails, mn as OfframpStatus, mr as InvocationControls, mt as OrgMeOptions, nn as DestinationListInput, nt as OrganizationPaymentsMethods, o as ObservationDelivery, on as DestinationsMethods, or as IdentityState, ot as PermissionMethods, p as CreateCapxulClientInput, pn as OfframpQuoteInput, pr as IdentityTransition, pt as OrgMeMethod, q as PayrollOptions, qn as Permission, qt as ActivityReference, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, rn as DestinationPayload, rr as TelemetryPort, rt as PermissionAssignInput, s as SdkFailureObservation, sn as FinancialOpsMethods, sr as OrgLane, st as PermissionOptions, t as CapxulClientInput, tn as DestinationKind, tt as OrganizationPaymentItemInput, u as PostHogObservabilityOptions, un as MovementActivityEvidence, ur as destination, ut as PermissionReadResult, v as Holding, vn as PaymentDocumentKind, vt as OrganizationOnboarding, w as CreateOrgInput, wn as PaymentStatus, wt as ActorProfile, x as MediaMethods, xn as PaymentDocumentVerification, xt as PersonOnboardingInput, y as SystemMethods, yn as PaymentDocumentRef, yt as OrganizationOnboardingInput, z as AuthorizeRunInput, zn as IdentityMethods, zt as ActivityDetail } from "./production-
|
|
2
|
+
import { $ as OrganizationPaymentBatchInput, $n as RequestStatus, $t as Destination, A as OrgScopedMethods, An as Ref, At as AddressBookAddInput, B as AuthorizeRunOptions, Bn as SmartAccountMethods, Bt as ActivityFilter, C as CurrentUserMethods, Cn as PaymentMoney, Ct as AccountMethods, D as MemberStatus, Dn as PaymentsMethods, Dt as ActorRequest, E as InviteMemberInput, En as PaymentType, Et as ActorRelationshipMethods, F as ResendInviteTokenInput, Fn as AccountLifecycle, Ft as InboxItem, G as PayrollGroupsMethods, Gn as ActorRef, Gt as ActivityPage, H as PayrollGroup, Hn as OrgLifecycle, Ht as ActivityKind, I as RoleDefinition, In as AccountSetupStep, It as InboxMethods, J as PayrollRun, Jn as SubmittedPermissionExecution, Jt as ActivitySummary, K as PayrollMethods, Kn as CurrentHoldings, Kt as ActivityRange, L as RoleSpendCap, Ln as isSettingUpLifecycle, Lt as ActivityAnnotation, M as OrgView, Mn as TargetReference, Mt as AddressBookLabelInput, N as OrganizationAccount, Nn as TargetsMethods, Nt as AddressBookMethods, O as MemberView, On as PaymentsPayInput, Ot as ActorRequestIssueInput, P as OrganizationAuditLogItem, Pn as fingerprintPaymentIntent, Pt as InboxApproveInput, Q as PayrollTermsUnit, Qn as PaymentStatus$1, Qt as DepositInstructions, R as RoleView, Rn as CompleteProfileInput, Rt as ActivityAnnotationInput, S as CurrentUserContext, Sn as PaymentDocumentsMethods, St as ReadyAccountLifecycle, T as DetectPendingOrgInvitationsResult, Tn as PaymentTiming, Tt as ActorProfileMethods, U as PayrollGroupInput, Un as OrgSetupStep, Ut as ActivityListParams, V as PayrollEngagementTerms, Vn as AuthMethods, Vt as ActivityItem, W as PayrollGroupMember, Wn as PayoutAddress, Wt as ActivityMethods, X as PayrollRunStatus, Xn as PAYMENT_DIRECTIONS, Xt as ActivitySummaryTotal, Y as PayrollRunItemInput, Yn as InboxStatus, Yt as ActivitySummaryParams, Z as PayrollRuns, Zn as PAYMENT_STATUSES, Zt as ActorReference, _ as HoldingsMethods, _n as PaymentDirection, _t as OnboardingMethods, a as ObservationContext, an as DestinationRemoveInput, ar as IdentityEvent, at as PermissionCreateInput, b as SystemHealth, bn as PaymentDocumentRender, bt as PersonOnboarding, c as HostObservability, cn as MeMethods, cr as Readiness, ct as PermissionReplaceInput, d as postHogObservability, dn as OfframpMethods, dr as isClaimed, dt as Budget, en as DestinationAddInput, et as OrganizationPaymentInput, f as CapxulClient, fn as OfframpQuote, fr as isRestoring, ft as OrgMe, g as IdentityRuntimeSendResult, gn as PaymentActivityEvidence, gt as CompletedPersonProfile, h as IdentityRuntime, hn as Payment, ht as AccountsMethods, i as ObservationAdapter, in as DestinationRail, ir as Destination$1, it as PermissionChangeInput, j as OrgTemplate, jn as ResolvedTarget, jt as AddressBookEntry, k as OrgMethods, kn as RecipientResolution, kt as ActorRequestsMethods, l as PostHogObservabilityClient, ln as MeProfile, lr as StateLabel, lt as PermissionRevokeInput, m as IdentityProfileDetails, mn as OfframpStatus, mr as InvocationControls, mt as OrgMeOptions, nn as DestinationListInput, nt as OrganizationPaymentsMethods, o as ObservationDelivery, on as DestinationsMethods, or as IdentityState, ot as PermissionMethods, p as CreateCapxulClientInput, pn as OfframpQuoteInput, pr as IdentityTransition, pt as OrgMeMethod, q as PayrollOptions, qn as Permission, qt as ActivityReference, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, rn as DestinationPayload, rr as TelemetryPort, rt as PermissionAssignInput, s as SdkFailureObservation, sn as FinancialOpsMethods, sr as OrgLane, st as PermissionOptions, t as CapxulClientInput, tn as DestinationKind, tt as OrganizationPaymentItemInput, u as PostHogObservabilityOptions, un as MovementActivityEvidence, ur as destination, ut as PermissionReadResult, v as Holding, vn as PaymentDocumentKind, vt as OrganizationOnboarding, w as CreateOrgInput, wn as PaymentStatus, wt as ActorProfile, x as MediaMethods, xn as PaymentDocumentVerification, xt as PersonOnboardingInput, y as SystemMethods, yn as PaymentDocumentRef, yt as OrganizationOnboardingInput, z as AuthorizeRunInput, zn as IdentityMethods, zt as ActivityDetail } from "./production-CJ42VSls.mjs";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
import { Effect, Layer } from "effect";
|
|
5
5
|
//#region ../errors/src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as signerFailure, B as isRestoring, C as normalizeExceptionErrorKind, E as safeExceptionLabel, F as CAPXUL_OPERATIONS, I as isCapxulOperation, L as normalizeCapxulOperation, M as PAYMENT_DIRECTIONS, N as PAYMENT_STATUSES, O as isSettingUpLifecycle, R as destination, S as SDK_VERSION, T as projectSdkException, _ as fingerprintPaymentIntent, b as failureDetail, d as embeddedSigner, f as openfortEmbeddedSigner, g as devPrivateKeySigner, h as deriveDevPrivateKey, j as resolveFailureMode, k as injectedWalletSigner, m as openfortEmbeddedWalletPort, p as openfortEmbeddedSignerFromWallet, r as postHogObservability, t as createCapxulClient$1, w as normalizeExceptionOperation, x as EXCEPTION_MESSAGE, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as isClaimed } from "./production-
|
|
1
|
+
import { A as signerFailure, B as isRestoring, C as normalizeExceptionErrorKind, E as safeExceptionLabel, F as CAPXUL_OPERATIONS, I as isCapxulOperation, L as normalizeCapxulOperation, M as PAYMENT_DIRECTIONS, N as PAYMENT_STATUSES, O as isSettingUpLifecycle, R as destination, S as SDK_VERSION, T as projectSdkException, _ as fingerprintPaymentIntent, b as failureDetail, d as embeddedSigner, f as openfortEmbeddedSigner, g as devPrivateKeySigner, h as deriveDevPrivateKey, j as resolveFailureMode, k as injectedWalletSigner, m as openfortEmbeddedWalletPort, p as openfortEmbeddedSignerFromWallet, r as postHogObservability, t as createCapxulClient$1, w as normalizeExceptionOperation, x as EXCEPTION_MESSAGE, y as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, z as isClaimed } from "./production-Bw1sledP.mjs";
|
|
2
2
|
import { A as currencySymbolFor, B as toCurrencyCode, G as toHandle, M as toAddress, T as EVM_ADDRESS_RE, Y as toPartyId, at as HANDLE_RE, b as configuredMoneyAssetById, ct as CapxulError, dt as isCapxulError, ft as CHAIN_UPSTREAMS, g as CAPXUL_PAYMENTS_V2_ADDRESS, k as assetIdFor, pt as FAILURE_MODES, st as CAPXUL_ERROR_CODES, ut as Errors, z as toCountryCode } from "./OAuthBearerAuthClient-CbU_W9Sp.mjs";
|
|
3
3
|
import { formatUnits } from "viem";
|
|
4
4
|
import { Effect } from "effect";
|
|
@@ -832,6 +832,10 @@ const OptionalAccountId = Schema.optional(AccountIdSchema$1);
|
|
|
832
832
|
const OptionalWeiAmount = Schema.optional(WeiAmountSchema$1);
|
|
833
833
|
const OptionalCurrencyCode = Schema.optional(CurrencyCodeSchema$1);
|
|
834
834
|
const OptionalBalanceBucket = Schema.optional(BalanceBucketSchema);
|
|
835
|
+
/** Which Safe a money record is about. Declared here so the money-domain
|
|
836
|
+
* props below can name it as well as the UI-step props further down. */
|
|
837
|
+
const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
|
|
838
|
+
const OptionalAccountKind = Schema.optional(AccountKindSchema);
|
|
835
839
|
const OptionalAddress = Schema.optional(AddressSchema$1);
|
|
836
840
|
const OptionalAppId = Schema.optional(AppIdSchema$1);
|
|
837
841
|
const OptionalBlockNumber = Schema.optional(BlockNumberSchema$1);
|
|
@@ -999,9 +1003,22 @@ const BootstrapFailedProps = Schema.Struct({
|
|
|
999
1003
|
reason: OptionalString,
|
|
1000
1004
|
target_host: OptionalString
|
|
1001
1005
|
});
|
|
1006
|
+
/**
|
|
1007
|
+
* R08 (#1966): which Safe was read, on which chain, of which token. `currency`
|
|
1008
|
+
* is the DISPLAY code the surface shows ("USD"); it never says which ERC-20 the
|
|
1009
|
+
* `balanceOf` actually hit, so a reader could not tell a treasury read from a
|
|
1010
|
+
* personal one, nor USDX from any other dollar-labelled token. The producer
|
|
1011
|
+
* takes each of these from the authority that already decided it — the verified
|
|
1012
|
+
* Organization row's chain, the configured token address — never from a label.
|
|
1013
|
+
* The verified `organization_id` and its group arrive from the backend
|
|
1014
|
+
* attribution, so they are not repeated here.
|
|
1015
|
+
*/
|
|
1002
1016
|
const AccountBalanceReadProps = Schema.Struct({
|
|
1003
1017
|
...TelemetryEnvelopeProps,
|
|
1004
1018
|
account_id: OptionalAccountId,
|
|
1019
|
+
account_kind: OptionalAccountKind,
|
|
1020
|
+
chain_id: OptionalChainId,
|
|
1021
|
+
token_address: OptionalAddress,
|
|
1005
1022
|
currency: OptionalCurrencyCode,
|
|
1006
1023
|
balance_bucket: OptionalBalanceBucket,
|
|
1007
1024
|
durationMs: OptionalDurationMs
|
|
@@ -1645,7 +1662,6 @@ Schema.Struct({
|
|
|
1645
1662
|
});
|
|
1646
1663
|
/** The one spelling of "whose scope did this happen in" across every surface. */
|
|
1647
1664
|
const ScopeKindSchema = Schema.Literals(["account", "organization"]);
|
|
1648
|
-
const AccountKindSchema = Schema.Literals(["personalSafe", "orgTreasury"]);
|
|
1649
1665
|
const OptionalReasonCode = Schema.optional(Schema.Literals(CAPXUL_ERROR_CODES));
|
|
1650
1666
|
const ActivityReferenceProps = {
|
|
1651
1667
|
reference_kind: Schema.Literals(["payment", "movement"]),
|
|
@@ -6119,7 +6135,7 @@ function subscribeActivity(deps, actor, controls, onChange) {
|
|
|
6119
6135
|
}
|
|
6120
6136
|
//#endregion
|
|
6121
6137
|
//#region package.json
|
|
6122
|
-
var version = "4.2.0-rc.
|
|
6138
|
+
var version = "4.2.0-rc.15";
|
|
6123
6139
|
//#endregion
|
|
6124
6140
|
//#region src/telemetry/exception-projection.ts
|
|
6125
6141
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -13691,32 +13707,27 @@ function makeOrgMethods(deps) {
|
|
|
13691
13707
|
});
|
|
13692
13708
|
return treasury(orgId, deps.invocationControls?.(options) ?? options);
|
|
13693
13709
|
},
|
|
13694
|
-
account: {
|
|
13695
|
-
if (options?.signal?.aborted) return {
|
|
13696
|
-
ok: false,
|
|
13697
|
-
error: Errors.cancelled({ operation: CAPXUL_OPERATIONS.org.account.get })
|
|
13698
|
-
};
|
|
13710
|
+
account: { get(options) {
|
|
13699
13711
|
const controls = deps.invocationControls?.(options) ?? options;
|
|
13700
|
-
|
|
13701
|
-
if (!treasuryResult.ok) return {
|
|
13702
|
-
ok: false,
|
|
13703
|
-
error: treasuryResult.error
|
|
13704
|
-
};
|
|
13705
|
-
const orgList = await listOrganizations(controls);
|
|
13706
|
-
if (!orgList.ok) return {
|
|
13712
|
+
if (controls?.signal?.aborted) return Promise.resolve({
|
|
13707
13713
|
ok: false,
|
|
13708
|
-
error:
|
|
13709
|
-
};
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
+
error: Errors.cancelled({ operation: CAPXUL_OPERATIONS.org.account.get })
|
|
13715
|
+
});
|
|
13716
|
+
return runCapxulEffect(Effect.gen(function* () {
|
|
13717
|
+
const parent = yield* Effect.currentSpan.pipe(Effect.orDie);
|
|
13718
|
+
const captured = carryInvocationParentSpan(controls, parent);
|
|
13719
|
+
const treasuryResult = yield* Effect.promise(() => treasury(orgId, captured));
|
|
13720
|
+
if (!treasuryResult.ok) return yield* Effect.fail(treasuryResult.error);
|
|
13721
|
+
const orgList = yield* Effect.promise(() => listOrganizations(captured));
|
|
13722
|
+
if (!orgList.ok) return yield* Effect.fail(orgList.error);
|
|
13723
|
+
const org = orgList.value.find((candidate) => candidate.id === orgId);
|
|
13724
|
+
return {
|
|
13714
13725
|
id: treasuryResult.value.id,
|
|
13715
13726
|
address: org?.safeAddress ?? null,
|
|
13716
13727
|
balance: treasuryResult.value.balance,
|
|
13717
13728
|
available: treasuryResult.value.available
|
|
13718
|
-
}
|
|
13719
|
-
};
|
|
13729
|
+
};
|
|
13730
|
+
}), observationOnlyControls(controls), CAPXUL_OPERATIONS.org.account.get, deps.runPromise);
|
|
13720
13731
|
} },
|
|
13721
13732
|
members(_options) {
|
|
13722
13733
|
if (_options?.signal?.aborted) return Promise.resolve({
|
|
@@ -1337,9 +1337,8 @@ interface MeMethods {
|
|
|
1337
1337
|
get(options?: {
|
|
1338
1338
|
readonly signal?: AbortSignal;
|
|
1339
1339
|
}): Promise<CapxulResult<MeProfile>>;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
}): Promise<CapxulResult<DepositInstructions>>;
|
|
1340
|
+
/** R08 (#1966): accepts a captured attempt, exactly as the treasury read does. */
|
|
1341
|
+
depositInstructions(options?: InvocationControls): Promise<CapxulResult<DepositInstructions>>;
|
|
1343
1342
|
}
|
|
1344
1343
|
interface PaymentMoney {
|
|
1345
1344
|
readonly currency: string;
|
|
@@ -1921,9 +1920,8 @@ interface ActorProfileMethods {
|
|
|
1921
1920
|
get(options?: {
|
|
1922
1921
|
readonly signal?: AbortSignal;
|
|
1923
1922
|
}): Promise<CapxulResult<ActorProfile>>;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
}): Promise<CapxulResult<DepositInstructions>>;
|
|
1923
|
+
/** R08 (#1966): accepts a captured attempt, exactly as the treasury read does. */
|
|
1924
|
+
depositInstructions(options?: InvocationControls): Promise<CapxulResult<DepositInstructions>>;
|
|
1927
1925
|
}
|
|
1928
1926
|
interface ActorRelationshipMethods {
|
|
1929
1927
|
readonly addressBook: AddressBookMethods;
|
|
@@ -2509,14 +2507,15 @@ interface OrgScopedMethods extends ActorRelationshipMethods {
|
|
|
2509
2507
|
retrySetup(options?: {
|
|
2510
2508
|
readonly signal?: AbortSignal;
|
|
2511
2509
|
}): Promise<CapxulResult<OrgLifecycle>>;
|
|
2512
|
-
/**
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2510
|
+
/**
|
|
2511
|
+
* The Organization treasury Account. R08 (#1966): the declared option type is
|
|
2512
|
+
* the `InvocationControls` this surface already forwards, so a screen that
|
|
2513
|
+
* captured one user attempt can hand the same `correlation_id`/`journey_id`
|
|
2514
|
+
* to the read it starts. `{ signal }` callers are unaffected.
|
|
2515
|
+
*/
|
|
2516
|
+
treasury(options?: InvocationControls): Promise<CapxulResult<Account$1>>;
|
|
2516
2517
|
readonly account: {
|
|
2517
|
-
get(options?:
|
|
2518
|
-
readonly signal?: AbortSignal;
|
|
2519
|
-
}): Promise<CapxulResult<OrganizationAccount>>;
|
|
2518
|
+
get(options?: InvocationControls): Promise<CapxulResult<OrganizationAccount>>;
|
|
2520
2519
|
};
|
|
2521
2520
|
members(options?: {
|
|
2522
2521
|
readonly signal?: AbortSignal;
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as CapxulResult } from "../OAuthBearerAuthClient-C-ip-z8M.mjs";
|
|
2
|
-
import { er as TelemetryEvent, f as CapxulClient, i as ObservationAdapter, n as ProductionSignerControls, nr as TelemetryIdentifyInput, pr as IdentityTransition, t as CapxulClientInput, tr as TelemetryGroupInput } from "../production-
|
|
2
|
+
import { er as TelemetryEvent, f as CapxulClient, i as ObservationAdapter, n as ProductionSignerControls, nr as TelemetryIdentifyInput, pr as IdentityTransition, t as CapxulClientInput, tr as TelemetryGroupInput } from "../production-CJ42VSls.mjs";
|
|
3
3
|
import { Effect, Layer } from "effect";
|
|
4
4
|
//#region src/testing/production-client.d.ts
|
|
5
5
|
/** Create the one production client with per-client controls at its signing boundaries. */
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as fromWei, P as redactTelemetryEvent, a as smartAccountErrorFromCapxul, c as identityErrorFromCapxul, i as assembleCapxulClient, l as convexCallErrorFromCapxul, n as createCapxulClientWithSignerControls, o as accountReadErrorFromCapxul, s as wireChainId, u as bootstrapErrorFromCapxul, v as toWei } from "../production-
|
|
1
|
+
import { D as fromWei, P as redactTelemetryEvent, a as smartAccountErrorFromCapxul, c as identityErrorFromCapxul, i as assembleCapxulClient, l as convexCallErrorFromCapxul, n as createCapxulClientWithSignerControls, o as accountReadErrorFromCapxul, s as wireChainId, u as bootstrapErrorFromCapxul, v as toWei } from "../production-Bw1sledP.mjs";
|
|
2
2
|
import { G as toHandle, H as toEmail, I as toAuthUserId, K as toJwtToken, M as toAddress, N as toAllowedOrigin, P as toAppId, Q as toPublishableKey, R as toChainId, U as toEpochMs, V as toDurationMs, W as toEpochSeconds, ct as CapxulError, d as authClientPortFromPromiseAdapter, et as toSessionToken, it as validateHandle, j as toAccountId, n as readClockNow, q as toKycTier, r as InMemoryAuthCacheAdapter, ut as Errors, y as deriveCapxulSafeAddress, z as toCountryCode } from "../OAuthBearerAuthClient-CbU_W9Sp.mjs";
|
|
3
3
|
import { keccak256 } from "viem";
|
|
4
4
|
import { Effect, Result, Semaphore } from "effect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sdk",
|
|
3
|
-
"version": "4.2.0-rc.
|
|
3
|
+
"version": "4.2.0-rc.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
48
48
|
"vite-plus": "0.3.0",
|
|
49
49
|
"vitest": "4.1.11",
|
|
50
|
-
"@capxul/config": "0.3.0",
|
|
51
50
|
"@capxul/errors": "0.3.0",
|
|
52
|
-
"@capxul/
|
|
53
|
-
"@capxul/
|
|
51
|
+
"@capxul/config": "0.3.0",
|
|
52
|
+
"@capxul/observability": "4.2.0-rc.15",
|
|
53
|
+
"@capxul/wire": "0.7.0",
|
|
54
54
|
"@capxul/typescript-config": "0.0.0",
|
|
55
|
-
"@capxul/
|
|
55
|
+
"@capxul/types": "0.3.0"
|
|
56
56
|
},
|
|
57
57
|
"_permissionlessPinReason": "permissionless.toSafeSmartAccount is pinned to 0.3.4 for live Safe deployment E2E. Counterfactual address fixtures captured 2026-05-17 in packages/backend/convex/_shared/__tests__/counterfactual.test.ts and packages/config/tests/safe.test.ts must be re-verified before upgrading.",
|
|
58
58
|
"scripts": {
|