@capxul/sdk-react 0.1.0-alpha.8 → 0.2.0-alpha.3

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.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- 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';
3
- export { AuthFlowContext, AuthFlowEvent, BrowserCapxulConfig, OnboardingFlowContext, OnboardingFlowEvent, ProvisioningFlowContext, ProvisioningFlowEvent } from '@capxul/sdk';
4
- import { QueryClient, UseQueryResult } from '@tanstack/react-query';
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, 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, MembershipStatus, TokenTransfersListInput, TokenTransfersListPage, MemberInviteResponse, Session } from '@capxul/sdk';
4
+ export { AuthBootstrapFlowContext, AuthBootstrapFlowEvent, AuthFlowContext, AuthFlowEvent, BrowserCapxulConfig, OnboardingFlowContext, OnboardingFlowEvent, ProvisioningFlowContext, ProvisioningFlowEvent } from '@capxul/sdk';
5
+ import { QueryClient, UseQueryResult, UseMutationResult } from '@tanstack/react-query';
5
6
  import { CapxulClient } from '@capxul/sdk/client';
6
7
  import { CapxulError } from '@capxul/sdk/errors';
8
+ import { Account as Account$1 } from 'viem';
7
9
  import * as xstate from 'xstate';
8
10
 
9
11
  type CapxulClientProviderProps = {
@@ -70,7 +72,7 @@ declare function useCapxulStatus(): TransportState;
70
72
  * `useCapxulStatus()` can subscribe to its lifecycle state machine.
71
73
  *
72
74
  * The provider also builds a `ConvexReactClient`-backed data client
73
- * for the `build-time-urls` arm and feeds it as `config.data` so the
75
+ * for the `build-time-urls` arm and feeds it as `config._data` so the
74
76
  * SDK domain methods (`me.get`, `accounts.retrieve`, ...) and the
75
77
  * React hooks built on top can run authenticated reads against live
76
78
  * Convex. The auth lifecycle threads through the optional
@@ -163,12 +165,10 @@ type QueryResult<T> = {
163
165
  /**
164
166
  * Per-resource singular read hooks — 21 total.
165
167
  *
166
- * Catalogued in the reset hook proof matrix. `useMe()` is the first
167
- * hook migrated to TanStack Query (PLAN.md task 1.8); it returns
168
- * `UseQueryResult<Account, CapxulError>` and routes through
169
- * `@capxul/sdk` `me.get()` with query key `["capxul", "me"]` and a
170
- * 30s `staleTime` matching the `CapxulProvider` default. The
171
- * remaining 19 hooks plus `useOperation()` still return
168
+ * Catalogued in the reset hook proof matrix. TanStack Query-backed
169
+ * hooks return `UseQueryResult<T, CapxulError>` and route through
170
+ * public `@capxul/sdk` reads with a 30s `staleTime` matching the
171
+ * `CapxulProvider` default. Hooks not yet migrated still return
172
172
  * `QueryResult<T>` per the reset transport contract — per-hook
173
173
  * migration is the rollout pattern; later tasks lift each in turn.
174
174
  * `useOperation()` routes through `operations.retrieve()` so harness
@@ -237,8 +237,8 @@ declare function useMe(): UseQueryResult<Account, CapxulError$1>;
237
237
  * 1.8) — per-hook migration is the rollout pattern.
238
238
  */
239
239
  declare function useAccount(accountId?: AccountId): QueryResult<Account>;
240
- declare function useOrganization(_organizationId: OrganizationId): QueryResult<Organization>;
241
- declare function useMember(_args: UseMemberArgs): QueryResult<Member>;
240
+ declare function useOrganization(organizationId: OrganizationId): UseQueryResult<Organization, CapxulError$1>;
241
+ declare function useMember(args: UseMemberArgs): UseQueryResult<Member, CapxulError$1>;
242
242
  /**
243
243
  * Live; status advances as the indexer reconciles the on-chain
244
244
  * deployment. Consumers pattern-match on `data.status` via
@@ -250,13 +250,12 @@ declare function useMember(_args: UseMemberArgs): QueryResult<Member>;
250
250
  * stub so onboarding can subscribe to Safe deploy progress.
251
251
  */
252
252
  declare function useSafe(safeId: SafeId): QueryResult<Safe>;
253
- declare function useTreasury(_organizationId: OrganizationId): QueryResult<Treasury>;
253
+ declare function useTreasury(organizationId: OrganizationId): UseQueryResult<Treasury, CapxulError$1>;
254
254
  /**
255
255
  * Org-admin lens only — the hook NEVER returns `secret`.
256
256
  */
257
257
  declare function useApiKey(_args: UseApiKeyArgs): QueryResult<ApiKey>;
258
258
  declare function useKycProfile(_accountId: AccountId): QueryResult<KycProfile>;
259
- declare function useKybProfile(_organizationId: OrganizationId): QueryResult<KybProfile>;
260
259
  /**
261
260
  * Withdrawals v1 W1 (#464) — wired through the SDK.
262
261
  *
@@ -269,10 +268,22 @@ declare function useKybProfile(_organizationId: OrganizationId): QueryResult<Kyb
269
268
  * differ but the wire shape is identical.
270
269
  */
271
270
  declare function useExternalAccount(args: UseExternalAccountArgs): QueryResult<ExternalAccount>;
272
- declare function useSubAccount(_subAccountId: SubAccountId): QueryResult<SubAccount>;
271
+ /**
272
+ * Funds v1 PR-2b (#421) — wired through `capxul.subAccounts.retrieve`.
273
+ *
274
+ * The top-level `subAccounts.retrieve` resolves to the same Convex
275
+ * query handler as `accounts.subAccounts.retrieve` /
276
+ * `organizations.subAccounts.retrieve`; visibility is gated server-side
277
+ * (canon §sub_account read contract — cross-scope reads surface as
278
+ * `NOT_FOUND` rather than a distinct permission code). The SDK has
279
+ * already branded the wire shape via `tryBrandSubAccount`, so the hook
280
+ * receives a fully-branded `SubAccount` (`SubAccountId`, `Money`,
281
+ * `TimestampIso`).
282
+ */
283
+ declare function useSubAccount(subAccountId: SubAccountId): QueryResult<SubAccount>;
273
284
  declare function useVirtualAccount(_virtualAccountId: VirtualAccountId): QueryResult<VirtualAccount>;
274
285
  declare function useVirtualCard(_virtualCardId: VirtualCardId): QueryResult<VirtualCard>;
275
- declare function usePayment(_paymentId: PaymentId): QueryResult<Payment>;
286
+ declare function usePayment(paymentId: PaymentId): UseQueryResult<Payment, CapxulError$1>;
276
287
  declare function useTransfer(_transferId: TransferId): QueryResult<Transfer>;
277
288
  type UseTokenTransferArgs = {
278
289
  readonly txHash: string;
@@ -294,7 +305,7 @@ declare function useTokenTransfer(args: UseTokenTransferArgs): QueryResult<Token
294
305
  * Immutable once written; `live` semantically only for late
295
306
  * `paymentId` / `transferId` attachment per Doc 02 §"balance_ledger".
296
307
  */
297
- declare function useBalanceLedgerEntry(_args: UseBalanceLedgerEntryArgs): QueryResult<BalanceLedgerEntry>;
308
+ declare function useBalanceLedgerEntry(args: UseBalanceLedgerEntryArgs): QueryResult<BalanceLedgerEntry>;
298
309
  declare function useDocument(_documentId: DocumentId): QueryResult<Document>;
299
310
  /**
300
311
  * Withdrawals v1 slice 1 (#440) — wired through `capxul.withdrawals.retrieve`.
@@ -317,10 +328,10 @@ declare function useWebhookEvent(_eventId: WebhookEventId): QueryResult<WebhookE
317
328
  /**
318
329
  * Per-resource list read hooks — 17 total.
319
330
  *
320
- * Catalogued in Doc 08 §3. Every hook returns
321
- * `QueryResult<List<T>>` per CANON.md §4.29. Slice C.1 scaffold:
322
- * every hook returns `NOT_IMPLEMENTED` until Slice F wires real
323
- * Convex subscriptions.
331
+ * Catalogued in Doc 08 §3. TanStack Query-backed hooks return
332
+ * `UseQueryResult<List<T>, CapxulError>` and route through public
333
+ * `@capxul/sdk` reads. Hooks not yet migrated still return
334
+ * `QueryResult<List<T>>` per CANON.md §4.29.
324
335
  *
325
336
  * Argument shapes follow sdk-surface.md §3b:
326
337
  * - Cursor-paginated lists take `{ limit?, cursor? }` filters per
@@ -378,8 +389,11 @@ type OrgDocumentsFilters = OrgScopedFilters & {
378
389
  * "My orgs" — returns every organization the authenticated caller
379
390
  * is a member of, with the co-member lens per row.
380
391
  */
381
- declare function useOrganizations(): QueryResult<List<Organization>>;
382
- declare function useMembers(_organizationId: OrganizationId): QueryResult<List<Member>>;
392
+ declare function useOrganizations(filters?: PaginationFilters): UseQueryResult<List<Organization>, CapxulError$1>;
393
+ type MembersFilters = {
394
+ readonly status?: MembershipStatus | "all";
395
+ };
396
+ declare function useMembers(organizationId: OrganizationId, filters?: MembersFilters): UseQueryResult<List<Member>, CapxulError$1>;
383
397
  /**
384
398
  * Withdrawals v1 W1 (#464) — wired through the SDK.
385
399
  *
@@ -391,14 +405,31 @@ declare function useMembers(_organizationId: OrganizationId): QueryResult<List<M
391
405
  * `pending_verification` rows visible (D5).
392
406
  */
393
407
  declare function useExternalAccounts(args: OwnerRef): QueryResult<List<ExternalAccount>>;
394
- declare function useSubAccounts(_args: OwnerRef): QueryResult<List<SubAccount>>;
408
+ /**
409
+ * Funds v1 PR-2b (#421) — wired through the SDK.
410
+ *
411
+ * Branches on `args.ownerKind`: `account` scope reads through
412
+ * `capxul.accounts.subAccounts.list({ accountId })`; `organization`
413
+ * scope reads through `capxul.organizations.subAccounts.list({
414
+ * organizationId })`. Both resolve to the same Convex domain (server
415
+ * derives the writer scope per Pattern A — see `sdk.md`). The SDK
416
+ * has already branded each row via `tryBrandSubAccount`, so consumers
417
+ * receive `List<SubAccount>` with `SubAccountId`, `Money`, and
418
+ * `TimestampIso` in place.
419
+ *
420
+ * Note: `OwnerRef` admits only `"account" | "organization"`. A
421
+ * `sub_account` owner is a type error at the call site — not a runtime
422
+ * not-supported branch — because there is no `listChildSubAccounts`
423
+ * backend endpoint.
424
+ */
425
+ declare function useSubAccounts(args: OwnerRef): QueryResult<List<SubAccount>>;
395
426
  declare function useVirtualAccounts(_filters?: VirtualAccountsFilters): QueryResult<List<VirtualAccount>>;
396
427
  declare function useVirtualCards(_filters?: VirtualCardsFilters): QueryResult<List<VirtualCard>>;
397
428
  /**
398
429
  * Personal-scope payments feed (cursor-paginated per §4.16). Org-scope
399
430
  * payments live on `useOrgPayments` per §4.30 (Shape A).
400
431
  */
401
- declare function usePayments(_filters?: PaymentsFilters): QueryResult<List<Payment>>;
432
+ declare function usePayments(filters?: PaymentsFilters): UseQueryResult<List<Payment>, CapxulError$1>;
402
433
  declare function useOrgPayments(_args: OrgScopedFilters): QueryResult<List<Payment>>;
403
434
  declare function useTransfers(_filters?: TransfersFilters): QueryResult<List<Transfer>>;
404
435
  declare function useOrgTransfers(_args: OrgScopedFilters): QueryResult<List<Transfer>>;
@@ -417,7 +448,9 @@ declare function useTokenTransfers(filters?: TokenTransfersListInput): QueryResu
417
448
  * Append-only per-owner balance-delta feed. Live for late
418
449
  * `paymentId` / `transferId` attachment per Doc 02.
419
450
  */
420
- declare function useBalanceLedger(_args: OwnerScopedFilters): QueryResult<List<BalanceLedgerEntry>>;
451
+ declare function useBalanceLedger(args: OwnerScopedFilters): QueryResult<List<BalanceLedgerEntry>>;
452
+ declare function useAccountBalanceLedger(accountId: AccountId, filters?: PaginationFilters): QueryResult<List<BalanceLedgerEntry>>;
453
+ declare function useOrgBalanceLedger(args: OrgScopedFilters): QueryResult<List<BalanceLedgerEntry>>;
421
454
  /**
422
455
  * Personal-scope documents. `filters.type` narrows the polymorphic
423
456
  * `Document` union to a single variant (invoice, payroll_run,
@@ -444,10 +477,180 @@ declare function useApiKeys(_organizationId: OrganizationId): QueryResult<List<A
444
477
  */
445
478
  declare function useWebhookEndpoints(): QueryResult<List<WebhookEndpoint>>;
446
479
 
480
+ /**
481
+ * Org-scoped member mutation hooks — TanStack `useMutation` wrappers.
482
+ *
483
+ * Slice 5 (#627): invite, accept, updateRole, revoke, remove, resend.
484
+ * Each hook returns the standard `{ mutate, mutateAsync, isPending, error, data }`
485
+ * shape so consumers can fire-and-forget or await + handle errors.
486
+ */
487
+
488
+ type InviteMemberArgs = {
489
+ readonly organizationId: OrganizationId;
490
+ readonly email: string;
491
+ readonly role: Member["role"];
492
+ };
493
+ type AcceptInvitationArgs = {
494
+ readonly token: string;
495
+ };
496
+ type UpdateMemberRoleArgs = {
497
+ readonly organizationId: OrganizationId;
498
+ readonly memberId: MemberId;
499
+ readonly role: Member["role"];
500
+ };
501
+ type RevokeMemberArgs = {
502
+ readonly organizationId: OrganizationId;
503
+ readonly memberId: MemberId;
504
+ };
505
+ type RemoveMemberArgs = {
506
+ readonly organizationId: OrganizationId;
507
+ readonly memberId: MemberId;
508
+ };
509
+ type ResendInvitationArgs = {
510
+ readonly organizationId: OrganizationId;
511
+ readonly memberId: MemberId;
512
+ };
513
+ declare function useInviteMember(): UseMutationResult<MemberInviteResponse, CapxulError$1, InviteMemberArgs>;
514
+ declare function useAcceptInvitation(): UseMutationResult<Member, CapxulError$1, AcceptInvitationArgs>;
515
+ declare function useUpdateMemberRole(): UseMutationResult<Member, CapxulError$1, UpdateMemberRoleArgs>;
516
+ declare function useRevokeMember(): UseMutationResult<Member, CapxulError$1, RevokeMemberArgs>;
517
+ declare function useRemoveMember(): UseMutationResult<void, CapxulError$1, RemoveMemberArgs>;
518
+ declare function useResendInvitation(): UseMutationResult<MemberInviteResponse, CapxulError$1, ResendInvitationArgs>;
519
+
520
+ /**
521
+ * Lowercased, shape-validated email address. Brand prevents swapping
522
+ * with `phoneNumber`, `username`, or other string identifiers (per
523
+ * `CANON.md` §4.54 and `sdk-surface.md` §5h).
524
+ */
525
+ type Email = string & {
526
+ readonly __capxulEmailBrand: "Email";
527
+ };
528
+ /**
529
+ * Public Capxul username. 3–30 chars, letter-first, lowercased,
530
+ * remaining chars from `[a-z0-9_-]` (per `CANON.md` §4.54 and
531
+ * `sdk-surface.md` §5h). Constructor lowercases before validating so
532
+ * mixed-case input canonicalizes cleanly when the first char is a
533
+ * letter; purely invalid shapes (too short, illegal chars, digit-first)
534
+ * still throw.
535
+ */
536
+ type Username = string & {
537
+ readonly __capxulUsernameBrand: "Username";
538
+ };
539
+
540
+ type User = {
541
+ readonly account: Account;
542
+ readonly username: Username;
543
+ readonly safe: Safe;
544
+ readonly session: Session;
545
+ };
546
+ type AuthState = "idle" | "sendingOtp" | "awaitingOtp" | "bootstrapping" | "authenticated" | "error";
547
+ type UseAuthResult = {
548
+ readonly state: AuthState;
549
+ readonly user: User | null;
550
+ readonly error: Error | null;
551
+ readonly signIn: (email: string) => Promise<void>;
552
+ readonly verifyOtp: (email: string, otp: string) => Promise<Session>;
553
+ readonly signOut: () => Promise<void>;
554
+ };
555
+ type UseAuthOptions = {
556
+ /** Optional external signer to use during bootstrap instead of auto-provisioning. */
557
+ readonly signer?: Account$1;
558
+ };
559
+ /**
560
+ * Canonical auth hook — replaces `useAuthFlow` and `useAuthBootstrapFlow`.
561
+ *
562
+ * Reactive state (`state`, `user`, `error`) is suitable for UI
563
+ * observers; `signIn`, `verifyOtp`, and `signOut` return promises so
564
+ * the reference CLI can drive the flow imperatively.
565
+ *
566
+ * Auto-provisions a fresh local-private-key signer via
567
+ * `SignerProvisioner` when the backend signals `bootstrap_required`.
568
+ * Pass an optional `signer` to override auto-provisioning (used by
569
+ * test harnesses that pre-build a deterministic actor).
570
+ */
571
+ declare function useAuth(options?: UseAuthOptions): UseAuthResult;
572
+
573
+ /**
574
+ * @deprecated Use `useAuth()` instead. `useAuthFlow` will be removed
575
+ * in a future release.
576
+ */
447
577
  declare function useAuthFlow(): {
448
578
  readonly snapshot: xstate.MachineSnapshot<any, any, any, any, any, any, any, any>;
449
579
  readonly send: (event: any) => void;
450
580
  };
581
+ /**
582
+ * @deprecated Use `useAuth()` instead. `useAuthBootstrapFlow` will be
583
+ * removed in a future release.
584
+ */
585
+ declare function useAuthBootstrapFlow(): {
586
+ readonly snapshot: xstate.MachineSnapshot<_capxul_sdk.AuthBootstrapFlowContext, {
587
+ readonly type: "ENTER_EMAIL";
588
+ readonly email: Email;
589
+ } | {
590
+ readonly type: "REQUEST_OTP";
591
+ } | {
592
+ readonly type: "ENTER_OTP";
593
+ readonly code: string;
594
+ } | {
595
+ readonly type: "VERIFY_OTP";
596
+ } | {
597
+ readonly type: "ENTER_USERNAME";
598
+ readonly username: Username;
599
+ } | {
600
+ readonly type: "COMPLETE_BOOTSTRAP";
601
+ } | {
602
+ readonly type: "BACK";
603
+ } | {
604
+ readonly type: "RESET";
605
+ } | {
606
+ readonly type: "SIGN_OUT";
607
+ }, {
608
+ [x: string]: xstate.ActorRefFromLogic<xstate.PromiseActorLogic<void, void, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<_capxul_sdk.CompleteBootstrapResult, {
609
+ bootstrapToken: _capxul_sdk.AuthBootstrapToken;
610
+ username: Username;
611
+ }, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<void, {
612
+ email: Email;
613
+ }, xstate.EventObject>> | xstate.ActorRefFromLogic<xstate.PromiseActorLogic<_capxul_sdk.VerifyOtpResult, {
614
+ email: Email;
615
+ code: string;
616
+ }, xstate.EventObject>> | undefined;
617
+ }, "email" | "error" | "bootstrap_required" | "authenticated" | "sending_otp" | "otp_requested" | "signing_out" | "verifying_otp" | "completing_bootstrap", string, xstate.NonReducibleUnknown, xstate.MetaObject, {
618
+ id: "authBootstrap";
619
+ states: {
620
+ readonly email: {};
621
+ readonly sending_otp: {};
622
+ readonly otp_requested: {};
623
+ readonly verifying_otp: {};
624
+ readonly bootstrap_required: {};
625
+ readonly completing_bootstrap: {};
626
+ readonly authenticated: {};
627
+ readonly signing_out: {};
628
+ readonly error: {};
629
+ };
630
+ }>;
631
+ readonly send: (event: {
632
+ readonly type: "ENTER_EMAIL";
633
+ readonly email: Email;
634
+ } | {
635
+ readonly type: "REQUEST_OTP";
636
+ } | {
637
+ readonly type: "ENTER_OTP";
638
+ readonly code: string;
639
+ } | {
640
+ readonly type: "VERIFY_OTP";
641
+ } | {
642
+ readonly type: "ENTER_USERNAME";
643
+ readonly username: Username;
644
+ } | {
645
+ readonly type: "COMPLETE_BOOTSTRAP";
646
+ } | {
647
+ readonly type: "BACK";
648
+ } | {
649
+ readonly type: "RESET";
650
+ } | {
651
+ readonly type: "SIGN_OUT";
652
+ }) => void;
653
+ };
451
654
  declare function useOnboardingFlow(): {
452
655
  readonly snapshot: xstate.MachineSnapshot<any, any, any, any, any, any, any, any>;
453
656
  readonly send: (event: any) => void;
@@ -494,8 +697,6 @@ type CapxulConnectorSession = {
494
697
  readonly connectorId: string;
495
698
  readonly connectorKind: CapxulConnectorKind;
496
699
  readonly signerAddress: string;
497
- readonly safeAddress?: string;
498
- readonly signerProvider?: LocalPrivateKeySignerProvider;
499
700
  };
500
701
  type CapxulConnector = {
501
702
  readonly id: string;
@@ -511,7 +712,6 @@ type InjectedConnectorOptions = {
511
712
  };
512
713
  type LocalPrivateKeyConnectorOptions = {
513
714
  readonly privateKey: `0x${string}`;
514
- readonly safeAddress: string;
515
715
  readonly id?: string;
516
716
  readonly name?: string;
517
717
  };
@@ -528,14 +728,13 @@ declare function injectedConnector(options?: InjectedConnectorOptions): CapxulCo
528
728
  /**
529
729
  * Resolve a signer from a local private key (dev / e2e harness path).
530
730
  *
531
- * Validates the private key shape (`0x` + 64 hex chars) and the
532
- * required `safeAddress` synchronously at factory time so misconfig
533
- * surfaces before any UI flow advances. Per-call `connect()` is pure
534
- * computation — `privateKeyToAccount` derives the address from the
535
- * key with no I/O.
731
+ * Validates the private key shape (`0x` + 64 hex chars) synchronously
732
+ * at factory time so misconfig surfaces before any UI flow advances.
733
+ * Per-call `connect()` is pure computation — `privateKeyToAccount`
734
+ * derives the address from the key with no I/O.
536
735
  *
537
736
  * Throws `Errors.invalidInput(...)` on bad inputs.
538
737
  */
539
738
  declare function localPrivateKeyConnector(options: LocalPrivateKeyConnectorOptions): CapxulConnector;
540
739
 
541
- 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, 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 };
740
+ export { type AuthState, 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 UseAuthOptions, type UseAuthResult, type UseBalanceLedgerEntryArgs, type UseExternalAccountArgs, type UseMemberArgs, type UseTokenTransferArgs, type User, type VirtualAccountsFilters, type VirtualCardsFilters, type WithdrawalsFilters, createCapxulConfig, injectedConnector, localPrivateKeyConnector, useAcceptInvitation, useAccount, useAccountBalanceLedger, useApiKey, useApiKeys, useAuth, useAuthBootstrapFlow, useAuthFlow, useBalanceLedger, useBalanceLedgerEntry, useCapxul, useCapxulStatus, useDocument, useDocuments, useExternalAccount, useExternalAccounts, useInviteMember, useKycProfile, useMe, useMember, useMembers, useOnboardingFlow, useOperation, useOrgBalanceLedger, useOrgDocuments, useOrgPayments, useOrgTransfers, useOrgWithdrawals, useOrganization, useOrganizations, usePayment, usePayments, useProvisioningFlow, useRemoveMember, useResendInvitation, useRevokeMember, useSafe, useSubAccount, useSubAccounts, useTokenTransfer, useTokenTransfers, useTransfer, useTransfers, useTreasury, useUpdateMemberRole, useVirtualAccount, useVirtualAccounts, useVirtualCard, useVirtualCards, useWebhookEndpoint, useWebhookEndpoints, useWebhookEvent, useWithdrawal, useWithdrawals };