@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/CHANGELOG.md CHANGED
@@ -1,5 +1,122 @@
1
1
  # @capxul/sdk-react
2
2
 
3
+ ## 0.2.0-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5b99a9b]
8
+ - @capxul/sdk@0.2.0-alpha.3
9
+
10
+ ## 0.2.0-alpha.2
11
+
12
+ ### Minor Changes
13
+
14
+ - 995383f: Epic 660: Unified auth surface
15
+ - Introduces AuthService promise-based auth API replacing the imperative capxul.auth.\* tuple interface
16
+ - Adds SignerProvisioner for deterministic Safe v1.4.1 address derivation from viem signers
17
+ - Adds useAuth() React hook with reactive state + promise-based methods
18
+ - Deprecates useAuthFlow and useAuthBootstrapFlow in favor of useAuth()
19
+ - Migrates reference CLI auth commands (send-otp, verify-otp, signout) to useAuth()
20
+ - Migrates test surfaces: walkthroughs, type tests, e2e harness signup, lazy-dx provider
21
+ - Adds @repo/safe-derive workspace package for Safe address derivation utilities
22
+ - Aligns CapxulConfig.data to \_data with internal SDK transport ownership (Epic 652)
23
+ - Pins esbuild to 0.25.12 to fix binary-version skew in fresh worktrees
24
+
25
+ - 2ef4ee3: Reshape the organizations members surface around a single Membership entity
26
+ with a status lifecycle (`pending | active | revoked | expired`).
27
+ - Replaces the prior invitation/membership split (which produced a phantom
28
+ `MemberInvitation` type that never compiled) with a single `Member` type
29
+ exposing `status`, `email`, `acceptedAt`, `expiresAt`, and `resentCount`.
30
+ - New methods on `organizations.members.*`: `accept(token)`, `revoke(memberId)`,
31
+ `resend(memberId)`. `invite()` now returns a `MemberInviteResponse`
32
+ containing the raw invite token (returned once).
33
+ - Auto-accepts pending invitations on first sign-in for the matching email
34
+ via a BetterAuth post-signup hook.
35
+ - Nightly Convex cron expires overdue pending invitations.
36
+
37
+ Public type changes:
38
+ - Removed: `MemberInvitation` (was never exported; type didn't compile).
39
+ - Added: `MembershipStatus`, `MemberInviteResponse`.
40
+ - Updated: `Member` shape — see SDK reference for the full delta.
41
+
42
+ React hooks:
43
+ - New: `useAcceptInvitation`, `useRevokeMember`, `useResendInvitation`.
44
+ - Updated: `useInviteMember` returns `MemberInviteResponse` (was returning a
45
+ type that didn't exist).
46
+
47
+ Reference CLI:
48
+ - New commands: `org members invite`, `org members list`, `org members retrieve`,
49
+ `org members accept`, `org members updateRole`, `org members revoke`,
50
+ `org members remove`, `org members resend`.
51
+
52
+ - c7146bf: **Transport ownership (#656):** The SDK now owns construction of the
53
+ authenticated `ConvexHttpClient`. Consumers no longer wire `data` manually
54
+ or provide `auth.createDataClient`. After `verifyOtp` exchanges a Convex
55
+ JWT, the SDK builds the default data client internally via
56
+ `createDefaultDataClient` and stores it on `config._data`.
57
+ - `CapxulConfig.data` renamed to `_data` (internal test seam).
58
+ - `CapxulAuthConfig.createDataClient` removed from public types.
59
+ - `convex` moved from `peerDependencies` to `dependencies`.
60
+
61
+ ### Patch Changes
62
+
63
+ - d252aa7: Widen the published React peer dependency to `>=18.2.0 <20` so React 18 consumers, including the Ink reference proof app, can install the alpha SDK without peer conflicts.
64
+ - Updated dependencies [995383f]
65
+ - Updated dependencies [2ef4ee3]
66
+ - Updated dependencies [c7146bf]
67
+ - @capxul/sdk@0.2.0-alpha.2
68
+
69
+ ## 0.2.0-alpha.1
70
+
71
+ ### Minor Changes
72
+
73
+ - **Transport ownership (#656):** Remove the `auth.createDataClient`
74
+ callback from `CapxulProvider`. The React provider now passes its
75
+ singleton data client via `CapxulConfig._data` and lets the SDK own
76
+ runtime construction after OTP verification.
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies
81
+ - @capxul/sdk@0.2.0-alpha.1
82
+
83
+ ## 0.1.0-alpha.12
84
+
85
+ ### Minor Changes
86
+
87
+ - Publish the post-alpha.11 SDK and React SDK surface: funds v1 sub-account
88
+ runtime coverage, React hook wiring, payments list support, and the latest
89
+ generated Convex API snapshots used by current alpha consumers.
90
+
91
+ Note: alpha.10 and alpha.11 were intermediate runner artifacts from the
92
+ prior release pipeline (manual `package.json` bumps that were never folded
93
+ back into the repo). alpha.12 reconciles `package.json`, the changesets
94
+ state, and npm to a single consistent version.
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies
99
+ - @capxul/sdk@0.1.0-alpha.12
100
+
101
+ ## 0.1.0-alpha.9
102
+
103
+ ### Minor Changes
104
+
105
+ - Add the canonical auth bootstrap flow.
106
+
107
+ `verifyOtp()` now resolves a verified email session into either an
108
+ `existing_member` identity or a `bootstrap_required` continuation. New and
109
+ incomplete members continue through `completeBootstrap()`, which validates a
110
+ server-issued bootstrap token, claims the username, provisions the account/Safe
111
+ through the backend bootstrap path, and returns the authenticated product
112
+ identity. The React SDK adds `useAuthBootstrapFlow()` as the typed first-run
113
+ flow wrapper.
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies
118
+ - @capxul/sdk@0.1.0-alpha.9
119
+
3
120
  ## 0.1.0-alpha.8
4
121
 
5
122
  ### Minor Changes
package/README.md CHANGED
@@ -152,7 +152,7 @@ cookies, or provider payloads. Proof output reports only
152
152
  | Documents | `useDocument`, `useDocuments`, `useOrgDocuments` |
153
153
  | Sub-accounts / virtual | `useSubAccount`, `useSubAccounts`, `useVirtualAccount`, `useVirtualAccounts`, `useVirtualCard`, `useVirtualCards` |
154
154
  | Settings | `useApiKey`, `useApiKeys`, `useWebhookEndpoint`, `useWebhookEndpoints`, `useWebhookEvent`, `useExternalAccount`, `useExternalAccounts`, `useBalanceLedgerEntry`, `useBalanceLedger` |
155
- | KYC / KYB | `useKycProfile`, `useKybProfile` |
155
+ | KYC / KYB | `useKycProfile` |
156
156
  | Treasury | `useTreasury`, `useSafe` |
157
157
  | Operations | `useOperation` (correlation join key per CANON.md §3.3) |
158
158
  | Lifecycle | `useCapxulStatus` |