@supatype/types 0.9.2 → 0.10.1

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.
Files changed (45) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-test.log +23 -15
  3. package/.turbo/turbo-typecheck.log +1 -1
  4. package/CHANGELOG.md +19 -1
  5. package/dist/auth-settings-groups.d.ts +216 -0
  6. package/dist/auth-settings-groups.d.ts.map +1 -0
  7. package/dist/auth-settings-groups.js +424 -0
  8. package/dist/auth-settings-groups.js.map +1 -0
  9. package/dist/auth-settings.d.ts +168 -0
  10. package/dist/auth-settings.d.ts.map +1 -0
  11. package/dist/auth-settings.js +501 -0
  12. package/dist/auth-settings.js.map +1 -0
  13. package/dist/function-secret-name.d.ts +14 -0
  14. package/dist/function-secret-name.d.ts.map +1 -0
  15. package/dist/function-secret-name.js +20 -0
  16. package/dist/function-secret-name.js.map +1 -0
  17. package/dist/index.d.ts +145 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +5 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/public-env.d.ts +70 -0
  22. package/dist/public-env.d.ts.map +1 -0
  23. package/dist/public-env.js +146 -0
  24. package/dist/public-env.js.map +1 -0
  25. package/dist/seed-contract.d.ts +103 -0
  26. package/dist/seed-contract.d.ts.map +1 -0
  27. package/dist/seed-contract.js +99 -0
  28. package/dist/seed-contract.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/auth-settings-groups.ts +604 -0
  31. package/src/auth-settings.ts +649 -0
  32. package/src/function-secret-name.ts +21 -0
  33. package/src/index.ts +176 -2
  34. package/src/public-env.ts +167 -0
  35. package/src/seed-contract.ts +167 -0
  36. package/tests/auth-settings-groups.test.ts +342 -0
  37. package/tests/auth-settings.test.ts +327 -0
  38. package/tests/bucket-access.test.ts +33 -1
  39. package/tests/channel.test.ts +94 -0
  40. package/tests/function-secret-name.test.ts +17 -0
  41. package/tests/public-env.test.ts +179 -0
  42. package/tests/seed-contract.test.ts +110 -0
  43. package/tests/standalone-build.test.ts +35 -0
  44. package/tsconfig.json +2 -1
  45. package/tsconfig.tsbuildinfo +1 -1
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/types@0.9.2 build /home/runner/work/supatype/supatype/packages/types
2
+ > @supatype/types@0.10.1 build /home/runner/work/supatype/supatype/packages/types
3
3
  > tsc --project tsconfig.json
4
4
 
@@ -1,23 +1,31 @@
1
1
 
2
- > @supatype/types@0.9.2 test /home/runner/work/supatype/supatype/packages/types
2
+ > @supatype/types@0.10.1 test /home/runner/work/supatype/supatype/packages/types
3
3
  > vitest run --maxWorkers=50%
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /home/runner/work/supatype/supatype/packages/types
7
7
 
8
- ✓ tests/primitives.test.ts (20 tests) 26ms
9
- ✓ tests/offset-operands.test.ts (8 tests) 17ms
10
- ✓ tests/relation-cycles.test.ts (2 tests) 21ms
11
- ✓ tests/auth-user-on-delete.test.ts (3 tests) 23ms
12
- ✓ tests/identity-generated.test.ts (4 tests) 12ms
13
- ✓ tests/optional-model-spread.test.ts (5 tests) 34ms
14
- ✓ tests/modifier-unwrap.test.ts (4 tests) 16ms
15
- ✓ tests/model-hooks.test.ts (3 tests) 8ms
16
- ✓ tests/bucket-access.test.ts (2 tests) 3ms
17
- ✓ tests/geo-shape.test.ts (2 tests) 4ms
8
+ ✓ tests/auth-settings.test.ts (34 tests) 226ms
9
+ ✓ tests/auth-settings-groups.test.ts (32 tests) 264ms
10
+ ✓ tests/primitives.test.ts (20 tests) 30ms
11
+ ✓ tests/public-env.test.ts (63 tests) 130ms
12
+ ✓ tests/seed-contract.test.ts (20 tests) 53ms
13
+ ✓ tests/offset-operands.test.ts (8 tests) 45ms
14
+ ✓ tests/channel.test.ts (11 tests) 123ms
15
+ ✓ tests/relation-cycles.test.ts (2 tests) 27ms
16
+ ✓ tests/auth-user-on-delete.test.ts (3 tests) 7ms
17
+ ✓ tests/identity-generated.test.ts (4 tests) 47ms
18
+ ✓ tests/modifier-unwrap.test.ts (4 tests) 24ms
19
+ ✓ tests/optional-model-spread.test.ts (5 tests) 19ms
20
+ ✓ tests/bucket-access.test.ts (5 tests) 17ms
21
+ ✓ tests/model-hooks.test.ts (3 tests) 3ms
22
+ ✓ tests/function-secret-name.test.ts (12 tests) 49ms
23
+ ✓ tests/geo-shape.test.ts (2 tests) 8ms
24
+ ✓ tests/standalone-build.test.ts (1 test) 6640ms
25
+ ✓ typechecks with `types` empty  6631ms
18
26
 
19
-  Test Files  10 passed (10)
20
-  Tests  53 passed (53)
21
-  Start at  12:01:37
22
-  Duration  5.32s (transform 633ms, setup 0ms, import 1.23s, tests 163ms, environment 19ms)
27
+  Test Files  17 passed (17)
28
+  Tests  229 passed (229)
29
+  Start at  11:13:25
30
+  Duration  16.79s (transform 2.61s, setup 0ms, import 4.22s, tests 7.71s, environment 13ms)
23
31
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @supatype/types@0.9.2 typecheck /home/runner/work/supatype/supatype/packages/types
2
+ > @supatype/types@0.10.1 typecheck /home/runner/work/supatype/supatype/packages/types
3
3
  > tsc --project tests/tsconfig.json --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,6 +1,24 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ There is no 0.4, 0.5 or 0.6 release: this package went from 0.3.6 straight to 0.7.0, on npm and as git tags, so
4
+ no entries are missing from this file.
5
+
6
+ ## 0.9.3
7
+
8
+ ### Features
9
+
10
+ * **storage:** `Folder<N>` names the Nth folder of an object path (from 1) in a bucket rule, so
11
+ `create: Eq<Folder<1>, AuthUid>` keeps each user to their own folder. `BucketRule` now also takes
12
+ `Any`, `All`, `Not`, comparisons and null checks over `AuthUid`, `AuthRole`, `Claim`, `Literal`
13
+ and `Folder`, so a registered-only rule can be written on a bucket.
14
+ * **realtime:** `Channel<Pattern, { params, access }>` declares a realtime channel, with `join`,
15
+ `send` and `track` rules. `Param<"id">` names a channel parameter, and `Event<"bid">` and
16
+ `Payload<"amount", { kind: "number"; min: 1 }>` check a broadcast's event name and payload in a
17
+ `send` rule. `params` must name exactly the `{segments}` of the pattern, each a `UUID`, `string`
18
+ or `Int`, and the compiler refuses a key the pattern does not use. `ChannelParamNames`,
19
+ `ChannelConfig`, `ChannelAccess` and `PayloadCheck` are exported for tooling.
20
+
21
+ ## 0.8.0 (2026-11-02)
4
22
 
5
23
  ### Features
6
24
 
@@ -0,0 +1,216 @@
1
+ /**
2
+ * The auth settings beyond sign-in basics: hooks, attack protection, sessions, MFA, phone sign-in,
3
+ * anonymous sign-in, rate limits and SAML enablement.
4
+ *
5
+ * Each setting is one row in a table (its config path, the variable the auth server reads, its kind
6
+ * and its value when nothing is set), and everything else is derived from the table: the leaf paths a
7
+ * Studio layer can save, the variables the renderers own, validation, and both renderings. A new
8
+ * setting is a new row.
9
+ *
10
+ * Two renderings, for two hosts:
11
+ * - {@link groupsEnv} writes every variable, with a default for one that is not set. Cloud reloads the
12
+ * file into a running server, which can set a variable but never unset it, so a removed setting
13
+ * has to come back as its default.
14
+ * - {@link groupsSelfHostVars} writes only what the config states, so a config that sets none of
15
+ * these renders exactly what it did before they existed.
16
+ *
17
+ * Pure types and pure functions: no I/O, no Node imports.
18
+ */
19
+ import type { AuthRenderContext, AuthSettings, AuthTarget, EnvReference } from "./auth-settings.js";
20
+ export declare const AUTH_HOOK_NAMES: readonly ["customAccessToken", "beforeUserCreated", "afterUserCreated", "mfaVerificationAttempt", "passwordVerificationAttempt", "sendEmail", "sendSms"];
21
+ export type AuthHookName = (typeof AUTH_HOOK_NAMES)[number];
22
+ export interface AuthHookSettings {
23
+ /** Default true: listing a hook is asking for it. False keeps the settings and turns it off. */
24
+ enabled?: boolean;
25
+ /**
26
+ * Where the server calls: an https URL (a project edge function's URL works), or a Postgres
27
+ * function as `pg-functions://postgres/<schema>/<function>`.
28
+ */
29
+ uri?: string;
30
+ /** `env("NAME")`: the Standard Webhooks signing secret(s), `v1,whsec_...`, pipe-separated for rotation. */
31
+ secrets?: EnvReference;
32
+ }
33
+ export type AuthHooksSettings = Partial<Record<AuthHookName, AuthHookSettings>>;
34
+ /** The character classes a password can be required to contain. */
35
+ export declare const PASSWORD_CHARACTER_CLASSES: readonly ["lower", "upper", "digit", "symbol"];
36
+ export type PasswordCharacterClass = (typeof PASSWORD_CHARACTER_CLASSES)[number];
37
+ export declare const SMS_PROVIDERS: readonly ["twilio", "twilio_verify", "messagebird", "textlocal", "vonage"];
38
+ export type SmsProviderName = (typeof SMS_PROVIDERS)[number];
39
+ export declare const CAPTCHA_PROVIDERS: readonly ["hcaptcha", "turnstile"];
40
+ export interface AuthGroupSettings {
41
+ hooks?: AuthHooksSettings;
42
+ /**
43
+ * Bot protection on sign-up, sign-in and recovery. The secret is the provider's server-side key.
44
+ * The site key is the provider's public one: the server's public settings answer hands it to Studio
45
+ * and to apps, which render the provider's widget and send its token with the sign-in.
46
+ */
47
+ captcha?: {
48
+ enabled?: boolean;
49
+ provider?: (typeof CAPTCHA_PROVIDERS)[number];
50
+ secret?: EnvReference;
51
+ siteKey?: string;
52
+ };
53
+ password?: {
54
+ /** Shortest password accepted, 6 to 72. */
55
+ minLength?: number;
56
+ /** Classes every password must hold at least one character of. */
57
+ requiredCharacters?: PasswordCharacterClass[];
58
+ /** Refuse a password found in a known breach (Have I Been Pwned, by k-anonymity range). */
59
+ leakedPasswordCheck?: boolean;
60
+ };
61
+ /** Session lifetimes are in seconds. Unset is no limit. */
62
+ sessions?: {
63
+ timebox?: number;
64
+ inactivityTimeout?: number;
65
+ singlePerUser?: boolean;
66
+ };
67
+ security?: {
68
+ /** Default true: each refresh issues a new refresh token and retires the old one. */
69
+ refreshTokenRotation?: boolean;
70
+ /** Seconds an already-used refresh token still works, for clients that retry. Default 0. */
71
+ refreshTokenReuseInterval?: number;
72
+ updatePasswordRequireReauthentication?: boolean;
73
+ updatePasswordRequireCurrentPassword?: boolean;
74
+ /** Let a signed-in user link another identity to their account. */
75
+ manualLinking?: boolean;
76
+ };
77
+ mfa?: {
78
+ /** Authenticator-app factors. Both default true. */
79
+ totp?: {
80
+ enroll?: boolean;
81
+ verify?: boolean;
82
+ };
83
+ /** SMS factors. Both default false; they need a phone provider. */
84
+ phone?: {
85
+ enroll?: boolean;
86
+ verify?: boolean;
87
+ };
88
+ maxEnrolledFactors?: number;
89
+ maxVerifiedFactors?: number;
90
+ };
91
+ anonymous?: {
92
+ enabled?: boolean;
93
+ };
94
+ /** Sign-in by phone number, and the SMS provider that sends the codes. Credentials are secrets. */
95
+ phone?: {
96
+ enabled?: boolean;
97
+ provider?: SmsProviderName;
98
+ /** Digits in a code, 6 to 10. */
99
+ otpLength?: number;
100
+ /** Seconds a code stays valid. */
101
+ otpExpiry?: number;
102
+ /** Seconds before another code may be sent to the same number. */
103
+ maxFrequency?: number;
104
+ twilio?: {
105
+ accountSid?: string;
106
+ authToken?: EnvReference;
107
+ messageServiceSid?: string;
108
+ contentSid?: string;
109
+ };
110
+ twilioVerify?: {
111
+ accountSid?: string;
112
+ authToken?: EnvReference;
113
+ messageServiceSid?: string;
114
+ };
115
+ messagebird?: {
116
+ accessKey?: EnvReference;
117
+ originator?: string;
118
+ };
119
+ textlocal?: {
120
+ apiKey?: EnvReference;
121
+ sender?: string;
122
+ };
123
+ vonage?: {
124
+ apiKey?: string;
125
+ apiSecret?: EnvReference;
126
+ from?: string;
127
+ };
128
+ };
129
+ /**
130
+ * Requests one client may make in a window that depends on the limit: 5 minutes for `otp`,
131
+ * `tokenRefresh`, `verify` and `sso`, an hour for `smsSent` and `anonymousUsers`, and a minute for
132
+ * `mfa` (challenges and verifies together). The email limit is the platform's on Cloud and is not here.
133
+ */
134
+ rateLimits?: {
135
+ otp?: number;
136
+ tokenRefresh?: number;
137
+ verify?: number;
138
+ smsSent?: number;
139
+ anonymousUsers?: number;
140
+ sso?: number;
141
+ mfa?: number;
142
+ };
143
+ /** SAML single sign-on. The signing key is the platform's on Cloud; on self-host the CLI keeps it in `.env`. */
144
+ sso?: {
145
+ saml?: {
146
+ enabled?: boolean;
147
+ allowEncryptedAssertions?: boolean;
148
+ relayStateValidity?: number;
149
+ rateLimitAssertion?: number;
150
+ };
151
+ };
152
+ }
153
+ /** What a setting's default looks like to a person: a number, a switch, a choice, or null for none. */
154
+ export type GroupDefault = string | number | boolean | null;
155
+ /**
156
+ * What the server runs with for a setting nothing sets, by its saved path (`auth.rateLimits.otp`):
157
+ * a number for a count or a duration in seconds, a boolean for a switch, the name of a choice, or
158
+ * null when there is none (no session limit, no provider, no hook). Undefined for a path this table
159
+ * does not hold. This is the value in force, so a fallback the server raises (a minimum length of 0
160
+ * becomes 6) reports what it is raised to.
161
+ */
162
+ export declare function groupDefault(path: string): GroupDefault | undefined;
163
+ /** The key the platform generates and holds for a project's SAML service provider. Never settable or shown. */
164
+ export declare const SAML_PRIVATE_KEY_SECRET = "sso.saml.private_key";
165
+ /**
166
+ * The key a rotation moves to, held beside the current one while identity providers take its
167
+ * certificate: the server publishes both and decrypts with either. Made and promoted by the platform,
168
+ * never settable or shown, as the current key is.
169
+ */
170
+ export declare const SAML_NEXT_PRIVATE_KEY_SECRET = "sso.saml.next_private_key";
171
+ /** Every variable the group renderers write. */
172
+ export declare const GROUP_OWNED_KEYS: readonly string[];
173
+ /**
174
+ * The variables the server reads once, when it starts: its rate limiters are kept across a reload, so
175
+ * a changed value reaches a running server only when it restarts.
176
+ */
177
+ export declare const GROUP_RESTART_KEYS: readonly string[];
178
+ /** The paths a layer can save, as `auth.<path>`. */
179
+ export declare const GROUP_LEAF_PATHS: readonly string[];
180
+ /** Every secret key a project can set. */
181
+ export declare const GROUP_SECRET_KEYS: readonly string[];
182
+ /** The secrets the settings point at with `env("NAME")`: `[key, name]`. */
183
+ export declare function groupSecretRefs(settings: AuthSettings): {
184
+ key: string;
185
+ value: string | undefined;
186
+ }[];
187
+ /** Whether the settings use the secret `key`, among the group secrets and the platform's SAML key. */
188
+ export declare function groupSecretInUse(settings: AuthSettings, key: string): boolean | undefined;
189
+ /**
190
+ * Secrets the settings cannot work without, by key: an enabled CAPTCHA's key, the chosen SMS
191
+ * provider's credential, and the project's own AWS keys when SES sends the mail.
192
+ */
193
+ export declare function groupRequiredSecretKeys(settings: AuthSettings): string[];
194
+ /** A rule on a secret's value beyond non-empty, or undefined when it holds. Hook secrets are Standard Webhooks keys. */
195
+ export declare function groupSecretFormatProblem(key: string, value: string): string | undefined;
196
+ /**
197
+ * Every group variable, explicit: a default for each setting that is not set, a secret's value from
198
+ * `ctx.secrets` when the settings use it and empty otherwise. SAML is only on when its key is held.
199
+ */
200
+ export declare function groupsEnv(settings: AuthSettings, ctx: AuthRenderContext): Record<string, string>;
201
+ /** A variable for the self-host path: a literal, or the name of the variable that holds the value. */
202
+ export type SelfHostVar = {
203
+ key: string;
204
+ value: string;
205
+ } | {
206
+ key: string;
207
+ fromEnv: string;
208
+ };
209
+ /**
210
+ * Only what the settings state, for the self-host compose file and native dev. A secret is the name of
211
+ * the variable holding it. SAML is left to the CLI, which keeps its signing key in `.env`.
212
+ */
213
+ export declare function groupsSelfHostVars(settings: AuthSettings): SelfHostVar[];
214
+ /** Every problem with the group settings; none when they are fine. */
215
+ export declare function groupProblems(auth: Record<string, unknown>, target: AuthTarget): string[];
216
+ //# sourceMappingURL=auth-settings-groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-settings-groups.d.ts","sourceRoot":"","sources":["../src/auth-settings-groups.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMnG,eAAO,MAAM,eAAe,0JAQlB,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAa3D,MAAM,WAAW,gBAAgB;IAC/B,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAA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