-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpathfinder-policy-yml-schema.json
63 lines (63 loc) · 2.07 KB
/
pathfinder-policy-yml-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/transcend-io/cli/main/pathfinder-policy-yml-schema.json",
"title": "pathfinder.yml",
"description": "Policies for the Transcend Pathfinder AI governance proxy.",
"type": "object",
"properties": {
"enabledIntegrations": {
"type": "object",
"properties": {
"openAI": {
"type": "object",
"required": ["enabledRoutes"],
"properties": {
"enabledRoutes": {
"type": "array",
"items": {
"type": "object",
"required": ["routeName", "enabledPolicies"],
"properties": {
"routeName": {
"type": "string",
"enum": [
"/v1/chat/completions",
"/v1/embeddings",
"/v1/completions",
"/v1/assistants",
"/v1/assistants/:assistantId",
"/v1/threads",
"/v1/threads/:threadId",
"/v1/threads/:threadId/messages",
"/v1/threads/:threadId/messages/:messageId",
"/v1/threads/:threadId/runs",
"/v1/threads/:threadId/runs/:runId",
"/v1/files",
"/v1/files/:fileId"
]
},
"enabledPolicies": {
"type": "array",
"items": {
"type": "string",
"enum": [
"redactEmail",
"log",
"logToTranscend",
"applyTranscendPolicies"
]
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}