Skip to content

Commit 593d497

Browse files
Update core to version 1ad47f7d
1 parent 5aedbae commit 593d497

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
193 KB
Binary file not shown.
247 KB
Binary file not shown.
225 KB
Binary file not shown.
227 KB
Binary file not shown.
278 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)