@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.
- package/dist/cdn-noop/index.d.ts +16 -0
- package/dist/config/decode.d.ts +4 -4
- package/dist/config/index.d.ts +4 -3
- package/dist/config/rule.d.ts +9 -0
- package/dist/config/schema.d.ts +326 -293
- package/dist/config/yaml.d.ts +3 -3
- package/dist/dist-Jz1Fp2MY.mjs +1612 -0
- package/dist/dns/index.d.ts +2 -0
- package/dist/dns/ownership.d.ts +0 -1
- package/dist/dns/reconcile.d.ts +41 -0
- package/dist/domain/types.d.ts +94 -22
- package/dist/http/client.d.ts +24 -0
- package/dist/http/errors.d.ts +31 -0
- package/dist/http/index.d.ts +5 -0
- package/dist/http/retry-after.d.ts +11 -0
- package/dist/index.d.ts +26 -18
- package/dist/index.mjs +805 -324
- package/dist/k8s/addon.d.ts +14 -0
- package/dist/k8s/client.d.ts +11 -4
- package/dist/k8s/index.d.ts +6 -3
- package/dist/k8s/kubeconfig.d.ts +2 -2
- package/dist/k8s/node-ops.d.ts +2 -2
- package/dist/k8s/readiness.d.ts +0 -1
- package/dist/k8s/resource-ref.d.ts +3 -0
- package/dist/outputs/file.d.ts +41 -0
- package/dist/outputs/index.d.ts +2 -0
- package/dist/paginate.d.ts +43 -0
- package/dist/plan/diff.d.ts +0 -5
- package/dist/plan/hash.d.ts +3 -1
- package/dist/plan/index.d.ts +4 -2
- package/dist/plan/rows.d.ts +10 -0
- package/dist/plan/types.d.ts +24 -4
- package/dist/ports/cdn-provider.d.ts +21 -0
- package/dist/ports/cloud-provider.d.ts +3 -1
- package/dist/ports/distro.d.ts +2 -29
- package/dist/ports/provider-profile.d.ts +2 -18
- package/dist/ports/validation.d.ts +3 -3
- package/dist/present/decide.d.ts +12 -5
- package/dist/present/index.d.ts +1 -3
- package/dist/profiles/generic.d.ts +3 -17
- package/dist/reconcile/index.d.ts +0 -1
- package/dist/reconcile/poll.d.ts +14 -3
- package/dist/storage/diff.d.ts +24 -0
- package/dist/testing/contract.d.ts +18 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.mjs +16691 -0
- package/package.json +13 -8
- package/dist/errors/retryable.d.ts +0 -2
- package/dist/ports/addon.d.ts +0 -13
- package/dist/present/render.d.ts +0 -2
- package/dist/reconcile/apply.d.ts +0 -8
- package/dist/reconcile/phases.d.ts +0 -5
- package/dist/reconcile/pipeline.d.ts +0 -9
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Effect, Layer } from "effect";
|
|
2
|
+
import { CdnProvider } from "../ports/cdn-provider";
|
|
3
|
+
export declare const cdnNoop: {
|
|
4
|
+
readonly ensureEdge: (spec: import("../index").EdgeSpec) => Effect.Effect<import("../index").EdgeInfo, import("../index").CdnError>;
|
|
5
|
+
readonly ensureCertificates: (input: {
|
|
6
|
+
readonly ref: import("../index").EdgeRef;
|
|
7
|
+
readonly hostnames: ReadonlyArray<string>;
|
|
8
|
+
}) => Effect.Effect<void, import("../index").CdnError>;
|
|
9
|
+
readonly ensureSecurity: (input: {
|
|
10
|
+
readonly ref: import("../index").EdgeRef;
|
|
11
|
+
readonly policy: import("../index").SecurityPolicy;
|
|
12
|
+
}) => Effect.Effect<void, import("../index").CdnError>;
|
|
13
|
+
readonly describeEdge: (ref: import("../index").EdgeRef) => Effect.Effect<import("../index").EdgeInfo, import("../index").CdnError>;
|
|
14
|
+
readonly deleteEdge: (ref: import("../index").EdgeRef) => Effect.Effect<void, import("../index").CdnError>;
|
|
15
|
+
};
|
|
16
|
+
export declare const cdnNoopLive: Layer.Layer<CdnProvider, never, never>;
|
package/dist/config/decode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
import type { SchemaError } from "effect/Schema";
|
|
2
3
|
import { ConfigInvalid } from "../errors/tagged";
|
|
3
|
-
import
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const encodeConfig: (config: ClusterConfigType) => Effect.Effect<unknown, ConfigInvalid>;
|
|
4
|
+
export declare const decodeConfigWith: <S extends Schema.Top>(schema: S) => (input: Parameters<(input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<S["Type"], SchemaError, S["DecodingServices"]>>[0]) => Effect.Effect<S["Type"], ConfigInvalid, S["DecodingServices"]>;
|
|
5
|
+
export declare const encodeConfigWith: <S extends Schema.Top>(schema: S) => (config: S["Type"]) => Effect.Effect<S["Encoded"], ConfigInvalid, S["EncodingServices"]>;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { type CrossFieldRule, crossFieldRule } from "./rule";
|
|
2
|
+
export { decodeConfigWith, encodeConfigWith } from "./decode";
|
|
3
|
+
export { AccessMode, Auth, type AuthMethod, AuthMethod as AuthMethodSchema, authMethodsByProvider, Autoscaling, BucketName, BunnyBucketName, BunnyCdn, BunnyObjectStorage, BunnyStorageRegion, Cdn, CdnOrigin, cdnOriginUrlRequired, isIpLiteral, Shield, Cidr, ClusterName, cidrRange, CinderVolumes, commonClusterFields, Dns, HcloudVolumes, authMethodConsistentWithProvider, secretsRequiredForObjectStorage, ManagedVolume, NonNegativeInt, NoVolumes, ObjectStorage, OpenStackVolumes, Outputs, OutputsFormat, PositiveInt, type Provider, Provider as ProviderSchema, Pvc, Secrets, Volumes, type WorkerPool, WorkerPool as WorkerPoolSchema } from "./schema";
|
|
4
|
+
export { parseConfigYamlWith, stringifyConfigYaml } from "./yaml";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Schema, type SchemaAST } from "effect";
|
|
2
|
+
export interface CrossFieldRule<Config> {
|
|
3
|
+
readonly filter: SchemaAST.Filter<Config>;
|
|
4
|
+
readonly jsonSchema: ReadonlyArray<Schema.JsonObject>;
|
|
5
|
+
}
|
|
6
|
+
export declare const crossFieldRule: <Config>(options: {
|
|
7
|
+
readonly check: (config: Config) => string | undefined;
|
|
8
|
+
readonly jsonSchema: ReadonlyArray<Schema.JsonObject>;
|
|
9
|
+
}) => CrossFieldRule<Config>;
|