Skip to content

Commit de849cf

Browse files
Update core to version 571dd93f
1 parent dbc54b9 commit de849cf

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

example/example.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ async def main():
172172
await client.items.delete(created_item.vault_id, updated_item.id)
173173
# [developer-docs.sdk.python.delete-item]-end
174174

175+
175176
## NOTE: this is in a separate function to avoid creating a new item
176177
## NOTE: just for the sake of archiving it. This is because the SDK
177178
## 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):
207208
item,
208209
policy,
209210
ItemShareParams(
210-
recipients = valid_recipients,
211-
expireAfter= ItemShareDuration.ONEHOUR,
212-
oneTimeOnly= False,
211+
recipients=valid_recipients,
212+
expireAfter=ItemShareDuration.ONEHOUR,
213+
oneTimeOnly=False,
213214
),
214215
)
215216

216217
print(share_link)
217218
# [developer-docs.sdk.python.item-share-create-share]-end
218219

220+
219221
if __name__ == "__main__":
220222
asyncio.run(main())

src/onepassword/items.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Code generated by op-codegen - DO NO EDIT MANUALLY
22

3-
from .core import _invoke
3+
from .core import _invoke, _invoke_sync
44
from .iterator import SDKIterator
5+
from typing import Optional
56
from pydantic import TypeAdapter
67
from .items_shares import ItemsShares
78
from .types import Item, ItemCreateParams, ItemOverview

src/onepassword/items_shares.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Code generated by op-codegen - DO NO EDIT MANUALLY
22

3-
from .core import _invoke
3+
from .core import _invoke, _invoke_sync
4+
from .iterator import SDKIterator
5+
from typing import Optional
46
from pydantic import TypeAdapter
57
from .types import Item, ItemShareAccountPolicy, ItemShareParams, ValidRecipient
68

0 Bytes
Binary file not shown.

src/onepassword/secrets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Code generated by op-codegen - DO NO EDIT MANUALLY
22

33
from .core import _invoke, _invoke_sync
4+
from .iterator import SDKIterator
5+
from typing import Optional
46
from pydantic import TypeAdapter
57
from .types import GeneratePasswordResponse, PasswordRecipe
68

src/onepassword/vaults.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Code generated by op-codegen - DO NO EDIT MANUALLY
22

3-
from .core import _invoke
3+
from .core import _invoke, _invoke_sync
44
from .iterator import SDKIterator
5+
from typing import Optional
56
from pydantic import TypeAdapter
67
from .types import VaultOverview
78

0 commit comments

Comments
 (0)