winrt-Windows.Security.Authentication.Identity.Provider 2.0.1__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 (20) hide show
  1. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/PKG-INFO +5 -5
  2. winrt_windows_security_authentication_identity_provider-2.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/py.Windows.Security.Authentication.Identity.Provider.cpp +258 -281
  4. winrt_windows_security_authentication_identity_provider-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt/_winrt_windows_security_authentication_identity_provider.pyi +26 -26
  7. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt/windows/security/authentication/identity/provider/__init__.py +2 -2
  8. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt_Windows.Security.Authentication.Identity.Provider.egg-info/PKG-INFO +5 -5
  9. winrt_windows_security_authentication_identity_provider-2.1.0/winrt_Windows.Security.Authentication.Identity.Provider.egg-info/requires.txt +6 -0
  10. winrt_windows_security_authentication_identity_provider-2.0.1/all-requirements.txt +0 -5
  11. winrt_windows_security_authentication_identity_provider-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_security_authentication_identity_provider-2.0.1/winrt_Windows.Security.Authentication.Identity.Provider.egg-info/requires.txt +0 -6
  13. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/README.md +0 -0
  14. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/setup.py +0 -0
  17. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt/windows/security/authentication/identity/provider/py.typed +0 -0
  18. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt_Windows.Security.Authentication.Identity.Provider.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt_Windows.Security.Authentication.Identity.Provider.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_authentication_identity_provider-2.0.1 → winrt_windows_security_authentication_identity_provider-2.1.0}/winrt_Windows.Security.Authentication.Identity.Provider.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.Provider
3
- Version: 2.0.1
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,11 +12,11 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; 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"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
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
5
+ winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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.Provider.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Security::Authentication::Identity::Provider
7
6
  {
8
7
  // ----- SecondaryAuthenticationFactorAuthentication class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AbortAuthenticationAsync", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AbortAuthenticationAsync", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
40
39
 
41
40
  return py::convert(self->obj.AbortAuthenticationAsync(param0));
@@ -59,14 +58,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
59
58
 
60
59
  if (arg_count == 2)
61
60
  {
62
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"FinishAuthenticationAsync", 2))
63
- {
64
- py::set_arg_count_version_error(2);
65
- return nullptr;
66
- }
67
-
68
61
  try
69
62
  {
63
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"FinishAuthenticationAsync", 2))
64
+ {
65
+ py::set_arg_count_version_error(2);
66
+ return nullptr;
67
+ }
68
+
70
69
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
71
70
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
72
71
 
@@ -91,14 +90,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
91
90
 
92
91
  if (arg_count == 0)
93
92
  {
94
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"GetAuthenticationStageInfoAsync", 0))
95
- {
96
- py::set_arg_count_version_error(0);
97
- return nullptr;
98
- }
99
-
100
93
  try
101
94
  {
95
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"GetAuthenticationStageInfoAsync", 0))
96
+ {
97
+ py::set_arg_count_version_error(0);
98
+ return nullptr;
99
+ }
100
+
102
101
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication::GetAuthenticationStageInfoAsync());
103
102
  }
104
103
  catch (...)
@@ -120,14 +119,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
120
119
 
121
120
  if (arg_count == 2)
122
121
  {
123
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"ShowNotificationMessageAsync", 2))
124
- {
125
- py::set_arg_count_version_error(2);
126
- return nullptr;
127
- }
128
-
129
122
  try
130
123
  {
124
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"ShowNotificationMessageAsync", 2))
125
+ {
126
+ py::set_arg_count_version_error(2);
127
+ return nullptr;
128
+ }
129
+
131
130
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
132
131
  auto param1 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationMessage>(args, 1);
133
132
 
@@ -152,14 +151,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
152
151
 
153
152
  if (arg_count == 2)
154
153
  {
155
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"StartAuthenticationAsync", 2))
156
- {
157
- py::set_arg_count_version_error(2);
158
- return nullptr;
159
- }
160
-
161
154
  try
162
155
  {
156
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"StartAuthenticationAsync", 2))
157
+ {
158
+ py::set_arg_count_version_error(2);
159
+ return nullptr;
160
+ }
161
+
163
162
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
164
163
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
165
164
 
@@ -180,14 +179,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
180
179
 
181
180
  static PyObject* SecondaryAuthenticationFactorAuthentication_get_DeviceConfigurationData(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication* self, void* /*unused*/) noexcept
182
181
  {
183
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"DeviceConfigurationData"))
184
- {
185
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
186
- return nullptr;
187
- }
188
-
189
182
  try
190
183
  {
184
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"DeviceConfigurationData"))
185
+ {
186
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
187
+ return nullptr;
188
+ }
189
+
191
190
  return py::convert(self->obj.DeviceConfigurationData());
192
191
  }
193
192
  catch (...)
@@ -199,14 +198,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
199
198
 
200
199
  static PyObject* SecondaryAuthenticationFactorAuthentication_get_DeviceNonce(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication* self, void* /*unused*/) noexcept
201
200
  {
202
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"DeviceNonce"))
203
- {
204
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
205
- return nullptr;
206
- }
207
-
208
201
  try
209
202
  {
203
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"DeviceNonce"))
204
+ {
205
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
206
+ return nullptr;
207
+ }
208
+
210
209
  return py::convert(self->obj.DeviceNonce());
211
210
  }
212
211
  catch (...)
@@ -218,14 +217,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
218
217
 
219
218
  static PyObject* SecondaryAuthenticationFactorAuthentication_get_ServiceAuthenticationHmac(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication* self, void* /*unused*/) noexcept
220
219
  {
221
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"ServiceAuthenticationHmac"))
222
- {
223
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
224
- return nullptr;
225
- }
226
-
227
220
  try
228
221
  {
222
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"ServiceAuthenticationHmac"))
223
+ {
224
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
225
+ return nullptr;
226
+ }
227
+
229
228
  return py::convert(self->obj.ServiceAuthenticationHmac());
230
229
  }
231
230
  catch (...)
@@ -237,14 +236,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
237
236
 
238
237
  static PyObject* SecondaryAuthenticationFactorAuthentication_get_SessionNonce(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication* self, void* /*unused*/) noexcept
239
238
  {
240
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"SessionNonce"))
241
- {
242
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
243
- return nullptr;
244
- }
245
-
246
239
  try
247
240
  {
241
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"SessionNonce"))
242
+ {
243
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
244
+ return nullptr;
245
+ }
246
+
248
247
  return py::convert(self->obj.SessionNonce());
249
248
  }
250
249
  catch (...)
@@ -256,14 +255,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
256
255
 
257
256
  static PyObject* SecondaryAuthenticationFactorAuthentication_add_AuthenticationStageChanged(PyObject* /*unused*/, PyObject* arg) noexcept
258
257
  {
259
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AuthenticationStageChanged"))
260
- {
261
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
262
- return nullptr;
263
- }
264
-
265
258
  try
266
259
  {
260
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AuthenticationStageChanged"))
261
+ {
262
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
263
+ return nullptr;
264
+ }
265
+
267
266
  auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs>>(arg);
268
267
 
269
268
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged(param0));
@@ -277,14 +276,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
277
276
 
278
277
  static PyObject* SecondaryAuthenticationFactorAuthentication_remove_AuthenticationStageChanged(PyObject* /*unused*/, PyObject* arg) noexcept
279
278
  {
280
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AuthenticationStageChanged"))
281
- {
282
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
283
- return nullptr;
284
- }
285
-
286
279
  try
287
280
  {
281
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthentication", L"AuthenticationStageChanged"))
282
+ {
283
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
284
+ return nullptr;
285
+ }
286
+
288
287
  auto param0 = py::convert_to<winrt::event_token>(arg);
289
288
 
290
289
  winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication::AuthenticationStageChanged(param0);
@@ -324,8 +323,6 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
324
323
  static PyMethodDef _methods_SecondaryAuthenticationFactorAuthentication[] = {
325
324
  { "abort_authentication_async", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_AbortAuthenticationAsync), METH_VARARGS, nullptr },
326
325
  { "finish_authentication_async", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_FinishAuthenticationAsync), METH_VARARGS, nullptr },
327
- { "add_authentication_stage_changed", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_add_AuthenticationStageChanged), METH_O | METH_STATIC, nullptr },
328
- { "remove_authentication_stage_changed", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_remove_AuthenticationStageChanged), METH_O | METH_STATIC, nullptr },
329
326
  { "_assign_array_", _assign_array_SecondaryAuthenticationFactorAuthentication, METH_O | METH_STATIC, nullptr },
330
327
  { "_from", reinterpret_cast<PyCFunction>(_from_SecondaryAuthenticationFactorAuthentication), METH_O | METH_STATIC, nullptr },
331
328
  { }
@@ -339,23 +336,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
339
336
  { }
340
337
  };
341
338
 
342
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthentication[] =
343
- {
339
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthentication[] = {
344
340
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorAuthentication) },
345
341
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorAuthentication) },
346
342
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorAuthentication) },
347
343
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorAuthentication) },
348
- { },
344
+ { }
349
345
  };
350
346
 
351
- static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthentication =
352
- {
347
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthentication = {
353
348
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorAuthentication",
354
349
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthentication),
355
350
  0,
356
351
  Py_TPFLAGS_DEFAULT,
357
- _type_slots_SecondaryAuthenticationFactorAuthentication
358
- };
352
+ _type_slots_SecondaryAuthenticationFactorAuthentication};
359
353
 
360
354
  static PyGetSetDef getset_SecondaryAuthenticationFactorAuthentication_Static[] = {
361
355
  { }
@@ -365,6 +359,8 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
365
359
  { "get_authentication_stage_info_async", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_GetAuthenticationStageInfoAsync), METH_VARARGS, nullptr },
366
360
  { "show_notification_message_async", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_ShowNotificationMessageAsync), METH_VARARGS, nullptr },
367
361
  { "start_authentication_async", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_StartAuthenticationAsync), METH_VARARGS, nullptr },
362
+ { "add_authentication_stage_changed", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_add_AuthenticationStageChanged), METH_O, nullptr },
363
+ { "remove_authentication_stage_changed", reinterpret_cast<PyCFunction>(SecondaryAuthenticationFactorAuthentication_remove_AuthenticationStageChanged), METH_O, nullptr },
368
364
  { }
369
365
  };
370
366
 
@@ -404,14 +400,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
404
400
 
405
401
  static PyObject* SecondaryAuthenticationFactorAuthenticationResult_get_Authentication(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationResult* self, void* /*unused*/) noexcept
406
402
  {
407
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationResult", L"Authentication"))
408
- {
409
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
410
- return nullptr;
411
- }
412
-
413
403
  try
414
404
  {
405
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationResult", L"Authentication"))
406
+ {
407
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
408
+ return nullptr;
409
+ }
410
+
415
411
  return py::convert(self->obj.Authentication());
416
412
  }
417
413
  catch (...)
@@ -423,14 +419,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
423
419
 
424
420
  static PyObject* SecondaryAuthenticationFactorAuthenticationResult_get_Status(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationResult* self, void* /*unused*/) noexcept
425
421
  {
426
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationResult", L"Status"))
427
- {
428
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
429
- return nullptr;
430
- }
431
-
432
422
  try
433
423
  {
424
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationResult", L"Status"))
425
+ {
426
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
427
+ return nullptr;
428
+ }
429
+
434
430
  return py::convert(self->obj.Status());
435
431
  }
436
432
  catch (...)
@@ -476,23 +472,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
476
472
  { }
477
473
  };
478
474
 
479
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationResult[] =
480
- {
475
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationResult[] = {
481
476
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorAuthenticationResult) },
482
477
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorAuthenticationResult) },
483
478
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorAuthenticationResult) },
484
479
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorAuthenticationResult) },
485
- { },
480
+ { }
486
481
  };
487
482
 
488
- static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationResult =
489
- {
483
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationResult = {
490
484
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorAuthenticationResult",
491
485
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationResult),
492
486
  0,
493
487
  Py_TPFLAGS_DEFAULT,
494
- _type_slots_SecondaryAuthenticationFactorAuthenticationResult
495
- };
488
+ _type_slots_SecondaryAuthenticationFactorAuthenticationResult};
496
489
 
497
490
  // ----- SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs class --------------------
498
491
 
@@ -513,14 +506,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
513
506
 
514
507
  static PyObject* SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs_get_StageInfo(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs* self, void* /*unused*/) noexcept
515
508
  {
516
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs", L"StageInfo"))
517
- {
518
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
519
- return nullptr;
520
- }
521
-
522
509
  try
523
510
  {
511
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs", L"StageInfo"))
512
+ {
513
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
514
+ return nullptr;
515
+ }
516
+
524
517
  return py::convert(self->obj.StageInfo());
525
518
  }
526
519
  catch (...)
@@ -565,23 +558,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
565
558
  { }
566
559
  };
567
560
 
568
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs[] =
569
- {
561
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs[] = {
570
562
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs) },
571
563
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs) },
572
564
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs) },
573
565
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs) },
574
- { },
566
+ { }
575
567
  };
576
568
 
577
- static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs =
578
- {
569
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs = {
579
570
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs",
580
571
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs),
581
572
  0,
582
573
  Py_TPFLAGS_DEFAULT,
583
- _type_slots_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs
584
- };
574
+ _type_slots_SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs};
585
575
 
586
576
  // ----- SecondaryAuthenticationFactorAuthenticationStageInfo class --------------------
587
577
 
@@ -602,14 +592,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
602
592
 
603
593
  static PyObject* SecondaryAuthenticationFactorAuthenticationStageInfo_get_DeviceId(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo* self, void* /*unused*/) noexcept
604
594
  {
605
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"DeviceId"))
606
- {
607
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
608
- return nullptr;
609
- }
610
-
611
595
  try
612
596
  {
597
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"DeviceId"))
598
+ {
599
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
600
+ return nullptr;
601
+ }
602
+
613
603
  return py::convert(self->obj.DeviceId());
614
604
  }
615
605
  catch (...)
@@ -621,14 +611,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
621
611
 
622
612
  static PyObject* SecondaryAuthenticationFactorAuthenticationStageInfo_get_Scenario(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo* self, void* /*unused*/) noexcept
623
613
  {
624
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"Scenario"))
625
- {
626
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
627
- return nullptr;
628
- }
629
-
630
614
  try
631
615
  {
616
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"Scenario"))
617
+ {
618
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
619
+ return nullptr;
620
+ }
621
+
632
622
  return py::convert(self->obj.Scenario());
633
623
  }
634
624
  catch (...)
@@ -640,14 +630,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
640
630
 
641
631
  static PyObject* SecondaryAuthenticationFactorAuthenticationStageInfo_get_Stage(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo* self, void* /*unused*/) noexcept
642
632
  {
643
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"Stage"))
644
- {
645
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
646
- return nullptr;
647
- }
648
-
649
633
  try
650
634
  {
635
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorAuthenticationStageInfo", L"Stage"))
636
+ {
637
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
638
+ return nullptr;
639
+ }
640
+
651
641
  return py::convert(self->obj.Stage());
652
642
  }
653
643
  catch (...)
@@ -694,23 +684,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
694
684
  { }
695
685
  };
696
686
 
697
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationStageInfo[] =
698
- {
687
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorAuthenticationStageInfo[] = {
699
688
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorAuthenticationStageInfo) },
700
689
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorAuthenticationStageInfo) },
701
690
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorAuthenticationStageInfo) },
702
691
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorAuthenticationStageInfo) },
703
- { },
692
+ { }
704
693
  };
705
694
 
706
- static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationStageInfo =
707
- {
695
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorAuthenticationStageInfo = {
708
696
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorAuthenticationStageInfo",
709
697
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorAuthenticationStageInfo),
710
698
  0,
711
699
  Py_TPFLAGS_DEFAULT,
712
- _type_slots_SecondaryAuthenticationFactorAuthenticationStageInfo
713
- };
700
+ _type_slots_SecondaryAuthenticationFactorAuthenticationStageInfo};
714
701
 
715
702
  // ----- SecondaryAuthenticationFactorInfo class --------------------
716
703
 
@@ -735,14 +722,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
735
722
 
736
723
  if (arg_count == 1)
737
724
  {
738
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"UpdateDevicePresenceAsync", 1))
739
- {
740
- py::set_arg_count_version_error(1);
741
- return nullptr;
742
- }
743
-
744
725
  try
745
726
  {
727
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"UpdateDevicePresenceAsync", 1))
728
+ {
729
+ py::set_arg_count_version_error(1);
730
+ return nullptr;
731
+ }
732
+
746
733
  auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDevicePresence>(args, 0);
747
734
 
748
735
  return py::convert(self->obj.UpdateDevicePresenceAsync(param0));
@@ -762,14 +749,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
762
749
 
763
750
  static PyObject* SecondaryAuthenticationFactorInfo_get_DeviceConfigurationData(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
764
751
  {
765
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceConfigurationData"))
766
- {
767
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
768
- return nullptr;
769
- }
770
-
771
752
  try
772
753
  {
754
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceConfigurationData"))
755
+ {
756
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
757
+ return nullptr;
758
+ }
759
+
773
760
  return py::convert(self->obj.DeviceConfigurationData());
774
761
  }
775
762
  catch (...)
@@ -781,14 +768,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
781
768
 
782
769
  static PyObject* SecondaryAuthenticationFactorInfo_get_DeviceFriendlyName(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
783
770
  {
784
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceFriendlyName"))
785
- {
786
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
787
- return nullptr;
788
- }
789
-
790
771
  try
791
772
  {
773
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceFriendlyName"))
774
+ {
775
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
776
+ return nullptr;
777
+ }
778
+
792
779
  return py::convert(self->obj.DeviceFriendlyName());
793
780
  }
794
781
  catch (...)
@@ -800,14 +787,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
800
787
 
801
788
  static PyObject* SecondaryAuthenticationFactorInfo_get_DeviceId(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
802
789
  {
803
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceId"))
804
- {
805
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
806
- return nullptr;
807
- }
808
-
809
790
  try
810
791
  {
792
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceId"))
793
+ {
794
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
795
+ return nullptr;
796
+ }
797
+
811
798
  return py::convert(self->obj.DeviceId());
812
799
  }
813
800
  catch (...)
@@ -819,14 +806,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
819
806
 
820
807
  static PyObject* SecondaryAuthenticationFactorInfo_get_DeviceModelNumber(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
821
808
  {
822
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceModelNumber"))
823
- {
824
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
825
- return nullptr;
826
- }
827
-
828
809
  try
829
810
  {
811
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"DeviceModelNumber"))
812
+ {
813
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
814
+ return nullptr;
815
+ }
816
+
830
817
  return py::convert(self->obj.DeviceModelNumber());
831
818
  }
832
819
  catch (...)
@@ -838,14 +825,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
838
825
 
839
826
  static PyObject* SecondaryAuthenticationFactorInfo_get_IsAuthenticationSupported(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
840
827
  {
841
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"IsAuthenticationSupported"))
842
- {
843
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
844
- return nullptr;
845
- }
846
-
847
828
  try
848
829
  {
830
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"IsAuthenticationSupported"))
831
+ {
832
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
833
+ return nullptr;
834
+ }
835
+
849
836
  return py::convert(self->obj.IsAuthenticationSupported());
850
837
  }
851
838
  catch (...)
@@ -857,14 +844,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
857
844
 
858
845
  static PyObject* SecondaryAuthenticationFactorInfo_get_PresenceMonitoringMode(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo* self, void* /*unused*/) noexcept
859
846
  {
860
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"PresenceMonitoringMode"))
861
- {
862
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
863
- return nullptr;
864
- }
865
-
866
847
  try
867
848
  {
849
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorInfo", L"PresenceMonitoringMode"))
850
+ {
851
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
852
+ return nullptr;
853
+ }
854
+
868
855
  return py::convert(self->obj.PresenceMonitoringMode());
869
856
  }
870
857
  catch (...)
@@ -915,23 +902,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
915
902
  { }
916
903
  };
917
904
 
918
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorInfo[] =
919
- {
905
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorInfo[] = {
920
906
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorInfo) },
921
907
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorInfo) },
922
908
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorInfo) },
923
909
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorInfo) },
924
- { },
910
+ { }
925
911
  };
926
912
 
927
- static PyType_Spec type_spec_SecondaryAuthenticationFactorInfo =
928
- {
913
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorInfo = {
929
914
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorInfo",
930
915
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorInfo),
931
916
  0,
932
917
  Py_TPFLAGS_DEFAULT,
933
- _type_slots_SecondaryAuthenticationFactorInfo
934
- };
918
+ _type_slots_SecondaryAuthenticationFactorInfo};
935
919
 
936
920
  // ----- SecondaryAuthenticationFactorRegistration class --------------------
937
921
 
@@ -956,14 +940,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
956
940
 
957
941
  if (arg_count == 1)
958
942
  {
959
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"AbortRegisteringDeviceAsync", 1))
960
- {
961
- py::set_arg_count_version_error(1);
962
- return nullptr;
963
- }
964
-
965
943
  try
966
944
  {
945
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"AbortRegisteringDeviceAsync", 1))
946
+ {
947
+ py::set_arg_count_version_error(1);
948
+ return nullptr;
949
+ }
950
+
967
951
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
968
952
 
969
953
  return py::convert(self->obj.AbortRegisteringDeviceAsync(param0));
@@ -987,14 +971,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
987
971
 
988
972
  if (arg_count == 1)
989
973
  {
990
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"FindAllRegisteredDeviceInfoAsync", 1))
991
- {
992
- py::set_arg_count_version_error(1);
993
- return nullptr;
994
- }
995
-
996
974
  try
997
975
  {
976
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"FindAllRegisteredDeviceInfoAsync", 1))
977
+ {
978
+ py::set_arg_count_version_error(1);
979
+ return nullptr;
980
+ }
981
+
998
982
  auto param0 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceFindScope>(args, 0);
999
983
 
1000
984
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration::FindAllRegisteredDeviceInfoAsync(param0));
@@ -1018,14 +1002,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1018
1002
 
1019
1003
  if (arg_count == 1)
1020
1004
  {
1021
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"FinishRegisteringDeviceAsync", 1))
1022
- {
1023
- py::set_arg_count_version_error(1);
1024
- return nullptr;
1025
- }
1026
-
1027
1005
  try
1028
1006
  {
1007
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"FinishRegisteringDeviceAsync", 1))
1008
+ {
1009
+ py::set_arg_count_version_error(1);
1010
+ return nullptr;
1011
+ }
1012
+
1029
1013
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
1030
1014
 
1031
1015
  return py::convert(self->obj.FinishRegisteringDeviceAsync(param0));
@@ -1049,14 +1033,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1049
1033
 
1050
1034
  if (arg_count == 0)
1051
1035
  {
1052
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"IsDevicePresenceMonitoringSupported", 0))
1053
- {
1054
- py::set_arg_count_version_error(0);
1055
- return nullptr;
1056
- }
1057
-
1058
1036
  try
1059
1037
  {
1038
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"IsDevicePresenceMonitoringSupported", 0))
1039
+ {
1040
+ py::set_arg_count_version_error(0);
1041
+ return nullptr;
1042
+ }
1043
+
1060
1044
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration::IsDevicePresenceMonitoringSupported());
1061
1045
  }
1062
1046
  catch (...)
@@ -1078,14 +1062,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1078
1062
 
1079
1063
  if (arg_count == 3)
1080
1064
  {
1081
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RegisterDevicePresenceMonitoringAsync", 3))
1082
- {
1083
- py::set_arg_count_version_error(3);
1084
- return nullptr;
1085
- }
1086
-
1087
1065
  try
1088
1066
  {
1067
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RegisterDevicePresenceMonitoringAsync", 3))
1068
+ {
1069
+ py::set_arg_count_version_error(3);
1070
+ return nullptr;
1071
+ }
1072
+
1089
1073
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1090
1074
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
1091
1075
  auto param2 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDevicePresenceMonitoringMode>(args, 2);
@@ -1100,14 +1084,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1100
1084
  }
1101
1085
  else if (arg_count == 6)
1102
1086
  {
1103
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RegisterDevicePresenceMonitoringAsync", 6))
1104
- {
1105
- py::set_arg_count_version_error(6);
1106
- return nullptr;
1107
- }
1108
-
1109
1087
  try
1110
1088
  {
1089
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RegisterDevicePresenceMonitoringAsync", 6))
1090
+ {
1091
+ py::set_arg_count_version_error(6);
1092
+ return nullptr;
1093
+ }
1094
+
1111
1095
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1112
1096
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
1113
1097
  auto param2 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDevicePresenceMonitoringMode>(args, 2);
@@ -1136,14 +1120,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1136
1120
 
1137
1121
  if (arg_count == 6)
1138
1122
  {
1139
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RequestStartRegisteringDeviceAsync", 6))
1140
- {
1141
- py::set_arg_count_version_error(6);
1142
- return nullptr;
1143
- }
1144
-
1145
1123
  try
1146
1124
  {
1125
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"RequestStartRegisteringDeviceAsync", 6))
1126
+ {
1127
+ py::set_arg_count_version_error(6);
1128
+ return nullptr;
1129
+ }
1130
+
1147
1131
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1148
1132
  auto param1 = py::convert_to<winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorDeviceCapabilities>(args, 1);
1149
1133
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -1172,14 +1156,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1172
1156
 
1173
1157
  if (arg_count == 1)
1174
1158
  {
1175
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UnregisterDeviceAsync", 1))
1176
- {
1177
- py::set_arg_count_version_error(1);
1178
- return nullptr;
1179
- }
1180
-
1181
1159
  try
1182
1160
  {
1161
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UnregisterDeviceAsync", 1))
1162
+ {
1163
+ py::set_arg_count_version_error(1);
1164
+ return nullptr;
1165
+ }
1166
+
1183
1167
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1184
1168
 
1185
1169
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration::UnregisterDeviceAsync(param0));
@@ -1203,14 +1187,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1203
1187
 
1204
1188
  if (arg_count == 1)
1205
1189
  {
1206
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UnregisterDevicePresenceMonitoringAsync", 1))
1207
- {
1208
- py::set_arg_count_version_error(1);
1209
- return nullptr;
1210
- }
1211
-
1212
1190
  try
1213
1191
  {
1192
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UnregisterDevicePresenceMonitoringAsync", 1))
1193
+ {
1194
+ py::set_arg_count_version_error(1);
1195
+ return nullptr;
1196
+ }
1197
+
1214
1198
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1215
1199
 
1216
1200
  return py::convert(winrt::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration::UnregisterDevicePresenceMonitoringAsync(param0));
@@ -1234,14 +1218,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1234
1218
 
1235
1219
  if (arg_count == 2)
1236
1220
  {
1237
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UpdateDeviceConfigurationDataAsync", 2))
1238
- {
1239
- py::set_arg_count_version_error(2);
1240
- return nullptr;
1241
- }
1242
-
1243
1221
  try
1244
1222
  {
1223
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistration", L"UpdateDeviceConfigurationDataAsync", 2))
1224
+ {
1225
+ py::set_arg_count_version_error(2);
1226
+ return nullptr;
1227
+ }
1228
+
1245
1229
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
1246
1230
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
1247
1231
 
@@ -1296,23 +1280,20 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1296
1280
  { }
1297
1281
  };
1298
1282
 
1299
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorRegistration[] =
1300
- {
1283
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorRegistration[] = {
1301
1284
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorRegistration) },
1302
1285
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorRegistration) },
1303
1286
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorRegistration) },
1304
1287
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorRegistration) },
1305
- { },
1288
+ { }
1306
1289
  };
1307
1290
 
1308
- static PyType_Spec type_spec_SecondaryAuthenticationFactorRegistration =
1309
- {
1291
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorRegistration = {
1310
1292
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorRegistration",
1311
1293
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistration),
1312
1294
  0,
1313
1295
  Py_TPFLAGS_DEFAULT,
1314
- _type_slots_SecondaryAuthenticationFactorRegistration
1315
- };
1296
+ _type_slots_SecondaryAuthenticationFactorRegistration};
1316
1297
 
1317
1298
  static PyGetSetDef getset_SecondaryAuthenticationFactorRegistration_Static[] = {
1318
1299
  { }
@@ -1365,14 +1346,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1365
1346
 
1366
1347
  static PyObject* SecondaryAuthenticationFactorRegistrationResult_get_Registration(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationResult* self, void* /*unused*/) noexcept
1367
1348
  {
1368
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistrationResult", L"Registration"))
1369
- {
1370
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1371
- return nullptr;
1372
- }
1373
-
1374
1349
  try
1375
1350
  {
1351
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistrationResult", L"Registration"))
1352
+ {
1353
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1354
+ return nullptr;
1355
+ }
1356
+
1376
1357
  return py::convert(self->obj.Registration());
1377
1358
  }
1378
1359
  catch (...)
@@ -1384,14 +1365,14 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1384
1365
 
1385
1366
  static PyObject* SecondaryAuthenticationFactorRegistrationResult_get_Status(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationResult* self, void* /*unused*/) noexcept
1386
1367
  {
1387
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistrationResult", L"Status"))
1388
- {
1389
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1390
- return nullptr;
1391
- }
1392
-
1393
1368
  try
1394
1369
  {
1370
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.Identity.Provider.SecondaryAuthenticationFactorRegistrationResult", L"Status"))
1371
+ {
1372
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1373
+ return nullptr;
1374
+ }
1375
+
1395
1376
  return py::convert(self->obj.Status());
1396
1377
  }
1397
1378
  catch (...)
@@ -1437,39 +1418,35 @@ namespace py::cpp::Windows::Security::Authentication::Identity::Provider
1437
1418
  { }
1438
1419
  };
1439
1420
 
1440
- static PyType_Slot _type_slots_SecondaryAuthenticationFactorRegistrationResult[] =
1441
- {
1421
+ static PyType_Slot _type_slots_SecondaryAuthenticationFactorRegistrationResult[] = {
1442
1422
  { Py_tp_new, reinterpret_cast<void*>(_new_SecondaryAuthenticationFactorRegistrationResult) },
1443
1423
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SecondaryAuthenticationFactorRegistrationResult) },
1444
1424
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SecondaryAuthenticationFactorRegistrationResult) },
1445
1425
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SecondaryAuthenticationFactorRegistrationResult) },
1446
- { },
1426
+ { }
1447
1427
  };
1448
1428
 
1449
- static PyType_Spec type_spec_SecondaryAuthenticationFactorRegistrationResult =
1450
- {
1429
+ static PyType_Spec type_spec_SecondaryAuthenticationFactorRegistrationResult = {
1451
1430
  "winrt._winrt_windows_security_authentication_identity_provider.SecondaryAuthenticationFactorRegistrationResult",
1452
1431
  sizeof(py::wrapper::Windows::Security::Authentication::Identity::Provider::SecondaryAuthenticationFactorRegistrationResult),
1453
1432
  0,
1454
1433
  Py_TPFLAGS_DEFAULT,
1455
- _type_slots_SecondaryAuthenticationFactorRegistrationResult
1456
- };
1434
+ _type_slots_SecondaryAuthenticationFactorRegistrationResult};
1457
1435
 
1458
1436
  // ----- Windows.Security.Authentication.Identity.Provider Initialization --------------------
1459
- PyDoc_STRVAR(module_doc, "Windows::Security::Authentication::Identity::Provider");
1460
1437
 
1438
+ PyDoc_STRVAR(module_doc, "Windows.Security.Authentication.Identity.Provider");
1461
1439
 
1462
- static PyModuleDef module_def
1463
- = {PyModuleDef_HEAD_INIT,
1464
- "_winrt_windows_security_authentication_identity_provider",
1465
- module_doc,
1466
- 0,
1467
- nullptr,
1468
- nullptr,
1469
- nullptr,
1470
- nullptr,
1471
- nullptr};
1472
-
1440
+ static PyModuleDef module_def = {
1441
+ PyModuleDef_HEAD_INIT,
1442
+ "_winrt_windows_security_authentication_identity_provider",
1443
+ module_doc,
1444
+ 0,
1445
+ nullptr,
1446
+ nullptr,
1447
+ nullptr,
1448
+ nullptr,
1449
+ nullptr};
1473
1450
  } // py::cpp::Windows::Security::Authentication::Identity::Provider
1474
1451
 
1475
1452
  PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_identity_provider(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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,9 +9,9 @@ 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
14
- import winrt.windows.storage.streams
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.storage.streams as windows_storage_streams
15
15
 
16
16
  from winrt.windows.security.authentication.identity.provider import SecondaryAuthenticationFactorAuthenticationMessage, SecondaryAuthenticationFactorAuthenticationScenario, SecondaryAuthenticationFactorAuthenticationStage, SecondaryAuthenticationFactorAuthenticationStatus, SecondaryAuthenticationFactorDeviceCapabilities, SecondaryAuthenticationFactorDeviceFindScope, SecondaryAuthenticationFactorDevicePresence, SecondaryAuthenticationFactorDevicePresenceMonitoringMode, SecondaryAuthenticationFactorDevicePresenceMonitoringRegistrationStatus, SecondaryAuthenticationFactorFinishAuthenticationStatus, SecondaryAuthenticationFactorRegistrationStatus
17
17
 
@@ -19,26 +19,26 @@ Self = typing.TypeVar('Self')
19
19
 
20
20
  @typing.final
21
21
  class SecondaryAuthenticationFactorAuthentication_Static(type):
22
- def get_authentication_stage_info_async(cls) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorAuthenticationStageInfo]: ...
23
- def show_notification_message_async(cls, device_name: str, message: SecondaryAuthenticationFactorAuthenticationMessage, /) -> winrt.windows.foundation.IAsyncAction: ...
24
- def start_authentication_async(cls, device_id: str, service_authentication_nonce: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorAuthenticationResult]: ...
25
- def add_authentication_stage_changed(cls, handler: winrt.windows.foundation.EventHandler[SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
26
- def remove_authentication_stage_changed(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
22
+ def get_authentication_stage_info_async(cls) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorAuthenticationStageInfo]: ...
23
+ def show_notification_message_async(cls, device_name: str, message: SecondaryAuthenticationFactorAuthenticationMessage, /) -> windows_foundation.IAsyncAction: ...
24
+ def start_authentication_async(cls, device_id: str, service_authentication_nonce: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorAuthenticationResult]: ...
25
+ def add_authentication_stage_changed(cls, handler: windows_foundation.EventHandler[SecondaryAuthenticationFactorAuthenticationStageChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
26
+ def remove_authentication_stage_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
27
27
 
28
28
  @typing.final
29
29
  class SecondaryAuthenticationFactorAuthentication(winrt.system.Object, metaclass=SecondaryAuthenticationFactorAuthentication_Static):
30
30
  @staticmethod
31
31
  def _from(obj: winrt.system.Object, /) -> SecondaryAuthenticationFactorAuthentication: ...
32
- def abort_authentication_async(self, error_log_message: str, /) -> winrt.windows.foundation.IAsyncAction: ...
33
- def finish_authentication_async(self, device_hmac: typing.Optional[winrt.windows.storage.streams.IBuffer], session_hmac: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorFinishAuthenticationStatus]: ...
32
+ def abort_authentication_async(self, error_log_message: str, /) -> windows_foundation.IAsyncAction: ...
33
+ def finish_authentication_async(self, device_hmac: typing.Optional[windows_storage_streams.IBuffer], session_hmac: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorFinishAuthenticationStatus]: ...
34
34
  @_property
35
- def device_configuration_data(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
35
+ def device_configuration_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
36
36
  @_property
37
- def device_nonce(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
37
+ def device_nonce(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
38
38
  @_property
39
- def service_authentication_hmac(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
39
+ def service_authentication_hmac(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
40
40
  @_property
41
- def session_nonce(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
41
+ def session_nonce(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
42
42
 
43
43
  @typing.final
44
44
  class SecondaryAuthenticationFactorAuthenticationResult(winrt.system.Object):
@@ -71,9 +71,9 @@ class SecondaryAuthenticationFactorAuthenticationStageInfo(winrt.system.Object):
71
71
  class SecondaryAuthenticationFactorInfo(winrt.system.Object):
72
72
  @staticmethod
73
73
  def _from(obj: winrt.system.Object, /) -> SecondaryAuthenticationFactorInfo: ...
74
- def update_device_presence_async(self, presence_state: SecondaryAuthenticationFactorDevicePresence, /) -> winrt.windows.foundation.IAsyncAction: ...
74
+ def update_device_presence_async(self, presence_state: SecondaryAuthenticationFactorDevicePresence, /) -> windows_foundation.IAsyncAction: ...
75
75
  @_property
76
- def device_configuration_data(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
76
+ def device_configuration_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
77
77
  @_property
78
78
  def device_friendly_name(self) -> str: ...
79
79
  @_property
@@ -87,23 +87,23 @@ class SecondaryAuthenticationFactorInfo(winrt.system.Object):
87
87
 
88
88
  @typing.final
89
89
  class SecondaryAuthenticationFactorRegistration_Static(type):
90
- def find_all_registered_device_info_async(cls, query_type: SecondaryAuthenticationFactorDeviceFindScope, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[SecondaryAuthenticationFactorInfo]]: ...
90
+ def find_all_registered_device_info_async(cls, query_type: SecondaryAuthenticationFactorDeviceFindScope, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[SecondaryAuthenticationFactorInfo]]: ...
91
91
  def is_device_presence_monitoring_supported(cls) -> bool: ...
92
92
  @typing.overload
93
- def register_device_presence_monitoring_async(cls, device_id: str, device_instance_path: str, monitoring_mode: SecondaryAuthenticationFactorDevicePresenceMonitoringMode, /) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorDevicePresenceMonitoringRegistrationStatus]: ...
93
+ def register_device_presence_monitoring_async(cls, device_id: str, device_instance_path: str, monitoring_mode: SecondaryAuthenticationFactorDevicePresenceMonitoringMode, /) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorDevicePresenceMonitoringRegistrationStatus]: ...
94
94
  @typing.overload
95
- def register_device_presence_monitoring_async(cls, device_id: str, device_instance_path: str, monitoring_mode: SecondaryAuthenticationFactorDevicePresenceMonitoringMode, device_friendly_name: str, device_model_number: str, device_configuration_data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorDevicePresenceMonitoringRegistrationStatus]: ...
96
- def request_start_registering_device_async(cls, device_id: str, capabilities: SecondaryAuthenticationFactorDeviceCapabilities, device_friendly_name: str, device_model_number: str, device_key: typing.Optional[winrt.windows.storage.streams.IBuffer], mutual_authentication_key: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperation[SecondaryAuthenticationFactorRegistrationResult]: ...
97
- def unregister_device_async(cls, device_id: str, /) -> winrt.windows.foundation.IAsyncAction: ...
98
- def unregister_device_presence_monitoring_async(cls, device_id: str, /) -> winrt.windows.foundation.IAsyncAction: ...
99
- def update_device_configuration_data_async(cls, device_id: str, device_configuration_data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncAction: ...
95
+ def register_device_presence_monitoring_async(cls, device_id: str, device_instance_path: str, monitoring_mode: SecondaryAuthenticationFactorDevicePresenceMonitoringMode, device_friendly_name: str, device_model_number: str, device_configuration_data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorDevicePresenceMonitoringRegistrationStatus]: ...
96
+ def request_start_registering_device_async(cls, device_id: str, capabilities: SecondaryAuthenticationFactorDeviceCapabilities, device_friendly_name: str, device_model_number: str, device_key: typing.Optional[windows_storage_streams.IBuffer], mutual_authentication_key: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[SecondaryAuthenticationFactorRegistrationResult]: ...
97
+ def unregister_device_async(cls, device_id: str, /) -> windows_foundation.IAsyncAction: ...
98
+ def unregister_device_presence_monitoring_async(cls, device_id: str, /) -> windows_foundation.IAsyncAction: ...
99
+ def update_device_configuration_data_async(cls, device_id: str, device_configuration_data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncAction: ...
100
100
 
101
101
  @typing.final
102
102
  class SecondaryAuthenticationFactorRegistration(winrt.system.Object, metaclass=SecondaryAuthenticationFactorRegistration_Static):
103
103
  @staticmethod
104
104
  def _from(obj: winrt.system.Object, /) -> SecondaryAuthenticationFactorRegistration: ...
105
- def abort_registering_device_async(self, error_log_message: str, /) -> winrt.windows.foundation.IAsyncAction: ...
106
- def finish_registering_device_async(self, device_configuration_data: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncAction: ...
105
+ def abort_registering_device_async(self, error_log_message: str, /) -> windows_foundation.IAsyncAction: ...
106
+ def finish_registering_device_async(self, device_configuration_data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncAction: ...
107
107
 
108
108
  @typing.final
109
109
  class SecondaryAuthenticationFactorRegistrationResult(winrt.system.Object):
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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
 
@@ -80,7 +80,7 @@ class SecondaryAuthenticationFactorAuthenticationStatus(enum.IntEnum):
80
80
  INVALID_AUTHENTICATION_STAGE = 4
81
81
 
82
82
  class SecondaryAuthenticationFactorDeviceCapabilities(enum.IntFlag):
83
- NONE = 0
83
+ NONE = 0x0
84
84
  SECURE_STORAGE = 0x1
85
85
  STORE_KEYS = 0x2
86
86
  CONFIRM_USER_INTENT_TO_AUTHENTICATE = 0x4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Authentication.Identity.Provider
3
- Version: 2.0.1
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,11 +12,11 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; 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"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
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
6
+ winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation[all]==2.0.1
4
- winrt-Windows.Foundation.Collections[all]==2.0.1
5
- winrt-Windows.Storage.Streams[all]==2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
6
- winrt-Windows.Storage.Streams[all]==2.0.1