Skip to content

Commit db6facf

Browse files
Update core to version 70c0d98e
1 parent 5aedbae commit db6facf

File tree

7 files changed

+18
-0
lines changed

7 files changed

+18
-0
lines changed

src/onepassword/items.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ async def delete(self, vault_id, item_id):
8181
}
8282
)
8383

84+
async def archive(self, vault_id, item_id):
85+
"""
86+
Archive an item.
87+
"""
88+
await _invoke(
89+
{
90+
"invocation": {
91+
"clientId": self.client_id,
92+
"parameters": {
93+
"name": "ItemsArchive",
94+
"parameters": {"vault_id": vault_id, "item_id": item_id},
95+
},
96+
}
97+
}
98+
)
99+
84100
async def list_all(self, vault_id):
85101
"""
86102
List all items
173 KB
Binary file not shown.
178 KB
Binary file not shown.
202 KB
Binary file not shown.
205 KB
Binary file not shown.
249 KB
Binary file not shown.

src/onepassword/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class ItemFieldType(str, Enum):
5656
PHONE = "Phone"
5757
URL = "Url"
5858
TOTP = "Totp"
59+
EMAIL = "Email"
60+
REFERENCE = "Reference"
5961
UNSUPPORTED = "Unsupported"
6062

6163

0 commit comments

Comments
 (0)