@flowrunner/cli 0.1.19-dev.2 → 0.1.19-dev.3
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/ai-docs/instructions/service-code-format/02-zod-types.md +6 -5
- package/ai-docs/instructions/service-code-format/17-client-certificates.md +4 -5
- package/dist/cli.js +96 -79
- package/dist/cli.js.map +3 -3
- package/dist/index.js +111 -91
- package/dist/index.js.map +3 -3
- package/dist/types/packages/cli/src/constants/testing.d.ts +13 -6
- package/dist/types/shared/src/constants/error-codes.d.ts +14 -0
- package/dist/types/shared/src/constants/flow-catalog.d.ts +54 -0
- package/dist/types/shared/src/constants/index.d.ts +1 -0
- package/dist/types/shared/src/errors/flow-catalog.d.ts +37 -0
- package/dist/types/shared/src/errors/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/flow-catalog/analysis.d.ts +190 -0
- package/dist/types/shared/src/scheme/flow-catalog/index.d.ts +6 -0
- package/dist/types/shared/src/scheme/flow-catalog/pack.d.ts +144 -0
- package/dist/types/shared/src/scheme/flow-catalog/requests.d.ts +664 -0
- package/dist/types/shared/src/scheme/flow-catalog/summary.d.ts +69 -0
- package/dist/types/shared/src/scheme/flow-catalog/version.d.ts +132 -0
- package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +76 -0
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +12 -12
- package/dist/types/shared/src/scheme/properties/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/properties/secret.d.ts +12 -0
- package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +0 -11
- package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -2
- package/dist/types/shared/src/scheme/shared-extensions/rest.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/usage-stats.d.ts +6 -6
- package/package.json +1 -4
- package/project-files/sandbox/nock-mock.js +61 -5
|
@@ -12,17 +12,24 @@ export declare const TESTING_FILES: string[];
|
|
|
12
12
|
/**
|
|
13
13
|
* What the harness needs installed, pinned to the majors it was written against.
|
|
14
14
|
*
|
|
15
|
-
* `query-string
|
|
16
|
-
* CommonJS runtime refuses to execute
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* alone only breaks the harness. `nock-mock.js` also depends on its `parseNumbers` / `parseBooleans`
|
|
20
|
-
* options to put JS types back on a query string that carries none.
|
|
15
|
+
* No `query-string`: v7 drags in a `decode-uri-component` with a high-severity advisory, and v8 and up are
|
|
16
|
+
* ESM-only, which jest's CommonJS runtime refuses to execute. `nock-mock.js` decodes queries and form bodies
|
|
17
|
+
* itself. A project made by an older `init` keeps its own `query-string` — and its old `nock-mock.js` that
|
|
18
|
+
* requires it — because `init` never removes or overwrites.
|
|
21
19
|
*
|
|
22
20
|
* `nock` 14 is the first version that intercepts `fetch` as well as `http`, which is what makes the
|
|
23
21
|
* mock work for a service using a bundled SDK.
|
|
24
22
|
*/
|
|
25
23
|
export declare const TEST_DEV_DEPENDENCIES: Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Added to `overrides`, and only where the project has no override of that name already.
|
|
26
|
+
*
|
|
27
|
+
* jest 30 reaches `glob@10` through `babel-plugin-istanbul` → `test-exclude@7`, and npm prints a
|
|
28
|
+
* deprecation warning for it on every fresh install. `test-exclude@7` only calls `glob()`, which glob 13
|
|
29
|
+
* exports unchanged — the same major jest itself already uses — so one glob for the whole tree. Drop this
|
|
30
|
+
* once `babel-plugin-istanbul` moves to `test-exclude@8`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const TEST_OVERRIDES: Record<string, string>;
|
|
26
33
|
/** Added to `scripts`, and only where the project has no script of that name already. */
|
|
27
34
|
export declare const TEST_SCRIPTS: Record<string, string>;
|
|
28
35
|
/**
|
|
@@ -24,3 +24,17 @@ export declare enum SecretErrorTypes {
|
|
|
24
24
|
SECRETS_KEYSET_NOT_CONFIGURED = "SECRETS_KEYSET_NOT_CONFIGURED",
|
|
25
25
|
SECRETS_KEYSET_INVALID = "SECRETS_KEYSET_INVALID"
|
|
26
26
|
}
|
|
27
|
+
export declare enum FlowCatalogErrorTypes {
|
|
28
|
+
PACK_NOT_FOUND = "FLOW_CATALOG_PACK_NOT_FOUND",
|
|
29
|
+
VERSION_NOT_FOUND = "FLOW_CATALOG_VERSION_NOT_FOUND",
|
|
30
|
+
NO_CHANGES = "FLOW_CATALOG_NO_CHANGES",
|
|
31
|
+
IDENTICAL_TO_VERSION = "FLOW_CATALOG_IDENTICAL_TO_VERSION",
|
|
32
|
+
BLOCKING_ISSUES = "FLOW_CATALOG_BLOCKING_ISSUES",
|
|
33
|
+
WARNINGS_NOT_ACKNOWLEDGED = "FLOW_CATALOG_WARNINGS_NOT_ACKNOWLEDGED",
|
|
34
|
+
NOT_PUBLISHED = "FLOW_CATALOG_NOT_PUBLISHED",
|
|
35
|
+
NAME_COLLISION = "FLOW_CATALOG_NAME_COLLISION",
|
|
36
|
+
INVALID_PACK_FILE = "FLOW_CATALOG_INVALID_PACK_FILE",
|
|
37
|
+
SETUP_INCOMPLETE = "FLOW_CATALOG_SETUP_INCOMPLETE",
|
|
38
|
+
EXTENSION_NOT_INSTALLED = "FLOW_CATALOG_EXTENSION_NOT_INSTALLED",
|
|
39
|
+
PACK_PUBLISHED = "FLOW_CATALOG_PACK_PUBLISHED"
|
|
40
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const FlowsPackTagKeys: {
|
|
2
|
+
readonly PACK_ID: "flows-pack-id";
|
|
3
|
+
readonly VERSION: "flows-pack-version";
|
|
4
|
+
readonly INSTALL: "flows-pack-install";
|
|
5
|
+
readonly FLOW: "flows-pack-flow";
|
|
6
|
+
readonly SOURCE: "flows-pack-source";
|
|
7
|
+
readonly BASE_VERSION: "flows-pack-base-version";
|
|
8
|
+
};
|
|
9
|
+
export type FlowsPackTagKeysT = typeof FlowsPackTagKeys[keyof typeof FlowsPackTagKeys];
|
|
10
|
+
export declare const FLOWS_PACK_TAG_SEPARATOR = ":";
|
|
11
|
+
export declare const FLOW_NAME_SEPARATOR = " / ";
|
|
12
|
+
export declare const FLOW_CATALOG_S3_PREFIX = "system/flows-catalog";
|
|
13
|
+
export declare const PACK_FILE_SCHEMA_VERSION = 1;
|
|
14
|
+
export declare const FLOWS_PACK_TAG_MAX_LENGTH = 256;
|
|
15
|
+
export declare const FlowCatalogFindingSeverities: {
|
|
16
|
+
readonly BLOCK: "block";
|
|
17
|
+
readonly WARN: "warn";
|
|
18
|
+
};
|
|
19
|
+
export type FlowCatalogFindingSeveritiesT = typeof FlowCatalogFindingSeverities[keyof typeof FlowCatalogFindingSeverities];
|
|
20
|
+
export declare const FlowCatalogFindingCodes: {
|
|
21
|
+
readonly MCP_BLOCK: "MCP_BLOCK";
|
|
22
|
+
readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
|
|
23
|
+
readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
|
|
24
|
+
readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
|
|
25
|
+
readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
|
|
26
|
+
readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
|
|
27
|
+
readonly SELF_CALL: "SELF_CALL";
|
|
28
|
+
readonly INLINE_AI_KEY: "INLINE_AI_KEY";
|
|
29
|
+
readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
|
|
30
|
+
readonly LANGSMITH_KEY: "LANGSMITH_KEY";
|
|
31
|
+
readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
|
|
32
|
+
readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
|
|
33
|
+
readonly SECRET_LITERAL: "SECRET_LITERAL";
|
|
34
|
+
readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
|
|
35
|
+
readonly INSTALLED_COPY: "INSTALLED_COPY";
|
|
36
|
+
readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
|
|
37
|
+
readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
|
|
38
|
+
};
|
|
39
|
+
export type FlowCatalogFindingCodesT = typeof FlowCatalogFindingCodes[keyof typeof FlowCatalogFindingCodes];
|
|
40
|
+
export declare const FlowCatalogRemovedCodes: {
|
|
41
|
+
readonly PLACEHOLDER_VALUES: "PLACEHOLDER_VALUES";
|
|
42
|
+
readonly CONNECTIONS: "CONNECTIONS";
|
|
43
|
+
readonly AI_KEYS: "AI_KEYS";
|
|
44
|
+
readonly TEST_DATA: "TEST_DATA";
|
|
45
|
+
readonly LEARNED_DATA: "LEARNED_DATA";
|
|
46
|
+
readonly SHARED_MEMORY: "SHARED_MEMORY";
|
|
47
|
+
readonly WAS_LIVE: "WAS_LIVE";
|
|
48
|
+
};
|
|
49
|
+
export type FlowCatalogRemovedCodesT = typeof FlowCatalogRemovedCodes[keyof typeof FlowCatalogRemovedCodes];
|
|
50
|
+
export declare const FlowCatalogPackStatuses: {
|
|
51
|
+
readonly PUBLISHED: "published";
|
|
52
|
+
readonly UNPUBLISHED: "unpublished";
|
|
53
|
+
};
|
|
54
|
+
export type FlowCatalogPackStatusesT = typeof FlowCatalogPackStatuses[keyof typeof FlowCatalogPackStatuses];
|
|
@@ -7,6 +7,7 @@ export * from './compliances';
|
|
|
7
7
|
export * from './data-types';
|
|
8
8
|
export * from './docs';
|
|
9
9
|
export * from './error-codes';
|
|
10
|
+
export * from './flow-catalog';
|
|
10
11
|
export * from './knowledge-base';
|
|
11
12
|
export * from './notification-types';
|
|
12
13
|
export * from './notifications';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ApiError } from './base';
|
|
2
|
+
export declare class FlowCatalogPackNotFoundError extends ApiError {
|
|
3
|
+
constructor(message?: string, details?: unknown);
|
|
4
|
+
}
|
|
5
|
+
export declare class FlowCatalogVersionNotFoundError extends ApiError {
|
|
6
|
+
constructor(message?: string, details?: unknown);
|
|
7
|
+
}
|
|
8
|
+
export declare class FlowCatalogNoChangesError extends ApiError {
|
|
9
|
+
constructor(message?: string, details?: unknown);
|
|
10
|
+
}
|
|
11
|
+
export declare class FlowCatalogIdenticalToVersionError extends ApiError {
|
|
12
|
+
constructor(message?: string, details?: unknown);
|
|
13
|
+
}
|
|
14
|
+
export declare class FlowCatalogNameCollisionError extends ApiError {
|
|
15
|
+
constructor(message?: string, details?: unknown);
|
|
16
|
+
}
|
|
17
|
+
export declare class FlowCatalogNotPublishedError extends ApiError {
|
|
18
|
+
constructor(message?: string, details?: unknown);
|
|
19
|
+
}
|
|
20
|
+
export declare class FlowCatalogPackPublishedError extends ApiError {
|
|
21
|
+
constructor(message?: string, details?: unknown);
|
|
22
|
+
}
|
|
23
|
+
export declare class FlowCatalogBlockingIssuesError extends ApiError {
|
|
24
|
+
constructor(message?: string, details?: unknown);
|
|
25
|
+
}
|
|
26
|
+
export declare class FlowCatalogWarningsNotAcknowledgedError extends ApiError {
|
|
27
|
+
constructor(message?: string, details?: unknown);
|
|
28
|
+
}
|
|
29
|
+
export declare class FlowCatalogInvalidPackFileError extends ApiError {
|
|
30
|
+
constructor(message?: string, details?: unknown);
|
|
31
|
+
}
|
|
32
|
+
export declare class FlowCatalogSetupIncompleteError extends ApiError {
|
|
33
|
+
constructor(message?: string, details?: unknown);
|
|
34
|
+
}
|
|
35
|
+
export declare class FlowCatalogExtensionNotInstalledError extends ApiError {
|
|
36
|
+
constructor(message?: string, details?: unknown);
|
|
37
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AnalysisFindingPatternSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
providerName: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const AnalysisFindingSchema: z.ZodObject<{
|
|
7
|
+
code: z.ZodEnum<{
|
|
8
|
+
readonly MCP_BLOCK: "MCP_BLOCK";
|
|
9
|
+
readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
|
|
10
|
+
readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
|
|
11
|
+
readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
|
|
12
|
+
readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
|
|
13
|
+
readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
|
|
14
|
+
readonly SELF_CALL: "SELF_CALL";
|
|
15
|
+
readonly INLINE_AI_KEY: "INLINE_AI_KEY";
|
|
16
|
+
readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
|
|
17
|
+
readonly LANGSMITH_KEY: "LANGSMITH_KEY";
|
|
18
|
+
readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
|
|
19
|
+
readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
|
|
20
|
+
readonly SECRET_LITERAL: "SECRET_LITERAL";
|
|
21
|
+
readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
|
|
22
|
+
readonly INSTALLED_COPY: "INSTALLED_COPY";
|
|
23
|
+
readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
|
|
24
|
+
readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
|
|
25
|
+
}>;
|
|
26
|
+
severity: z.ZodEnum<{
|
|
27
|
+
readonly BLOCK: "block";
|
|
28
|
+
readonly WARN: "warn";
|
|
29
|
+
}>;
|
|
30
|
+
element: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
elementId: z.ZodString;
|
|
32
|
+
elementName: z.ZodString;
|
|
33
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
39
|
+
maskedValue: z.ZodOptional<z.ZodString>;
|
|
40
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
providerName: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const AnalysisRemovedSchema: z.ZodObject<{
|
|
46
|
+
code: z.ZodEnum<{
|
|
47
|
+
readonly PLACEHOLDER_VALUES: "PLACEHOLDER_VALUES";
|
|
48
|
+
readonly CONNECTIONS: "CONNECTIONS";
|
|
49
|
+
readonly AI_KEYS: "AI_KEYS";
|
|
50
|
+
readonly TEST_DATA: "TEST_DATA";
|
|
51
|
+
readonly LEARNED_DATA: "LEARNED_DATA";
|
|
52
|
+
readonly SHARED_MEMORY: "SHARED_MEMORY";
|
|
53
|
+
readonly WAS_LIVE: "WAS_LIVE";
|
|
54
|
+
}>;
|
|
55
|
+
count: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const AnalysisReportSchema: z.ZodObject<{
|
|
58
|
+
blocking: z.ZodArray<z.ZodObject<{
|
|
59
|
+
code: z.ZodEnum<{
|
|
60
|
+
readonly MCP_BLOCK: "MCP_BLOCK";
|
|
61
|
+
readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
|
|
62
|
+
readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
|
|
63
|
+
readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
|
|
64
|
+
readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
|
|
65
|
+
readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
|
|
66
|
+
readonly SELF_CALL: "SELF_CALL";
|
|
67
|
+
readonly INLINE_AI_KEY: "INLINE_AI_KEY";
|
|
68
|
+
readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
|
|
69
|
+
readonly LANGSMITH_KEY: "LANGSMITH_KEY";
|
|
70
|
+
readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
|
|
71
|
+
readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
|
|
72
|
+
readonly SECRET_LITERAL: "SECRET_LITERAL";
|
|
73
|
+
readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
|
|
74
|
+
readonly INSTALLED_COPY: "INSTALLED_COPY";
|
|
75
|
+
readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
|
|
76
|
+
readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
|
|
77
|
+
}>;
|
|
78
|
+
severity: z.ZodEnum<{
|
|
79
|
+
readonly BLOCK: "block";
|
|
80
|
+
readonly WARN: "warn";
|
|
81
|
+
}>;
|
|
82
|
+
element: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
elementId: z.ZodString;
|
|
84
|
+
elementName: z.ZodString;
|
|
85
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
path: z.ZodString;
|
|
89
|
+
message: z.ZodString;
|
|
90
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
91
|
+
maskedValue: z.ZodOptional<z.ZodString>;
|
|
92
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
providerName: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
98
|
+
code: z.ZodEnum<{
|
|
99
|
+
readonly MCP_BLOCK: "MCP_BLOCK";
|
|
100
|
+
readonly KNOWLEDGE_BASE_BLOCK: "KNOWLEDGE_BASE_BLOCK";
|
|
101
|
+
readonly CUSTOM_EXTENSION_BLOCK: "CUSTOM_EXTENSION_BLOCK";
|
|
102
|
+
readonly CALLS_ANOTHER_FLOW: "CALLS_ANOTHER_FLOW";
|
|
103
|
+
readonly SCHEDULED_RUNS_OTHER_FLOW: "SCHEDULED_RUNS_OTHER_FLOW";
|
|
104
|
+
readonly CALL_FLOW_BY_NAME: "CALL_FLOW_BY_NAME";
|
|
105
|
+
readonly SELF_CALL: "SELF_CALL";
|
|
106
|
+
readonly INLINE_AI_KEY: "INLINE_AI_KEY";
|
|
107
|
+
readonly AUTH_HEADER_LITERAL: "AUTH_HEADER_LITERAL";
|
|
108
|
+
readonly LANGSMITH_KEY: "LANGSMITH_KEY";
|
|
109
|
+
readonly UNKNOWN_BLOCK: "UNKNOWN_BLOCK";
|
|
110
|
+
readonly SUBFLOW_SETUP_REQUIRED: "SUBFLOW_SETUP_REQUIRED";
|
|
111
|
+
readonly SECRET_LITERAL: "SECRET_LITERAL";
|
|
112
|
+
readonly SOURCE_OF_OTHER_PACK: "SOURCE_OF_OTHER_PACK";
|
|
113
|
+
readonly INSTALLED_COPY: "INSTALLED_COPY";
|
|
114
|
+
readonly NOT_PACK_SOURCE: "NOT_PACK_SOURCE";
|
|
115
|
+
readonly SECRET_LIKE_STRING: "SECRET_LIKE_STRING";
|
|
116
|
+
}>;
|
|
117
|
+
severity: z.ZodEnum<{
|
|
118
|
+
readonly BLOCK: "block";
|
|
119
|
+
readonly WARN: "warn";
|
|
120
|
+
}>;
|
|
121
|
+
element: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
elementId: z.ZodString;
|
|
123
|
+
elementName: z.ZodString;
|
|
124
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
path: z.ZodString;
|
|
128
|
+
message: z.ZodString;
|
|
129
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
130
|
+
maskedValue: z.ZodOptional<z.ZodString>;
|
|
131
|
+
pattern: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
providerName: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
removed: z.ZodArray<z.ZodObject<{
|
|
137
|
+
code: z.ZodEnum<{
|
|
138
|
+
readonly PLACEHOLDER_VALUES: "PLACEHOLDER_VALUES";
|
|
139
|
+
readonly CONNECTIONS: "CONNECTIONS";
|
|
140
|
+
readonly AI_KEYS: "AI_KEYS";
|
|
141
|
+
readonly TEST_DATA: "TEST_DATA";
|
|
142
|
+
readonly LEARNED_DATA: "LEARNED_DATA";
|
|
143
|
+
readonly SHARED_MEMORY: "SHARED_MEMORY";
|
|
144
|
+
readonly WAS_LIVE: "WAS_LIVE";
|
|
145
|
+
}>;
|
|
146
|
+
count: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
requirements: z.ZodObject<{
|
|
149
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
150
|
+
hostType: z.ZodEnum<{
|
|
151
|
+
APP: "APP";
|
|
152
|
+
SHARED: "SHARED";
|
|
153
|
+
}>;
|
|
154
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
155
|
+
serviceId: z.ZodString;
|
|
156
|
+
label: z.ZodString;
|
|
157
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
158
|
+
elementId: z.ZodString;
|
|
159
|
+
elementName: z.ZodString;
|
|
160
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
aiKeys: z.ZodArray<z.ZodObject<{
|
|
165
|
+
providerId: z.ZodString;
|
|
166
|
+
label: z.ZodString;
|
|
167
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
168
|
+
elementId: z.ZodString;
|
|
169
|
+
elementName: z.ZodString;
|
|
170
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
placeholders: z.ZodArray<z.ZodObject<{
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
type: z.ZodString;
|
|
177
|
+
description: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
sharedExtensions: z.ZodArray<z.ZodObject<{
|
|
180
|
+
serviceId: z.ZodString;
|
|
181
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
label: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
kept: z.ZodArray<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export type AnalysisFindingPattern = z.infer<typeof AnalysisFindingPatternSchema>;
|
|
188
|
+
export type AnalysisFinding = z.infer<typeof AnalysisFindingSchema>;
|
|
189
|
+
export type AnalysisRemoved = z.infer<typeof AnalysisRemovedSchema>;
|
|
190
|
+
export type AnalysisReport = z.infer<typeof AnalysisReportSchema>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ElementRefSchema: z.ZodObject<{
|
|
3
|
+
elementId: z.ZodString;
|
|
4
|
+
elementName: z.ZodString;
|
|
5
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const ConnectionRequirementSchema: z.ZodObject<{
|
|
9
|
+
hostType: z.ZodEnum<{
|
|
10
|
+
APP: "APP";
|
|
11
|
+
SHARED: "SHARED";
|
|
12
|
+
}>;
|
|
13
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
serviceId: z.ZodString;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
17
|
+
elementId: z.ZodString;
|
|
18
|
+
elementName: z.ZodString;
|
|
19
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const AiKeyRequirementSchema: z.ZodObject<{
|
|
24
|
+
providerId: z.ZodString;
|
|
25
|
+
label: z.ZodString;
|
|
26
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
27
|
+
elementId: z.ZodString;
|
|
28
|
+
elementName: z.ZodString;
|
|
29
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const PlaceholderRequirementSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const SharedExtensionRequirementSchema: z.ZodObject<{
|
|
39
|
+
serviceId: z.ZodString;
|
|
40
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const PackRequirementsSchema: z.ZodObject<{
|
|
44
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
45
|
+
hostType: z.ZodEnum<{
|
|
46
|
+
APP: "APP";
|
|
47
|
+
SHARED: "SHARED";
|
|
48
|
+
}>;
|
|
49
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
serviceId: z.ZodString;
|
|
51
|
+
label: z.ZodString;
|
|
52
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
53
|
+
elementId: z.ZodString;
|
|
54
|
+
elementName: z.ZodString;
|
|
55
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
aiKeys: z.ZodArray<z.ZodObject<{
|
|
60
|
+
providerId: z.ZodString;
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
63
|
+
elementId: z.ZodString;
|
|
64
|
+
elementName: z.ZodString;
|
|
65
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
placeholders: z.ZodArray<z.ZodObject<{
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
type: z.ZodString;
|
|
72
|
+
description: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
sharedExtensions: z.ZodArray<z.ZodObject<{
|
|
75
|
+
serviceId: z.ZodString;
|
|
76
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const PackHashSchema: z.ZodString;
|
|
81
|
+
export declare const PackFlowSchema: z.ZodObject<{
|
|
82
|
+
packFlowKey: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
flowHash: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const PackManifestSchema: z.ZodObject<{
|
|
87
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
88
|
+
packId: z.ZodString;
|
|
89
|
+
versionHash: z.ZodString;
|
|
90
|
+
versionName: z.ZodNumber;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
description: z.ZodString;
|
|
93
|
+
flows: z.ZodArray<z.ZodObject<{
|
|
94
|
+
packFlowKey: z.ZodString;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
flowHash: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
requirements: z.ZodObject<{
|
|
99
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
100
|
+
hostType: z.ZodEnum<{
|
|
101
|
+
APP: "APP";
|
|
102
|
+
SHARED: "SHARED";
|
|
103
|
+
}>;
|
|
104
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
serviceId: z.ZodString;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
108
|
+
elementId: z.ZodString;
|
|
109
|
+
elementName: z.ZodString;
|
|
110
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
aiKeys: z.ZodArray<z.ZodObject<{
|
|
115
|
+
providerId: z.ZodString;
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
usedBy: z.ZodArray<z.ZodObject<{
|
|
118
|
+
elementId: z.ZodString;
|
|
119
|
+
elementName: z.ZodString;
|
|
120
|
+
toolId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
subFlowName: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
placeholders: z.ZodArray<z.ZodObject<{
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
type: z.ZodString;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
sharedExtensions: z.ZodArray<z.ZodObject<{
|
|
130
|
+
serviceId: z.ZodString;
|
|
131
|
+
packageId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
label: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type ElementRef = z.infer<typeof ElementRefSchema>;
|
|
138
|
+
export type ConnectionRequirement = z.infer<typeof ConnectionRequirementSchema>;
|
|
139
|
+
export type AiKeyRequirement = z.infer<typeof AiKeyRequirementSchema>;
|
|
140
|
+
export type PlaceholderRequirement = z.infer<typeof PlaceholderRequirementSchema>;
|
|
141
|
+
export type SharedExtensionRequirement = z.infer<typeof SharedExtensionRequirementSchema>;
|
|
142
|
+
export type PackRequirements = z.infer<typeof PackRequirementsSchema>;
|
|
143
|
+
export type PackFlow = z.infer<typeof PackFlowSchema>;
|
|
144
|
+
export type PackManifest = z.infer<typeof PackManifestSchema>;
|