Sfoglia il codice sorgente

✨ (openapi): AI 对话的 account_type 生成枚举,管理端评价列表去掉自增 id

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
visuddhinanda 4 giorni fa
parent
commit
eb7037743d

+ 0 - 2
openapi/public/assets/protocol/resources/auto/v3-admin-agent-feedback.yaml

@@ -72,8 +72,6 @@ get:
                 items:
                 items:
                   type: object
                   type: object
                   properties:
                   properties:
-                    id:
-                      type: integer
                     message_id:
                     message_id:
                       type: string
                       type: string
                     rating:
                     rating:

+ 3 - 0
openapi/public/assets/protocol/resources/auto/v3-admin-agent-runs-run.yaml

@@ -40,6 +40,9 @@ get:
                     nullable: true
                     nullable: true
                   account_type:
                   account_type:
                     type: string
                     type: string
+                    enum:
+                      - user
+                      - guest
                   user:
                   user:
                     type: object
                     type: object
                     properties:
                     properties:

+ 1 - 0
openapi/public/assets/protocol/resources/auto/v3-admin-agent-runs.yaml

@@ -101,6 +101,7 @@ get:
                       nullable: true
                       nullable: true
                     account_type:
                     account_type:
                       type: string
                       type: string
+                      enum: [user, guest]
                     user:
                     user:
                       type: object
                       type: object
                       properties: { id: { type: string }, nickName: { type: string }, userName: { type: string }, realName: { type: string }, sn: { type: integer }, avatar: { type: string }, roles: { type: array, items: { type: string } } }
                       properties: { id: { type: string }, nickName: { type: string }, userName: { type: string }, realName: { type: string }, sn: { type: integer }, avatar: { type: string }, roles: { type: array, items: { type: string } } }

+ 6 - 0
openapi/public/assets/protocol/resources/auto/v3-agent-traces.yaml

@@ -81,6 +81,9 @@ post:
                     type: string
                     type: string
                   account_type:
                   account_type:
                     type: string
                     type: string
+                    enum:
+                      - user
+                      - guest
                   created_at:
                   created_at:
                     type: string
                     type: string
     201:
     201:
@@ -99,6 +102,9 @@ post:
                     type: string
                     type: string
                   account_type:
                   account_type:
                     type: string
                     type: string
+                    enum:
+                      - user
+                      - guest
                   created_at:
                   created_at:
                     type: string
                     type: string
     401:
     401: