@gravitee/ui-policy-studio-angular 16.2.5 → 16.3.0-a2a-proxy-09333e8
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 +3 -2
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs +28 -36
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
|
@@ -1092,6 +1092,7 @@ class GioPolicyStudioFlowsMenuComponent {
|
|
|
1092
1092
|
})
|
|
1093
1093
|
.afterClosed();
|
|
1094
1094
|
break;
|
|
1095
|
+
case 'A2A_PROXY':
|
|
1095
1096
|
case 'PROXY':
|
|
1096
1097
|
dialogResult = this.matDialog
|
|
1097
1098
|
.open(GioPolicyStudioFlowProxyFormDialogComponent, {
|
|
@@ -1231,6 +1232,7 @@ class GioPolicyStudioFlowsMenuComponent {
|
|
|
1231
1232
|
})
|
|
1232
1233
|
.afterClosed();
|
|
1233
1234
|
break;
|
|
1235
|
+
case 'A2A_PROXY':
|
|
1234
1236
|
case 'PROXY':
|
|
1235
1237
|
dialogResult = this.matDialog
|
|
1236
1238
|
.open(GioPolicyStudioFlowProxyFormDialogComponent, {
|
|
@@ -2495,6 +2497,7 @@ class GioPolicyStudioComponent {
|
|
|
2495
2497
|
this.saving = false;
|
|
2496
2498
|
this.apiTypeDisplayable = computed(() => {
|
|
2497
2499
|
const apiTypeMap = {
|
|
2500
|
+
A2A_PROXY: 'A2A Proxy',
|
|
2498
2501
|
LLM_PROXY: 'LLM Proxy',
|
|
2499
2502
|
PROXY: 'HTTP Proxy',
|
|
2500
2503
|
MESSAGE: 'HTTP Message',
|
|
@@ -2729,6 +2732,18 @@ const getPlansChangeOutput = (flowsGroups, initialFlowsGroups) => {
|
|
|
2729
2732
|
* See the License for the specific language governing permissions and
|
|
2730
2733
|
* limitations under the License.
|
|
2731
2734
|
*/
|
|
2735
|
+
const PROXY_REQUEST_PHASE = {
|
|
2736
|
+
name: 'Request phase',
|
|
2737
|
+
description: 'Policies will be applied during the connection establishment',
|
|
2738
|
+
startConnectorName: 'Incoming request',
|
|
2739
|
+
endConnectorName: 'Outgoing request',
|
|
2740
|
+
};
|
|
2741
|
+
const PROXY_RESPONSE_PHASE = {
|
|
2742
|
+
name: 'Response phase',
|
|
2743
|
+
description: 'Policies will be applied to the response from the initial connection.',
|
|
2744
|
+
startConnectorName: 'Incoming response',
|
|
2745
|
+
endConnectorName: 'Outgoing response',
|
|
2746
|
+
};
|
|
2732
2747
|
class GioPolicyGroupStudioComponent {
|
|
2733
2748
|
/**
|
|
2734
2749
|
* List of policies usable in the studio
|
|
@@ -2791,52 +2806,29 @@ class GioPolicyGroupStudioComponent {
|
|
|
2791
2806
|
this.endConnector = [];
|
|
2792
2807
|
this.phases = {
|
|
2793
2808
|
// HTTP Proxy
|
|
2794
|
-
PROXY__REQUEST:
|
|
2795
|
-
|
|
2796
|
-
description: 'Policies will be applied during the connection establishment',
|
|
2797
|
-
startConnectorName: 'Incoming request',
|
|
2798
|
-
endConnectorName: 'Outgoing request',
|
|
2799
|
-
},
|
|
2800
|
-
PROXY__RESPONSE: {
|
|
2801
|
-
name: 'Response phase',
|
|
2802
|
-
description: 'Policies will be applied to the response from the initial connection.',
|
|
2803
|
-
startConnectorName: 'Incoming response',
|
|
2804
|
-
endConnectorName: 'Outgoing response',
|
|
2805
|
-
},
|
|
2809
|
+
PROXY__REQUEST: PROXY_REQUEST_PHASE,
|
|
2810
|
+
PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
|
|
2806
2811
|
PROXY__PUBLISH: null, // n/a
|
|
2807
2812
|
PROXY__SUBSCRIBE: null, // n/a
|
|
2808
2813
|
PROXY__CONNECT: null, // n/a
|
|
2809
2814
|
PROXY__INTERACT: null, // n/a
|
|
2815
|
+
// A2A Proxy
|
|
2816
|
+
A2A_PROXY__REQUEST: PROXY_REQUEST_PHASE,
|
|
2817
|
+
A2A_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
|
|
2818
|
+
A2A_PROXY__PUBLISH: null, // n/a
|
|
2819
|
+
A2A_PROXY__SUBSCRIBE: null, // n/a
|
|
2820
|
+
A2A_PROXY__CONNECT: null, // n/a
|
|
2821
|
+
A2A_PROXY__INTERACT: null, // n/a
|
|
2810
2822
|
// LLM Proxy
|
|
2811
|
-
LLM_PROXY__REQUEST:
|
|
2812
|
-
|
|
2813
|
-
description: 'Policies will be applied during the connection establishment',
|
|
2814
|
-
startConnectorName: 'Incoming request',
|
|
2815
|
-
endConnectorName: 'Outgoing request',
|
|
2816
|
-
},
|
|
2817
|
-
LLM_PROXY__RESPONSE: {
|
|
2818
|
-
name: 'Response phase',
|
|
2819
|
-
description: 'Policies will be applied to the response from the initial connection.',
|
|
2820
|
-
startConnectorName: 'Incoming response',
|
|
2821
|
-
endConnectorName: 'Outgoing response',
|
|
2822
|
-
},
|
|
2823
|
+
LLM_PROXY__REQUEST: PROXY_REQUEST_PHASE,
|
|
2824
|
+
LLM_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
|
|
2823
2825
|
LLM_PROXY__PUBLISH: null, // n/a
|
|
2824
2826
|
LLM_PROXY__SUBSCRIBE: null, // n/a
|
|
2825
2827
|
LLM_PROXY__CONNECT: null, // n/a
|
|
2826
2828
|
LLM_PROXY__INTERACT: null, // n/a
|
|
2827
2829
|
// MCP Proxy
|
|
2828
|
-
MCP_PROXY__REQUEST:
|
|
2829
|
-
|
|
2830
|
-
description: 'Policies will be applied during the connection establishment',
|
|
2831
|
-
startConnectorName: 'Incoming request',
|
|
2832
|
-
endConnectorName: 'Outgoing request',
|
|
2833
|
-
},
|
|
2834
|
-
MCP_PROXY__RESPONSE: {
|
|
2835
|
-
name: 'Response phase',
|
|
2836
|
-
description: 'Policies will be applied to the response from the initial connection.',
|
|
2837
|
-
startConnectorName: 'Incoming response',
|
|
2838
|
-
endConnectorName: 'Outgoing response',
|
|
2839
|
-
},
|
|
2830
|
+
MCP_PROXY__REQUEST: PROXY_REQUEST_PHASE,
|
|
2831
|
+
MCP_PROXY__RESPONSE: PROXY_RESPONSE_PHASE,
|
|
2840
2832
|
MCP_PROXY__PUBLISH: null, // n/a
|
|
2841
2833
|
MCP_PROXY__SUBSCRIBE: null, // n/a
|
|
2842
2834
|
MCP_PROXY__CONNECT: null, // n/a
|