@capxul/sdk 1.0.0-alpha.10 → 1.0.0-alpha.12

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/index.d.mts CHANGED
@@ -1,10 +1,14 @@
1
- import { A as SubAccount, C as PublishableKey, D as RunId, E as RoleKey, F as CapxulErrorDetails, I as FailureMode, N as CapxulError, O as SessionToken, P as CapxulErrorCode, S as Profile$1, T as PublishableKeyRecord, _ as EpochMs, a as AnonymousDistinctId, b as Money, c as AuthUserId, d as CountryCode, f as CurrencyCode, g as Email, h as DurationMs, i as AllowedOrigin, j as SubAccountId, k as SmartAccount$1, m as DocumentHash, n as AccountId, o as AppId, p as DeveloperApplication, r as Address, s as AuthSession, t as Account, u as ChainId, w as PublishableKeyId, x as OrgId } from "./index-CTXgQ_xR.mjs";
2
- import { a as AccountProvider, c as Eip1193Provider, d as CapxulResult, f as Profile, g as AuthCachePort, i as injectedWalletSigner, l as eip1193AccountProvider, m as SmartAccount, n as CapxulSigner, o as AccountProviderSource, p as Session, r as Eip1193RequestProvider, s as AccountRequirement, t as CapxulDigestSigner, u as localPrivateKeyAccountProvider, v as CachedJwt } from "./signer-D9fUJp8o.mjs";
3
- import { a as SafeDeploymentEvidence, n as SafeDeploymentConfig } from "./safe-deployment-D3k9yndM.mjs";
4
- import { Hex } from "viem";
1
+ import { a as AccountProvider, c as Eip1193Provider, d as CapxulResult, f as Profile, g as AuthCachePort, i as injectedWalletSigner, l as eip1193AccountProvider, m as SmartAccount, n as CapxulSigner, o as AccountProviderSource, p as Session, r as Eip1193RequestProvider, s as AccountRequirement, t as CapxulDigestSigner, u as localPrivateKeyAccountProvider, v as CachedJwt } from "./signer-DEMJbpJ2.mjs";
2
+ import { a as SafeDeploymentEvidence, n as SafeDeploymentConfig } from "./safe-deployment-DMGB1kEL.mjs";
3
+ import { CapxulError, CapxulError as CapxulError$1, CapxulErrorCode, CapxulErrorCode as CapxulErrorCode$1, CapxulErrorDetails, CapxulErrorDetails as CapxulErrorDetails$1, isCapxulError } from "@capxul/errors";
4
+ import { CapxulError as CapxulError$2, CapxulErrorCode as CapxulErrorCode$2, CapxulErrorDetails as CapxulErrorDetails$2, FailureMode } from "@capxul/config";
5
+ import { Account, Account as Account$1, AccountId, Address, Address as Address$1, AllowedOrigin, AnonymousDistinctId, AppId, AuthSession, AuthSession as AuthSession$1, AuthUserId, AuthUserId as AuthUserId$1, ChainId, CountryCode, DeveloperApplication, DurationMs, Email, EpochMs, Money, Money as Money$1, OrgId, OrgId as OrgId$1, Profile as Profile$1, PublishableKey, PublishableKeyId, PublishableKeyRecord, RoleKey, RoleKey as RoleKey$1, RunId, SessionToken, SmartAccount as SmartAccount$1, SubAccount, SubAccount as SubAccount$1, SubAccountId, SubAccountId as SubAccountId$1 } from "@capxul/types";
5
6
  import { Context, Effect, Layer, Request } from "effect";
6
7
  import { FunctionReference } from "convex/server";
8
+ import { Hex } from "viem";
7
9
  import { Schema } from "@effect/schema";
10
+ import { AttachablePaymentDocumentEnvelopeV1, LineItemV1, OnchainEvidence, PaymentDocumentEnvelopeV1, WithdrawalDocumentEnvelopeV1 } from "@capxul/wire";
11
+ import { TelemetryPort } from "@capxul/observability";
8
12
  import { Machine } from "@effect/experimental";
9
13
 
10
14
  //#region src/ports/auth-client.d.ts
@@ -39,8 +43,8 @@ declare class AuthClientError extends AuthClientError_base<{
39
43
  interface AuthClientPort {
40
44
  canSendOtp(input: CanSendOtpInput, options?: AuthClientOperationOptions): Effect.Effect<CanSendOtpStatus, AuthClientError>;
41
45
  sendOtp(input: SendOtpInput, options?: AuthClientOperationOptions): Effect.Effect<void, AuthClientError>;
42
- verifyOtp(input: VerifyOtpInput, options?: AuthClientOperationOptions): Effect.Effect<AuthSession, AuthClientError>;
43
- getSession(options?: AuthClientOperationOptions): Effect.Effect<AuthSession | null, AuthClientError>;
46
+ verifyOtp(input: VerifyOtpInput, options?: AuthClientOperationOptions): Effect.Effect<AuthSession$1, AuthClientError>;
47
+ getSession(options?: AuthClientOperationOptions): Effect.Effect<AuthSession$1 | null, AuthClientError>;
44
48
  signOut(options?: AuthClientOperationOptions): Effect.Effect<void, AuthClientError>;
45
49
  /**
46
50
  * Fetches a Convex-aud JWT from `/api/auth/convex/token` (W7). Server mints
@@ -65,50 +69,6 @@ declare class ClockError extends ClockError_base<{
65
69
  readonly cause: unknown;
66
70
  }> {}
67
71
  //#endregion
68
- //#region ../observability/src/telemetry-port.d.ts
69
- /**
70
- * Context for reporting handled errors via `reportHandledError`.
71
- * Carries structured metadata extracted from the error context.
72
- */
73
- interface HandledErrorReportContext$1 {
74
- readonly layer?: string;
75
- readonly operation?: string;
76
- readonly failure_mode?: FailureMode;
77
- readonly provider?: string;
78
- }
79
- /**
80
- * Canonical TelemetryPort interface. Every adapter (production, test, in-memory)
81
- * implements this contract. All methods return `Effect<void, never>` —
82
- * fire-and-forget, defects are caught and traced.
83
- */
84
- interface TelemetryPort {
85
- readonly emit: (event: TelemetryEvent) => Effect.Effect<void, never>;
86
- readonly identify: (input: TelemetryIdentifyInput) => Effect.Effect<void, never>;
87
- readonly group: (input: TelemetryGroupInput) => Effect.Effect<void, never>;
88
- readonly reset: () => Effect.Effect<void, never>;
89
- readonly reportHandledError?: (error: CapxulError, context?: HandledErrorReportContext$1) => Effect.Effect<void, never>;
90
- }
91
- //#endregion
92
- //#region ../observability/src/index.d.ts
93
- declare const TELEMETRY_EVENT_NAMES: readonly ["auth_otp_requested", "auth_otp_delivered", "auth_otp_expired", "auth_verified", "auth_failed", "auth_signed_out", "provisioning_safe_created", "provisioning_safe_confirmed", "bootstrap_resolved", "bootstrap_failed", "account_balance_read", "account_balance_failed", "faucet_requested", "faucet_confirmed", "faucet_failed", "subaccount_created", "subaccount_renamed", "subaccount_deleted", "subaccount_op_failed", "transfer_requested", "transfer_confirmed", "transfer_failed", "org_create_started", "org_safe_created", "org_safe_confirmed", "org_roles_seeded", "org_created", "org_create_failed", "org_invite_sent", "org_invite_accepted", "org_role_granted", "org_member_active", "org_member_removed", "org_invite_expired", "org_role_grant_failed", "payment_requested", "payment_resolved", "payment_document_attached", "payment_submitted", "payment_settled", "payment_claimed", "payment_cancelled", "payment_redirected", "payment_failed", "stream_created", "stream_claimed", "stream_cancelled", "stream_completed", "stream_failed", "withdrawal_requested", "withdrawal_submitted", "withdrawal_settled", "withdrawal_failed"];
94
- type TelemetryEventName = (typeof TELEMETRY_EVENT_NAMES)[number];
95
- type TelemetryProps = Record<string, unknown>;
96
- type TelemetryEvent = {
97
- readonly name: TelemetryEventName;
98
- readonly props?: TelemetryProps | undefined;
99
- };
100
- interface TelemetryIdentifyInput {
101
- readonly distinctId: string;
102
- readonly anonDistinctId?: AnonymousDistinctId;
103
- readonly traits?: TelemetryProps;
104
- readonly properties?: TelemetryProps;
105
- }
106
- interface TelemetryGroupInput {
107
- readonly groupType: string;
108
- readonly groupKey: string;
109
- readonly properties?: TelemetryProps;
110
- }
111
- //#endregion
112
72
  //#region src/flows/auth.d.ts
113
73
  interface AuthFlowInput {
114
74
  readonly otpTtlMs?: number;
@@ -117,10 +77,10 @@ type AuthFlowState = "idle" | "sending_otp" | "otp_requested" | "verifying" | "a
117
77
  interface AuthFlowContext {
118
78
  readonly state: AuthFlowState;
119
79
  readonly email: Email | null;
120
- readonly session: AuthSession | null;
80
+ readonly session: AuthSession$1 | null;
121
81
  readonly otpRequestedAt: EpochMs | null;
122
82
  readonly anonDistinctId?: AnonymousDistinctId;
123
- readonly error: CapxulError | null;
83
+ readonly error: CapxulError$2 | null;
124
84
  }
125
85
  interface AuthFlowObserver {
126
86
  readonly input: AuthFlowInput;
@@ -148,10 +108,10 @@ declare const EnvError_base: new <A extends Record<string, any> = {}>(args: impo
148
108
  readonly _tag: "EnvError";
149
109
  } & Readonly<A>;
150
110
  declare class EnvError extends EnvError_base<{
151
- readonly publicError: CapxulError;
152
- readonly publicCode?: CapxulErrorCode;
111
+ readonly publicError: CapxulError$2;
112
+ readonly publicCode?: CapxulErrorCode$2;
153
113
  readonly key?: string;
154
- readonly details?: CapxulErrorDetails;
114
+ readonly details?: CapxulErrorDetails$2;
155
115
  readonly cause?: unknown;
156
116
  }> {}
157
117
  interface EnvPort {
@@ -173,11 +133,11 @@ declare const TransportError_base: new <A extends Record<string, any> = {}>(args
173
133
  declare class TransportError extends TransportError_base<{
174
134
  readonly operation: TransportOperationKind;
175
135
  readonly name: string;
176
- readonly publicCode: CapxulErrorCode;
177
- readonly publicError: CapxulError;
136
+ readonly publicCode: CapxulErrorCode$2;
137
+ readonly publicError: CapxulError$2;
178
138
  readonly cause: unknown;
179
139
  readonly correlationId?: string;
180
- readonly details?: CapxulErrorDetails;
140
+ readonly details?: CapxulErrorDetails$2;
181
141
  }> {}
182
142
  interface TransportPort {
183
143
  readonly runQuery: <TOutput = unknown, TArgs = unknown>(request: TransportRequest<TArgs>) => Effect.Effect<TOutput, TransportError>;
@@ -219,9 +179,9 @@ declare const BootstrapError_base: new <A extends Record<string, any> = {}>(args
219
179
  declare class BootstrapError extends BootstrapError_base<{
220
180
  readonly operation: "resolve";
221
181
  readonly kind: BootstrapErrorKind;
222
- readonly publicCode: CapxulErrorCode;
182
+ readonly publicCode: CapxulErrorCode$2;
223
183
  readonly cause: unknown;
224
- readonly details?: CapxulErrorDetails;
184
+ readonly details?: CapxulErrorDetails$2;
225
185
  }> {}
226
186
  interface BootstrapPort {
227
187
  readonly resolve: (input: BootstrapInput) => Effect.Effect<BootstrapResolution, BootstrapError>;
@@ -265,7 +225,7 @@ type Unsubscribe = () => void;
265
225
  *
266
226
  * @internal-use
267
227
  */
268
- type Snapshot<T, E = CapxulError> = {
228
+ type Snapshot<T, E = CapxulError$2> = {
269
229
  readonly status: "loading";
270
230
  } | {
271
231
  readonly status: "ok";
@@ -281,10 +241,10 @@ declare const ConvexCallError_base: new <A extends Record<string, any> = {}>(arg
281
241
  } & Readonly<A>;
282
242
  declare class ConvexCallError extends ConvexCallError_base<{
283
243
  readonly operation: string;
284
- readonly publicCode: CapxulErrorCode;
285
- readonly publicError: CapxulError;
244
+ readonly publicCode: CapxulErrorCode$2;
245
+ readonly publicError: CapxulError$2;
286
246
  readonly cause: unknown;
287
- readonly details?: CapxulErrorDetails;
247
+ readonly details?: CapxulErrorDetails$2;
288
248
  }> {}
289
249
  interface ConvexCallPort {
290
250
  query<TArgs extends Record<string, unknown>, TOutput>(fn: FunctionReference<"query", "public", TArgs, TOutput>, args: TArgs): Effect.Effect<TOutput, ConvexCallError>;
@@ -301,22 +261,22 @@ interface ConvexCallPort {
301
261
  //#endregion
302
262
  //#region src/ports/credentials.d.ts
303
263
  type CreateApplicationInput = {
304
- readonly authUserId: AuthUserId;
264
+ readonly authUserId: AuthUserId$1;
305
265
  readonly name: string;
306
266
  readonly allowedOrigins: readonly AllowedOrigin[];
307
267
  };
308
268
  type MintKeyInput = {
309
269
  readonly applicationId: AppId;
310
- readonly authUserId: AuthUserId;
270
+ readonly authUserId: AuthUserId$1;
311
271
  };
312
272
  type RotateKeyInput = {
313
273
  readonly keyId: PublishableKeyId;
314
- readonly authUserId: AuthUserId;
274
+ readonly authUserId: AuthUserId$1;
315
275
  readonly graceMs: DurationMs;
316
276
  };
317
277
  type RevokeKeyInput = {
318
278
  readonly keyId: PublishableKeyId;
319
- readonly authUserId: AuthUserId;
279
+ readonly authUserId: AuthUserId$1;
320
280
  };
321
281
  type RotateKeyResult = {
322
282
  readonly active: PublishableKeyRecord;
@@ -327,13 +287,13 @@ declare const CredentialsError_base: new <A extends Record<string, any> = {}>(ar
327
287
  } & Readonly<A>;
328
288
  declare class CredentialsError extends CredentialsError_base<{
329
289
  readonly operation: string;
330
- readonly publicCode: CapxulErrorCode;
331
- readonly publicError: CapxulError;
290
+ readonly publicCode: CapxulErrorCode$2;
291
+ readonly publicError: CapxulError$2;
332
292
  readonly cause: unknown;
333
- readonly details?: CapxulErrorDetails;
293
+ readonly details?: CapxulErrorDetails$2;
334
294
  }> {}
335
295
  interface CredentialsPort {
336
- listApplications(authUserId: AuthUserId): Effect.Effect<readonly DeveloperApplication[], CredentialsError>;
296
+ listApplications(authUserId: AuthUserId$1): Effect.Effect<readonly DeveloperApplication[], CredentialsError>;
337
297
  createApplication(input: CreateApplicationInput): Effect.Effect<DeveloperApplication, CredentialsError>;
338
298
  mintPublishableKey(input: MintKeyInput): Effect.Effect<PublishableKeyRecord, CredentialsError>;
339
299
  rotatePublishableKey(input: RotateKeyInput): Effect.Effect<RotateKeyResult, CredentialsError>;
@@ -342,13 +302,13 @@ interface CredentialsPort {
342
302
  //#endregion
343
303
  //#region src/ports/identity.d.ts
344
304
  type CreateIdentityInput = {
345
- readonly authUserId: AuthUserId;
305
+ readonly authUserId: AuthUserId$1;
346
306
  readonly email: Email;
347
307
  readonly displayName?: string;
348
308
  readonly country?: CountryCode;
349
309
  };
350
310
  type UpdateIdentityInput = {
351
- readonly authUserId: AuthUserId;
311
+ readonly authUserId: AuthUserId$1;
352
312
  readonly displayName?: string;
353
313
  readonly country?: CountryCode;
354
314
  };
@@ -361,24 +321,24 @@ type UpdateIdentityInput = {
361
321
  * flags live on the wire row and are not projected onto the read surface.
362
322
  */
363
323
  type CompleteOnboardingIdentityInput = {
364
- readonly authUserId: AuthUserId;
324
+ readonly authUserId: AuthUserId$1;
365
325
  readonly email: Email;
366
326
  readonly displayName: string;
367
327
  readonly country: CountryCode;
368
- readonly withdrawalAddress?: Address;
328
+ readonly withdrawalAddress?: Address$1;
369
329
  };
370
330
  declare const IdentityError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
371
331
  readonly _tag: "IdentityError";
372
332
  } & Readonly<A>;
373
333
  declare class IdentityError extends IdentityError_base<{
374
334
  readonly operation: string;
375
- readonly publicCode: CapxulErrorCode;
376
- readonly publicError: CapxulError;
335
+ readonly publicCode: CapxulErrorCode$2;
336
+ readonly publicError: CapxulError$2;
377
337
  readonly cause: unknown;
378
- readonly details?: CapxulErrorDetails;
338
+ readonly details?: CapxulErrorDetails$2;
379
339
  }> {}
380
340
  interface IdentityPort {
381
- loadByAuthUserId(authUserId: AuthUserId): Effect.Effect<Profile$1 | null, IdentityError, never>;
341
+ loadByAuthUserId(authUserId: AuthUserId$1): Effect.Effect<Profile$1 | null, IdentityError, never>;
382
342
  create(input: CreateIdentityInput): Effect.Effect<Profile$1, IdentityError, never>;
383
343
  update(input: UpdateIdentityInput): Effect.Effect<Profile$1, IdentityError, never>;
384
344
  /** D-ONBOARD (#669): idempotent upsert that marks the identity onboarded. */
@@ -387,7 +347,7 @@ interface IdentityPort {
387
347
  //#endregion
388
348
  //#region src/ports/smart-account.d.ts
389
349
  type ProvisionInput = {
390
- readonly authUserId: AuthUserId;
350
+ readonly authUserId: AuthUserId$1;
391
351
  readonly chainId: ChainId;
392
352
  };
393
353
  /**
@@ -405,9 +365,9 @@ type ProvisionInput = {
405
365
  * `eth_getUserOperationReceipt(userOpHash)` to re-verify and derive.
406
366
  */
407
367
  type ConfirmDeploymentInput = {
408
- readonly authUserId: AuthUserId;
368
+ readonly authUserId: AuthUserId$1;
409
369
  readonly chainId: ChainId;
410
- readonly safeAddress: Address;
370
+ readonly safeAddress: Address$1;
411
371
  readonly evidence: SafeDeploymentEvidence;
412
372
  /**
413
373
  * Optional live-E2E correlation id. This does not prove deployment; the
@@ -423,9 +383,9 @@ type ConfirmDeploymentInput = {
423
383
  * nothing at claim.
424
384
  */
425
385
  type ClaimInput = {
426
- readonly authUserId: AuthUserId;
386
+ readonly authUserId: AuthUserId$1;
427
387
  readonly chainId: ChainId;
428
- readonly signerAddress: Address;
388
+ readonly signerAddress: Address$1;
429
389
  readonly telemetryRunId?: RunId;
430
390
  };
431
391
  declare const SmartAccountError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => import("effect/Cause").YieldableError & {
@@ -433,14 +393,14 @@ declare const SmartAccountError_base: new <A extends Record<string, any> = {}>(a
433
393
  } & Readonly<A>;
434
394
  declare class SmartAccountError extends SmartAccountError_base<{
435
395
  readonly operation: string;
436
- readonly publicCode: CapxulErrorCode;
437
- readonly publicError: CapxulError;
396
+ readonly publicCode: CapxulErrorCode$2;
397
+ readonly publicError: CapxulError$2;
438
398
  readonly cause: unknown;
439
- readonly details?: CapxulErrorDetails;
399
+ readonly details?: CapxulErrorDetails$2;
440
400
  }> {}
441
401
  interface SmartAccountPort {
442
- loadByAuthUserId(authUserId: AuthUserId): Effect.Effect<SmartAccount$1 | null, SmartAccountError, never>;
443
- loadBySmartAccountAddress(address: Address): Effect.Effect<SmartAccount$1 | null, SmartAccountError, never>;
402
+ loadByAuthUserId(authUserId: AuthUserId$1): Effect.Effect<SmartAccount$1 | null, SmartAccountError, never>;
403
+ loadBySmartAccountAddress(address: Address$1): Effect.Effect<SmartAccount$1 | null, SmartAccountError, never>;
444
404
  provision(input: ProvisionInput): Effect.Effect<SmartAccount$1, SmartAccountError, never>;
445
405
  /**
446
406
  * Persist on-chain Safe-deployment evidence. The backend re-verifies
@@ -468,7 +428,7 @@ type ReadAccountBalanceInput = {
468
428
  };
469
429
  type FundFromFaucetInput = {
470
430
  readonly chainId: ChainId;
471
- readonly amount: Money;
431
+ readonly amount: Money$1;
472
432
  };
473
433
  type FundFromFaucetResult = {
474
434
  readonly txHash: string;
@@ -478,17 +438,17 @@ declare const AccountReadError_base: new <A extends Record<string, any> = {}>(ar
478
438
  } & Readonly<A>;
479
439
  declare class AccountReadError extends AccountReadError_base<{
480
440
  readonly operation: string;
481
- readonly publicCode: CapxulErrorCode;
482
- readonly publicError: CapxulError;
441
+ readonly publicCode: CapxulErrorCode$2;
442
+ readonly publicError: CapxulError$2;
483
443
  readonly cause: unknown;
484
- readonly details?: CapxulErrorDetails;
444
+ readonly details?: CapxulErrorDetails$2;
485
445
  }> {}
486
446
  /**
487
447
  * Logical Account money read (M2 Slice S1a). Joins the `accounts` row with a
488
448
  * live RPC `balanceOf` pull; the adapter lifts wire integers to `Money`.
489
449
  */
490
450
  interface AccountReadPort {
491
- readBalance(input: ReadAccountBalanceInput): Effect.Effect<Account, AccountReadError, never>;
451
+ readBalance(input: ReadAccountBalanceInput): Effect.Effect<Account$1, AccountReadError, never>;
492
452
  fundFromFaucet(input: FundFromFaucetInput): Effect.Effect<FundFromFaucetResult, AccountReadError, never>;
493
453
  }
494
454
  //#endregion
@@ -498,20 +458,20 @@ declare const SubAccountError_base: new <A extends Record<string, any> = {}>(arg
498
458
  } & Readonly<A>;
499
459
  declare class SubAccountError extends SubAccountError_base<{
500
460
  readonly operation: string;
501
- readonly publicCode: CapxulErrorCode;
502
- readonly publicError: CapxulError;
461
+ readonly publicCode: CapxulErrorCode$2;
462
+ readonly publicError: CapxulError$2;
503
463
  readonly cause: unknown;
504
- readonly details?: CapxulErrorDetails;
464
+ readonly details?: CapxulErrorDetails$2;
505
465
  }> {}
506
466
  type CreateSubAccountInput = {
507
467
  readonly accountId: AccountId;
508
468
  readonly name: string;
509
469
  };
510
470
  type SubAccountIdInput = {
511
- readonly subAccountId: SubAccountId;
471
+ readonly subAccountId: SubAccountId$1;
512
472
  };
513
473
  type RenameSubAccountInput = {
514
- readonly subAccountId: SubAccountId;
474
+ readonly subAccountId: SubAccountId$1;
515
475
  readonly name: string;
516
476
  };
517
477
  /**
@@ -520,7 +480,7 @@ type RenameSubAccountInput = {
520
480
  * specific sub-account, addressed by its `SubAccountId` (canon
521
481
  * `account-balance-model.md` §5, §12).
522
482
  */
523
- type TransferEndpoint = "main" | SubAccountId;
483
+ type TransferEndpoint = "main" | SubAccountId$1;
524
484
  /**
525
485
  * Move money between two of the SAME Account's balances (canon §12). The
526
486
  * backend resolves the Account from auth (v1 = one Account per user), so the
@@ -531,7 +491,7 @@ type TransferEndpoint = "main" | SubAccountId;
531
491
  type TransferInput = {
532
492
  readonly from: TransferEndpoint;
533
493
  readonly to: TransferEndpoint;
534
- readonly amount: Money;
494
+ readonly amount: Money$1;
535
495
  };
536
496
  /**
537
497
  * Result of a `transfer`: the recomputed `available` (`balanceOf − Σ`), plus
@@ -539,17 +499,17 @@ type TransferInput = {
539
499
  * has no stored row, so its slot is `null`.
540
500
  */
541
501
  type TransferResult = {
542
- readonly available: Money;
543
- readonly from: SubAccount | null;
544
- readonly to: SubAccount | null;
502
+ readonly available: Money$1;
503
+ readonly from: SubAccount$1 | null;
504
+ readonly to: SubAccount$1 | null;
545
505
  };
546
506
  interface SubAccountPort {
547
- create(input: CreateSubAccountInput): Effect.Effect<SubAccount, SubAccountError, never>;
548
- get(input: SubAccountIdInput): Effect.Effect<SubAccount | null, SubAccountError, never>;
507
+ create(input: CreateSubAccountInput): Effect.Effect<SubAccount$1, SubAccountError, never>;
508
+ get(input: SubAccountIdInput): Effect.Effect<SubAccount$1 | null, SubAccountError, never>;
549
509
  list(input: {
550
510
  readonly accountId: AccountId;
551
- }): Effect.Effect<readonly SubAccount[], SubAccountError, never>;
552
- rename(input: RenameSubAccountInput): Effect.Effect<SubAccount, SubAccountError, never>;
511
+ }): Effect.Effect<readonly SubAccount$1[], SubAccountError, never>;
512
+ rename(input: RenameSubAccountInput): Effect.Effect<SubAccount$1, SubAccountError, never>;
553
513
  delete(input: SubAccountIdInput): Effect.Effect<void, SubAccountError, never>;
554
514
  transfer(input: TransferInput): Effect.Effect<TransferResult, SubAccountError, never>;
555
515
  }
@@ -612,7 +572,7 @@ interface FlowPorts {
612
572
  * convention, flow-shape composites stay co-located with their flow.
613
573
  */
614
574
  interface ExternalSigner {
615
- readonly address: Address;
575
+ readonly address: Address$1;
616
576
  readonly signedProof: string;
617
577
  }
618
578
  //#endregion
@@ -674,7 +634,7 @@ type ProvisioningPhase = {
674
634
  } | {
675
635
  readonly status: "failed";
676
636
  readonly at: ProvisioningFailureStep;
677
- readonly error: CapxulError;
637
+ readonly error: CapxulError$2;
678
638
  };
679
639
  //#endregion
680
640
  //#region src/client/account-lifecycle.d.ts
@@ -691,248 +651,48 @@ type AccountLifecycle = {
691
651
  } | {
692
652
  readonly status: "failed";
693
653
  readonly at: AccountSetupStep;
694
- readonly error: CapxulError;
654
+ readonly error: CapxulError$2;
695
655
  };
696
656
  declare function isSettingUpLifecycle(lifecycle: AccountLifecycle): boolean;
697
657
  //#endregion
698
- //#region ../wire/src/financial-ops.d.ts
699
- declare const AttachablePaymentDocumentEnvelope: Schema.Union<[Schema.Struct<{
700
- protocol: Schema.Literal<["capxul.payment-document"]>;
701
- version: Schema.Literal<[1]>;
702
- domain: Schema.Struct<{
703
- name: Schema.Literal<["CapxulPayments"]>;
704
- version: Schema.Literal<["1"]>;
705
- chainId: Schema.Schema<ChainId, number, never>;
706
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
707
- }>;
708
- primaryType: Schema.Literal<["Memo"]>;
709
- message: Schema.Struct<{
710
- kind: Schema.Literal<[0]>;
711
- reference: typeof Schema.String;
712
- note: typeof Schema.String;
713
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
714
- }>;
715
- }>, Schema.Struct<{
716
- protocol: Schema.Literal<["capxul.payment-document"]>;
717
- version: Schema.Literal<[1]>;
718
- domain: Schema.Struct<{
719
- name: Schema.Literal<["CapxulPayments"]>;
720
- version: Schema.Literal<["1"]>;
721
- chainId: Schema.Schema<ChainId, number, never>;
722
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
723
- }>;
724
- primaryType: Schema.Literal<["Invoice"]>;
725
- message: Schema.Struct<{
726
- kind: Schema.Literal<[1]>;
727
- invoiceNumber: typeof Schema.String;
728
- payerRef: typeof Schema.String;
729
- payeeRef: typeof Schema.String;
730
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
731
- currency: Schema.Schema<CurrencyCode, string, never>;
732
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
733
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
734
- dueAt: Schema.refine<number, Schema.Schema<number, number, never>>;
735
- lineItemsHash: Schema.Schema<DocumentHash, string, never>;
736
- }>;
737
- }>, Schema.Struct<{
738
- protocol: Schema.Literal<["capxul.payment-document"]>;
739
- version: Schema.Literal<[1]>;
740
- domain: Schema.Struct<{
741
- name: Schema.Literal<["CapxulPayments"]>;
742
- version: Schema.Literal<["1"]>;
743
- chainId: Schema.Schema<ChainId, number, never>;
744
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
745
- }>;
746
- primaryType: Schema.Literal<["Payslip"]>;
747
- message: Schema.Struct<{
748
- kind: Schema.Literal<[2]>;
749
- employerRef: typeof Schema.String;
750
- employeeRef: typeof Schema.String;
751
- period: typeof Schema.String;
752
- gross: Schema.refine<string, Schema.Schema<string, string, never>>;
753
- net: Schema.refine<string, Schema.Schema<string, string, never>>;
754
- currency: Schema.Schema<CurrencyCode, string, never>;
755
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
756
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
757
- }>;
758
- }>, Schema.Struct<{
759
- protocol: Schema.Literal<["capxul.payment-document"]>;
760
- version: Schema.Literal<[1]>;
761
- domain: Schema.Struct<{
762
- name: Schema.Literal<["CapxulPayments"]>;
763
- version: Schema.Literal<["1"]>;
764
- chainId: Schema.Schema<ChainId, number, never>;
765
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
766
- }>;
767
- primaryType: Schema.Literal<["Receipt"]>;
768
- message: Schema.Struct<{
769
- kind: Schema.Literal<[3]>;
770
- reference: typeof Schema.String;
771
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
772
- currency: Schema.Schema<CurrencyCode, string, never>;
773
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
774
- paidAt: Schema.refine<number, Schema.Schema<number, number, never>>;
775
- note: typeof Schema.String;
776
- }>;
777
- }>]>;
778
- declare const WithdrawalDocumentEnvelope: Schema.Struct<{
779
- protocol: Schema.Literal<["capxul.payment-document"]>;
780
- version: Schema.Literal<[1]>;
781
- domain: Schema.Struct<{
782
- name: Schema.Literal<["CapxulPayments"]>;
783
- version: Schema.Literal<["1"]>;
784
- chainId: Schema.Schema<ChainId, number, never>;
785
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
786
- }>;
787
- primaryType: Schema.Literal<["Withdrawal"]>;
788
- message: Schema.Struct<{
789
- kind: Schema.Literal<[4]>;
790
- reference: typeof Schema.String;
791
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
792
- currency: Schema.Schema<CurrencyCode, string, never>;
793
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
794
- destChain: Schema.Schema<ChainId, number, never>;
795
- destAddress: Schema.refine<string, Schema.Schema<string, string, never>>;
796
- settledAt: Schema.refine<number, Schema.Schema<number, number, never>>;
797
- provider: typeof Schema.String;
798
- note: typeof Schema.String;
799
- }>;
800
- }>;
801
- declare const PaymentDocumentEnvelope: Schema.Union<[Schema.Union<[Schema.Struct<{
802
- protocol: Schema.Literal<["capxul.payment-document"]>;
803
- version: Schema.Literal<[1]>;
804
- domain: Schema.Struct<{
805
- name: Schema.Literal<["CapxulPayments"]>;
806
- version: Schema.Literal<["1"]>;
807
- chainId: Schema.Schema<ChainId, number, never>;
808
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
809
- }>;
810
- primaryType: Schema.Literal<["Memo"]>;
811
- message: Schema.Struct<{
812
- kind: Schema.Literal<[0]>;
813
- reference: typeof Schema.String;
814
- note: typeof Schema.String;
815
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
816
- }>;
817
- }>, Schema.Struct<{
818
- protocol: Schema.Literal<["capxul.payment-document"]>;
819
- version: Schema.Literal<[1]>;
820
- domain: Schema.Struct<{
821
- name: Schema.Literal<["CapxulPayments"]>;
822
- version: Schema.Literal<["1"]>;
823
- chainId: Schema.Schema<ChainId, number, never>;
824
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
825
- }>;
826
- primaryType: Schema.Literal<["Invoice"]>;
827
- message: Schema.Struct<{
828
- kind: Schema.Literal<[1]>;
829
- invoiceNumber: typeof Schema.String;
830
- payerRef: typeof Schema.String;
831
- payeeRef: typeof Schema.String;
832
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
833
- currency: Schema.Schema<CurrencyCode, string, never>;
834
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
835
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
836
- dueAt: Schema.refine<number, Schema.Schema<number, number, never>>;
837
- lineItemsHash: Schema.Schema<DocumentHash, string, never>;
838
- }>;
839
- }>, Schema.Struct<{
840
- protocol: Schema.Literal<["capxul.payment-document"]>;
841
- version: Schema.Literal<[1]>;
842
- domain: Schema.Struct<{
843
- name: Schema.Literal<["CapxulPayments"]>;
844
- version: Schema.Literal<["1"]>;
845
- chainId: Schema.Schema<ChainId, number, never>;
846
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
847
- }>;
848
- primaryType: Schema.Literal<["Payslip"]>;
849
- message: Schema.Struct<{
850
- kind: Schema.Literal<[2]>;
851
- employerRef: typeof Schema.String;
852
- employeeRef: typeof Schema.String;
853
- period: typeof Schema.String;
854
- gross: Schema.refine<string, Schema.Schema<string, string, never>>;
855
- net: Schema.refine<string, Schema.Schema<string, string, never>>;
856
- currency: Schema.Schema<CurrencyCode, string, never>;
857
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
858
- issuedAt: Schema.refine<number, Schema.Schema<number, number, never>>;
859
- }>;
860
- }>, Schema.Struct<{
861
- protocol: Schema.Literal<["capxul.payment-document"]>;
862
- version: Schema.Literal<[1]>;
863
- domain: Schema.Struct<{
864
- name: Schema.Literal<["CapxulPayments"]>;
865
- version: Schema.Literal<["1"]>;
866
- chainId: Schema.Schema<ChainId, number, never>;
867
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
868
- }>;
869
- primaryType: Schema.Literal<["Receipt"]>;
870
- message: Schema.Struct<{
871
- kind: Schema.Literal<[3]>;
872
- reference: typeof Schema.String;
873
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
874
- currency: Schema.Schema<CurrencyCode, string, never>;
875
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
876
- paidAt: Schema.refine<number, Schema.Schema<number, number, never>>;
877
- note: typeof Schema.String;
878
- }>;
879
- }>]>, Schema.Struct<{
880
- protocol: Schema.Literal<["capxul.payment-document"]>;
881
- version: Schema.Literal<[1]>;
882
- domain: Schema.Struct<{
883
- name: Schema.Literal<["CapxulPayments"]>;
884
- version: Schema.Literal<["1"]>;
885
- chainId: Schema.Schema<ChainId, number, never>;
886
- verifyingContract: Schema.Literal<["0xe740ea65521edc9bef0ea75d30b5334711db99f4"]>;
887
- }>;
888
- primaryType: Schema.Literal<["Withdrawal"]>;
889
- message: Schema.Struct<{
890
- kind: Schema.Literal<[4]>;
891
- reference: typeof Schema.String;
892
- amount: Schema.refine<string, Schema.Schema<string, string, never>>;
893
- currency: Schema.Schema<CurrencyCode, string, never>;
894
- decimals: Schema.refine<number, Schema.Schema<number, number, never>>;
895
- destChain: Schema.Schema<ChainId, number, never>;
896
- destAddress: Schema.refine<string, Schema.Schema<string, string, never>>;
897
- settledAt: Schema.refine<number, Schema.Schema<number, number, never>>;
898
- provider: typeof Schema.String;
899
- note: typeof Schema.String;
900
- }>;
901
- }>]>;
902
- /**
903
- * #592 invoice line item. `quantity` is a positive integer; `unitMinor` is the
904
- * per-unit price in integer minor units. The list is canonically hashed by
905
- * `hashLineItems` (payment-document-hash.ts) into the Invoice `lineItemsHash`,
906
- * and Σ(quantity × unitMinor) MUST equal the invoice `amount`. The hash binds
907
- * the documentHash to the exact items; the sum-check makes the items add up to
908
- * the amount due. See the payment-document spec (canon/mcp/financial-ops.md).
909
- */
910
- declare const LineItem: Schema.Struct<{
911
- description: typeof Schema.String;
912
- quantity: Schema.refine<number, Schema.Schema<number, number, never>>;
913
- unitMinor: Schema.refine<string, Schema.Schema<string, string, never>>;
914
- }>;
915
- type AttachablePaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof AttachablePaymentDocumentEnvelope>;
916
- type PaymentDocumentEnvelopeV1 = Schema.Schema.Type<typeof PaymentDocumentEnvelope>;
917
- type WithdrawalDocumentEnvelopeV1 = Schema.Schema.Type<typeof WithdrawalDocumentEnvelope>;
918
- type LineItemV1 = Schema.Schema.Type<typeof LineItem>;
919
- //#endregion
920
- //#region ../wire/src/leak-safety.d.ts
921
- declare const OnchainEvidenceBrand: unique symbol;
922
- /**
923
- * The branded `{ userOpHash, txHash }` pair. On-chain settlement evidence is
924
- * INTERNAL — it flows on the server-internal channel only, never onto a wire
925
- * Payment or any MCP tool output. The brand makes "this is internal evidence"
926
- * a type, so a loose pair can't be passed where a wire field is expected.
927
- */
928
- type OnchainEvidence = {
929
- readonly userOpHash: string;
930
- readonly txHash: string;
931
- } & {
932
- readonly [OnchainEvidenceBrand]: "OnchainEvidence";
933
- };
934
- //#endregion
935
658
  //#region src/client/financial-ops.d.ts
659
+ type ActorReference = {
660
+ readonly kind: "personal";
661
+ } | {
662
+ readonly kind: "organization";
663
+ readonly organizationId: string;
664
+ };
665
+ type TargetReference = {
666
+ readonly kind: "handle";
667
+ readonly handle: string;
668
+ } | {
669
+ readonly kind: "email";
670
+ readonly email: string;
671
+ } | {
672
+ readonly kind: "organization";
673
+ readonly handle: string;
674
+ } | {
675
+ readonly kind: "payee";
676
+ readonly id: string;
677
+ } | {
678
+ readonly kind: "destination";
679
+ readonly id: string;
680
+ };
681
+ interface ResolvedTarget {
682
+ readonly reference: TargetReference;
683
+ readonly label: string;
684
+ readonly kind: "person" | "organization" | "payee" | "destination";
685
+ readonly capabilities: {
686
+ readonly canPay: boolean;
687
+ readonly canRequest: boolean;
688
+ readonly canPayout: boolean;
689
+ };
690
+ }
691
+ interface TargetsMethods {
692
+ resolve(reference: TargetReference, options?: {
693
+ readonly signal?: AbortSignal;
694
+ }): Promise<CapxulResult<ResolvedTarget>>;
695
+ }
936
696
  type RecipientResolutionKind = "email" | "org" | "payee";
937
697
  type Ref = {
938
698
  readonly kind: "handle";
@@ -1054,8 +814,10 @@ interface Payment {
1054
814
  readonly updatedAt: number;
1055
815
  }
1056
816
  interface PaymentsPayInput {
1057
- readonly to: Ref;
817
+ readonly actor?: ActorReference;
818
+ readonly to: TargetReference;
1058
819
  readonly amount: PaymentMoney;
820
+ readonly paymentType?: PaymentType;
1059
821
  /** Full EIP-712 document envelope; hashed + stored, committed on-chain. */
1060
822
  readonly document?: AttachablePaymentDocumentEnvelopeV1;
1061
823
  /**
@@ -1089,16 +851,25 @@ interface PaymentsWithdrawInput {
1089
851
  * id and never re-enters a raw wallet address on this path.
1090
852
  */
1091
853
  interface PaymentsPayoutInput {
1092
- readonly actor?: {
1093
- readonly kind: "account";
1094
- } | {
1095
- readonly kind: "org";
1096
- readonly orgId: string;
1097
- };
854
+ readonly actor?: ActorReference;
1098
855
  readonly destinationId: string;
1099
856
  readonly amount: PaymentMoney;
1100
857
  }
1101
- type DestinationKind = "bank" | "mobile-money" | "wallet";
858
+ type DestinationKind = "bank_account" | "mobile_money" | "external_account";
859
+ type DestinationRail = {
860
+ readonly kind: "bank";
861
+ readonly country: string;
862
+ readonly currency: string;
863
+ } | {
864
+ readonly kind: "mobile_money";
865
+ readonly country: string;
866
+ readonly currency: string;
867
+ readonly provider: string;
868
+ } | {
869
+ readonly kind: "chain";
870
+ readonly network: string;
871
+ readonly asset?: string;
872
+ };
1102
873
  type DestinationPayload = {
1103
874
  readonly accountHolderName: string;
1104
875
  readonly bankName: string;
@@ -1118,40 +889,30 @@ interface Destination {
1118
889
  readonly id: string;
1119
890
  readonly counterpartyId: string;
1120
891
  readonly ref: Ref;
892
+ readonly target: TargetReference;
1121
893
  readonly kind: DestinationKind;
894
+ readonly rail: DestinationRail;
1122
895
  readonly label: string | null;
1123
896
  readonly payload: DestinationPayload;
1124
897
  readonly createdAt: number;
1125
898
  readonly updatedAt: number;
1126
899
  }
1127
900
  interface DestinationAddInput {
1128
- readonly actor?: {
1129
- readonly kind: "account";
1130
- } | {
1131
- readonly kind: "org";
1132
- readonly orgId: string;
1133
- };
1134
- readonly ref: Ref;
901
+ readonly actor?: ActorReference;
902
+ readonly target?: TargetReference;
903
+ readonly ref?: Ref;
1135
904
  readonly kind: DestinationKind;
1136
905
  readonly label?: string;
1137
906
  readonly payload: DestinationPayload;
1138
907
  }
1139
908
  interface DestinationListInput {
1140
- readonly actor?: {
1141
- readonly kind: "account";
1142
- } | {
1143
- readonly kind: "org";
1144
- readonly orgId: string;
1145
- };
1146
- readonly ref: Ref;
909
+ readonly actor?: ActorReference;
910
+ readonly target?: TargetReference;
911
+ readonly ref?: Ref;
912
+ readonly kind?: DestinationKind;
1147
913
  }
1148
914
  interface DestinationRemoveInput {
1149
- readonly actor?: {
1150
- readonly kind: "account";
1151
- } | {
1152
- readonly kind: "org";
1153
- readonly orgId: string;
1154
- };
915
+ readonly actor?: ActorReference;
1155
916
  readonly destinationId: string;
1156
917
  }
1157
918
  interface DestinationsMethods {
@@ -1167,6 +928,63 @@ interface DestinationsMethods {
1167
928
  readonly id: string;
1168
929
  }>>;
1169
930
  }
931
+ interface ActivityListParams {
932
+ readonly actor?: ActorReference;
933
+ readonly cursor?: string;
934
+ readonly limit?: number;
935
+ readonly paymentType?: PaymentType;
936
+ readonly timing?: PaymentTiming["kind"];
937
+ }
938
+ interface ActivityItem {
939
+ readonly id: string;
940
+ readonly actor: ActorReference;
941
+ readonly kind: "payment" | "payout" | "withdrawal" | "deposit" | "claim";
942
+ readonly direction: "in" | "out" | "internal";
943
+ readonly status: PaymentStatus;
944
+ readonly amount: PaymentMoney;
945
+ readonly title: string;
946
+ readonly subtitle: string | null;
947
+ readonly target: TargetReference | null;
948
+ readonly paymentId: string | null;
949
+ readonly createdAt: number;
950
+ readonly updatedAt: number;
951
+ }
952
+ interface ActivityPage {
953
+ readonly items: readonly ActivityItem[];
954
+ readonly nextCursor: string | null;
955
+ }
956
+ interface ActivityMethods {
957
+ list(params?: ActivityListParams, options?: {
958
+ readonly signal?: AbortSignal;
959
+ }): Promise<CapxulResult<ActivityPage>>;
960
+ }
961
+ interface OfframpQuoteInput {
962
+ readonly actor?: ActorReference;
963
+ readonly destinationId: string;
964
+ readonly amount: PaymentMoney;
965
+ }
966
+ interface OfframpQuote {
967
+ readonly id: string;
968
+ readonly input: OfframpQuoteInput;
969
+ readonly expiresAt: number;
970
+ readonly receivedAmount: PaymentMoney;
971
+ readonly fee: PaymentMoney;
972
+ }
973
+ interface OfframpStatus {
974
+ readonly id: string;
975
+ readonly status: "pending" | "processing" | "completed" | "failed" | "cancelled";
976
+ readonly paymentId: string | null;
977
+ readonly destinationId: string;
978
+ readonly updatedAt: number;
979
+ }
980
+ interface OfframpMethods {
981
+ quote(input: OfframpQuoteInput, options?: {
982
+ readonly signal?: AbortSignal;
983
+ }): Promise<CapxulResult<OfframpQuote>>;
984
+ status(offrampId: string, options?: {
985
+ readonly signal?: AbortSignal;
986
+ }): Promise<CapxulResult<OfframpStatus>>;
987
+ }
1170
988
  interface PaymentSettlementInput {
1171
989
  readonly paymentId: string;
1172
990
  readonly evidence: OnchainEvidence;
@@ -1348,6 +1166,9 @@ interface PaymentsMethods {
1348
1166
  get(paymentId: string, options?: {
1349
1167
  readonly signal?: AbortSignal;
1350
1168
  }): Promise<CapxulResult<Payment | null>>;
1169
+ cancel(paymentId: string, options?: {
1170
+ readonly signal?: AbortSignal;
1171
+ }): Promise<CapxulResult<Payment>>;
1351
1172
  /**
1352
1173
  * Host-execution + on-chain-evidence channel — off the public surface
1353
1174
  * (production-surface-policy.md pattern). Self-custody integrators drive this;
@@ -1523,8 +1344,11 @@ interface FinancialOpsMethods {
1523
1344
  readonly me: MeMethods;
1524
1345
  readonly handles: HandlesMethods;
1525
1346
  readonly payees: PayeesMethods;
1347
+ readonly targets: TargetsMethods;
1526
1348
  readonly destinations: DestinationsMethods;
1527
1349
  readonly payments: PaymentsMethods;
1350
+ readonly activity: ActivityMethods;
1351
+ readonly offramp: OfframpMethods;
1528
1352
  readonly paymentDocuments: PaymentDocumentsMethods;
1529
1353
  /** Receivables surface (G5 · #548). */
1530
1354
  readonly paymentRequests: PaymentRequestsMethods;
@@ -1687,7 +1511,7 @@ type AccountStatus = {
1687
1511
  readonly requirement: AccountRequirement;
1688
1512
  readonly chainId: number;
1689
1513
  readonly source: AccountProviderSource;
1690
- readonly signerAddress: Address;
1514
+ readonly signerAddress: Address$1;
1691
1515
  } | {
1692
1516
  readonly status: "accountPrepared";
1693
1517
  readonly requirement: AccountRequirement;
@@ -1766,7 +1590,7 @@ interface AccountInternalSurface {
1766
1590
  interface AccountsMethods {
1767
1591
  read(options?: {
1768
1592
  readonly signal?: AbortSignal;
1769
- }): Promise<CapxulResult<Account>>;
1593
+ }): Promise<CapxulResult<Account$1>>;
1770
1594
  }
1771
1595
  /**
1772
1596
  * Faucet surface (dev-only). Deliberately OFF the public `AccountsMethods`;
@@ -1774,37 +1598,13 @@ interface AccountsMethods {
1774
1598
  * The reference CLI uses it behind a test-env gate — consumers never see `fund`.
1775
1599
  */
1776
1600
  interface AccountsFaucetMethods {
1777
- fund(amount: Money, options?: {
1601
+ fund(amount: Money$1, options?: {
1778
1602
  readonly signal?: AbortSignal;
1779
1603
  }): Promise<CapxulResult<{
1780
1604
  readonly txHash: string;
1781
1605
  }>>;
1782
1606
  }
1783
1607
  //#endregion
1784
- //#region src/client/sub-accounts.d.ts
1785
- interface SubAccountsMethods {
1786
- create(accountId: AccountId, input: {
1787
- readonly name: string;
1788
- }, options?: {
1789
- readonly signal?: AbortSignal;
1790
- }): Promise<CapxulResult<SubAccount>>;
1791
- get(subAccountId: SubAccountId, options?: {
1792
- readonly signal?: AbortSignal;
1793
- }): Promise<CapxulResult<SubAccount | null>>;
1794
- list(accountId: AccountId, options?: {
1795
- readonly signal?: AbortSignal;
1796
- }): Promise<CapxulResult<readonly SubAccount[]>>;
1797
- rename(subAccountId: SubAccountId, name: string, options?: {
1798
- readonly signal?: AbortSignal;
1799
- }): Promise<CapxulResult<SubAccount>>;
1800
- delete(subAccountId: SubAccountId, options?: {
1801
- readonly signal?: AbortSignal;
1802
- }): Promise<CapxulResult<void>>;
1803
- transfer(input: TransferInput, options?: {
1804
- readonly signal?: AbortSignal;
1805
- }): Promise<CapxulResult<TransferResult>>;
1806
- }
1807
- //#endregion
1808
1608
  //#region src/client/org-spend-gate.d.ts
1809
1609
  /**
1810
1610
  * The role's allowed recipients. The address form backs the S4 `spend` path
@@ -1813,12 +1613,12 @@ interface SubAccountsMethods {
1813
1613
  * (handle/email/payee/org) compared in the same ref space as the role's set.
1814
1614
  * Comparison is case-insensitive over the raw string value either way.
1815
1615
  */
1816
- type SpendGateRecipients = "anyone" | readonly (Address | string)[];
1616
+ type SpendGateRecipients = "anyone" | readonly (Address$1 | string)[];
1817
1617
  type SpendGateSubAccountScope = {
1818
1618
  readonly scope: "all";
1819
1619
  } | {
1820
1620
  readonly scope: "only";
1821
- readonly subAccountIds: readonly SubAccountId[];
1621
+ readonly subAccountIds: readonly SubAccountId$1[];
1822
1622
  };
1823
1623
  //#endregion
1824
1624
  //#region src/ports/org.d.ts
@@ -1830,48 +1630,48 @@ type SpendGateSubAccountScope = {
1830
1630
  * internally and enforces the real validated recipient on the gate.
1831
1631
  */
1832
1632
  type OrgSpendShape = {
1833
- readonly from: SubAccountId;
1834
- readonly to: Address;
1835
- readonly amount: Money;
1633
+ readonly from: SubAccountId$1;
1634
+ readonly to: Address$1;
1635
+ readonly amount: Money$1;
1836
1636
  };
1837
1637
  type CreateOrgPortInput = {
1838
1638
  readonly input: CreateOrgInput;
1839
1639
  };
1840
1640
  type ReadOrgTreasuryInput = {
1841
- readonly orgId: OrgId;
1641
+ readonly orgId: OrgId$1;
1842
1642
  };
1843
1643
  type ListOrgsInput = Record<never, never>;
1844
1644
  type ListOrgRolesInput = {
1845
- readonly orgId: OrgId;
1645
+ readonly orgId: OrgId$1;
1846
1646
  };
1847
1647
  type ListOrgMembersInput = {
1848
- readonly orgId: OrgId;
1648
+ readonly orgId: OrgId$1;
1849
1649
  };
1850
1650
  type InviteOrgMemberInput = {
1851
- readonly orgId: OrgId;
1651
+ readonly orgId: OrgId$1;
1852
1652
  readonly input: InviteMemberInput;
1853
1653
  };
1854
1654
  type ResendOrgInviteTokenInput = {
1855
- readonly orgId: OrgId;
1655
+ readonly orgId: OrgId$1;
1856
1656
  readonly email: string;
1857
1657
  };
1858
1658
  type DetectPendingOrgInvitationsInput = Record<never, never>;
1859
1659
  type DetectPendingOrgInvitationsResult$1 = {
1860
- readonly matched: readonly OrgId[];
1660
+ readonly matched: readonly OrgId$1[];
1861
1661
  };
1862
1662
  type DeployOrgRolesInput = {
1863
- readonly orgId: OrgId;
1663
+ readonly orgId: OrgId$1;
1864
1664
  };
1865
1665
  type OrgRolesDeploymentResult = {
1866
- readonly orgId: OrgId;
1666
+ readonly orgId: OrgId$1;
1867
1667
  readonly roles: readonly RoleView[];
1868
1668
  };
1869
1669
  type GrantOrgRoleInput = {
1870
- readonly orgId: OrgId;
1670
+ readonly orgId: OrgId$1;
1871
1671
  readonly input: AssignRoleInput;
1872
1672
  };
1873
1673
  type RevokeOrgRoleInput = {
1874
- readonly orgId: OrgId;
1674
+ readonly orgId: OrgId$1;
1875
1675
  readonly input: RemoveMemberInput;
1876
1676
  };
1877
1677
  type OrgSpendAuthority = {
@@ -1885,7 +1685,7 @@ type OrgSpendAuthority = {
1885
1685
  readonly role?: string;
1886
1686
  };
1887
1687
  type ReadOrgSpendAuthorityInput = {
1888
- readonly orgId: OrgId;
1688
+ readonly orgId: OrgId$1;
1889
1689
  readonly input: OrgSpendShape;
1890
1690
  readonly amountRaw: string;
1891
1691
  };
@@ -1894,10 +1694,10 @@ declare const OrgError_base: new <A extends Record<string, any> = {}>(args: impo
1894
1694
  } & Readonly<A>;
1895
1695
  declare class OrgError extends OrgError_base<{
1896
1696
  readonly operation: string;
1897
- readonly publicCode: CapxulErrorCode;
1898
- readonly publicError: CapxulError;
1697
+ readonly publicCode: CapxulErrorCode$1;
1698
+ readonly publicError: CapxulError$1;
1899
1699
  readonly cause: unknown;
1900
- readonly details?: CapxulErrorDetails;
1700
+ readonly details?: CapxulErrorDetails$1;
1901
1701
  }> {}
1902
1702
  /**
1903
1703
  * Live org seam. `createOrg` runs the SDK-orchestrated deploy (D10) and returns
@@ -1907,7 +1707,7 @@ declare class OrgError extends OrgError_base<{
1907
1707
  */
1908
1708
  interface OrgPort {
1909
1709
  createOrg(input: CreateOrgPortInput): Effect.Effect<OrgView, OrgError, never>;
1910
- readTreasury(input: ReadOrgTreasuryInput): Effect.Effect<Account, OrgError, never>;
1710
+ readTreasury(input: ReadOrgTreasuryInput): Effect.Effect<Account$1, OrgError, never>;
1911
1711
  listOrgs(input: ListOrgsInput): Effect.Effect<readonly OrgView[], OrgError, never>;
1912
1712
  listRoles(input: ListOrgRolesInput): Effect.Effect<readonly RoleView[], OrgError, never>;
1913
1713
  listMembers(input: ListOrgMembersInput): Effect.Effect<readonly MemberView[], OrgError, never>;
@@ -1922,13 +1722,13 @@ interface OrgRolesDeploymentPort {
1922
1722
  revokeRole(input: RevokeOrgRoleInput): Effect.Effect<void, OrgError, never>;
1923
1723
  }
1924
1724
  type SubmitOrgSpendViaPaymentsInput = {
1925
- readonly orgId: OrgId;
1725
+ readonly orgId: OrgId$1;
1926
1726
  readonly input: OrgSpendViaPaymentsInput;
1927
1727
  readonly amountRaw: string;
1928
1728
  readonly authority: OrgSpendAuthority;
1929
1729
  };
1930
1730
  type SubmitOrgBatchPayrollInput = {
1931
- readonly orgId: OrgId;
1731
+ readonly orgId: OrgId$1;
1932
1732
  readonly from: OrgSpendViaPaymentsInput["from"];
1933
1733
  readonly runs: readonly {
1934
1734
  readonly run: OrgPayrollRun;
@@ -1968,13 +1768,28 @@ type MemberStatus = "pending" | "pending_safe" | "pending_grant" | "active" | "r
1968
1768
  * brand.
1969
1769
  */
1970
1770
  type OrgView = {
1971
- readonly id: OrgId;
1771
+ readonly id: OrgId$1;
1972
1772
  readonly name: string;
1973
1773
  readonly handle: string;
1974
- readonly safeAddress: Address; /** The viewing member's own role label within this org. */
1774
+ readonly safeAddress: Address$1; /** The viewing member's own role label within this org. */
1975
1775
  readonly role: string; /** The Org treasury — the real M2 Account over the Org Safe (D3). */
1976
- readonly treasury: Account;
1776
+ readonly treasury: Account$1;
1977
1777
  };
1778
+ interface OrganizationAccount {
1779
+ readonly id: string;
1780
+ readonly address: string | null;
1781
+ readonly balance: Money$1;
1782
+ readonly available: Money$1;
1783
+ }
1784
+ interface OrganizationAuditLogItem {
1785
+ readonly id: string;
1786
+ readonly organizationId: string;
1787
+ readonly action: string;
1788
+ readonly actor: string | null;
1789
+ readonly summary: string;
1790
+ readonly createdAt: number;
1791
+ readonly metadata?: Record<string, unknown>;
1792
+ }
1978
1793
  /**
1979
1794
  * One member of an Org (canon §C1 "Members" — name/email, role, status; D7/D8).
1980
1795
  * `personalSafeAddress` is the member-identity key (D7 — Safe-as-identity); it
@@ -1982,12 +1797,12 @@ type OrgView = {
1982
1797
  * yet provisioned a personal Safe). `email` is the universal entry point (D8).
1983
1798
  */
1984
1799
  type MemberView = {
1985
- readonly orgId: OrgId;
1800
+ readonly orgId: OrgId$1;
1986
1801
  readonly email: Email;
1987
1802
  readonly name: string | null; /** Member-identity key (D7). `null` until the invitee provisions a Safe. */
1988
- readonly personalSafeAddress: Address | null; /** The member's role label (maps deterministically to the on-chain `roleKey`, D9). */
1803
+ readonly personalSafeAddress: Address$1 | null; /** The member's role label (maps deterministically to the on-chain `roleKey`, D9). */
1989
1804
  readonly role: string;
1990
- readonly roleKey: RoleKey | null;
1805
+ readonly roleKey: RoleKey$1 | null;
1991
1806
  readonly status: MemberStatus;
1992
1807
  readonly grantTxHash: string | null;
1993
1808
  readonly revokeTxHash: string | null;
@@ -1999,9 +1814,9 @@ type MemberView = {
1999
1814
  * (the Owner role).
2000
1815
  */
2001
1816
  type RoleSpendCap = {
2002
- readonly perTx?: Money;
2003
- readonly perDay?: Money;
2004
- readonly toRecipients?: "anyone" | readonly Address[];
1817
+ readonly perTx?: Money$1;
1818
+ readonly perDay?: Money$1;
1819
+ readonly toRecipients?: "anyone" | readonly Address$1[];
2005
1820
  };
2006
1821
  /**
2007
1822
  * The Capxul-owned Role DSL definition (D4). `label` becomes the sticky
@@ -2013,7 +1828,7 @@ type RoleDefinition = {
2013
1828
  readonly label: string;
2014
1829
  readonly spend?: RoleSpendCap;
2015
1830
  readonly subAccounts?: {
2016
- readonly scope: "all" | readonly SubAccountId[];
1831
+ readonly scope: "all" | readonly SubAccountId$1[];
2017
1832
  };
2018
1833
  readonly canManageMembers?: boolean;
2019
1834
  readonly canManageRoles?: boolean;
@@ -2024,9 +1839,9 @@ type RoleDefinition = {
2024
1839
  * is the full Role DSL entry.
2025
1840
  */
2026
1841
  type RoleView = {
2027
- readonly orgId: OrgId;
1842
+ readonly orgId: OrgId$1;
2028
1843
  readonly label: string;
2029
- readonly roleKey: RoleKey;
1844
+ readonly roleKey: RoleKey$1;
2030
1845
  readonly definition: RoleDefinition;
2031
1846
  };
2032
1847
  /** Built-in role templates that seed a new Org at creation (D6). */
@@ -2064,7 +1879,7 @@ type ResendInviteTokenInput = {
2064
1879
  * mirror.
2065
1880
  */
2066
1881
  type RemoveMemberInput = {
2067
- readonly memberSafeAddress: Address;
1882
+ readonly memberSafeAddress: Address$1;
2068
1883
  };
2069
1884
  /**
2070
1885
  * Input to `org(orgId).assignRole` (S3, D7/D9). Keyed on the member's personal
@@ -2072,7 +1887,7 @@ type RemoveMemberInput = {
2072
1887
  * label maps deterministically to the on-chain `roleKey`.
2073
1888
  */
2074
1889
  type AssignRoleInput = {
2075
- readonly memberSafeAddress: Address;
1890
+ readonly memberSafeAddress: Address$1;
2076
1891
  readonly role: string;
2077
1892
  };
2078
1893
  /**
@@ -2085,9 +1900,9 @@ type AssignRoleInput = {
2085
1900
  * `from` is the Level-2 sub-account envelope the spend draws from (D5).
2086
1901
  */
2087
1902
  type OrgSpendViaPaymentsInput = {
2088
- readonly from: SubAccountId; /** Validated recipient ref (handle/email/payee/org) — never a raw address. */
1903
+ readonly from: SubAccountId$1; /** Validated recipient ref (handle/email/payee/org) — never a raw address. */
2089
1904
  readonly to: Ref;
2090
- readonly amount: Money; /** Full EIP-712 payment document; hashed + stored, committed on-chain. */
1905
+ readonly amount: Money$1; /** Full EIP-712 payment document; hashed + stored, committed on-chain. */
2091
1906
  readonly document?: PaymentDocumentEnvelopeV1;
2092
1907
  readonly timing?: PaymentTiming;
2093
1908
  readonly paymentType?: PaymentType;
@@ -2099,7 +1914,7 @@ type OrgSpendViaPaymentsInput = {
2099
1914
  */
2100
1915
  type OrgPayrollRun = {
2101
1916
  /** Validated recipient ref (handle/email/payee/org) — never a raw address. */readonly to: Ref;
2102
- readonly amount: Money;
1917
+ readonly amount: Money$1;
2103
1918
  readonly timing?: PaymentTiming; /** The payslip — an EIP-712 payment document, committed by `documentHash`. */
2104
1919
  readonly payslip?: PaymentDocumentEnvelopeV1;
2105
1920
  };
@@ -2111,11 +1926,11 @@ type OrgPayrollRun = {
2111
1926
  * run.
2112
1927
  */
2113
1928
  type OrgBatchPayrollInput = {
2114
- readonly from: SubAccountId;
1929
+ readonly from: SubAccountId$1;
2115
1930
  readonly runs: readonly OrgPayrollRun[];
2116
1931
  };
2117
1932
  type DetectPendingOrgInvitationsResult = {
2118
- readonly matched: readonly OrgId[];
1933
+ readonly matched: readonly OrgId$1[];
2119
1934
  };
2120
1935
  /**
2121
1936
  * Entity-scoped Org method bundle, returned by `capxul.org(orgId)`. Every
@@ -2126,7 +1941,7 @@ type DetectPendingOrgInvitationsResult = {
2126
1941
  interface PayrollRosterLine {
2127
1942
  readonly id: string;
2128
1943
  readonly employee: Ref;
2129
- readonly amount: Money;
1944
+ readonly amount: Money$1;
2130
1945
  readonly timing: PaymentTiming;
2131
1946
  readonly status: "active" | "paused" | "ended";
2132
1947
  }
@@ -2136,12 +1951,12 @@ interface PayrollPayslipTemplate {
2136
1951
  }
2137
1952
  interface PayrollRosterAddInput {
2138
1953
  readonly employee: Ref;
2139
- readonly amount: Money;
1954
+ readonly amount: Money$1;
2140
1955
  readonly timing: PaymentTiming;
2141
1956
  readonly payslipTemplate?: PaymentDocumentEnvelopeV1 | PayrollPayslipTemplate;
2142
1957
  }
2143
1958
  interface PayrollRunInput {
2144
- readonly from: SubAccountId;
1959
+ readonly from: SubAccountId$1;
2145
1960
  readonly period: string;
2146
1961
  }
2147
1962
  interface PayrollMethods {
@@ -2167,7 +1982,12 @@ interface OrgScopedMethods extends ActorRelationshipMethods {
2167
1982
  /** The Org treasury — the real M2 Account over the Org Safe (D3). */
2168
1983
  treasury(options?: {
2169
1984
  readonly signal?: AbortSignal;
2170
- }): Promise<CapxulResult<Account>>;
1985
+ }): Promise<CapxulResult<Account$1>>;
1986
+ readonly account: {
1987
+ get(options?: {
1988
+ readonly signal?: AbortSignal;
1989
+ }): Promise<CapxulResult<OrganizationAccount>>;
1990
+ };
2171
1991
  members(options?: {
2172
1992
  readonly signal?: AbortSignal;
2173
1993
  }): Promise<CapxulResult<readonly MemberView[]>>;
@@ -2180,14 +2000,6 @@ interface OrgScopedMethods extends ActorRelationshipMethods {
2180
2000
  invite(input: InviteMemberInput, options?: {
2181
2001
  readonly signal?: AbortSignal;
2182
2002
  }): Promise<CapxulResult<MemberView>>;
2183
- pendingMembers(options?: {
2184
- readonly signal?: AbortSignal;
2185
- }): Promise<CapxulResult<readonly MemberView[]>>;
2186
- readonly inviteToken: {
2187
- resend(input: ResendInviteTokenInput, options?: {
2188
- readonly signal?: AbortSignal;
2189
- }): Promise<CapxulResult<MemberView>>;
2190
- };
2191
2003
  removeMember(input: RemoveMemberInput, options?: {
2192
2004
  readonly signal?: AbortSignal;
2193
2005
  }): Promise<CapxulResult<void>>;
@@ -2212,6 +2024,9 @@ interface OrgScopedMethods extends ActorRelationshipMethods {
2212
2024
  readonly signal?: AbortSignal;
2213
2025
  }): Promise<CapxulResult<readonly Payment[]>>;
2214
2026
  readonly payroll: PayrollMethods;
2027
+ auditLog(options?: {
2028
+ readonly signal?: AbortSignal;
2029
+ }): Promise<CapxulResult<readonly OrganizationAuditLogItem[]>>;
2215
2030
  }
2216
2031
  type OrgsMethod = {
2217
2032
  (options?: {
@@ -2231,7 +2046,64 @@ interface OrgMethods {
2231
2046
  }): Promise<CapxulResult<OrgView>>;
2232
2047
  readonly orgs: OrgsMethod;
2233
2048
  /** Resolve the entity-scoped bundle for a specific Org (D13). */
2234
- org(orgId: OrgId): OrgScopedMethods;
2049
+ org(orgId: OrgId$1): OrgScopedMethods;
2050
+ }
2051
+ //#endregion
2052
+ //#region src/client/current-user.d.ts
2053
+ interface CurrentUserContext {
2054
+ readonly user: {
2055
+ readonly id: string;
2056
+ readonly email: string;
2057
+ readonly displayName: string | null;
2058
+ readonly handle: string | null;
2059
+ readonly paymentLink: {
2060
+ readonly handle: string;
2061
+ readonly url: string;
2062
+ } | null;
2063
+ };
2064
+ readonly personalAccount: {
2065
+ readonly id: string;
2066
+ readonly address: string | null;
2067
+ } | null;
2068
+ readonly organizations: readonly {
2069
+ readonly id: string;
2070
+ readonly name: string;
2071
+ readonly handle: string;
2072
+ readonly role: string;
2073
+ readonly account: {
2074
+ readonly id: string;
2075
+ readonly address: string | null;
2076
+ } | null;
2077
+ }[];
2078
+ }
2079
+ interface CurrentUserMethods {
2080
+ get(options?: {
2081
+ readonly signal?: AbortSignal;
2082
+ }): Promise<CapxulResult<CurrentUserContext>>;
2083
+ }
2084
+ //#endregion
2085
+ //#region src/client/sub-accounts.d.ts
2086
+ interface SubAccountsMethods {
2087
+ create(accountId: AccountId, input: {
2088
+ readonly name: string;
2089
+ }, options?: {
2090
+ readonly signal?: AbortSignal;
2091
+ }): Promise<CapxulResult<SubAccount$1>>;
2092
+ get(subAccountId: SubAccountId$1, options?: {
2093
+ readonly signal?: AbortSignal;
2094
+ }): Promise<CapxulResult<SubAccount$1 | null>>;
2095
+ list(accountId: AccountId, options?: {
2096
+ readonly signal?: AbortSignal;
2097
+ }): Promise<CapxulResult<readonly SubAccount$1[]>>;
2098
+ rename(subAccountId: SubAccountId$1, name: string, options?: {
2099
+ readonly signal?: AbortSignal;
2100
+ }): Promise<CapxulResult<SubAccount$1>>;
2101
+ delete(subAccountId: SubAccountId$1, options?: {
2102
+ readonly signal?: AbortSignal;
2103
+ }): Promise<CapxulResult<void>>;
2104
+ transfer(input: TransferInput, options?: {
2105
+ readonly signal?: AbortSignal;
2106
+ }): Promise<CapxulResult<TransferResult>>;
2235
2107
  }
2236
2108
  //#endregion
2237
2109
  //#region src/client/onboarding.d.ts
@@ -2295,9 +2167,11 @@ interface CapxulClient {
2295
2167
  * Returns `{ balance, available }` as `Money` — never wei or token units.
2296
2168
  */
2297
2169
  readonly accounts: AccountsMethods;
2170
+ readonly currentUser: CurrentUserMethods;
2298
2171
  readonly me: MeMethods;
2299
2172
  readonly handles: HandlesMethods;
2300
2173
  readonly payees: PayeesMethods;
2174
+ readonly targets: TargetsMethods;
2301
2175
  readonly destinations: DestinationsMethods;
2302
2176
  /**
2303
2177
  * Direct Payments surface (G2 · #545). `pay` records a validated-recipient
@@ -2305,6 +2179,8 @@ interface CapxulClient {
2305
2179
  * callback. The MCP `draft → simulate → approve → execute` workbench is G6.
2306
2180
  */
2307
2181
  readonly payments: PaymentsMethods;
2182
+ readonly activity: ActivityMethods;
2183
+ readonly offramp: OfframpMethods;
2308
2184
  /** Payment document verification (G2 · #545): re-derive the EIP-712 hash. */
2309
2185
  readonly paymentDocuments: PaymentDocumentsMethods;
2310
2186
  /**
@@ -2570,5 +2446,5 @@ declare function captureException(telemetry: TelemetryPort, error: unknown, cont
2570
2446
  */
2571
2447
  declare function captureExceptionSync(telemetry: TelemetryPort, error: unknown, context?: HandledErrorReportContext): void;
2572
2448
  //#endregion
2573
- export { type Account, type AccountLifecycle, type AccountMethods, type AccountProvider, type AccountProviderSource, type AccountRequirement, type AccountSetupStep, type AccountsMethods, type ActorProfile, type ActorProfileMethods, type ActorRelationshipMethods, type ActorRequest, type ActorRequestIssueInput, type ActorRequestsMethods, type Address, type AddressBookAddInput, type AddressBookEntry, type AddressBookLabelInput, type AddressBookMethods, type AssignRoleInput, type AuthMethods, type AuthSession, type AuthUserId, type CapxulClient, type CapxulClientInput, type CapxulDigestSigner, type CapxulResult, type CapxulSigner, type CompleteOrganizationOnboardingInput, type CompleteOrganizationOnboardingResult, type CompletePersonalOnboardingInput, type CompletePersonalOnboardingResult, type CreateCapxulClientInput, type CreateOrgInput, type DepositInstructions, type Destination, type DestinationAddInput, type DestinationKind, type DestinationListInput, type DestinationPayload, type DestinationRemoveInput, type DestinationsMethods, type DetectPendingOrgInvitationsResult, type DevPrivateKeySignerInput, type Eip1193Provider, type Eip1193RequestProvider, type FinancialOpsMethods, type HandledErrorReportContext, type HandlesMethods, type IdentityMethods, type InboxApproveInput, type InboxItem, type InboxMethods, type InsightsMethods, type InsightsSummary, type InviteMemberInput, type MeMethods, type MeProfile, type MemberStatus, type MemberView, type Money, type OnboardingMethods, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OrgBatchPayrollInput, type OrgId, type OrgMethods, type OrgPayrollRun, type OrgScopedMethods, type OrgSpendViaPaymentsInput, type OrgTemplate, type OrgView, type Payee, type PayeesMethods, type Payment, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentDraft, type PaymentDraftStatus, type PaymentMoney, type PaymentRequest, type PaymentRequestStatus, type PaymentRequestsCreateInput, type PaymentRequestsMethods, type PaymentSettlementInput, type PaymentStatus, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PaymentsPayoutInput, type PaymentsWithdrawInput, type PayrollMethods, type PayrollPayslipTemplate, type PayrollRosterAddInput, type PayrollRosterLine, type PayrollRunInput, type Profile, type RecipientResolution, type RecipientResolutionKind, type ReconciliationEntry, type Ref, type RemoveMemberInput, type ResendInviteTokenInput, type RoleDefinition, type RoleKey, type RoleSpendCap, type RoleView, type Session, type SmartAccount, type SmartAccountMethods, type SubAccount, type SubAccountId, type SubAccountsMethods, type TelemetryPort, type TransferEndpoint, type TransferInput, type TransferResult, type WorkbenchDraftInput, type WorkbenchExecuteInput, type WorkbenchMethods, type WorkbenchMintResult, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, injectedWalletSigner, isSettingUpLifecycle, localPrivateKeyAccountProvider, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort };
2449
+ export { type Account, type AccountLifecycle, type AccountMethods, type AccountProvider, type AccountProviderSource, type AccountRequirement, type AccountSetupStep, type AccountsMethods, type ActivityItem, type ActivityListParams, type ActivityMethods, type ActivityPage, type ActorProfile, type ActorProfileMethods, type ActorReference, type ActorRelationshipMethods, type ActorRequest, type ActorRequestIssueInput, type ActorRequestsMethods, type Address, type AddressBookAddInput, type AddressBookEntry, type AddressBookLabelInput, type AddressBookMethods, type AssignRoleInput, type AuthMethods, type AuthSession, type AuthUserId, type CapxulClient, type CapxulClientInput, type CapxulDigestSigner, CapxulError, type CapxulErrorCode, type CapxulErrorDetails, type CapxulResult, type CapxulSigner, type CompleteOrganizationOnboardingInput, type CompleteOrganizationOnboardingResult, type CompletePersonalOnboardingInput, type CompletePersonalOnboardingResult, type CreateCapxulClientInput, type CreateOrgInput, type CurrentUserContext, type CurrentUserMethods, type DepositInstructions, type Destination, type DestinationAddInput, type DestinationKind, type DestinationListInput, type DestinationPayload, type DestinationRail, type DestinationRemoveInput, type DestinationsMethods, type DetectPendingOrgInvitationsResult, type DevPrivateKeySignerInput, type Eip1193Provider, type Eip1193RequestProvider, type FinancialOpsMethods, type HandledErrorReportContext, type HandlesMethods, type IdentityMethods, type InboxApproveInput, type InboxItem, type InboxMethods, type InsightsMethods, type InsightsSummary, type InviteMemberInput, type MeMethods, type MeProfile, type MemberStatus, type MemberView, type Money, type OfframpMethods, type OfframpQuote, type OfframpQuoteInput, type OfframpStatus, type OnboardingMethods, type OpenfortEmbeddedSignerInput, type OpenfortEmbeddedWalletApi, type OpenfortEmbeddedWalletPort, type OrgBatchPayrollInput, type OrgId, type OrgMethods, type OrgPayrollRun, type OrgScopedMethods, type OrgSpendViaPaymentsInput, type OrgTemplate, type OrgView, type OrganizationAccount, type OrganizationAuditLogItem, type Payee, type PayeesMethods, type Payment, type PaymentDocumentRef, type PaymentDocumentRender, type PaymentDocumentVerification, type PaymentDocumentsMethods, type PaymentDraft, type PaymentDraftStatus, type PaymentMoney, type PaymentRequest, type PaymentRequestStatus, type PaymentRequestsCreateInput, type PaymentRequestsMethods, type PaymentSettlementInput, type PaymentStatus, type PaymentTiming, type PaymentType, type PaymentsMethods, type PaymentsPayInput, type PaymentsPayoutInput, type PaymentsWithdrawInput, type PayrollMethods, type PayrollPayslipTemplate, type PayrollRosterAddInput, type PayrollRosterLine, type PayrollRunInput, type Profile, type RecipientResolution, type RecipientResolutionKind, type ReconciliationEntry, type Ref, type RemoveMemberInput, type ResendInviteTokenInput, type ResolvedTarget, type RoleDefinition, type RoleKey, type RoleSpendCap, type RoleView, type Session, type SmartAccount, type SmartAccountMethods, type SubAccount, type SubAccountId, type SubAccountsMethods, type TargetReference, type TargetsMethods, type TelemetryPort, type TransferEndpoint, type TransferInput, type TransferResult, type WorkbenchDraftInput, type WorkbenchExecuteInput, type WorkbenchMethods, type WorkbenchMintResult, captureException, captureExceptionSync, createCapxulClient, deriveDevPrivateKey, devPrivateKeySigner, eip1193AccountProvider, embeddedSigner, injectedWalletSigner, isCapxulError, isSettingUpLifecycle, localPrivateKeyAccountProvider, openfortEmbeddedSigner, openfortEmbeddedSignerFromWallet, openfortEmbeddedWalletPort };
2574
2450
  //# sourceMappingURL=index.d.mts.map