winrt-Windows.Security.Authentication.Identity.Core 2.1.0__tar.gz → 2.3.0__tar.gz

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.
Files changed (20) hide show
  1. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/PKG-INFO +5 -5
  2. winrt_windows_security_authentication_identity_core-2.3.0/all-requirements.txt +4 -0
  3. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/py.Windows.Security.Authentication.Identity.Core.cpp +227 -33
  4. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_security_authentication_identity_core-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt/_winrt_windows_security_authentication_identity_core.pyi +1 -1
  8. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt/windows/security/authentication/identity/core/__init__.py +1 -1
  9. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/PKG-INFO +5 -5
  10. winrt_windows_security_authentication_identity_core-2.3.0/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +5 -0
  11. winrt_windows_security_authentication_identity_core-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_security_authentication_identity_core-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_security_authentication_identity_core-2.1.0/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +0 -5
  14. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/README.md +0 -0
  15. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/setup.py +0 -0
  17. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt/windows/security/authentication/identity/core/py.typed +0 -0
  18. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_authentication_identity_core-2.1.0 → winrt_windows_security_authentication_identity_core-2.3.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Authentication.Identity.Core
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Foundation[all]==2.3.0
4
+ winrt-Windows.Foundation.Collections[all]==2.3.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  #include "py.Windows.Security.Authentication.Identity.Core.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"AddDeviceAsync", 3))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"AddDeviceAsync", 3);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(3);
35
42
  return nullptr;
@@ -62,7 +69,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
62
69
  {
63
70
  try
64
71
  {
65
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 2))
72
+ static std::optional<bool> is_overload_present{};
73
+
74
+ if (!is_overload_present.has_value())
75
+ {
76
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 2);
77
+ }
78
+
79
+ if (!is_overload_present.value())
66
80
  {
67
81
  py::set_arg_count_version_error(2);
68
82
  return nullptr;
@@ -83,7 +97,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
83
97
  {
84
98
  try
85
99
  {
86
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 4))
100
+ static std::optional<bool> is_overload_present{};
101
+
102
+ if (!is_overload_present.has_value())
103
+ {
104
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 4);
105
+ }
106
+
107
+ if (!is_overload_present.value())
87
108
  {
88
109
  py::set_arg_count_version_error(4);
89
110
  return nullptr;
@@ -117,7 +138,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
117
138
  {
118
139
  try
119
140
  {
120
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 1))
141
+ static std::optional<bool> is_overload_present{};
142
+
143
+ if (!is_overload_present.has_value())
144
+ {
145
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 1);
146
+ }
147
+
148
+ if (!is_overload_present.value())
121
149
  {
122
150
  py::set_arg_count_version_error(1);
123
151
  return nullptr;
@@ -137,7 +165,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
137
165
  {
138
166
  try
139
167
  {
140
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 3))
168
+ static std::optional<bool> is_overload_present{};
169
+
170
+ if (!is_overload_present.has_value())
171
+ {
172
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 3);
173
+ }
174
+
175
+ if (!is_overload_present.value())
141
176
  {
142
177
  py::set_arg_count_version_error(3);
143
178
  return nullptr;
@@ -170,7 +205,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
170
205
  {
171
206
  try
172
207
  {
173
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetOneTimePassCodeAsync", 2))
208
+ static std::optional<bool> is_overload_present{};
209
+
210
+ if (!is_overload_present.has_value())
211
+ {
212
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetOneTimePassCodeAsync", 2);
213
+ }
214
+
215
+ if (!is_overload_present.value())
174
216
  {
175
217
  py::set_arg_count_version_error(2);
176
218
  return nullptr;
@@ -202,7 +244,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
202
244
  {
203
245
  try
204
246
  {
205
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAndUnregisteredAccountsAsync", 1))
247
+ static std::optional<bool> is_overload_present{};
248
+
249
+ if (!is_overload_present.has_value())
250
+ {
251
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAndUnregisteredAccountsAsync", 1);
252
+ }
253
+
254
+ if (!is_overload_present.value())
206
255
  {
207
256
  py::set_arg_count_version_error(1);
208
257
  return nullptr;
@@ -233,7 +282,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
233
282
  {
234
283
  try
235
284
  {
236
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAsync", 1))
285
+ static std::optional<bool> is_overload_present{};
286
+
287
+ if (!is_overload_present.has_value())
288
+ {
289
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAsync", 1);
290
+ }
291
+
292
+ if (!is_overload_present.value())
237
293
  {
238
294
  py::set_arg_count_version_error(1);
239
295
  return nullptr;
@@ -264,7 +320,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
264
320
  {
265
321
  try
266
322
  {
267
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"RemoveDeviceAsync", 1))
323
+ static std::optional<bool> is_overload_present{};
324
+
325
+ if (!is_overload_present.has_value())
326
+ {
327
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"RemoveDeviceAsync", 1);
328
+ }
329
+
330
+ if (!is_overload_present.value())
268
331
  {
269
332
  py::set_arg_count_version_error(1);
270
333
  return nullptr;
@@ -295,7 +358,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
295
358
  {
296
359
  try
297
360
  {
298
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"UpdateWnsChannelAsync", 2))
361
+ static std::optional<bool> is_overload_present{};
362
+
363
+ if (!is_overload_present.has_value())
364
+ {
365
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"UpdateWnsChannelAsync", 2);
366
+ }
367
+
368
+ if (!is_overload_present.value())
299
369
  {
300
370
  py::set_arg_count_version_error(2);
301
371
  return nullptr;
@@ -323,7 +393,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
323
393
  {
324
394
  try
325
395
  {
326
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"Current"))
396
+ static std::optional<bool> is_property_present{};
397
+
398
+ if (!is_property_present.has_value())
399
+ {
400
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"Current");
401
+ }
402
+
403
+ if (!is_property_present.value())
327
404
  {
328
405
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
329
406
  return nullptr;
@@ -442,7 +519,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
442
519
  {
443
520
  try
444
521
  {
445
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"ServiceResponse"))
522
+ static std::optional<bool> is_property_present{};
523
+
524
+ if (!is_property_present.has_value())
525
+ {
526
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"ServiceResponse");
527
+ }
528
+
529
+ if (!is_property_present.value())
446
530
  {
447
531
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
448
532
  return nullptr;
@@ -461,7 +545,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
461
545
  {
462
546
  try
463
547
  {
464
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"Sessions"))
548
+ static std::optional<bool> is_property_present{};
549
+
550
+ if (!is_property_present.has_value())
551
+ {
552
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"Sessions");
553
+ }
554
+
555
+ if (!is_property_present.value())
465
556
  {
466
557
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
467
558
  return nullptr;
@@ -548,7 +639,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
548
639
  {
549
640
  try
550
641
  {
551
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"Code"))
642
+ static std::optional<bool> is_property_present{};
643
+
644
+ if (!is_property_present.has_value())
645
+ {
646
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"Code");
647
+ }
648
+
649
+ if (!is_property_present.value())
552
650
  {
553
651
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
554
652
  return nullptr;
@@ -567,7 +665,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
567
665
  {
568
666
  try
569
667
  {
570
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"ServiceResponse"))
668
+ static std::optional<bool> is_property_present{};
669
+
670
+ if (!is_property_present.has_value())
671
+ {
672
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"ServiceResponse");
673
+ }
674
+
675
+ if (!is_property_present.value())
571
676
  {
572
677
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
573
678
  return nullptr;
@@ -586,7 +691,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
586
691
  {
587
692
  try
588
693
  {
589
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeInterval"))
694
+ static std::optional<bool> is_property_present{};
695
+
696
+ if (!is_property_present.has_value())
697
+ {
698
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeInterval");
699
+ }
700
+
701
+ if (!is_property_present.value())
590
702
  {
591
703
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
592
704
  return nullptr;
@@ -605,7 +717,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
605
717
  {
606
718
  try
607
719
  {
608
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeToLive"))
720
+ static std::optional<bool> is_property_present{};
721
+
722
+ if (!is_property_present.has_value())
723
+ {
724
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeToLive");
725
+ }
726
+
727
+ if (!is_property_present.value())
609
728
  {
610
729
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
611
730
  return nullptr;
@@ -694,7 +813,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
694
813
  {
695
814
  try
696
815
  {
697
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ApprovalStatus"))
816
+ static std::optional<bool> is_property_present{};
817
+
818
+ if (!is_property_present.has_value())
819
+ {
820
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ApprovalStatus");
821
+ }
822
+
823
+ if (!is_property_present.value())
698
824
  {
699
825
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
700
826
  return nullptr;
@@ -713,7 +839,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
713
839
  {
714
840
  try
715
841
  {
716
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"AuthenticationType"))
842
+ static std::optional<bool> is_property_present{};
843
+
844
+ if (!is_property_present.has_value())
845
+ {
846
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"AuthenticationType");
847
+ }
848
+
849
+ if (!is_property_present.value())
717
850
  {
718
851
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
719
852
  return nullptr;
@@ -732,7 +865,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
732
865
  {
733
866
  try
734
867
  {
735
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"DisplaySessionId"))
868
+ static std::optional<bool> is_property_present{};
869
+
870
+ if (!is_property_present.has_value())
871
+ {
872
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"DisplaySessionId");
873
+ }
874
+
875
+ if (!is_property_present.value())
736
876
  {
737
877
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
738
878
  return nullptr;
@@ -751,7 +891,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
751
891
  {
752
892
  try
753
893
  {
754
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ExpirationTime"))
894
+ static std::optional<bool> is_property_present{};
895
+
896
+ if (!is_property_present.has_value())
897
+ {
898
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ExpirationTime");
899
+ }
900
+
901
+ if (!is_property_present.value())
755
902
  {
756
903
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
757
904
  return nullptr;
@@ -770,7 +917,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
770
917
  {
771
918
  try
772
919
  {
773
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"RequestTime"))
920
+ static std::optional<bool> is_property_present{};
921
+
922
+ if (!is_property_present.has_value())
923
+ {
924
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"RequestTime");
925
+ }
926
+
927
+ if (!is_property_present.value())
774
928
  {
775
929
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
776
930
  return nullptr;
@@ -789,7 +943,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
789
943
  {
790
944
  try
791
945
  {
792
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"SessionId"))
946
+ static std::optional<bool> is_property_present{};
947
+
948
+ if (!is_property_present.has_value())
949
+ {
950
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"SessionId");
951
+ }
952
+
953
+ if (!is_property_present.value())
793
954
  {
794
955
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
795
956
  return nullptr;
@@ -808,7 +969,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
808
969
  {
809
970
  try
810
971
  {
811
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"UserAccountId"))
972
+ static std::optional<bool> is_property_present{};
973
+
974
+ if (!is_property_present.has_value())
975
+ {
976
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"UserAccountId");
977
+ }
978
+
979
+ if (!is_property_present.value())
812
980
  {
813
981
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
814
982
  return nullptr;
@@ -900,7 +1068,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
900
1068
  {
901
1069
  try
902
1070
  {
903
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"ServiceResponse"))
1071
+ static std::optional<bool> is_property_present{};
1072
+
1073
+ if (!is_property_present.has_value())
1074
+ {
1075
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"ServiceResponse");
1076
+ }
1077
+
1078
+ if (!is_property_present.value())
904
1079
  {
905
1080
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
906
1081
  return nullptr;
@@ -919,7 +1094,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
919
1094
  {
920
1095
  try
921
1096
  {
922
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"Sessions"))
1097
+ static std::optional<bool> is_property_present{};
1098
+
1099
+ if (!is_property_present.has_value())
1100
+ {
1101
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"Sessions");
1102
+ }
1103
+
1104
+ if (!is_property_present.value())
923
1105
  {
924
1106
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
925
1107
  return nullptr;
@@ -938,7 +1120,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
938
1120
  {
939
1121
  try
940
1122
  {
941
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"UnregisteredAccounts"))
1123
+ static std::optional<bool> is_property_present{};
1124
+
1125
+ if (!is_property_present.has_value())
1126
+ {
1127
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"UnregisteredAccounts");
1128
+ }
1129
+
1130
+ if (!is_property_present.value())
942
1131
  {
943
1132
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
944
1133
  return nullptr;
@@ -1056,27 +1245,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_core(void)
1056
1245
  return nullptr;
1057
1246
  }
1058
1247
 
1059
- if (py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorAuthenticationManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_MicrosoftAccountMultiFactorAuthenticationManager_Static.get())) == -1)
1248
+ py::pytype_handle MicrosoftAccountMultiFactorAuthenticationManager_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorAuthenticationManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_MicrosoftAccountMultiFactorAuthenticationManager_Static.get()))};
1249
+ if (!MicrosoftAccountMultiFactorAuthenticationManager_type)
1060
1250
  {
1061
1251
  return nullptr;
1062
1252
  }
1063
1253
 
1064
- if (py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorGetSessionsResult, object_bases.get(), nullptr) == -1)
1254
+ py::pytype_handle MicrosoftAccountMultiFactorGetSessionsResult_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorGetSessionsResult, object_bases.get(), nullptr)};
1255
+ if (!MicrosoftAccountMultiFactorGetSessionsResult_type)
1065
1256
  {
1066
1257
  return nullptr;
1067
1258
  }
1068
1259
 
1069
- if (py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo, object_bases.get(), nullptr) == -1)
1260
+ py::pytype_handle MicrosoftAccountMultiFactorOneTimeCodedInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo, object_bases.get(), nullptr)};
1261
+ if (!MicrosoftAccountMultiFactorOneTimeCodedInfo_type)
1070
1262
  {
1071
1263
  return nullptr;
1072
1264
  }
1073
1265
 
1074
- if (py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorSessionInfo, object_bases.get(), nullptr) == -1)
1266
+ py::pytype_handle MicrosoftAccountMultiFactorSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorSessionInfo, object_bases.get(), nullptr)};
1267
+ if (!MicrosoftAccountMultiFactorSessionInfo_type)
1075
1268
  {
1076
1269
  return nullptr;
1077
1270
  }
1078
1271
 
1079
- if (py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, object_bases.get(), nullptr) == -1)
1272
+ py::pytype_handle MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_type{py::register_python_type(module.get(), &type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, object_bases.get(), nullptr)};
1273
+ if (!MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_type)
1080
1274
  {
1081
1275
  return nullptr;
1082
1276
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Authentication.Identity.Core
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Foundation.Collections[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Foundation.Collections[all]==2.1.0