mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-03 13:17:07 +00:00
Add communication account plugin scaffolds
This commit is contained in:
parent
5cfeea6b57
commit
c23ce42948
48 changed files with 1949 additions and 13 deletions
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://schemas.logicsrc.com/logicsrc-account-audit-event.schema.json",
|
||||
"title": "LogicSRC Account Audit Event",
|
||||
"type": "object",
|
||||
"required": ["id", "provider", "kind", "principal", "action", "decision", "riskScore", "requestPreview", "resultPreview", "createdAt"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"id": { "type": "string", "minLength": 1 },
|
||||
"accountId": { "type": "string", "minLength": 1 },
|
||||
"provider": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
||||
"kind": { "enum": ["social", "email"] },
|
||||
"principal": {
|
||||
"type": "object",
|
||||
"required": ["type", "id"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": { "enum": ["user", "agent", "workflow", "plugin"] },
|
||||
"id": { "type": "string", "minLength": 1 },
|
||||
"trusted": { "type": "boolean" }
|
||||
}
|
||||
},
|
||||
"action": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)+$" },
|
||||
"decision": { "enum": ["allow", "approval_required", "deny"] },
|
||||
"riskScore": { "type": "number", "minimum": 0, "maximum": 1 },
|
||||
"requestPreview": { "type": "object" },
|
||||
"resultPreview": { "type": "object" },
|
||||
"correlationId": { "type": "string", "minLength": 1 },
|
||||
"createdAt": { "type": "string", "format": "date-time" }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue