From 6cd617bb4a1494e1dcde285ce8dc1f14ac09b480 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Thu, 25 Dec 2025 23:10:25 +0000 Subject: [PATCH] config: yaml,session,ops (1 files) --- dbal/api/schema/operations/session.ops.yaml | 65 +++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 dbal/api/schema/operations/session.ops.yaml diff --git a/dbal/api/schema/operations/session.ops.yaml b/dbal/api/schema/operations/session.ops.yaml new file mode 100644 index 000000000..9e7024783 --- /dev/null +++ b/dbal/api/schema/operations/session.ops.yaml @@ -0,0 +1,65 @@ +operations: + create: + description: "Create a new session" + input: + required: [user_id, token, expires_at] + output: Session + acl_required: ["session:write"] + system_only: true + security: + audit: true + never_log_token: true + errors: + - VALIDATION_ERROR: "Invalid session input" + - CONFLICT: "Session token already exists" + + read: + description: "Get session by ID" + input: + required: [id] + output: Session + acl_required: ["session:read"] + system_only: true + errors: + - NOT_FOUND: "Session not found" + + update: + description: "Update session expiration or activity timestamp" + input: + required: [id] + optional: [user_id, token, expires_at, last_activity] + output: Session + acl_required: ["session:write"] + system_only: true + security: + audit: true + never_log_token: true + errors: + - NOT_FOUND: "Session not found" + - VALIDATION_ERROR: "Invalid session update" + - CONFLICT: "Session token already exists" + + delete: + description: "Delete session by ID" + input: + required: [id] + output: boolean + acl_required: ["session:delete"] + system_only: true + security: + audit: true + errors: + - NOT_FOUND: "Session not found" + + list: + description: "List sessions with filtering and pagination" + input: + optional: [user_id, token, page, limit, sort] + output: Session[] + acl_required: ["session:read"] + system_only: true + pagination: true + max_limit: 200 + default_limit: 50 + errors: + - VALIDATION_ERROR: "Invalid pagination parameters"