Skip to content

Commit

Permalink
Update core to version 571dd93f
Browse files Browse the repository at this point in the history
  • Loading branch information
1PasswordSDKBot committed Jan 10, 2025
1 parent dbc54b9 commit de849cf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
8 changes: 5 additions & 3 deletions example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
3 changes: 2 additions & 1 deletion src/onepassword/items.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Code generated by op-codegen - DO NO EDIT MANUALLY

from .core import _invoke
from .core import _invoke, _invoke_sync

Check failure on line 3 in src/onepassword/items.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/items.py:3:28: F401 `.core._invoke_sync` imported but unused
from .iterator import SDKIterator
from typing import Optional

Check failure on line 5 in src/onepassword/items.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/items.py:5:20: F401 `typing.Optional` imported but unused
from pydantic import TypeAdapter
from .items_shares import ItemsShares
from .types import Item, ItemCreateParams, ItemOverview
Expand Down
4 changes: 3 additions & 1 deletion src/onepassword/items_shares.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Code generated by op-codegen - DO NO EDIT MANUALLY

from .core import _invoke
from .core import _invoke, _invoke_sync

Check failure on line 3 in src/onepassword/items_shares.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/items_shares.py:3:28: F401 `.core._invoke_sync` imported but unused
from .iterator import SDKIterator

Check failure on line 4 in src/onepassword/items_shares.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/items_shares.py:4:23: F401 `.iterator.SDKIterator` imported but unused
from typing import Optional

Check failure on line 5 in src/onepassword/items_shares.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/items_shares.py:5:20: F401 `typing.Optional` imported but unused
from pydantic import TypeAdapter
from .types import Item, ItemShareAccountPolicy, ItemShareParams, ValidRecipient

Expand Down
Binary file modified src/onepassword/lib/x86_64/op_uniffi_core.dll
Binary file not shown.
2 changes: 2 additions & 0 deletions src/onepassword/secrets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Code generated by op-codegen - DO NO EDIT MANUALLY

from .core import _invoke, _invoke_sync
from .iterator import SDKIterator

Check failure on line 4 in src/onepassword/secrets.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/secrets.py:4:23: F401 `.iterator.SDKIterator` imported but unused
from typing import Optional

Check failure on line 5 in src/onepassword/secrets.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (F401)

src/onepassword/secrets.py:5:20: F401 `typing.Optional` imported but unused
from pydantic import TypeAdapter
from .types import GeneratePasswordResponse, PasswordRecipe

Expand Down
3 changes: 2 additions & 1 deletion src/onepassword/vaults.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit de849cf

Please sign in to comment.