@capxul/sdk 2.3.1 → 2.3.2
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/{create-capxul-client-DTQDSOvO.mjs → create-capxul-client-DgvnboPR.mjs} +5 -115
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{observation-Ci8gIQjm.d.mts → observation-CLhrvkF6.d.mts} +5 -5
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -2702,8 +2702,8 @@ const nonEmpty = (name) => Schema.String.pipe(Schema.refine((value) => value.len
|
|
|
2702
2702
|
const nonNegativeInteger = (name) => Schema.Number.pipe(Schema.refine((value) => Number.isSafeInteger(value) && value >= 0, { message: `${name} must be a non-negative safe integer` }));
|
|
2703
2703
|
const BaseSepoliaChainIdSchema = ChainIdSchema$1.pipe(Schema.refine((value) => value === 84532, { message: "chainId must be 84532" }));
|
|
2704
2704
|
const Uint16Schema = Schema.Number.pipe(Schema.refine((value) => Number.isSafeInteger(value) && value >= 0 && value <= 65535, { message: "kind must be a uint16 value" }));
|
|
2705
|
-
|
|
2706
|
-
|
|
2705
|
+
Schema.Number.pipe(Schema.refine((value) => Number.isSafeInteger(value) && value >= 0 && value <= 255, { message: "must be a uint8 value" }));
|
|
2706
|
+
Schema.String.pipe(Schema.refine((value) => /^0x[0-9a-fA-F]{8}$/u.test(value), { message: "must be a 0x-prefixed bytes4 value" }));
|
|
2707
2707
|
const HexDataSchema = Schema.String.pipe(Schema.refine((value) => /^0x(?:[0-9a-fA-F]{2})*$/u.test(value), { message: "must be 0x-prefixed byte data" }));
|
|
2708
2708
|
const Uint48Schema = Schema.Number.pipe(Schema.refine((value) => Number.isSafeInteger(value) && value >= 0 && value <= 0xffffffffffff, { message: "must be a uint48 value" }));
|
|
2709
2709
|
const Uint256StringSchema = Schema.String.pipe(Schema.refine((value) => {
|
|
@@ -2846,8 +2846,7 @@ const PermissionStateSchema = Schema.Literals([
|
|
|
2846
2846
|
"active",
|
|
2847
2847
|
"suspended",
|
|
2848
2848
|
"revoked",
|
|
2849
|
-
"superseded"
|
|
2850
|
-
"quarantined"
|
|
2849
|
+
"superseded"
|
|
2851
2850
|
]);
|
|
2852
2851
|
const StoredPermissionCommandSchema = Schema.Struct({
|
|
2853
2852
|
commandId: PaymentCommandIdSchema,
|
|
@@ -2871,8 +2870,7 @@ Schema.Struct({
|
|
|
2871
2870
|
Schema.Union([
|
|
2872
2871
|
Schema.Struct({
|
|
2873
2872
|
status: Schema.Literal("pending"),
|
|
2874
|
-
reason: Schema.
|
|
2875
|
-
receipt: Schema.optional(ReceiptRefSchema)
|
|
2873
|
+
reason: Schema.Literal("receipt_missing")
|
|
2876
2874
|
}),
|
|
2877
2875
|
Schema.Struct({
|
|
2878
2876
|
status: Schema.Literal("verified"),
|
|
@@ -3141,112 +3139,6 @@ Schema.Struct({
|
|
|
3141
3139
|
transfers: Schema.Array(FinalizedTransferEvidenceSchema),
|
|
3142
3140
|
requestCount: nonNegativeInteger("requestCount")
|
|
3143
3141
|
});
|
|
3144
|
-
const FinalizedPermissionFactRangeSchema = Schema.Struct({
|
|
3145
|
-
chainId: BaseSepoliaChainIdSchema,
|
|
3146
|
-
organizationSafe: SafeAddressSchema,
|
|
3147
|
-
rolesModules: Schema.Array(ModuleAddressSchema),
|
|
3148
|
-
fromBlock: BlockNumberSchema$1,
|
|
3149
|
-
toBlock: BlockNumberSchema$1
|
|
3150
|
-
}).pipe(Schema.refine((range) => range.toBlock >= range.fromBlock && range.toBlock - range.fromBlock < 1e4, { message: "toBlock must be at or after fromBlock and the range must contain fewer than 10,000 block intervals" }));
|
|
3151
|
-
const FinalizedPermissionFactCommonSchema = Schema.Struct({
|
|
3152
|
-
chainId: BaseSepoliaChainIdSchema,
|
|
3153
|
-
transactionHash: TxHashSchema$1,
|
|
3154
|
-
blockNumber: BlockNumberSchema$1,
|
|
3155
|
-
blockHash: Bytes32Schema,
|
|
3156
|
-
logIndex: LogIndexSchema,
|
|
3157
|
-
emitter: AddressSchema$1,
|
|
3158
|
-
topic0: Bytes32Schema,
|
|
3159
|
-
dataHash: Bytes32Schema,
|
|
3160
|
-
authorityHash: Bytes32Schema
|
|
3161
|
-
});
|
|
3162
|
-
const FinalizedPermissionModuleFactSchema = Schema.Struct({
|
|
3163
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3164
|
-
kind: Schema.Literals(["module_enabled", "module_disabled"]),
|
|
3165
|
-
organizationSafe: SafeAddressSchema,
|
|
3166
|
-
module: ModuleAddressSchema
|
|
3167
|
-
});
|
|
3168
|
-
const FinalizedPermissionRoleAssignmentFactSchema = Schema.Struct({
|
|
3169
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3170
|
-
kind: Schema.Literal("assignment"),
|
|
3171
|
-
rolesModule: ModuleAddressSchema,
|
|
3172
|
-
memberSafe: SafeAddressSchema,
|
|
3173
|
-
roleKeys: Schema.Array(RoleKeySchema),
|
|
3174
|
-
memberOf: Schema.Array(Schema.Boolean)
|
|
3175
|
-
});
|
|
3176
|
-
const FinalizedPermissionTargetAuthorityFactSchema = Schema.Union([Schema.Struct({
|
|
3177
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3178
|
-
kind: Schema.Literal("allow_target"),
|
|
3179
|
-
rolesModule: ModuleAddressSchema,
|
|
3180
|
-
roleKey: RoleKeySchema,
|
|
3181
|
-
target: AddressSchema$1,
|
|
3182
|
-
options: Uint8Schema
|
|
3183
|
-
}), Schema.Struct({
|
|
3184
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3185
|
-
kind: Schema.Literals(["scope_target", "revoke_target"]),
|
|
3186
|
-
rolesModule: ModuleAddressSchema,
|
|
3187
|
-
roleKey: RoleKeySchema,
|
|
3188
|
-
target: AddressSchema$1
|
|
3189
|
-
})]);
|
|
3190
|
-
const PermissionScopeConditionSchema = Schema.Struct({
|
|
3191
|
-
parent: Uint8Schema,
|
|
3192
|
-
paramType: Uint8Schema,
|
|
3193
|
-
operator: Uint8Schema,
|
|
3194
|
-
compValue: HexDataSchema
|
|
3195
|
-
});
|
|
3196
|
-
const FinalizedPermissionFunctionAuthorityFactSchema = Schema.Union([
|
|
3197
|
-
Schema.Struct({
|
|
3198
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3199
|
-
kind: Schema.Literal("allow_function"),
|
|
3200
|
-
rolesModule: ModuleAddressSchema,
|
|
3201
|
-
roleKey: RoleKeySchema,
|
|
3202
|
-
target: AddressSchema$1,
|
|
3203
|
-
selector: Bytes4Schema,
|
|
3204
|
-
options: Uint8Schema
|
|
3205
|
-
}),
|
|
3206
|
-
Schema.Struct({
|
|
3207
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3208
|
-
kind: Schema.Literal("scope_function"),
|
|
3209
|
-
rolesModule: ModuleAddressSchema,
|
|
3210
|
-
roleKey: RoleKeySchema,
|
|
3211
|
-
target: AddressSchema$1,
|
|
3212
|
-
selector: Bytes4Schema,
|
|
3213
|
-
options: Uint8Schema,
|
|
3214
|
-
conditions: Schema.Array(PermissionScopeConditionSchema)
|
|
3215
|
-
}),
|
|
3216
|
-
Schema.Struct({
|
|
3217
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3218
|
-
kind: Schema.Literal("revoke_function"),
|
|
3219
|
-
rolesModule: ModuleAddressSchema,
|
|
3220
|
-
roleKey: RoleKeySchema,
|
|
3221
|
-
target: AddressSchema$1,
|
|
3222
|
-
selector: Bytes4Schema
|
|
3223
|
-
})
|
|
3224
|
-
]);
|
|
3225
|
-
const FinalizedPermissionAllowanceAuthorityFactSchema = Schema.Struct({
|
|
3226
|
-
...FinalizedPermissionFactCommonSchema.fields,
|
|
3227
|
-
kind: Schema.Literal("allowance"),
|
|
3228
|
-
rolesModule: ModuleAddressSchema,
|
|
3229
|
-
allowanceKey: AllowanceKeySchema,
|
|
3230
|
-
balance: WeiAmountSchema$1,
|
|
3231
|
-
maxRefill: WeiAmountSchema$1,
|
|
3232
|
-
refill: WeiAmountSchema$1,
|
|
3233
|
-
period: Uint256StringSchema,
|
|
3234
|
-
timestamp: Uint256StringSchema
|
|
3235
|
-
});
|
|
3236
|
-
const FinalizedPermissionFactSchema = Schema.Union([
|
|
3237
|
-
FinalizedPermissionModuleFactSchema,
|
|
3238
|
-
FinalizedPermissionRoleAssignmentFactSchema,
|
|
3239
|
-
FinalizedPermissionTargetAuthorityFactSchema,
|
|
3240
|
-
FinalizedPermissionFunctionAuthorityFactSchema,
|
|
3241
|
-
FinalizedPermissionAllowanceAuthorityFactSchema
|
|
3242
|
-
]);
|
|
3243
|
-
Schema.Struct({
|
|
3244
|
-
range: FinalizedPermissionFactRangeSchema,
|
|
3245
|
-
finalizedHead: FinalizedBlockReferenceSchema,
|
|
3246
|
-
anchor: FinalizedBlockReferenceSchema,
|
|
3247
|
-
facts: Schema.Array(FinalizedPermissionFactSchema),
|
|
3248
|
-
requestCount: nonNegativeInteger("requestCount")
|
|
3249
|
-
});
|
|
3250
3142
|
const FinalizedMoneyEvidenceCommonSchema = Schema.Struct({
|
|
3251
3143
|
chainId: BaseSepoliaChainIdSchema,
|
|
3252
3144
|
contractAddress: AddressSchema$1,
|
|
@@ -5518,7 +5410,7 @@ function mapOk(result, f) {
|
|
|
5518
5410
|
}
|
|
5519
5411
|
//#endregion
|
|
5520
5412
|
//#region package.json
|
|
5521
|
-
var version = "2.3.
|
|
5413
|
+
var version = "2.3.2";
|
|
5522
5414
|
//#endregion
|
|
5523
5415
|
//#region src/ports/auth-client.ts
|
|
5524
5416
|
var AuthClientError = class extends Data.TaggedError("AuthClientError") {};
|
|
@@ -5978,8 +5870,6 @@ const PermissionMirrorVerificationProps = Schema.Struct({
|
|
|
5978
5870
|
outcome: Schema.String,
|
|
5979
5871
|
reason: Schema.String,
|
|
5980
5872
|
chain_id: Schema.Number,
|
|
5981
|
-
finality: Schema.String,
|
|
5982
|
-
lag_blocks: Schema.Number,
|
|
5983
5873
|
retry_count: Schema.Number
|
|
5984
5874
|
});
|
|
5985
5875
|
const MovementScanWindowProps = Schema.Struct({
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as toAddress, C as Address, H as PartyId, J as RoleKey, N as CountryCode, O as AuthSession, S as AccountId, V as OrgId, a as SignerStatusStore, at as Errors, c as AccountProviderSource, ct as isCapxulError, d as eip1193AccountProvider, et as toCountryCode, f as localPrivateKeyAccountProvider, g as SmartAccount, h as Session, i as SignerStatus, it as CapxulErrorDetails, j as BudgetId, k as AuthUserId, l as AccountRequirement, m as Profile, n as CapxulSigner, nt as CapxulError, o as injectedWalletSigner, p as CapxulResult, r as Eip1193RequestProvider, rt as CapxulErrorCode, s as AccountProvider, st as FailureMode, t as CapxulDigestSigner, tt as CAPXUL_ERROR_CODES, u as Eip1193Provider, x as Account, z as Money } from "./signer-BejoR3bA.mjs";
|
|
2
|
-
import { $ as AccountMethods, $t as RecipientResolution, A as OrganizationAccount, An as isClaimed, At as FinancialOpsMethods, B as PermissionAssignInput, Bt as Payment, C as InviteMemberInput, Cn as Destination$1, Ct as DestinationAddInput, D as OrgScopedMethods, Dn as Readiness, Dt as DestinationRail, E as OrgMethods, En as OrgLane, Et as DestinationPayload, F as RoleView, Ft as OfframpQuote, G as PermissionReplaceInput, Gt as PaymentDocumentVerification, H as PermissionCreateInput, Ht as PaymentDocumentKind, I as OrganizationPaymentBatchInput, It as OfframpQuoteInput, J as Budget, Jt as PaymentStatus, K as PermissionRevokeInput, Kt as PaymentDocumentsMethods, L as OrganizationPaymentInput, Lt as OfframpStatus, M as ResendInviteTokenInput, Mn as IdentityTransition, Mt as MeMethods, N as RoleDefinition, Nn as InvocationControls, Nt as MeProfile, O as OrgTemplate, On as StateLabel, Ot as DestinationRemoveInput, P as RoleSpendCap, Pt as OfframpMethods, Q as AccountsMethods, Qt as PaymentsPayInput, R as OrganizationPaymentItemInput, Rt as Payee, S as DetectPendingOrgInvitationsResult, Sn as CAPXUL_PAYMENTS_V2_ADDRESS, St as Destination, T as MemberView, Tn as IdentityState, Tt as DestinationListInput, U as PermissionMethods, Ut as PaymentDocumentRef, V as PermissionChangeInput, Vt as PaymentDirection, W as PermissionOptions, Wt as PaymentDocumentRender, X as OrgMeMethod, Xt as PaymentType, Y as OrgMe, Yt as PaymentTiming, Z as OrgMeOptions, Zt as PaymentsMethods, _ as SystemHealth, _n as SubmittedPermissionExecution, _t as ActivityMethods, a as SdkFailureObservation, an as fingerprintPaymentIntent, at as ActorRequestsMethods, b as CurrentUserMethods, bt as ActorReference, c as PostHogObservabilityOptions, cn as isSettingUpLifecycle, ct as AddressBookLabelInput, d as CreateCapxulClientInput, dn as AuthMethods, dt as InboxItem, en as RecipientResolutionKind, et as ActorProfile, f as IdentityProfileDetails, fn as OrgLifecycle, ft as InboxMethods, g as SystemMethods, gn as Permission, gt as ActivityListParams, h as HoldingsMethods, hn as MovementAnnotation, ht as ActivityItem, i as ObservationDelivery, in as TargetsMethods, it as ActorRequestIssueInput, j as OrganizationAuditLogItem, jn as isRestoring, jt as HandlesMethods, k as OrgView, kn as destination, kt as DestinationsMethods, l as postHogObservability, ln as IdentityMethods, lt as AddressBookMethods, m as IdentityRuntimeSendResult, mn as CurrentHoldings, mt as ActivityDetail, n as ObservationAdapter, nn as ResolvedTarget, nt as ActorRelationshipMethods, o as HostObservability, on as AccountLifecycle, ot as AddressBookAddInput, p as IdentityRuntime, pn as OrgSetupStep, pt as ActivityAnnotationInput, q as PermissionReadResult, qt as PaymentMoney, r as ObservationContext, rn as TargetReference, rt as ActorRequest, s as PostHogObservabilityClient, sn as AccountSetupStep, st as AddressBookEntry, t as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, tn as Ref, tt as ActorProfileMethods, u as CapxulClient, un as SmartAccountMethods, ut as InboxApproveInput, v as MediaMethods, vt as ActivityPage, w as MemberStatus, wn as IdentityEvent, wt as DestinationKind, x as CreateOrgInput, xn as TelemetryPort, xt as DepositInstructions, y as CurrentUserContext, yt as ActivityReference, z as OrganizationPaymentsMethods, zt as PayeesMethods } from "./observation-
|
|
2
|
+
import { $ as AccountMethods, $t as RecipientResolution, A as OrganizationAccount, An as isClaimed, At as FinancialOpsMethods, B as PermissionAssignInput, Bt as Payment, C as InviteMemberInput, Cn as Destination$1, Ct as DestinationAddInput, D as OrgScopedMethods, Dn as Readiness, Dt as DestinationRail, E as OrgMethods, En as OrgLane, Et as DestinationPayload, F as RoleView, Ft as OfframpQuote, G as PermissionReplaceInput, Gt as PaymentDocumentVerification, H as PermissionCreateInput, Ht as PaymentDocumentKind, I as OrganizationPaymentBatchInput, It as OfframpQuoteInput, J as Budget, Jt as PaymentStatus, K as PermissionRevokeInput, Kt as PaymentDocumentsMethods, L as OrganizationPaymentInput, Lt as OfframpStatus, M as ResendInviteTokenInput, Mn as IdentityTransition, Mt as MeMethods, N as RoleDefinition, Nn as InvocationControls, Nt as MeProfile, O as OrgTemplate, On as StateLabel, Ot as DestinationRemoveInput, P as RoleSpendCap, Pt as OfframpMethods, Q as AccountsMethods, Qt as PaymentsPayInput, R as OrganizationPaymentItemInput, Rt as Payee, S as DetectPendingOrgInvitationsResult, Sn as CAPXUL_PAYMENTS_V2_ADDRESS, St as Destination, T as MemberView, Tn as IdentityState, Tt as DestinationListInput, U as PermissionMethods, Ut as PaymentDocumentRef, V as PermissionChangeInput, Vt as PaymentDirection, W as PermissionOptions, Wt as PaymentDocumentRender, X as OrgMeMethod, Xt as PaymentType, Y as OrgMe, Yt as PaymentTiming, Z as OrgMeOptions, Zt as PaymentsMethods, _ as SystemHealth, _n as SubmittedPermissionExecution, _t as ActivityMethods, a as SdkFailureObservation, an as fingerprintPaymentIntent, at as ActorRequestsMethods, b as CurrentUserMethods, bt as ActorReference, c as PostHogObservabilityOptions, cn as isSettingUpLifecycle, ct as AddressBookLabelInput, d as CreateCapxulClientInput, dn as AuthMethods, dt as InboxItem, en as RecipientResolutionKind, et as ActorProfile, f as IdentityProfileDetails, fn as OrgLifecycle, ft as InboxMethods, g as SystemMethods, gn as Permission, gt as ActivityListParams, h as HoldingsMethods, hn as MovementAnnotation, ht as ActivityItem, i as ObservationDelivery, in as TargetsMethods, it as ActorRequestIssueInput, j as OrganizationAuditLogItem, jn as isRestoring, jt as HandlesMethods, k as OrgView, kn as destination, kt as DestinationsMethods, l as postHogObservability, ln as IdentityMethods, lt as AddressBookMethods, m as IdentityRuntimeSendResult, mn as CurrentHoldings, mt as ActivityDetail, n as ObservationAdapter, nn as ResolvedTarget, nt as ActorRelationshipMethods, o as HostObservability, on as AccountLifecycle, ot as AddressBookAddInput, p as IdentityRuntime, pn as OrgSetupStep, pt as ActivityAnnotationInput, q as PermissionReadResult, qt as PaymentMoney, r as ObservationContext, rn as TargetReference, rt as ActorRequest, s as PostHogObservabilityClient, sn as AccountSetupStep, st as AddressBookEntry, t as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, tn as Ref, tt as ActorProfileMethods, u as CapxulClient, un as SmartAccountMethods, ut as InboxApproveInput, v as MediaMethods, vt as ActivityPage, w as MemberStatus, wn as IdentityEvent, wt as DestinationKind, x as CreateOrgInput, xn as TelemetryPort, xt as DepositInstructions, y as CurrentUserContext, yt as ActivityReference, z as OrganizationPaymentsMethods, zt as PayeesMethods } from "./observation-CLhrvkF6.mjs";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
import { Context, Effect, Layer } from "effect";
|
|
5
5
|
import { FunctionReference } from "convex/server";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as fingerprintPaymentIntent, B as formatTraceparent, C as ClockPortTag, D as AuthClientError, E as authClientPortFromPromiseAdapter, F as sanitizeObservationContext, G as signerFailure, H as readInvocationObservation, I as CAPXUL_FUNCTIONS, J as BASE_SEPOLIA_CHAIN_ID, K as CAPXUL_PAYMENTS_V2_ADDRESS, L as BootstrapEnvelope, M as fromWei, N as OBSERVATION_CONTEXT_HEADER, O as AuthClientPortTag, P as encodeObservationContextHeader, Q as isRestoring, R as EngineeringTelemetryBootstrapPolicy, S as ClockError, T as bootstrapErrorFromCapxul, U as causeChain, V as copyInvocationObservation, W as injectedWalletSigner, X as destination, Z as isClaimed, _ as wireChainId, a as observeFailedResult, b as ConvexCallPortTag, c as captureExceptionSync, d as TelemetryPortTag, g as accountReadErrorFromCapxul, h as AccountReadPortTag, i as observationContextProps, j as toWei, k as version, l as detectAuthCacheAdapter, m as smartAccountErrorFromCapxul, n as postHogProductTelemetry, o as postHogFailureObservation, p as SmartAccountPortTag, q as normalizeBindingEmail, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, s as captureException, t as assembleCapxulClient, u as PostHogTelemetryLayer, v as IdentityPortTag, w as BootstrapPortTag, x as convexCallErrorFromCapxul, y as identityErrorFromCapxul, z as isSettingUpLifecycle } from "./create-capxul-client-
|
|
1
|
+
import { A as fingerprintPaymentIntent, B as formatTraceparent, C as ClockPortTag, D as AuthClientError, E as authClientPortFromPromiseAdapter, F as sanitizeObservationContext, G as signerFailure, H as readInvocationObservation, I as CAPXUL_FUNCTIONS, J as BASE_SEPOLIA_CHAIN_ID, K as CAPXUL_PAYMENTS_V2_ADDRESS, L as BootstrapEnvelope, M as fromWei, N as OBSERVATION_CONTEXT_HEADER, O as AuthClientPortTag, P as encodeObservationContextHeader, Q as isRestoring, R as EngineeringTelemetryBootstrapPolicy, S as ClockError, T as bootstrapErrorFromCapxul, U as causeChain, V as copyInvocationObservation, W as injectedWalletSigner, X as destination, Z as isClaimed, _ as wireChainId, a as observeFailedResult, b as ConvexCallPortTag, c as captureExceptionSync, d as TelemetryPortTag, g as accountReadErrorFromCapxul, h as AccountReadPortTag, i as observationContextProps, j as toWei, k as version, l as detectAuthCacheAdapter, m as smartAccountErrorFromCapxul, n as postHogProductTelemetry, o as postHogFailureObservation, p as SmartAccountPortTag, q as normalizeBindingEmail, r as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, s as captureException, t as assembleCapxulClient, u as PostHogTelemetryLayer, v as IdentityPortTag, w as BootstrapPortTag, x as convexCallErrorFromCapxul, y as identityErrorFromCapxul, z as isSettingUpLifecycle } from "./create-capxul-client-DgvnboPR.mjs";
|
|
2
2
|
import { C as toDurationMs, D as toJwtToken, E as toEpochSeconds, F as CAPXUL_ERROR_CODES, I as CapxulError, M as toRoleKey, N as toSessionToken, O as toKycTier, P as decodeConvexError, R as Errors, S as toCurrencyCode, T as toEpochMs, b as toChainId, g as toAllowedOrigin, h as toAddress, j as toPublishableKey, k as toOrgId, m as toAccountId, o as AuthCachePortTag, p as currencySymbolFor, v as toAuthUserId, w as toEmail, x as toCountryCode, z as isCapxulError } from "./InMemoryAuthCacheAdapter-qMpBOGb3.mjs";
|
|
3
3
|
import { keccak256, recoverAddress, stringToHex } from "viem";
|
|
4
4
|
import { Cause, Context, Data, Effect, Exit, Layer, Result, SchemaIssue, SchemaParser, Scope, Tracer } from "effect";
|
|
@@ -524,7 +524,7 @@ declare const PermissionSchema: Schema.Struct<{
|
|
|
524
524
|
readonly permissionId: Schema.Codec<PermissionId, string, never, never>;
|
|
525
525
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
526
526
|
readonly type: Schema.Literals<readonly ["budget", "managePeople"]>;
|
|
527
|
-
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"
|
|
527
|
+
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"]>;
|
|
528
528
|
readonly revision: Schema.refine<number, Schema.Number>;
|
|
529
529
|
readonly roleKey: Schema.Codec<RoleKey, string, never, never>;
|
|
530
530
|
readonly tokenAddress: Schema.optional<Schema.Codec<Address$1, string, never, never>>;
|
|
@@ -542,7 +542,7 @@ declare const PermissionAssignmentSchema: Schema.Struct<{
|
|
|
542
542
|
readonly kind: Schema.Literal<"organization">;
|
|
543
543
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
544
544
|
}>]>;
|
|
545
|
-
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"
|
|
545
|
+
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"]>;
|
|
546
546
|
}>;
|
|
547
547
|
type PermissionAssignment = Schema.Schema.Type<typeof PermissionAssignmentSchema>;
|
|
548
548
|
declare const CurrentHoldingsSchema: Schema.Struct<{
|
|
@@ -598,7 +598,7 @@ declare const SubmittedPermissionExecutionSchema: Schema.Struct<{
|
|
|
598
598
|
readonly permissionId: Schema.Codec<PermissionId, string, never, never>;
|
|
599
599
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
600
600
|
readonly type: Schema.Literals<readonly ["budget", "managePeople"]>;
|
|
601
|
-
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"
|
|
601
|
+
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"]>;
|
|
602
602
|
readonly revision: Schema.refine<number, Schema.Number>;
|
|
603
603
|
readonly roleKey: Schema.Codec<RoleKey, string, never, never>;
|
|
604
604
|
readonly tokenAddress: Schema.optional<Schema.Codec<Address$1, string, never, never>>;
|
|
@@ -614,12 +614,12 @@ declare const SubmittedPermissionExecutionSchema: Schema.Struct<{
|
|
|
614
614
|
readonly kind: Schema.Literal<"organization">;
|
|
615
615
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
616
616
|
}>]>;
|
|
617
|
-
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"
|
|
617
|
+
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"]>;
|
|
618
618
|
}>, Schema.$Array<Schema.Struct<{
|
|
619
619
|
readonly permissionId: Schema.Codec<PermissionId, string, never, never>;
|
|
620
620
|
readonly orgId: Schema.refine<string, Schema.String>;
|
|
621
621
|
readonly type: Schema.Literals<readonly ["budget", "managePeople"]>;
|
|
622
|
-
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"
|
|
622
|
+
readonly state: Schema.Literals<readonly ["pending", "active", "suspended", "revoked", "superseded"]>;
|
|
623
623
|
readonly revision: Schema.refine<number, Schema.Number>;
|
|
624
624
|
readonly roleKey: Schema.Codec<RoleKey, string, never, never>;
|
|
625
625
|
readonly tokenAddress: Schema.optional<Schema.Codec<Address$1, string, never, never>>;
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mn as IdentityTransition, bn as TelemetryIdentifyInput, n as ObservationAdapter, u as CapxulClient, vn as TelemetryEvent, yn as TelemetryGroupInput } from "../observation-
|
|
1
|
+
import { Mn as IdentityTransition, bn as TelemetryIdentifyInput, n as ObservationAdapter, u as CapxulClient, vn as TelemetryEvent, yn as TelemetryGroupInput } from "../observation-CLhrvkF6.mjs";
|
|
2
2
|
import { Effect, Layer } from "effect";
|
|
3
3
|
|
|
4
4
|
//#region src/testing/telemetry/RecordingTelemetryAdapter.d.ts
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as authClientPortFromPromiseAdapter, M as fromWei, T as bootstrapErrorFromCapxul, Y as deriveCapxulSafeAddress, _ as wireChainId, f as redactTelemetryEvent, g as accountReadErrorFromCapxul, j as toWei, m as smartAccountErrorFromCapxul, t as assembleCapxulClient, x as convexCallErrorFromCapxul, y as identityErrorFromCapxul } from "../create-capxul-client-
|
|
1
|
+
import { E as authClientPortFromPromiseAdapter, M as fromWei, T as bootstrapErrorFromCapxul, Y as deriveCapxulSafeAddress, _ as wireChainId, f as redactTelemetryEvent, g as accountReadErrorFromCapxul, j as toWei, m as smartAccountErrorFromCapxul, t as assembleCapxulClient, x as convexCallErrorFromCapxul, y as identityErrorFromCapxul } from "../create-capxul-client-DgvnboPR.mjs";
|
|
2
2
|
import { C as toDurationMs, D as toJwtToken, E as toEpochSeconds, I as CapxulError, N as toSessionToken, O as toKycTier, R as Errors, T as toEpochMs, _ as toAppId, b as toChainId, g as toAllowedOrigin, h as toAddress, j as toPublishableKey, m as toAccountId, t as InMemoryAuthCacheAdapter, v as toAuthUserId, w as toEmail, x as toCountryCode } from "../InMemoryAuthCacheAdapter-qMpBOGb3.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": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.23",
|
|
49
49
|
"@capxul/config": "0.2.0",
|
|
50
50
|
"@capxul/errors": "0.0.1",
|
|
51
|
+
"@capxul/typescript-config": "0.0.0",
|
|
51
52
|
"@capxul/types": "0.2.0",
|
|
52
53
|
"@capxul/wire": "0.4.0",
|
|
53
|
-
"@capxul/observability": "2.3.
|
|
54
|
-
"@capxul/typescript-config": "0.0.0"
|
|
54
|
+
"@capxul/observability": "2.3.2"
|
|
55
55
|
},
|
|
56
56
|
"_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.",
|
|
57
57
|
"scripts": {
|