@axiom-lattice/protocols 7.1.0 → 7.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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +87 -0
- package/dist/index.d.mts +526 -2
- package/dist/index.d.ts +526 -2
- package/dist/index.js +135 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +122 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AuthProviderProtocol.ts +80 -0
- package/src/InviteLinkStoreProtocol.ts +59 -0
- package/src/OidcIdentityClaimStoreProtocol.ts +117 -0
- package/src/OidcProviderConfigStoreProtocol.ts +84 -0
- package/src/PlatformInvitationStoreProtocol.ts +60 -0
- package/src/PlatformMemberStoreProtocol.ts +23 -0
- package/src/PlatformSettingsProtocol.ts +151 -0
- package/src/SandboxPluginProtocol.ts +1 -1
- package/src/UserExternalIdentityStoreProtocol.ts +53 -0
- package/src/__tests__/AuthProviderProtocol.test.ts +20 -0
- package/src/index.ts +8 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/protocols@7.
|
|
2
|
+
> @axiom-lattice/protocols@7.2.0 build /home/runner/work/agentic/agentic/packages/protocols
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m52.67 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m242.62 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 1025ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m59.81 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m247.44 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 1045ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 21933ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m311.30 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m311.30 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# @axiom-lattice/protocols
|
|
2
2
|
|
|
3
|
+
## 7.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f29edad: Add the Admin Center platform-management surface, durable platform settings,
|
|
8
|
+
opaque invite links, enterprise SSO follow-ups, and domain branding.
|
|
9
|
+
|
|
10
|
+
- **Admin Center:** grouped navigation (Access/Tenancy/Identity/Settings),
|
|
11
|
+
full-width responsive shell, Overview attention cards + health + stats,
|
|
12
|
+
redesigned People, Platform Roles, Invite Links, Tenants, Tenant Members,
|
|
13
|
+
OIDC Providers, and Settings pages with shared Admin Center primitives.
|
|
14
|
+
Settings is split into three direct writable menu entries (Authentication,
|
|
15
|
+
Rate Limits & Quotas, Branding) instead of an in-page tab set; the read-only
|
|
16
|
+
environment view lives in Overview.
|
|
17
|
+
- **Platform settings:** PostgreSQL-backed auth/invite/rate-limit/quota/branding
|
|
18
|
+
settings with env fallback, version CAS, outbox invalidation, 30s refresh,
|
|
19
|
+
read-only Overview environment, and multi-replica readiness.
|
|
20
|
+
- **Invite links:** opaque, encrypted-at-rest links with expiry/max uses/revoke;
|
|
21
|
+
platform role links always require admin approval, tenant member auto-join
|
|
22
|
+
only with email-bound IdP-verified email; revoke cancels pending claims.
|
|
23
|
+
- **SSO follow-ups:** optional default tenant, private-host allowlists, email
|
|
24
|
+
completion claims, pending SSO review, and SSO avatar metadata.
|
|
25
|
+
- **Domain branding:** platform default + exact-host domain overrides, public
|
|
26
|
+
`GET /api/branding`, Admin Center Branding tab, login/register/invite brand
|
|
27
|
+
application, workspace domain theme inheritance, and tenant primary-color
|
|
28
|
+
override.
|
|
29
|
+
- **Security hardening:** platform guards fail closed; email-less completion and
|
|
30
|
+
public branding/invite routes are explicitly public; owner fallback/owner
|
|
31
|
+
target protections; last-owner checks; SSRF allowlist and metadata rejection;
|
|
32
|
+
rate-limit precedence; claim approval leases/rollback; avatar URL validation.
|
|
33
|
+
|
|
34
|
+
- 0ad828b: Add generic OIDC console login with Azure Entra ID support, external identity
|
|
35
|
+
binding, JIT pending users, platform roles, a separate Platform Admin app, and
|
|
36
|
+
platform-scoped provider configuration.
|
|
37
|
+
|
|
38
|
+
- `@axiom-lattice/auth-oidc`: authorization-code + PKCE + nonce via
|
|
39
|
+
`openid-client` v6, Azure `oid`/`sub` claim mapping, signed state cookie,
|
|
40
|
+
endpoint SSRF validation, config parsing, and per-provider `providerId` state.
|
|
41
|
+
- `@axiom-lattice/protocols` / `@axiom-lattice/core`: auth provider and external
|
|
42
|
+
identity store contracts, provider registry, identity mapping (issuer-scoped
|
|
43
|
+
keys, verified-email-only auto-link, JIT pending), in-memory identity store,
|
|
44
|
+
the OIDC provider config store contract + encrypted in-memory store, and the
|
|
45
|
+
`PlatformMemberStore` contract + in-memory store with `owner`/`admin`/
|
|
46
|
+
`auditor` roles.
|
|
47
|
+
- `@axiom-lattice/local-stores` / `@axiom-lattice/pg-stores`: external identity,
|
|
48
|
+
OIDC provider config, and platform member stores; PostgreSQL migrations v209
|
|
49
|
+
(`lattice_user_identities`), v210 (`lower(email)` unique index), v211
|
|
50
|
+
(`lattice_oidc_provider_configs`, encrypted client secret), and v212
|
|
51
|
+
(`lattice_platform_members`).
|
|
52
|
+
- `@axiom-lattice/gateway`: multi-provider OIDC routes, one-time 60-second
|
|
53
|
+
handoff/exchange, platform-role CRUD/test APIs for store providers, runtime
|
|
54
|
+
registry with env `oidc` fallback, `PlatformBootstrapService` +
|
|
55
|
+
`PlatformAccessService` (owner/admin/auditor) replacing env-only checks on
|
|
56
|
+
approval/user/tenant/OIDC surfaces, `/api/platform/*` member and tenant
|
|
57
|
+
assignment APIs, OIDC rate limits, and fail-closed deployment checks.
|
|
58
|
+
- `@axiom-lattice/client-sdk`: `client.oidcProviders` list/create/update/
|
|
59
|
+
delete/test/testStored and `client.platform` me/members/tenant-assignment
|
|
60
|
+
methods with types.
|
|
61
|
+
- `@axiom-lattice/react-sdk`: provider discovery, SSO button labeled with the
|
|
62
|
+
provider display name, `/auth/callback` bootstrap, pending/error notices, the
|
|
63
|
+
write-only OIDC provider panel, and the separate `/platform-admin` app with
|
|
64
|
+
Overview, Platform Users, Tenants, Tenant Assignments, and OIDC Providers.
|
|
65
|
+
OIDC Providers is removed from the tenant workspace menu.
|
|
66
|
+
|
|
67
|
+
- 0ad828b: SSO-only deployments and platform invitations.
|
|
68
|
+
|
|
69
|
+
- `@axiom-lattice/gateway`: `AUTH_LOCAL_ENABLED` / `AUTH_BREAK_GLASS_EMAILS`
|
|
70
|
+
disable password login, registration, and password changes while keeping an
|
|
71
|
+
audited, env-only break-glass escape hatch. `PlatformSsoBootstrapService`
|
|
72
|
+
claims the first platform owner from a verified SSO login (issuer + subject >
|
|
73
|
+
group > email) with no local password, serialized by the
|
|
74
|
+
`platform-bootstrap` lease. `PlatformInvitationService` invites normalized
|
|
75
|
+
emails: existing active users are granted immediately, everyone else gets a
|
|
76
|
+
pending invitation claimed on the first verified SSO login before identity
|
|
77
|
+
mapping (consume-before-grant, per-email lease, owner-only owner invitations,
|
|
78
|
+
`PLATFORM_INVITATION_TRUST_EMAIL` off by default).
|
|
79
|
+
- `@axiom-lattice/protocols` / `@axiom-lattice/core` /
|
|
80
|
+
`@axiom-lattice/local-stores` / `@axiom-lattice/pg-stores`: platform
|
|
81
|
+
invitation store contract + InMemory/Local/PostgreSQL implementations and PG
|
|
82
|
+
migration v213 (`lattice_platform_invitations`).
|
|
83
|
+
- `@axiom-lattice/client-sdk`: `client.platform.listInvitations()` /
|
|
84
|
+
`revokeInvitation(email)` and the `{ member?, invitation? }` grant result.
|
|
85
|
+
- `@axiom-lattice/react-sdk`: Platform Users loads and revokes pending
|
|
86
|
+
invitations, distinguishes "invited" from "granted", exposes SSO-only /
|
|
87
|
+
break-glass login states, and keeps owner invitations owner-only. Invited
|
|
88
|
+
users need no tenant membership to use `/platform-admin`.
|
|
89
|
+
|
|
3
90
|
## 7.1.0
|
|
4
91
|
|
|
5
92
|
### Minor Changes
|