create-zuplo-api 7.8.11 → 7.8.13
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,6 +6,91 @@
|
|
|
6
6
|
"description": "A unified API gateway for multiple AI providers. OpenAI-compatible ops are served under /{app_id}/v1/*, AWS Bedrock Runtime ops under /{app_id}/model/{modelId}/{operation}; other paths under /{app_id} are rejected."
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
|
+
"/u/:app_id/(.*)": {
|
|
10
|
+
"x-zuplo-path": {
|
|
11
|
+
"pathMode": "url-pattern"
|
|
12
|
+
},
|
|
13
|
+
"get,post,put,patch,delete,head": {
|
|
14
|
+
"summary": "AI Gateway User App catch-all",
|
|
15
|
+
"description": "Routes User App requests under /u/{app_id}/* to the AI Gateway handler. The configuration kind must be ai-user-app.",
|
|
16
|
+
"operationId": "aiGatewayUserAppCatchAll",
|
|
17
|
+
"responses": {
|
|
18
|
+
"200": {
|
|
19
|
+
"description": "Successful AI Gateway response"
|
|
20
|
+
},
|
|
21
|
+
"400": {
|
|
22
|
+
"description": "Bad request"
|
|
23
|
+
},
|
|
24
|
+
"403": {
|
|
25
|
+
"description": "Forbidden \u2014 public User App routes require trusted internal access; application API keys cannot authenticate trusted User App calls"
|
|
26
|
+
},
|
|
27
|
+
"404": {
|
|
28
|
+
"description": "Unsupported AI Gateway endpoint"
|
|
29
|
+
},
|
|
30
|
+
"500": {
|
|
31
|
+
"description": "Internal server error"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"x-zuplo-route": {
|
|
35
|
+
"corsPolicy": "none",
|
|
36
|
+
"handler": {
|
|
37
|
+
"export": "aiGatewayHandlerV2",
|
|
38
|
+
"module": "$import(@zuplo/runtime)",
|
|
39
|
+
"options": {}
|
|
40
|
+
},
|
|
41
|
+
"policies": {
|
|
42
|
+
"inbound": [
|
|
43
|
+
"ai-gateway-configuration-loader-v2-inbound",
|
|
44
|
+
"ai-gateway-configuration-executor-v2-inbound"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"/a/:app_id/(.*)": {
|
|
51
|
+
"x-zuplo-path": {
|
|
52
|
+
"pathMode": "url-pattern"
|
|
53
|
+
},
|
|
54
|
+
"get,post,put,patch,delete,head": {
|
|
55
|
+
"summary": "AI Gateway AI App catch-all",
|
|
56
|
+
"description": "Routes AI App requests under /a/{app_id}/* to the AI Gateway handler. The configuration kind must be ai-app.",
|
|
57
|
+
"operationId": "aiGatewayAIAppCatchAll",
|
|
58
|
+
"responses": {
|
|
59
|
+
"200": {
|
|
60
|
+
"description": "Successful AI Gateway response"
|
|
61
|
+
},
|
|
62
|
+
"400": {
|
|
63
|
+
"description": "Bad request"
|
|
64
|
+
},
|
|
65
|
+
"401": {
|
|
66
|
+
"description": "Unauthorized \u2014 returned only when the application's inboundPolicyChain includes ai-gateway-auth-v2-inbound, or authentication runs before the configuration loader"
|
|
67
|
+
},
|
|
68
|
+
"403": {
|
|
69
|
+
"description": "Forbidden \u2014 returned by per-app policies, such as an API key issued for a different app_id or a model the app does not allow"
|
|
70
|
+
},
|
|
71
|
+
"404": {
|
|
72
|
+
"description": "Unsupported AI Gateway endpoint"
|
|
73
|
+
},
|
|
74
|
+
"500": {
|
|
75
|
+
"description": "Internal server error"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"x-zuplo-route": {
|
|
79
|
+
"corsPolicy": "none",
|
|
80
|
+
"handler": {
|
|
81
|
+
"export": "aiGatewayHandlerV2",
|
|
82
|
+
"module": "$import(@zuplo/runtime)",
|
|
83
|
+
"options": {}
|
|
84
|
+
},
|
|
85
|
+
"policies": {
|
|
86
|
+
"inbound": [
|
|
87
|
+
"ai-gateway-configuration-loader-v2-inbound",
|
|
88
|
+
"ai-gateway-configuration-executor-v2-inbound"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
9
94
|
"/:app_id/(.*)": {
|
|
10
95
|
"x-zuplo-path": {
|
|
11
96
|
"pathMode": "url-pattern"
|
|
@@ -22,10 +107,10 @@
|
|
|
22
107
|
"description": "Bad request"
|
|
23
108
|
},
|
|
24
109
|
"401": {
|
|
25
|
-
"description": "Unauthorized
|
|
110
|
+
"description": "Unauthorized \u2014 returned only when the application's inboundPolicyChain includes ai-gateway-auth-v2-inbound, or authentication runs before the configuration loader"
|
|
26
111
|
},
|
|
27
112
|
"403": {
|
|
28
|
-
"description": "Forbidden
|
|
113
|
+
"description": "Forbidden \u2014 returned by per-app policies, such as an API key issued for a different app_id or a model the app does not allow"
|
|
29
114
|
},
|
|
30
115
|
"404": {
|
|
31
116
|
"description": "Unsupported AI Gateway endpoint"
|