@scoutflo/topology-contracts 0.1.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 +15 -0
- package/dist/src/correlation/candidate.d.ts +310 -0
- package/dist/src/correlation/candidate.js +31 -0
- package/dist/src/correlation/candidate.js.map +1 -0
- package/dist/src/correlation/index.d.ts +2 -0
- package/dist/src/correlation/index.js +19 -0
- package/dist/src/correlation/index.js.map +1 -0
- package/dist/src/correlation/rule.d.ts +80 -0
- package/dist/src/correlation/rule.js +29 -0
- package/dist/src/correlation/rule.js.map +1 -0
- package/dist/src/families/aws.d.ts +13 -0
- package/dist/src/families/aws.js +24 -0
- package/dist/src/families/aws.js.map +1 -0
- package/dist/src/families/index.d.ts +6 -0
- package/dist/src/families/index.js +30 -0
- package/dist/src/families/index.js.map +1 -0
- package/dist/src/families/integrations.d.ts +7 -0
- package/dist/src/families/integrations.js +12 -0
- package/dist/src/families/integrations.js.map +1 -0
- package/dist/src/families/kubernetes.d.ts +14 -0
- package/dist/src/families/kubernetes.js +26 -0
- package/dist/src/families/kubernetes.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +48 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/providers/aliases.d.ts +12 -0
- package/dist/src/providers/aliases.js +26 -0
- package/dist/src/providers/aliases.js.map +1 -0
- package/dist/src/providers/index.d.ts +2 -0
- package/dist/src/providers/index.js +19 -0
- package/dist/src/providers/index.js.map +1 -0
- package/dist/src/providers/providers.d.ts +30 -0
- package/dist/src/providers/providers.js +58 -0
- package/dist/src/providers/providers.js.map +1 -0
- package/dist/src/schemas/index.d.ts +5 -0
- package/dist/src/schemas/index.js +38 -0
- package/dist/src/schemas/index.js.map +1 -0
- package/dist/src/source-sync/candidate.d.ts +967 -0
- package/dist/src/source-sync/candidate.js +84 -0
- package/dist/src/source-sync/candidate.js.map +1 -0
- package/dist/src/source-sync/capability.d.ts +64 -0
- package/dist/src/source-sync/capability.js +20 -0
- package/dist/src/source-sync/capability.js.map +1 -0
- package/dist/src/source-sync/common.d.ts +16 -0
- package/dist/src/source-sync/common.js +14 -0
- package/dist/src/source-sync/common.js.map +1 -0
- package/dist/src/source-sync/completeness.d.ts +28 -0
- package/dist/src/source-sync/completeness.js +21 -0
- package/dist/src/source-sync/completeness.js.map +1 -0
- package/dist/src/source-sync/index.d.ts +6 -0
- package/dist/src/source-sync/index.js +23 -0
- package/dist/src/source-sync/index.js.map +1 -0
- package/dist/src/source-sync/intent.d.ts +621 -0
- package/dist/src/source-sync/intent.js +31 -0
- package/dist/src/source-sync/intent.js.map +1 -0
- package/dist/src/source-sync/scope.d.ts +21 -0
- package/dist/src/source-sync/scope.js +14 -0
- package/dist/src/source-sync/scope.js.map +1 -0
- package/dist/src/source-sync/warning.d.ts +25 -0
- package/dist/src/source-sync/warning.js +19 -0
- package/dist/src/source-sync/warning.js.map +1 -0
- package/dist/src/topology/index.d.ts +2 -0
- package/dist/src/topology/index.js +19 -0
- package/dist/src/topology/index.js.map +1 -0
- package/dist/src/topology/relationTypes.d.ts +15 -0
- package/dist/src/topology/relationTypes.js +28 -0
- package/dist/src/topology/relationTypes.js.map +1 -0
- package/dist/src/topology/resourceTypes.d.ts +22 -0
- package/dist/src/topology/resourceTypes.js +42 -0
- package/dist/src/topology/resourceTypes.js.map +1 -0
- package/dist/test/contracts.test.d.ts +1 -0
- package/dist/test/contracts.test.js +175 -0
- package/dist/test/contracts.test.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.kubernetesTopologyFamilySchema = exports.KUBERNETES_TOPOLOGY_FAMILY_VALUES = exports.KUBERNETES_TOPOLOGY_FAMILY = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY = {
|
|
6
|
+
CLUSTER: 'cluster',
|
|
7
|
+
NAMESPACE: 'namespace',
|
|
8
|
+
DEPLOYMENT: 'deployment',
|
|
9
|
+
STATEFUL_SET: 'statefulset',
|
|
10
|
+
DAEMON_SET: 'daemonset',
|
|
11
|
+
JOB: 'job',
|
|
12
|
+
CRON_JOB: 'cronjob',
|
|
13
|
+
SERVICE: 'service',
|
|
14
|
+
};
|
|
15
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY_VALUES = [
|
|
16
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.CLUSTER,
|
|
17
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.NAMESPACE,
|
|
18
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.DEPLOYMENT,
|
|
19
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.STATEFUL_SET,
|
|
20
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.DAEMON_SET,
|
|
21
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.JOB,
|
|
22
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.CRON_JOB,
|
|
23
|
+
exports.KUBERNETES_TOPOLOGY_FAMILY.SERVICE,
|
|
24
|
+
];
|
|
25
|
+
exports.kubernetesTopologyFamilySchema = zod_1.z.enum(exports.KUBERNETES_TOPOLOGY_FAMILY_VALUES);
|
|
26
|
+
//# sourceMappingURL=kubernetes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kubernetes.js","sourceRoot":"","sources":["../../../src/families/kubernetes.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,0BAA0B,GAAG;IACxC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,aAAa;IAC3B,UAAU,EAAE,WAAW;IACvB,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,SAAS;IACnB,OAAO,EAAE,SAAS;CACV,CAAC;AAEE,QAAA,iCAAiC,GAAG;IAC/C,kCAA0B,CAAC,OAAO;IAClC,kCAA0B,CAAC,SAAS;IACpC,kCAA0B,CAAC,UAAU;IACrC,kCAA0B,CAAC,YAAY;IACvC,kCAA0B,CAAC,UAAU;IACrC,kCAA0B,CAAC,GAAG;IAC9B,kCAA0B,CAAC,QAAQ;IACnC,kCAA0B,CAAC,OAAO;CAC1B,CAAC;AAEE,QAAA,8BAA8B,GAAG,OAAC,CAAC,IAAI,CAAC,yCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const TOPOLOGY_CONTRACTS_PACKAGE = "@scoutflo/topology-contracts";
|
|
2
|
+
export * as correlationCore from '@scoutflo/correlation-core';
|
|
3
|
+
export * from './providers';
|
|
4
|
+
export * from './families';
|
|
5
|
+
export * from './source-sync';
|
|
6
|
+
export * from './correlation';
|
|
7
|
+
export * from './topology';
|
|
8
|
+
export * from './schemas';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.correlationCore = exports.TOPOLOGY_CONTRACTS_PACKAGE = void 0;
|
|
40
|
+
exports.TOPOLOGY_CONTRACTS_PACKAGE = '@scoutflo/topology-contracts';
|
|
41
|
+
exports.correlationCore = __importStar(require("@scoutflo/correlation-core"));
|
|
42
|
+
__exportStar(require("./providers"), exports);
|
|
43
|
+
__exportStar(require("./families"), exports);
|
|
44
|
+
__exportStar(require("./source-sync"), exports);
|
|
45
|
+
__exportStar(require("./correlation"), exports);
|
|
46
|
+
__exportStar(require("./topology"), exports);
|
|
47
|
+
__exportStar(require("./schemas"), exports);
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAa,QAAA,0BAA0B,GAAG,8BAA8B,CAAC;AAEzE,8EAA8D;AAE9D,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,gDAA8B;AAC9B,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type TopologyProvider } from './providers';
|
|
3
|
+
export declare const TOPOLOGY_PROVIDER_ALIAS: {
|
|
4
|
+
readonly KUBERNETES: "kubernetes";
|
|
5
|
+
};
|
|
6
|
+
export declare const TOPOLOGY_PROVIDER_ALIASES: {
|
|
7
|
+
readonly kubernetes: "k8s";
|
|
8
|
+
};
|
|
9
|
+
export type TopologyProviderAlias = keyof typeof TOPOLOGY_PROVIDER_ALIASES;
|
|
10
|
+
export type TopologyProviderInput = TopologyProvider | TopologyProviderAlias;
|
|
11
|
+
export declare function normalizeTopologyProvider(provider: string): TopologyProvider;
|
|
12
|
+
export declare const topologyProviderInputSchema: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["aws", "k8s", "gcp", "azure", "sentry", "prometheus", "grafana", "loki", "tempo", "mimir", "victoriametrics", "victorialogs", "victoriatraces", "github", "gitlab", "bitbucket", "argocd", "datadog", "groundcover", "elk", "jira", "confluence", "jsm", "custom"]>, z.ZodLiteral<"kubernetes">]>, "aws" | "k8s" | "gcp" | "azure" | "sentry" | "prometheus" | "grafana" | "loki" | "tempo" | "mimir" | "victoriametrics" | "victorialogs" | "victoriatraces" | "github" | "gitlab" | "bitbucket" | "argocd" | "datadog" | "groundcover" | "elk" | "jira" | "confluence" | "jsm" | "custom", "aws" | "k8s" | "gcp" | "azure" | "sentry" | "prometheus" | "grafana" | "loki" | "tempo" | "mimir" | "victoriametrics" | "victorialogs" | "victoriatraces" | "github" | "gitlab" | "bitbucket" | "argocd" | "datadog" | "groundcover" | "elk" | "jira" | "confluence" | "jsm" | "custom" | "kubernetes">;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.topologyProviderInputSchema = exports.TOPOLOGY_PROVIDER_ALIASES = exports.TOPOLOGY_PROVIDER_ALIAS = void 0;
|
|
4
|
+
exports.normalizeTopologyProvider = normalizeTopologyProvider;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const providers_1 = require("./providers");
|
|
7
|
+
exports.TOPOLOGY_PROVIDER_ALIAS = {
|
|
8
|
+
KUBERNETES: 'kubernetes',
|
|
9
|
+
};
|
|
10
|
+
exports.TOPOLOGY_PROVIDER_ALIASES = {
|
|
11
|
+
[exports.TOPOLOGY_PROVIDER_ALIAS.KUBERNETES]: providers_1.TOPOLOGY_PROVIDER.K8S,
|
|
12
|
+
};
|
|
13
|
+
function normalizeTopologyProvider(provider) {
|
|
14
|
+
if (provider in exports.TOPOLOGY_PROVIDER_ALIASES) {
|
|
15
|
+
return exports.TOPOLOGY_PROVIDER_ALIASES[provider];
|
|
16
|
+
}
|
|
17
|
+
const parsed = providers_1.topologyProviderSchema.safeParse(provider);
|
|
18
|
+
if (parsed.success) {
|
|
19
|
+
return parsed.data;
|
|
20
|
+
}
|
|
21
|
+
throw new Error(`Unsupported topology provider: ${provider}`);
|
|
22
|
+
}
|
|
23
|
+
exports.topologyProviderInputSchema = zod_1.z
|
|
24
|
+
.union([providers_1.topologyProviderSchema, zod_1.z.literal(exports.TOPOLOGY_PROVIDER_ALIAS.KUBERNETES)])
|
|
25
|
+
.transform((provider) => normalizeTopologyProvider(provider));
|
|
26
|
+
//# sourceMappingURL=aliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../../src/providers/aliases.ts"],"names":[],"mappings":";;;AAmBA,8DAYC;AA/BD,6BAAwB;AACxB,2CAIqB;AAER,QAAA,uBAAuB,GAAG;IACrC,UAAU,EAAE,YAAY;CAChB,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACvC,CAAC,+BAAuB,CAAC,UAAU,CAAC,EAAE,6BAAiB,CAAC,GAAG;CACnD,CAAC;AAMX,SAAgB,yBAAyB,CAAC,QAAgB;IACxD,IAAI,QAAQ,IAAI,iCAAyB,EAAE,CAAC;QAC1C,OAAO,iCAAyB,CAAC,QAAiC,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,MAAM,GAAG,kCAAsB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAE1D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,kCAAkC,QAAQ,EAAE,CAAC,CAAC;AAChE,CAAC;AAEY,QAAA,2BAA2B,GAAG,OAAC;KACzC,KAAK,CAAC,CAAC,kCAAsB,EAAE,OAAC,CAAC,OAAO,CAAC,+BAAuB,CAAC,UAAU,CAAC,CAAC,CAAC;KAC9E,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./providers"), exports);
|
|
18
|
+
__exportStar(require("./aliases"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TOPOLOGY_PROVIDER: {
|
|
3
|
+
readonly AWS: "aws";
|
|
4
|
+
readonly K8S: "k8s";
|
|
5
|
+
readonly GCP: "gcp";
|
|
6
|
+
readonly AZURE: "azure";
|
|
7
|
+
readonly SENTRY: "sentry";
|
|
8
|
+
readonly PROMETHEUS: "prometheus";
|
|
9
|
+
readonly GRAFANA: "grafana";
|
|
10
|
+
readonly LOKI: "loki";
|
|
11
|
+
readonly TEMPO: "tempo";
|
|
12
|
+
readonly MIMIR: "mimir";
|
|
13
|
+
readonly VICTORIAMETRICS: "victoriametrics";
|
|
14
|
+
readonly VICTORIALOGS: "victorialogs";
|
|
15
|
+
readonly VICTORIATRACES: "victoriatraces";
|
|
16
|
+
readonly GITHUB: "github";
|
|
17
|
+
readonly GITLAB: "gitlab";
|
|
18
|
+
readonly BITBUCKET: "bitbucket";
|
|
19
|
+
readonly ARGOCD: "argocd";
|
|
20
|
+
readonly DATADOG: "datadog";
|
|
21
|
+
readonly GROUNDCOVER: "groundcover";
|
|
22
|
+
readonly ELK: "elk";
|
|
23
|
+
readonly JIRA: "jira";
|
|
24
|
+
readonly CONFLUENCE: "confluence";
|
|
25
|
+
readonly JSM: "jsm";
|
|
26
|
+
readonly CUSTOM: "custom";
|
|
27
|
+
};
|
|
28
|
+
export declare const TOPOLOGY_PROVIDER_VALUES: readonly ["aws", "k8s", "gcp", "azure", "sentry", "prometheus", "grafana", "loki", "tempo", "mimir", "victoriametrics", "victorialogs", "victoriatraces", "github", "gitlab", "bitbucket", "argocd", "datadog", "groundcover", "elk", "jira", "confluence", "jsm", "custom"];
|
|
29
|
+
export declare const topologyProviderSchema: z.ZodEnum<["aws", "k8s", "gcp", "azure", "sentry", "prometheus", "grafana", "loki", "tempo", "mimir", "victoriametrics", "victorialogs", "victoriatraces", "github", "gitlab", "bitbucket", "argocd", "datadog", "groundcover", "elk", "jira", "confluence", "jsm", "custom"]>;
|
|
30
|
+
export type TopologyProvider = z.infer<typeof topologyProviderSchema>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.topologyProviderSchema = exports.TOPOLOGY_PROVIDER_VALUES = exports.TOPOLOGY_PROVIDER = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.TOPOLOGY_PROVIDER = {
|
|
6
|
+
AWS: 'aws',
|
|
7
|
+
K8S: 'k8s',
|
|
8
|
+
GCP: 'gcp',
|
|
9
|
+
AZURE: 'azure',
|
|
10
|
+
SENTRY: 'sentry',
|
|
11
|
+
PROMETHEUS: 'prometheus',
|
|
12
|
+
GRAFANA: 'grafana',
|
|
13
|
+
LOKI: 'loki',
|
|
14
|
+
TEMPO: 'tempo',
|
|
15
|
+
MIMIR: 'mimir',
|
|
16
|
+
VICTORIAMETRICS: 'victoriametrics',
|
|
17
|
+
VICTORIALOGS: 'victorialogs',
|
|
18
|
+
VICTORIATRACES: 'victoriatraces',
|
|
19
|
+
GITHUB: 'github',
|
|
20
|
+
GITLAB: 'gitlab',
|
|
21
|
+
BITBUCKET: 'bitbucket',
|
|
22
|
+
ARGOCD: 'argocd',
|
|
23
|
+
DATADOG: 'datadog',
|
|
24
|
+
GROUNDCOVER: 'groundcover',
|
|
25
|
+
ELK: 'elk',
|
|
26
|
+
JIRA: 'jira',
|
|
27
|
+
CONFLUENCE: 'confluence',
|
|
28
|
+
JSM: 'jsm',
|
|
29
|
+
CUSTOM: 'custom',
|
|
30
|
+
};
|
|
31
|
+
exports.TOPOLOGY_PROVIDER_VALUES = [
|
|
32
|
+
exports.TOPOLOGY_PROVIDER.AWS,
|
|
33
|
+
exports.TOPOLOGY_PROVIDER.K8S,
|
|
34
|
+
exports.TOPOLOGY_PROVIDER.GCP,
|
|
35
|
+
exports.TOPOLOGY_PROVIDER.AZURE,
|
|
36
|
+
exports.TOPOLOGY_PROVIDER.SENTRY,
|
|
37
|
+
exports.TOPOLOGY_PROVIDER.PROMETHEUS,
|
|
38
|
+
exports.TOPOLOGY_PROVIDER.GRAFANA,
|
|
39
|
+
exports.TOPOLOGY_PROVIDER.LOKI,
|
|
40
|
+
exports.TOPOLOGY_PROVIDER.TEMPO,
|
|
41
|
+
exports.TOPOLOGY_PROVIDER.MIMIR,
|
|
42
|
+
exports.TOPOLOGY_PROVIDER.VICTORIAMETRICS,
|
|
43
|
+
exports.TOPOLOGY_PROVIDER.VICTORIALOGS,
|
|
44
|
+
exports.TOPOLOGY_PROVIDER.VICTORIATRACES,
|
|
45
|
+
exports.TOPOLOGY_PROVIDER.GITHUB,
|
|
46
|
+
exports.TOPOLOGY_PROVIDER.GITLAB,
|
|
47
|
+
exports.TOPOLOGY_PROVIDER.BITBUCKET,
|
|
48
|
+
exports.TOPOLOGY_PROVIDER.ARGOCD,
|
|
49
|
+
exports.TOPOLOGY_PROVIDER.DATADOG,
|
|
50
|
+
exports.TOPOLOGY_PROVIDER.GROUNDCOVER,
|
|
51
|
+
exports.TOPOLOGY_PROVIDER.ELK,
|
|
52
|
+
exports.TOPOLOGY_PROVIDER.JIRA,
|
|
53
|
+
exports.TOPOLOGY_PROVIDER.CONFLUENCE,
|
|
54
|
+
exports.TOPOLOGY_PROVIDER.JSM,
|
|
55
|
+
exports.TOPOLOGY_PROVIDER.CUSTOM,
|
|
56
|
+
];
|
|
57
|
+
exports.topologyProviderSchema = zod_1.z.enum(exports.TOPOLOGY_PROVIDER_VALUES);
|
|
58
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/providers/providers.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAC;AAEE,QAAA,wBAAwB,GAAG;IACtC,yBAAiB,CAAC,GAAG;IACrB,yBAAiB,CAAC,GAAG;IACrB,yBAAiB,CAAC,GAAG;IACrB,yBAAiB,CAAC,KAAK;IACvB,yBAAiB,CAAC,MAAM;IACxB,yBAAiB,CAAC,UAAU;IAC5B,yBAAiB,CAAC,OAAO;IACzB,yBAAiB,CAAC,IAAI;IACtB,yBAAiB,CAAC,KAAK;IACvB,yBAAiB,CAAC,KAAK;IACvB,yBAAiB,CAAC,eAAe;IACjC,yBAAiB,CAAC,YAAY;IAC9B,yBAAiB,CAAC,cAAc;IAChC,yBAAiB,CAAC,MAAM;IACxB,yBAAiB,CAAC,MAAM;IACxB,yBAAiB,CAAC,SAAS;IAC3B,yBAAiB,CAAC,MAAM;IACxB,yBAAiB,CAAC,OAAO;IACzB,yBAAiB,CAAC,WAAW;IAC7B,yBAAiB,CAAC,GAAG;IACrB,yBAAiB,CAAC,IAAI;IACtB,yBAAiB,CAAC,UAAU;IAC5B,yBAAiB,CAAC,GAAG;IACrB,yBAAiB,CAAC,MAAM;CAChB,CAAC;AAEE,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC,gCAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { topologyProviderSchema, topologyProviderInputSchema, } from '../providers';
|
|
2
|
+
export { awsTopologyFamilySchema, kubernetesTopologyFamilySchema, integrationTopologyFamilySchema, topologyFamilySchema, } from '../families';
|
|
3
|
+
export { sourceSyncCapabilitySchema, topologySourceIntentIncludeSchema, topologySourceIntentSchema, topologySyncIntentOptionsSchema, topologySyncIntentSchema, topologySyncScopeSchema, topologySyncCompletenessStatusSchema, topologySyncCompletenessSchema, topologySyncWarningSeveritySchema, topologySyncWarningSchema, topologySourceRefStatusSchema, topologyEntitySourceRefCandidateSchema, topologyAccessRefCandidateSchema, topologySourceNodeCandidateSchema, topologyExistingEntityRefSchema, topologySourceRelationshipCandidateSchema, } from '../source-sync';
|
|
4
|
+
export { topologyCorrelationApplyPolicySchema, topologyCorrelationRequiredEndpointSchema, topologyCorrelationRuleMetadataSchema, topologyCorrelationDecisionSchema, topologyCorrelationCandidateSchema, } from '../correlation';
|
|
5
|
+
export { topologyResourceTypeSchema, topologyRelationTypeSchema, } from '../topology';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.topologyRelationTypeSchema = exports.topologyResourceTypeSchema = exports.topologyCorrelationCandidateSchema = exports.topologyCorrelationDecisionSchema = exports.topologyCorrelationRuleMetadataSchema = exports.topologyCorrelationRequiredEndpointSchema = exports.topologyCorrelationApplyPolicySchema = exports.topologySourceRelationshipCandidateSchema = exports.topologyExistingEntityRefSchema = exports.topologySourceNodeCandidateSchema = exports.topologyAccessRefCandidateSchema = exports.topologyEntitySourceRefCandidateSchema = exports.topologySourceRefStatusSchema = exports.topologySyncWarningSchema = exports.topologySyncWarningSeveritySchema = exports.topologySyncCompletenessSchema = exports.topologySyncCompletenessStatusSchema = exports.topologySyncScopeSchema = exports.topologySyncIntentSchema = exports.topologySyncIntentOptionsSchema = exports.topologySourceIntentSchema = exports.topologySourceIntentIncludeSchema = exports.sourceSyncCapabilitySchema = exports.topologyFamilySchema = exports.integrationTopologyFamilySchema = exports.kubernetesTopologyFamilySchema = exports.awsTopologyFamilySchema = exports.topologyProviderInputSchema = exports.topologyProviderSchema = void 0;
|
|
4
|
+
var providers_1 = require("../providers");
|
|
5
|
+
Object.defineProperty(exports, "topologyProviderSchema", { enumerable: true, get: function () { return providers_1.topologyProviderSchema; } });
|
|
6
|
+
Object.defineProperty(exports, "topologyProviderInputSchema", { enumerable: true, get: function () { return providers_1.topologyProviderInputSchema; } });
|
|
7
|
+
var families_1 = require("../families");
|
|
8
|
+
Object.defineProperty(exports, "awsTopologyFamilySchema", { enumerable: true, get: function () { return families_1.awsTopologyFamilySchema; } });
|
|
9
|
+
Object.defineProperty(exports, "kubernetesTopologyFamilySchema", { enumerable: true, get: function () { return families_1.kubernetesTopologyFamilySchema; } });
|
|
10
|
+
Object.defineProperty(exports, "integrationTopologyFamilySchema", { enumerable: true, get: function () { return families_1.integrationTopologyFamilySchema; } });
|
|
11
|
+
Object.defineProperty(exports, "topologyFamilySchema", { enumerable: true, get: function () { return families_1.topologyFamilySchema; } });
|
|
12
|
+
var source_sync_1 = require("../source-sync");
|
|
13
|
+
Object.defineProperty(exports, "sourceSyncCapabilitySchema", { enumerable: true, get: function () { return source_sync_1.sourceSyncCapabilitySchema; } });
|
|
14
|
+
Object.defineProperty(exports, "topologySourceIntentIncludeSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceIntentIncludeSchema; } });
|
|
15
|
+
Object.defineProperty(exports, "topologySourceIntentSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceIntentSchema; } });
|
|
16
|
+
Object.defineProperty(exports, "topologySyncIntentOptionsSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncIntentOptionsSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "topologySyncIntentSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncIntentSchema; } });
|
|
18
|
+
Object.defineProperty(exports, "topologySyncScopeSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncScopeSchema; } });
|
|
19
|
+
Object.defineProperty(exports, "topologySyncCompletenessStatusSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncCompletenessStatusSchema; } });
|
|
20
|
+
Object.defineProperty(exports, "topologySyncCompletenessSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncCompletenessSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "topologySyncWarningSeveritySchema", { enumerable: true, get: function () { return source_sync_1.topologySyncWarningSeveritySchema; } });
|
|
22
|
+
Object.defineProperty(exports, "topologySyncWarningSchema", { enumerable: true, get: function () { return source_sync_1.topologySyncWarningSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "topologySourceRefStatusSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceRefStatusSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "topologyEntitySourceRefCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologyEntitySourceRefCandidateSchema; } });
|
|
25
|
+
Object.defineProperty(exports, "topologyAccessRefCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologyAccessRefCandidateSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "topologySourceNodeCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceNodeCandidateSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "topologyExistingEntityRefSchema", { enumerable: true, get: function () { return source_sync_1.topologyExistingEntityRefSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "topologySourceRelationshipCandidateSchema", { enumerable: true, get: function () { return source_sync_1.topologySourceRelationshipCandidateSchema; } });
|
|
29
|
+
var correlation_1 = require("../correlation");
|
|
30
|
+
Object.defineProperty(exports, "topologyCorrelationApplyPolicySchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationApplyPolicySchema; } });
|
|
31
|
+
Object.defineProperty(exports, "topologyCorrelationRequiredEndpointSchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationRequiredEndpointSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "topologyCorrelationRuleMetadataSchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationRuleMetadataSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "topologyCorrelationDecisionSchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationDecisionSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "topologyCorrelationCandidateSchema", { enumerable: true, get: function () { return correlation_1.topologyCorrelationCandidateSchema; } });
|
|
35
|
+
var topology_1 = require("../topology");
|
|
36
|
+
Object.defineProperty(exports, "topologyResourceTypeSchema", { enumerable: true, get: function () { return topology_1.topologyResourceTypeSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "topologyRelationTypeSchema", { enumerable: true, get: function () { return topology_1.topologyRelationTypeSchema; } });
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":";;;AAAA,0CAGsB;AAFpB,mHAAA,sBAAsB,OAAA;AACtB,wHAAA,2BAA2B,OAAA;AAG7B,wCAKqB;AAJnB,mHAAA,uBAAuB,OAAA;AACvB,0HAAA,8BAA8B,OAAA;AAC9B,2HAAA,+BAA+B,OAAA;AAC/B,gHAAA,oBAAoB,OAAA;AAGtB,8CAiBwB;AAhBtB,yHAAA,0BAA0B,OAAA;AAC1B,gIAAA,iCAAiC,OAAA;AACjC,yHAAA,0BAA0B,OAAA;AAC1B,8HAAA,+BAA+B,OAAA;AAC/B,uHAAA,wBAAwB,OAAA;AACxB,sHAAA,uBAAuB,OAAA;AACvB,mIAAA,oCAAoC,OAAA;AACpC,6HAAA,8BAA8B,OAAA;AAC9B,gIAAA,iCAAiC,OAAA;AACjC,wHAAA,yBAAyB,OAAA;AACzB,4HAAA,6BAA6B,OAAA;AAC7B,qIAAA,sCAAsC,OAAA;AACtC,+HAAA,gCAAgC,OAAA;AAChC,gIAAA,iCAAiC,OAAA;AACjC,8HAAA,+BAA+B,OAAA;AAC/B,wIAAA,yCAAyC,OAAA;AAG3C,8CAMwB;AALtB,mIAAA,oCAAoC,OAAA;AACpC,wIAAA,yCAAyC,OAAA;AACzC,oIAAA,qCAAqC,OAAA;AACrC,gIAAA,iCAAiC,OAAA;AACjC,iIAAA,kCAAkC,OAAA;AAGpC,wCAGqB;AAFnB,sHAAA,0BAA0B,OAAA;AAC1B,sHAAA,0BAA0B,OAAA"}
|