create-zuplo-api 7.1.9 → 7.2.0

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.
@@ -6,8 +6,8 @@ operations (`/v1/chat/completions`, `/v1/messages`, `/v1/responses`, and
6
6
  whose suffix is a supported `/v1/...` operation succeed; other paths under
7
7
  `/{app_id}` return 404.
8
8
 
9
- Each route invokes `ai-gateway-configuration-loader-v2-inbound`, which loads
10
- the application's configuration from the `app_id` path segment, then
9
+ Each route invokes `ai-gateway-configuration-loader-v2-inbound`, which loads the
10
+ application's configuration from the `app_id` path segment, then
11
11
  `ai-gateway-configuration-executor-v2-inbound`, which runs its
12
12
  `inboundPolicyChain`. Applications may select only from the policies
13
13
  pre-declared in `config/policies.json`. To require application API keys for a
@@ -118,6 +118,31 @@
118
118
  },
119
119
  "name": "galileo-tracing-v2-inbound",
120
120
  "policyType": "galileo-tracing-v2-inbound"
121
+ },
122
+ {
123
+ "handler": {
124
+ "export": "AIGatewayDlpInboundPolicy",
125
+ "module": "$import(@zuplo/runtime)",
126
+ "options": {
127
+ "rules": {
128
+ "pii": {
129
+ "action": "mask"
130
+ },
131
+ "secret": {
132
+ "action": "block"
133
+ },
134
+ "finance-credit-card": {
135
+ "action": "mask"
136
+ },
137
+ "finance-iban": {
138
+ "action": "mask"
139
+ }
140
+ },
141
+ "mask": "[{type}]"
142
+ }
143
+ },
144
+ "name": "ai-gateway-dlp-inbound",
145
+ "policyType": "ai-gateway-dlp"
121
146
  }
122
147
  ]
123
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zuplo-api",
3
- "version": "7.1.9",
3
+ "version": "7.2.0",
4
4
  "keywords": [
5
5
  "api",
6
6
  "openapi",