@capxul/sdk 3.1.0 → 3.2.0
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/README.md +15 -9
- package/dist/{OAuthBearerAuthClient-DfS4QOg7.mjs → OAuthBearerAuthClient-8F_kyVP5.mjs} +1 -1
- package/dist/{OAuthBearerAuthClient-BxTiv8dg.d.mts → OAuthBearerAuthClient-CsOgeeZa.d.mts} +1 -1
- package/dist/{create-capxul-client-dk67qjlK.mjs → create-capxul-client-BCq08ppe.mjs} +6199 -5682
- package/dist/index.d.mts +424 -5
- package/dist/index.mjs +27 -11
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.mjs +2 -2
- package/dist/{observation-B3PCugGC.d.mts → observation-B76zFxd6.d.mts} +34 -3
- package/dist/{signer-BpjdawiY.d.mts → signer-DOqb8M1Y.d.mts} +6 -6
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +4 -4
- package/package.json +3 -3
- package/dist/{clock-m_aHLaNm.mjs → clock-CWpcQlLy.mjs} +1 -1
package/README.md
CHANGED
|
@@ -90,14 +90,20 @@ governed PostHog ingest origin, public project token, and environment. The SDK
|
|
|
90
90
|
derives endpoints, service, producer, and version. Missing or invalid policy
|
|
91
91
|
disables engineering export without failing client creation.
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
Person onboarding is one Core SDK journey. It requires a normalized, globally
|
|
94
|
+
unique username before it writes the Profile or starts Account setup:
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
const onboarded = await client.onboarding.completePerson({
|
|
98
|
+
displayName: "Ada Lovelace",
|
|
99
|
+
country: "GH",
|
|
100
|
+
username: "ada_lovelace",
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The backend remains the authority for reserved names and global uniqueness.
|
|
105
|
+
The method returns only after the client requirement reaches a ready Account.
|
|
106
|
+
The React frontend does not use this journey yet.
|
|
101
107
|
|
|
102
108
|
## Published entry points
|
|
103
109
|
|
|
@@ -105,7 +111,7 @@ The packed npm package exposes only:
|
|
|
105
111
|
|
|
106
112
|
- `@capxul/sdk` — the client factory, public method and value types, signers,
|
|
107
113
|
host observability helper, and immutable Base Sepolia Payment contract
|
|
108
|
-
identity.
|
|
114
|
+
identity. It also re-exports the canonical Capxul operation vocabulary.
|
|
109
115
|
- `@capxul/sdk/node` — Node-only signer and runtime helpers.
|
|
110
116
|
- `@capxul/sdk/testing` — the real identity runtime assembled over
|
|
111
117
|
deterministic in-memory ports, with OTP, advance-only clock, transition,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as toEmail, I as toEpochMs, K as toSessionToken, L as toEpochSeconds, R as toJwtToken, Z as Errors, c as ClockError, k as toAuthUserId, l as ClockPortTag, t as readClockNow, u as authClientPortFromPromiseAdapter } from "./clock-
|
|
1
|
+
import { F as toEmail, I as toEpochMs, K as toSessionToken, L as toEpochSeconds, R as toJwtToken, Z as Errors, c as ClockError, k as toAuthUserId, l as ClockPortTag, t as readClockNow, u as authClientPortFromPromiseAdapter } from "./clock-CWpcQlLy.mjs";
|
|
2
2
|
import { Effect, Layer } from "effect";
|
|
3
3
|
//#region src/adapters/clock/SystemClockAdapter.ts
|
|
4
4
|
var SystemClockAdapter = class {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ClockPort, v as AuthClientPort } from "./signer-
|
|
1
|
+
import { _ as ClockPort, v as AuthClientPort } from "./signer-DOqb8M1Y.mjs";
|
|
2
2
|
//#region src/adapters/auth-client/OAuthBearerAuthClient.d.ts
|
|
3
3
|
interface OAuthBearerAuthClientInput {
|
|
4
4
|
/** The exchange endpoint: `{authBaseUrl}/api/auth/agent/exchange`. */
|