domainkit 0.10.0 → 0.11.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.
@@ -16,6 +16,8 @@ export declare const storage: Layer.Layer<Storage.Service>;
16
16
  export declare const principal: Principal.Interface;
17
17
  export interface FakeProviderOptions {
18
18
  readonly id?: string;
19
+ /** The name a customer reads. Default `Fake <id>`; a fixture that ships screenshots sets it. */
20
+ readonly name?: string;
19
21
  /** Zones the fake credential can reach. Default: `example.com`. */
20
22
  readonly zones?: ReadonlyArray<string>;
21
23
  /** Pre-existing records, to produce `Noop` and `Conflict` operations. */
@@ -49,18 +51,23 @@ type FakeContext = typeof Context.Type;
49
51
  export declare const provider: (options?: FakeProviderOptions) => FakeProvider;
50
52
  /** Records every fake provider currently holds for `name`, across all fake zones. */
51
53
  export declare const fakeRecords: (name: string) => ReadonlyArray<DnsRecord.Observed>;
54
+ export interface FakeResolverOptions {
55
+ /** The name every answer carries. A UI reads it as the observer. Default `fake`. */
56
+ readonly id?: string;
57
+ }
52
58
  /**
53
- * A resolver answering from the fake providers' zones, or from an explicit table. Every answer
54
- * is attributed to the resolver named `fake`.
59
+ * A resolver answering from the fake providers' zones, or from an explicit table. Every answer is
60
+ * attributed to `options.id`, which a fixture that ships screenshots names after a real resolver.
55
61
  */
56
62
  export declare const resolver: (answers?: ReadonlyArray<{
57
63
  readonly name: string;
58
64
  readonly records: ReadonlyArray<DnsRecord.Observed>;
59
- }>) => Layer.Layer<Resolver.Service>;
65
+ }>, options?: FakeResolverOptions) => Layer.Layer<Resolver.Service>;
60
66
  export interface TransportOptions {
61
67
  /** Which groups the fake server exposes, so a UI can be tested against a partial host. */
62
68
  readonly capabilities?: ReadonlyArray<Transport.Capability>;
63
69
  readonly provider?: FakeProviderOptions;
70
+ readonly resolver?: FakeResolverOptions;
64
71
  }
65
72
  export interface RecordedCall {
66
73
  /** `connection.inspect`, `provisioning.approve`, ... */
@@ -41,6 +41,8 @@ export declare const exchangeCode: (input: {
41
41
  readonly callbackUrl: string;
42
42
  readonly codeVerifier: string;
43
43
  readonly fetch?: Fetch;
44
+ /** Permit an `http:` endpoint that is not loopback. Development only; see `insecureAllowed`. */
45
+ readonly allowPlaintext?: boolean;
44
46
  }) => Effect.Effect<Tokens, Errors.DomainKitError>;
45
47
  export declare const refresh: (input: {
46
48
  readonly provider: string;
@@ -48,6 +50,7 @@ export declare const refresh: (input: {
48
50
  readonly client: Client;
49
51
  readonly refreshToken: string;
50
52
  readonly fetch?: Fetch;
53
+ readonly allowPlaintext?: boolean;
51
54
  }) => Effect.Effect<Tokens, Errors.DomainKitError>;
52
55
  export declare const revoke: (input: {
53
56
  readonly provider: string;
@@ -55,4 +58,5 @@ export declare const revoke: (input: {
55
58
  readonly client: Client;
56
59
  readonly token: string;
57
60
  readonly fetch?: Fetch;
61
+ readonly allowPlaintext?: boolean;
58
62
  }) => Effect.Effect<void, Errors.DomainKitError>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domainkit",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Build reviewable DNS plans for custom domains in TypeScript",
5
5
  "keywords": [
6
6
  "custom-domains",