@gravitee/ui-policy-studio-angular 16.2.4 → 16.2.5-a2a-proxy-df0e308

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.
@@ -2129,6 +2129,7 @@ class GioPolicyStudioDetailsInfoBarComponent {
2129
2129
  if (changes['flow']) {
2130
2130
  // Invalidate cache when flow changes
2131
2131
  this._methods = undefined;
2132
+ this._mcpMethods = undefined;
2132
2133
  }
2133
2134
  }
2134
2135
  get condition() {
@@ -2494,6 +2495,7 @@ class GioPolicyStudioComponent {
2494
2495
  this.saving = false;
2495
2496
  this.apiTypeDisplayable = computed(() => {
2496
2497
  const apiTypeMap = {
2498
+ A2A_PROXY: 'A2A Proxy',
2497
2499
  LLM_PROXY: 'LLM Proxy',
2498
2500
  PROXY: 'HTTP Proxy',
2499
2501
  MESSAGE: 'HTTP Message',
@@ -2728,6 +2730,18 @@ const getPlansChangeOutput = (flowsGroups, initialFlowsGroups) => {
2728
2730
  * See the License for the specific language governing permissions and
2729
2731
  * limitations under the License.
2730
2732
  */
2733
+ const PROXY_REQUEST_PHASE = {
2734
+ name: 'Request phase',
2735
+ description: 'Policies will be applied during the connection establishment',
2736
+ startConnectorName: 'Incoming request',
2737
+ endConnectorName: 'Outgoing request',
2738
+ };
2739
+ const PROXY_RESPONSE_PHASE = {
2740
+ name: 'Response phase',
2741
+ description: 'Policies will be applied to the response from the initial connection.',
2742
+ startConnectorName: 'Incoming response',
2743
+ endConnectorName: 'Outgoing response',
2744
+ };
2731
2745
  class GioPolicyGroupStudioComponent {
2732
2746
  /**
2733
2747
  * List of policies usable in the studio
@@ -2790,52 +2804,29 @@ class GioPolicyGroupStudioComponent {
2790
2804
  this.endConnector = [];
2791
2805
  this.phases = {
2792
2806
  // HTTP Proxy
2793
- PROXY__REQUEST: {
2794
- name: 'Request phase',
2795
- description: 'Policies will be applied during the connection establishment',
2796
- startConnectorName: 'Incoming request',
2797
- endConnectorName: 'Outgoing request',
2798
- },
2799
- PROXY__RESPONSE: {
2800
- name: 'Response phase',
2801
- description: 'Policies will be applied to the response from the initial connection.',
2802
- startConnectorName: 'Incoming response',
2803
- endConnectorName: 'Outgoing response',
2804
- },
2807
+ PROXY__REQUEST: PROXY_REQUEST_PHASE,
2808
+ PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
2805
2809
  PROXY__PUBLISH: null, // n/a
2806
2810
  PROXY__SUBSCRIBE: null, // n/a
2807
2811
  PROXY__CONNECT: null, // n/a
2808
2812
  PROXY__INTERACT: null, // n/a
2813
+ // A2A Proxy
2814
+ A2A_PROXY__REQUEST: PROXY_REQUEST_PHASE,
2815
+ A2A_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
2816
+ A2A_PROXY__PUBLISH: null, // n/a
2817
+ A2A_PROXY__SUBSCRIBE: null, // n/a
2818
+ A2A_PROXY__CONNECT: null, // n/a
2819
+ A2A_PROXY__INTERACT: null, // n/a
2809
2820
  // LLM Proxy
2810
- LLM_PROXY__REQUEST: {
2811
- name: 'Request phase',
2812
- description: 'Policies will be applied during the connection establishment',
2813
- startConnectorName: 'Incoming request',
2814
- endConnectorName: 'Outgoing request',
2815
- },
2816
- LLM_PROXY__RESPONSE: {
2817
- name: 'Response phase',
2818
- description: 'Policies will be applied to the response from the initial connection.',
2819
- startConnectorName: 'Incoming response',
2820
- endConnectorName: 'Outgoing response',
2821
- },
2821
+ LLM_PROXY__REQUEST: PROXY_REQUEST_PHASE,
2822
+ LLM_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
2822
2823
  LLM_PROXY__PUBLISH: null, // n/a
2823
2824
  LLM_PROXY__SUBSCRIBE: null, // n/a
2824
2825
  LLM_PROXY__CONNECT: null, // n/a
2825
2826
  LLM_PROXY__INTERACT: null, // n/a
2826
2827
  // MCP Proxy
2827
- MCP_PROXY__REQUEST: {
2828
- name: 'Request phase',
2829
- description: 'Policies will be applied during the connection establishment',
2830
- startConnectorName: 'Incoming request',
2831
- endConnectorName: 'Outgoing request',
2832
- },
2833
- MCP_PROXY__RESPONSE: {
2834
- name: 'Response phase',
2835
- description: 'Policies will be applied to the response from the initial connection.',
2836
- startConnectorName: 'Incoming response',
2837
- endConnectorName: 'Outgoing response',
2838
- },
2828
+ MCP_PROXY__REQUEST: PROXY_REQUEST_PHASE,
2829
+ MCP_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
2839
2830
  MCP_PROXY__PUBLISH: null, // n/a
2840
2831
  MCP_PROXY__SUBSCRIBE: null, // n/a
2841
2832
  MCP_PROXY__CONNECT: null, // n/a