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 c7fe378..8943c91 100644 Binary files a/src/onepassword/lib/x86_64/op_uniffi_core.dll and b/src/onepassword/lib/x86_64/op_uniffi_core.dll differ diff --git a/src/onepassword/secrets.py b/src/onepassword/secrets.py index dc0bb6a..69ff94b 100644 --- a/src/onepassword/secrets.py +++ b/src/onepassword/secrets.py @@ -1,6 +1,8 @@ # Code generated by op-codegen - DO NO EDIT MANUALLY from .core import _invoke, _invoke_sync +from .iterator import SDKIterator +from typing import Optional from pydantic import TypeAdapter from .types import GeneratePasswordResponse, PasswordRecipe diff --git a/src/onepassword/vaults.py b/src/onepassword/vaults.py index 84e7555..8f667ff 100644 --- a/src/onepassword/vaults.py +++ b/src/onepassword/vaults.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 .types import VaultOverview