@gravitee/ui-policy-studio-angular 16.0.1-apim-11428-mcp-proxy-1b4e3b1 → 16.0.1-apim-11657-adapt-ui-for-llm-e538197

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/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' | 'MCP';
11
+ type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP' | 'LLM';
12
12
  interface BaseSelector {
13
13
  /**
14
14
  * Selector type.
@@ -44,7 +44,10 @@ interface ConditionSelector extends BaseSelector {
44
44
  interface McpSelector extends BaseSelector {
45
45
  methods?: string[];
46
46
  }
47
- type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
47
+ interface LlmSelector extends BaseSelector {
48
+ methods?: string[];
49
+ }
50
+ type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector | LlmSelector;
48
51
 
49
52
  interface Step {
50
53
  /**
@@ -122,7 +125,7 @@ interface Plan {
122
125
  flows: Flow[];
123
126
  }
124
127
 
125
- type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'NATIVE_KAFKA';
128
+ type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'HTTP_LLM_PROXY' | 'NATIVE_KAFKA';
126
129
 
127
130
  type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
128
131
  interface Policy {
@@ -407,4 +410,4 @@ declare class GioPolicyGroupStudioComponent implements OnChanges {
407
410
  }
408
411
 
409
412
  export { GioPolicyGroupStudioComponent, GioPolicyStudioComponent, HttpMethods, fromExecutionPhase, fromPolicyInput, isPolicy, isSharedPolicyGroupPolicy, toGenericPolicies, toHttpMethod, toPolicy };
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 };
413
+ export type { ApiProtocolType, ApiType, BaseSelector, BaseSelectorTypeEnum, ChannelSelector, ConditionSelector, ConnectorInfo, ConnectorMode, ExecutionPhase, Flow, FlowExecution, FlowMode, FlowPhase, GenericPolicy, GenericPolicyPolicy, GenericPolicySharedPolicyGroupPolicy, HttpMethod, HttpSelector, LlmSelector, McpSelector, Operation, Operator, Plan, Policy, PolicyDocumentationFetcher, PolicyGroupInput, PolicyGroupOutput, PolicyInput, PolicySchemaFetcher, SaveOutput, Selector, SharedPolicyGroupPolicy, Step };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "16.0.1-apim-11428-mcp-proxy-1b4e3b1",
3
+ "version": "16.0.1-apim-11657-adapt-ui-for-llm-e538197",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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' | 'MCP';
9
+ type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP' | 'LLM';
10
10
  interface BaseSelector {
11
11
  /**
12
12
  * Selector type.
@@ -42,7 +42,10 @@ interface ConditionSelector extends BaseSelector {
42
42
  interface McpSelector extends BaseSelector {
43
43
  methods?: string[];
44
44
  }
45
- type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
45
+ interface LlmSelector extends BaseSelector {
46
+ methods?: string[];
47
+ }
48
+ type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector | LlmSelector;
46
49
 
47
50
  interface Step {
48
51
  /**
@@ -108,6 +111,7 @@ declare function fakeHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flo
108
111
  declare function fakeConditionedHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
109
112
  declare function fakeNativeFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
110
113
  declare function fakeMcpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
114
+ declare function fakeLlmFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
111
115
 
112
116
  /**
113
117
  * API's flow mode.
@@ -137,7 +141,7 @@ interface Plan {
137
141
 
138
142
  declare function fakePlan(modifier?: Partial<Plan> | ((base: Plan) => Plan)): Plan;
139
143
 
140
- type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'NATIVE_KAFKA';
144
+ type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'HTTP_LLM_PROXY' | 'NATIVE_KAFKA';
141
145
 
142
146
  type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
143
147
  interface Policy {
@@ -184,6 +188,8 @@ declare function fakeKafkaNativeEntrypoint(modifier?: Partial<ConnectorInfo> | (
184
188
  declare function fakeKafkaNativeEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
185
189
  declare function fakeMCPProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
186
190
  declare function fakeMCPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
191
+ declare function fakeLlmProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
192
+ declare function fakeLlmProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
187
193
 
188
194
  type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
189
195
  declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
@@ -374,4 +380,4 @@ declare class GioPolicyGroupStudioHarness extends ComponentHarness {
374
380
  } & StepForm): Promise<void>;
375
381
  }
376
382
 
377
- export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeMCPProxyEndpoint, fakeMCPProxyEntrypoint, fakeMcpFlow, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };
383
+ 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 };