From de849cfee3660a8d762a6d45961d4723e1af551b Mon Sep 17 00:00:00 2001 From: 1PasswordSDKBot Date: Fri, 10 Jan 2025 06:34:07 +0000 Subject: [PATCH] Update core to version 571dd93f --- example/example.py | 8 +++++--- src/onepassword/items.py | 3 ++- src/onepassword/items_shares.py | 4 +++- src/onepassword/lib/x86_64/op_uniffi_core.dll | Bin 12233728 -> 12233728 bytes src/onepassword/secrets.py | 2 ++ src/onepassword/vaults.py | 3 ++- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/example/example.py b/example/example.py index 528f78a..47928b4 100644 --- a/example/example.py +++ b/example/example.py @@ -172,6 +172,7 @@ async def main(): await client.items.delete(created_item.vault_id, updated_item.id) # [developer-docs.sdk.python.delete-item]-end + ## NOTE: this is in a separate function to avoid creating a new item ## NOTE: just for the sake of archiving it. This is because the SDK ## NOTE: only works with active items, so archiving and then deleting @@ -207,14 +208,15 @@ async def share_item(client: Client, vault_id: str, item_id: str): item, policy, ItemShareParams( - recipients = valid_recipients, - expireAfter= ItemShareDuration.ONEHOUR, - oneTimeOnly= False, + recipients=valid_recipients, + expireAfter=ItemShareDuration.ONEHOUR, + oneTimeOnly=False, ), ) print(share_link) # [developer-docs.sdk.python.item-share-create-share]-end + if __name__ == "__main__": asyncio.run(main()) diff --git a/src/onepassword/items.py b/src/onepassword/items.py index 6011205..86f78f7 100644 --- a/src/onepassword/items.py +++ b/src/onepassword/items.py @@ -1,7 +1,8 @@ # Code generated by op-codegen - DO NO EDIT MANUALLY -from .core import _invoke +from .core import _invoke, _invoke_sync from .iterator import SDKIterator +from typing import Optional from pydantic import TypeAdapter from .items_shares import ItemsShares from .types import Item, ItemCreateParams, ItemOverview diff --git a/src/onepassword/items_shares.py b/src/onepassword/items_shares.py index 9393968..0241af4 100644 --- a/src/onepassword/items_shares.py +++ b/src/onepassword/items_shares.py @@ -1,6 +1,8 @@ # Code generated by op-codegen - DO NO EDIT MANUALLY -from .core import _invoke +from .core import _invoke, _invoke_sync +from .iterator import SDKIterator +from typing import Optional from pydantic import TypeAdapter from .types import Item, ItemShareAccountPolicy, ItemShareParams, ValidRecipient diff --git a/src/onepassword/lib/x86_64/op_uniffi_core.dll b/src/onepassword/lib/x86_64/op_uniffi_core.dll index c7fe3786c08fca456de79e2322581062d1d2d9d2..8943c914b191c461e79e5abf0e54dd95a6fecccb 100644 GIT binary patch delta 826 zcmYMy*;CB{6u|NOD=F?p8zQaRl=ioJELpCr=8k{D zi#NuL8UKNY=-Y#FWVCgGGo%92O%UORyBn zupBF}604Aa)mVc>ti?JcAsH!1MH_Z*uu^$I;5Qor!!#IMYXhai^;W$p!%f`6ZQQ|K+{1nJ zV*rDAfQNYGG#f*|$CG%qOh?e9>f;r;z*ZP%9{ z-_l35&5>MXbBU_xW6>v~Peq@JJ{Nrk!&f65RqNB7HLDJO$#A=w{k>TE=9@`-9tz!EjOm; zO#eauKs|Wz?7{Nw!8kLYnKS46daM)QU99MHGn@y9L0EubEJO%G5r#!rj3o%iQY=FRmLn1?uoA1V z8fy@RwTMOx)*%+_5r+-fh>eV^1}_CcafP zPEP$!?)_mOuMP?J5mnJQqHjgJMBj