@gravitee/ui-policy-studio-angular 16.0.1 → 16.1.0-apim-11657-adapt-ui-for-llm-0f84059
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/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs +177 -1
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs +444 -35
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/index.d.ts +8 -4
- package/package.json +1 -1
- package/testing/index.d.ts +13 -4
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare const toHttpMethod: (value: string) => HttpMethod | undefined;
|
|
|
8
8
|
|
|
9
9
|
type Operation = 'PUBLISH' | 'SUBSCRIBE';
|
|
10
10
|
type Operator = 'EQUALS' | 'STARTS_WITH';
|
|
11
|
-
type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
|
|
11
|
+
type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP' | 'LLM';
|
|
12
12
|
interface BaseSelector {
|
|
13
13
|
/**
|
|
14
14
|
* Selector type.
|
|
@@ -41,7 +41,10 @@ interface ConditionSelector extends BaseSelector {
|
|
|
41
41
|
*/
|
|
42
42
|
condition: string;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface McpSelector extends BaseSelector {
|
|
45
|
+
methods?: string[];
|
|
46
|
+
}
|
|
47
|
+
type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
|
|
45
48
|
|
|
46
49
|
interface Step {
|
|
47
50
|
/**
|
|
@@ -119,7 +122,7 @@ interface Plan {
|
|
|
119
122
|
flows: Flow[];
|
|
120
123
|
}
|
|
121
124
|
|
|
122
|
-
type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
|
|
125
|
+
type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'HTTP_LLM_PROXY' | 'NATIVE_KAFKA';
|
|
123
126
|
|
|
124
127
|
type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
|
|
125
128
|
interface Policy {
|
|
@@ -316,6 +319,7 @@ declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
|
|
|
316
319
|
flowsGroups: FlowGroupVM[];
|
|
317
320
|
disableSaveButton: boolean;
|
|
318
321
|
saving: boolean;
|
|
322
|
+
apiTypeDisplayable: i0.Signal<string>;
|
|
319
323
|
private initialFlowsGroups;
|
|
320
324
|
private hasFlowExecutionChanged;
|
|
321
325
|
private unSavingButtonSubscription?;
|
|
@@ -403,4 +407,4 @@ declare class GioPolicyGroupStudioComponent implements OnChanges {
|
|
|
403
407
|
}
|
|
404
408
|
|
|
405
409
|
export { GioPolicyGroupStudioComponent, GioPolicyStudioComponent, HttpMethods, fromExecutionPhase, fromPolicyInput, isPolicy, isSharedPolicyGroupPolicy, toGenericPolicies, toHttpMethod, toPolicy };
|
|
406
|
-
export type { ApiProtocolType, ApiType, BaseSelector, BaseSelectorTypeEnum, ChannelSelector, ConditionSelector, ConnectorInfo, ConnectorMode, ExecutionPhase, Flow, FlowExecution, FlowMode, FlowPhase, GenericPolicy, GenericPolicyPolicy, GenericPolicySharedPolicyGroupPolicy, HttpMethod, HttpSelector, Operation, Operator, Plan, Policy, PolicyDocumentationFetcher, PolicyGroupInput, PolicyGroupOutput, PolicyInput, PolicySchemaFetcher, SaveOutput, Selector, SharedPolicyGroupPolicy, Step };
|
|
410
|
+
export type { ApiProtocolType, ApiType, BaseSelector, BaseSelectorTypeEnum, ChannelSelector, ConditionSelector, ConnectorInfo, ConnectorMode, ExecutionPhase, Flow, FlowExecution, FlowMode, FlowPhase, GenericPolicy, GenericPolicyPolicy, GenericPolicySharedPolicyGroupPolicy, HttpMethod, HttpSelector, McpSelector, Operation, Operator, Plan, Policy, PolicyDocumentationFetcher, PolicyGroupInput, PolicyGroupOutput, PolicyInput, PolicySchemaFetcher, SaveOutput, Selector, SharedPolicyGroupPolicy, Step };
|
package/package.json
CHANGED
package/testing/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ type HttpMethod = (typeof HttpMethods)[number];
|
|
|
6
6
|
|
|
7
7
|
type Operation = 'PUBLISH' | 'SUBSCRIBE';
|
|
8
8
|
type Operator = 'EQUALS' | 'STARTS_WITH';
|
|
9
|
-
type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
|
|
9
|
+
type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP' | 'LLM';
|
|
10
10
|
interface BaseSelector {
|
|
11
11
|
/**
|
|
12
12
|
* Selector type.
|
|
@@ -39,7 +39,10 @@ interface ConditionSelector extends BaseSelector {
|
|
|
39
39
|
*/
|
|
40
40
|
condition: string;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
interface McpSelector extends BaseSelector {
|
|
43
|
+
methods?: string[];
|
|
44
|
+
}
|
|
45
|
+
type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
|
|
43
46
|
|
|
44
47
|
interface Step {
|
|
45
48
|
/**
|
|
@@ -104,6 +107,8 @@ declare function fakeConditionedChannelFlow(modifier?: Partial<Flow> | ((baseApi
|
|
|
104
107
|
declare function fakeHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
105
108
|
declare function fakeConditionedHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
106
109
|
declare function fakeNativeFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
110
|
+
declare function fakeMcpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
111
|
+
declare function fakeLlmFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
107
112
|
|
|
108
113
|
/**
|
|
109
114
|
* API's flow mode.
|
|
@@ -133,7 +138,7 @@ interface Plan {
|
|
|
133
138
|
|
|
134
139
|
declare function fakePlan(modifier?: Partial<Plan> | ((base: Plan) => Plan)): Plan;
|
|
135
140
|
|
|
136
|
-
type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
|
|
141
|
+
type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'HTTP_LLM_PROXY' | 'NATIVE_KAFKA';
|
|
137
142
|
|
|
138
143
|
type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
|
|
139
144
|
interface Policy {
|
|
@@ -178,6 +183,10 @@ declare function fakeKafkaMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((
|
|
|
178
183
|
declare function fakeHTTPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
179
184
|
declare function fakeKafkaNativeEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
180
185
|
declare function fakeKafkaNativeEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
186
|
+
declare function fakeMCPProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
187
|
+
declare function fakeMCPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
188
|
+
declare function fakeLlmProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
189
|
+
declare function fakeLlmProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
181
190
|
|
|
182
191
|
type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
|
|
183
192
|
declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
|
|
@@ -368,4 +377,4 @@ declare class GioPolicyGroupStudioHarness extends ComponentHarness {
|
|
|
368
377
|
} & StepForm): Promise<void>;
|
|
369
378
|
}
|
|
370
379
|
|
|
371
|
-
export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };
|
|
380
|
+
export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeLlmFlow, fakeLlmProxyEndpoint, fakeLlmProxyEntrypoint, fakeMCPProxyEndpoint, fakeMCPProxyEntrypoint, fakeMcpFlow, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };
|