domainkit 0.7.0 → 0.8.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 +7 -4
- package/dist/{connect-10vHuShV.d.mts → connect-D-X8T9W8.d.mts} +286 -90
- package/dist/{connection-C0xsU41C.d.mts → connection-Dp6ZdSo8.d.mts} +2 -2
- package/dist/{connection-api-DW7xUJdj.d.mts → connection-api-lqG1nBtD.d.mts} +2 -2
- package/dist/index.d.mts +703 -34
- package/dist/index.mjs +134 -28
- package/dist/index.mjs.map +1 -1
- package/dist/promise.d.mts +7 -7
- package/dist/promise.mjs +4 -4
- package/dist/{resolver-DPJs8h0a.mjs → resolver-BeGz1ukw.mjs} +90 -28
- package/dist/resolver-BeGz1ukw.mjs.map +1 -0
- package/dist/{resolver-DRrLm_hB.d.mts → resolver-xoSwyXDJ.d.mts} +2 -2
- package/dist/server.d.mts +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +1 -1
- package/dist/{verify-DDnK8U7C.mjs → verify-DvGPb5C9.mjs} +34 -28
- package/dist/verify-DvGPb5C9.mjs.map +1 -0
- package/dist/{verify-C3V_GtzL.d.mts → verify-FpunAcM7.d.mts} +72 -5
- package/package.json +1 -1
- package/dist/resolver-DPJs8h0a.mjs.map +0 -1
- package/dist/verify-DDnK8U7C.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ConnectInput$1, D as Interface$1, E as Error$1, Et as dns_record_d_exports, F as StoredConnection, G as authorization_d_exports, I as StoredCredential, M as ProviderConnection, N as ProviderTarget, Nt as Error$2, O as Service$1, P as ProviderTargetEvidence, Pt as invalid_input_d_exports, S as AttachmentResult, T as DisconnectResult, W as ProviderAuthorization, _ as provider_context_d_exports, b as Aggregate, j as DomainAttachment, jt as domain_name_d_exports, k as AuthorizationError, lt as provider_d_exports, mt as DnsRecord$1, rt as secret_d_exports, tt as manifest_d_exports, v as CryptoError, w as DetachResult$1, wt as Type, x as AggregateSchema, y as canonical_json_d_exports } from "./connect-
|
|
2
|
-
import { t as connection_api_d_exports } from "./connection-api-
|
|
3
|
-
import { M as index_d_exports, a as verify_d_exports, d as google_doh_d_exports, et as session_d_exports, g as index_d_exports$1, h as doh_d_exports, l as resolver_pool_d_exports, nt as selection_d_exports, p as cloudflare_doh_d_exports, rt as diagnostic_d_exports, tt as zones_d_exports } from "./verify-
|
|
4
|
-
import { B as types_d_exports, N as DnsPlan, U as zone_discovery_d_exports, b as AuthorizeError, k as plan_d_exports, l as resolver_d_exports, v as deletion_d_exports } from "./resolver-
|
|
1
|
+
import { C as ConnectInput$1, D as Interface$1, E as Error$1, Et as dns_record_d_exports, F as StoredConnection, G as authorization_d_exports, I as StoredCredential, M as ProviderConnection, N as ProviderTarget, Nt as Error$2, O as Service$1, P as ProviderTargetEvidence, Pt as invalid_input_d_exports, S as AttachmentResult, T as DisconnectResult, W as ProviderAuthorization, _ as provider_context_d_exports, b as Aggregate, j as DomainAttachment, jt as domain_name_d_exports, k as AuthorizationError, lt as provider_d_exports, mt as DnsRecord$1, rt as secret_d_exports, tt as manifest_d_exports, v as CryptoError, w as DetachResult$1, wt as Type, x as AggregateSchema, y as canonical_json_d_exports } from "./connect-D-X8T9W8.mjs";
|
|
2
|
+
import { t as connection_api_d_exports } from "./connection-api-lqG1nBtD.mjs";
|
|
3
|
+
import { M as index_d_exports, a as verify_d_exports, d as google_doh_d_exports, et as session_d_exports, g as index_d_exports$1, h as doh_d_exports, l as resolver_pool_d_exports, nt as selection_d_exports, p as cloudflare_doh_d_exports, rt as diagnostic_d_exports, tt as zones_d_exports } from "./verify-FpunAcM7.mjs";
|
|
4
|
+
import { B as types_d_exports, N as DnsPlan, U as zone_discovery_d_exports, b as AuthorizeError, k as plan_d_exports, l as resolver_d_exports, v as deletion_d_exports } from "./resolver-xoSwyXDJ.mjs";
|
|
5
5
|
import { Context, Crypto, Data, Effect, Layer, Schema } from "effect";
|
|
6
6
|
declare namespace lifecycle_api_d_exports {
|
|
7
7
|
export { Aggregate, AggregateSchema, AttachmentResult, authorization_d_exports as Authorization, ConnectInput$1 as ConnectInput, DetachResult$1 as DetachResult, DisconnectResult, Error$1 as Error, Interface$1 as Interface, Service$1 as Service, StoredConnection, StoredCredential };
|
|
@@ -43,7 +43,7 @@ declare const AuthenticationParameter: Schema.Struct<{
|
|
|
43
43
|
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
44
44
|
}>;
|
|
45
45
|
type AuthenticationParameter = typeof AuthenticationParameter.Type;
|
|
46
|
-
declare const
|
|
46
|
+
declare const AuthenticationMethodSchema: Schema.TaggedUnion<{
|
|
47
47
|
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
48
48
|
readonly label: Schema.String;
|
|
49
49
|
}>;
|
|
@@ -62,7 +62,49 @@ declare const AuthenticationMethod: Schema.TaggedUnion<{
|
|
|
62
62
|
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
63
63
|
}>;
|
|
64
64
|
}>;
|
|
65
|
-
|
|
65
|
+
/** Authentication method schema and constructors for trusted host transport responses. */
|
|
66
|
+
declare const AuthenticationMethod: {
|
|
67
|
+
Schema: Schema.TaggedUnion<{
|
|
68
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
69
|
+
readonly label: Schema.String;
|
|
70
|
+
}>;
|
|
71
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
72
|
+
readonly label: Schema.String;
|
|
73
|
+
}>;
|
|
74
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
75
|
+
readonly label: Schema.String;
|
|
76
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
77
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly key: Schema.String;
|
|
79
|
+
readonly label: Schema.String;
|
|
80
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
82
|
+
}>>>;
|
|
83
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
84
|
+
}>;
|
|
85
|
+
}>;
|
|
86
|
+
Integration: (input: Parameters<typeof AuthenticationMethodSchema.cases.Integration.make>[0]) => {
|
|
87
|
+
readonly _tag: "Integration";
|
|
88
|
+
readonly label: string;
|
|
89
|
+
};
|
|
90
|
+
OAuth: (input: Parameters<typeof AuthenticationMethodSchema.cases.OAuth.make>[0]) => {
|
|
91
|
+
readonly _tag: "OAuth";
|
|
92
|
+
readonly label: string;
|
|
93
|
+
};
|
|
94
|
+
Token: (input: Parameters<typeof AuthenticationMethodSchema.cases.Token.make>[0]) => {
|
|
95
|
+
readonly _tag: "Token";
|
|
96
|
+
readonly label: string;
|
|
97
|
+
readonly parameters?: readonly {
|
|
98
|
+
readonly description?: string;
|
|
99
|
+
readonly key: string;
|
|
100
|
+
readonly label: string;
|
|
101
|
+
readonly placeholder?: string;
|
|
102
|
+
readonly required?: boolean;
|
|
103
|
+
}[];
|
|
104
|
+
readonly placeholder?: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
type AuthenticationMethod = typeof AuthenticationMethodSchema.Type;
|
|
66
108
|
/** The authentication choice supplied to a connection request. */
|
|
67
109
|
type Method = Data.TaggedEnum<{
|
|
68
110
|
Integration: {};
|
|
@@ -164,7 +206,7 @@ declare const Provider: Schema.Struct<{
|
|
|
164
206
|
readonly name: Schema.String;
|
|
165
207
|
}>;
|
|
166
208
|
type Provider = typeof Provider.Type;
|
|
167
|
-
declare const
|
|
209
|
+
declare const ConnectedSchema: Schema.TaggedStruct<"Connected", {
|
|
168
210
|
readonly attachment: Schema.Struct<{
|
|
169
211
|
readonly connectionId: Schema.String;
|
|
170
212
|
readonly createdAt: Schema.DateFromString;
|
|
@@ -215,7 +257,62 @@ declare const Connected: Schema.TaggedStruct<"Connected", {
|
|
|
215
257
|
readonly name: Schema.String;
|
|
216
258
|
}>;
|
|
217
259
|
}>;
|
|
218
|
-
|
|
260
|
+
/** Constructs a connected transport snapshot from trusted host data. */
|
|
261
|
+
declare function Connected(input: Parameters<typeof ConnectedSchema.make>[0]): Connected;
|
|
262
|
+
declare namespace Connected {
|
|
263
|
+
const Schema: Schema.TaggedStruct<"Connected", {
|
|
264
|
+
readonly attachment: Schema.Struct<{
|
|
265
|
+
readonly connectionId: Schema.String;
|
|
266
|
+
readonly createdAt: Schema.DateFromString;
|
|
267
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
268
|
+
readonly id: Schema.String;
|
|
269
|
+
readonly target: Schema.Struct<{
|
|
270
|
+
readonly accountId: Schema.String;
|
|
271
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
272
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
273
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
274
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
275
|
+
readonly status: Schema.String;
|
|
276
|
+
readonly zoneType: Schema.String;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly zoneId: Schema.String;
|
|
279
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
280
|
+
}>;
|
|
281
|
+
}>;
|
|
282
|
+
readonly connection: Schema.Struct<{
|
|
283
|
+
readonly createdAt: Schema.DateFromString;
|
|
284
|
+
readonly id: Schema.String;
|
|
285
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
286
|
+
readonly ownerId: Schema.String;
|
|
287
|
+
readonly providerId: Schema.String;
|
|
288
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
289
|
+
}>;
|
|
290
|
+
readonly provider: Schema.Struct<{
|
|
291
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
292
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
293
|
+
readonly label: Schema.String;
|
|
294
|
+
}>;
|
|
295
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
296
|
+
readonly label: Schema.String;
|
|
297
|
+
}>;
|
|
298
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
299
|
+
readonly label: Schema.String;
|
|
300
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
302
|
+
readonly key: Schema.String;
|
|
303
|
+
readonly label: Schema.String;
|
|
304
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
305
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
306
|
+
}>>>;
|
|
307
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
308
|
+
}>;
|
|
309
|
+
}>>;
|
|
310
|
+
readonly id: Schema.String;
|
|
311
|
+
readonly name: Schema.String;
|
|
312
|
+
}>;
|
|
313
|
+
}>;
|
|
314
|
+
}
|
|
315
|
+
type Connected = typeof ConnectedSchema.Type;
|
|
219
316
|
declare const ReusableConnection: Schema.Struct<{
|
|
220
317
|
readonly connection: Schema.Struct<{
|
|
221
318
|
readonly createdAt: Schema.DateFromString;
|
|
@@ -239,7 +336,7 @@ declare const ReusableConnection: Schema.Struct<{
|
|
|
239
336
|
}>>;
|
|
240
337
|
}>;
|
|
241
338
|
type ReusableConnection = typeof ReusableConnection.Type;
|
|
242
|
-
declare const
|
|
339
|
+
declare const DisconnectedSchema: Schema.TaggedStruct<"Disconnected", {
|
|
243
340
|
readonly domain: Schema.String;
|
|
244
341
|
readonly provider: Schema.Struct<{
|
|
245
342
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
@@ -287,11 +384,70 @@ declare const Disconnected: Schema.TaggedStruct<"Disconnected", {
|
|
|
287
384
|
}>>;
|
|
288
385
|
}>>;
|
|
289
386
|
}>;
|
|
290
|
-
|
|
291
|
-
declare
|
|
387
|
+
/** Constructs a disconnected transport snapshot from trusted host data. */
|
|
388
|
+
declare function Disconnected(input: Parameters<typeof DisconnectedSchema.make>[0]): Disconnected;
|
|
389
|
+
declare namespace Disconnected {
|
|
390
|
+
const Schema: Schema.TaggedStruct<"Disconnected", {
|
|
391
|
+
readonly domain: Schema.String;
|
|
392
|
+
readonly provider: Schema.Struct<{
|
|
393
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
394
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
395
|
+
readonly label: Schema.String;
|
|
396
|
+
}>;
|
|
397
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
398
|
+
readonly label: Schema.String;
|
|
399
|
+
}>;
|
|
400
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
401
|
+
readonly label: Schema.String;
|
|
402
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
403
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
404
|
+
readonly key: Schema.String;
|
|
405
|
+
readonly label: Schema.String;
|
|
406
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
407
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
408
|
+
}>>>;
|
|
409
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
410
|
+
}>;
|
|
411
|
+
}>>;
|
|
412
|
+
readonly id: Schema.String;
|
|
413
|
+
readonly name: Schema.String;
|
|
414
|
+
}>;
|
|
415
|
+
readonly reusableConnections: Schema.$Array<Schema.Struct<{
|
|
416
|
+
readonly connection: Schema.Struct<{
|
|
417
|
+
readonly createdAt: Schema.DateFromString;
|
|
418
|
+
readonly id: Schema.String;
|
|
419
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
420
|
+
readonly ownerId: Schema.String;
|
|
421
|
+
readonly providerId: Schema.String;
|
|
422
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
423
|
+
}>;
|
|
424
|
+
readonly targets: Schema.$Array<Schema.Struct<{
|
|
425
|
+
readonly accountId: Schema.String;
|
|
426
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
427
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
428
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
429
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
430
|
+
readonly status: Schema.String;
|
|
431
|
+
readonly zoneType: Schema.String;
|
|
432
|
+
}>>;
|
|
433
|
+
readonly zoneId: Schema.String;
|
|
434
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
435
|
+
}>>;
|
|
436
|
+
}>>;
|
|
437
|
+
}>;
|
|
438
|
+
}
|
|
439
|
+
type Disconnected = typeof DisconnectedSchema.Type;
|
|
440
|
+
declare const UnsupportedSchema: Schema.TaggedStruct<"Unsupported", {
|
|
292
441
|
readonly domain: Schema.String;
|
|
293
442
|
}>;
|
|
294
|
-
|
|
443
|
+
/** Constructs an unsupported transport snapshot from trusted host data. */
|
|
444
|
+
declare function Unsupported(input: Parameters<typeof UnsupportedSchema.make>[0]): Unsupported;
|
|
445
|
+
declare namespace Unsupported {
|
|
446
|
+
const Schema: Schema.TaggedStruct<"Unsupported", {
|
|
447
|
+
readonly domain: Schema.String;
|
|
448
|
+
}>;
|
|
449
|
+
}
|
|
450
|
+
type Unsupported = typeof UnsupportedSchema.Type;
|
|
295
451
|
declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
296
452
|
readonly attachment: Schema.Struct<{
|
|
297
453
|
readonly connectionId: Schema.String;
|
|
@@ -393,10 +549,17 @@ declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.
|
|
|
393
549
|
readonly domain: Schema.String;
|
|
394
550
|
}>]>;
|
|
395
551
|
type ConnectionSnapshot = typeof ConnectionSnapshot.Type;
|
|
396
|
-
declare const
|
|
552
|
+
declare const RedirectSchema: Schema.TaggedStruct<"Redirect", {
|
|
397
553
|
readonly authorizationUrl: Schema.String;
|
|
398
554
|
}>;
|
|
399
|
-
|
|
555
|
+
/** Constructs an OAuth redirect response from trusted host data. */
|
|
556
|
+
declare function Redirect(input: Parameters<typeof RedirectSchema.make>[0]): Redirect;
|
|
557
|
+
declare namespace Redirect {
|
|
558
|
+
const Schema: Schema.TaggedStruct<"Redirect", {
|
|
559
|
+
readonly authorizationUrl: Schema.String;
|
|
560
|
+
}>;
|
|
561
|
+
}
|
|
562
|
+
type Redirect = typeof RedirectSchema.Type;
|
|
400
563
|
declare const ConnectionResult: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
401
564
|
readonly attachment: Schema.Struct<{
|
|
402
565
|
readonly connectionId: Schema.String;
|
|
@@ -451,7 +614,7 @@ declare const ConnectionResult: Schema.toTaggedUnion<"_tag", readonly [Schema.Ta
|
|
|
451
614
|
readonly authorizationUrl: Schema.String;
|
|
452
615
|
}>]>;
|
|
453
616
|
type ConnectionResult = typeof ConnectionResult.Type;
|
|
454
|
-
declare const
|
|
617
|
+
declare const DetachResultSchema: Schema.TaggedStruct<"Detached", {
|
|
455
618
|
readonly attachment: Schema.Struct<{
|
|
456
619
|
readonly connectionId: Schema.String;
|
|
457
620
|
readonly createdAt: Schema.DateFromString;
|
|
@@ -480,7 +643,40 @@ declare const DetachResult: Schema.TaggedStruct<"Detached", {
|
|
|
480
643
|
}>;
|
|
481
644
|
readonly remainingAttachments: Schema.Int;
|
|
482
645
|
}>;
|
|
483
|
-
|
|
646
|
+
/** Constructs a detach response from trusted host data. */
|
|
647
|
+
declare function DetachResult(input: Parameters<typeof DetachResultSchema.make>[0]): DetachResult;
|
|
648
|
+
declare namespace DetachResult {
|
|
649
|
+
const Schema: Schema.TaggedStruct<"Detached", {
|
|
650
|
+
readonly attachment: Schema.Struct<{
|
|
651
|
+
readonly connectionId: Schema.String;
|
|
652
|
+
readonly createdAt: Schema.DateFromString;
|
|
653
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
654
|
+
readonly id: Schema.String;
|
|
655
|
+
readonly target: Schema.Struct<{
|
|
656
|
+
readonly accountId: Schema.String;
|
|
657
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
658
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
659
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
660
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
661
|
+
readonly status: Schema.String;
|
|
662
|
+
readonly zoneType: Schema.String;
|
|
663
|
+
}>>;
|
|
664
|
+
readonly zoneId: Schema.String;
|
|
665
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
666
|
+
}>;
|
|
667
|
+
}>;
|
|
668
|
+
readonly connection: Schema.Struct<{
|
|
669
|
+
readonly createdAt: Schema.DateFromString;
|
|
670
|
+
readonly id: Schema.String;
|
|
671
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
672
|
+
readonly ownerId: Schema.String;
|
|
673
|
+
readonly providerId: Schema.String;
|
|
674
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
675
|
+
}>;
|
|
676
|
+
readonly remainingAttachments: Schema.Int;
|
|
677
|
+
}>;
|
|
678
|
+
}
|
|
679
|
+
type DetachResult = typeof DetachResultSchema.Type;
|
|
484
680
|
/** A presentation projection of a DNS requirement. */
|
|
485
681
|
declare const DnsRecord: Schema.Struct<{
|
|
486
682
|
readonly id: Schema.String;
|
|
@@ -492,7 +688,7 @@ declare const DnsRecord: Schema.Struct<{
|
|
|
492
688
|
type DnsRecord = typeof DnsRecord.Type;
|
|
493
689
|
/** Projects DomainKit's operational record into its application transport representation. */
|
|
494
690
|
declare const fromDnsRecord: (id: string, record: DnsRecord$1) => DnsRecord;
|
|
495
|
-
declare const
|
|
691
|
+
declare const PlanOperationSchema: Schema.TaggedUnion<{
|
|
496
692
|
readonly Conflict: Schema.TaggedStruct<"Conflict", {
|
|
497
693
|
readonly id: Schema.String;
|
|
498
694
|
readonly reason: Schema.String;
|
|
@@ -525,8 +721,78 @@ declare const PlanOperation: Schema.TaggedUnion<{
|
|
|
525
721
|
}>;
|
|
526
722
|
}>;
|
|
527
723
|
}>;
|
|
528
|
-
|
|
529
|
-
declare const
|
|
724
|
+
/** Provisioning operation schema and constructors for trusted host responses. */
|
|
725
|
+
declare const PlanOperation: {
|
|
726
|
+
Schema: Schema.TaggedUnion<{
|
|
727
|
+
readonly Conflict: Schema.TaggedStruct<"Conflict", {
|
|
728
|
+
readonly id: Schema.String;
|
|
729
|
+
readonly reason: Schema.String;
|
|
730
|
+
readonly record: Schema.Struct<{
|
|
731
|
+
readonly id: Schema.String;
|
|
732
|
+
readonly name: Schema.String;
|
|
733
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
734
|
+
readonly type: Schema.String;
|
|
735
|
+
readonly value: Schema.String;
|
|
736
|
+
}>;
|
|
737
|
+
}>;
|
|
738
|
+
readonly Create: Schema.TaggedStruct<"Create", {
|
|
739
|
+
readonly id: Schema.String;
|
|
740
|
+
readonly record: Schema.Struct<{
|
|
741
|
+
readonly id: Schema.String;
|
|
742
|
+
readonly name: Schema.String;
|
|
743
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
744
|
+
readonly type: Schema.String;
|
|
745
|
+
readonly value: Schema.String;
|
|
746
|
+
}>;
|
|
747
|
+
}>;
|
|
748
|
+
readonly Noop: Schema.TaggedStruct<"Noop", {
|
|
749
|
+
readonly id: Schema.String;
|
|
750
|
+
readonly record: Schema.Struct<{
|
|
751
|
+
readonly id: Schema.String;
|
|
752
|
+
readonly name: Schema.String;
|
|
753
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
754
|
+
readonly type: Schema.String;
|
|
755
|
+
readonly value: Schema.String;
|
|
756
|
+
}>;
|
|
757
|
+
}>;
|
|
758
|
+
}>;
|
|
759
|
+
Conflict: (input: Parameters<typeof PlanOperationSchema.cases.Conflict.make>[0]) => {
|
|
760
|
+
readonly _tag: "Conflict";
|
|
761
|
+
readonly id: string;
|
|
762
|
+
readonly reason: string;
|
|
763
|
+
readonly record: {
|
|
764
|
+
readonly id: string;
|
|
765
|
+
readonly name: string;
|
|
766
|
+
readonly priority?: number;
|
|
767
|
+
readonly type: string;
|
|
768
|
+
readonly value: string;
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
Create: (input: Parameters<typeof PlanOperationSchema.cases.Create.make>[0]) => {
|
|
772
|
+
readonly _tag: "Create";
|
|
773
|
+
readonly id: string;
|
|
774
|
+
readonly record: {
|
|
775
|
+
readonly id: string;
|
|
776
|
+
readonly name: string;
|
|
777
|
+
readonly priority?: number;
|
|
778
|
+
readonly type: string;
|
|
779
|
+
readonly value: string;
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
Noop: (input: Parameters<typeof PlanOperationSchema.cases.Noop.make>[0]) => {
|
|
783
|
+
readonly _tag: "Noop";
|
|
784
|
+
readonly id: string;
|
|
785
|
+
readonly record: {
|
|
786
|
+
readonly id: string;
|
|
787
|
+
readonly name: string;
|
|
788
|
+
readonly priority?: number;
|
|
789
|
+
readonly type: string;
|
|
790
|
+
readonly value: string;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
type PlanOperation = typeof PlanOperationSchema.Type;
|
|
795
|
+
declare const ProvisioningPlanSchema: Schema.TaggedStruct<"Plan", {
|
|
530
796
|
readonly digest: Schema.String;
|
|
531
797
|
readonly expiresAt: Schema.String;
|
|
532
798
|
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
@@ -563,8 +829,49 @@ declare const ProvisioningPlan: Schema.TaggedStruct<"Plan", {
|
|
|
563
829
|
}>;
|
|
564
830
|
}>>;
|
|
565
831
|
}>;
|
|
566
|
-
|
|
567
|
-
declare
|
|
832
|
+
/** Constructs a provisioning plan response from trusted host data. */
|
|
833
|
+
declare function ProvisioningPlan(input: Parameters<typeof ProvisioningPlanSchema.make>[0]): ProvisioningPlan;
|
|
834
|
+
declare namespace ProvisioningPlan {
|
|
835
|
+
const Schema: Schema.TaggedStruct<"Plan", {
|
|
836
|
+
readonly digest: Schema.String;
|
|
837
|
+
readonly expiresAt: Schema.String;
|
|
838
|
+
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
839
|
+
readonly Conflict: Schema.TaggedStruct<"Conflict", {
|
|
840
|
+
readonly id: Schema.String;
|
|
841
|
+
readonly reason: Schema.String;
|
|
842
|
+
readonly record: Schema.Struct<{
|
|
843
|
+
readonly id: Schema.String;
|
|
844
|
+
readonly name: Schema.String;
|
|
845
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
846
|
+
readonly type: Schema.String;
|
|
847
|
+
readonly value: Schema.String;
|
|
848
|
+
}>;
|
|
849
|
+
}>;
|
|
850
|
+
readonly Create: Schema.TaggedStruct<"Create", {
|
|
851
|
+
readonly id: Schema.String;
|
|
852
|
+
readonly record: Schema.Struct<{
|
|
853
|
+
readonly id: Schema.String;
|
|
854
|
+
readonly name: Schema.String;
|
|
855
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
856
|
+
readonly type: Schema.String;
|
|
857
|
+
readonly value: Schema.String;
|
|
858
|
+
}>;
|
|
859
|
+
}>;
|
|
860
|
+
readonly Noop: Schema.TaggedStruct<"Noop", {
|
|
861
|
+
readonly id: Schema.String;
|
|
862
|
+
readonly record: Schema.Struct<{
|
|
863
|
+
readonly id: Schema.String;
|
|
864
|
+
readonly name: Schema.String;
|
|
865
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
866
|
+
readonly type: Schema.String;
|
|
867
|
+
readonly value: Schema.String;
|
|
868
|
+
}>;
|
|
869
|
+
}>;
|
|
870
|
+
}>>;
|
|
871
|
+
}>;
|
|
872
|
+
}
|
|
873
|
+
type ProvisioningPlan = typeof ProvisioningPlanSchema.Type;
|
|
874
|
+
declare const OperationResultSchema: Schema.TaggedUnion<{
|
|
568
875
|
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
569
876
|
readonly operationId: Schema.String;
|
|
570
877
|
}>;
|
|
@@ -576,8 +883,36 @@ declare const OperationResult: Schema.TaggedUnion<{
|
|
|
576
883
|
readonly operationId: Schema.String;
|
|
577
884
|
}>;
|
|
578
885
|
}>;
|
|
579
|
-
|
|
580
|
-
declare const
|
|
886
|
+
/** Per-operation result schema and constructors for trusted host responses. */
|
|
887
|
+
declare const OperationResult: {
|
|
888
|
+
Schema: Schema.TaggedUnion<{
|
|
889
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
890
|
+
readonly operationId: Schema.String;
|
|
891
|
+
}>;
|
|
892
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
893
|
+
readonly message: Schema.String;
|
|
894
|
+
readonly operationId: Schema.String;
|
|
895
|
+
}>;
|
|
896
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
897
|
+
readonly operationId: Schema.String;
|
|
898
|
+
}>;
|
|
899
|
+
}>;
|
|
900
|
+
Applied: (input: Parameters<typeof OperationResultSchema.cases.Applied.make>[0]) => {
|
|
901
|
+
readonly _tag: "Applied";
|
|
902
|
+
readonly operationId: string;
|
|
903
|
+
};
|
|
904
|
+
Failed: (input: Parameters<typeof OperationResultSchema.cases.Failed.make>[0]) => {
|
|
905
|
+
readonly _tag: "Failed";
|
|
906
|
+
readonly message: string;
|
|
907
|
+
readonly operationId: string;
|
|
908
|
+
};
|
|
909
|
+
Unchanged: (input: Parameters<typeof OperationResultSchema.cases.Unchanged.make>[0]) => {
|
|
910
|
+
readonly _tag: "Unchanged";
|
|
911
|
+
readonly operationId: string;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
type OperationResult = typeof OperationResultSchema.Type;
|
|
915
|
+
declare const ApplyResultSchema: Schema.TaggedUnion<{
|
|
581
916
|
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
582
917
|
operationId: Schema.String;
|
|
583
918
|
receiptId: Schema.String;
|
|
@@ -614,8 +949,84 @@ declare const ApplyResult: Schema.TaggedUnion<{
|
|
|
614
949
|
readonly message: Schema.String;
|
|
615
950
|
}>;
|
|
616
951
|
}>;
|
|
617
|
-
|
|
618
|
-
declare const
|
|
952
|
+
/** Apply result schema and constructors for trusted host responses. */
|
|
953
|
+
declare const ApplyResult: {
|
|
954
|
+
Schema: Schema.TaggedUnion<{
|
|
955
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
956
|
+
operationId: Schema.String;
|
|
957
|
+
receiptId: Schema.String;
|
|
958
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
959
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
960
|
+
readonly operationId: Schema.String;
|
|
961
|
+
}>;
|
|
962
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
963
|
+
readonly message: Schema.String;
|
|
964
|
+
readonly operationId: Schema.String;
|
|
965
|
+
}>;
|
|
966
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
967
|
+
readonly operationId: Schema.String;
|
|
968
|
+
}>;
|
|
969
|
+
}>>;
|
|
970
|
+
}>;
|
|
971
|
+
readonly Partial: Schema.TaggedStruct<"Partial", {
|
|
972
|
+
operationId: Schema.String;
|
|
973
|
+
receiptId: Schema.String;
|
|
974
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
975
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
976
|
+
readonly operationId: Schema.String;
|
|
977
|
+
}>;
|
|
978
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
979
|
+
readonly message: Schema.String;
|
|
980
|
+
readonly operationId: Schema.String;
|
|
981
|
+
}>;
|
|
982
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
983
|
+
readonly operationId: Schema.String;
|
|
984
|
+
}>;
|
|
985
|
+
}>>;
|
|
986
|
+
}>;
|
|
987
|
+
readonly Stale: Schema.TaggedStruct<"Stale", {
|
|
988
|
+
readonly message: Schema.String;
|
|
989
|
+
}>;
|
|
990
|
+
}>;
|
|
991
|
+
Applied: (input: Parameters<typeof ApplyResultSchema.cases.Applied.make>[0]) => {
|
|
992
|
+
readonly _tag: "Applied";
|
|
993
|
+
readonly operationId: string;
|
|
994
|
+
readonly receiptId: string;
|
|
995
|
+
readonly results: readonly ({
|
|
996
|
+
readonly _tag: "Applied";
|
|
997
|
+
readonly operationId: string;
|
|
998
|
+
} | {
|
|
999
|
+
readonly _tag: "Failed";
|
|
1000
|
+
readonly message: string;
|
|
1001
|
+
readonly operationId: string;
|
|
1002
|
+
} | {
|
|
1003
|
+
readonly _tag: "Unchanged";
|
|
1004
|
+
readonly operationId: string;
|
|
1005
|
+
})[];
|
|
1006
|
+
};
|
|
1007
|
+
Partial: (input: Parameters<typeof ApplyResultSchema.cases.Partial.make>[0]) => {
|
|
1008
|
+
readonly _tag: "Partial";
|
|
1009
|
+
readonly operationId: string;
|
|
1010
|
+
readonly receiptId: string;
|
|
1011
|
+
readonly results: readonly ({
|
|
1012
|
+
readonly _tag: "Applied";
|
|
1013
|
+
readonly operationId: string;
|
|
1014
|
+
} | {
|
|
1015
|
+
readonly _tag: "Failed";
|
|
1016
|
+
readonly message: string;
|
|
1017
|
+
readonly operationId: string;
|
|
1018
|
+
} | {
|
|
1019
|
+
readonly _tag: "Unchanged";
|
|
1020
|
+
readonly operationId: string;
|
|
1021
|
+
})[];
|
|
1022
|
+
};
|
|
1023
|
+
Stale: (input: Parameters<typeof ApplyResultSchema.cases.Stale.make>[0]) => {
|
|
1024
|
+
readonly _tag: "Stale";
|
|
1025
|
+
readonly message: string;
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
type ApplyResult = typeof ApplyResultSchema.Type;
|
|
1029
|
+
declare const ObservationEvidenceSchema: Schema.TaggedUnion<{
|
|
619
1030
|
readonly Found: Schema.TaggedStruct<"Found", {
|
|
620
1031
|
readonly recordId: Schema.String;
|
|
621
1032
|
}>;
|
|
@@ -631,8 +1042,45 @@ declare const ObservationEvidence: Schema.TaggedUnion<{
|
|
|
631
1042
|
readonly recordId: Schema.String;
|
|
632
1043
|
}>;
|
|
633
1044
|
}>;
|
|
634
|
-
|
|
635
|
-
declare const
|
|
1045
|
+
/** DNS observation evidence schema and constructors for trusted host responses. */
|
|
1046
|
+
declare const ObservationEvidence: {
|
|
1047
|
+
Schema: Schema.TaggedUnion<{
|
|
1048
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
1049
|
+
readonly recordId: Schema.String;
|
|
1050
|
+
}>;
|
|
1051
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
1052
|
+
readonly message: Schema.String;
|
|
1053
|
+
readonly recordId: Schema.String;
|
|
1054
|
+
}>;
|
|
1055
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
1056
|
+
readonly recordId: Schema.String;
|
|
1057
|
+
}>;
|
|
1058
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
1059
|
+
readonly message: Schema.String;
|
|
1060
|
+
readonly recordId: Schema.String;
|
|
1061
|
+
}>;
|
|
1062
|
+
}>;
|
|
1063
|
+
Found: (input: Parameters<typeof ObservationEvidenceSchema.cases.Found.make>[0]) => {
|
|
1064
|
+
readonly _tag: "Found";
|
|
1065
|
+
readonly recordId: string;
|
|
1066
|
+
};
|
|
1067
|
+
Mismatch: (input: Parameters<typeof ObservationEvidenceSchema.cases.Mismatch.make>[0]) => {
|
|
1068
|
+
readonly _tag: "Mismatch";
|
|
1069
|
+
readonly message: string;
|
|
1070
|
+
readonly recordId: string;
|
|
1071
|
+
};
|
|
1072
|
+
Missing: (input: Parameters<typeof ObservationEvidenceSchema.cases.Missing.make>[0]) => {
|
|
1073
|
+
readonly _tag: "Missing";
|
|
1074
|
+
readonly recordId: string;
|
|
1075
|
+
};
|
|
1076
|
+
Unavailable: (input: Parameters<typeof ObservationEvidenceSchema.cases.Unavailable.make>[0]) => {
|
|
1077
|
+
readonly _tag: "Unavailable";
|
|
1078
|
+
readonly message: string;
|
|
1079
|
+
readonly recordId: string;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
type ObservationEvidence = typeof ObservationEvidenceSchema.Type;
|
|
1083
|
+
declare const ObservationSchema: Schema.TaggedStruct<"Observation", {
|
|
636
1084
|
readonly provider: Schema.$Array<Schema.TaggedUnion<{
|
|
637
1085
|
readonly Found: Schema.TaggedStruct<"Found", {
|
|
638
1086
|
readonly recordId: Schema.String;
|
|
@@ -666,8 +1114,46 @@ declare const Observation: Schema.TaggedStruct<"Observation", {
|
|
|
666
1114
|
}>;
|
|
667
1115
|
}>>;
|
|
668
1116
|
}>;
|
|
669
|
-
|
|
670
|
-
declare
|
|
1117
|
+
/** Constructs a DNS observation response from trusted host data. */
|
|
1118
|
+
declare function Observation(input: Parameters<typeof ObservationSchema.make>[0]): Observation;
|
|
1119
|
+
declare namespace Observation {
|
|
1120
|
+
const Schema: Schema.TaggedStruct<"Observation", {
|
|
1121
|
+
readonly provider: Schema.$Array<Schema.TaggedUnion<{
|
|
1122
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
1123
|
+
readonly recordId: Schema.String;
|
|
1124
|
+
}>;
|
|
1125
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
1126
|
+
readonly message: Schema.String;
|
|
1127
|
+
readonly recordId: Schema.String;
|
|
1128
|
+
}>;
|
|
1129
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
1130
|
+
readonly recordId: Schema.String;
|
|
1131
|
+
}>;
|
|
1132
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
1133
|
+
readonly message: Schema.String;
|
|
1134
|
+
readonly recordId: Schema.String;
|
|
1135
|
+
}>;
|
|
1136
|
+
}>>;
|
|
1137
|
+
readonly publicDns: Schema.$Array<Schema.TaggedUnion<{
|
|
1138
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
1139
|
+
readonly recordId: Schema.String;
|
|
1140
|
+
}>;
|
|
1141
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
1142
|
+
readonly message: Schema.String;
|
|
1143
|
+
readonly recordId: Schema.String;
|
|
1144
|
+
}>;
|
|
1145
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
1146
|
+
readonly recordId: Schema.String;
|
|
1147
|
+
}>;
|
|
1148
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
1149
|
+
readonly message: Schema.String;
|
|
1150
|
+
readonly recordId: Schema.String;
|
|
1151
|
+
}>;
|
|
1152
|
+
}>>;
|
|
1153
|
+
}>;
|
|
1154
|
+
}
|
|
1155
|
+
type Observation = typeof ObservationSchema.Type;
|
|
1156
|
+
declare const CleanupOperationSchema: Schema.TaggedUnion<{
|
|
671
1157
|
readonly AlreadyAbsent: Schema.TaggedStruct<"AlreadyAbsent", {
|
|
672
1158
|
readonly id: Schema.String;
|
|
673
1159
|
readonly record: Schema.Struct<{
|
|
@@ -700,8 +1186,78 @@ declare const CleanupOperation: Schema.TaggedUnion<{
|
|
|
700
1186
|
}>;
|
|
701
1187
|
}>;
|
|
702
1188
|
}>;
|
|
703
|
-
|
|
704
|
-
declare const
|
|
1189
|
+
/** Cleanup operation schema and constructors for trusted host responses. */
|
|
1190
|
+
declare const CleanupOperation: {
|
|
1191
|
+
Schema: Schema.TaggedUnion<{
|
|
1192
|
+
readonly AlreadyAbsent: Schema.TaggedStruct<"AlreadyAbsent", {
|
|
1193
|
+
readonly id: Schema.String;
|
|
1194
|
+
readonly record: Schema.Struct<{
|
|
1195
|
+
readonly id: Schema.String;
|
|
1196
|
+
readonly name: Schema.String;
|
|
1197
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1198
|
+
readonly type: Schema.String;
|
|
1199
|
+
readonly value: Schema.String;
|
|
1200
|
+
}>;
|
|
1201
|
+
}>;
|
|
1202
|
+
readonly Blocked: Schema.TaggedStruct<"Blocked", {
|
|
1203
|
+
readonly id: Schema.String;
|
|
1204
|
+
readonly reason: Schema.String;
|
|
1205
|
+
readonly record: Schema.Struct<{
|
|
1206
|
+
readonly id: Schema.String;
|
|
1207
|
+
readonly name: Schema.String;
|
|
1208
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1209
|
+
readonly type: Schema.String;
|
|
1210
|
+
readonly value: Schema.String;
|
|
1211
|
+
}>;
|
|
1212
|
+
}>;
|
|
1213
|
+
readonly Delete: Schema.TaggedStruct<"Delete", {
|
|
1214
|
+
readonly id: Schema.String;
|
|
1215
|
+
readonly record: Schema.Struct<{
|
|
1216
|
+
readonly id: Schema.String;
|
|
1217
|
+
readonly name: Schema.String;
|
|
1218
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1219
|
+
readonly type: Schema.String;
|
|
1220
|
+
readonly value: Schema.String;
|
|
1221
|
+
}>;
|
|
1222
|
+
}>;
|
|
1223
|
+
}>;
|
|
1224
|
+
AlreadyAbsent: (input: Parameters<typeof CleanupOperationSchema.cases.AlreadyAbsent.make>[0]) => {
|
|
1225
|
+
readonly _tag: "AlreadyAbsent";
|
|
1226
|
+
readonly id: string;
|
|
1227
|
+
readonly record: {
|
|
1228
|
+
readonly id: string;
|
|
1229
|
+
readonly name: string;
|
|
1230
|
+
readonly priority?: number;
|
|
1231
|
+
readonly type: string;
|
|
1232
|
+
readonly value: string;
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
Blocked: (input: Parameters<typeof CleanupOperationSchema.cases.Blocked.make>[0]) => {
|
|
1236
|
+
readonly _tag: "Blocked";
|
|
1237
|
+
readonly id: string;
|
|
1238
|
+
readonly reason: string;
|
|
1239
|
+
readonly record: {
|
|
1240
|
+
readonly id: string;
|
|
1241
|
+
readonly name: string;
|
|
1242
|
+
readonly priority?: number;
|
|
1243
|
+
readonly type: string;
|
|
1244
|
+
readonly value: string;
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
Delete: (input: Parameters<typeof CleanupOperationSchema.cases.Delete.make>[0]) => {
|
|
1248
|
+
readonly _tag: "Delete";
|
|
1249
|
+
readonly id: string;
|
|
1250
|
+
readonly record: {
|
|
1251
|
+
readonly id: string;
|
|
1252
|
+
readonly name: string;
|
|
1253
|
+
readonly priority?: number;
|
|
1254
|
+
readonly type: string;
|
|
1255
|
+
readonly value: string;
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
type CleanupOperation = typeof CleanupOperationSchema.Type;
|
|
1260
|
+
declare const CleanupPlanSchema: Schema.TaggedStruct<"CleanupPlan", {
|
|
705
1261
|
readonly digest: Schema.String;
|
|
706
1262
|
readonly expiresAt: Schema.String;
|
|
707
1263
|
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
@@ -738,8 +1294,49 @@ declare const CleanupPlan: Schema.TaggedStruct<"CleanupPlan", {
|
|
|
738
1294
|
}>;
|
|
739
1295
|
}>>;
|
|
740
1296
|
}>;
|
|
741
|
-
|
|
742
|
-
declare
|
|
1297
|
+
/** Constructs a cleanup plan response from trusted host data. */
|
|
1298
|
+
declare function CleanupPlan(input: Parameters<typeof CleanupPlanSchema.make>[0]): CleanupPlan;
|
|
1299
|
+
declare namespace CleanupPlan {
|
|
1300
|
+
const Schema: Schema.TaggedStruct<"CleanupPlan", {
|
|
1301
|
+
readonly digest: Schema.String;
|
|
1302
|
+
readonly expiresAt: Schema.String;
|
|
1303
|
+
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
1304
|
+
readonly AlreadyAbsent: Schema.TaggedStruct<"AlreadyAbsent", {
|
|
1305
|
+
readonly id: Schema.String;
|
|
1306
|
+
readonly record: Schema.Struct<{
|
|
1307
|
+
readonly id: Schema.String;
|
|
1308
|
+
readonly name: Schema.String;
|
|
1309
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1310
|
+
readonly type: Schema.String;
|
|
1311
|
+
readonly value: Schema.String;
|
|
1312
|
+
}>;
|
|
1313
|
+
}>;
|
|
1314
|
+
readonly Blocked: Schema.TaggedStruct<"Blocked", {
|
|
1315
|
+
readonly id: Schema.String;
|
|
1316
|
+
readonly reason: Schema.String;
|
|
1317
|
+
readonly record: Schema.Struct<{
|
|
1318
|
+
readonly id: Schema.String;
|
|
1319
|
+
readonly name: Schema.String;
|
|
1320
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1321
|
+
readonly type: Schema.String;
|
|
1322
|
+
readonly value: Schema.String;
|
|
1323
|
+
}>;
|
|
1324
|
+
}>;
|
|
1325
|
+
readonly Delete: Schema.TaggedStruct<"Delete", {
|
|
1326
|
+
readonly id: Schema.String;
|
|
1327
|
+
readonly record: Schema.Struct<{
|
|
1328
|
+
readonly id: Schema.String;
|
|
1329
|
+
readonly name: Schema.String;
|
|
1330
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
1331
|
+
readonly type: Schema.String;
|
|
1332
|
+
readonly value: Schema.String;
|
|
1333
|
+
}>;
|
|
1334
|
+
}>;
|
|
1335
|
+
}>>;
|
|
1336
|
+
}>;
|
|
1337
|
+
}
|
|
1338
|
+
type CleanupPlan = typeof CleanupPlanSchema.Type;
|
|
1339
|
+
declare const CleanupResultSchema: Schema.TaggedUnion<{
|
|
743
1340
|
readonly Cleaned: Schema.TaggedStruct<"Cleaned", {
|
|
744
1341
|
operationId: Schema.String;
|
|
745
1342
|
results: Schema.$Array<Schema.TaggedUnion<{
|
|
@@ -774,7 +1371,79 @@ declare const CleanupResult: Schema.TaggedUnion<{
|
|
|
774
1371
|
readonly message: Schema.String;
|
|
775
1372
|
}>;
|
|
776
1373
|
}>;
|
|
777
|
-
|
|
1374
|
+
/** Cleanup result schema and constructors for trusted host responses. */
|
|
1375
|
+
declare const CleanupResult: {
|
|
1376
|
+
Schema: Schema.TaggedUnion<{
|
|
1377
|
+
readonly Cleaned: Schema.TaggedStruct<"Cleaned", {
|
|
1378
|
+
operationId: Schema.String;
|
|
1379
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
1380
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
1381
|
+
readonly operationId: Schema.String;
|
|
1382
|
+
}>;
|
|
1383
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
1384
|
+
readonly message: Schema.String;
|
|
1385
|
+
readonly operationId: Schema.String;
|
|
1386
|
+
}>;
|
|
1387
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
1388
|
+
readonly operationId: Schema.String;
|
|
1389
|
+
}>;
|
|
1390
|
+
}>>;
|
|
1391
|
+
}>;
|
|
1392
|
+
readonly Partial: Schema.TaggedStruct<"Partial", {
|
|
1393
|
+
operationId: Schema.String;
|
|
1394
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
1395
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
1396
|
+
readonly operationId: Schema.String;
|
|
1397
|
+
}>;
|
|
1398
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
1399
|
+
readonly message: Schema.String;
|
|
1400
|
+
readonly operationId: Schema.String;
|
|
1401
|
+
}>;
|
|
1402
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
1403
|
+
readonly operationId: Schema.String;
|
|
1404
|
+
}>;
|
|
1405
|
+
}>>;
|
|
1406
|
+
}>;
|
|
1407
|
+
readonly Stale: Schema.TaggedStruct<"Stale", {
|
|
1408
|
+
readonly message: Schema.String;
|
|
1409
|
+
}>;
|
|
1410
|
+
}>;
|
|
1411
|
+
Cleaned: (input: Parameters<typeof CleanupResultSchema.cases.Cleaned.make>[0]) => {
|
|
1412
|
+
readonly _tag: "Cleaned";
|
|
1413
|
+
readonly operationId: string;
|
|
1414
|
+
readonly results: readonly ({
|
|
1415
|
+
readonly _tag: "Applied";
|
|
1416
|
+
readonly operationId: string;
|
|
1417
|
+
} | {
|
|
1418
|
+
readonly _tag: "Failed";
|
|
1419
|
+
readonly message: string;
|
|
1420
|
+
readonly operationId: string;
|
|
1421
|
+
} | {
|
|
1422
|
+
readonly _tag: "Unchanged";
|
|
1423
|
+
readonly operationId: string;
|
|
1424
|
+
})[];
|
|
1425
|
+
};
|
|
1426
|
+
Partial: (input: Parameters<typeof CleanupResultSchema.cases.Partial.make>[0]) => {
|
|
1427
|
+
readonly _tag: "Partial";
|
|
1428
|
+
readonly operationId: string;
|
|
1429
|
+
readonly results: readonly ({
|
|
1430
|
+
readonly _tag: "Applied";
|
|
1431
|
+
readonly operationId: string;
|
|
1432
|
+
} | {
|
|
1433
|
+
readonly _tag: "Failed";
|
|
1434
|
+
readonly message: string;
|
|
1435
|
+
readonly operationId: string;
|
|
1436
|
+
} | {
|
|
1437
|
+
readonly _tag: "Unchanged";
|
|
1438
|
+
readonly operationId: string;
|
|
1439
|
+
})[];
|
|
1440
|
+
};
|
|
1441
|
+
Stale: (input: Parameters<typeof CleanupResultSchema.cases.Stale.make>[0]) => {
|
|
1442
|
+
readonly _tag: "Stale";
|
|
1443
|
+
readonly message: string;
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
type CleanupResult = typeof CleanupResultSchema.Type;
|
|
778
1447
|
interface ConnectInput {
|
|
779
1448
|
readonly domain: string;
|
|
780
1449
|
readonly method: Method;
|