winrt-Windows.Security.Authentication.Identity.Core 2.0.0b2__tar.gz → 2.1.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 (21) hide show
  1. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/PKG-INFO +4 -1
  2. winrt_windows_security_authentication_identity_core-2.1.0/all-requirements.txt +4 -0
  3. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/py.Windows.Security.Authentication.Identity.Core.cpp +194 -211
  4. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_security_authentication_identity_core-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_security_authentication_identity_core-2.1.0/setup.py +31 -0
  8. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/winrt/_winrt_windows_security_authentication_identity_core.pyi +16 -16
  9. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/winrt/windows/security/authentication/identity/core/__init__.py +1 -1
  10. winrt_windows_security_authentication_identity_core-2.1.0/winrt/windows/security/authentication/identity/core/py.typed +0 -0
  11. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/PKG-INFO +4 -1
  12. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_security_authentication_identity_core-2.1.0/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +5 -0
  14. winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2/all-requirements.txt +0 -4
  15. winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2/winrt_Windows.Security.Authentication.Identity.Core.egg-info/requires.txt +0 -5
  18. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/README.md +0 -0
  19. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.0}/winrt_Windows.Security.Authentication.Identity.Core.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.Security.Authentication.Identity.Core-2.0.0b2 → winrt_windows_security_authentication_identity_core-2.1.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.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
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"
16
19
 
17
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
21
 
@@ -0,0 +1,4 @@
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,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.Security.Authentication.Identity.Core.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Security::Authentication::Identity::Core
7
6
  {
8
7
  // ----- MicrosoftAccountMultiFactorAuthenticationManager class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
28
27
 
29
28
  if (arg_count == 3)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"AddDeviceAsync", 3))
32
- {
33
- py::set_arg_count_version_error(3);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"AddDeviceAsync", 3))
33
+ {
34
+ py::set_arg_count_version_error(3);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
40
39
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
41
40
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -61,14 +60,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
61
60
 
62
61
  if (arg_count == 2)
63
62
  {
64
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 2))
65
- {
66
- py::set_arg_count_version_error(2);
67
- return nullptr;
68
- }
69
-
70
63
  try
71
64
  {
65
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 2))
66
+ {
67
+ py::set_arg_count_version_error(2);
68
+ return nullptr;
69
+ }
70
+
72
71
  auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus>(args, 0);
73
72
  auto param1 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo>(args, 1);
74
73
 
@@ -82,14 +81,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
82
81
  }
83
82
  else if (arg_count == 4)
84
83
  {
85
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 4))
86
- {
87
- py::set_arg_count_version_error(4);
88
- return nullptr;
89
- }
90
-
91
84
  try
92
85
  {
86
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"ApproveSessionAsync", 4))
87
+ {
88
+ py::set_arg_count_version_error(4);
89
+ return nullptr;
90
+ }
91
+
93
92
  auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionAuthenticationStatus>(args, 0);
94
93
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
95
94
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -116,14 +115,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
116
115
 
117
116
  if (arg_count == 1)
118
117
  {
119
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 1))
120
- {
121
- py::set_arg_count_version_error(1);
122
- return nullptr;
123
- }
124
-
125
118
  try
126
119
  {
120
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 1))
121
+ {
122
+ py::set_arg_count_version_error(1);
123
+ return nullptr;
124
+ }
125
+
127
126
  auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo>(args, 0);
128
127
 
129
128
  return py::convert(self->obj.DenySessionAsync(param0));
@@ -136,14 +135,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
136
135
  }
137
136
  else if (arg_count == 3)
138
137
  {
139
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 3))
140
- {
141
- py::set_arg_count_version_error(3);
142
- return nullptr;
143
- }
144
-
145
138
  try
146
139
  {
140
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"DenySessionAsync", 3))
141
+ {
142
+ py::set_arg_count_version_error(3);
143
+ return nullptr;
144
+ }
145
+
147
146
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
148
147
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
149
148
  auto param2 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationType>(args, 2);
@@ -169,14 +168,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
169
168
 
170
169
  if (arg_count == 2)
171
170
  {
172
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetOneTimePassCodeAsync", 2))
173
- {
174
- py::set_arg_count_version_error(2);
175
- return nullptr;
176
- }
177
-
178
171
  try
179
172
  {
173
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetOneTimePassCodeAsync", 2))
174
+ {
175
+ py::set_arg_count_version_error(2);
176
+ return nullptr;
177
+ }
178
+
180
179
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
181
180
  auto param1 = py::convert_to<uint32_t>(args, 1);
182
181
 
@@ -201,14 +200,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
201
200
 
202
201
  if (arg_count == 1)
203
202
  {
204
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAndUnregisteredAccountsAsync", 1))
205
- {
206
- py::set_arg_count_version_error(1);
207
- return nullptr;
208
- }
209
-
210
203
  try
211
204
  {
205
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAndUnregisteredAccountsAsync", 1))
206
+ {
207
+ py::set_arg_count_version_error(1);
208
+ return nullptr;
209
+ }
210
+
212
211
  auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
213
212
 
214
213
  return py::convert(self->obj.GetSessionsAndUnregisteredAccountsAsync(param0));
@@ -232,14 +231,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
232
231
 
233
232
  if (arg_count == 1)
234
233
  {
235
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAsync", 1))
236
- {
237
- py::set_arg_count_version_error(1);
238
- return nullptr;
239
- }
240
-
241
234
  try
242
235
  {
236
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"GetSessionsAsync", 1))
237
+ {
238
+ py::set_arg_count_version_error(1);
239
+ return nullptr;
240
+ }
241
+
243
242
  auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
244
243
 
245
244
  return py::convert(self->obj.GetSessionsAsync(param0));
@@ -263,14 +262,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
263
262
 
264
263
  if (arg_count == 1)
265
264
  {
266
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"RemoveDeviceAsync", 1))
267
- {
268
- py::set_arg_count_version_error(1);
269
- return nullptr;
270
- }
271
-
272
265
  try
273
266
  {
267
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"RemoveDeviceAsync", 1))
268
+ {
269
+ py::set_arg_count_version_error(1);
270
+ return nullptr;
271
+ }
272
+
274
273
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
275
274
 
276
275
  return py::convert(self->obj.RemoveDeviceAsync(param0));
@@ -294,14 +293,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
294
293
 
295
294
  if (arg_count == 2)
296
295
  {
297
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"UpdateWnsChannelAsync", 2))
298
- {
299
- py::set_arg_count_version_error(2);
300
- return nullptr;
301
- }
302
-
303
296
  try
304
297
  {
298
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"UpdateWnsChannelAsync", 2))
299
+ {
300
+ py::set_arg_count_version_error(2);
301
+ return nullptr;
302
+ }
303
+
305
304
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
306
305
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
307
306
 
@@ -322,14 +321,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
322
321
 
323
322
  static PyObject* MicrosoftAccountMultiFactorAuthenticationManager_get_Current(PyObject* /*unused*/, void* /*unused*/) noexcept
324
323
  {
325
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"Current"))
326
- {
327
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
328
- return nullptr;
329
- }
330
-
331
324
  try
332
325
  {
326
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorAuthenticationManager", L"Current"))
327
+ {
328
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
329
+ return nullptr;
330
+ }
331
+
333
332
  return py::convert(winrt::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager::Current());
334
333
  }
335
334
  catch (...)
@@ -381,23 +380,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
381
380
  { }
382
381
  };
383
382
 
384
- static PyType_Slot _type_slots_MicrosoftAccountMultiFactorAuthenticationManager[] =
385
- {
383
+ static PyType_Slot _type_slots_MicrosoftAccountMultiFactorAuthenticationManager[] = {
386
384
  { Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorAuthenticationManager) },
387
385
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorAuthenticationManager) },
388
386
  { Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorAuthenticationManager) },
389
387
  { Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorAuthenticationManager) },
390
- { },
388
+ { }
391
389
  };
392
390
 
393
- static PyType_Spec type_spec_MicrosoftAccountMultiFactorAuthenticationManager =
394
- {
391
+ static PyType_Spec type_spec_MicrosoftAccountMultiFactorAuthenticationManager = {
395
392
  "winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorAuthenticationManager",
396
393
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorAuthenticationManager),
397
394
  0,
398
395
  Py_TPFLAGS_DEFAULT,
399
- _type_slots_MicrosoftAccountMultiFactorAuthenticationManager
400
- };
396
+ _type_slots_MicrosoftAccountMultiFactorAuthenticationManager};
401
397
 
402
398
  static PyGetSetDef getset_MicrosoftAccountMultiFactorAuthenticationManager_Static[] = {
403
399
  { "current", reinterpret_cast<getter>(MicrosoftAccountMultiFactorAuthenticationManager_get_Current), nullptr, nullptr, nullptr },
@@ -444,14 +440,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
444
440
 
445
441
  static PyObject* MicrosoftAccountMultiFactorGetSessionsResult_get_ServiceResponse(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorGetSessionsResult* self, void* /*unused*/) noexcept
446
442
  {
447
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"ServiceResponse"))
448
- {
449
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
450
- return nullptr;
451
- }
452
-
453
443
  try
454
444
  {
445
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"ServiceResponse"))
446
+ {
447
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
448
+ return nullptr;
449
+ }
450
+
455
451
  return py::convert(self->obj.ServiceResponse());
456
452
  }
457
453
  catch (...)
@@ -463,14 +459,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
463
459
 
464
460
  static PyObject* MicrosoftAccountMultiFactorGetSessionsResult_get_Sessions(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorGetSessionsResult* self, void* /*unused*/) noexcept
465
461
  {
466
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"Sessions"))
467
- {
468
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
469
- return nullptr;
470
- }
471
-
472
462
  try
473
463
  {
464
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorGetSessionsResult", L"Sessions"))
465
+ {
466
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
467
+ return nullptr;
468
+ }
469
+
474
470
  return py::convert(self->obj.Sessions());
475
471
  }
476
472
  catch (...)
@@ -516,23 +512,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
516
512
  { }
517
513
  };
518
514
 
519
- static PyType_Slot _type_slots_MicrosoftAccountMultiFactorGetSessionsResult[] =
520
- {
515
+ static PyType_Slot _type_slots_MicrosoftAccountMultiFactorGetSessionsResult[] = {
521
516
  { Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorGetSessionsResult) },
522
517
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorGetSessionsResult) },
523
518
  { Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorGetSessionsResult) },
524
519
  { Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorGetSessionsResult) },
525
- { },
520
+ { }
526
521
  };
527
522
 
528
- static PyType_Spec type_spec_MicrosoftAccountMultiFactorGetSessionsResult =
529
- {
523
+ static PyType_Spec type_spec_MicrosoftAccountMultiFactorGetSessionsResult = {
530
524
  "winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorGetSessionsResult",
531
525
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorGetSessionsResult),
532
526
  0,
533
527
  Py_TPFLAGS_DEFAULT,
534
- _type_slots_MicrosoftAccountMultiFactorGetSessionsResult
535
- };
528
+ _type_slots_MicrosoftAccountMultiFactorGetSessionsResult};
536
529
 
537
530
  // ----- MicrosoftAccountMultiFactorOneTimeCodedInfo class --------------------
538
531
 
@@ -553,14 +546,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
553
546
 
554
547
  static PyObject* MicrosoftAccountMultiFactorOneTimeCodedInfo_get_Code(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorOneTimeCodedInfo* self, void* /*unused*/) noexcept
555
548
  {
556
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"Code"))
557
- {
558
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
559
- return nullptr;
560
- }
561
-
562
549
  try
563
550
  {
551
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"Code"))
552
+ {
553
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
554
+ return nullptr;
555
+ }
556
+
564
557
  return py::convert(self->obj.Code());
565
558
  }
566
559
  catch (...)
@@ -572,14 +565,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
572
565
 
573
566
  static PyObject* MicrosoftAccountMultiFactorOneTimeCodedInfo_get_ServiceResponse(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorOneTimeCodedInfo* self, void* /*unused*/) noexcept
574
567
  {
575
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"ServiceResponse"))
576
- {
577
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
578
- return nullptr;
579
- }
580
-
581
568
  try
582
569
  {
570
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"ServiceResponse"))
571
+ {
572
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
573
+ return nullptr;
574
+ }
575
+
583
576
  return py::convert(self->obj.ServiceResponse());
584
577
  }
585
578
  catch (...)
@@ -591,14 +584,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
591
584
 
592
585
  static PyObject* MicrosoftAccountMultiFactorOneTimeCodedInfo_get_TimeInterval(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorOneTimeCodedInfo* self, void* /*unused*/) noexcept
593
586
  {
594
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeInterval"))
595
- {
596
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
597
- return nullptr;
598
- }
599
-
600
587
  try
601
588
  {
589
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeInterval"))
590
+ {
591
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
592
+ return nullptr;
593
+ }
594
+
602
595
  return py::convert(self->obj.TimeInterval());
603
596
  }
604
597
  catch (...)
@@ -610,14 +603,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
610
603
 
611
604
  static PyObject* MicrosoftAccountMultiFactorOneTimeCodedInfo_get_TimeToLive(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorOneTimeCodedInfo* self, void* /*unused*/) noexcept
612
605
  {
613
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeToLive"))
614
- {
615
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
616
- return nullptr;
617
- }
618
-
619
606
  try
620
607
  {
608
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorOneTimeCodedInfo", L"TimeToLive"))
609
+ {
610
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
611
+ return nullptr;
612
+ }
613
+
621
614
  return py::convert(self->obj.TimeToLive());
622
615
  }
623
616
  catch (...)
@@ -665,23 +658,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
665
658
  { }
666
659
  };
667
660
 
668
- static PyType_Slot _type_slots_MicrosoftAccountMultiFactorOneTimeCodedInfo[] =
669
- {
661
+ static PyType_Slot _type_slots_MicrosoftAccountMultiFactorOneTimeCodedInfo[] = {
670
662
  { Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
671
663
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
672
664
  { Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
673
665
  { Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorOneTimeCodedInfo) },
674
- { },
666
+ { }
675
667
  };
676
668
 
677
- static PyType_Spec type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo =
678
- {
669
+ static PyType_Spec type_spec_MicrosoftAccountMultiFactorOneTimeCodedInfo = {
679
670
  "winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorOneTimeCodedInfo",
680
671
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorOneTimeCodedInfo),
681
672
  0,
682
673
  Py_TPFLAGS_DEFAULT,
683
- _type_slots_MicrosoftAccountMultiFactorOneTimeCodedInfo
684
- };
674
+ _type_slots_MicrosoftAccountMultiFactorOneTimeCodedInfo};
685
675
 
686
676
  // ----- MicrosoftAccountMultiFactorSessionInfo class --------------------
687
677
 
@@ -702,14 +692,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
702
692
 
703
693
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_ApprovalStatus(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
704
694
  {
705
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ApprovalStatus"))
706
- {
707
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
708
- return nullptr;
709
- }
710
-
711
695
  try
712
696
  {
697
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ApprovalStatus"))
698
+ {
699
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
700
+ return nullptr;
701
+ }
702
+
713
703
  return py::convert(self->obj.ApprovalStatus());
714
704
  }
715
705
  catch (...)
@@ -721,14 +711,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
721
711
 
722
712
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_AuthenticationType(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
723
713
  {
724
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"AuthenticationType"))
725
- {
726
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
727
- return nullptr;
728
- }
729
-
730
714
  try
731
715
  {
716
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"AuthenticationType"))
717
+ {
718
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
719
+ return nullptr;
720
+ }
721
+
732
722
  return py::convert(self->obj.AuthenticationType());
733
723
  }
734
724
  catch (...)
@@ -740,14 +730,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
740
730
 
741
731
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_DisplaySessionId(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
742
732
  {
743
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"DisplaySessionId"))
744
- {
745
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
746
- return nullptr;
747
- }
748
-
749
733
  try
750
734
  {
735
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"DisplaySessionId"))
736
+ {
737
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
738
+ return nullptr;
739
+ }
740
+
751
741
  return py::convert(self->obj.DisplaySessionId());
752
742
  }
753
743
  catch (...)
@@ -759,14 +749,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
759
749
 
760
750
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_ExpirationTime(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
761
751
  {
762
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ExpirationTime"))
763
- {
764
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
765
- return nullptr;
766
- }
767
-
768
752
  try
769
753
  {
754
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"ExpirationTime"))
755
+ {
756
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
757
+ return nullptr;
758
+ }
759
+
770
760
  return py::convert(self->obj.ExpirationTime());
771
761
  }
772
762
  catch (...)
@@ -778,14 +768,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
778
768
 
779
769
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_RequestTime(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
780
770
  {
781
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"RequestTime"))
782
- {
783
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
784
- return nullptr;
785
- }
786
-
787
771
  try
788
772
  {
773
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"RequestTime"))
774
+ {
775
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
776
+ return nullptr;
777
+ }
778
+
789
779
  return py::convert(self->obj.RequestTime());
790
780
  }
791
781
  catch (...)
@@ -797,14 +787,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
797
787
 
798
788
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_SessionId(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
799
789
  {
800
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"SessionId"))
801
- {
802
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
803
- return nullptr;
804
- }
805
-
806
790
  try
807
791
  {
792
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"SessionId"))
793
+ {
794
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
795
+ return nullptr;
796
+ }
797
+
808
798
  return py::convert(self->obj.SessionId());
809
799
  }
810
800
  catch (...)
@@ -816,14 +806,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
816
806
 
817
807
  static PyObject* MicrosoftAccountMultiFactorSessionInfo_get_UserAccountId(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo* self, void* /*unused*/) noexcept
818
808
  {
819
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"UserAccountId"))
820
- {
821
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
822
- return nullptr;
823
- }
824
-
825
809
  try
826
810
  {
811
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorSessionInfo", L"UserAccountId"))
812
+ {
813
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
814
+ return nullptr;
815
+ }
816
+
827
817
  return py::convert(self->obj.UserAccountId());
828
818
  }
829
819
  catch (...)
@@ -874,23 +864,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
874
864
  { }
875
865
  };
876
866
 
877
- static PyType_Slot _type_slots_MicrosoftAccountMultiFactorSessionInfo[] =
878
- {
867
+ static PyType_Slot _type_slots_MicrosoftAccountMultiFactorSessionInfo[] = {
879
868
  { Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorSessionInfo) },
880
869
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorSessionInfo) },
881
870
  { Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorSessionInfo) },
882
871
  { Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorSessionInfo) },
883
- { },
872
+ { }
884
873
  };
885
874
 
886
- static PyType_Spec type_spec_MicrosoftAccountMultiFactorSessionInfo =
887
- {
875
+ static PyType_Spec type_spec_MicrosoftAccountMultiFactorSessionInfo = {
888
876
  "winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorSessionInfo",
889
877
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorSessionInfo),
890
878
  0,
891
879
  Py_TPFLAGS_DEFAULT,
892
- _type_slots_MicrosoftAccountMultiFactorSessionInfo
893
- };
880
+ _type_slots_MicrosoftAccountMultiFactorSessionInfo};
894
881
 
895
882
  // ----- MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo class --------------------
896
883
 
@@ -911,14 +898,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
911
898
 
912
899
  static PyObject* MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_ServiceResponse(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo* self, void* /*unused*/) noexcept
913
900
  {
914
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"ServiceResponse"))
915
- {
916
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
917
- return nullptr;
918
- }
919
-
920
901
  try
921
902
  {
903
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"ServiceResponse"))
904
+ {
905
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
906
+ return nullptr;
907
+ }
908
+
922
909
  return py::convert(self->obj.ServiceResponse());
923
910
  }
924
911
  catch (...)
@@ -930,14 +917,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
930
917
 
931
918
  static PyObject* MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_Sessions(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo* self, void* /*unused*/) noexcept
932
919
  {
933
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"Sessions"))
934
- {
935
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
936
- return nullptr;
937
- }
938
-
939
920
  try
940
921
  {
922
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"Sessions"))
923
+ {
924
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
925
+ return nullptr;
926
+ }
927
+
941
928
  return py::convert(self->obj.Sessions());
942
929
  }
943
930
  catch (...)
@@ -949,14 +936,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
949
936
 
950
937
  static PyObject* MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_get_UnregisteredAccounts(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo* self, void* /*unused*/) noexcept
951
938
  {
952
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"UnregisteredAccounts"))
953
- {
954
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
955
- return nullptr;
956
- }
957
-
958
939
  try
959
940
  {
941
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo", L"UnregisteredAccounts"))
942
+ {
943
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
944
+ return nullptr;
945
+ }
946
+
960
947
  return py::convert(self->obj.UnregisteredAccounts());
961
948
  }
962
949
  catch (...)
@@ -1003,39 +990,35 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Core
1003
990
  { }
1004
991
  };
1005
992
 
1006
- static PyType_Slot _type_slots_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo[] =
1007
- {
993
+ static PyType_Slot _type_slots_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo[] = {
1008
994
  { Py_tp_new, reinterpret_cast<void*>(_new_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
1009
995
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
1010
996
  { Py_tp_methods, reinterpret_cast<void*>(_methods_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
1011
997
  { Py_tp_getset, reinterpret_cast<void*>(_getset_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo) },
1012
- { },
998
+ { }
1013
999
  };
1014
1000
 
1015
- static PyType_Spec type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo =
1016
- {
1001
+ static PyType_Spec type_spec_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo = {
1017
1002
  "winrt._winrt_windows_security_authentication_identity_core.MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo",
1018
1003
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Core::MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo),
1019
1004
  0,
1020
1005
  Py_TPFLAGS_DEFAULT,
1021
- _type_slots_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo
1022
- };
1006
+ _type_slots_MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo};
1023
1007
 
1024
1008
  // ----- Windows.Security.Authentication.Identity.Core Initialization --------------------
1025
- PyDoc_STRVAR(module_doc, "Windows::Security::Authentication::Identity::Core");
1026
-
1027
1009
 
1028
- static PyModuleDef module_def
1029
- = {PyModuleDef_HEAD_INIT,
1030
- "_winrt_windows_security_authentication_identity_core",
1031
- module_doc,
1032
- 0,
1033
- nullptr,
1034
- nullptr,
1035
- nullptr,
1036
- nullptr,
1037
- nullptr};
1010
+ PyDoc_STRVAR(module_doc, "Windows.Security.Authentication.Identity.Core");
1038
1011
 
1012
+ static PyModuleDef module_def = {
1013
+ PyModuleDef_HEAD_INIT,
1014
+ "_winrt_windows_security_authentication_identity_core",
1015
+ module_doc,
1016
+ 0,
1017
+ nullptr,
1018
+ nullptr,
1019
+ nullptr,
1020
+ nullptr,
1021
+ nullptr};
1039
1022
  } // py::cpp::Windows::Security::Authentication::Identity::Core
1040
1023
 
1041
1024
  PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_core(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_security_authentication_identity_core",
26
+ sources=["py.Windows.Security.Authentication.Identity.Core.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,8 +9,8 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.foundation.collections
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
14
 
15
15
  from winrt.windows.security.authentication.identity.core import MicrosoftAccountMultiFactorAuthenticationType, MicrosoftAccountMultiFactorServiceResponse, MicrosoftAccountMultiFactorSessionApprovalStatus, MicrosoftAccountMultiFactorSessionAuthenticationStatus
16
16
 
@@ -25,20 +25,20 @@ class MicrosoftAccountMultiFactorAuthenticationManager_Static(type):
25
25
  class MicrosoftAccountMultiFactorAuthenticationManager(winrt.system.Object, metaclass=MicrosoftAccountMultiFactorAuthenticationManager_Static):
26
26
  @staticmethod
27
27
  def _from(obj: winrt.system.Object, /) -> MicrosoftAccountMultiFactorAuthenticationManager: ...
28
- def add_device_async(self, user_account_id: str, authentication_token: str, wns_channel_id: str, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
28
+ def add_device_async(self, user_account_id: str, authentication_token: str, wns_channel_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
29
29
  @typing.overload
30
- def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
30
+ def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
31
31
  @typing.overload
32
- def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
32
+ def approve_session_async(self, session_authentiction_status: MicrosoftAccountMultiFactorSessionAuthenticationStatus, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
33
33
  @typing.overload
34
- def deny_session_async(self, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
34
+ def deny_session_async(self, authentication_session_info: typing.Optional[MicrosoftAccountMultiFactorSessionInfo], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
35
35
  @typing.overload
36
- def deny_session_async(self, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
37
- def get_one_time_pass_code_async(self, user_account_id: str, code_length: winrt.system.UInt32, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorOneTimeCodedInfo]: ...
38
- def get_sessions_and_unregistered_accounts_async(self, user_account_id_list: typing.Iterable[str], /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo]: ...
39
- def get_sessions_async(self, user_account_id_list: typing.Iterable[str], /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorGetSessionsResult]: ...
40
- def remove_device_async(self, user_account_id: str, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
41
- def update_wns_channel_async(self, user_account_id: str, channel_uri: str, /) -> winrt.windows.foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
36
+ def deny_session_async(self, user_account_id: str, session_id: str, session_authentication_type: MicrosoftAccountMultiFactorAuthenticationType, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
37
+ def get_one_time_pass_code_async(self, user_account_id: str, code_length: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorOneTimeCodedInfo]: ...
38
+ def get_sessions_and_unregistered_accounts_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo]: ...
39
+ def get_sessions_async(self, user_account_id_list: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorGetSessionsResult]: ...
40
+ def remove_device_async(self, user_account_id: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
41
+ def update_wns_channel_async(self, user_account_id: str, channel_uri: str, /) -> windows_foundation.IAsyncOperation[MicrosoftAccountMultiFactorServiceResponse]: ...
42
42
 
43
43
  @typing.final
44
44
  class MicrosoftAccountMultiFactorGetSessionsResult(winrt.system.Object):
@@ -47,7 +47,7 @@ class MicrosoftAccountMultiFactorGetSessionsResult(winrt.system.Object):
47
47
  @_property
48
48
  def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
49
49
  @_property
50
- def sessions(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
50
+ def sessions(self) -> typing.Optional[windows_foundation_collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
51
51
 
52
52
  @typing.final
53
53
  class MicrosoftAccountMultiFactorOneTimeCodedInfo(winrt.system.Object):
@@ -88,7 +88,7 @@ class MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(winrt.system
88
88
  @_property
89
89
  def service_response(self) -> MicrosoftAccountMultiFactorServiceResponse: ...
90
90
  @_property
91
- def sessions(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
91
+ def sessions(self) -> typing.Optional[windows_foundation_collections.IVectorView[MicrosoftAccountMultiFactorSessionInfo]]: ...
92
92
  @_property
93
- def unregistered_accounts(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
93
+ def unregistered_accounts(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
94
94
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
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"
16
19
 
17
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
21
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_security_authentication_identity_core.pyi
9
9
  winrt/windows/security/authentication/identity/core/__init__.py
10
+ winrt/windows/security/authentication/identity/core/py.typed
10
11
  winrt_Windows.Security.Authentication.Identity.Core.egg-info/PKG-INFO
11
12
  winrt_Windows.Security.Authentication.Identity.Core.egg-info/SOURCES.txt
12
13
  winrt_Windows.Security.Authentication.Identity.Core.egg-info/dependency_links.txt
@@ -0,0 +1,5 @@
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
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
4
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_security_authentication_identity_core",
10
- sources=["py.Windows.Security.Authentication.Identity.Core.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2
5
- winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2