File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 22Generated by typeshare 1.9.2
33"""
44
5+ from __future__ import annotations
6+
57from pydantic import BaseModel
68from typing import List , Literal , Optional
79
810
11+ class Item (BaseModel ):
12+ id : str
13+ title : str
14+ category : ItemCategory
15+ vault_id : str
16+ fields : List [ItemField ]
17+ sections : List [ItemSection ]
18+
19+
920ItemCategory = Literal [
1021 "Login" ,
1122 "SecureNote" ,
3445]
3546
3647
37- ItemFieldType = Literal ["Text" , "Concealed" , "Unsupported" ]
38-
39-
4048class ItemField (BaseModel ):
4149 id : str
4250 title : str
@@ -45,15 +53,9 @@ class ItemField(BaseModel):
4553 value : str
4654
4755
48- class ItemSection (BaseModel ):
49- id : str
50- title : str
56+ ItemFieldType = Literal ["Text" , "Concealed" , "Unsupported" ]
5157
5258
53- class Item (BaseModel ):
59+ class ItemSection (BaseModel ):
5460 id : str
5561 title : str
56- category : ItemCategory
57- vault_id : str
58- fields : List [ItemField ]
59- sections : List [ItemSection ]
You can’t perform that action at this time.
0 commit comments