@criticalbridge/brain-client 1.0.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/LICENSE +190 -0
- package/README.md +23 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +21 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +604 -0
- package/dist/client.js +1197 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +17 -0
- package/dist/errors.js +44 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +95 -0
- package/dist/index.js.map +1 -0
- package/dist/types/a2a.types.d.ts +42 -0
- package/dist/types/a2a.types.js +3 -0
- package/dist/types/a2a.types.js.map +1 -0
- package/dist/types/agent-skill-lifecycle.types.d.ts +46 -0
- package/dist/types/agent-skill-lifecycle.types.js +22 -0
- package/dist/types/agent-skill-lifecycle.types.js.map +1 -0
- package/dist/types/agent.types.d.ts +117 -0
- package/dist/types/agent.types.js +3 -0
- package/dist/types/agent.types.js.map +1 -0
- package/dist/types/ai-knowledge.types.d.ts +180 -0
- package/dist/types/ai-knowledge.types.js +3 -0
- package/dist/types/ai-knowledge.types.js.map +1 -0
- package/dist/types/api.types.d.ts +550 -0
- package/dist/types/api.types.js +3 -0
- package/dist/types/api.types.js.map +1 -0
- package/dist/types/approval-events.types.d.ts +43 -0
- package/dist/types/approval-events.types.js +7 -0
- package/dist/types/approval-events.types.js.map +1 -0
- package/dist/types/best-practices-kg.types.d.ts +112 -0
- package/dist/types/best-practices-kg.types.js +3 -0
- package/dist/types/best-practices-kg.types.js.map +1 -0
- package/dist/types/bias-threshold-policy.types.d.ts +37 -0
- package/dist/types/bias-threshold-policy.types.js +3 -0
- package/dist/types/bias-threshold-policy.types.js.map +1 -0
- package/dist/types/change-approval-gate.types.d.ts +110 -0
- package/dist/types/change-approval-gate.types.js +53 -0
- package/dist/types/change-approval-gate.types.js.map +1 -0
- package/dist/types/connection.types.d.ts +100 -0
- package/dist/types/connection.types.js +3 -0
- package/dist/types/connection.types.js.map +1 -0
- package/dist/types/connector-manifest.types.d.ts +889 -0
- package/dist/types/connector-manifest.types.js +118 -0
- package/dist/types/connector-manifest.types.js.map +1 -0
- package/dist/types/control-profile.types.d.ts +69 -0
- package/dist/types/control-profile.types.js +10 -0
- package/dist/types/control-profile.types.js.map +1 -0
- package/dist/types/corpus.types.d.ts +2584 -0
- package/dist/types/corpus.types.js +120 -0
- package/dist/types/corpus.types.js.map +1 -0
- package/dist/types/credentials.types.d.ts +18 -0
- package/dist/types/credentials.types.js +3 -0
- package/dist/types/credentials.types.js.map +1 -0
- package/dist/types/dashboard.types.d.ts +205 -0
- package/dist/types/dashboard.types.js +3 -0
- package/dist/types/dashboard.types.js.map +1 -0
- package/dist/types/document-ingestion.types.d.ts +30 -0
- package/dist/types/document-ingestion.types.js +3 -0
- package/dist/types/document-ingestion.types.js.map +1 -0
- package/dist/types/domain-event.types.d.ts +21 -0
- package/dist/types/domain-event.types.js +3 -0
- package/dist/types/domain-event.types.js.map +1 -0
- package/dist/types/drift-dashboard.types.d.ts +17 -0
- package/dist/types/drift-dashboard.types.js +3 -0
- package/dist/types/drift-dashboard.types.js.map +1 -0
- package/dist/types/effective-control-profile.types.d.ts +39 -0
- package/dist/types/effective-control-profile.types.js +39 -0
- package/dist/types/effective-control-profile.types.js.map +1 -0
- package/dist/types/entity-kg.types.d.ts +140 -0
- package/dist/types/entity-kg.types.js +3 -0
- package/dist/types/entity-kg.types.js.map +1 -0
- package/dist/types/entity-model-graph.types.d.ts +63 -0
- package/dist/types/entity-model-graph.types.js +3 -0
- package/dist/types/entity-model-graph.types.js.map +1 -0
- package/dist/types/entity-model-sources.types.d.ts +117 -0
- package/dist/types/entity-model-sources.types.js +3 -0
- package/dist/types/entity-model-sources.types.js.map +1 -0
- package/dist/types/entity.types.d.ts +6 -0
- package/dist/types/entity.types.js +3 -0
- package/dist/types/entity.types.js.map +1 -0
- package/dist/types/failure.types.d.ts +22 -0
- package/dist/types/failure.types.js +3 -0
- package/dist/types/failure.types.js.map +1 -0
- package/dist/types/harvest.types.d.ts +662 -0
- package/dist/types/harvest.types.js +52 -0
- package/dist/types/harvest.types.js.map +1 -0
- package/dist/types/incident.types.d.ts +105 -0
- package/dist/types/incident.types.js +3 -0
- package/dist/types/incident.types.js.map +1 -0
- package/dist/types/introspection.types.d.ts +46 -0
- package/dist/types/introspection.types.js +3 -0
- package/dist/types/introspection.types.js.map +1 -0
- package/dist/types/kb-kg.types.d.ts +38 -0
- package/dist/types/kb-kg.types.js +3 -0
- package/dist/types/kb-kg.types.js.map +1 -0
- package/dist/types/managed-agent.types.d.ts +59 -0
- package/dist/types/managed-agent.types.js +11 -0
- package/dist/types/managed-agent.types.js.map +1 -0
- package/dist/types/object-store.types.d.ts +25 -0
- package/dist/types/object-store.types.js +8 -0
- package/dist/types/object-store.types.js.map +1 -0
- package/dist/types/pipeline.types.d.ts +39 -0
- package/dist/types/pipeline.types.js +3 -0
- package/dist/types/pipeline.types.js.map +1 -0
- package/dist/types/policy.types.d.ts +32 -0
- package/dist/types/policy.types.js +3 -0
- package/dist/types/policy.types.js.map +1 -0
- package/dist/types/risk-classification.types.d.ts +71 -0
- package/dist/types/risk-classification.types.js +3 -0
- package/dist/types/risk-classification.types.js.map +1 -0
- package/dist/types/skill-draft.types.d.ts +271 -0
- package/dist/types/skill-draft.types.js +48 -0
- package/dist/types/skill-draft.types.js.map +1 -0
- package/dist/types/source-mapping.types.d.ts +69 -0
- package/dist/types/source-mapping.types.js +3 -0
- package/dist/types/source-mapping.types.js.map +1 -0
- package/dist/types/synthesize.types.d.ts +90 -0
- package/dist/types/synthesize.types.js +41 -0
- package/dist/types/synthesize.types.js.map +1 -0
- package/dist/types/wizard-assistant.types.d.ts +25 -0
- package/dist/types/wizard-assistant.types.js +3 -0
- package/dist/types/wizard-assistant.types.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export interface PatternMatch {
|
|
2
|
+
workflowId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
similarity: number;
|
|
6
|
+
sharedNodeTypes: string[];
|
|
7
|
+
integrationTypes: string[];
|
|
8
|
+
successRate: number;
|
|
9
|
+
usageCount: number;
|
|
10
|
+
insights: string[];
|
|
11
|
+
category?: string;
|
|
12
|
+
complexity?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface NodeSuggestion {
|
|
15
|
+
operationId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
category: string;
|
|
18
|
+
reason: string;
|
|
19
|
+
confidence: number;
|
|
20
|
+
usageFrequency: number;
|
|
21
|
+
suggestedParameters?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface ParameterSuggestion {
|
|
24
|
+
parameterPath: string;
|
|
25
|
+
parameterName: string;
|
|
26
|
+
suggestedValue: unknown;
|
|
27
|
+
alternativeValues: unknown[];
|
|
28
|
+
reason: string;
|
|
29
|
+
confidence: number;
|
|
30
|
+
usageCount: number;
|
|
31
|
+
successRate: number;
|
|
32
|
+
dataType?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SmartDefaults {
|
|
35
|
+
nodeType: string;
|
|
36
|
+
defaults: Record<string, unknown>;
|
|
37
|
+
confidenceScores: Record<string, number>;
|
|
38
|
+
source: 'community' | 'user' | 'system';
|
|
39
|
+
}
|
|
40
|
+
export interface QualityBreakdown {
|
|
41
|
+
configurationCompleteness: number;
|
|
42
|
+
errorHandling: number;
|
|
43
|
+
patternConformance: number;
|
|
44
|
+
connectionValidity: number;
|
|
45
|
+
bestPractices: number;
|
|
46
|
+
}
|
|
47
|
+
export interface Improvement {
|
|
48
|
+
type: 'add_node' | 'configure_parameter' | 'add_error_handling' | 'optimize_connection' | 'follow_pattern';
|
|
49
|
+
description: string;
|
|
50
|
+
priority: 'high' | 'medium' | 'low';
|
|
51
|
+
nodeId?: string;
|
|
52
|
+
suggestion?: Record<string, unknown>;
|
|
53
|
+
expectedImprovement: number;
|
|
54
|
+
}
|
|
55
|
+
export interface ComparisonStats {
|
|
56
|
+
comparedCount: number;
|
|
57
|
+
percentileRank: number;
|
|
58
|
+
averageScore: number;
|
|
59
|
+
topScore: number;
|
|
60
|
+
}
|
|
61
|
+
export interface QualityScore {
|
|
62
|
+
overallScore: number;
|
|
63
|
+
breakdown: QualityBreakdown;
|
|
64
|
+
rating: 'excellent' | 'good' | 'fair' | 'needs_improvement';
|
|
65
|
+
improvements: Improvement[];
|
|
66
|
+
comparisonStats: ComparisonStats;
|
|
67
|
+
}
|
|
68
|
+
export interface AINodeInfo {
|
|
69
|
+
id: string;
|
|
70
|
+
type: string;
|
|
71
|
+
name: string;
|
|
72
|
+
parameters?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
export interface AIWorkflowContext {
|
|
75
|
+
workflowId?: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
nodeTypes: string[];
|
|
78
|
+
integrationTypes: string[];
|
|
79
|
+
selectedNodeId?: string;
|
|
80
|
+
selectedNodeType?: string;
|
|
81
|
+
upstreamNodes?: AINodeInfo[];
|
|
82
|
+
downstreamNodes?: AINodeInfo[];
|
|
83
|
+
userIntent?: string;
|
|
84
|
+
category?: string;
|
|
85
|
+
complexity?: 'simple' | 'medium' | 'complex';
|
|
86
|
+
}
|
|
87
|
+
export interface AIPatternMatchOptions {
|
|
88
|
+
matchThreshold?: number;
|
|
89
|
+
matchCount?: number;
|
|
90
|
+
filterCategory?: string;
|
|
91
|
+
filterComplexity?: string;
|
|
92
|
+
filterIntegrations?: string[];
|
|
93
|
+
minUsageCount?: number;
|
|
94
|
+
includeUserPatterns?: boolean;
|
|
95
|
+
userId?: string;
|
|
96
|
+
tenantId?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AIParameterIntelligenceOptions {
|
|
99
|
+
parameterPath?: string;
|
|
100
|
+
workflowContext?: AIWorkflowContext;
|
|
101
|
+
userId?: string;
|
|
102
|
+
tenantId?: string;
|
|
103
|
+
minConfidence?: number;
|
|
104
|
+
}
|
|
105
|
+
export interface AISimilarWorkflowsBody {
|
|
106
|
+
nodeTypes: string[];
|
|
107
|
+
options?: AIPatternMatchOptions;
|
|
108
|
+
}
|
|
109
|
+
export interface AISuggestNextNodesBody {
|
|
110
|
+
context: AIWorkflowContext;
|
|
111
|
+
options?: AIPatternMatchOptions;
|
|
112
|
+
}
|
|
113
|
+
export interface AIParameterSuggestionsBody {
|
|
114
|
+
nodeType: string;
|
|
115
|
+
parameterPath?: string;
|
|
116
|
+
context?: AIWorkflowContext;
|
|
117
|
+
options?: AIParameterIntelligenceOptions;
|
|
118
|
+
}
|
|
119
|
+
export interface AISmartDefaultsBody {
|
|
120
|
+
nodeType: string;
|
|
121
|
+
context?: AIWorkflowContext;
|
|
122
|
+
options?: AIParameterIntelligenceOptions;
|
|
123
|
+
}
|
|
124
|
+
export interface AIScoreQualityBody {
|
|
125
|
+
nodes: Array<{
|
|
126
|
+
id: string;
|
|
127
|
+
type: string;
|
|
128
|
+
parameters?: Record<string, unknown>;
|
|
129
|
+
}>;
|
|
130
|
+
connections: Array<{
|
|
131
|
+
source: string;
|
|
132
|
+
target: string;
|
|
133
|
+
}>;
|
|
134
|
+
context?: AIWorkflowContext;
|
|
135
|
+
}
|
|
136
|
+
export interface NodeMappingRecord {
|
|
137
|
+
externalType: string;
|
|
138
|
+
cbType: string;
|
|
139
|
+
confidence: number;
|
|
140
|
+
aiSuggested: boolean;
|
|
141
|
+
userAccepted?: boolean;
|
|
142
|
+
}
|
|
143
|
+
export interface ParameterMappingRecord {
|
|
144
|
+
nodeType: string;
|
|
145
|
+
originalPath: string;
|
|
146
|
+
mappedPath: string;
|
|
147
|
+
originalValue: unknown;
|
|
148
|
+
mappedValue: unknown;
|
|
149
|
+
}
|
|
150
|
+
export interface ImportLearningData {
|
|
151
|
+
originalWorkflow: Record<string, unknown>;
|
|
152
|
+
convertedWorkflow: Record<string, unknown>;
|
|
153
|
+
nodeMappings: NodeMappingRecord[];
|
|
154
|
+
parameterMappings: ParameterMappingRecord[];
|
|
155
|
+
confidence: number;
|
|
156
|
+
sourceType: 'n8n' | 'zapier' | 'make' | 'power-automate' | 'other';
|
|
157
|
+
}
|
|
158
|
+
export interface LearningFeedback {
|
|
159
|
+
feedbackType: 'positive' | 'negative' | 'neutral';
|
|
160
|
+
rating?: number;
|
|
161
|
+
workedAsExpected?: boolean;
|
|
162
|
+
changesLevel?: 'none' | 'minor' | 'major';
|
|
163
|
+
comment?: string;
|
|
164
|
+
sessionId?: string;
|
|
165
|
+
metadata?: Record<string, unknown>;
|
|
166
|
+
}
|
|
167
|
+
export interface AILearnFromImportBody {
|
|
168
|
+
data: ImportLearningData;
|
|
169
|
+
feedback?: LearningFeedback;
|
|
170
|
+
userId?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface AIRecordNodeUsageBody {
|
|
173
|
+
nodeType: string;
|
|
174
|
+
parameters: Record<string, unknown>;
|
|
175
|
+
context?: AIWorkflowContext;
|
|
176
|
+
userId?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface AIKnowledgeResultResponse<T> {
|
|
179
|
+
result: T;
|
|
180
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-knowledge.types.js","sourceRoot":"","sources":["../../src/types/ai-knowledge.types.ts"],"names":[],"mappings":""}
|