@atlasauth/types 0.1.0 → 0.3.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/CHANGELOG.md +32 -0
- package/dist/appearance.d.ts +4 -0
- package/dist/resources.d.ts +6 -0
- package/dist/session.d.ts +8 -0
- package/dist/webhooks.d.ts +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @atlasauth/types changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `User.version` (optional): strictly increases with every change to the user; user webhook payloads carry the same value.
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `WebhookEvent` gains `api_key.created`, `api_key.updated` and
|
|
14
|
+
`api_key.limit_reached`.
|
|
15
|
+
- `WebhookEvent` gains `entitlement.override.created`,
|
|
16
|
+
`entitlement.override.deleted` and `entitlement.override.expired`, which the
|
|
17
|
+
server already emitted but the union was missing.
|
|
18
|
+
- `DesignTokens` gains optional `colorTextOnPrimary` and `colorFocusRing` (mirrors `@atlasauth/react` 0.5.0).
|
|
19
|
+
|
|
20
|
+
## 0.1.0
|
|
21
|
+
|
|
22
|
+
First published release.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- Dependency-free, runtime-free shared TypeScript types for Atlas integrators; every export is type-only, so importing them adds nothing to a bundle.
|
|
26
|
+
- Session: `SessionClaims`, including the `orgs` entries' optional `settings_partial` flag, set when some organization settings could not be included in the token and should be fetched instead.
|
|
27
|
+
- Authorization: `AuthzClaims`, `ProtectCondition`, `ProtectOutcome`, `ProtectReason`.
|
|
28
|
+
- Verification: `VerifiedSessionClaims`, `AuthorizedSession`, `VerifyResult`.
|
|
29
|
+
- Backend API resources: `User`, `EmailAddress`, `Session`, `Organization`, `OrganizationMembership`, `Invitation`, `ApiKey`, `ApiKeySubjectType`, `ApiKeyVerification`, and the `Metadata`, `CursorPage`, `DataList`, `CursorParams` and `DeletedObject` envelopes.
|
|
30
|
+
- Webhooks: `WebhookEvent`, `WebhookPayload`, `WebhookVerifyResult`, `WebhookVerifyFailure`.
|
|
31
|
+
- Theming and localization: `Appearance`, `DesignTokens`, `ElementKey`, `LocalizationResource`, `Localization`, `DeepPartial`.
|
|
32
|
+
|
package/dist/appearance.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export interface DesignTokens {
|
|
|
16
16
|
borderRadius?: string;
|
|
17
17
|
fontFamily?: string;
|
|
18
18
|
spacingUnit?: string;
|
|
19
|
+
/** Text/icon colour on a `colorPrimary` fill. Defaults to a contrast-picked white or near-black. */
|
|
20
|
+
colorTextOnPrimary?: string;
|
|
21
|
+
/** The keyboard focus ring (solid outline). Defaults to `colorPrimary`. */
|
|
22
|
+
colorFocusRing?: string;
|
|
19
23
|
}
|
|
20
24
|
/** Every element a customer may target. Named for what it IS, not where it sits. */
|
|
21
25
|
export type ElementKey = 'root' | 'card' | 'headerTitle' | 'headerSubtitle' | 'formField' | 'formFieldLabel' | 'formFieldInput' | 'formFieldError' | 'formButtonPrimary' | 'formButtonSecondary' | 'socialButton' | 'dividerText' | 'footerAction' | 'avatar' | 'menu' | 'menuItem' | 'badge';
|
package/dist/resources.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ export interface User {
|
|
|
51
51
|
last_sign_in_at: number | null;
|
|
52
52
|
created_at: number;
|
|
53
53
|
updated_at: number;
|
|
54
|
+
/**
|
|
55
|
+
* Strictly increases with every change to the user; user webhook payloads
|
|
56
|
+
* carry the same value. Apply an update only if its version is higher than
|
|
57
|
+
* the one you hold. (Absent from servers older than this field.)
|
|
58
|
+
*/
|
|
59
|
+
version?: number;
|
|
54
60
|
}
|
|
55
61
|
export interface EmailAddress {
|
|
56
62
|
object: 'email_address';
|
package/dist/session.d.ts
CHANGED
|
@@ -60,6 +60,14 @@ export interface SessionClaims {
|
|
|
60
60
|
role: string;
|
|
61
61
|
plan?: string;
|
|
62
62
|
pub?: Record<string, unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* §round-8 #2 set to `true` when an allowlisted settings key that IS set for
|
|
65
|
+
* this org could not be inlined (non-primitive, or over the token byte budget).
|
|
66
|
+
* It marks the inline settings subset as INCOMPLETE — do not treat a key's
|
|
67
|
+
* absence as "unset"; fetch the authoritative settings. Absent when nothing was
|
|
68
|
+
* dropped.
|
|
69
|
+
*/
|
|
70
|
+
settings_partial?: true;
|
|
63
71
|
}>;
|
|
64
72
|
/**
|
|
65
73
|
* §P1-6 the structured billing entitlement — `{ plan, features, limits }` —
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* §12.1 event catalog — the exact union off core's `WEBHOOK_EVENTS`.
|
|
12
12
|
*/
|
|
13
|
-
export type WebhookEvent = 'user.created' | 'user.updated' | 'user.deleted' | 'user.banned' | 'user.unbanned' | 'user.locked' | 'user.deactivated' | 'user.graduated' | 'policy.imposed' | 'user.suspended' | 'user.unsuspended' | 'session.created' | 'session.revoked' | 'session.ended' | 'session.pending' | 'session.removed' | 'grant.revoked' | 'email.created' | 'sms.created' | 'organization.created' | 'organization.updated' | 'organization.deleted' | 'organizationMembership.created' | 'organizationMembership.updated' | 'organizationMembership.deleted' | 'organization.membership.deleted' | 'organizationInvitation.created' | 'organizationInvitation.accepted' | 'organizationInvitation.revoked' | 'organizationInvitation.declined' | 'role.created' | 'role.updated' | 'role.deleted' | 'permission.created' | 'permission.updated' | 'permission.deleted' | 'organizationDomain.created' | 'organizationDomain.updated' | 'organizationDomain.deleted' | 'organization.settings.updated' | 'waitlistEntry.created' | 'waitlistEntry.updated' | 'subscription.created' | 'subscription.updated' | 'subscription.deleted' | 'entitlement.created' | 'entitlement.updated' | 'entitlement.deleted' | 'scimToken.created' | 'scimToken.revoked' | 'api_key.revoked' | 'ssoConnection.created' | 'ssoConnection.updated' | 'ssoConnection.deleted' | 'user.data_export.requested' | 'user.deletion_requested' | 'user.deletion_cancelled' | 'data_subject_request.scheduled' | 'data_subject_request.fulfilled' | 'data_subject_request.rejected' | 'machine.enrolled' | 'machine.revoked' | 'machine.updated' | 'user.deletion_scheduled' | 'user.deletion_canceled';
|
|
13
|
+
export type WebhookEvent = 'user.created' | 'user.updated' | 'user.deleted' | 'user.banned' | 'user.unbanned' | 'user.locked' | 'user.deactivated' | 'user.graduated' | 'policy.imposed' | 'user.suspended' | 'user.unsuspended' | 'session.created' | 'session.revoked' | 'session.ended' | 'session.pending' | 'session.removed' | 'grant.revoked' | 'email.created' | 'sms.created' | 'organization.created' | 'organization.updated' | 'organization.deleted' | 'organizationMembership.created' | 'organizationMembership.updated' | 'organizationMembership.deleted' | 'organization.membership.deleted' | 'organizationInvitation.created' | 'organizationInvitation.accepted' | 'organizationInvitation.revoked' | 'organizationInvitation.declined' | 'role.created' | 'role.updated' | 'role.deleted' | 'permission.created' | 'permission.updated' | 'permission.deleted' | 'organizationDomain.created' | 'organizationDomain.updated' | 'organizationDomain.deleted' | 'organization.settings.updated' | 'waitlistEntry.created' | 'waitlistEntry.updated' | 'subscription.created' | 'subscription.updated' | 'subscription.deleted' | 'entitlement.created' | 'entitlement.updated' | 'entitlement.deleted' | 'entitlement.override.created' | 'entitlement.override.deleted' | 'entitlement.override.expired' | 'scimToken.created' | 'scimToken.revoked' | 'api_key.revoked' | 'api_key.created' | 'api_key.updated' | 'api_key.limit_reached' | 'ssoConnection.created' | 'ssoConnection.updated' | 'ssoConnection.deleted' | 'user.data_export.requested' | 'user.deletion_requested' | 'user.deletion_cancelled' | 'data_subject_request.scheduled' | 'data_subject_request.fulfilled' | 'data_subject_request.rejected' | 'machine.enrolled' | 'machine.revoked' | 'machine.updated' | 'user.deletion_scheduled' | 'user.deletion_canceled';
|
|
14
14
|
/**
|
|
15
15
|
* §12.2 payload. Full resource objects, not diffs — "consumers never need a
|
|
16
16
|
* read-back call", which also means a consumer processing events out of order
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Shared public TypeScript types for Atlas — the Atlas peer of @clerk/types. Dependency-free, runtime-free: import type { User } from '@atlasauth/types' pulls in no runtime SDK.",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"typescript": "^5.6.3",
|
|
14
|
-
"@atlasauth/localizations": "0.
|
|
14
|
+
"@atlasauth/localizations": "0.6.0"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
|
-
"README.md"
|
|
21
|
+
"README.md",
|
|
22
|
+
"CHANGELOG.md"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "tsc -p tsconfig.build.json",
|