winrt-Windows.Security.Credentials 2.2.0__cp313-cp313-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,186 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.security.cryptography.core as windows_security_cryptography_core
15
+ import winrt.windows.storage.streams as windows_storage_streams
16
+ import winrt.windows.system as windows_system
17
+
18
+ from winrt.windows.security.credentials import KeyCredentialAttestationStatus, KeyCredentialCreationOption, KeyCredentialStatus, WebAccountPictureSize, WebAccountState
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class KeyCredential(winrt.system.Object):
24
+ @staticmethod
25
+ def _from(obj: winrt.system.Object, /) -> KeyCredential: ...
26
+ def get_attestation_async(self) -> windows_foundation.IAsyncOperation[KeyCredentialAttestationResult]: ...
27
+ def request_sign_async(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[KeyCredentialOperationResult]: ...
28
+ @typing.overload
29
+ def retrieve_public_key(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
30
+ @typing.overload
31
+ def retrieve_public_key(self, blob_type: windows_security_cryptography_core.CryptographicPublicKeyBlobType, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
32
+ @_property
33
+ def name(self) -> str: ...
34
+
35
+ @typing.final
36
+ class KeyCredentialAttestationResult(winrt.system.Object):
37
+ @staticmethod
38
+ def _from(obj: winrt.system.Object, /) -> KeyCredentialAttestationResult: ...
39
+ @_property
40
+ def attestation_buffer(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
41
+ @_property
42
+ def certificate_chain_buffer(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
43
+ @_property
44
+ def status(self) -> KeyCredentialAttestationStatus: ...
45
+
46
+ @typing.final
47
+ class KeyCredentialManager_Static(type):
48
+ def delete_async(cls, name: str, /) -> windows_foundation.IAsyncAction: ...
49
+ def is_supported_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
50
+ def open_async(cls, name: str, /) -> windows_foundation.IAsyncOperation[KeyCredentialRetrievalResult]: ...
51
+ def renew_attestation_async(cls) -> windows_foundation.IAsyncAction: ...
52
+ def request_create_async(cls, name: str, option: KeyCredentialCreationOption, /) -> windows_foundation.IAsyncOperation[KeyCredentialRetrievalResult]: ...
53
+
54
+ @typing.final
55
+ class KeyCredentialManager(winrt.system.Object, metaclass=KeyCredentialManager_Static):
56
+ pass
57
+
58
+ @typing.final
59
+ class KeyCredentialOperationResult(winrt.system.Object):
60
+ @staticmethod
61
+ def _from(obj: winrt.system.Object, /) -> KeyCredentialOperationResult: ...
62
+ @_property
63
+ def result(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
64
+ @_property
65
+ def status(self) -> KeyCredentialStatus: ...
66
+
67
+ @typing.final
68
+ class KeyCredentialRetrievalResult(winrt.system.Object):
69
+ @staticmethod
70
+ def _from(obj: winrt.system.Object, /) -> KeyCredentialRetrievalResult: ...
71
+ @_property
72
+ def credential(self) -> typing.Optional[KeyCredential]: ...
73
+ @_property
74
+ def status(self) -> KeyCredentialStatus: ...
75
+
76
+ @typing.final
77
+ class PasswordCredential(winrt.system.Object):
78
+ @staticmethod
79
+ def _from(obj: winrt.system.Object, /) -> PasswordCredential: ...
80
+ @typing.overload
81
+ def __new__(cls: typing.Type[PasswordCredential], resource: str, user_name: str, password: str) -> PasswordCredential: ...
82
+ @typing.overload
83
+ def __new__(cls: typing.Type[PasswordCredential]) -> PasswordCredential: ...
84
+ def retrieve_password(self) -> None: ...
85
+ @_property
86
+ def user_name(self) -> str: ...
87
+ @user_name.setter
88
+ def user_name(self, value: str) -> None: ...
89
+ @_property
90
+ def resource(self) -> str: ...
91
+ @resource.setter
92
+ def resource(self, value: str) -> None: ...
93
+ @_property
94
+ def password(self) -> str: ...
95
+ @password.setter
96
+ def password(self, value: str) -> None: ...
97
+ @_property
98
+ def properties(self) -> typing.Optional[windows_foundation_collections.IPropertySet]: ...
99
+
100
+ @typing.final
101
+ class PasswordCredentialPropertyStore(winrt.system.Object, winrt._winrt.MutableMapping[str, winrt.system.Object]):
102
+ def __len__(self) -> int: ...
103
+ def __iter__(self) -> typing.Iterator[str]: ...
104
+ def __contains__(self, key: object) -> bool: ...
105
+ def __getitem__(self, key: str) -> winrt.system.Object: ...
106
+ def __setitem__(self, key: str, value: winrt.system.Object) -> None: ...
107
+ def __delitem__(self, key: str) -> None: ...
108
+ @staticmethod
109
+ def _from(obj: winrt.system.Object, /) -> PasswordCredentialPropertyStore: ...
110
+ def __new__(cls: typing.Type[PasswordCredentialPropertyStore]) -> PasswordCredentialPropertyStore: ...
111
+ def clear(self) -> None: ...
112
+ def first(self) -> typing.Optional[windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]]: ...
113
+ def get_view(self) -> typing.Optional[windows_foundation_collections.IMapView[str, winrt.system.Object]]: ...
114
+ def has_key(self, key: str, /) -> bool: ...
115
+ def insert(self, key: str, value: typing.Optional[winrt.system.Object], /) -> bool: ...
116
+ def lookup(self, key: str, /) -> typing.Optional[winrt.system.Object]: ...
117
+ def remove(self, key: str, /) -> None: ...
118
+ def add_map_changed(self, vhnd: windows_foundation_collections.MapChangedEventHandler[str, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
119
+ def remove_map_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
120
+ @_property
121
+ def size(self) -> winrt.system.UInt32: ...
122
+
123
+ @typing.final
124
+ class PasswordVault(winrt.system.Object):
125
+ @staticmethod
126
+ def _from(obj: winrt.system.Object, /) -> PasswordVault: ...
127
+ def __new__(cls: typing.Type[PasswordVault]) -> PasswordVault: ...
128
+ def add(self, credential: typing.Optional[PasswordCredential], /) -> None: ...
129
+ def find_all_by_resource(self, resource: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[PasswordCredential]]: ...
130
+ def find_all_by_user_name(self, user_name: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[PasswordCredential]]: ...
131
+ def remove(self, credential: typing.Optional[PasswordCredential], /) -> None: ...
132
+ def retrieve(self, resource: str, user_name: str, /) -> typing.Optional[PasswordCredential]: ...
133
+ def retrieve_all(self) -> typing.Optional[windows_foundation_collections.IVectorView[PasswordCredential]]: ...
134
+
135
+ @typing.final
136
+ class WebAccount(winrt.system.Object):
137
+ @staticmethod
138
+ def _from(obj: winrt.system.Object, /) -> WebAccount: ...
139
+ def __new__(cls: typing.Type[WebAccount], web_account_provider: typing.Optional[WebAccountProvider], user_name: str, state: WebAccountState) -> WebAccount: ...
140
+ def get_picture_async(self, desized_size: WebAccountPictureSize, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IRandomAccessStream]: ...
141
+ @typing.overload
142
+ def sign_out_async(self) -> windows_foundation.IAsyncAction: ...
143
+ @typing.overload
144
+ def sign_out_async(self, client_id: str, /) -> windows_foundation.IAsyncAction: ...
145
+ @_property
146
+ def state(self) -> WebAccountState: ...
147
+ @_property
148
+ def user_name(self) -> str: ...
149
+ @_property
150
+ def web_account_provider(self) -> typing.Optional[WebAccountProvider]: ...
151
+ @_property
152
+ def id(self) -> str: ...
153
+ @_property
154
+ def properties(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
155
+
156
+ @typing.final
157
+ class WebAccountProvider(winrt.system.Object):
158
+ @staticmethod
159
+ def _from(obj: winrt.system.Object, /) -> WebAccountProvider: ...
160
+ def __new__(cls: typing.Type[WebAccountProvider], id: str, display_name: str, icon_uri: typing.Optional[windows_foundation.Uri]) -> WebAccountProvider: ...
161
+ @_property
162
+ def display_name(self) -> str: ...
163
+ @_property
164
+ def icon_uri(self) -> typing.Optional[windows_foundation.Uri]: ...
165
+ @_property
166
+ def id(self) -> str: ...
167
+ @_property
168
+ def authority(self) -> str: ...
169
+ @_property
170
+ def display_purpose(self) -> str: ...
171
+ @_property
172
+ def user(self) -> typing.Optional[windows_system.User]: ...
173
+ @_property
174
+ def is_system_provider(self) -> bool: ...
175
+
176
+ @typing.final
177
+ class IWebAccount(winrt.system.Object):
178
+ @staticmethod
179
+ def _from(obj: winrt.system.Object, /) -> IWebAccount: ...
180
+ @_property
181
+ def state(self) -> WebAccountState: ...
182
+ @_property
183
+ def user_name(self) -> str: ...
184
+ @_property
185
+ def web_account_provider(self) -> typing.Optional[WebAccountProvider]: ...
186
+
@@ -0,0 +1,68 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_security_credentials
7
+
8
+ __all__ = [
9
+ "KeyCredentialAttestationStatus",
10
+ "KeyCredentialCreationOption",
11
+ "KeyCredentialStatus",
12
+ "WebAccountPictureSize",
13
+ "WebAccountState",
14
+ "KeyCredential",
15
+ "KeyCredentialAttestationResult",
16
+ "KeyCredentialManager",
17
+ "KeyCredentialOperationResult",
18
+ "KeyCredentialRetrievalResult",
19
+ "PasswordCredential",
20
+ "PasswordCredentialPropertyStore",
21
+ "PasswordVault",
22
+ "WebAccount",
23
+ "WebAccountProvider",
24
+ "IWebAccount",
25
+ ]
26
+
27
+ class KeyCredentialAttestationStatus(enum.IntEnum):
28
+ SUCCESS = 0
29
+ UNKNOWN_ERROR = 1
30
+ NOT_SUPPORTED = 2
31
+ TEMPORARY_FAILURE = 3
32
+
33
+ class KeyCredentialCreationOption(enum.IntEnum):
34
+ REPLACE_EXISTING = 0
35
+ FAIL_IF_EXISTS = 1
36
+
37
+ class KeyCredentialStatus(enum.IntEnum):
38
+ SUCCESS = 0
39
+ UNKNOWN_ERROR = 1
40
+ NOT_FOUND = 2
41
+ USER_CANCELED = 3
42
+ USER_PREFERS_PASSWORD = 4
43
+ CREDENTIAL_ALREADY_EXISTS = 5
44
+ SECURITY_DEVICE_LOCKED = 6
45
+
46
+ class WebAccountPictureSize(enum.IntEnum):
47
+ SIZE64X64 = 64
48
+ SIZE208X208 = 208
49
+ SIZE424X424 = 424
50
+ SIZE1080X1080 = 1080
51
+
52
+ class WebAccountState(enum.IntEnum):
53
+ NONE = 0
54
+ CONNECTED = 1
55
+ ERROR = 2
56
+
57
+ KeyCredential = _winrt_windows_security_credentials.KeyCredential
58
+ KeyCredentialAttestationResult = _winrt_windows_security_credentials.KeyCredentialAttestationResult
59
+ KeyCredentialManager = _winrt_windows_security_credentials.KeyCredentialManager
60
+ KeyCredentialOperationResult = _winrt_windows_security_credentials.KeyCredentialOperationResult
61
+ KeyCredentialRetrievalResult = _winrt_windows_security_credentials.KeyCredentialRetrievalResult
62
+ PasswordCredential = _winrt_windows_security_credentials.PasswordCredential
63
+ PasswordCredentialPropertyStore = _winrt_windows_security_credentials.PasswordCredentialPropertyStore
64
+ winrt.system._mixin_mutable_mapping(PasswordCredentialPropertyStore)
65
+ PasswordVault = _winrt_windows_security_credentials.PasswordVault
66
+ WebAccount = _winrt_windows_security_credentials.WebAccount
67
+ WebAccountProvider = _winrt_windows_security_credentials.WebAccountProvider
68
+ IWebAccount = _winrt_windows_security_credentials.IWebAccount
File without changes
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Security.Credentials
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Security.Cryptography.Core[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.System[all] ==2.2.0 ; extra == 'all'
22
+
23
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
24
+
25
+ # winrt-Windows.Security.Credentials
26
+
27
+ Windows Runtime (WinRT) APIs for for the `Windows.Security.Credentials` namespace.
28
+
29
+ This package provides the `winrt.windows.security.credentials` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_security_credentials.cp313-win_arm64.pyd,sha256=oi3WnuuWBMX0HySNKGAHi_lrZ0_tskGFJIxw1btYS14,267776
2
+ winrt/_winrt_windows_security_credentials.pyi,sha256=wBAa_DkCQbY-gvDDObVyaYLuakfyVzk_kDqS1rarBvY,8781
3
+ winrt/windows/security/credentials/__init__.py,sha256=EZV17bOBD_qduxP98ouyWef6nkgcvcITSG_khiciF18,2260
4
+ winrt/windows/security/credentials/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Security.Credentials-2.2.0.dist-info/METADATA,sha256=fZKPgVXiSHuuPh8dVR2GBHaVLbFulBa2yrZKUaUyZ2w,1376
6
+ winrt_Windows.Security.Credentials-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
7
+ winrt_Windows.Security.Credentials-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Security.Credentials-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_arm64
5
+