@kumulo/core 0.1.1 → 0.2.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.
Files changed (53) hide show
  1. package/dist/cdn-noop/index.d.ts +16 -0
  2. package/dist/config/decode.d.ts +4 -4
  3. package/dist/config/index.d.ts +4 -3
  4. package/dist/config/rule.d.ts +9 -0
  5. package/dist/config/schema.d.ts +326 -293
  6. package/dist/config/yaml.d.ts +3 -3
  7. package/dist/dist-Jz1Fp2MY.mjs +1612 -0
  8. package/dist/dns/index.d.ts +2 -0
  9. package/dist/dns/ownership.d.ts +0 -1
  10. package/dist/dns/reconcile.d.ts +41 -0
  11. package/dist/domain/types.d.ts +94 -22
  12. package/dist/http/client.d.ts +24 -0
  13. package/dist/http/errors.d.ts +31 -0
  14. package/dist/http/index.d.ts +5 -0
  15. package/dist/http/retry-after.d.ts +11 -0
  16. package/dist/index.d.ts +26 -18
  17. package/dist/index.mjs +805 -324
  18. package/dist/k8s/addon.d.ts +14 -0
  19. package/dist/k8s/client.d.ts +11 -4
  20. package/dist/k8s/index.d.ts +6 -3
  21. package/dist/k8s/kubeconfig.d.ts +2 -2
  22. package/dist/k8s/node-ops.d.ts +2 -2
  23. package/dist/k8s/readiness.d.ts +0 -1
  24. package/dist/k8s/resource-ref.d.ts +3 -0
  25. package/dist/outputs/file.d.ts +41 -0
  26. package/dist/outputs/index.d.ts +2 -0
  27. package/dist/paginate.d.ts +43 -0
  28. package/dist/plan/diff.d.ts +0 -5
  29. package/dist/plan/hash.d.ts +3 -1
  30. package/dist/plan/index.d.ts +4 -2
  31. package/dist/plan/rows.d.ts +10 -0
  32. package/dist/plan/types.d.ts +24 -4
  33. package/dist/ports/cdn-provider.d.ts +21 -0
  34. package/dist/ports/cloud-provider.d.ts +3 -1
  35. package/dist/ports/distro.d.ts +2 -29
  36. package/dist/ports/provider-profile.d.ts +2 -18
  37. package/dist/ports/validation.d.ts +3 -3
  38. package/dist/present/decide.d.ts +12 -5
  39. package/dist/present/index.d.ts +1 -3
  40. package/dist/profiles/generic.d.ts +3 -17
  41. package/dist/reconcile/index.d.ts +0 -1
  42. package/dist/reconcile/poll.d.ts +14 -3
  43. package/dist/storage/diff.d.ts +24 -0
  44. package/dist/testing/contract.d.ts +18 -0
  45. package/dist/testing/index.d.ts +2 -0
  46. package/dist/testing/index.mjs +16691 -0
  47. package/package.json +13 -8
  48. package/dist/errors/retryable.d.ts +0 -2
  49. package/dist/ports/addon.d.ts +0 -13
  50. package/dist/present/render.d.ts +0 -2
  51. package/dist/reconcile/apply.d.ts +0 -8
  52. package/dist/reconcile/phases.d.ts +0 -5
  53. package/dist/reconcile/pipeline.d.ts +0 -9
@@ -1,2 +1,4 @@
1
1
  export { OWNERSHIP_PREFIX, ownershipTarget, ownerTagOf, recordKind } from "./ownership";
2
2
  export type { DnsRecordKind } from "./ownership";
3
+ export { reconcileDns, reconcileDnsLive } from "./reconcile";
4
+ export type { DnsAdapter, ZoneRecord } from "./reconcile";
@@ -2,5 +2,4 @@ export declare const OWNERSHIP_PREFIX = "kumulo.cluster=";
2
2
  export declare const ownershipTarget: (tag: string) => string;
3
3
  export declare const ownerTagOf: (target: string) => string | undefined;
4
4
  export type DnsRecordKind = "TXT" | "A" | "AAAA" | "CNAME";
5
- /** Record type inferred from the resolved target value (no explicit field on `DesiredRecord`). */
6
5
  export declare const recordKind: (target: string) => DnsRecordKind;
@@ -0,0 +1,41 @@
1
+ import { Effect, Layer } from "effect";
2
+ import type { ClusterTag, DesiredRecord } from "../domain/types";
3
+ import type { DnsError } from "../ports/dns-provider";
4
+ import { DnsProvider } from "../ports/dns-provider";
5
+ export interface ZoneRecord {
6
+ readonly id?: string | undefined;
7
+ readonly name: string;
8
+ readonly type: string;
9
+ readonly value: string;
10
+ readonly ttl: number;
11
+ }
12
+ export interface DnsAdapter {
13
+ readonly ttl?: number | undefined;
14
+ readonly list: (zone: string) => Effect.Effect<ReadonlyArray<ZoneRecord>, DnsError>;
15
+ readonly create: (input: {
16
+ readonly zone: string;
17
+ readonly record: ZoneRecord;
18
+ }) => Effect.Effect<void, DnsError>;
19
+ readonly update: (input: {
20
+ readonly zone: string;
21
+ readonly existing: ZoneRecord;
22
+ readonly record: ZoneRecord;
23
+ }) => Effect.Effect<void, DnsError>;
24
+ readonly delete: (input: {
25
+ readonly zone: string;
26
+ readonly record: ZoneRecord;
27
+ }) => Effect.Effect<void, DnsError>;
28
+ readonly normalize: (input: {
29
+ readonly name: string;
30
+ readonly zone: string;
31
+ }) => string;
32
+ readonly canonical: (input: {
33
+ readonly type: string;
34
+ readonly value: string;
35
+ }) => string;
36
+ }
37
+ export declare const reconcileDns: (adapter: DnsAdapter) => {
38
+ ensureRecords: (zone: string, records: ReadonlyArray<DesiredRecord>) => Effect.Effect<void, DnsError>;
39
+ removeClusterRecords: (zone: string, tag: ClusterTag) => Effect.Effect<void, DnsError>;
40
+ };
41
+ export declare const reconcileDnsLive: (adapter: DnsAdapter) => Layer.Layer<DnsProvider, never, never>;
@@ -1,32 +1,27 @@
1
- import type { Redacted } from "effect";
1
+ import type { Redacted, Schema } from "effect";
2
2
  export type ClusterTag = string;
3
3
  export type NodeRole = "master" | "worker";
4
- export type DistroKind = "k3s" | "ovh-mks";
5
- export type Capability = "octavia" | "floatingIps" | "cilium";
4
+ export type DistroKind = "k3s" | "ovh-mks" | "upcloud-uks";
6
5
  export type Version = string;
7
6
  export interface NetworkSpec {
8
7
  readonly cidr: string;
8
+ readonly nodesSubnet?: string;
9
+ readonly loadBalancersSubnet?: string;
10
+ }
11
+ export interface GatewayRef {
12
+ readonly name: string;
9
13
  }
10
14
  export interface NetworkInfo {
11
15
  readonly id: string;
12
16
  readonly cidr: string;
17
+ readonly nodesSubnetId?: string;
18
+ readonly loadBalancersSubnetId?: string;
13
19
  }
14
- /**
15
- * Provider-neutral ingress rule — the intersection of what Neutron
16
- * security-group-rules and Hetzner firewall rules actually need. Egress is
17
- * not modelled (both providers default to allow-all out).
18
- */
19
20
  export interface SecGroupRule {
20
21
  readonly protocol: "tcp" | "udp" | "icmp" | "any";
21
- /** Omitted port range means "all ports" for tcp/udp. */
22
22
  readonly portMin?: number;
23
23
  readonly portMax?: number;
24
- /** Ingress source; omitted when `remoteGroupSelf` is set. */
25
24
  readonly remoteCidr?: string;
26
- /**
27
- * Source is the cluster's own members. Providers without a self-reference
28
- * concept (Hetzner) resolve this to the cluster network CIDR.
29
- */
30
25
  readonly remoteGroupSelf?: boolean;
31
26
  }
32
27
  export interface SecGroupSpec {
@@ -37,10 +32,16 @@ export interface SecGroupInfo {
37
32
  }
38
33
  export interface LbSpec {
39
34
  readonly members: ReadonlyArray<string>;
35
+ readonly vipSubnetId?: string;
36
+ readonly vipNetworkId?: string;
37
+ readonly flavorId?: string;
38
+ readonly flavorName?: string;
39
+ readonly floatingIp?: boolean;
40
40
  }
41
41
  export interface LbInfo {
42
42
  readonly id: string;
43
43
  readonly vip: string;
44
+ readonly floatingIp?: string;
44
45
  }
45
46
  export interface ServerSpec {
46
47
  readonly name: string;
@@ -48,11 +49,14 @@ export interface ServerSpec {
48
49
  readonly flavor: string;
49
50
  readonly image: string;
50
51
  readonly tag: ClusterTag;
52
+ readonly userData?: string | undefined;
53
+ readonly networkId?: string | undefined;
51
54
  }
52
55
  export interface ServerInfo {
53
56
  readonly id: string;
54
57
  readonly name: string;
55
58
  readonly ip: string;
59
+ readonly role?: NodeRole | undefined;
56
60
  readonly configHash?: string | undefined;
57
61
  }
58
62
  export type ImageRef = string;
@@ -99,11 +103,7 @@ export interface ResolvedVersion {
99
103
  export interface K8sManifest {
100
104
  readonly apiVersion: string;
101
105
  readonly kind: string;
102
- readonly [key: string]: unknown;
103
- }
104
- export interface AddonContext {
105
- readonly clusterName: string;
106
- readonly capabilities: ReadonlyArray<Capability>;
106
+ readonly [key: string]: Schema.Json;
107
107
  }
108
108
  export interface DesiredRecord {
109
109
  readonly name: string;
@@ -138,11 +138,83 @@ export interface BucketRef {
138
138
  readonly name: string;
139
139
  readonly region: string;
140
140
  }
141
+ export interface BucketCredential {
142
+ readonly name: string;
143
+ readonly region: string;
144
+ readonly endpoint: string;
145
+ readonly accessKey: Redacted.Redacted<string>;
146
+ readonly secretKey: Redacted.Redacted<string>;
147
+ }
141
148
  export interface S3Credentials {
142
149
  readonly user: string;
143
150
  readonly accessKey: Redacted.Redacted<string>;
144
151
  readonly secretKey: Redacted.Redacted<string>;
145
152
  readonly buckets: ReadonlyArray<BucketInfo>;
153
+ readonly bucketCredentials?: ReadonlyArray<BucketCredential>;
154
+ }
155
+ export type CdnTier = "standard" | "volume";
156
+ export type CdnCacheMode = "smart" | "origin";
157
+ export type ShieldPlan = "basic" | "advanced" | "business" | "enterprise";
158
+ export type WafMode = "log" | "block";
159
+ export type Sensitivity = "off" | "low" | "medium" | "high";
160
+ export type RateLimitKey = "ip" | "path" | "header";
161
+ export type AccessListType = "ip" | "cidr" | "asn" | "country";
162
+ export type AccessListAction = "allow" | "block" | "challenge" | "log";
163
+ export interface EdgeSpec {
164
+ readonly name: string;
165
+ readonly tier: CdnTier;
166
+ readonly originUrl: string;
167
+ readonly verifyOriginTls: boolean;
168
+ readonly websockets: boolean;
169
+ readonly cache: CdnCacheMode;
170
+ readonly hostnames: ReadonlyArray<string>;
171
+ readonly forceSsl: boolean;
172
+ }
173
+ export interface EdgeRef {
174
+ readonly id: string;
175
+ readonly name: string;
176
+ }
177
+ export interface EdgeInfo {
178
+ readonly ref: EdgeRef;
179
+ readonly originUrl: string;
180
+ readonly verifyOriginTls: boolean;
181
+ readonly websockets: boolean;
182
+ readonly cache: CdnCacheMode;
183
+ readonly tier: CdnTier;
184
+ readonly forceSsl: boolean;
185
+ readonly defaultHostname: string;
186
+ readonly hostnames: ReadonlyArray<string>;
187
+ readonly certificatesIssued: ReadonlyArray<string>;
188
+ }
189
+ export interface RateLimitRule {
190
+ readonly name: string;
191
+ readonly pathPrefix: string;
192
+ readonly requests: number;
193
+ readonly window: string;
194
+ readonly blockFor: string;
195
+ readonly key: RateLimitKey;
196
+ }
197
+ export interface AccessList {
198
+ readonly name: string;
199
+ readonly type: AccessListType;
200
+ readonly action: AccessListAction;
201
+ readonly entries: ReadonlyArray<string>;
202
+ }
203
+ export interface SecurityPolicy {
204
+ readonly plan: ShieldPlan;
205
+ readonly waf?: {
206
+ readonly enabled: boolean;
207
+ readonly mode: WafMode;
208
+ };
209
+ readonly ddos?: {
210
+ readonly sensitivity: Sensitivity;
211
+ };
212
+ readonly botDetection?: {
213
+ readonly mode: WafMode;
214
+ readonly sensitivity: Sensitivity;
215
+ };
216
+ readonly rateLimits: ReadonlyArray<RateLimitRule>;
217
+ readonly accessLists: ReadonlyArray<AccessList>;
146
218
  }
147
219
  export interface CredentialEntry {
148
220
  readonly key: string;
@@ -151,13 +223,13 @@ export interface CredentialEntry {
151
223
  export interface AutoscalingRule {
152
224
  readonly enabled: boolean;
153
225
  }
154
- export interface WorkerPoolShape {
226
+ export interface WorkerPoolFields {
155
227
  readonly name: string;
156
228
  readonly autoscaling?: AutoscalingRule;
157
229
  }
158
- export interface ClusterConfigShape {
230
+ export interface ClusterConfigFields {
159
231
  readonly distro: DistroKind;
160
- readonly worker_pools: ReadonlyArray<WorkerPoolShape>;
232
+ readonly worker_pools: ReadonlyArray<WorkerPoolFields>;
161
233
  readonly addons: {
162
234
  readonly cni: "flannel" | "cilium";
163
235
  };
@@ -0,0 +1,24 @@
1
+ import { Duration, Effect } from "effect";
2
+ import * as HttpClient from "effect/http/HttpClient";
3
+ import * as HttpClientError from "effect/http/HttpClientError";
4
+ import * as HttpClientRequest from "effect/http/HttpClientRequest";
5
+ type Request = HttpClientRequest.HttpClientRequest;
6
+ export declare const IDEMPOTENT_METHODS: ReadonlyArray<string>;
7
+ export interface RetryOptions {
8
+ readonly statuses?: ReadonlyArray<number> | undefined;
9
+ readonly methods?: ReadonlyArray<string> | undefined;
10
+ readonly maxRetries?: number | undefined;
11
+ readonly baseDelay?: Duration.Input | undefined;
12
+ readonly maxDelay?: Duration.Input | undefined;
13
+ }
14
+ export interface ProviderHttpClientOptions {
15
+ readonly base: HttpClient.HttpClient;
16
+ readonly baseUrl?: string | undefined;
17
+ readonly authorize?: ((request: Request) => Effect.Effect<Request, HttpClientError.HttpClientError>) | undefined;
18
+ readonly onUnauthorized?: Effect.Effect<void, HttpClientError.HttpClientError> | undefined;
19
+ readonly retry?: RetryOptions | false | undefined;
20
+ readonly timeout?: Duration.Input | undefined;
21
+ readonly maxConcurrentRequests?: number | undefined;
22
+ }
23
+ export declare const makeProviderHttpClient: (options: ProviderHttpClientOptions) => Effect.Effect<HttpClient.HttpClient>;
24
+ export {};
@@ -0,0 +1,31 @@
1
+ import { Effect } from "effect";
2
+ import type { SchemaError } from "effect/Schema";
3
+ import * as HttpClientError from "effect/http/HttpClientError";
4
+ import { AuthenticationFailed, HttpTransportError, ProviderApiError, QuotaExceeded, RateLimited, ResourceConflict, ResourceNotFound, ResponseDecodeError } from "../errors/tagged";
5
+ import type { KumuloError } from "../errors/tagged";
6
+ export declare const HTTP_ERROR_BODY_LIMIT = 512;
7
+ export interface HttpErrorContext {
8
+ readonly status: number;
9
+ readonly body: string;
10
+ readonly kind: string;
11
+ readonly ref: string;
12
+ readonly retryAfter?: string | undefined;
13
+ }
14
+ export interface ClassifyOptions extends HttpErrorContext {
15
+ readonly operation?: string | undefined;
16
+ readonly override?: ((context: HttpErrorContext) => KumuloError | undefined) | undefined;
17
+ readonly isQuota?: ((context: HttpErrorContext) => boolean) | undefined;
18
+ }
19
+ export type HttpMappedError = AuthenticationFailed | ResourceNotFound | ResourceConflict | RateLimited | QuotaExceeded | ProviderApiError | HttpTransportError | ResponseDecodeError;
20
+ export declare const truncateBody: (body: string) => string;
21
+ export declare const classifyHttpError: (options: ClassifyOptions) => KumuloError;
22
+ export interface MapHttpErrorOptions {
23
+ readonly cause: HttpClientError.HttpClientError | SchemaError;
24
+ readonly kind: string;
25
+ readonly ref: string;
26
+ readonly operation?: string | undefined;
27
+ readonly override?: ClassifyOptions["override"];
28
+ readonly isQuota?: ClassifyOptions["isQuota"];
29
+ }
30
+ export declare const mapHttpError: (options: MapHttpErrorOptions) => KumuloError;
31
+ export declare const ignoreNotFound: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<void, E, R>;
@@ -0,0 +1,5 @@
1
+ export { IDEMPOTENT_METHODS, makeProviderHttpClient } from "./client";
2
+ export type { ProviderHttpClientOptions, RetryOptions } from "./client";
3
+ export { classifyHttpError, HTTP_ERROR_BODY_LIMIT, ignoreNotFound, mapHttpError, truncateBody } from "./errors";
4
+ export type { ClassifyOptions, HttpErrorContext, MapHttpErrorOptions } from "./errors";
5
+ export { parseRateLimitReset, parseRateLimitResetAt, parseRetryAfter, parseRetryAfterAt } from "./retry-after";
@@ -0,0 +1,11 @@
1
+ import { Duration } from "effect";
2
+ export declare const parseRetryAfterAt: ({ nowMs, value }: {
3
+ readonly value: string | undefined;
4
+ readonly nowMs: number;
5
+ }) => Duration.Duration | undefined;
6
+ export declare const parseRetryAfter: (value: string | undefined) => Duration.Duration | undefined;
7
+ export declare const parseRateLimitResetAt: ({ nowMs, value }: {
8
+ readonly value: string | undefined;
9
+ readonly nowMs: number;
10
+ }) => Duration.Duration | undefined;
11
+ export declare const parseRateLimitReset: (value: string | undefined) => Duration.Duration | undefined;
package/dist/index.d.ts CHANGED
@@ -1,39 +1,47 @@
1
1
  export declare const packageName = "@kumulo/core";
2
2
  export { AddonInstallFailed, AuthenticationFailed, BootstrapFailed, BucketNotEmpty, CapabilityMissing, ConfigInvalid, HttpTransportError, PlanRejected, ProviderApiError, ProvisioningTimeout, QuotaExceeded, RateLimited, ResourceConflict, ResourceNotFound, ResponseDecodeError, SinkUnavailable } from "./errors/tagged";
3
3
  export type { CredentialsSinkError, KumuloError, KumuloErrorTag, PathedIssue } from "./errors/tagged";
4
- export { isRetryable } from "./errors/retryable";
5
4
  export { renderError } from "./errors/renderer";
6
5
  export type { RendererRegistry } from "./errors/renderer";
7
- export { ClusterConfig, decodeConfig, encodeConfig, K3sClusterConfig, MksClusterConfig, OutputsFormat, parseConfigYaml, stringifyConfigYaml } from "./config/index";
8
- export type { ClusterConfigEncoded, K3sClusterConfigEncoded, MksClusterConfigEncoded, WorkerPool } from "./config/index";
9
- export { Addon } from "./ports/addon";
10
- export type { AddonError } from "./ports/addon";
6
+ export { AccessMode, Auth, AuthMethodSchema, authMethodsByProvider, Autoscaling, BucketName, Cidr, ClusterName, cidrRange, CinderVolumes, commonClusterFields, decodeConfigWith, Dns, encodeConfigWith, HcloudVolumes, authMethodConsistentWithProvider, cdnOriginUrlRequired, type CrossFieldRule, crossFieldRule, isIpLiteral, BunnyBucketName, BunnyCdn, BunnyObjectStorage, BunnyStorageRegion, Cdn, CdnOrigin, Shield, secretsRequiredForObjectStorage, ManagedVolume, NonNegativeInt, NoVolumes, ObjectStorage, OpenStackVolumes, Outputs, OutputsFormat, parseConfigYamlWith, PositiveInt, ProviderSchema, Pvc, Secrets, stringifyConfigYaml, Volumes, WorkerPoolSchema } from "./config/index";
7
+ export type { AuthMethod, Provider, WorkerPool } from "./config/index";
11
8
  export { CloudProvider } from "./ports/cloud-provider";
12
9
  export type { CloudError } from "./ports/cloud-provider";
13
10
  export { CredentialsSink } from "./ports/credentials-sink";
14
- export { Distro } from "./ports/distro";
15
- export type { DistroShape, ManagedDistroShape, MksError, SelfManagedDistroShape } from "./ports/distro";
11
+ export type { ManagedDistroError } from "./ports/distro";
16
12
  export { DnsProvider } from "./ports/dns-provider";
17
13
  export type { DnsError } from "./ports/dns-provider";
18
14
  export { ObjectStorageProvider } from "./ports/object-storage-provider";
19
15
  export type { ObjectStorageError } from "./ports/object-storage-provider";
20
16
  export { ProviderProfile } from "./ports/provider-profile";
21
- export type { AuthDefaults, ProfileError } from "./ports/provider-profile";
17
+ export type { ProfileError } from "./ports/provider-profile";
22
18
  export { validateAutoscaling, validateCni } from "./ports/validation";
23
19
  export { distroCapabilities } from "./domain/capabilities";
24
20
  export type { DistroCapabilities } from "./domain/capabilities";
25
21
  export { VolumeProvider } from "./ports/volume-provider";
26
22
  export type { VolumeError } from "./ports/volume-provider";
27
- export { computePlan, CONFIG_HASH_KEY, configHash, namesToReplace, resourceName, toTaggedResource } from "./plan/index";
28
- export type { DesiredResource, Plan, PlanAction, TaggedResource } from "./plan/index";
29
- export { applyServers, pollUntil } from "./reconcile/index";
23
+ export { computePlan, CONFIG_HASH_KEY, configHash, serverConfigHash, namesToReplace, resourceName, toTaggedResource } from "./plan/index";
24
+ export { createOrNoOp, deleteRow, PlanAction } from "./plan/index";
25
+ export { paginate, paginateByOffset, paginateByPage, PaginationLimitExceeded, PaginationStalled } from "./paginate";
26
+ export type { PaginateOptions, PaginationError } from "./paginate";
27
+ export { makeOutputsFile, OutputsInvalid } from "./outputs/index";
28
+ export type { OutputsFileOptions, OutputsLocation } from "./outputs/index";
29
+ export { diffBuckets } from "./storage/diff";
30
+ export type { BucketDiffResult } from "./storage/diff";
31
+ export type { DesiredResource, Plan, TaggedResource } from "./plan/index";
32
+ export { pollUntil } from "./reconcile/index";
30
33
  export type { PollOptions } from "./reconcile/index";
31
- export { decidePlanAction, renderPlan } from "./present/index";
32
- export type { PlanDecision } from "./present/index";
34
+ export { decidePlanAction, PlanDecision } from "./present/index";
33
35
  export { genericProfile, genericProfileLive } from "./profiles/index";
36
+ export { CdnProvider } from "./ports/cdn-provider";
37
+ export type { CdnError } from "./ports/cdn-provider";
38
+ export { cdnNoop, cdnNoopLive } from "./cdn-noop/index";
34
39
  export { dnsNoop, dnsNoopLive } from "./dns-noop/index";
35
- export { OWNERSHIP_PREFIX, ownershipTarget, ownerTagOf, recordKind } from "./dns/index";
36
- export type { DnsRecordKind } from "./dns/index";
37
- export { cordonNode, deleteNode, drainNode, K8sClient, makeK8sClient, parseKubeconfig, waitForDeploymentAvailable, waitForNodeReady } from "./k8s/index";
38
- export type { ClientCertAuth, K8sClientOptions, KubeconfigAuth, KubeconfigContext, ResourceRef, TokenAuth, WaitOptions } from "./k8s/index";
39
- export type { AddonContext, AutoscalingRule, BootstrapPlan, BucketInfo, BucketRef, BucketSpec, Capability, ClusterConfigShape, ClusterTag, CredentialEntry, DesiredRecord, DistroKind, FlavorId, FlavorRef, ImageId, ImageRef, Inventory, Kubeconfig, K8sManifest, LbInfo, LbSpec, ManagedClusterInfo, ManagedClusterRef, NetworkInfo, NetworkSpec, NodeContext, NodeRef, NodeRole, ResolvedVersion, S3Credentials, SecGroupInfo, SecGroupRule, SecGroupSpec, ServerInfo, ServerSpec, SshTarget, Version, VolumeInfo, VolumeRef, VolumeSpec, WorkerPoolShape } from "./domain/types";
40
+ export { OWNERSHIP_PREFIX, ownershipTarget, ownerTagOf, reconcileDns, reconcileDnsLive, recordKind } from "./dns/index";
41
+ export type { DnsAdapter, DnsRecordKind, ZoneRecord } from "./dns/index";
42
+ export { cordonNode, deleteNode, drainNode, installAddons, K8sClient, k8sClientFromKubeconfig, makeK8sClient, parseKubeconfig, refFor, waitForDeploymentAvailable } from "./k8s/index";
43
+ export type { Addon, AddonError } from "./k8s/index";
44
+ export type { ClientCertAuth, K8sClientFromKubeconfigOptions, K8sClientOptions, KubeconfigAuth, KubeconfigContext, ResourceRef, TokenAuth, WaitOptions } from "./k8s/index";
45
+ export type { AutoscalingRule, BootstrapPlan, AccessList, AccessListAction, AccessListType, BucketCredential, BucketInfo, CdnCacheMode, CdnTier, EdgeInfo, EdgeRef, EdgeSpec, RateLimitKey, RateLimitRule, SecurityPolicy, Sensitivity, ShieldPlan, WafMode, BucketRef, BucketSpec, ClusterConfigFields, ClusterTag, CredentialEntry, DesiredRecord, DistroKind, FlavorId, FlavorRef, ImageId, ImageRef, Inventory, Kubeconfig, K8sManifest, LbInfo, LbSpec, ManagedClusterInfo, ManagedClusterRef, NetworkInfo, GatewayRef, NetworkSpec, NodeContext, NodeRef, NodeRole, ResolvedVersion, S3Credentials, SecGroupInfo, SecGroupRule, SecGroupSpec, ServerInfo, ServerSpec, SshTarget, Version, VolumeInfo, VolumeRef, VolumeSpec, WorkerPoolFields } from "./domain/types";
46
+ export { classifyHttpError, HTTP_ERROR_BODY_LIMIT, ignoreNotFound, IDEMPOTENT_METHODS, makeProviderHttpClient, mapHttpError, parseRateLimitReset, parseRateLimitResetAt, parseRetryAfter, parseRetryAfterAt, truncateBody } from "./http/index";
47
+ export type { ClassifyOptions, HttpErrorContext, MapHttpErrorOptions, ProviderHttpClientOptions, RetryOptions } from "./http/index";