@capxul/sdk 4.20.0-beta.36 → 4.20.0-beta.37
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 +8 -0
- package/dist/{access-D5D77YLI.mjs → access-aMjL10vw.mjs} +7299 -6134
- package/dist/{index-9tVY0-g7.d.mts → index-DzfcTT6t.d.mts} +424 -136
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +41 -37
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{organizations-BKiw2PjB.mjs → organizations-DPpyjjx2.mjs} +123 -132
- package/dist/{permission-approvals-B2LrXyRx.mjs → permission-approvals-B6Oqszeb.mjs} +4 -4
- package/dist/{production-CLAx7XAB.mjs → production-PGbIhEG0.mjs} +731 -264
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +21 -8
- package/package.json +4 -4
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aa as CapxulSigner, Bo as TelemetryIdentifyInput, Ho as TelemetryPortEvent, J as CapxulClient, Vo as TelemetryEvent, Zo as ObservationAdapter, f as CapxulClientInput, ht as IdentityTransition, j as OpenfortBrowserSignerOptions, os as CapxulResult, po as OrganizationSetup, zo as TelemetryGroupInput } from "../index-DzfcTT6t.mjs";
|
|
2
2
|
import { Effect, Layer } from "effect";
|
|
3
3
|
//#region src/platform/production-client.d.ts
|
|
4
4
|
/** Per-client signing controls; only the testing entry exposes these to consumers. */
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as cloneTelemetryEvent, c as identityErrorFromCapxul, l as bootstrapErrorFromCapxul, n as createCapxulClientWithSignerControls, o as cloneTelemetryProps, r as assembleCapxulClient, s as IdentityPortTag } from "../production-
|
|
1
|
+
import { $r as toAccountId, Bi as InMemoryAuthCacheAdapter, Ci as toAddress, Ei as absurd, Fi as authClientPortFromPromiseAdapter, Gi as toEpochMs, Gn as ClockError, Ji as toEmail, Jn as readClockNow, Ki as toEpochSeconds, Kn as ClockPortTag, Lt as CONFIGURED_MONEY_ASSETS, M as wireChainId, Mi as toAllowedOrigin, Ni as toAppId, O as convexCallErrorFromCapxul, Ot as deriveCapxulSafeAddress, Pi as toPublishableKey, Q as assetAmountFromRaw, Sn as toHandle, Ti as toWeiAmount, Wi as toDurationMs, Xi as toSessionToken, Yi as toJwtToken, Zi as Errors, _ as accountFromAccountPositions, f as smartAccountErrorFromCapxul, na as CapxulError, nr as redactTelemetryEvent, qi as toAuthUserId, qn as clockFailure, rt as toRaw, vn as toCountryCode, w as accountReadErrorFromCapxul, wi as toChainId, wn as validateHandle, yn as toKycTier, zr as toOrgId } from "../access-aMjL10vw.mjs";
|
|
2
|
+
import { a as cloneTelemetryEvent, c as identityErrorFromCapxul, l as bootstrapErrorFromCapxul, n as createCapxulClientWithSignerControls, o as cloneTelemetryProps, r as assembleCapxulClient, s as IdentityPortTag } from "../production-PGbIhEG0.mjs";
|
|
3
3
|
import { Effect, Layer, Result, Semaphore } from "effect";
|
|
4
4
|
import { getFunctionName } from "convex/server";
|
|
5
5
|
//#region src/testing/production-client.ts
|
|
@@ -608,7 +608,12 @@ async function runAuthCacheEffect(effect, operation) {
|
|
|
608
608
|
const result = await Effect.runPromise(Effect.result(effect));
|
|
609
609
|
if (Result.isFailure(result)) return {
|
|
610
610
|
ok: false,
|
|
611
|
-
error: Errors.
|
|
611
|
+
error: Errors.providerUnavailable({
|
|
612
|
+
provider: "auth-cache",
|
|
613
|
+
operation,
|
|
614
|
+
mode: "unknown",
|
|
615
|
+
cause: result.failure
|
|
616
|
+
})
|
|
612
617
|
};
|
|
613
618
|
return {
|
|
614
619
|
ok: true,
|
|
@@ -738,13 +743,21 @@ var ConvexCallStubAdapter = class {
|
|
|
738
743
|
const failure = this.#script.failures?.get(path);
|
|
739
744
|
if (failure !== void 0) return Effect.fail(mapFailure(path, failure));
|
|
740
745
|
if (this.#script.responses?.has(path)) return Effect.succeed(wireReply(fn, this.#script.responses.get(path)));
|
|
741
|
-
return Effect.fail(convexCallErrorFromCapxul(path, Errors.
|
|
746
|
+
return Effect.fail(convexCallErrorFromCapxul(path, Errors.providerUnavailable({
|
|
747
|
+
provider: "convex",
|
|
748
|
+
operation: path,
|
|
749
|
+
mode: "unknown"
|
|
750
|
+
})));
|
|
742
751
|
}
|
|
743
752
|
};
|
|
744
753
|
function mapFailure(operation, failure) {
|
|
745
754
|
if (failure instanceof CapxulError) return convexCallErrorFromCapxul(operation, failure);
|
|
746
|
-
|
|
747
|
-
|
|
755
|
+
return convexCallErrorFromCapxul(operation, Errors.providerUnavailable({
|
|
756
|
+
provider: "convex",
|
|
757
|
+
operation,
|
|
758
|
+
mode: "unknown",
|
|
759
|
+
cause: failure
|
|
760
|
+
}));
|
|
748
761
|
}
|
|
749
762
|
//#endregion
|
|
750
763
|
//#region src/testing/identity/InMemoryIdentityAdapter.ts
|
|
@@ -824,7 +837,7 @@ var InMemoryIdentityAdapter = class {
|
|
|
824
837
|
}
|
|
825
838
|
#now(operation) {
|
|
826
839
|
if (this.#clock === void 0) return Effect.succeed(toEpochMs(0));
|
|
827
|
-
return this.#clock.now.pipe(Effect.mapError((cause) => identityErrorFromCapxul(operation,
|
|
840
|
+
return this.#clock.now.pipe(Effect.mapError((cause) => identityErrorFromCapxul(operation, clockFailure(cause), cause)));
|
|
828
841
|
}
|
|
829
842
|
};
|
|
830
843
|
Layer.effect(IdentityPortTag, Effect.map(ClockPortTag, (clock) => new InMemoryIdentityAdapter({ clock })));
|
|
@@ -960,7 +973,7 @@ var InMemorySmartAccountAdapter = class {
|
|
|
960
973
|
}
|
|
961
974
|
#now(operation) {
|
|
962
975
|
if (this.#clock === void 0) return Effect.succeed(toEpochMs(0));
|
|
963
|
-
return this.#clock.now.pipe(Effect.mapError((cause) => smartAccountErrorFromCapxul(operation,
|
|
976
|
+
return this.#clock.now.pipe(Effect.mapError((cause) => smartAccountErrorFromCapxul(operation, clockFailure(cause), cause)));
|
|
964
977
|
}
|
|
965
978
|
};
|
|
966
979
|
function fail(operation, error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sdk",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.37",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@effect/platform-node": "4.0.0",
|
|
67
67
|
"@effect/platform-node-shared": "4.0.0",
|
|
68
|
-
"@openfort/openfort-js": "^
|
|
68
|
+
"@openfort/openfort-js": "^2.6.1",
|
|
69
69
|
"convex": "^1.39.1",
|
|
70
70
|
"effect": "4.0.0",
|
|
71
71
|
"viem": "^2.53.1"
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"vite-plus": "1.0.0",
|
|
85
85
|
"vitest": "5.0.1",
|
|
86
86
|
"zodiac-roles-sdk": "2.22.2",
|
|
87
|
-
"@capxul/observability": "4.20.0-beta.
|
|
87
|
+
"@capxul/observability": "4.20.0-beta.37",
|
|
88
88
|
"@capxul/typescript-config": "0.0.0",
|
|
89
|
-
"@capxul/protocol": "0.2.0-beta.
|
|
89
|
+
"@capxul/protocol": "0.2.0-beta.8"
|
|
90
90
|
},
|
|
91
91
|
"_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.",
|
|
92
92
|
"scripts": {
|