@capxul/sdk 4.20.0-beta.29 → 4.20.0-beta.30
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/{access-wvksqkgT.mjs → access-cQALBWW3.mjs} +32 -19
- package/dist/{index-plOHwp7D.d.mts → index-DidkO1aY.d.mts} +24 -22
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{organizations-DD_-B2Ed.mjs → organizations-4-jlv-yi.mjs} +1 -1
- package/dist/{permission-approvals-B4iv9bXz.mjs → permission-approvals-OBgXonE4.mjs} +2 -2
- package/dist/{production-CmLh00HY.mjs → production-BjxVSadV.mjs} +2 -2
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +2 -2
- package/package.json +3 -3
|
@@ -2367,7 +2367,10 @@ function clearAuthCacheEffect(authCache) {
|
|
|
2367
2367
|
const signOutProgramWithOptions = (options) => Effect.gen(function* () {
|
|
2368
2368
|
const deps = yield* CapxulDepsTag;
|
|
2369
2369
|
let phase = deps.actor.snapshot().phase;
|
|
2370
|
-
if (phase === "
|
|
2370
|
+
if (phase === "restoring") {
|
|
2371
|
+
yield* getSessionProgramWithOptions(options).pipe(Effect.catchIf(() => deps.actor.snapshot().phase === "faulted", () => Effect.void));
|
|
2372
|
+
phase = deps.actor.snapshot().phase;
|
|
2373
|
+
} else if (phase === "signed_out") {
|
|
2371
2374
|
const cached = yield* deps.authCache.getSession.pipe(Effect.mapError((e) => Errors.providerError("auth-cache", "getSession", e)));
|
|
2372
2375
|
if (cached !== null) {
|
|
2373
2376
|
yield* deps.actor.restoreAuthSession(cached, depsRequestOptions(deps, options)).pipe(Effect.mapError(actorError));
|
|
@@ -5133,7 +5136,9 @@ const HomeSchema = Schema.Struct({
|
|
|
5133
5136
|
needsYou: Schema.NullOr(Schema.Struct({
|
|
5134
5137
|
requestsToPay: Schema.Array(Schema.String),
|
|
5135
5138
|
payrollToApprove: Schema.Array(Schema.String),
|
|
5136
|
-
paymentsToRetry: Schema.Array(Schema.String)
|
|
5139
|
+
paymentsToRetry: Schema.Array(Schema.String),
|
|
5140
|
+
/** The caller's capped Budgets in the Organization with nothing left this period. */
|
|
5141
|
+
budgetsUsedUp: Schema.Array(Schema.String)
|
|
5137
5142
|
})),
|
|
5138
5143
|
/** The newest rows of the actor's activity. */
|
|
5139
5144
|
recentActivity: Schema.NullOr(Schema.Array(ActivityItemSchema))
|
|
@@ -5832,7 +5837,8 @@ const PermissionReplacementInvitationSnapshotSchema = Schema.Struct({
|
|
|
5832
5837
|
"verified",
|
|
5833
5838
|
"mismatch",
|
|
5834
5839
|
"provider_failure",
|
|
5835
|
-
"applied"
|
|
5840
|
+
"applied",
|
|
5841
|
+
"abandoned"
|
|
5836
5842
|
]),
|
|
5837
5843
|
executionState: Schema.Literals([
|
|
5838
5844
|
"unprepared",
|
|
@@ -8002,7 +8008,8 @@ const PermissionCommandViewSchema = Schema.Struct({
|
|
|
8002
8008
|
"verified",
|
|
8003
8009
|
"mismatch",
|
|
8004
8010
|
"provider_failure",
|
|
8005
|
-
"applied"
|
|
8011
|
+
"applied",
|
|
8012
|
+
"abandoned"
|
|
8006
8013
|
]),
|
|
8007
8014
|
status: Schema.Literals([
|
|
8008
8015
|
"pending",
|
|
@@ -9443,7 +9450,9 @@ loadBudgetLeft: "permissions.authorities.loadBudgetLeft" },
|
|
|
9443
9450
|
/** The prepare action's transaction: authorize, plan and save the command. */
|
|
9444
9451
|
prepareIntent: "permissions.commands.prepareIntent",
|
|
9445
9452
|
/** The submit action's transaction: record the accepted UserOperation. */
|
|
9446
|
-
completeExecution: "permissions.commands.completeExecution"
|
|
9453
|
+
completeExecution: "permissions.commands.completeExecution",
|
|
9454
|
+
/** The prepare's cleanup: a saved command whose UserOperation could not be built ends. */
|
|
9455
|
+
abandonUnbuilt: "permissions.commands.abandonUnbuilt"
|
|
9447
9456
|
},
|
|
9448
9457
|
configurations: {
|
|
9449
9458
|
prepareIntent: "permissions.configurations.prepareIntent",
|
|
@@ -12685,7 +12694,7 @@ function mapAccountLifecycle(input) {
|
|
|
12685
12694
|
}
|
|
12686
12695
|
//#endregion
|
|
12687
12696
|
//#region package.json
|
|
12688
|
-
var version = "4.20.0-beta.
|
|
12697
|
+
var version = "4.20.0-beta.30";
|
|
12689
12698
|
//#endregion
|
|
12690
12699
|
//#region src/observability/telemetry/exception-projection.ts
|
|
12691
12700
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -14867,21 +14876,25 @@ function recipientMatches$1(source, observation, target) {
|
|
|
14867
14876
|
const payrollEmailResolution = source.paymentType === "payroll" && to.kind === "party" && observation.recipient_locator_kind === "email";
|
|
14868
14877
|
return (observation.recipient_locator_kind === to.kind || payrollEmailResolution) && observation.recipient_address.toLowerCase() === target && observation.external_address_acknowledged === (source.externalAddressAcknowledged === true) && (to.kind !== "address" || to.address.toLowerCase() === target) && (to.kind !== "party" || observation.recipient_party_id === to.partyId) && (to.kind !== "handle" || observation.recipient_handle?.toLowerCase() === to.handle.toLowerCase());
|
|
14869
14878
|
}
|
|
14879
|
+
/**
|
|
14880
|
+
* The later release the caller asked for, or null for one paid at once. A
|
|
14881
|
+
* stored birth item names its operation; an Organization request item names
|
|
14882
|
+
* only its `timing` (#2439).
|
|
14883
|
+
*/
|
|
14884
|
+
function heldRelease(source) {
|
|
14885
|
+
if ("operation" in source) return source.operation === "create_commitment" ? source.release : null;
|
|
14886
|
+
return source.timing?.kind === "instant" ? null : source.timing ?? null;
|
|
14887
|
+
}
|
|
14870
14888
|
function operationMatches(source, item) {
|
|
14871
14889
|
if (item.operation !== "send" && item.operation !== "create_commitment") return false;
|
|
14872
14890
|
if (!Object.entries(PAYMENT_PURPOSE_KIND_CODES).some(([purpose, code]) => purpose === sourcePurpose(source) && code === item.kind)) return false;
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
return item.startTime === start && item.cliffTime === cliff && item.endTime === end;
|
|
14881
|
-
}
|
|
14882
|
-
return true;
|
|
14883
|
-
}
|
|
14884
|
-
return item.operation === "send";
|
|
14891
|
+
const release = heldRelease(source);
|
|
14892
|
+
if (release === null) return item.operation === "send";
|
|
14893
|
+
if (item.operation !== "create_commitment") return false;
|
|
14894
|
+
const start = Math.floor((release.kind === "scheduled" ? release.at : release.startsAt) / 1e3);
|
|
14895
|
+
const cliff = Math.floor((release.kind === "scheduled" ? release.at : release.cliffAt ?? release.startsAt) / 1e3);
|
|
14896
|
+
const end = Math.floor((release.kind === "scheduled" ? release.at : release.endsAt) / 1e3);
|
|
14897
|
+
return item.startTime === start && item.cliffTime === cliff && item.endTime === end;
|
|
14885
14898
|
}
|
|
14886
14899
|
function itemFactsMatch(source, item, observation) {
|
|
14887
14900
|
const exact = toExactAssetAmount(source.amount, CONFIGURED_MONEY_ASSETS);
|
|
@@ -20160,7 +20173,7 @@ function makeApprovalsMethods(deps) {
|
|
|
20160
20173
|
const signal = options?.signal;
|
|
20161
20174
|
if (isCommandApproval(input)) return openApproval(signal, (signerAddress) => prepareVerifiedCommand(deps, input, signerAddress, signal));
|
|
20162
20175
|
if (isPermissionChange(input)) return openApproval(signal, async (signerAddress) => {
|
|
20163
|
-
const { prepareVerifiedPermissionChange } = await import("./permission-approvals-
|
|
20176
|
+
const { prepareVerifiedPermissionChange } = await import("./permission-approvals-OBgXonE4.mjs");
|
|
20164
20177
|
return prepareVerifiedPermissionChange(deps, input, signerAddress, signal);
|
|
20165
20178
|
});
|
|
20166
20179
|
if ("organizationId" in input) return openApproval(signal, (signerAddress) => prepareVerifiedOrganizationPayment(deps, input, signerAddress, signal));
|
|
@@ -2033,6 +2033,8 @@ declare const summaries: {
|
|
|
2033
2033
|
readonly requestsToPay: Schema.$Array<Schema.String>;
|
|
2034
2034
|
readonly payrollToApprove: Schema.$Array<Schema.String>;
|
|
2035
2035
|
readonly paymentsToRetry: Schema.$Array<Schema.String>;
|
|
2036
|
+
/** The caller's capped Budgets in the Organization with nothing left this period. */
|
|
2037
|
+
readonly budgetsUsedUp: Schema.$Array<Schema.String>;
|
|
2036
2038
|
}>>;
|
|
2037
2039
|
/** The newest rows of the actor's activity. */
|
|
2038
2040
|
readonly recentActivity: Schema.NullOr<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -12891,7 +12893,7 @@ declare const commands: {
|
|
|
12891
12893
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
12892
12894
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
12893
12895
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
12894
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
12896
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
12895
12897
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
12896
12898
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
12897
12899
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -13109,7 +13111,7 @@ declare const commands: {
|
|
|
13109
13111
|
readonly permissionId: PermissionId;
|
|
13110
13112
|
readonly permissionAssignmentId: PermissionAssignmentId | null;
|
|
13111
13113
|
readonly expectedRevision: number;
|
|
13112
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13114
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13113
13115
|
readonly status: "actionable" | "applied" | "failed" | "pending";
|
|
13114
13116
|
readonly executions: readonly {
|
|
13115
13117
|
readonly executionId: string;
|
|
@@ -13419,7 +13421,7 @@ declare const commands: {
|
|
|
13419
13421
|
readonly commands: readonly {
|
|
13420
13422
|
readonly commandId: PaymentCommandId;
|
|
13421
13423
|
readonly purpose: "compensate" | "configure" | "disable" | "grant";
|
|
13422
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13424
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13423
13425
|
readonly executionState: "applied" | "included" | "reserved" | "reverted" | "signed" | "submitted" | "unprepared";
|
|
13424
13426
|
readonly nonce: string | null;
|
|
13425
13427
|
readonly transactionHash: TxHash | null;
|
|
@@ -13549,7 +13551,7 @@ declare const commands: {
|
|
|
13549
13551
|
readonly commands: readonly {
|
|
13550
13552
|
readonly commandId: PaymentCommandId;
|
|
13551
13553
|
readonly purpose: "compensate" | "configure" | "disable" | "grant";
|
|
13552
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13554
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
13553
13555
|
readonly executionState: "applied" | "included" | "reserved" | "reverted" | "signed" | "submitted" | "unprepared";
|
|
13554
13556
|
readonly nonce: string | null;
|
|
13555
13557
|
readonly transactionHash: TxHash | null;
|
|
@@ -13600,7 +13602,7 @@ declare const commands: {
|
|
|
13600
13602
|
readonly permissionId: Schema.Codec<PermissionId, string, never, never>;
|
|
13601
13603
|
readonly permissionAssignmentId: Schema.NullOr<Schema.Codec<PermissionAssignmentId, string, never, never>>;
|
|
13602
13604
|
readonly expectedRevision: Schema.refine<number, Schema.Finite>;
|
|
13603
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
13605
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
13604
13606
|
readonly status: Schema.Literals<readonly ["pending", "applied", "failed", "actionable"]>;
|
|
13605
13607
|
readonly executions: Schema.$Array<Schema.Struct<{
|
|
13606
13608
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -13980,7 +13982,7 @@ declare const commands: {
|
|
|
13980
13982
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
13981
13983
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
13982
13984
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
13983
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
13985
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
13984
13986
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
13985
13987
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
13986
13988
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -14172,7 +14174,7 @@ declare const commands: {
|
|
|
14172
14174
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
14173
14175
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
14174
14176
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
14175
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
14177
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
14176
14178
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
14177
14179
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
14178
14180
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -14747,7 +14749,7 @@ declare const commands: {
|
|
|
14747
14749
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
14748
14750
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
14749
14751
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
14750
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
14752
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
14751
14753
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
14752
14754
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
14753
14755
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -15241,7 +15243,7 @@ declare const replacements: {
|
|
|
15241
15243
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
15242
15244
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
15243
15245
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
15244
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
15246
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
15245
15247
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
15246
15248
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
15247
15249
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -15699,7 +15701,7 @@ declare const replacements: {
|
|
|
15699
15701
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
15700
15702
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
15701
15703
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
15702
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
15704
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
15703
15705
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
15704
15706
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
15705
15707
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -22010,6 +22012,7 @@ declare const CAPXUL_OPERATIONS: {
|
|
|
22010
22012
|
readonly commands: {
|
|
22011
22013
|
readonly prepareIntent: "permissions.commands.prepareIntent";
|
|
22012
22014
|
readonly completeExecution: "permissions.commands.completeExecution";
|
|
22015
|
+
readonly abandonUnbuilt: "permissions.commands.abandonUnbuilt";
|
|
22013
22016
|
};
|
|
22014
22017
|
readonly configurations: {
|
|
22015
22018
|
readonly prepareIntent: "permissions.configurations.prepareIntent";
|
|
@@ -23438,7 +23441,7 @@ declare const PermissionReplacementPreviewSchema: Schema.Struct<{
|
|
|
23438
23441
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
23439
23442
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
23440
23443
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
23441
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
23444
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
23442
23445
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
23443
23446
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
23444
23447
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -29039,6 +29042,8 @@ interface Home {
|
|
|
29039
29042
|
readonly requestsToPay: readonly string[];
|
|
29040
29043
|
readonly payrollToApprove: readonly string[];
|
|
29041
29044
|
readonly paymentsToRetry: readonly string[];
|
|
29045
|
+
/** The caller's capped Budgets in the Organization with nothing left this period. */
|
|
29046
|
+
readonly budgetsUsedUp: readonly string[];
|
|
29042
29047
|
} | null;
|
|
29043
29048
|
/**
|
|
29044
29049
|
* The newest rows of the actor's stored activity (the backend's Payments and
|
|
@@ -29050,10 +29055,7 @@ interface MeMethods {
|
|
|
29050
29055
|
get(options?: {
|
|
29051
29056
|
readonly signal?: AbortSignal;
|
|
29052
29057
|
}): Promise<CapxulResult<MeProfile>>;
|
|
29053
|
-
/**
|
|
29054
|
-
* The home for the signed-in person, or for an Organization they take part
|
|
29055
|
-
* in. A backend without this read answers `CAPABILITY_UNAVAILABLE`.
|
|
29056
|
-
*/
|
|
29058
|
+
/** The home for the signed-in person, or for an Organization they take part in. */
|
|
29057
29059
|
home(options?: {
|
|
29058
29060
|
readonly orgId?: string;
|
|
29059
29061
|
readonly signal?: AbortSignal;
|
|
@@ -29946,7 +29948,7 @@ declare const PermissionEffectContextSchema: Schema.Struct<{
|
|
|
29946
29948
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
29947
29949
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
29948
29950
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
29949
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
29951
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
29950
29952
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
29951
29953
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
29952
29954
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -30171,7 +30173,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
30171
30173
|
readonly permissionId: PermissionId;
|
|
30172
30174
|
readonly permissionAssignmentId: PermissionAssignmentId | null;
|
|
30173
30175
|
readonly expectedRevision: number;
|
|
30174
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30176
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30175
30177
|
readonly status: "actionable" | "applied" | "failed" | "pending";
|
|
30176
30178
|
readonly executions: readonly {
|
|
30177
30179
|
readonly executionId: string;
|
|
@@ -30481,7 +30483,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
30481
30483
|
readonly commands: readonly {
|
|
30482
30484
|
readonly commandId: PaymentCommandId;
|
|
30483
30485
|
readonly purpose: "compensate" | "configure" | "disable" | "grant";
|
|
30484
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30486
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30485
30487
|
readonly executionState: "applied" | "included" | "reserved" | "reverted" | "signed" | "submitted" | "unprepared";
|
|
30486
30488
|
readonly nonce: string | null;
|
|
30487
30489
|
readonly transactionHash: TxHash | null;
|
|
@@ -30611,7 +30613,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
30611
30613
|
readonly commands: readonly {
|
|
30612
30614
|
readonly commandId: PaymentCommandId;
|
|
30613
30615
|
readonly purpose: "compensate" | "configure" | "disable" | "grant";
|
|
30614
|
-
readonly state: "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30616
|
+
readonly state: "abandoned" | "applied" | "mismatch" | "pending" | "provider_failure" | "verified";
|
|
30615
30617
|
readonly executionState: "applied" | "included" | "reserved" | "reverted" | "signed" | "submitted" | "unprepared";
|
|
30616
30618
|
readonly nonce: string | null;
|
|
30617
30619
|
readonly transactionHash: TxHash | null;
|
|
@@ -30662,7 +30664,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
30662
30664
|
readonly permissionId: Schema.Codec<PermissionId, string, never, never>;
|
|
30663
30665
|
readonly permissionAssignmentId: Schema.NullOr<Schema.Codec<PermissionAssignmentId, string, never, never>>;
|
|
30664
30666
|
readonly expectedRevision: Schema.refine<number, Schema.Finite>;
|
|
30665
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
30667
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
30666
30668
|
readonly status: Schema.Literals<readonly ["pending", "applied", "failed", "actionable"]>;
|
|
30667
30669
|
readonly executions: Schema.$Array<Schema.Struct<{
|
|
30668
30670
|
readonly executionId: Schema.refine<string, Schema.String>;
|
|
@@ -31042,7 +31044,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
31042
31044
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
31043
31045
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
31044
31046
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
31045
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
31047
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
31046
31048
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
31047
31049
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
31048
31050
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
|
@@ -31234,7 +31236,7 @@ declare const PermissionCommandViewSchema: Schema.refine<{
|
|
|
31234
31236
|
readonly commands: Schema.$Array<Schema.Struct<{
|
|
31235
31237
|
readonly commandId: Schema.Codec<PaymentCommandId, string, never, never>;
|
|
31236
31238
|
readonly purpose: Schema.Literals<readonly ["configure", "grant", "disable", "compensate"]>;
|
|
31237
|
-
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied"]>;
|
|
31239
|
+
readonly state: Schema.Literals<readonly ["pending", "verified", "mismatch", "provider_failure", "applied", "abandoned"]>;
|
|
31238
31240
|
readonly executionState: Schema.Literals<readonly ["unprepared", "reserved", "signed", "submitted", "included", "reverted", "applied"]>;
|
|
31239
31241
|
readonly nonce: Schema.NullOr<Schema.refine<string, Schema.String>>;
|
|
31240
31242
|
readonly transactionHash: Schema.NullOr<Schema.Codec<TxHash, string, never, never>>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as CurrentUserMethods, $a as BudgetIntent, $i as AccountProvider, $n as PermissionPolicyChange, $o as toAddress, $r as ActivityMethods, $t as OffersMethods, A as assetSymbolFor, Aa as OrganizationSetup, Ai as PaymentTiming, An as AccountsMethods, Ao as PayrollRunId, Ar as PayrollGroupIdSchema, At as OwnInvitationsMethod, B as CreateCapxulClientInput, Ba as InvitationId, Bi as PaymentDocumentReadRef, Bn as ApprovalWaitOptions, Bo as toAccountId, Br as MeMethods, Bt as DestinationRail, C as OpenfortBrowserAuth, Ca as RequestCheckoutPreparation, Ci as PaymentDocumentKind, Cn as PaymentsMethods, Co as CapxulResult, Cr as PayrollOptions, Ct as InvitationSnapshot, D as createOpenfortBrowserSigner, Da as RequestPaymentConfirmation, Di as PaymentSnapshot, Dn as positionPeg, Do as OrgId, Dr as PayrollRuns, Dt as InvitePrepared, Ea as RequestCheckoutSummary, Ei as PaymentPrepared, En as SmartAccountMethods, Eo as ORGANIZATION_SETUP_REASONS, Er as PayrollRunStatus, Et as InviteOptions, F as MoneyParseError, Fa as Unsubscribe, Fi as PaymentDocumentOptions, Fn as valueIn, Fo as toBudgetId, Fr as AccountSetupStep, Ft as Destination, G as UploadImageResult, Ga as InvitationTarget, Gi as ActorRef, Gn as decodePermissionIntent, Go as Handle, Gr as requestPhase, Gt as ActorRelationshipMethods, H as IdentityRuntime, Ha as InvitationPageInput, Hi as PaymentDocumentVerification, Hn as InvitationApprovalInput, Ho as TesterKind, Hr as ActivityPhase, Ht as DestinationsMethods, I as MoneyParseErrorReason, Ia as AuthorityRef, Ii as PaymentDocumentOptionsSchema, In as AssetMetadata, Io as toPermissionAssignmentId, Ir as isSettingUpLifecycle, It as DestinationAddInput, J as Destination$1, Ja as InviteInput, Ji as CapxulSigner, Jn as PermissionAssignmentEffect, Jo as toPartyId, Jr as ActivityDetail, Jt as AddressBookLabelInput, K as SystemHealth, Ka as InvitationView, Ki as fingerprintPaymentIntent, Kn as BudgetLeft, Ko as PartyId, Kr as ActivityAnnotation, Kt as AddressBookAddInput, L as isMoneyParseError, La as EndingReason, Li as PaymentInstructionInput, Ln as TOKENS, Lo as toPermissionId, Lr as AccountMethods, Lt as DestinationKind, M as parseAssetAmount, Ma as OrganizationSetupPageInput, Mi as PaymentsPayInput, Mn as RateSource, Mo as BudgetId, Mr as PayrollRunDetail, Mt as OrgMe, N as requireAsset, Na as OrganizationSetupSnapshot, Ni as PaymentsPayOptions, Nn as Valuation, No as PermissionId, Nr as Approval, Nt as OrgMeMethod, O as CAPXUL_PAYMENTS_V2_ADDRESS, Oa as RequestPaymentTerms, Oi as PaymentStatus, On as HoldingsMethods, Oo as toOrgId, Or as PayrollTermsUnit, Ot as InvitePreviewInput, P as toRaw, Pa as SetupIssue, Pi as InvoiceDraft, Pn as valueActivitySummary, Po as RoleKey, Pr as AccountLifecycle, Pt as OrgMeOptions, Q as CurrentUserContext, Qa as PermissionReplacementPreview, Qi as injectedWalletSigner, Qn as PermissionOptions, Qo as EVM_ADDRESS_RE, Qr as ActivityListParams, Qt as ActorRequestsMethods, R as parseMoney, Ra as GranteeRef, Ri as SupportingReceiptInput, Rn as ApprovalInput, Ro as Account, Rr as DepositInstructions, Rt as DestinationListInput, S as devPrivateKeySigner, Sa as PreparedRequestCheckoutExecution, Si as PaymentDirection, Sn as OfframpStatus, So as ActorReference, Sr as PayrollMethods, St as RoleView, T as OpenfortBrowserSignerBootstrap, Ta as RequestCheckoutState, Ti as PaymentMoney, Tn as SmartAccount, To as Page, Tr as PayrollRunItemInput, Tt as InviteMethod, U as IdentityRuntimeSendResult, Ua as InvitationPhase, Ui as PAYMENT_DIRECTIONS, Un as PermissionApprovalInput, Uo as toCountryCode, Ur as inboxPhase, Ut as ActorProfile, V as IdentityProfileDetails, Va as InvitationPage, Vi as PaymentDocumentRender, Vn as ApprovalsMethods, Vo as CountryCode, Vr as MeProfile, Vt as DestinationRemoveInput, W as MediaMethods, Wa as InvitationRecovery, Wi as PAYMENT_STATUSES, Wn as PermissionWrite, Wo as HANDLE_RE, Wr as paymentPhase, Wt as ActorProfileMethods, X as isClaimed, Xa as OfferedAuthority, Xi as SignerStatus, Xn as PermissionCreateInput, Xo as AuthUserId, Xr as ActivityItem, Xt as ActorRequest, Y as destination, Ya as InvitePreview, Yi as Eip1193RequestProvider, Yn as PermissionChangeInput, Yo as AuthSession, Yr as ActivityFilter, Yt as AddressBookMethods, Z as isRestoring, Za as SpendingScope, Zi as SignerStatusStore, Zn as PermissionMethods, Zo as Address, Zr as ActivityKind, Zt as ActorRequestIssueInput, _ as OpenfortEmbeddedWalletApi, _a as InvoiceCheckoutState, _i as CompleteProfileInput, _n as OrganizationPaymentRetryPreview, _o as SdkFailureObservation, _r as PayrollEngagementTerms, _s as EXPECTED_OPERATION_OUTCOMES, _t as OrgView, a as captureException, aa as CheckoutReceipt, ai as ActivitySummaryTotal, an as CreateOfferCheckoutInput, ar as PermissionCommandView, as as toCurrencyCode, at as IdentityEvent, b as DevPrivateKeySignerInput, ba as PrepareRequestCheckoutExecutionInput, bi as PayoutAddress, bn as OfframpQuote, br as PayrollGroupMember, bt as OrganizationAuditLogItem, c as createCapxulClient, ca as FixedOffer, ci as PaymentDocumentsMethods, cn as isCheckoutSettlementConsumed, co as CapxulOperation, cr as OrganizationApprovalInput, cs as isCapxulError, ct as OrgLane, d as PostHogObservabilityClient, da as OfferCheckout, di as OrganizationOnboarding, dn as ResolvedTarget, do as normalizeCapxulOperation, dr as RedirectApprovalInput, ds as ChainUpstream, dt as AssignmentProjection, ea as AccountProviderSource, ei as ActivityPage, en as InboxApproveInput, eo as CurrentPolicy, er as PermissionPrepared, es as Errors, et as AuthMethods, f as PostHogObservabilityOptions, fa as OfferCheckoutPreparation, fi as OrganizationOnboardingInput, fn as TargetReference, fr as RequestApprovalInput, fs as RevertSummary, ft as MemberIdentityProjection, g as openfortEmbeddedSignerFromWallet, ga as InvoiceCheckoutReconciliation, gi as ReadyAccountLifecycle, gn as OrganizationPaymentItemInput, go as ObservationDelivery, gr as AuthorizeRunOptions, gs as CapxulErrorCode, gt as OrgScopedMethods, h as embeddedSigner, ha as InvoiceCheckoutPreparation, hi as PersonOnboardingInput, hn as OrganizationPaymentInput, ho as ObservationContext, hr as AuthorizeRunInput, hs as CAPXUL_ERROR_CODES, ht as OrgMethods, i as HandledErrorReportContext, ia as localPrivateKeyAccountProvider, ii as ActivitySummaryParams, in as CheckoutsMethods, ir as PermissionCommandSnapshot, is as toAssetId, it as ClientRequestView, j as formatAssetAmount, ja as OrganizationSetupPage, ji as PaymentType, jn as Rate, jo as toPayrollGroupId, jr as PayrollGroupInputSchema, jt as Budget, k as formatMoney, ka as InvocationControls, ki as PaymentSubscriptionOptions, kn as CurrentHoldings, ko as PayrollGroupId, kr as PayrollRunSnapshot, kt as OrgInvitations, l as CapxulClientInput, la as FixedOfferDraft, li as CompletedPersonProfile, ln as RecipientResolution, lo as NormalizedCapxulOperation, lr as CancelApprovalInput, ls as CHAIN_UPSTREAMS, lt as Readiness, m as OpenfortEmbeddedSignerInput, ma as PreparedOfferCheckoutExecution, mi as PersonOnboarding, mn as OrganizationPaymentBatchInput, mo as ObservationAdapter, mr as decodePayrollRunInput, ms as FailureMode, mt as MemberView, n as checkoutUrl, na as Eip1193Provider, ni as ActivityReference, nn as InboxItem, nr as PermissionReplaceInput, ns as AssetId, nt as AccountSetupPolicy, o as captureExceptionSync, oa as CheckoutReconciliation, oi as MovementActivityEvidence, on as PayInvoiceRegisteredInput, oo as TelemetryPort, or as SubmittedPermissionExecution, os as CapxulError, ot as IdentityTransition, p as postHogObservability, pa as PrepareOfferCheckoutExecutionInput, pi as OrganizationOnboardingOptions, pn as TargetsMethods, pr as RetryApprovalInput, ps as FAILURE_MODES, pt as MemberStatus, q as SystemMethods, qa as InviteGrant, qi as CapxulDigestSigner, qn as PermissionAssignInput, qo as toHandle, qr as ActivityAnnotationInput, qt as AddressBookEntry, r as LineItemV3, ra as eip1193AccountProvider, ri as ActivitySummary, rn as InboxMethods, rr as PermissionRevokeInput, rs as Money, rt as ClientRequests, s as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, sa as CheckoutState, si as PaymentActivityEvidence, sn as PayRequestRegisteredInput, so as CAPXUL_OPERATIONS, sr as PermissionIntent, ss as CapxulErrorDetails, st as IdentityState, t as CheckoutLinkReference, ta as AccountRequirement, ti as ActivityRange, tn as InboxFulfillOptions, to as Permission, tr as PermissionReadResult, ts as AssetAmount, tt as Session, u as HostObservability, ua as FixedOfferDraftSchema, ui as OnboardingMethods, un as Ref, uo as isCapxulOperation, ur as PayrollRunApprovalInput, us as ChainCause, ut as StateLabel, v as OpenfortEmbeddedWalletPort, va as InvoiceCheckoutSummary, vi as IdentityMethods, vn as OrganizationPaymentsMethods, vr as PayrollGroup, vt as OrganizationAccess, w as OpenfortBrowserSigner, wa as RequestCheckoutReconciliation, wi as PaymentDocumentRef, wn as FinancialOpsMethods, wo as OperationResult, wr as PayrollRun, wt as InvitationSubscriptionOptions, x as deriveDevPrivateKey, xa as PreparedInvoiceCheckoutExecution, xi as Payment, xn as OfframpQuoteInput, xr as PayrollGroupsMethods, xt as RoleDefinition, y as openfortEmbeddedWalletPort, ya as PrepareInvoiceCheckoutExecutionInput, yi as Profile, yn as OfframpMethods, yr as PayrollGroupInput, yt as OrganizationAccount, z as CapxulClient, za as InvitationAcceptInput, zi as PaymentDocumentDownload, zn as ApprovalOutcome, zo as AccountId, zr as Home, zt as DestinationPayload } from "./index-
|
|
1
|
+
import { $ as CurrentUserMethods, $a as BudgetIntent, $i as AccountProvider, $n as PermissionPolicyChange, $o as toAddress, $r as ActivityMethods, $t as OffersMethods, A as assetSymbolFor, Aa as OrganizationSetup, Ai as PaymentTiming, An as AccountsMethods, Ao as PayrollRunId, Ar as PayrollGroupIdSchema, At as OwnInvitationsMethod, B as CreateCapxulClientInput, Ba as InvitationId, Bi as PaymentDocumentReadRef, Bn as ApprovalWaitOptions, Bo as toAccountId, Br as MeMethods, Bt as DestinationRail, C as OpenfortBrowserAuth, Ca as RequestCheckoutPreparation, Ci as PaymentDocumentKind, Cn as PaymentsMethods, Co as CapxulResult, Cr as PayrollOptions, Ct as InvitationSnapshot, D as createOpenfortBrowserSigner, Da as RequestPaymentConfirmation, Di as PaymentSnapshot, Dn as positionPeg, Do as OrgId, Dr as PayrollRuns, Dt as InvitePrepared, Ea as RequestCheckoutSummary, Ei as PaymentPrepared, En as SmartAccountMethods, Eo as ORGANIZATION_SETUP_REASONS, Er as PayrollRunStatus, Et as InviteOptions, F as MoneyParseError, Fa as Unsubscribe, Fi as PaymentDocumentOptions, Fn as valueIn, Fo as toBudgetId, Fr as AccountSetupStep, Ft as Destination, G as UploadImageResult, Ga as InvitationTarget, Gi as ActorRef, Gn as decodePermissionIntent, Go as Handle, Gr as requestPhase, Gt as ActorRelationshipMethods, H as IdentityRuntime, Ha as InvitationPageInput, Hi as PaymentDocumentVerification, Hn as InvitationApprovalInput, Ho as TesterKind, Hr as ActivityPhase, Ht as DestinationsMethods, I as MoneyParseErrorReason, Ia as AuthorityRef, Ii as PaymentDocumentOptionsSchema, In as AssetMetadata, Io as toPermissionAssignmentId, Ir as isSettingUpLifecycle, It as DestinationAddInput, J as Destination$1, Ja as InviteInput, Ji as CapxulSigner, Jn as PermissionAssignmentEffect, Jo as toPartyId, Jr as ActivityDetail, Jt as AddressBookLabelInput, K as SystemHealth, Ka as InvitationView, Ki as fingerprintPaymentIntent, Kn as BudgetLeft, Ko as PartyId, Kr as ActivityAnnotation, Kt as AddressBookAddInput, L as isMoneyParseError, La as EndingReason, Li as PaymentInstructionInput, Ln as TOKENS, Lo as toPermissionId, Lr as AccountMethods, Lt as DestinationKind, M as parseAssetAmount, Ma as OrganizationSetupPageInput, Mi as PaymentsPayInput, Mn as RateSource, Mo as BudgetId, Mr as PayrollRunDetail, Mt as OrgMe, N as requireAsset, Na as OrganizationSetupSnapshot, Ni as PaymentsPayOptions, Nn as Valuation, No as PermissionId, Nr as Approval, Nt as OrgMeMethod, O as CAPXUL_PAYMENTS_V2_ADDRESS, Oa as RequestPaymentTerms, Oi as PaymentStatus, On as HoldingsMethods, Oo as toOrgId, Or as PayrollTermsUnit, Ot as InvitePreviewInput, P as toRaw, Pa as SetupIssue, Pi as InvoiceDraft, Pn as valueActivitySummary, Po as RoleKey, Pr as AccountLifecycle, Pt as OrgMeOptions, Q as CurrentUserContext, Qa as PermissionReplacementPreview, Qi as injectedWalletSigner, Qn as PermissionOptions, Qo as EVM_ADDRESS_RE, Qr as ActivityListParams, Qt as ActorRequestsMethods, R as parseMoney, Ra as GranteeRef, Ri as SupportingReceiptInput, Rn as ApprovalInput, Ro as Account, Rr as DepositInstructions, Rt as DestinationListInput, S as devPrivateKeySigner, Sa as PreparedRequestCheckoutExecution, Si as PaymentDirection, Sn as OfframpStatus, So as ActorReference, Sr as PayrollMethods, St as RoleView, T as OpenfortBrowserSignerBootstrap, Ta as RequestCheckoutState, Ti as PaymentMoney, Tn as SmartAccount, To as Page, Tr as PayrollRunItemInput, Tt as InviteMethod, U as IdentityRuntimeSendResult, Ua as InvitationPhase, Ui as PAYMENT_DIRECTIONS, Un as PermissionApprovalInput, Uo as toCountryCode, Ur as inboxPhase, Ut as ActorProfile, V as IdentityProfileDetails, Va as InvitationPage, Vi as PaymentDocumentRender, Vn as ApprovalsMethods, Vo as CountryCode, Vr as MeProfile, Vt as DestinationRemoveInput, W as MediaMethods, Wa as InvitationRecovery, Wi as PAYMENT_STATUSES, Wn as PermissionWrite, Wo as HANDLE_RE, Wr as paymentPhase, Wt as ActorProfileMethods, X as isClaimed, Xa as OfferedAuthority, Xi as SignerStatus, Xn as PermissionCreateInput, Xo as AuthUserId, Xr as ActivityItem, Xt as ActorRequest, Y as destination, Ya as InvitePreview, Yi as Eip1193RequestProvider, Yn as PermissionChangeInput, Yo as AuthSession, Yr as ActivityFilter, Yt as AddressBookMethods, Z as isRestoring, Za as SpendingScope, Zi as SignerStatusStore, Zn as PermissionMethods, Zo as Address, Zr as ActivityKind, Zt as ActorRequestIssueInput, _ as OpenfortEmbeddedWalletApi, _a as InvoiceCheckoutState, _i as CompleteProfileInput, _n as OrganizationPaymentRetryPreview, _o as SdkFailureObservation, _r as PayrollEngagementTerms, _s as EXPECTED_OPERATION_OUTCOMES, _t as OrgView, a as captureException, aa as CheckoutReceipt, ai as ActivitySummaryTotal, an as CreateOfferCheckoutInput, ar as PermissionCommandView, as as toCurrencyCode, at as IdentityEvent, b as DevPrivateKeySignerInput, ba as PrepareRequestCheckoutExecutionInput, bi as PayoutAddress, bn as OfframpQuote, br as PayrollGroupMember, bt as OrganizationAuditLogItem, c as createCapxulClient, ca as FixedOffer, ci as PaymentDocumentsMethods, cn as isCheckoutSettlementConsumed, co as CapxulOperation, cr as OrganizationApprovalInput, cs as isCapxulError, ct as OrgLane, d as PostHogObservabilityClient, da as OfferCheckout, di as OrganizationOnboarding, dn as ResolvedTarget, do as normalizeCapxulOperation, dr as RedirectApprovalInput, ds as ChainUpstream, dt as AssignmentProjection, ea as AccountProviderSource, ei as ActivityPage, en as InboxApproveInput, eo as CurrentPolicy, er as PermissionPrepared, es as Errors, et as AuthMethods, f as PostHogObservabilityOptions, fa as OfferCheckoutPreparation, fi as OrganizationOnboardingInput, fn as TargetReference, fr as RequestApprovalInput, fs as RevertSummary, ft as MemberIdentityProjection, g as openfortEmbeddedSignerFromWallet, ga as InvoiceCheckoutReconciliation, gi as ReadyAccountLifecycle, gn as OrganizationPaymentItemInput, go as ObservationDelivery, gr as AuthorizeRunOptions, gs as CapxulErrorCode, gt as OrgScopedMethods, h as embeddedSigner, ha as InvoiceCheckoutPreparation, hi as PersonOnboardingInput, hn as OrganizationPaymentInput, ho as ObservationContext, hr as AuthorizeRunInput, hs as CAPXUL_ERROR_CODES, ht as OrgMethods, i as HandledErrorReportContext, ia as localPrivateKeyAccountProvider, ii as ActivitySummaryParams, in as CheckoutsMethods, ir as PermissionCommandSnapshot, is as toAssetId, it as ClientRequestView, j as formatAssetAmount, ja as OrganizationSetupPage, ji as PaymentType, jn as Rate, jo as toPayrollGroupId, jr as PayrollGroupInputSchema, jt as Budget, k as formatMoney, ka as InvocationControls, ki as PaymentSubscriptionOptions, kn as CurrentHoldings, ko as PayrollGroupId, kr as PayrollRunSnapshot, kt as OrgInvitations, l as CapxulClientInput, la as FixedOfferDraft, li as CompletedPersonProfile, ln as RecipientResolution, lo as NormalizedCapxulOperation, lr as CancelApprovalInput, ls as CHAIN_UPSTREAMS, lt as Readiness, m as OpenfortEmbeddedSignerInput, ma as PreparedOfferCheckoutExecution, mi as PersonOnboarding, mn as OrganizationPaymentBatchInput, mo as ObservationAdapter, mr as decodePayrollRunInput, ms as FailureMode, mt as MemberView, n as checkoutUrl, na as Eip1193Provider, ni as ActivityReference, nn as InboxItem, nr as PermissionReplaceInput, ns as AssetId, nt as AccountSetupPolicy, o as captureExceptionSync, oa as CheckoutReconciliation, oi as MovementActivityEvidence, on as PayInvoiceRegisteredInput, oo as TelemetryPort, or as SubmittedPermissionExecution, os as CapxulError, ot as IdentityTransition, p as postHogObservability, pa as PrepareOfferCheckoutExecutionInput, pi as OrganizationOnboardingOptions, pn as TargetsMethods, pr as RetryApprovalInput, ps as FAILURE_MODES, pt as MemberStatus, q as SystemMethods, qa as InviteGrant, qi as CapxulDigestSigner, qn as PermissionAssignInput, qo as toHandle, qr as ActivityAnnotationInput, qt as AddressBookEntry, r as LineItemV3, ra as eip1193AccountProvider, ri as ActivitySummary, rn as InboxMethods, rr as PermissionRevokeInput, rs as Money, rt as ClientRequests, s as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, sa as CheckoutState, si as PaymentActivityEvidence, sn as PayRequestRegisteredInput, so as CAPXUL_OPERATIONS, sr as PermissionIntent, ss as CapxulErrorDetails, st as IdentityState, t as CheckoutLinkReference, ta as AccountRequirement, ti as ActivityRange, tn as InboxFulfillOptions, to as Permission, tr as PermissionReadResult, ts as AssetAmount, tt as Session, u as HostObservability, ua as FixedOfferDraftSchema, ui as OnboardingMethods, un as Ref, uo as isCapxulOperation, ur as PayrollRunApprovalInput, us as ChainCause, ut as StateLabel, v as OpenfortEmbeddedWalletPort, va as InvoiceCheckoutSummary, vi as IdentityMethods, vn as OrganizationPaymentsMethods, vr as PayrollGroup, vt as OrganizationAccess, w as OpenfortBrowserSigner, wa as RequestCheckoutReconciliation, wi as PaymentDocumentRef, wn as FinancialOpsMethods, wo as OperationResult, wr as PayrollRun, wt as InvitationSubscriptionOptions, x as deriveDevPrivateKey, xa as PreparedInvoiceCheckoutExecution, xi as Payment, xn as OfframpQuoteInput, xr as PayrollGroupsMethods, xt as RoleDefinition, y as openfortEmbeddedWalletPort, ya as PrepareInvoiceCheckoutExecutionInput, yi as Profile, yn as OfframpMethods, yr as PayrollGroupInput, yt as OrganizationAccount, z as CapxulClient, za as InvitationAcceptInput, zi as PaymentDocumentDownload, zn as ApprovalOutcome, zo as AccountId, zr as Home, zt as DestinationPayload } from "./index-DidkO1aY.mjs";
|
|
2
2
|
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 Approval, type ApprovalInput, type ApprovalOutcome, type ApprovalWaitOptions, type ApprovalsMethods, 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, type BudgetLeft, CAPXUL_ERROR_CODES, CAPXUL_OPERATIONS, CAPXUL_PAYMENTS_V2_ADDRESS, CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, CHAIN_UPSTREAMS, type CancelApprovalInput, type CapxulClient, type CapxulClientInput, type CapxulDigestSigner, CapxulError, type CapxulErrorCode, type CapxulErrorDetails, type CapxulOperation, type CapxulResult, type CapxulSigner, type ChainCause, type ChainUpstream, type CheckoutLinkReference, type CheckoutReceipt, type CheckoutReconciliation, type CheckoutState, type CheckoutsMethods, type ClientRequestView, type ClientRequests, type CompleteProfileInput, type CompletedPersonProfile, type CountryCode, type CreateCapxulClientInput, type CreateOfferCheckoutInput, 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, EXPECTED_OPERATION_OUTCOMES, type Eip1193Provider, type Eip1193RequestProvider, type EndingReason, Errors, FAILURE_MODES, type FailureMode, type FinancialOpsMethods, type FixedOffer, type FixedOfferDraft, FixedOfferDraftSchema, type GranteeRef, HANDLE_RE, type Handle, type HandledErrorReportContext, type HoldingsMethods, type Home, type HostObservability, type Destination$1 as IdentityDestination, type IdentityEvent, type IdentityMethods, type IdentityProfileDetails, type IdentityRuntime, type IdentityRuntimeSendResult, type IdentityState, type IdentityTransition, type InboxApproveInput, type InboxFulfillOptions, type InboxItem, type InboxMethods, type InvitationAcceptInput, type InvitationApprovalInput, type InvitationId, type InvitationPage, type InvitationPageInput, type InvitationPhase, type InvitationRecovery, type InvitationSnapshot, type InvitationSubscriptionOptions, type InvitationTarget, type InvitationView, type InviteGrant, type InviteInput, type InviteMethod, type InviteOptions, type InvitePrepared, type InvitePreview, type InvitePreviewInput, type InvocationControls, type InvoiceCheckoutPreparation, type InvoiceCheckoutReconciliation, type InvoiceCheckoutState, type InvoiceCheckoutSummary, type InvoiceDraft, type LineItemV3, type MeMethods, type MeProfile, type MediaMethods, type MemberIdentityProjection, type MemberStatus, type MemberView, type Money, type MoneyParseError, type MoneyParseErrorReason, type MovementActivityEvidence, type NormalizedCapxulOperation, ORGANIZATION_SETUP_REASONS, type ObservationAdapter, type ObservationContext, type ObservationDelivery, type OfferCheckout, type OfferCheckoutPreparation, type OfferedAuthority, type OffersMethods, type OfframpMethods, type OfframpQuote, type OfframpQuoteInput, type OfframpStatus, type OnboardingMethods, type OpenfortBrowserAuth, type OpenfortBrowserSigner, type OpenfortBrowserSignerBootstrap, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OperationResult, type OrgId, type OrgInvitations, type OrgLane, type OrgMe, type OrgMeMethod, type OrgMeOptions, type OrgMethods, type OrgScopedMethods, type OrgView, type OrganizationAccess, type OrganizationAccount, type OrganizationApprovalInput, type OrganizationAuditLogItem, type OrganizationOnboarding, type OrganizationOnboardingInput, type OrganizationOnboardingOptions, type OrganizationPaymentBatchInput, type OrganizationPaymentInput, type OrganizationPaymentItemInput, type OrganizationPaymentRetryPreview, type OrganizationPaymentsMethods, type OrganizationSetup, type OrganizationSetupPage, type OrganizationSetupPageInput, type OrganizationSetupSnapshot, type OwnInvitationsMethod, PAYMENT_DIRECTIONS, PAYMENT_STATUSES, type Page, type PartyId, type PayInvoiceRegisteredInput, type PayRequestRegisteredInput, type Payment, type PaymentActivityEvidence, type PaymentDirection, type PaymentDocumentDownload, type PaymentDocumentKind, type PaymentDocumentOptions, PaymentDocumentOptionsSchema, type PaymentDocumentReadRef, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentInstructionInput, type PaymentMoney, type PaymentPrepared, type PaymentSnapshot, type PaymentStatus, type PaymentSubscriptionOptions, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PaymentsPayOptions, type PayoutAddress, type PayrollEngagementTerms, type PayrollGroup, type PayrollGroupId, PayrollGroupIdSchema, type PayrollGroupInput, PayrollGroupInputSchema, type PayrollGroupMember, type PayrollGroupsMethods, type PayrollMethods, type PayrollOptions, type PayrollRun, type PayrollRunApprovalInput, type PayrollRunDetail, type PayrollRunId, type PayrollRunItemInput, type PayrollRunSnapshot, type PayrollRunStatus, type PayrollRuns, type PayrollTermsUnit, type Permission, type PermissionApprovalInput, type PermissionAssignInput, type PermissionAssignmentEffect, type PermissionChangeInput, type PermissionCommandSnapshot, type PermissionCommandView, type PermissionCreateInput, type PermissionId, type PermissionIntent, type PermissionMethods, type PermissionOptions, type PermissionPolicyChange, type PermissionPrepared, type PermissionReadResult, type PermissionReplaceInput, type PermissionReplacementPreview, type PermissionRevokeInput, type PermissionWrite, type PersonOnboarding, type PersonOnboardingInput, type PostHogObservabilityClient, type PostHogObservabilityOptions, type PrepareInvoiceCheckoutExecutionInput, type PrepareOfferCheckoutExecutionInput, type PrepareRequestCheckoutExecutionInput, type PreparedInvoiceCheckoutExecution, type PreparedOfferCheckoutExecution, type PreparedRequestCheckoutExecution, type Profile, type Rate, type RateSource, type Readiness, type ReadyAccountLifecycle, type RecipientResolution, type RedirectApprovalInput, type Ref, type RequestApprovalInput, type RequestCheckoutPreparation, type RequestCheckoutReconciliation, type RequestCheckoutState, type RequestCheckoutSummary, type RequestPaymentConfirmation, type RequestPaymentTerms, type ResolvedTarget, type RetryApprovalInput, type RevertSummary, type RoleDefinition, type RoleKey, type RoleView, type SdkFailureObservation, type Session, type SetupIssue, type SignerStatus, type SignerStatusStore, type SmartAccount, type SmartAccountMethods, type SpendingScope, type StateLabel, type SubmittedPermissionExecution, type SupportingReceiptInput, type SystemHealth, type SystemMethods, TOKENS, type TargetReference, type TargetsMethods, type TelemetryPort, type TesterKind, type Unsubscribe, type UploadImageResult, type Valuation, assetSymbolFor, captureException, captureExceptionSync, checkoutUrl, createCapxulClient, createOpenfortBrowserSigner, decodePayrollRunInput, decodePermissionIntent, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, fingerprintPaymentIntent, formatAssetAmount, formatMoney, inboxPhase, injectedWalletSigner, isCapxulError, isCapxulOperation, isCheckoutSettlementConsumed, isClaimed, isMoneyParseError, isRestoring, isSettingUpLifecycle, localPrivateKeyAccountProvider, normalizeCapxulOperation, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort, parseAssetAmount, parseMoney, paymentPhase, positionPeg, postHogObservability, requestPhase, requireAsset, destination as resolveIdentityDestination, toAccountId, toAssetId, toBudgetId, toCountryCode, toCurrencyCode, toAddress as toEvmAddress, toHandle, toOrgId, toPartyId, toPayrollGroupId, toPermissionAssignmentId, toPermissionId, toRaw, valueActivitySummary, valueIn };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as decodePermissionIntent } from "./organizations-
|
|
2
|
-
import { $ as formatAssetAmount, Ar as EVM_ADDRESS_RE, Bn as FixedOfferDraftSchema, Cr as toPermissionId, Dn as isCapxulOperation, Dr as toAssetId, Dt as TOKENS, En as CAPXUL_OPERATIONS, Er as currencySymbolFor, F as decodePayrollRunInput, I as toPayrollGroupId, Ii as Errors, Jn as ORGANIZATION_SETUP_REASONS, Jt as SDK_VERSION, Li as CapxulError, Mr as toAddress, On as normalizeCapxulOperation, Or as toCurrencyCode, Q as assetSymbolFor, Qn as toOrgId, Qr as EXPECTED_OPERATION_OUTCOMES, Qt as safeExceptionLabel, Ri as isCapxulError, Rn as PayrollGroupIdSchema, S as valueIn, Sr as toPermissionAssignmentId, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, Vt as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, Xn as CHAIN_UPSTREAMS, Xt as normalizeExceptionOperation, Yt as normalizeExceptionErrorKind, Zr as CAPXUL_ERROR_CODES, Zt as projectSdkException, _n as toPartyId, _r as PAYMENT_DIRECTIONS, a as paymentPhase, cn as signerFailure, dr as PaymentDocumentOptionsSchema, en as isSettingUpLifecycle, et as parseAssetAmount, fn as toCountryCode, gn as toHandle, hn as HANDLE_RE, i as inboxPhase, it as parseMoney, ln as resolveFailureMode, nt as toRaw, o as requestPhase, ot as fingerprintPaymentIntent, q as isCheckoutSettlementConsumed, qt as EXCEPTION_MESSAGE, rn as injectedWalletSigner, rt as isMoneyParseError, tt as requireAsset, ur as toAccountId, vr as PAYMENT_STATUSES, wn as EXCEPTION_EVENT_NAME, x as valueActivitySummary, xr as toBudgetId, y as positionPeg, zi as FAILURE_MODES, zn as PayrollGroupInputSchema, zt as failureDetail } from "./access-
|
|
3
|
-
import { d as devPrivateKeySigner, f as createOpenfortBrowserSigner, h as openfortEmbeddedWalletPort, i as postHogObservability, m as openfortEmbeddedSignerFromWallet, p as embeddedSigner, t as createCapxulClient$1, u as deriveDevPrivateKey } from "./production-
|
|
1
|
+
import { p as decodePermissionIntent } from "./organizations-4-jlv-yi.mjs";
|
|
2
|
+
import { $ as formatAssetAmount, Ar as EVM_ADDRESS_RE, Bn as FixedOfferDraftSchema, Cr as toPermissionId, Dn as isCapxulOperation, Dr as toAssetId, Dt as TOKENS, En as CAPXUL_OPERATIONS, Er as currencySymbolFor, F as decodePayrollRunInput, I as toPayrollGroupId, Ii as Errors, Jn as ORGANIZATION_SETUP_REASONS, Jt as SDK_VERSION, Li as CapxulError, Mr as toAddress, On as normalizeCapxulOperation, Or as toCurrencyCode, Q as assetSymbolFor, Qn as toOrgId, Qr as EXPECTED_OPERATION_OUTCOMES, Qt as safeExceptionLabel, Ri as isCapxulError, Rn as PayrollGroupIdSchema, S as valueIn, Sr as toPermissionAssignmentId, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, Vt as CAPXUL_SDK_EXPECTED_OUTCOME_EVENT, Xn as CHAIN_UPSTREAMS, Xt as normalizeExceptionOperation, Yt as normalizeExceptionErrorKind, Zr as CAPXUL_ERROR_CODES, Zt as projectSdkException, _n as toPartyId, _r as PAYMENT_DIRECTIONS, a as paymentPhase, cn as signerFailure, dr as PaymentDocumentOptionsSchema, en as isSettingUpLifecycle, et as parseAssetAmount, fn as toCountryCode, gn as toHandle, hn as HANDLE_RE, i as inboxPhase, it as parseMoney, ln as resolveFailureMode, nt as toRaw, o as requestPhase, ot as fingerprintPaymentIntent, q as isCheckoutSettlementConsumed, qt as EXCEPTION_MESSAGE, rn as injectedWalletSigner, rt as isMoneyParseError, tt as requireAsset, ur as toAccountId, vr as PAYMENT_STATUSES, wn as EXCEPTION_EVENT_NAME, x as valueActivitySummary, xr as toBudgetId, y as positionPeg, zi as FAILURE_MODES, zn as PayrollGroupInputSchema, zt as failureDetail } from "./access-cQALBWW3.mjs";
|
|
3
|
+
import { d as devPrivateKeySigner, f as createOpenfortBrowserSigner, h as openfortEmbeddedWalletPort, i as postHogObservability, m as openfortEmbeddedSignerFromWallet, p as embeddedSigner, t as createCapxulClient$1, u as deriveDevPrivateKey } from "./production-BjxVSadV.mjs";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { privateKeyToAccount } from "viem/accounts";
|
|
6
6
|
//#region src/access/identity/selectors.ts
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ji as CapxulSigner, Yo as AuthSession, bo as AuthCachePortTag, fo as OAuthBearerAuthClientInput, po as oauthBearerAuthClient, vo as AuthCacheError, xo as CachedJwt, yo as AuthCachePort } from "../index-
|
|
1
|
+
import { Ji as CapxulSigner, Yo as AuthSession, bo as AuthCachePortTag, fo as OAuthBearerAuthClientInput, po as oauthBearerAuthClient, vo as AuthCacheError, xo as CachedJwt, yo as AuthCachePort } from "../index-DidkO1aY.mjs";
|
|
2
2
|
import { Effect, FileSystem, Layer, Path } from "effect";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
//#region src/access/auth-cache/file-system.d.ts
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Di as parseAuthSession, Ei as BrowserAuthCacheAdapter, Mr as toAddress, Oi as parseCachedJwt, Ti as InMemoryAuthCacheAdapter, Ui as AuthCacheError, Vi as isRecord, Wi as AuthCachePortTag, ni as oauthBearerAuthClient, wi as globalLocalStorage } from "../access-
|
|
1
|
+
import { Di as parseAuthSession, Ei as BrowserAuthCacheAdapter, Mr as toAddress, Oi as parseCachedJwt, Ti as InMemoryAuthCacheAdapter, Ui as AuthCacheError, Vi as isRecord, Wi as AuthCachePortTag, ni as oauthBearerAuthClient, wi as globalLocalStorage } from "../access-cQALBWW3.mjs";
|
|
2
2
|
import { Effect, FileSystem, Layer, Option, Path } from "effect";
|
|
3
3
|
import { privateKeyToAccount } from "viem/accounts";
|
|
4
4
|
import * as os from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as InvitationViewSchema, At as safe4337ExecuteUserOpCallData, B as makeOrganizationPaymentsMethods, Cr as toPermissionId, Ct as SEND_BATCH_SIGNATURE, En as CAPXUL_OPERATIONS, Et as CONFIGURED_MONEY_ASSETS, Fn as replacements, Fr as absurd, Ft as SAFE_SENTINEL_OWNERS, G as makeActorRelationshipMethods, Gn as treasuries, Gr as withVerifiedOrganizationScope, Hn as members, Ii as Errors, In as PreparedPermissionExecutionSchema, Ir as reference, It as callOperation, Jr as runIfActive, Kn as workspaces, Kr as awaitCapxulResult, Li as CapxulError, Ln as PermissionCommandViewSchema, Lt as asCapxulError, Mn as authorities, Mr as toAddress, Mt as buildSafeMultiSendExecTransactionCall, N as makePayrollMethods, Ni as toEmail, Nn as commands, Nt as BASE_SEPOLIA_CHAIN_ID, O as retryIdempotentRead, Ot as deriveCapxulSafeAddress, P as makeUnavailablePayrollMethods, Pn as configurations, Pt as MULTI_SEND_CALL_ONLY, Qn as toOrgId, R as emitDepositInitiated, Ri as isCapxulError, Sr as toPermissionAssignmentId, St as SAFE_ENABLE_MODULE_ABI, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, U as waitForPaymentSubmission, Un as roles, Ur as observationOnlyControls, Vi as isRecord, Vn as invitations, Wn as setups, Wr as runCapxulEffect, Y as subscribeFreshQuery, Yr as toCapxulResult, Zn as decodeChainCause, _ as accountFromAccountPositions, _n as toPartyId, _t as ROLES_EXEC_TRANSACTION_WITH_ROLE_ABI, ar as ORG_BUDGET_ACTIONS, at as canonicalJson, b as MONEY_READ_RATES, bt as ROLES_SET_UP_ABI, cn as signerFailure, ct as ZODIAC_MODULE_PROXY_FACTORY, di as copyInvocationObservation, dt as MODULE_PROXY_FACTORY_ABI, ei as carryInvocationParentSpan, er as hashPermissionReplacementPreview, ft as MULTI_SEND_SELECTOR, gr as toLowerHex, gt as ROLES_ASSIGN_ROLES_ABI, hr as toLowerBytes32, ht as PARAMETER_TYPE, ir as MONTHLY_REFILL_PERIOD_SECONDS, jt as safe4337MultiSendUserOpCallData, kr as toExactAssetAmount, lt as resolveOrgPermissionIdentity, mr as toLowerAddress, mt as OWNER_COMMITMENT_SIGNATURES, nr as keepRefillOnChange, or as roleKeyForPermission, pr as toExactHex, pt as OPERATOR, qn as OrganizationSetupSchema, qr as defectAsCapxulError, rr as CurrentPolicySchema, st as moneySafeOpDigest, ti as withInvocationParentSpan, tr as decodePermissionIntent$1, ur as toAccountId, ut as CREATE_COMMITMENT_SIGNATURE, v as accountPositionsFromWire, vt as ROLES_SET_ALLOWANCE_ABI, wr as toRoleKey, wt as SEND_SIGNATURE, xr as toBudgetId, xt as ROLE_MANAGEMENT_SIGNATURES, yt as ROLES_SET_TRANSACTION_UNWRAPPER_ABI } from "./access-
|
|
1
|
+
import { $n as InvitationViewSchema, At as safe4337ExecuteUserOpCallData, B as makeOrganizationPaymentsMethods, Cr as toPermissionId, Ct as SEND_BATCH_SIGNATURE, En as CAPXUL_OPERATIONS, Et as CONFIGURED_MONEY_ASSETS, Fn as replacements, Fr as absurd, Ft as SAFE_SENTINEL_OWNERS, G as makeActorRelationshipMethods, Gn as treasuries, Gr as withVerifiedOrganizationScope, Hn as members, Ii as Errors, In as PreparedPermissionExecutionSchema, Ir as reference, It as callOperation, Jr as runIfActive, Kn as workspaces, Kr as awaitCapxulResult, Li as CapxulError, Ln as PermissionCommandViewSchema, Lt as asCapxulError, Mn as authorities, Mr as toAddress, Mt as buildSafeMultiSendExecTransactionCall, N as makePayrollMethods, Ni as toEmail, Nn as commands, Nt as BASE_SEPOLIA_CHAIN_ID, O as retryIdempotentRead, Ot as deriveCapxulSafeAddress, P as makeUnavailablePayrollMethods, Pn as configurations, Pt as MULTI_SEND_CALL_ONLY, Qn as toOrgId, R as emitDepositInitiated, Ri as isCapxulError, Sr as toPermissionAssignmentId, St as SAFE_ENABLE_MODULE_ABI, Tt as CAPXUL_PAYMENTS_V2_ADDRESS, U as waitForPaymentSubmission, Un as roles, Ur as observationOnlyControls, Vi as isRecord, Vn as invitations, Wn as setups, Wr as runCapxulEffect, Y as subscribeFreshQuery, Yr as toCapxulResult, Zn as decodeChainCause, _ as accountFromAccountPositions, _n as toPartyId, _t as ROLES_EXEC_TRANSACTION_WITH_ROLE_ABI, ar as ORG_BUDGET_ACTIONS, at as canonicalJson, b as MONEY_READ_RATES, bt as ROLES_SET_UP_ABI, cn as signerFailure, ct as ZODIAC_MODULE_PROXY_FACTORY, di as copyInvocationObservation, dt as MODULE_PROXY_FACTORY_ABI, ei as carryInvocationParentSpan, er as hashPermissionReplacementPreview, ft as MULTI_SEND_SELECTOR, gr as toLowerHex, gt as ROLES_ASSIGN_ROLES_ABI, hr as toLowerBytes32, ht as PARAMETER_TYPE, ir as MONTHLY_REFILL_PERIOD_SECONDS, jt as safe4337MultiSendUserOpCallData, kr as toExactAssetAmount, lt as resolveOrgPermissionIdentity, mr as toLowerAddress, mt as OWNER_COMMITMENT_SIGNATURES, nr as keepRefillOnChange, or as roleKeyForPermission, pr as toExactHex, pt as OPERATOR, qn as OrganizationSetupSchema, qr as defectAsCapxulError, rr as CurrentPolicySchema, st as moneySafeOpDigest, ti as withInvocationParentSpan, tr as decodePermissionIntent$1, ur as toAccountId, ut as CREATE_COMMITMENT_SIGNATURE, v as accountPositionsFromWire, vt as ROLES_SET_ALLOWANCE_ABI, wr as toRoleKey, wt as SEND_SIGNATURE, xr as toBudgetId, xt as ROLE_MANAGEMENT_SIGNATURES, yt as ROLES_SET_TRANSACTION_UNWRAPPER_ABI } from "./access-cQALBWW3.mjs";
|
|
2
2
|
import { Context, Data, Effect, Result, Schema } from "effect";
|
|
3
3
|
import { BaseError, decodeFunctionData, encodeAbiParameters, encodeFunctionData, formatUnits, getContractAddress, keccak256, padHex, parseAbiParameters, toBytes, toFunctionSelector, toHex } from "viem";
|
|
4
4
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as verifiedConfiguration, d as verifiedPreparation, f as buildCommand, i as prepareConfiguration, l as preparePermission, m as validateReplacementInput, r as authorInvitation, u as preparedIdentity } from "./organizations-
|
|
2
|
-
import { En as CAPXUL_OPERATIONS, Fr as absurd, Ii as Errors, Li as CapxulError, Lt as asCapxulError, X as abandonPrepared } from "./access-
|
|
1
|
+
import { a as verifiedConfiguration, d as verifiedPreparation, f as buildCommand, i as prepareConfiguration, l as preparePermission, m as validateReplacementInput, r as authorInvitation, u as preparedIdentity } from "./organizations-4-jlv-yi.mjs";
|
|
2
|
+
import { En as CAPXUL_OPERATIONS, Fr as absurd, Ii as Errors, Li as CapxulError, Lt as asCapxulError, X as abandonPrepared } from "./access-cQALBWW3.mjs";
|
|
3
3
|
//#region src/accounts/permission-approvals.ts
|
|
4
4
|
/** Prepare a Permission write or an invitation's configuration for `signerAddress`, checked. */
|
|
5
5
|
function prepareVerifiedPermissionChange(deps, input, signerAddress, signal) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as deserializeCapxulError, n as makeOrgMethods, o as ConvexOrganizationAdapter, s as OrgPortTag, t as ConvexOrganizationSetupAdapter } from "./organizations-
|
|
2
|
-
import { $r as ActorFailure, $t as version, A as registerProductTelemetryInvocation, Ai as toEpochMs, An as details, Bi as isFailureMode, Br as runIdentityFacade, Bt as failureEvidenceProps, C as AccountReadPortTag, Ci as detectAuthCacheAdapter, Cn as CLI_INVOCATION_KINDS, D as convexCallErrorFromCapxul, Dn as isCapxulOperation, E as ConvexCallPortTag, En as CAPXUL_OPERATIONS, Gt as observationContextProps, H as makePaymentsMethods, Hi as readField, Hr as sessionFromActor, Ht as postHogFailureObservation, Ii as Errors, It as callOperation, J as makeTargetsMethods, Jn as ORGANIZATION_SETUP_REASONS, K as makeCheckoutMethods, Kt as withCapturedAttemptContext, L as makeAccountMethods, Li as CapxulError, Lr as makeAuthMethods, Lt as asCapxulError, M as makeApprovalsMethods, Mi as toAuthUserId, Mr as toAddress, Ni as toEmail, Nt as BASE_SEPOLIA_CHAIN_ID, On as normalizeCapxulOperation, Ri as isCapxulError, Rr as askIdentity, Rt as toPublicError, Si as AuthClientPortTag, Sn as CLI_COMMAND_NAMES, T as TelemetryPortTag, Tn as stampTelemetryEnvelope, Tr as ChainIdSchema, Ut as observeFailedResult, V as makeOfframpMethods, Vi as isRecord, Vr as runPortEffect, W as makeDestinationsMethods, Wi as AuthCachePortTag, Wn as setups, Wr as runCapxulEffect, Wt as observeSdkClient, Xr as formatTraceparent, Yn as ORGANIZATION_SETUP_STATUSES, Yr as toCapxulResult, Zn as decodeChainCause, Zr as CAPXUL_ERROR_CODES, _i as toAllowedOrigin, ai as ClockPortTag, an as isSignerNotReadySignal, bn as redactTelemetryProps, br as EpochMsSchema, c as makePaymentDocumentsMethods, ci as BetterAuthBrowserLayer, cn as signerFailure, cr as AppIdSchema, d as SmartAccountPortTag, di as copyInvocationObservation, dn as makeClientRequestMethods, ei as carryInvocationParentSpan, fi as readInvocationObservation, fn as toCountryCode, fr as isBytes32, g as ConvexAccountLayer, gi as isCredentialField, gn as toHandle, h as makeAccountsMethods, hi as redactUrlSecrets, in as isEcdsaSignatureHex, jn as onboardings, jr as isEvmAddress, k as bindProductTelemetryInvocation, kn as OPERATIONS, kt as normalizeSafeSaltEmail, l as makeSmartAccountMethods, li as observationRequestHeaders, lr as images, m as PonderIndexerAdapter, mi as redactSecrets, mn as toTesterKind, n as bootIdentityFlow, nn as causeChain, on as openfortSignerNotReadyCode, p as makeHoldingsMethods, pi as sanitizeObservationContext, pn as toKycTier, r as makeMeMethods, ri as SystemClockLayer, s as makeActivityMethods, si as BetterAuthNodeLayer, sn as recoverRawDigestSigner, sr as diagnostics, t as executeIdentityProductObservation, tn as UNOBSERVABLE_SIGNER_STATUS, u as ConvexSmartAccountLayer, ui as attachInvocationObservation, un as makeCurrentUserMethods, vn as validateHandle, wi as globalLocalStorage, xi as AuthClientError, xn as CLI_CAPABILITIES, yi as toPublishableKey, yr as DurationMsSchema, z as logDroppedEvent, zi as FAILURE_MODES, zr as publicIdentityFailure, zt as failureDetail } from "./access-
|
|
1
|
+
import { c as deserializeCapxulError, n as makeOrgMethods, o as ConvexOrganizationAdapter, s as OrgPortTag, t as ConvexOrganizationSetupAdapter } from "./organizations-4-jlv-yi.mjs";
|
|
2
|
+
import { $r as ActorFailure, $t as version, A as registerProductTelemetryInvocation, Ai as toEpochMs, An as details, Bi as isFailureMode, Br as runIdentityFacade, Bt as failureEvidenceProps, C as AccountReadPortTag, Ci as detectAuthCacheAdapter, Cn as CLI_INVOCATION_KINDS, D as convexCallErrorFromCapxul, Dn as isCapxulOperation, E as ConvexCallPortTag, En as CAPXUL_OPERATIONS, Gt as observationContextProps, H as makePaymentsMethods, Hi as readField, Hr as sessionFromActor, Ht as postHogFailureObservation, Ii as Errors, It as callOperation, J as makeTargetsMethods, Jn as ORGANIZATION_SETUP_REASONS, K as makeCheckoutMethods, Kt as withCapturedAttemptContext, L as makeAccountMethods, Li as CapxulError, Lr as makeAuthMethods, Lt as asCapxulError, M as makeApprovalsMethods, Mi as toAuthUserId, Mr as toAddress, Ni as toEmail, Nt as BASE_SEPOLIA_CHAIN_ID, On as normalizeCapxulOperation, Ri as isCapxulError, Rr as askIdentity, Rt as toPublicError, Si as AuthClientPortTag, Sn as CLI_COMMAND_NAMES, T as TelemetryPortTag, Tn as stampTelemetryEnvelope, Tr as ChainIdSchema, Ut as observeFailedResult, V as makeOfframpMethods, Vi as isRecord, Vr as runPortEffect, W as makeDestinationsMethods, Wi as AuthCachePortTag, Wn as setups, Wr as runCapxulEffect, Wt as observeSdkClient, Xr as formatTraceparent, Yn as ORGANIZATION_SETUP_STATUSES, Yr as toCapxulResult, Zn as decodeChainCause, Zr as CAPXUL_ERROR_CODES, _i as toAllowedOrigin, ai as ClockPortTag, an as isSignerNotReadySignal, bn as redactTelemetryProps, br as EpochMsSchema, c as makePaymentDocumentsMethods, ci as BetterAuthBrowserLayer, cn as signerFailure, cr as AppIdSchema, d as SmartAccountPortTag, di as copyInvocationObservation, dn as makeClientRequestMethods, ei as carryInvocationParentSpan, fi as readInvocationObservation, fn as toCountryCode, fr as isBytes32, g as ConvexAccountLayer, gi as isCredentialField, gn as toHandle, h as makeAccountsMethods, hi as redactUrlSecrets, in as isEcdsaSignatureHex, jn as onboardings, jr as isEvmAddress, k as bindProductTelemetryInvocation, kn as OPERATIONS, kt as normalizeSafeSaltEmail, l as makeSmartAccountMethods, li as observationRequestHeaders, lr as images, m as PonderIndexerAdapter, mi as redactSecrets, mn as toTesterKind, n as bootIdentityFlow, nn as causeChain, on as openfortSignerNotReadyCode, p as makeHoldingsMethods, pi as sanitizeObservationContext, pn as toKycTier, r as makeMeMethods, ri as SystemClockLayer, s as makeActivityMethods, si as BetterAuthNodeLayer, sn as recoverRawDigestSigner, sr as diagnostics, t as executeIdentityProductObservation, tn as UNOBSERVABLE_SIGNER_STATUS, u as ConvexSmartAccountLayer, ui as attachInvocationObservation, un as makeCurrentUserMethods, vn as validateHandle, wi as globalLocalStorage, xi as AuthClientError, xn as CLI_CAPABILITIES, yi as toPublishableKey, yr as DurationMsSchema, z as logDroppedEvent, zi as FAILURE_MODES, zr as publicIdentityFailure, zt as failureDetail } from "./access-cQALBWW3.mjs";
|
|
3
3
|
import { Cause, Clock, Context, Data, Deferred, Duration, Effect, Exit, FiberSet, Layer, Logger, Metric, Option, Predicate, References, Result, Schedule, Schema, SchemaIssue, SchemaParser, Scope, Stream, Tracer } from "effect";
|
|
4
4
|
import { getFunctionName } from "convex/server";
|
|
5
5
|
import { keccak256, stringToHex } from "viem";
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Aa as OrganizationSetup, Co as CapxulResult, E as OpenfortBrowserSignerOptions, Ji as CapxulSigner, ao as TelemetryPortEvent, io as TelemetryEvent, l as CapxulClientInput, mo as ObservationAdapter, no as TelemetryGroupInput, ot as IdentityTransition, ro as TelemetryIdentifyInput, z as CapxulClient } from "../index-
|
|
1
|
+
import { Aa as OrganizationSetup, Co as CapxulResult, E as OpenfortBrowserSignerOptions, Ji as CapxulSigner, ao as TelemetryPortEvent, io as TelemetryEvent, l as CapxulClientInput, mo as ObservationAdapter, no as TelemetryGroupInput, ot as IdentityTransition, ro as TelemetryIdentifyInput, z as CapxulClient } from "../index-DidkO1aY.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 { Ai as toEpochMs, D as convexCallErrorFromCapxul, Et as CONFIGURED_MONEY_ASSETS, Fi as toSessionToken, Fr as absurd, Ii as Errors, Li as CapxulError, Mi as toAuthUserId, Mr as toAddress, Ni as toEmail, Nr as toChainId, Ot as deriveCapxulSafeAddress, Pi as toJwtToken, Pr as toWeiAmount, Qn as toOrgId, Ti as InMemoryAuthCacheAdapter, Z as assetAmountFromRaw, _ as accountFromAccountPositions, _i as toAllowedOrigin, ai as ClockPortTag, bi as authClientPortFromPromiseAdapter, f as smartAccountErrorFromCapxul, fn as toCountryCode, gn as toHandle, ii as ClockError, j as wireChainId, ji as toEpochSeconds, ki as toDurationMs, nt as toRaw, oi as readClockNow, pn as toKycTier, ur as toAccountId, vi as toAppId, vn as validateHandle, w as accountReadErrorFromCapxul, yi as toPublishableKey, yn as redactTelemetryEvent } from "../access-
|
|
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 { Ai as toEpochMs, D as convexCallErrorFromCapxul, Et as CONFIGURED_MONEY_ASSETS, Fi as toSessionToken, Fr as absurd, Ii as Errors, Li as CapxulError, Mi as toAuthUserId, Mr as toAddress, Ni as toEmail, Nr as toChainId, Ot as deriveCapxulSafeAddress, Pi as toJwtToken, Pr as toWeiAmount, Qn as toOrgId, Ti as InMemoryAuthCacheAdapter, Z as assetAmountFromRaw, _ as accountFromAccountPositions, _i as toAllowedOrigin, ai as ClockPortTag, bi as authClientPortFromPromiseAdapter, f as smartAccountErrorFromCapxul, fn as toCountryCode, gn as toHandle, ii as ClockError, j as wireChainId, ji as toEpochSeconds, ki as toDurationMs, nt as toRaw, oi as readClockNow, pn as toKycTier, ur as toAccountId, vi as toAppId, vn as validateHandle, w as accountReadErrorFromCapxul, yi as toPublishableKey, yn as redactTelemetryEvent } from "../access-cQALBWW3.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-BjxVSadV.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
|
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.30",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"vite-plus": "1.0.0",
|
|
84
84
|
"vitest": "5.0.1",
|
|
85
85
|
"zodiac-roles-sdk": "2.22.2",
|
|
86
|
-
"@capxul/
|
|
87
|
-
"@capxul/
|
|
86
|
+
"@capxul/protocol": "0.2.0-beta.4",
|
|
87
|
+
"@capxul/observability": "4.20.0-beta.30",
|
|
88
88
|
"@capxul/typescript-config": "0.0.0"
|
|
89
89
|
},
|
|
90
90
|
"_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.",
|