Skip to content

Commit e8a1d10

Browse files
Update core to version 5bbc96e0
1 parent b4370b8 commit e8a1d10

File tree

12 files changed

+125
-55
lines changed

12 files changed

+125
-55
lines changed

src/onepassword/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ async def _init_client(client_config):
2323
async def _invoke(invoke_config):
2424
return await core.invoke(json.dumps(invoke_config))
2525

26+
2627
# Invoke calls specified business logic from the SDK core.
2728
def _invoke_sync(invoke_config):
2829
return core.invoke_sync(json.dumps(invoke_config))

src/onepassword/items.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 json import loads
55
from .iterator import SDKIterator
66
from .types import Item, ItemOverview
@@ -96,6 +96,7 @@ async def list_all(self, vault_id):
9696
}
9797
}
9898
)
99+
99100
response_data = loads(response)
100101

101102
objects = [ItemOverview.model_validate(data) for data in response_data]
453 KB
Binary file not shown.
763 KB
Binary file not shown.

src/onepassword/lib/aarch64/op_uniffi_core.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def _uniffi_check_api_checksums(lib):
481481
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
482482
if lib.uniffi_op_uniffi_core_checksum_func_invoke() != 29143:
483483
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484+
if lib.uniffi_op_uniffi_core_checksum_func_invoke_sync() != 49373:
485+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484486
if lib.uniffi_op_uniffi_core_checksum_func_release_client() != 57155:
485487
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
486488

@@ -496,6 +498,11 @@ def _uniffi_check_api_checksums(lib):
496498
_UniffiRustBuffer,
497499
)
498500
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke.restype = ctypes.c_void_p
501+
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync.argtypes = (
502+
_UniffiRustBuffer,
503+
ctypes.POINTER(_UniffiRustCallStatus),
504+
)
505+
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync.restype = _UniffiRustBuffer
499506
_UniffiLib.uniffi_op_uniffi_core_fn_func_release_client.argtypes = (
500507
_UniffiRustBuffer,
501508
ctypes.POINTER(_UniffiRustCallStatus),
@@ -775,6 +782,9 @@ def _uniffi_check_api_checksums(lib):
775782
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke.argtypes = (
776783
)
777784
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke.restype = ctypes.c_uint16
785+
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke_sync.argtypes = (
786+
)
787+
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke_sync.restype = ctypes.c_uint16
778788
_UniffiLib.uniffi_op_uniffi_core_checksum_func_release_client.argtypes = (
779789
)
780790
_UniffiLib.uniffi_op_uniffi_core_checksum_func_release_client.restype = ctypes.c_uint16
@@ -949,6 +959,13 @@ def invoke(invocation: "str"):
949959
_UniffiConverterTypeError,
950960
)
951961

962+
def invoke_sync(invocation: "str") -> "str":
963+
_UniffiConverterString.check_lower(invocation)
964+
965+
return _UniffiConverterString.lift(_rust_call_with_error(_UniffiConverterTypeError,_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync,
966+
_UniffiConverterString.lower(invocation)))
967+
968+
952969
def release_client(client_id: "str"):
953970
_UniffiConverterString.check_lower(client_id)
954971

@@ -961,6 +978,7 @@ def release_client(client_id: "str"):
961978
"Error",
962979
"init_client",
963980
"invoke",
981+
"invoke_sync",
964982
"release_client",
965983
]
966984

621 KB
Binary file not shown.
801 KB
Binary file not shown.
829 KB
Binary file not shown.

src/onepassword/lib/x86_64/op_uniffi_core.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def _uniffi_check_api_checksums(lib):
481481
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
482482
if lib.uniffi_op_uniffi_core_checksum_func_invoke() != 29143:
483483
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484+
if lib.uniffi_op_uniffi_core_checksum_func_invoke_sync() != 49373:
485+
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
484486
if lib.uniffi_op_uniffi_core_checksum_func_release_client() != 57155:
485487
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
486488

@@ -496,6 +498,11 @@ def _uniffi_check_api_checksums(lib):
496498
_UniffiRustBuffer,
497499
)
498500
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke.restype = ctypes.c_void_p
501+
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync.argtypes = (
502+
_UniffiRustBuffer,
503+
ctypes.POINTER(_UniffiRustCallStatus),
504+
)
505+
_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync.restype = _UniffiRustBuffer
499506
_UniffiLib.uniffi_op_uniffi_core_fn_func_release_client.argtypes = (
500507
_UniffiRustBuffer,
501508
ctypes.POINTER(_UniffiRustCallStatus),
@@ -775,6 +782,9 @@ def _uniffi_check_api_checksums(lib):
775782
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke.argtypes = (
776783
)
777784
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke.restype = ctypes.c_uint16
785+
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke_sync.argtypes = (
786+
)
787+
_UniffiLib.uniffi_op_uniffi_core_checksum_func_invoke_sync.restype = ctypes.c_uint16
778788
_UniffiLib.uniffi_op_uniffi_core_checksum_func_release_client.argtypes = (
779789
)
780790
_UniffiLib.uniffi_op_uniffi_core_checksum_func_release_client.restype = ctypes.c_uint16
@@ -949,6 +959,13 @@ def invoke(invocation: "str"):
949959
_UniffiConverterTypeError,
950960
)
951961

962+
def invoke_sync(invocation: "str") -> "str":
963+
_UniffiConverterString.check_lower(invocation)
964+
965+
return _UniffiConverterString.lift(_rust_call_with_error(_UniffiConverterTypeError,_UniffiLib.uniffi_op_uniffi_core_fn_func_invoke_sync,
966+
_UniffiConverterString.lower(invocation)))
967+
968+
952969
def release_client(client_id: "str"):
953970
_UniffiConverterString.check_lower(client_id)
954971

@@ -961,6 +978,7 @@ def release_client(client_id: "str"):
961978
"Error",
962979
"init_client",
963980
"invoke",
981+
"invoke_sync",
964982
"release_client",
965983
]
966984

src/onepassword/secrets.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 json import loads
55
from .iterator import SDKIterator
66

@@ -30,3 +30,19 @@ async def resolve(self, secret_reference):
3030
}
3131
)
3232
return str(loads(response))
33+
34+
@staticmethod
35+
def validate_secret_reference(secret_reference):
36+
"""
37+
Validate the secret reference to ensure there are no syntax errors.
38+
"""
39+
_invoke_sync(
40+
{
41+
"invocation": {
42+
"parameters": {
43+
"name": "ValidateSecretReference",
44+
"parameters": {"secret_reference": secret_reference},
45+
}
46+
}
47+
}
48+
)

0 commit comments

Comments
 (0)