@capxul/sdk 0.1.0-alpha.1 → 0.1.0-alpha.2

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,25 @@
1
1
  # @capxul/sdk
2
2
 
3
+ ## 0.1.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `convex` as a peer dependency.
8
+
9
+ `@capxul/sdk`'s bundled `_generated/api` snapshot calls
10
+ `anyApi` / `componentsGeneric` from `convex/server` at runtime — they
11
+ are not just types — and tsup correctly externalizes `convex` /
12
+ `convex/server` / `convex/react` so the consumer's own Convex install
13
+ is reused. The peer was missing from the published manifest, so
14
+ `require('@capxul/sdk')` failed with `Cannot find module 'convex/server'`
15
+ in any spike that hadn't already installed `convex`.
16
+
17
+ `@capxul/sdk-react` mirrors the peer because its bundle re-exports
18
+ flow-machine constructors from `@capxul/sdk` and may transitively
19
+ pull in the same module.
20
+
21
+ Caught during alpha.1 spike-install verification.
22
+
3
23
  ## 0.1.0-alpha.1
4
24
 
5
25
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -119,7 +119,7 @@ declare function createAuthFlowMachine(client: CapxulClient): xstate.StateMachin
119
119
  } | {
120
120
  type: "trackSignedOut";
121
121
  params: unknown;
122
- }, never, never, "error" | "idle" | "sending_otp" | "otp_requested" | "verifying" | "authenticated" | "signing_out", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
122
+ }, never, never, "idle" | "authenticated" | "error" | "sending_otp" | "otp_requested" | "verifying" | "signing_out", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
123
123
  id: "auth";
124
124
  states: {
125
125
  readonly idle: {};
@@ -219,7 +219,7 @@ declare function createProvisioningMachine(client: CapxulClient): xstate.StateMa
219
219
  }, {
220
220
  type: "hasInput";
221
221
  params: unknown;
222
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
222
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
223
223
  readonly input: AccountProvisionPersonalInput;
224
224
  }, {
225
225
  readonly account: Account;
@@ -327,7 +327,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
327
327
  }, {
328
328
  type: "hasInput";
329
329
  params: unknown;
330
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
330
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
331
331
  readonly input: AccountProvisionPersonalInput;
332
332
  }, {
333
333
  readonly account: Account;
@@ -369,7 +369,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
369
369
  }, {
370
370
  type: "hasInput";
371
371
  params: unknown;
372
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
372
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
373
373
  readonly input: AccountProvisionPersonalInput;
374
374
  }, {
375
375
  readonly account: Account;
@@ -439,7 +439,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
439
439
  } | {
440
440
  type: "childReportedError";
441
441
  params: unknown;
442
- }, never, "error" | "provisioning" | "profile" | "complete" | "action_required", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
442
+ }, never, "action_required" | "provisioning" | "error" | "profile" | "complete", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
443
443
  id: "onboarding";
444
444
  states: {
445
445
  readonly profile: {};
package/dist/index.d.ts CHANGED
@@ -119,7 +119,7 @@ declare function createAuthFlowMachine(client: CapxulClient): xstate.StateMachin
119
119
  } | {
120
120
  type: "trackSignedOut";
121
121
  params: unknown;
122
- }, never, never, "error" | "idle" | "sending_otp" | "otp_requested" | "verifying" | "authenticated" | "signing_out", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
122
+ }, never, never, "idle" | "authenticated" | "error" | "sending_otp" | "otp_requested" | "verifying" | "signing_out", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
123
123
  id: "auth";
124
124
  states: {
125
125
  readonly idle: {};
@@ -219,7 +219,7 @@ declare function createProvisioningMachine(client: CapxulClient): xstate.StateMa
219
219
  }, {
220
220
  type: "hasInput";
221
221
  params: unknown;
222
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
222
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
223
223
  readonly input: AccountProvisionPersonalInput;
224
224
  }, {
225
225
  readonly account: Account;
@@ -327,7 +327,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
327
327
  }, {
328
328
  type: "hasInput";
329
329
  params: unknown;
330
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
330
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
331
331
  readonly input: AccountProvisionPersonalInput;
332
332
  }, {
333
333
  readonly account: Account;
@@ -369,7 +369,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
369
369
  }, {
370
370
  type: "hasInput";
371
371
  params: unknown;
372
- }, never, "done" | "error" | "idle" | "starting" | "running", string, {
372
+ }, never, "idle" | "error" | "done" | "starting" | "running", string, {
373
373
  readonly input: AccountProvisionPersonalInput;
374
374
  }, {
375
375
  readonly account: Account;
@@ -439,7 +439,7 @@ declare function createOnboardingFlowMachine(client: CapxulClient): xstate.State
439
439
  } | {
440
440
  type: "childReportedError";
441
441
  params: unknown;
442
- }, never, "error" | "provisioning" | "profile" | "complete" | "action_required", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
442
+ }, never, "action_required" | "provisioning" | "error" | "profile" | "complete", string, xstate.NonReducibleUnknown, xstate.NonReducibleUnknown, xstate.EventObject, xstate.MetaObject, {
443
443
  id: "onboarding";
444
444
  states: {
445
445
  readonly profile: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capxul/sdk",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Headless TypeScript client for Capxul's /v1/* HTTP contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -58,6 +58,7 @@
58
58
  "xstate": "^5"
59
59
  },
60
60
  "peerDependencies": {
61
+ "convex": ">=1.0.0",
61
62
  "permissionless": ">=0.3.4 <0.4.0",
62
63
  "viem": ">=2.0.0"
63
64
  },