@decaf-ts/ui-decorators 0.19.1 → 0.20.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/ui-decorators.cjs +1 -1
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +20 -0
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +15 -0
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +16 -0
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +31 -0
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphIconReference.cjs +22 -0
- package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +298 -0
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +23 -0
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +11 -0
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +23 -0
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +50 -0
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +29 -0
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +11 -0
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs +4 -0
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +29 -0
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs +18 -0
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +57 -0
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs +19 -0
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +19 -0
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs +25 -0
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +164 -0
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +63 -0
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +1 -0
- package/lib/cjs/graph/catalog/index.cjs +39 -0
- package/lib/cjs/graph/catalog/index.cjs.map +1 -0
- package/lib/cjs/graph/constants.cjs +15 -1
- package/lib/cjs/graph/constants.cjs.map +1 -1
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +296 -0
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs +4 -0
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphEndpoint.cjs +27 -0
- package/lib/cjs/graph/document/GraphEndpoint.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphJsonValue.cjs +82 -0
- package/lib/cjs/graph/document/GraphJsonValue.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +4 -0
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphNodeBinding.cjs +27 -0
- package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphNodeInstance.cjs +4 -0
- package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +16 -0
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +267 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +78 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +70 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +4 -0
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +1 -0
- package/lib/cjs/graph/document/index.cjs +30 -0
- package/lib/cjs/graph/document/index.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +2 -0
- package/lib/cjs/graph/index.cjs.map +1 -1
- package/lib/cjs/graph/snapshot.cjs +337 -0
- package/lib/cjs/graph/snapshot.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js +16 -0
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +1 -0
- package/lib/esm/graph/catalog/GraphCredentialReference.js +9 -0
- package/lib/esm/graph/catalog/GraphCredentialReference.js.map +1 -0
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js +12 -0
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +1 -0
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js +25 -0
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +1 -0
- package/lib/esm/graph/catalog/GraphIconReference.js +18 -0
- package/lib/esm/graph/catalog/GraphIconReference.js.map +1 -0
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +294 -0
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeCapability.js +17 -0
- package/lib/esm/graph/catalog/GraphNodeCapability.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +7 -0
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeManifest.js +17 -0
- package/lib/esm/graph/catalog/GraphNodeManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +42 -0
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +23 -0
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +7 -0
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterBase.js +2 -0
- package/lib/esm/graph/catalog/GraphParameterBase.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterDefinition.js +23 -0
- package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterOption.js +13 -0
- package/lib/esm/graph/catalog/GraphParameterOption.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterValidation.js +50 -0
- package/lib/esm/graph/catalog/GraphParameterValidation.js.map +1 -0
- package/lib/esm/graph/catalog/GraphPortManifest.js +13 -0
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +13 -0
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +1 -0
- package/lib/esm/graph/catalog/GraphValueSchema.js +19 -0
- package/lib/esm/graph/catalog/GraphValueSchema.js.map +1 -0
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +156 -0
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +1 -0
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js +58 -0
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +1 -0
- package/lib/esm/graph/catalog/index.js +22 -0
- package/lib/esm/graph/catalog/index.js.map +1 -0
- package/lib/esm/graph/constants.js +13 -0
- package/lib/esm/graph/constants.js.map +1 -1
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +290 -0
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -0
- package/lib/esm/graph/document/GraphEdgeInstance.js +2 -0
- package/lib/esm/graph/document/GraphEdgeInstance.js.map +1 -0
- package/lib/esm/graph/document/GraphEndpoint.js +21 -0
- package/lib/esm/graph/document/GraphEndpoint.js.map +1 -0
- package/lib/esm/graph/document/GraphJsonValue.js +73 -0
- package/lib/esm/graph/document/GraphJsonValue.js.map +1 -0
- package/lib/esm/graph/document/GraphLoopConfiguration.js +2 -0
- package/lib/esm/graph/document/GraphLoopConfiguration.js.map +1 -0
- package/lib/esm/graph/document/GraphNodeBinding.js +22 -0
- package/lib/esm/graph/document/GraphNodeBinding.js.map +1 -0
- package/lib/esm/graph/document/GraphNodeInstance.js +2 -0
- package/lib/esm/graph/document/GraphNodeInstance.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocument.js +12 -0
- package/lib/esm/graph/document/GraphWorkflowDocument.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +261 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +62 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +63 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowUiState.js +2 -0
- package/lib/esm/graph/document/GraphWorkflowUiState.js.map +1 -0
- package/lib/esm/graph/document/index.js +13 -0
- package/lib/esm/graph/document/index.js.map +1 -0
- package/lib/esm/graph/index.js +2 -0
- package/lib/esm/graph/index.js.map +1 -1
- package/lib/esm/graph/snapshot.js +333 -0
- package/lib/esm/graph/snapshot.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +9 -0
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +9 -0
- package/lib/types/graph/catalog/GraphCredentialReference.d.cts +6 -0
- package/lib/types/graph/catalog/GraphCredentialReference.d.mts +6 -0
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +7 -0
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +7 -0
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +22 -0
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +22 -0
- package/lib/types/graph/catalog/GraphIconReference.d.cts +12 -0
- package/lib/types/graph/catalog/GraphIconReference.d.mts +12 -0
- package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +14 -0
- package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +14 -0
- package/lib/types/graph/catalog/GraphNodeCapability.d.cts +4 -0
- package/lib/types/graph/catalog/GraphNodeCapability.d.mts +4 -0
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +16 -0
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +16 -0
- package/lib/types/graph/catalog/GraphNodeManifest.d.cts +26 -0
- package/lib/types/graph/catalog/GraphNodeManifest.d.mts +26 -0
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +7 -0
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +7 -0
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +10 -0
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +10 -0
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +11 -0
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +11 -0
- package/lib/types/graph/catalog/GraphParameterBase.d.cts +14 -0
- package/lib/types/graph/catalog/GraphParameterBase.d.mts +14 -0
- package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +66 -0
- package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +66 -0
- package/lib/types/graph/catalog/GraphParameterOption.d.cts +8 -0
- package/lib/types/graph/catalog/GraphParameterOption.d.mts +8 -0
- package/lib/types/graph/catalog/GraphParameterValidation.d.cts +25 -0
- package/lib/types/graph/catalog/GraphParameterValidation.d.mts +25 -0
- package/lib/types/graph/catalog/GraphPortManifest.d.cts +21 -0
- package/lib/types/graph/catalog/GraphPortManifest.d.mts +21 -0
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +10 -0
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +10 -0
- package/lib/types/graph/catalog/GraphValueSchema.d.cts +44 -0
- package/lib/types/graph/catalog/GraphValueSchema.d.mts +44 -0
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +9 -0
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +9 -0
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +22 -0
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +22 -0
- package/lib/types/graph/catalog/index.d.cts +21 -0
- package/lib/types/graph/catalog/index.d.mts +21 -0
- package/lib/types/graph/constants.d.cts +8 -0
- package/lib/types/graph/constants.d.mts +8 -0
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +26 -0
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +26 -0
- package/lib/types/graph/document/GraphEdgeInstance.d.cts +12 -0
- package/lib/types/graph/document/GraphEdgeInstance.d.mts +12 -0
- package/lib/types/graph/document/GraphEndpoint.d.cts +13 -0
- package/lib/types/graph/document/GraphEndpoint.d.mts +13 -0
- package/lib/types/graph/document/GraphJsonValue.d.cts +11 -0
- package/lib/types/graph/document/GraphJsonValue.d.mts +11 -0
- package/lib/types/graph/document/GraphLoopConfiguration.d.cts +24 -0
- package/lib/types/graph/document/GraphLoopConfiguration.d.mts +24 -0
- package/lib/types/graph/document/GraphNodeBinding.d.cts +21 -0
- package/lib/types/graph/document/GraphNodeBinding.d.mts +21 -0
- package/lib/types/graph/document/GraphNodeInstance.d.cts +16 -0
- package/lib/types/graph/document/GraphNodeInstance.d.mts +16 -0
- package/lib/types/graph/document/GraphWorkflowDocument.d.cts +33 -0
- package/lib/types/graph/document/GraphWorkflowDocument.d.mts +33 -0
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +28 -0
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +28 -0
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +21 -0
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +21 -0
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +5 -0
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +5 -0
- package/lib/types/graph/document/GraphWorkflowUiState.d.cts +29 -0
- package/lib/types/graph/document/GraphWorkflowUiState.d.mts +29 -0
- package/lib/types/graph/document/index.d.cts +12 -0
- package/lib/types/graph/document/index.d.mts +12 -0
- package/lib/types/graph/index.d.cts +2 -0
- package/lib/types/graph/index.d.mts +2 -0
- package/lib/types/graph/snapshot.d.cts +67 -7
- package/lib/types/graph/snapshot.d.mts +67 -7
- package/lib/types/graph/types.d.cts +1 -1
- package/lib/types/graph/types.d.mts +1 -1
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
import type { GraphNodeDisplayManifest } from "./GraphNodeDisplayManifest.d.cts";
|
|
3
|
+
import type { GraphPortManifest } from "./GraphPortManifest.d.cts";
|
|
4
|
+
import type { GraphParameterDefinition } from "./GraphParameterDefinition.d.cts";
|
|
5
|
+
import type { GraphNodeMethodManifest } from "./GraphNodeMethodManifest.d.cts";
|
|
6
|
+
import type { GraphNodeCapability } from "./GraphNodeCapability.d.cts";
|
|
7
|
+
import type { GraphNodePolicyManifest } from "./GraphNodePolicyManifest.d.cts";
|
|
8
|
+
import type { GraphCredentialRequirement } from "./GraphCredentialRequirement.d.cts";
|
|
9
|
+
import type { GraphDynamicPortRule } from "./GraphDynamicPortRule.d.cts";
|
|
10
|
+
export interface GraphNodeManifest {
|
|
11
|
+
kind: string;
|
|
12
|
+
display: GraphNodeDisplayManifest;
|
|
13
|
+
inputs: GraphPortManifest[];
|
|
14
|
+
outputs: GraphPortManifest[];
|
|
15
|
+
connections?: GraphPortManifest[];
|
|
16
|
+
parameters: GraphParameterDefinition[];
|
|
17
|
+
dynamicPorts?: GraphDynamicPortRule[];
|
|
18
|
+
credentials?: GraphCredentialRequirement[];
|
|
19
|
+
capabilities?: GraphNodeCapability[];
|
|
20
|
+
methods?: GraphNodeMethodManifest[];
|
|
21
|
+
policies?: GraphNodePolicyManifest;
|
|
22
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
23
|
+
}
|
|
24
|
+
export declare function isGraphNodeManifest(value: unknown): value is GraphNodeManifest;
|
|
25
|
+
export declare function graphDataPortManifestsOf(manifest: GraphNodeManifest, direction: "input" | "output"): GraphPortManifest[];
|
|
26
|
+
export declare function graphConnectionPortManifests(manifest: GraphNodeManifest): GraphPortManifest[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
import type { GraphNodeDisplayManifest } from "./GraphNodeDisplayManifest.d.mts";
|
|
3
|
+
import type { GraphPortManifest } from "./GraphPortManifest.d.mts";
|
|
4
|
+
import type { GraphParameterDefinition } from "./GraphParameterDefinition.d.mts";
|
|
5
|
+
import type { GraphNodeMethodManifest } from "./GraphNodeMethodManifest.d.mts";
|
|
6
|
+
import type { GraphNodeCapability } from "./GraphNodeCapability.d.mts";
|
|
7
|
+
import type { GraphNodePolicyManifest } from "./GraphNodePolicyManifest.d.mts";
|
|
8
|
+
import type { GraphCredentialRequirement } from "./GraphCredentialRequirement.d.mts";
|
|
9
|
+
import type { GraphDynamicPortRule } from "./GraphDynamicPortRule.d.mts";
|
|
10
|
+
export interface GraphNodeManifest {
|
|
11
|
+
kind: string;
|
|
12
|
+
display: GraphNodeDisplayManifest;
|
|
13
|
+
inputs: GraphPortManifest[];
|
|
14
|
+
outputs: GraphPortManifest[];
|
|
15
|
+
connections?: GraphPortManifest[];
|
|
16
|
+
parameters: GraphParameterDefinition[];
|
|
17
|
+
dynamicPorts?: GraphDynamicPortRule[];
|
|
18
|
+
credentials?: GraphCredentialRequirement[];
|
|
19
|
+
capabilities?: GraphNodeCapability[];
|
|
20
|
+
methods?: GraphNodeMethodManifest[];
|
|
21
|
+
policies?: GraphNodePolicyManifest;
|
|
22
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
23
|
+
}
|
|
24
|
+
export declare function isGraphNodeManifest(value: unknown): value is GraphNodeManifest;
|
|
25
|
+
export declare function graphDataPortManifestsOf(manifest: GraphNodeManifest, direction: "input" | "output"): GraphPortManifest[];
|
|
26
|
+
export declare function graphConnectionPortManifests(manifest: GraphNodeManifest): GraphPortManifest[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
import type { GraphNodeManifest } from "./GraphNodeManifest.d.cts";
|
|
3
|
+
export declare function assertGraphNodeManifestSerializable(manifest: GraphNodeManifest): void;
|
|
4
|
+
export declare function serializeGraphNodeManifest(manifest: GraphNodeManifest): Record<string, GraphJsonValue>;
|
|
5
|
+
export declare function deserializeGraphNodeManifest(serialized: Record<string, GraphJsonValue>): GraphNodeManifest;
|
|
6
|
+
export declare function graphNodeManifestSerializer(manifest: GraphNodeManifest): string;
|
|
7
|
+
export declare function graphNodeManifestDeserializer(serialised: string): GraphNodeManifest;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
import type { GraphNodeManifest } from "./GraphNodeManifest.d.mts";
|
|
3
|
+
export declare function assertGraphNodeManifestSerializable(manifest: GraphNodeManifest): void;
|
|
4
|
+
export declare function serializeGraphNodeManifest(manifest: GraphNodeManifest): Record<string, GraphJsonValue>;
|
|
5
|
+
export declare function deserializeGraphNodeManifest(serialized: Record<string, GraphJsonValue>): GraphNodeManifest;
|
|
6
|
+
export declare function graphNodeManifestSerializer(manifest: GraphNodeManifest): string;
|
|
7
|
+
export declare function graphNodeManifestDeserializer(serialised: string): GraphNodeManifest;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GraphNodeMethodType = "loadOptions" | "listSearch" | "resourceLocator" | "resourceMapping" | "validateParameter" | "action";
|
|
2
|
+
export interface GraphNodeMethodManifest {
|
|
3
|
+
name: string;
|
|
4
|
+
type: GraphNodeMethodType;
|
|
5
|
+
parameter?: string;
|
|
6
|
+
dependencies?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const GRAPH_NODE_METHOD_TYPES: readonly ["loadOptions", "listSearch", "resourceLocator", "resourceMapping", "validateParameter", "action"];
|
|
9
|
+
export declare function isGraphNodeMethodType(value: unknown): value is GraphNodeMethodType;
|
|
10
|
+
export declare function isGraphNodeMethodManifest(value: unknown): value is GraphNodeMethodManifest;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GraphNodeMethodType = "loadOptions" | "listSearch" | "resourceLocator" | "resourceMapping" | "validateParameter" | "action";
|
|
2
|
+
export interface GraphNodeMethodManifest {
|
|
3
|
+
name: string;
|
|
4
|
+
type: GraphNodeMethodType;
|
|
5
|
+
parameter?: string;
|
|
6
|
+
dependencies?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const GRAPH_NODE_METHOD_TYPES: readonly ["loadOptions", "listSearch", "resourceLocator", "resourceMapping", "validateParameter", "action"];
|
|
9
|
+
export declare function isGraphNodeMethodType(value: unknown): value is GraphNodeMethodType;
|
|
10
|
+
export declare function isGraphNodeMethodManifest(value: unknown): value is GraphNodeMethodManifest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface GraphNodePolicyManifest {
|
|
2
|
+
allowManualTrigger?: "always" | "never" | "partial";
|
|
3
|
+
allowRetry?: boolean;
|
|
4
|
+
maxRetries?: number;
|
|
5
|
+
allowCancel?: boolean;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
concurrency?: number;
|
|
8
|
+
inputMode?: GraphNodePolicyInputMode;
|
|
9
|
+
}
|
|
10
|
+
export type GraphNodePolicyInputMode = "any" | "single" | "multiple";
|
|
11
|
+
export declare function isGraphNodePolicyManifest(value: unknown): value is GraphNodePolicyManifest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface GraphNodePolicyManifest {
|
|
2
|
+
allowManualTrigger?: "always" | "never" | "partial";
|
|
3
|
+
allowRetry?: boolean;
|
|
4
|
+
maxRetries?: number;
|
|
5
|
+
allowCancel?: boolean;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
concurrency?: number;
|
|
8
|
+
inputMode?: GraphNodePolicyInputMode;
|
|
9
|
+
}
|
|
10
|
+
export type GraphNodePolicyInputMode = "any" | "single" | "multiple";
|
|
11
|
+
export declare function isGraphNodePolicyManifest(value: unknown): value is GraphNodePolicyManifest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
import type { GraphParameterValidation } from "./GraphParameterValidation.d.cts";
|
|
3
|
+
import type { GraphVisibilityExpression } from "./GraphVisibilityExpression.d.cts";
|
|
4
|
+
export interface GraphParameterBase {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
defaultValue?: GraphJsonValue;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
visibility?: GraphVisibilityExpression;
|
|
12
|
+
validation?: GraphParameterValidation[];
|
|
13
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
import type { GraphParameterValidation } from "./GraphParameterValidation.d.mts";
|
|
3
|
+
import type { GraphVisibilityExpression } from "./GraphVisibilityExpression.d.mts";
|
|
4
|
+
export interface GraphParameterBase {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
defaultValue?: GraphJsonValue;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
visibility?: GraphVisibilityExpression;
|
|
12
|
+
validation?: GraphParameterValidation[];
|
|
13
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { GraphParameterBase } from "./GraphParameterBase.d.cts";
|
|
2
|
+
import type { GraphParameterOption } from "./GraphParameterOption.d.cts";
|
|
3
|
+
import type { GraphResourceLocatorMode } from "./GraphResourceLocatorMode.d.cts";
|
|
4
|
+
export interface GraphStringParameter extends GraphParameterBase {
|
|
5
|
+
type: "string";
|
|
6
|
+
multiline?: boolean;
|
|
7
|
+
minLength?: number;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
pattern?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GraphNumberParameter extends GraphParameterBase {
|
|
12
|
+
type: "number";
|
|
13
|
+
integer?: boolean;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
step?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GraphBooleanParameter extends GraphParameterBase {
|
|
19
|
+
type: "boolean";
|
|
20
|
+
}
|
|
21
|
+
export interface GraphOptionsParameter extends GraphParameterBase {
|
|
22
|
+
type: "options";
|
|
23
|
+
options?: GraphParameterOption[];
|
|
24
|
+
loadOptionsMethod?: string;
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface GraphCollectionParameter extends GraphParameterBase {
|
|
28
|
+
type: "collection";
|
|
29
|
+
itemIdPath?: string;
|
|
30
|
+
itemLabelPath?: string;
|
|
31
|
+
itemParameters?: GraphParameterDefinition[];
|
|
32
|
+
maxItems?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface GraphObjectParameter extends GraphParameterBase {
|
|
35
|
+
type: "object";
|
|
36
|
+
properties?: GraphParameterDefinition[];
|
|
37
|
+
}
|
|
38
|
+
export interface GraphCodeParameter extends GraphParameterBase {
|
|
39
|
+
type: "code";
|
|
40
|
+
language: "javascript" | "typescript" | "json" | "text";
|
|
41
|
+
validateMethod?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GraphExpressionParameter extends GraphParameterBase {
|
|
44
|
+
type: "expression";
|
|
45
|
+
}
|
|
46
|
+
export interface GraphResourceLocatorParameter extends GraphParameterBase {
|
|
47
|
+
type: "resourceLocator";
|
|
48
|
+
modes: GraphResourceLocatorMode[];
|
|
49
|
+
}
|
|
50
|
+
export interface GraphCredentialParameter extends GraphParameterBase {
|
|
51
|
+
type: "credential";
|
|
52
|
+
credentialType: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GraphNoticeParameter extends GraphParameterBase {
|
|
55
|
+
type: "notice";
|
|
56
|
+
noticeVariant: "info" | "warning" | "error" | "success";
|
|
57
|
+
noticeContent: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GraphHiddenParameter extends GraphParameterBase {
|
|
60
|
+
type: "hidden";
|
|
61
|
+
}
|
|
62
|
+
export type GraphParameterDefinition = GraphStringParameter | GraphNumberParameter | GraphBooleanParameter | GraphOptionsParameter | GraphCollectionParameter | GraphObjectParameter | GraphCodeParameter | GraphExpressionParameter | GraphResourceLocatorParameter | GraphCredentialParameter | GraphNoticeParameter | GraphHiddenParameter;
|
|
63
|
+
export declare const GRAPH_PARAMETER_TYPES: readonly ["string", "number", "boolean", "options", "collection", "object", "code", "expression", "resourceLocator", "credential", "notice", "hidden"];
|
|
64
|
+
export type GraphParameterDefinitionType = (typeof GRAPH_PARAMETER_TYPES)[number];
|
|
65
|
+
export declare function isGraphParameterDefinitionType(value: unknown): value is GraphParameterDefinitionType;
|
|
66
|
+
export declare function isGraphParameterDefinition(value: unknown): value is GraphParameterDefinition;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { GraphParameterBase } from "./GraphParameterBase.d.mts";
|
|
2
|
+
import type { GraphParameterOption } from "./GraphParameterOption.d.mts";
|
|
3
|
+
import type { GraphResourceLocatorMode } from "./GraphResourceLocatorMode.d.mts";
|
|
4
|
+
export interface GraphStringParameter extends GraphParameterBase {
|
|
5
|
+
type: "string";
|
|
6
|
+
multiline?: boolean;
|
|
7
|
+
minLength?: number;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
pattern?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GraphNumberParameter extends GraphParameterBase {
|
|
12
|
+
type: "number";
|
|
13
|
+
integer?: boolean;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
step?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface GraphBooleanParameter extends GraphParameterBase {
|
|
19
|
+
type: "boolean";
|
|
20
|
+
}
|
|
21
|
+
export interface GraphOptionsParameter extends GraphParameterBase {
|
|
22
|
+
type: "options";
|
|
23
|
+
options?: GraphParameterOption[];
|
|
24
|
+
loadOptionsMethod?: string;
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface GraphCollectionParameter extends GraphParameterBase {
|
|
28
|
+
type: "collection";
|
|
29
|
+
itemIdPath?: string;
|
|
30
|
+
itemLabelPath?: string;
|
|
31
|
+
itemParameters?: GraphParameterDefinition[];
|
|
32
|
+
maxItems?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface GraphObjectParameter extends GraphParameterBase {
|
|
35
|
+
type: "object";
|
|
36
|
+
properties?: GraphParameterDefinition[];
|
|
37
|
+
}
|
|
38
|
+
export interface GraphCodeParameter extends GraphParameterBase {
|
|
39
|
+
type: "code";
|
|
40
|
+
language: "javascript" | "typescript" | "json" | "text";
|
|
41
|
+
validateMethod?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GraphExpressionParameter extends GraphParameterBase {
|
|
44
|
+
type: "expression";
|
|
45
|
+
}
|
|
46
|
+
export interface GraphResourceLocatorParameter extends GraphParameterBase {
|
|
47
|
+
type: "resourceLocator";
|
|
48
|
+
modes: GraphResourceLocatorMode[];
|
|
49
|
+
}
|
|
50
|
+
export interface GraphCredentialParameter extends GraphParameterBase {
|
|
51
|
+
type: "credential";
|
|
52
|
+
credentialType: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GraphNoticeParameter extends GraphParameterBase {
|
|
55
|
+
type: "notice";
|
|
56
|
+
noticeVariant: "info" | "warning" | "error" | "success";
|
|
57
|
+
noticeContent: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GraphHiddenParameter extends GraphParameterBase {
|
|
60
|
+
type: "hidden";
|
|
61
|
+
}
|
|
62
|
+
export type GraphParameterDefinition = GraphStringParameter | GraphNumberParameter | GraphBooleanParameter | GraphOptionsParameter | GraphCollectionParameter | GraphObjectParameter | GraphCodeParameter | GraphExpressionParameter | GraphResourceLocatorParameter | GraphCredentialParameter | GraphNoticeParameter | GraphHiddenParameter;
|
|
63
|
+
export declare const GRAPH_PARAMETER_TYPES: readonly ["string", "number", "boolean", "options", "collection", "object", "code", "expression", "resourceLocator", "credential", "notice", "hidden"];
|
|
64
|
+
export type GraphParameterDefinitionType = (typeof GRAPH_PARAMETER_TYPES)[number];
|
|
65
|
+
export declare function isGraphParameterDefinitionType(value: unknown): value is GraphParameterDefinitionType;
|
|
66
|
+
export declare function isGraphParameterDefinition(value: unknown): value is GraphParameterDefinition;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
export interface GraphParameterOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: GraphJsonPrimitive;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function isGraphParameterOption(value: unknown): value is GraphParameterOption;
|
|
8
|
+
export declare function isGraphParameterOptionArray(value: unknown): value is GraphParameterOption[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
export interface GraphParameterOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: GraphJsonPrimitive;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function isGraphParameterOption(value: unknown): value is GraphParameterOption;
|
|
8
|
+
export declare function isGraphParameterOptionArray(value: unknown): value is GraphParameterOption[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type GraphParameterValidation = {
|
|
2
|
+
kind: "required";
|
|
3
|
+
message?: string;
|
|
4
|
+
} | {
|
|
5
|
+
kind: "min" | "max" | "step" | "minLength" | "maxLength";
|
|
6
|
+
value: number;
|
|
7
|
+
message?: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: "pattern";
|
|
10
|
+
value: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: "enum";
|
|
14
|
+
values: (string | number | boolean)[];
|
|
15
|
+
message?: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "method";
|
|
18
|
+
method: string;
|
|
19
|
+
message?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const GRAPH_PARAMETER_VALIDATION_KINDS: readonly ["required", "min", "max", "step", "minLength", "maxLength", "pattern", "enum", "method"];
|
|
22
|
+
export type GraphParameterValidationKind = (typeof GRAPH_PARAMETER_VALIDATION_KINDS)[number];
|
|
23
|
+
export declare function isGraphParameterValidationKind(value: unknown): value is GraphParameterValidationKind;
|
|
24
|
+
export declare function isGraphParameterValidation(value: unknown): value is GraphParameterValidation;
|
|
25
|
+
export declare function isGraphParameterValidationList(value: unknown): value is GraphParameterValidation[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type GraphParameterValidation = {
|
|
2
|
+
kind: "required";
|
|
3
|
+
message?: string;
|
|
4
|
+
} | {
|
|
5
|
+
kind: "min" | "max" | "step" | "minLength" | "maxLength";
|
|
6
|
+
value: number;
|
|
7
|
+
message?: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: "pattern";
|
|
10
|
+
value: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: "enum";
|
|
14
|
+
values: (string | number | boolean)[];
|
|
15
|
+
message?: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "method";
|
|
18
|
+
method: string;
|
|
19
|
+
message?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const GRAPH_PARAMETER_VALIDATION_KINDS: readonly ["required", "min", "max", "step", "minLength", "maxLength", "pattern", "enum", "method"];
|
|
22
|
+
export type GraphParameterValidationKind = (typeof GRAPH_PARAMETER_VALIDATION_KINDS)[number];
|
|
23
|
+
export declare function isGraphParameterValidationKind(value: unknown): value is GraphParameterValidationKind;
|
|
24
|
+
export declare function isGraphParameterValidation(value: unknown): value is GraphParameterValidation;
|
|
25
|
+
export declare function isGraphParameterValidationList(value: unknown): value is GraphParameterValidation[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
import type { GraphConnectionPolicy } from "./GraphConnectionPolicy.d.cts";
|
|
3
|
+
import type { GraphValueSchema } from "./GraphValueSchema.d.cts";
|
|
4
|
+
export interface GraphPortManifest {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
direction: "input" | "output" | "connection";
|
|
8
|
+
schema?: GraphValueSchema;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
category?: string;
|
|
12
|
+
handle?: string;
|
|
13
|
+
connectionPolicy?: GraphConnectionPolicy;
|
|
14
|
+
configurable?: boolean;
|
|
15
|
+
defaultMode?: "edge" | "literal" | "expression";
|
|
16
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
17
|
+
}
|
|
18
|
+
export declare const GRAPH_PORT_MANIFEST_DIRECTIONS: readonly ["input", "output", "connection"];
|
|
19
|
+
export type GraphPortManifestDirection = (typeof GRAPH_PORT_MANIFEST_DIRECTIONS)[number];
|
|
20
|
+
export declare function isGraphPortManifestDirection(value: unknown): value is GraphPortManifestDirection;
|
|
21
|
+
export declare function isGraphPortManifest(value: unknown): value is GraphPortManifest;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
import type { GraphConnectionPolicy } from "./GraphConnectionPolicy.d.mts";
|
|
3
|
+
import type { GraphValueSchema } from "./GraphValueSchema.d.mts";
|
|
4
|
+
export interface GraphPortManifest {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
direction: "input" | "output" | "connection";
|
|
8
|
+
schema?: GraphValueSchema;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
category?: string;
|
|
12
|
+
handle?: string;
|
|
13
|
+
connectionPolicy?: GraphConnectionPolicy;
|
|
14
|
+
configurable?: boolean;
|
|
15
|
+
defaultMode?: "edge" | "literal" | "expression";
|
|
16
|
+
metadata?: Record<string, GraphJsonValue>;
|
|
17
|
+
}
|
|
18
|
+
export declare const GRAPH_PORT_MANIFEST_DIRECTIONS: readonly ["input", "output", "connection"];
|
|
19
|
+
export type GraphPortManifestDirection = (typeof GRAPH_PORT_MANIFEST_DIRECTIONS)[number];
|
|
20
|
+
export declare function isGraphPortManifestDirection(value: unknown): value is GraphPortManifestDirection;
|
|
21
|
+
export declare function isGraphPortManifest(value: unknown): value is GraphPortManifest;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
export declare const GRAPH_RESOURCE_LOCATOR_MODES: readonly ["list", "dynamic"];
|
|
3
|
+
export type GraphResourceLocatorMode = (typeof GRAPH_RESOURCE_LOCATOR_MODES)[number];
|
|
4
|
+
export type GraphResourceLocatorValue = {
|
|
5
|
+
mode: GraphResourceLocatorMode;
|
|
6
|
+
value?: GraphJsonValue;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function isGraphResourceLocatorMode(value: unknown): value is GraphResourceLocatorMode;
|
|
10
|
+
export declare function isGraphResourceLocatorValue(value: unknown): value is GraphResourceLocatorValue;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GraphJsonValue } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
export declare const GRAPH_RESOURCE_LOCATOR_MODES: readonly ["list", "dynamic"];
|
|
3
|
+
export type GraphResourceLocatorMode = (typeof GRAPH_RESOURCE_LOCATOR_MODES)[number];
|
|
4
|
+
export type GraphResourceLocatorValue = {
|
|
5
|
+
mode: GraphResourceLocatorMode;
|
|
6
|
+
value?: GraphJsonValue;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function isGraphResourceLocatorMode(value: unknown): value is GraphResourceLocatorMode;
|
|
10
|
+
export declare function isGraphResourceLocatorValue(value: unknown): value is GraphResourceLocatorValue;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
export type { GraphJsonValue, GraphJsonPrimitive } from "../document/GraphJsonValue.d.cts";
|
|
3
|
+
export type GraphAnyValueSchema = {
|
|
4
|
+
type: "any";
|
|
5
|
+
};
|
|
6
|
+
export type GraphStringValueSchema = {
|
|
7
|
+
type: "string";
|
|
8
|
+
format?: string;
|
|
9
|
+
};
|
|
10
|
+
export type GraphNumberValueSchema = {
|
|
11
|
+
type: "number";
|
|
12
|
+
integer?: boolean;
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
};
|
|
16
|
+
export type GraphBooleanValueSchema = {
|
|
17
|
+
type: "boolean";
|
|
18
|
+
};
|
|
19
|
+
export type GraphArrayValueSchema = {
|
|
20
|
+
type: "array";
|
|
21
|
+
items: GraphValueSchema;
|
|
22
|
+
minItems?: number;
|
|
23
|
+
maxItems?: number;
|
|
24
|
+
};
|
|
25
|
+
export type GraphObjectValueSchema = {
|
|
26
|
+
type: "object";
|
|
27
|
+
properties: Record<string, GraphValueSchema>;
|
|
28
|
+
required?: string[];
|
|
29
|
+
additionalProperties?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type GraphEnumValueSchema = {
|
|
32
|
+
type: "enum";
|
|
33
|
+
values: GraphJsonPrimitive[];
|
|
34
|
+
};
|
|
35
|
+
export type GraphModelValueSchema = {
|
|
36
|
+
type: "model";
|
|
37
|
+
name: string;
|
|
38
|
+
properties?: Record<string, GraphValueSchema>;
|
|
39
|
+
};
|
|
40
|
+
export type GraphValueSchema = GraphAnyValueSchema | GraphStringValueSchema | GraphNumberValueSchema | GraphBooleanValueSchema | GraphArrayValueSchema | GraphObjectValueSchema | GraphEnumValueSchema | GraphModelValueSchema;
|
|
41
|
+
export declare const GRAPH_VALUE_SCHEMA_TYPES: readonly ["any", "string", "number", "boolean", "array", "object", "enum", "model"];
|
|
42
|
+
export type GraphValueSchemaType = (typeof GRAPH_VALUE_SCHEMA_TYPES)[number];
|
|
43
|
+
export declare function isGraphValueSchemaType(value: unknown): value is GraphValueSchemaType;
|
|
44
|
+
export declare function isGraphValueSchema(value: unknown): value is GraphValueSchema;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
export type { GraphJsonValue, GraphJsonPrimitive } from "../document/GraphJsonValue.d.mts";
|
|
3
|
+
export type GraphAnyValueSchema = {
|
|
4
|
+
type: "any";
|
|
5
|
+
};
|
|
6
|
+
export type GraphStringValueSchema = {
|
|
7
|
+
type: "string";
|
|
8
|
+
format?: string;
|
|
9
|
+
};
|
|
10
|
+
export type GraphNumberValueSchema = {
|
|
11
|
+
type: "number";
|
|
12
|
+
integer?: boolean;
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
};
|
|
16
|
+
export type GraphBooleanValueSchema = {
|
|
17
|
+
type: "boolean";
|
|
18
|
+
};
|
|
19
|
+
export type GraphArrayValueSchema = {
|
|
20
|
+
type: "array";
|
|
21
|
+
items: GraphValueSchema;
|
|
22
|
+
minItems?: number;
|
|
23
|
+
maxItems?: number;
|
|
24
|
+
};
|
|
25
|
+
export type GraphObjectValueSchema = {
|
|
26
|
+
type: "object";
|
|
27
|
+
properties: Record<string, GraphValueSchema>;
|
|
28
|
+
required?: string[];
|
|
29
|
+
additionalProperties?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type GraphEnumValueSchema = {
|
|
32
|
+
type: "enum";
|
|
33
|
+
values: GraphJsonPrimitive[];
|
|
34
|
+
};
|
|
35
|
+
export type GraphModelValueSchema = {
|
|
36
|
+
type: "model";
|
|
37
|
+
name: string;
|
|
38
|
+
properties?: Record<string, GraphValueSchema>;
|
|
39
|
+
};
|
|
40
|
+
export type GraphValueSchema = GraphAnyValueSchema | GraphStringValueSchema | GraphNumberValueSchema | GraphBooleanValueSchema | GraphArrayValueSchema | GraphObjectValueSchema | GraphEnumValueSchema | GraphModelValueSchema;
|
|
41
|
+
export declare const GRAPH_VALUE_SCHEMA_TYPES: readonly ["any", "string", "number", "boolean", "array", "object", "enum", "model"];
|
|
42
|
+
export type GraphValueSchemaType = (typeof GRAPH_VALUE_SCHEMA_TYPES)[number];
|
|
43
|
+
export declare function isGraphValueSchemaType(value: unknown): value is GraphValueSchemaType;
|
|
44
|
+
export declare function isGraphValueSchema(value: unknown): value is GraphValueSchema;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ValidatorOptions } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import type { GraphJsonPrimitive, GraphValueSchema, GraphValueSchemaType } from "./GraphValueSchema.d.cts";
|
|
3
|
+
export type GraphValidationRecord = Record<string, ValidatorOptions>;
|
|
4
|
+
declare const GRAPH_DATE_TYPE_NAME_FORMATS: Record<string, string>;
|
|
5
|
+
export { GRAPH_DATE_TYPE_NAME_FORMATS };
|
|
6
|
+
export declare function graphTypeNameToSchemaType(typeName: string | undefined): GraphValueSchemaType;
|
|
7
|
+
export declare function graphDateTypeNameToFormat(typeName: string | undefined): string | undefined;
|
|
8
|
+
export declare function graphEnumValuesFromValidation(validation: GraphValidationRecord): GraphJsonPrimitive[] | undefined;
|
|
9
|
+
export declare function graphValueSchemaFromValidation(validation: GraphValidationRecord | undefined, typeName?: string, modelName?: string): GraphValueSchema;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ValidatorOptions } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import type { GraphJsonPrimitive, GraphValueSchema, GraphValueSchemaType } from "./GraphValueSchema.d.mts";
|
|
3
|
+
export type GraphValidationRecord = Record<string, ValidatorOptions>;
|
|
4
|
+
declare const GRAPH_DATE_TYPE_NAME_FORMATS: Record<string, string>;
|
|
5
|
+
export { GRAPH_DATE_TYPE_NAME_FORMATS };
|
|
6
|
+
export declare function graphTypeNameToSchemaType(typeName: string | undefined): GraphValueSchemaType;
|
|
7
|
+
export declare function graphDateTypeNameToFormat(typeName: string | undefined): string | undefined;
|
|
8
|
+
export declare function graphEnumValuesFromValidation(validation: GraphValidationRecord): GraphJsonPrimitive[] | undefined;
|
|
9
|
+
export declare function graphValueSchemaFromValidation(validation: GraphValidationRecord | undefined, typeName?: string, modelName?: string): GraphValueSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.cts";
|
|
2
|
+
export declare const GRAPH_VISIBILITY_OPS: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "in", "notIn", "exists", "and", "or", "not"];
|
|
3
|
+
export type GraphVisibilityOperator = (typeof GRAPH_VISIBILITY_OPS)[number];
|
|
4
|
+
export type GraphVisibilityExpression = {
|
|
5
|
+
op: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
|
|
6
|
+
parameter: string;
|
|
7
|
+
value: GraphJsonPrimitive;
|
|
8
|
+
} | {
|
|
9
|
+
op: "in" | "notIn";
|
|
10
|
+
parameter: string;
|
|
11
|
+
values: GraphJsonPrimitive[];
|
|
12
|
+
} | {
|
|
13
|
+
op: "exists";
|
|
14
|
+
parameter: string;
|
|
15
|
+
} | {
|
|
16
|
+
op: "and" | "or";
|
|
17
|
+
expressions: GraphVisibilityExpression[];
|
|
18
|
+
} | {
|
|
19
|
+
op: "not";
|
|
20
|
+
expression: GraphVisibilityExpression;
|
|
21
|
+
};
|
|
22
|
+
export declare function isGraphVisibilityExpression(value: unknown): value is GraphVisibilityExpression;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { GraphJsonPrimitive } from "../document/GraphJsonValue.d.mts";
|
|
2
|
+
export declare const GRAPH_VISIBILITY_OPS: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "in", "notIn", "exists", "and", "or", "not"];
|
|
3
|
+
export type GraphVisibilityOperator = (typeof GRAPH_VISIBILITY_OPS)[number];
|
|
4
|
+
export type GraphVisibilityExpression = {
|
|
5
|
+
op: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
|
|
6
|
+
parameter: string;
|
|
7
|
+
value: GraphJsonPrimitive;
|
|
8
|
+
} | {
|
|
9
|
+
op: "in" | "notIn";
|
|
10
|
+
parameter: string;
|
|
11
|
+
values: GraphJsonPrimitive[];
|
|
12
|
+
} | {
|
|
13
|
+
op: "exists";
|
|
14
|
+
parameter: string;
|
|
15
|
+
} | {
|
|
16
|
+
op: "and" | "or";
|
|
17
|
+
expressions: GraphVisibilityExpression[];
|
|
18
|
+
} | {
|
|
19
|
+
op: "not";
|
|
20
|
+
expression: GraphVisibilityExpression;
|
|
21
|
+
};
|
|
22
|
+
export declare function isGraphVisibilityExpression(value: unknown): value is GraphVisibilityExpression;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./GraphConnectionPolicy.d.cts";
|
|
2
|
+
export * from "./GraphCredentialReference.d.cts";
|
|
3
|
+
export * from "./GraphCredentialRequirement.d.cts";
|
|
4
|
+
export * from "./GraphDynamicPortRule.d.cts";
|
|
5
|
+
export * from "./GraphIconReference.d.cts";
|
|
6
|
+
export * from "./GraphNodeCapability.d.cts";
|
|
7
|
+
export * from "./GraphNodeDisplayManifest.d.cts";
|
|
8
|
+
export * from "./GraphNodeManifest.d.cts";
|
|
9
|
+
export * from "./GraphNodeManifestSerialization.d.cts";
|
|
10
|
+
export * from "./GraphNodeMethodManifest.d.cts";
|
|
11
|
+
export * from "./GraphNodePolicyManifest.d.cts";
|
|
12
|
+
export * from "./GraphParameterBase.d.cts";
|
|
13
|
+
export * from "./GraphParameterDefinition.d.cts";
|
|
14
|
+
export * from "./GraphParameterOption.d.cts";
|
|
15
|
+
export * from "./GraphParameterValidation.d.cts";
|
|
16
|
+
export * from "./GraphPortManifest.d.cts";
|
|
17
|
+
export * from "./GraphResourceLocatorMode.d.cts";
|
|
18
|
+
export * from "./GraphValueSchema.d.cts";
|
|
19
|
+
export * from "./GraphValueSchemaDerivation.d.cts";
|
|
20
|
+
export * from "./GraphVisibilityExpression.d.cts";
|
|
21
|
+
export * from "./GraphManifestCompiler.d.cts";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./GraphConnectionPolicy.d.mts";
|
|
2
|
+
export * from "./GraphCredentialReference.d.mts";
|
|
3
|
+
export * from "./GraphCredentialRequirement.d.mts";
|
|
4
|
+
export * from "./GraphDynamicPortRule.d.mts";
|
|
5
|
+
export * from "./GraphIconReference.d.mts";
|
|
6
|
+
export * from "./GraphNodeCapability.d.mts";
|
|
7
|
+
export * from "./GraphNodeDisplayManifest.d.mts";
|
|
8
|
+
export * from "./GraphNodeManifest.d.mts";
|
|
9
|
+
export * from "./GraphNodeManifestSerialization.d.mts";
|
|
10
|
+
export * from "./GraphNodeMethodManifest.d.mts";
|
|
11
|
+
export * from "./GraphNodePolicyManifest.d.mts";
|
|
12
|
+
export * from "./GraphParameterBase.d.mts";
|
|
13
|
+
export * from "./GraphParameterDefinition.d.mts";
|
|
14
|
+
export * from "./GraphParameterOption.d.mts";
|
|
15
|
+
export * from "./GraphParameterValidation.d.mts";
|
|
16
|
+
export * from "./GraphPortManifest.d.mts";
|
|
17
|
+
export * from "./GraphResourceLocatorMode.d.mts";
|
|
18
|
+
export * from "./GraphValueSchema.d.mts";
|
|
19
|
+
export * from "./GraphValueSchemaDerivation.d.mts";
|
|
20
|
+
export * from "./GraphVisibilityExpression.d.mts";
|
|
21
|
+
export * from "./GraphManifestCompiler.d.mts";
|