@gravitee/ui-policy-studio-angular 16.0.1-renovate-digests-pin-bd697d2 → 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.
@@ -152,6 +152,28 @@ function fakeMcpFlow(modifier) {
152
152
  ...modifier,
153
153
  };
154
154
  }
155
+ function fakeLlmFlow(modifier) {
156
+ const httpSelector = {
157
+ type: 'HTTP',
158
+ path: '/path',
159
+ pathOperator: 'EQUALS',
160
+ methods: ['GET'],
161
+ };
162
+ const base = {
163
+ name: 'Flow name',
164
+ selectors: [httpSelector],
165
+ request: [],
166
+ response: [],
167
+ enabled: true,
168
+ };
169
+ if (isFunction(modifier)) {
170
+ return modifier(base);
171
+ }
172
+ return {
173
+ ...base,
174
+ ...modifier,
175
+ };
176
+ }
155
177
 
156
178
  /*
157
179
  * Copyright (C) 2023 The Gravitee team (http://gravitee.io)
@@ -329,6 +351,7 @@ function fakeTestPolicy(modifier) {
329
351
  flowPhaseCompatibility: {
330
352
  HTTP_PROXY: ['REQUEST', 'RESPONSE'],
331
353
  HTTP_MCP_PROXY: ['REQUEST', 'RESPONSE'],
354
+ HTTP_LLM_PROXY: ['REQUEST', 'RESPONSE'],
332
355
  HTTP_MESSAGE: ['REQUEST', 'RESPONSE', 'SUBSCRIBE', 'PUBLISH'],
333
356
  NATIVE_KAFKA: ['CONNECT', 'INTERACT', 'PUBLISH', 'SUBSCRIBE'],
334
357
  },
@@ -767,6 +790,36 @@ function fakeMCPProxyEndpoint(modifier) {
767
790
  ...modifier,
768
791
  };
769
792
  }
793
+ function fakeLlmProxyEntrypoint(modifier) {
794
+ const base = {
795
+ type: 'llm-proxy',
796
+ name: 'LLM Proxy',
797
+ supportedModes: ['REQUEST_RESPONSE'],
798
+ icon: 'gio:language',
799
+ };
800
+ if (isFunction(modifier)) {
801
+ return modifier(base);
802
+ }
803
+ return {
804
+ ...base,
805
+ ...modifier,
806
+ };
807
+ }
808
+ function fakeLlmProxyEndpoint(modifier) {
809
+ const base = {
810
+ type: 'llm-proxy',
811
+ name: 'LLM Proxy',
812
+ supportedModes: ['REQUEST_RESPONSE'],
813
+ icon: 'gio:language',
814
+ };
815
+ if (isFunction(modifier)) {
816
+ return modifier(base);
817
+ }
818
+ return {
819
+ ...base,
820
+ ...modifier,
821
+ };
822
+ }
770
823
 
771
824
  /*
772
825
  * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
@@ -1981,5 +2034,5 @@ class GioPolicyGroupStudioHarness extends ComponentHarness {
1981
2034
  * Generated bundle index. Do not edit.
1982
2035
  */
1983
2036
 
1984
- 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 };
2037
+ 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 };
1985
2038
  //# sourceMappingURL=gravitee-ui-policy-studio-angular-testing.mjs.map