domainkit 0.20.1 → 0.22.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 +41 -0
- package/dist/CallbackRecovery.mjs +48 -0
- package/dist/CallbackRecovery.mjs.map +1 -0
- package/dist/Cloudflare.mjs +19 -10
- package/dist/Cloudflare.mjs.map +1 -1
- package/dist/Connect.mjs +39 -11
- package/dist/Connect.mjs.map +1 -1
- package/dist/Provider.mjs.map +1 -1
- package/dist/Server.mjs +139 -22
- package/dist/Server.mjs.map +1 -1
- package/dist/Vercel.mjs +20 -10
- package/dist/Vercel.mjs.map +1 -1
- package/dist/entry/client.mjs +2 -1
- package/dist/entry/server.mjs +1 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/callback.mjs +13 -0
- package/dist/internal/callback.mjs.map +1 -0
- package/dist/internal/config.mjs +19 -5
- package/dist/internal/config.mjs.map +1 -1
- package/dist/internal/provider-async.mjs +2 -0
- package/dist/internal/provider-async.mjs.map +1 -1
- package/dist/package.mjs +1 -1
- package/dist/types/CallbackRecovery.d.ts +12 -0
- package/dist/types/Connect.d.ts +150 -0
- package/dist/types/Provider.d.ts +9 -0
- package/dist/types/Server.d.ts +48 -0
- package/dist/types/entry/client.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/internal/callback.d.ts +4 -0
- package/dist/types/internal/config.d.ts +8 -1
- package/dist/types/internal/provider-async.d.ts +2 -0
- package/package.json +14 -10
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { Config, Effect } from "effect";
|
|
1
|
+
import { Config, Effect, Redacted } from "effect";
|
|
2
2
|
import * as Errors from "./error.ts";
|
|
3
3
|
/** Accept a literal or a `Config`; config failures surface as `InvalidInput` on `field`. */
|
|
4
4
|
export declare const resolve: <A>(value: A | Config.Config<A>, field: string) => Effect.Effect<A, Errors.DomainKitError>;
|
|
5
|
+
/** Configuration diagnostics name the field, never the rejected value. */
|
|
6
|
+
export declare const requireValue: <A>(value: A, valid: (value: A) => boolean, field: string, message: string) => Effect.Effect<A, Errors.DomainKitError>;
|
|
7
|
+
export declare const nonempty: (value: string, field: string) => Effect.Effect<string, Errors.DomainKitError, never>;
|
|
8
|
+
export declare const secret: (value: Redacted.Redacted<string>, field: string) => Effect.Effect<Redacted.Redacted<string>, Errors.DomainKitError, never>;
|
|
9
|
+
/** Paths and split emulator origins are supported; URL suffixes must remain paths. */
|
|
10
|
+
export declare const endpoint: (value: string, field: string) => Effect.Effect<string, Errors.DomainKitError, never>;
|
|
11
|
+
export declare const scopes: (value: ReadonlyArray<string>, field: string) => Effect.Effect<readonly string[], Errors.DomainKitError, never>;
|
|
@@ -33,6 +33,7 @@ export interface AsyncTokenAuth {
|
|
|
33
33
|
readonly authenticate: (values: Readonly<Record<string, string | undefined>>) => Promise<AsyncIssuedCredential>;
|
|
34
34
|
}
|
|
35
35
|
export interface AsyncOAuthAuth {
|
|
36
|
+
readonly registration?: Provider.OAuthAuth["registration"];
|
|
36
37
|
readonly label: string;
|
|
37
38
|
readonly scopes: ReadonlyArray<string>;
|
|
38
39
|
readonly start: (input: {
|
|
@@ -49,6 +50,7 @@ export interface AsyncOAuthAuth {
|
|
|
49
50
|
readonly revoke?: (credential: AsyncCredential) => Promise<void>;
|
|
50
51
|
}
|
|
51
52
|
export interface AsyncIntegrationAuth {
|
|
53
|
+
readonly registration?: Provider.IntegrationAuth["registration"];
|
|
52
54
|
readonly label: string;
|
|
53
55
|
readonly start: (input: {
|
|
54
56
|
readonly state: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domainkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Build reviewable DNS plans for custom domains in TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-domains",
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"types": "./dist/types/Approval.d.ts",
|
|
50
50
|
"import": "./dist/Approval.mjs"
|
|
51
51
|
},
|
|
52
|
+
"./CallbackRecovery": {
|
|
53
|
+
"types": "./dist/types/CallbackRecovery.d.ts",
|
|
54
|
+
"import": "./dist/CallbackRecovery.mjs"
|
|
55
|
+
},
|
|
52
56
|
"./Cleanup": {
|
|
53
57
|
"types": "./dist/types/Cleanup.d.ts",
|
|
54
58
|
"import": "./dist/Cleanup.mjs"
|
|
@@ -139,18 +143,18 @@
|
|
|
139
143
|
},
|
|
140
144
|
"dependencies": {
|
|
141
145
|
"@leichtgewicht/dns-packet": "6.0.3",
|
|
142
|
-
"oauth4webapi": "^3.8.
|
|
143
|
-
"tldts": "^7.4.
|
|
146
|
+
"oauth4webapi": "^3.8.8",
|
|
147
|
+
"tldts": "^7.4.18"
|
|
144
148
|
},
|
|
145
149
|
"devDependencies": {
|
|
146
|
-
"@effect/vitest": "4.0.
|
|
147
|
-
"@types/bun": "1.4.
|
|
148
|
-
"effect": "4.0.
|
|
150
|
+
"@effect/vitest": "4.0.2",
|
|
151
|
+
"@types/bun": "1.4.2",
|
|
152
|
+
"effect": "4.0.2",
|
|
149
153
|
"miniflare": "3.20250718.3",
|
|
150
|
-
"tsdown": "0.
|
|
154
|
+
"tsdown": "0.23.0",
|
|
151
155
|
"typescript": "7.0.2",
|
|
152
|
-
"vite": "
|
|
153
|
-
"vitest": "5.0.
|
|
156
|
+
"vite": "8.3.4",
|
|
157
|
+
"vitest": "5.0.3"
|
|
154
158
|
},
|
|
155
159
|
"peerDependencies": {
|
|
156
160
|
"effect": ">=4.0.0 <5.0.0"
|
|
@@ -158,5 +162,5 @@
|
|
|
158
162
|
"engines": {
|
|
159
163
|
"node": ">=24.10.0"
|
|
160
164
|
},
|
|
161
|
-
"packageManager": "bun@1.4.
|
|
165
|
+
"packageManager": "bun@1.4.4"
|
|
162
166
|
}
|