@capxul/sdk-react 0.1.0-alpha.1 → 0.1.0-alpha.11

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.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { HttpTransport, TransportState, CapxulConfig, BrowserCapxulConfig, AccountId, OrganizationId, ApiKeyId, BalanceLedgerEntryId, ExternalAccountId, MemberId, Account, ApiKey, BalanceLedgerEntry, DocumentId, Document, ExternalAccount, KybProfile, KycProfile, CapxulError as CapxulError$1, Member, OperationId, Operation, Organization, PaymentId, Payment, SafeId, Safe, SubAccountId, SubAccount, TransferId, Transfer, Treasury, VirtualAccountId, VirtualAccount, VirtualCardId, VirtualCard, WebhookEndpointId, WebhookEndpoint, WebhookEventId, WebhookEvent, WithdrawalId, Withdrawal, List, LocalPrivateKeySignerProvider } from '@capxul/sdk';
3
- export { AuthFlowContext, AuthFlowEvent, BrowserCapxulConfig, OnboardingFlowContext, OnboardingFlowEvent, ProvisioningFlowContext, ProvisioningFlowEvent } from '@capxul/sdk';
2
+ import * as _capxul_sdk from '@capxul/sdk';
3
+ import { HttpTransport, TransportState, BrowserCapxulConfig, AuthSessionStore, AccountId, OrganizationId, ApiKeyId, BalanceLedgerEntryId, ExternalAccountId, MemberId, Account, ApiKey, BalanceLedgerEntry, DocumentId, Document, ExternalAccount, KybProfile, KycProfile, CapxulError as CapxulError$1, Member, OperationId, Operation, Organization, PaymentId, Payment, SafeId, Safe, SubAccountId, SubAccount, TokenTransfer, TransferId, Transfer, Treasury, VirtualAccountId, VirtualAccount, VirtualCardId, VirtualCard, WebhookEndpointId, WebhookEndpoint, WebhookEventId, WebhookEvent, WithdrawalId, Withdrawal, List, TokenTransfersListInput, TokenTransfersListPage, LocalPrivateKeySignerProvider } from '@capxul/sdk';
4
+ export { AuthBootstrapFlowContext, AuthBootstrapFlowEvent, AuthFlowContext, AuthFlowEvent, BrowserCapxulConfig, OnboardingFlowContext, OnboardingFlowEvent, ProvisioningFlowContext, ProvisioningFlowEvent } from '@capxul/sdk';
4
5
  import { QueryClient, UseQueryResult } from '@tanstack/react-query';
5
6
  import { CapxulClient } from '@capxul/sdk/client';
6
7
  import { CapxulError } from '@capxul/sdk/errors';
@@ -55,55 +56,64 @@ declare function CapxulTransportProvider({ transport, children, }: CapxulTranspo
55
56
  declare function useCapxulStatus(): TransportState;
56
57
 
57
58
  /**
58
- * `CapxulProvider` — React context provider that wires both the
59
- * `@capxul/sdk` client AND a TanStack Query `QueryClient` for the
60
- * subtree.
59
+ * `CapxulProvider` — public React provider for `@capxul/sdk-react`.
61
60
  *
62
- * Two construction paths:
61
+ * Single-input contract: accepts ONLY `{ config: BrowserCapxulConfig,
62
+ * sessionStore?, queryClient?, children }`. The browser config is the
63
+ * secret-safe discriminated union from `@capxul/sdk` — `apiKey`,
64
+ * `data`, `signer`, and other server-only fields are rejected at
65
+ * compile-time AND at runtime via `createCapxulConfig`'s allow-list
66
+ * validator.
63
67
  *
64
- * 1. **Legacy / harness path** pass an already-assembled
65
- * `config: CapxulConfig`. Used by the e2e harness and CLI-shaped
66
- * integrations that build their own auth/data adapters.
68
+ * The provider builds an `HttpTransport` synchronously and injects it
69
+ * into `createCapxulClient` via the internal `_transport` slot. The
70
+ * transport is exposed through `CapxulTransportContext` so
71
+ * `useCapxulStatus()` can subscribe to its lifecycle state machine.
67
72
  *
68
- * 2. **Lazy-DX path (ADR #14c)** pass either `publishableKey` or
69
- * `browserConfig`. The provider builds an `HttpTransport`
70
- * synchronously, injects it into `createCapxulClient` via the
71
- * internal `_transport` slot, and exposes the transport through
72
- * `CapxulTransportContext` so `useCapxulStatus()` can subscribe
73
- * to its lifecycle state machine.
73
+ * The provider also builds a `ConvexReactClient`-backed data client
74
+ * for the `build-time-urls` arm and feeds it as `config.data` so the
75
+ * SDK domain methods (`me.get`, `accounts.retrieve`, ...) and the
76
+ * React hooks built on top can run authenticated reads against live
77
+ * Convex. The auth lifecycle threads through the optional
78
+ * `sessionStore` prop: `verifyOtp` writes a session to the store
79
+ * (which the SDK auth client persists), and the provider's data
80
+ * client re-reads the JWT on demand via `refreshAuth()`. Without a
81
+ * session store the provider falls back to an in-memory one, which
82
+ * is fine for browser apps that hold the page until next reload but
83
+ * inadequate for CLI / Node consumers that need cross-process
84
+ * persistence — those pass a file-backed store via the prop.
74
85
  *
75
- * The lazy-DX provider mounts synchronously. There is no
76
- * `useState` mutating config, no `useMemo` rebuilding config when
77
- * state changes, and no Suspense gate at mount. State transitions
78
- * happen on the transport (a stable singleton); React subscribes
79
- * via `useSyncExternalStore` and re-renders only the components
80
- * that actually depend on the transport state.
86
+ * Tests and the e2e harness need the server-augmented `CapxulConfig`
87
+ * shape (with `data`, `signer`, `signing`). Those callers use
88
+ * `CapxulTestProvider` from `@capxul/sdk-react/proof` instead.
81
89
  *
82
90
  * Per ADR 4 in the API-first architecture stack PLAN, only
83
91
  * `QueryClientProvider` is allowed to live OUTSIDE the single
84
92
  * `CapxulContext`. The `QueryClientProvider` is the outermost wrap;
85
- * the SDK client provider sits inside it; the optional transport
86
- * provider sits between the two when the lazy-DX path is active.
93
+ * the SDK client provider sits inside it; the transport provider sits
94
+ * between the two.
87
95
  */
88
96
 
89
97
  type CapxulProviderProps = {
90
98
  /**
91
- * Pre-assembled `CapxulConfig` for the legacy / harness path.
92
- * Mutually exclusive with `publishableKey` / `browserConfig`.
99
+ * Browser-safe Capxul config the discriminated union from
100
+ * `@capxul/sdk`. Either the `build-time-urls` arm or the
101
+ * `publishable-key` arm. Server-only fields (`apiKey`, `data`,
102
+ * `signer`, `signing`) are rejected at compile-time and at runtime
103
+ * via `createCapxulConfig`'s allow-list validator.
93
104
  */
94
- readonly config?: CapxulConfig;
105
+ readonly config: BrowserCapxulConfig;
95
106
  /**
96
- * Shorthand for the publishable-key arm of `BrowserCapxulConfig`.
97
- * Provider builds the transport synchronously and injects it into
98
- * the SDK client the canonical lazy-DX entry point per ADR #14c.
107
+ * Auth session persistence adapter. The SDK auth client writes
108
+ * sessions here on `verifyOtp` and clears them on `signOut`. The
109
+ * provider's data client re-reads the JWT from this store on every
110
+ * `refreshAuth` call so reads carry the right auth header.
111
+ *
112
+ * Defaults to an in-memory store scoped to this provider. Pass a
113
+ * file-backed (Node CLI) or `localStorage`-backed (browser) store
114
+ * to persist sessions across process or page lifetimes.
99
115
  */
100
- readonly publishableKey?: string;
101
- /**
102
- * Full `BrowserCapxulConfig` for callers that need
103
- * `mode: "build-time-urls"` or a custom `fetchImpl` (e.g. tests).
104
- * Mutually exclusive with `publishableKey` / `config`.
105
- */
106
- readonly browserConfig?: BrowserCapxulConfig;
116
+ readonly sessionStore?: AuthSessionStore;
107
117
  /**
108
118
  * Optional TanStack Query `QueryClient`. Pass your app's existing
109
119
  * client to share the cache across the SDK hooks and the host
@@ -113,7 +123,7 @@ type CapxulProviderProps = {
113
123
  readonly queryClient?: QueryClient;
114
124
  readonly children: ReactNode;
115
125
  };
116
- declare function CapxulProvider({ config, publishableKey, browserConfig, queryClient, children, }: CapxulProviderProps): ReactNode;
126
+ declare function CapxulProvider({ config, sessionStore, queryClient, children, }: CapxulProviderProps): ReactNode;
117
127
 
118
128
  /**
119
129
  * `QueryResult<T>` — the canonical three-state return shape for every
@@ -220,16 +230,27 @@ declare function useMe(): UseQueryResult<Account, CapxulError$1>;
220
230
  /**
221
231
  * Account by id. Omit `accountId` for the calling user (alias for
222
232
  * `useMe()` from a developer-perspective lens).
233
+ *
234
+ * Slice 2 (#457 story 1): wired via `capxul.accounts.retrieve` for
235
+ * the id-bearing call and `capxul.me.get()` for the self-lens
236
+ * shortcut. Returns the legacy `QueryResult<Account>` shape because
237
+ * only `useMe` has migrated to TanStack Query so far (PLAN.md task
238
+ * 1.8) — per-hook migration is the rollout pattern.
223
239
  */
224
- declare function useAccount(_accountId?: AccountId): QueryResult<Account>;
240
+ declare function useAccount(accountId?: AccountId): QueryResult<Account>;
225
241
  declare function useOrganization(_organizationId: OrganizationId): QueryResult<Organization>;
226
242
  declare function useMember(_args: UseMemberArgs): QueryResult<Member>;
227
243
  /**
228
244
  * Live; status advances as the indexer reconciles the on-chain
229
245
  * deployment. Consumers pattern-match on `data.status` via
230
246
  * `matchStatus` (see `@capxul/sdk`).
247
+ *
248
+ * Slice 2 (#457 story 1): wired via
249
+ * `capxul.accounts.safes.retrieve(safeId)`. The SDK method is real
250
+ * post-Withdrawals v1 slice 1; this hook closes the React-side
251
+ * stub so onboarding can subscribe to Safe deploy progress.
231
252
  */
232
- declare function useSafe(_safeId: SafeId): QueryResult<Safe>;
253
+ declare function useSafe(safeId: SafeId): QueryResult<Safe>;
233
254
  declare function useTreasury(_organizationId: OrganizationId): QueryResult<Treasury>;
234
255
  /**
235
256
  * Org-admin lens only — the hook NEVER returns `secret`.
@@ -237,12 +258,51 @@ declare function useTreasury(_organizationId: OrganizationId): QueryResult<Treas
237
258
  declare function useApiKey(_args: UseApiKeyArgs): QueryResult<ApiKey>;
238
259
  declare function useKycProfile(_accountId: AccountId): QueryResult<KycProfile>;
239
260
  declare function useKybProfile(_organizationId: OrganizationId): QueryResult<KybProfile>;
240
- declare function useExternalAccount(_args: UseExternalAccountArgs): QueryResult<ExternalAccount>;
241
- declare function useSubAccount(_subAccountId: SubAccountId): QueryResult<SubAccount>;
261
+ /**
262
+ * Withdrawals v1 W1 (#464) — wired through the SDK.
263
+ *
264
+ * Branches on `args.ownerKind` so `account` scope reads via the
265
+ * top-level `capxul.externalAccounts.retrieve(id)` (visibility-gated
266
+ * server-side by the caller's accountId), and `organization` scope
267
+ * reads via `capxul.organizations.externalAccounts.retrieve({ ... })`
268
+ * which adds an org-scope check for cross-org isolation. Both routes
269
+ * resolve to the same Convex query handler — the SDK ergonomics
270
+ * differ but the wire shape is identical.
271
+ */
272
+ declare function useExternalAccount(args: UseExternalAccountArgs): QueryResult<ExternalAccount>;
273
+ /**
274
+ * Funds v1 PR-2b (#421) — wired through `capxul.subAccounts.retrieve`.
275
+ *
276
+ * The top-level `subAccounts.retrieve` resolves to the same Convex
277
+ * query handler as `accounts.subAccounts.retrieve` /
278
+ * `organizations.subAccounts.retrieve`; visibility is gated server-side
279
+ * (canon §sub_account read contract — cross-scope reads surface as
280
+ * `NOT_FOUND` rather than a distinct permission code). The SDK has
281
+ * already branded the wire shape via `tryBrandSubAccount`, so the hook
282
+ * receives a fully-branded `SubAccount` (`SubAccountId`, `Money`,
283
+ * `TimestampIso`).
284
+ */
285
+ declare function useSubAccount(subAccountId: SubAccountId): QueryResult<SubAccount>;
242
286
  declare function useVirtualAccount(_virtualAccountId: VirtualAccountId): QueryResult<VirtualAccount>;
243
287
  declare function useVirtualCard(_virtualCardId: VirtualCardId): QueryResult<VirtualCard>;
244
288
  declare function usePayment(_paymentId: PaymentId): QueryResult<Payment>;
245
289
  declare function useTransfer(_transferId: TransferId): QueryResult<Transfer>;
290
+ type UseTokenTransferArgs = {
291
+ readonly txHash: string;
292
+ readonly logIndex: number;
293
+ readonly chainId?: number;
294
+ };
295
+ /**
296
+ * **NON-CANONICAL** raw on-chain ERC-20 transfer detail. Wired through
297
+ * `capxul.tokenTransfers.retrieve` per slice/02-story2-balance
298
+ * Option-A verdict. Identifier is the canonical on-chain composite
299
+ * `(txHash, logIndex)` so consumers don't have to round-trip through
300
+ * the Convex doc id.
301
+ *
302
+ * Intentionally NOT in `packages/sdk-react/ops/proof/hook-manifest.ts`
303
+ * — the canonical proof manifest tracks canon-aligned hooks only.
304
+ */
305
+ declare function useTokenTransfer(args: UseTokenTransferArgs): QueryResult<TokenTransfer>;
246
306
  /**
247
307
  * Immutable once written; `live` semantically only for late
248
308
  * `paymentId` / `transferId` attachment per Doc 02 §"balance_ledger".
@@ -333,8 +393,35 @@ type OrgDocumentsFilters = OrgScopedFilters & {
333
393
  */
334
394
  declare function useOrganizations(): QueryResult<List<Organization>>;
335
395
  declare function useMembers(_organizationId: OrganizationId): QueryResult<List<Member>>;
336
- declare function useExternalAccounts(_args: OwnerRef): QueryResult<List<ExternalAccount>>;
337
- declare function useSubAccounts(_args: OwnerRef): QueryResult<List<SubAccount>>;
396
+ /**
397
+ * Withdrawals v1 W1 (#464) — wired through the SDK.
398
+ *
399
+ * Personal scope reads through `capxul.accounts.externalAccounts.list({
400
+ * accountId })` (Pattern A nested namespace); org scope reads through
401
+ * `capxul.organizations.externalAccounts.list({ organizationId })`.
402
+ * Both resolve to the same Convex query handler — the SDK ergonomics
403
+ * differ. Backend filters out `revoked` rows but keeps
404
+ * `pending_verification` rows visible (D5).
405
+ */
406
+ declare function useExternalAccounts(args: OwnerRef): QueryResult<List<ExternalAccount>>;
407
+ /**
408
+ * Funds v1 PR-2b (#421) — wired through the SDK.
409
+ *
410
+ * Branches on `args.ownerKind`: `account` scope reads through
411
+ * `capxul.accounts.subAccounts.list({ accountId })`; `organization`
412
+ * scope reads through `capxul.organizations.subAccounts.list({
413
+ * organizationId })`. Both resolve to the same Convex domain (server
414
+ * derives the writer scope per Pattern A — see `sdk.md`). The SDK
415
+ * has already branded each row via `tryBrandSubAccount`, so consumers
416
+ * receive `List<SubAccount>` with `SubAccountId`, `Money`, and
417
+ * `TimestampIso` in place.
418
+ *
419
+ * Note: `OwnerRef` admits only `"account" | "organization"`. A
420
+ * `sub_account` owner is a type error at the call site — not a runtime
421
+ * not-supported branch — because there is no `listChildSubAccounts`
422
+ * backend endpoint.
423
+ */
424
+ declare function useSubAccounts(args: OwnerRef): QueryResult<List<SubAccount>>;
338
425
  declare function useVirtualAccounts(_filters?: VirtualAccountsFilters): QueryResult<List<VirtualAccount>>;
339
426
  declare function useVirtualCards(_filters?: VirtualCardsFilters): QueryResult<List<VirtualCard>>;
340
427
  /**
@@ -345,6 +432,17 @@ declare function usePayments(_filters?: PaymentsFilters): QueryResult<List<Payme
345
432
  declare function useOrgPayments(_args: OrgScopedFilters): QueryResult<List<Payment>>;
346
433
  declare function useTransfers(_filters?: TransfersFilters): QueryResult<List<Transfer>>;
347
434
  declare function useOrgTransfers(_args: OrgScopedFilters): QueryResult<List<Transfer>>;
435
+ /**
436
+ * **NON-CANONICAL** raw on-chain ERC-20 transfer feed. Wired through
437
+ * `capxul.tokenTransfers.list` per slice/02-story2-balance Option-A
438
+ * verdict. Will be subsumed by canonical `useTransfers` once the
439
+ * `transfers.*` shape alignment lands. See `core/token-transfers.ts`
440
+ * doc-comment for the full contract.
441
+ *
442
+ * Intentionally NOT in `packages/sdk-react/ops/proof/hook-manifest.ts`
443
+ * — the canonical proof manifest tracks canon-aligned hooks only.
444
+ */
445
+ declare function useTokenTransfers(filters?: TokenTransfersListInput): QueryResult<TokenTransfersListPage>;
348
446
  /**
349
447
  * Append-only per-owner balance-delta feed. Live for late
350
448
  * `paymentId` / `transferId` attachment per Doc 02.
@@ -376,10 +474,106 @@ declare function useApiKeys(_organizationId: OrganizationId): QueryResult<List<A
376
474
  */
377
475
  declare function useWebhookEndpoints(): QueryResult<List<WebhookEndpoint>>;
378
476
 
477
+ /**
478
+ * Lowercased, shape-validated email address. Brand prevents swapping
479
+ * with `phoneNumber`, `username`, or other string identifiers (per
480
+ * `CANON.md` §4.54 and `sdk-surface.md` §5h).
481
+ */
482
+ type Email = string & {
483
+ readonly __capxulEmailBrand: "Email";
484
+ };
485
+ /**
486
+ * Public Capxul username. 3–30 chars, letter-first, lowercased,
487
+ * remaining chars from `[a-z0-9_-]` (per `CANON.md` §4.54 and
488
+ * `sdk-surface.md` §5h). Constructor lowercases before validating so
489
+ * mixed-case input canonicalizes cleanly when the first char is a
490
+ * letter; purely invalid shapes (too short, illegal chars, digit-first)
491
+ * still throw.
492
+ */
493
+ type Username = string & {
494
+ readonly __capxulUsernameBrand: "Username";
495
+ };
496
+
379
497
  declare function useAuthFlow(): {
380
498
  readonly snapshot: xstate.MachineSnapshot<any, any, any, any, any, any, any, any>;
381
499
  readonly send: (event: any) => void;
382
500
  };
501
+ declare function useAuthBootstrapFlow(): {
502
+ readonly snapshot: xstate.MachineSnapshot<_capxul_sdk.AuthBootstrapFlowContext, {
503
+ readonly type: "ENTER_EMAIL";
504
+ readonly email: Email;
505
+ } | {
506
+ readonly type: "REQUEST_OTP";
507
+ } | {
508
+ readonly type: "ENTER_OTP";
509
+ readonly code: string;
510
+ } | {
511
+ readonly type: "VERIFY_OTP";
512
+ } | {
513
+ readonly type: "ENTER_USERNAME";
514
+ readonly username: Username;
515
+ } | {
516
+ readonly type: "ENTER_SIGNER_PROVIDER";
517
+ readonly signerProvider: _capxul_sdk.LocalPrivateKeySignerProvider;
518
+ } | {
519
+ readonly type: "COMPLETE_BOOTSTRAP";
520
+ } | {
521
+ readonly type: "BACK";
522
+ } | {
523
+ readonly type: "RESET";
524
+ } | {
525
+ readonly type: "SIGN_OUT";
526
+ }, {
527
+ [x: string]: xstate.ActorRefFromLogic<xstate.PromiseActorLogic<void, void, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<_capxul_sdk.CompleteBootstrapResult, {
528
+ bootstrapToken: _capxul_sdk.AuthBootstrapToken;
529
+ username: Username;
530
+ signerProvider: _capxul_sdk.LocalPrivateKeySignerProvider;
531
+ }, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<void, {
532
+ email: Email;
533
+ }, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<_capxul_sdk.VerifyOtpResult, {
534
+ email: Email;
535
+ code: string;
536
+ }, xstate.EventObject>> | undefined;
537
+ }, "email" | "error" | "bootstrap_required" | "authenticated" | "sending_otp" | "otp_requested" | "signing_out" | "verifying_otp" | "completing_bootstrap", string, xstate.NonReducibleUnknown, xstate.MetaObject, {
538
+ id: "authBootstrap";
539
+ states: {
540
+ readonly email: {};
541
+ readonly sending_otp: {};
542
+ readonly otp_requested: {};
543
+ readonly verifying_otp: {};
544
+ readonly bootstrap_required: {};
545
+ readonly completing_bootstrap: {};
546
+ readonly authenticated: {};
547
+ readonly signing_out: {};
548
+ readonly error: {};
549
+ };
550
+ }>;
551
+ readonly send: (event: {
552
+ readonly type: "ENTER_EMAIL";
553
+ readonly email: Email;
554
+ } | {
555
+ readonly type: "REQUEST_OTP";
556
+ } | {
557
+ readonly type: "ENTER_OTP";
558
+ readonly code: string;
559
+ } | {
560
+ readonly type: "VERIFY_OTP";
561
+ } | {
562
+ readonly type: "ENTER_USERNAME";
563
+ readonly username: Username;
564
+ } | {
565
+ readonly type: "ENTER_SIGNER_PROVIDER";
566
+ readonly signerProvider: _capxul_sdk.LocalPrivateKeySignerProvider;
567
+ } | {
568
+ readonly type: "COMPLETE_BOOTSTRAP";
569
+ } | {
570
+ readonly type: "BACK";
571
+ } | {
572
+ readonly type: "RESET";
573
+ } | {
574
+ readonly type: "SIGN_OUT";
575
+ }) => void;
576
+ };
383
577
  declare function useOnboardingFlow(): {
384
578
  readonly snapshot: xstate.MachineSnapshot<any, any, any, any, any, any, any, any>;
385
579
  readonly send: (event: any) => void;
@@ -470,4 +664,4 @@ declare function injectedConnector(options?: InjectedConnectorOptions): CapxulCo
470
664
  */
471
665
  declare function localPrivateKeyConnector(options: LocalPrivateKeyConnectorOptions): CapxulConnector;
472
666
 
473
- export { CapxulClientProvider, type CapxulClientProviderProps, type CapxulConnector, type CapxulConnectorKind, type CapxulConnectorSession, CapxulProvider, type CapxulProviderProps, CapxulTransportProvider, type CapxulTransportProviderProps, type DocumentsFilters, type InjectedConnectorOptions, type LocalPrivateKeyConnectorOptions, type OrgDocumentsFilters, type OrgScopedFilters, type OwnerRef, type OwnerScopedFilters, type PaginationFilters, type PaymentsFilters, type QueryResult, type TransfersFilters, type UseApiKeyArgs, type UseBalanceLedgerEntryArgs, type UseExternalAccountArgs, type UseMemberArgs, type VirtualAccountsFilters, type VirtualCardsFilters, type WithdrawalsFilters, createCapxulConfig, injectedConnector, localPrivateKeyConnector, useAccount, useApiKey, useApiKeys, useAuthFlow, useBalanceLedger, useBalanceLedgerEntry, useCapxul, useCapxulStatus, useDocument, useDocuments, useExternalAccount, useExternalAccounts, useKybProfile, useKycProfile, useMe, useMember, useMembers, useOnboardingFlow, useOperation, useOrgDocuments, useOrgPayments, useOrgTransfers, useOrgWithdrawals, useOrganization, useOrganizations, usePayment, usePayments, useProvisioningFlow, useSafe, useSubAccount, useSubAccounts, useTransfer, useTransfers, useTreasury, useVirtualAccount, useVirtualAccounts, useVirtualCard, useVirtualCards, useWebhookEndpoint, useWebhookEndpoints, useWebhookEvent, useWithdrawal, useWithdrawals };
667
+ export { CapxulClientProvider, type CapxulClientProviderProps, type CapxulConnector, type CapxulConnectorKind, type CapxulConnectorSession, CapxulProvider, type CapxulProviderProps, CapxulTransportProvider, type CapxulTransportProviderProps, type DocumentsFilters, type InjectedConnectorOptions, type LocalPrivateKeyConnectorOptions, type OrgDocumentsFilters, type OrgScopedFilters, type OwnerRef, type OwnerScopedFilters, type PaginationFilters, type PaymentsFilters, type QueryResult, type TransfersFilters, type UseApiKeyArgs, type UseBalanceLedgerEntryArgs, type UseExternalAccountArgs, type UseMemberArgs, type UseTokenTransferArgs, type VirtualAccountsFilters, type VirtualCardsFilters, type WithdrawalsFilters, createCapxulConfig, injectedConnector, localPrivateKeyConnector, useAccount, useApiKey, useApiKeys, useAuthBootstrapFlow, useAuthFlow, useBalanceLedger, useBalanceLedgerEntry, useCapxul, useCapxulStatus, useDocument, useDocuments, useExternalAccount, useExternalAccounts, useKybProfile, useKycProfile, useMe, useMember, useMembers, useOnboardingFlow, useOperation, useOrgDocuments, useOrgPayments, useOrgTransfers, useOrgWithdrawals, useOrganization, useOrganizations, usePayment, usePayments, useProvisioningFlow, useSafe, useSubAccount, useSubAccounts, useTokenTransfer, useTokenTransfers, useTransfer, useTransfers, useTreasury, useVirtualAccount, useVirtualAccounts, useVirtualCard, useVirtualCards, useWebhookEndpoint, useWebhookEndpoints, useWebhookEvent, useWithdrawal, useWithdrawals };