winrt-Windows.Security.Credentials.UI 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.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/PKG-INFO +4 -1
  2. winrt_windows_security_credentials_ui-2.1.0/all-requirements.txt +4 -0
  3. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/py.Windows.Security.Credentials.UI.cpp +220 -234
  4. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_security_credentials_ui-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_security_credentials_ui-2.1.0/setup.py +31 -0
  8. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt/_winrt_windows_security_credentials_ui.pyi +14 -16
  9. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt/windows/security/credentials/ui/__init__.py +1 -1
  10. winrt_windows_security_credentials_ui-2.1.0/winrt/windows/security/credentials/ui/py.typed +0 -0
  11. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/PKG-INFO +4 -1
  12. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_security_credentials_ui-2.1.0/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +5 -0
  14. winrt-Windows.Security.Credentials.UI-2.0.0b2/all-requirements.txt +0 -4
  15. winrt-Windows.Security.Credentials.UI-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.Security.Credentials.UI-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.Security.Credentials.UI-2.0.0b2/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +0 -5
  18. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/README.md +0 -0
  19. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.Security.Credentials.UI-2.0.0b2 → winrt_windows_security_credentials_ui-2.1.0}/winrt_Windows.Security.Credentials.UI.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Credentials.UI
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.Storage.Streams[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.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.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.Credentials.UI.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Security::Credentials::UI
7
6
  {
8
7
  // ----- CredentialPicker class --------------------
@@ -20,14 +19,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
20
19
 
21
20
  if (arg_count == 1)
22
21
  {
23
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1))
24
- {
25
- py::set_arg_count_version_error(1);
26
- return nullptr;
27
- }
28
-
29
22
  try
30
23
  {
24
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1))
25
+ {
26
+ py::set_arg_count_version_error(1);
27
+ return nullptr;
28
+ }
29
+
31
30
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::CredentialPickerOptions>(args, 0);
32
31
 
33
32
  return py::convert(winrt::Windows::Security::Credentials::UI::CredentialPicker::PickAsync(param0));
@@ -40,14 +39,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
40
39
  }
41
40
  else if (arg_count == 2)
42
41
  {
43
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 2))
44
- {
45
- py::set_arg_count_version_error(2);
46
- return nullptr;
47
- }
48
-
49
42
  try
50
43
  {
44
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 2))
45
+ {
46
+ py::set_arg_count_version_error(2);
47
+ return nullptr;
48
+ }
49
+
51
50
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
52
51
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
53
52
 
@@ -61,14 +60,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
61
60
  }
62
61
  else if (arg_count == 3)
63
62
  {
64
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3))
65
- {
66
- py::set_arg_count_version_error(3);
67
- return nullptr;
68
- }
69
-
70
63
  try
71
64
  {
65
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3))
66
+ {
67
+ py::set_arg_count_version_error(3);
68
+ return nullptr;
69
+ }
70
+
72
71
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
73
72
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
74
73
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -96,22 +95,19 @@ namespace py::cpp::Windows::Security::Credentials::UI
96
95
  { }
97
96
  };
98
97
 
99
- static PyType_Slot _type_slots_CredentialPicker[] =
100
- {
98
+ static PyType_Slot _type_slots_CredentialPicker[] = {
101
99
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPicker) },
102
100
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPicker) },
103
101
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPicker) },
104
- { },
102
+ { }
105
103
  };
106
104
 
107
- static PyType_Spec type_spec_CredentialPicker =
108
- {
105
+ static PyType_Spec type_spec_CredentialPicker = {
109
106
  "winrt._winrt_windows_security_credentials_ui.CredentialPicker",
110
107
  0,
111
108
  0,
112
109
  Py_TPFLAGS_DEFAULT,
113
- _type_slots_CredentialPicker
114
- };
110
+ _type_slots_CredentialPicker};
115
111
 
116
112
  static PyGetSetDef getset_CredentialPicker_Static[] = {
117
113
  { }
@@ -180,14 +176,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
180
176
 
181
177
  static PyObject* CredentialPickerOptions_get_TargetName(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
182
178
  {
183
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
184
- {
185
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
186
- return nullptr;
187
- }
188
-
189
179
  try
190
180
  {
181
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
182
+ {
183
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
184
+ return nullptr;
185
+ }
186
+
191
187
  return py::convert(self->obj.TargetName());
192
188
  }
193
189
  catch (...)
@@ -199,12 +195,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
199
195
 
200
196
  static int CredentialPickerOptions_put_TargetName(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
201
197
  {
202
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
203
- {
204
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
205
- return -1;
206
- }
207
-
208
198
  if (arg == nullptr)
209
199
  {
210
200
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -213,6 +203,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
213
203
 
214
204
  try
215
205
  {
206
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
207
+ {
208
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
209
+ return -1;
210
+ }
211
+
216
212
  auto param0 = py::convert_to<winrt::hstring>(arg);
217
213
 
218
214
  self->obj.TargetName(param0);
@@ -227,14 +223,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
227
223
 
228
224
  static PyObject* CredentialPickerOptions_get_PreviousCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
229
225
  {
230
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
231
- {
232
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
233
- return nullptr;
234
- }
235
-
236
226
  try
237
227
  {
228
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
229
+ {
230
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
231
+ return nullptr;
232
+ }
233
+
238
234
  return py::convert(self->obj.PreviousCredential());
239
235
  }
240
236
  catch (...)
@@ -246,12 +242,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
246
242
 
247
243
  static int CredentialPickerOptions_put_PreviousCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
248
244
  {
249
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
250
- {
251
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
252
- return -1;
253
- }
254
-
255
245
  if (arg == nullptr)
256
246
  {
257
247
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -260,6 +250,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
260
250
 
261
251
  try
262
252
  {
253
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
254
+ {
255
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
256
+ return -1;
257
+ }
258
+
263
259
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(arg);
264
260
 
265
261
  self->obj.PreviousCredential(param0);
@@ -274,14 +270,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
274
270
 
275
271
  static PyObject* CredentialPickerOptions_get_Message(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
276
272
  {
277
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
278
- {
279
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
280
- return nullptr;
281
- }
282
-
283
273
  try
284
274
  {
275
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
276
+ {
277
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
278
+ return nullptr;
279
+ }
280
+
285
281
  return py::convert(self->obj.Message());
286
282
  }
287
283
  catch (...)
@@ -293,12 +289,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
293
289
 
294
290
  static int CredentialPickerOptions_put_Message(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
295
291
  {
296
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
297
- {
298
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
299
- return -1;
300
- }
301
-
302
292
  if (arg == nullptr)
303
293
  {
304
294
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -307,6 +297,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
307
297
 
308
298
  try
309
299
  {
300
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
301
+ {
302
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
303
+ return -1;
304
+ }
305
+
310
306
  auto param0 = py::convert_to<winrt::hstring>(arg);
311
307
 
312
308
  self->obj.Message(param0);
@@ -321,14 +317,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
321
317
 
322
318
  static PyObject* CredentialPickerOptions_get_ErrorCode(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
323
319
  {
324
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
325
- {
326
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
327
- return nullptr;
328
- }
329
-
330
320
  try
331
321
  {
322
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
323
+ {
324
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
325
+ return nullptr;
326
+ }
327
+
332
328
  return py::convert(self->obj.ErrorCode());
333
329
  }
334
330
  catch (...)
@@ -340,12 +336,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
340
336
 
341
337
  static int CredentialPickerOptions_put_ErrorCode(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
342
338
  {
343
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
344
- {
345
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
346
- return -1;
347
- }
348
-
349
339
  if (arg == nullptr)
350
340
  {
351
341
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -354,6 +344,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
354
344
 
355
345
  try
356
346
  {
347
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
348
+ {
349
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
350
+ return -1;
351
+ }
352
+
357
353
  auto param0 = py::convert_to<uint32_t>(arg);
358
354
 
359
355
  self->obj.ErrorCode(param0);
@@ -368,14 +364,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
368
364
 
369
365
  static PyObject* CredentialPickerOptions_get_CustomAuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
370
366
  {
371
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
372
- {
373
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
374
- return nullptr;
375
- }
376
-
377
367
  try
378
368
  {
369
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
370
+ {
371
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
372
+ return nullptr;
373
+ }
374
+
379
375
  return py::convert(self->obj.CustomAuthenticationProtocol());
380
376
  }
381
377
  catch (...)
@@ -387,12 +383,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
387
383
 
388
384
  static int CredentialPickerOptions_put_CustomAuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
389
385
  {
390
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
391
- {
392
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
393
- return -1;
394
- }
395
-
396
386
  if (arg == nullptr)
397
387
  {
398
388
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -401,6 +391,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
401
391
 
402
392
  try
403
393
  {
394
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
395
+ {
396
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
397
+ return -1;
398
+ }
399
+
404
400
  auto param0 = py::convert_to<winrt::hstring>(arg);
405
401
 
406
402
  self->obj.CustomAuthenticationProtocol(param0);
@@ -415,14 +411,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
415
411
 
416
412
  static PyObject* CredentialPickerOptions_get_CredentialSaveOption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
417
413
  {
418
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
419
- {
420
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
421
- return nullptr;
422
- }
423
-
424
414
  try
425
415
  {
416
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
417
+ {
418
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
419
+ return nullptr;
420
+ }
421
+
426
422
  return py::convert(self->obj.CredentialSaveOption());
427
423
  }
428
424
  catch (...)
@@ -434,12 +430,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
434
430
 
435
431
  static int CredentialPickerOptions_put_CredentialSaveOption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
436
432
  {
437
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
438
- {
439
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
440
- return -1;
441
- }
442
-
443
433
  if (arg == nullptr)
444
434
  {
445
435
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -448,6 +438,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
448
438
 
449
439
  try
450
440
  {
441
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
442
+ {
443
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
444
+ return -1;
445
+ }
446
+
451
447
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::CredentialSaveOption>(arg);
452
448
 
453
449
  self->obj.CredentialSaveOption(param0);
@@ -462,14 +458,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
462
458
 
463
459
  static PyObject* CredentialPickerOptions_get_Caption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
464
460
  {
465
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
466
- {
467
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
468
- return nullptr;
469
- }
470
-
471
461
  try
472
462
  {
463
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
464
+ {
465
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
466
+ return nullptr;
467
+ }
468
+
473
469
  return py::convert(self->obj.Caption());
474
470
  }
475
471
  catch (...)
@@ -481,12 +477,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
481
477
 
482
478
  static int CredentialPickerOptions_put_Caption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
483
479
  {
484
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
485
- {
486
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
487
- return -1;
488
- }
489
-
490
480
  if (arg == nullptr)
491
481
  {
492
482
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -495,6 +485,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
495
485
 
496
486
  try
497
487
  {
488
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
489
+ {
490
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
491
+ return -1;
492
+ }
493
+
498
494
  auto param0 = py::convert_to<winrt::hstring>(arg);
499
495
 
500
496
  self->obj.Caption(param0);
@@ -509,14 +505,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
509
505
 
510
506
  static PyObject* CredentialPickerOptions_get_CallerSavesCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
511
507
  {
512
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
513
- {
514
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
515
- return nullptr;
516
- }
517
-
518
508
  try
519
509
  {
510
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
511
+ {
512
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
513
+ return nullptr;
514
+ }
515
+
520
516
  return py::convert(self->obj.CallerSavesCredential());
521
517
  }
522
518
  catch (...)
@@ -528,12 +524,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
528
524
 
529
525
  static int CredentialPickerOptions_put_CallerSavesCredential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
530
526
  {
531
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
532
- {
533
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
534
- return -1;
535
- }
536
-
537
527
  if (arg == nullptr)
538
528
  {
539
529
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -542,6 +532,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
542
532
 
543
533
  try
544
534
  {
535
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
536
+ {
537
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
538
+ return -1;
539
+ }
540
+
545
541
  auto param0 = py::convert_to<bool>(arg);
546
542
 
547
543
  self->obj.CallerSavesCredential(param0);
@@ -556,14 +552,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
556
552
 
557
553
  static PyObject* CredentialPickerOptions_get_AuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
558
554
  {
559
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
560
- {
561
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
562
- return nullptr;
563
- }
564
-
565
555
  try
566
556
  {
557
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
558
+ {
559
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
560
+ return nullptr;
561
+ }
562
+
567
563
  return py::convert(self->obj.AuthenticationProtocol());
568
564
  }
569
565
  catch (...)
@@ -575,12 +571,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
575
571
 
576
572
  static int CredentialPickerOptions_put_AuthenticationProtocol(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
577
573
  {
578
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
579
- {
580
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
581
- return -1;
582
- }
583
-
584
574
  if (arg == nullptr)
585
575
  {
586
576
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -589,6 +579,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
589
579
 
590
580
  try
591
581
  {
582
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
583
+ {
584
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
585
+ return -1;
586
+ }
587
+
592
588
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::UI::AuthenticationProtocol>(arg);
593
589
 
594
590
  self->obj.AuthenticationProtocol(param0);
@@ -603,14 +599,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
603
599
 
604
600
  static PyObject* CredentialPickerOptions_get_AlwaysDisplayDialog(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, void* /*unused*/) noexcept
605
601
  {
606
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
607
- {
608
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
609
- return nullptr;
610
- }
611
-
612
602
  try
613
603
  {
604
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
605
+ {
606
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
607
+ return nullptr;
608
+ }
609
+
614
610
  return py::convert(self->obj.AlwaysDisplayDialog());
615
611
  }
616
612
  catch (...)
@@ -622,12 +618,6 @@ namespace py::cpp::Windows::Security::Credentials::UI
622
618
 
623
619
  static int CredentialPickerOptions_put_AlwaysDisplayDialog(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions* self, PyObject* arg, void* /*unused*/) noexcept
624
620
  {
625
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
626
- {
627
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
628
- return -1;
629
- }
630
-
631
621
  if (arg == nullptr)
632
622
  {
633
623
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -636,6 +626,12 @@ namespace py::cpp::Windows::Security::Credentials::UI
636
626
 
637
627
  try
638
628
  {
629
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
630
+ {
631
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
632
+ return -1;
633
+ }
634
+
639
635
  auto param0 = py::convert_to<bool>(arg);
640
636
 
641
637
  self->obj.AlwaysDisplayDialog(param0);
@@ -692,23 +688,20 @@ namespace py::cpp::Windows::Security::Credentials::UI
692
688
  { }
693
689
  };
694
690
 
695
- static PyType_Slot _type_slots_CredentialPickerOptions[] =
696
- {
691
+ static PyType_Slot _type_slots_CredentialPickerOptions[] = {
697
692
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPickerOptions) },
698
693
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CredentialPickerOptions) },
699
694
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPickerOptions) },
700
695
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPickerOptions) },
701
- { },
696
+ { }
702
697
  };
703
698
 
704
- static PyType_Spec type_spec_CredentialPickerOptions =
705
- {
699
+ static PyType_Spec type_spec_CredentialPickerOptions = {
706
700
  "winrt._winrt_windows_security_credentials_ui.CredentialPickerOptions",
707
701
  sizeof(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerOptions),
708
702
  0,
709
703
  Py_TPFLAGS_DEFAULT,
710
- _type_slots_CredentialPickerOptions
711
- };
704
+ _type_slots_CredentialPickerOptions};
712
705
 
713
706
  // ----- CredentialPickerResults class --------------------
714
707
 
@@ -729,14 +722,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
729
722
 
730
723
  static PyObject* CredentialPickerResults_get_Credential(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
731
724
  {
732
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"Credential"))
733
- {
734
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
735
- return nullptr;
736
- }
737
-
738
725
  try
739
726
  {
727
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"Credential"))
728
+ {
729
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
730
+ return nullptr;
731
+ }
732
+
740
733
  return py::convert(self->obj.Credential());
741
734
  }
742
735
  catch (...)
@@ -748,14 +741,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
748
741
 
749
742
  static PyObject* CredentialPickerResults_get_CredentialDomainName(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
750
743
  {
751
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialDomainName"))
752
- {
753
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
754
- return nullptr;
755
- }
756
-
757
744
  try
758
745
  {
746
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialDomainName"))
747
+ {
748
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
749
+ return nullptr;
750
+ }
751
+
759
752
  return py::convert(self->obj.CredentialDomainName());
760
753
  }
761
754
  catch (...)
@@ -767,14 +760,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
767
760
 
768
761
  static PyObject* CredentialPickerResults_get_CredentialPassword(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
769
762
  {
770
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialPassword"))
771
- {
772
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
773
- return nullptr;
774
- }
775
-
776
763
  try
777
764
  {
765
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialPassword"))
766
+ {
767
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
768
+ return nullptr;
769
+ }
770
+
778
771
  return py::convert(self->obj.CredentialPassword());
779
772
  }
780
773
  catch (...)
@@ -786,14 +779,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
786
779
 
787
780
  static PyObject* CredentialPickerResults_get_CredentialSaveOption(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
788
781
  {
789
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaveOption"))
790
- {
791
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
792
- return nullptr;
793
- }
794
-
795
782
  try
796
783
  {
784
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaveOption"))
785
+ {
786
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
787
+ return nullptr;
788
+ }
789
+
797
790
  return py::convert(self->obj.CredentialSaveOption());
798
791
  }
799
792
  catch (...)
@@ -805,14 +798,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
805
798
 
806
799
  static PyObject* CredentialPickerResults_get_CredentialSaved(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
807
800
  {
808
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaved"))
809
- {
810
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
811
- return nullptr;
812
- }
813
-
814
801
  try
815
802
  {
803
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaved"))
804
+ {
805
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
806
+ return nullptr;
807
+ }
808
+
816
809
  return py::convert(self->obj.CredentialSaved());
817
810
  }
818
811
  catch (...)
@@ -824,14 +817,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
824
817
 
825
818
  static PyObject* CredentialPickerResults_get_CredentialUserName(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
826
819
  {
827
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialUserName"))
828
- {
829
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
830
- return nullptr;
831
- }
832
-
833
820
  try
834
821
  {
822
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialUserName"))
823
+ {
824
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
825
+ return nullptr;
826
+ }
827
+
835
828
  return py::convert(self->obj.CredentialUserName());
836
829
  }
837
830
  catch (...)
@@ -843,14 +836,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
843
836
 
844
837
  static PyObject* CredentialPickerResults_get_ErrorCode(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults* self, void* /*unused*/) noexcept
845
838
  {
846
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"ErrorCode"))
847
- {
848
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
849
- return nullptr;
850
- }
851
-
852
839
  try
853
840
  {
841
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"ErrorCode"))
842
+ {
843
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
844
+ return nullptr;
845
+ }
846
+
854
847
  return py::convert(self->obj.ErrorCode());
855
848
  }
856
849
  catch (...)
@@ -901,23 +894,20 @@ namespace py::cpp::Windows::Security::Credentials::UI
901
894
  { }
902
895
  };
903
896
 
904
- static PyType_Slot _type_slots_CredentialPickerResults[] =
905
- {
897
+ static PyType_Slot _type_slots_CredentialPickerResults[] = {
906
898
  { Py_tp_new, reinterpret_cast<void*>(_new_CredentialPickerResults) },
907
899
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CredentialPickerResults) },
908
900
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CredentialPickerResults) },
909
901
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CredentialPickerResults) },
910
- { },
902
+ { }
911
903
  };
912
904
 
913
- static PyType_Spec type_spec_CredentialPickerResults =
914
- {
905
+ static PyType_Spec type_spec_CredentialPickerResults = {
915
906
  "winrt._winrt_windows_security_credentials_ui.CredentialPickerResults",
916
907
  sizeof(py::wrapper::Windows::Security::Credentials::UI::CredentialPickerResults),
917
908
  0,
918
909
  Py_TPFLAGS_DEFAULT,
919
- _type_slots_CredentialPickerResults
920
- };
910
+ _type_slots_CredentialPickerResults};
921
911
 
922
912
  // ----- UserConsentVerifier class --------------------
923
913
 
@@ -934,14 +924,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
934
924
 
935
925
  if (arg_count == 0)
936
926
  {
937
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"CheckAvailabilityAsync", 0))
938
- {
939
- py::set_arg_count_version_error(0);
940
- return nullptr;
941
- }
942
-
943
927
  try
944
928
  {
929
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"CheckAvailabilityAsync", 0))
930
+ {
931
+ py::set_arg_count_version_error(0);
932
+ return nullptr;
933
+ }
934
+
945
935
  return py::convert(winrt::Windows::Security::Credentials::UI::UserConsentVerifier::CheckAvailabilityAsync());
946
936
  }
947
937
  catch (...)
@@ -963,14 +953,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
963
953
 
964
954
  if (arg_count == 1)
965
955
  {
966
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"RequestVerificationAsync", 1))
967
- {
968
- py::set_arg_count_version_error(1);
969
- return nullptr;
970
- }
971
-
972
956
  try
973
957
  {
958
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"RequestVerificationAsync", 1))
959
+ {
960
+ py::set_arg_count_version_error(1);
961
+ return nullptr;
962
+ }
963
+
974
964
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
975
965
 
976
966
  return py::convert(winrt::Windows::Security::Credentials::UI::UserConsentVerifier::RequestVerificationAsync(param0));
@@ -996,22 +986,19 @@ namespace py::cpp::Windows::Security::Credentials::UI
996
986
  { }
997
987
  };
998
988
 
999
- static PyType_Slot _type_slots_UserConsentVerifier[] =
1000
- {
989
+ static PyType_Slot _type_slots_UserConsentVerifier[] = {
1001
990
  { Py_tp_new, reinterpret_cast<void*>(_new_UserConsentVerifier) },
1002
991
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserConsentVerifier) },
1003
992
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserConsentVerifier) },
1004
- { },
993
+ { }
1005
994
  };
1006
995
 
1007
- static PyType_Spec type_spec_UserConsentVerifier =
1008
- {
996
+ static PyType_Spec type_spec_UserConsentVerifier = {
1009
997
  "winrt._winrt_windows_security_credentials_ui.UserConsentVerifier",
1010
998
  0,
1011
999
  0,
1012
1000
  Py_TPFLAGS_DEFAULT,
1013
- _type_slots_UserConsentVerifier
1014
- };
1001
+ _type_slots_UserConsentVerifier};
1015
1002
 
1016
1003
  static PyGetSetDef getset_UserConsentVerifier_Static[] = {
1017
1004
  { }
@@ -1041,20 +1028,19 @@ namespace py::cpp::Windows::Security::Credentials::UI
1041
1028
  };
1042
1029
 
1043
1030
  // ----- Windows.Security.Credentials.UI Initialization --------------------
1044
- PyDoc_STRVAR(module_doc, "Windows::Security::Credentials::UI");
1045
-
1046
1031
 
1047
- static PyModuleDef module_def
1048
- = {PyModuleDef_HEAD_INIT,
1049
- "_winrt_windows_security_credentials_ui",
1050
- module_doc,
1051
- 0,
1052
- nullptr,
1053
- nullptr,
1054
- nullptr,
1055
- nullptr,
1056
- nullptr};
1032
+ PyDoc_STRVAR(module_doc, "Windows.Security.Credentials.UI");
1057
1033
 
1034
+ static PyModuleDef module_def = {
1035
+ PyModuleDef_HEAD_INIT,
1036
+ "_winrt_windows_security_credentials_ui",
1037
+ module_doc,
1038
+ 0,
1039
+ nullptr,
1040
+ nullptr,
1041
+ nullptr,
1042
+ nullptr,
1043
+ nullptr};
1058
1044
  } // py::cpp::Windows::Security::Credentials::UI
1059
1045
 
1060
1046
  PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(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_credentials_ui",
26
+ sources=["py.Windows.Security.Credentials.UI.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.storage.streams
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
14
 
15
15
  from winrt.windows.security.credentials.ui import AuthenticationProtocol, CredentialSaveOption, UserConsentVerificationResult, UserConsentVerifierAvailability
16
16
 
@@ -19,30 +19,29 @@ Self = typing.TypeVar('Self')
19
19
  @typing.final
20
20
  class CredentialPicker_Static(type):
21
21
  @typing.overload
22
- def pick_async(cls, options: typing.Optional[CredentialPickerOptions], /) -> winrt.windows.foundation.IAsyncOperation[CredentialPickerResults]: ...
22
+ def pick_async(cls, options: typing.Optional[CredentialPickerOptions], /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
23
23
  @typing.overload
24
- def pick_async(cls, target_name: str, message: str, /) -> winrt.windows.foundation.IAsyncOperation[CredentialPickerResults]: ...
24
+ def pick_async(cls, target_name: str, message: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
25
25
  @typing.overload
26
- def pick_async(cls, target_name: str, message: str, caption: str, /) -> winrt.windows.foundation.IAsyncOperation[CredentialPickerResults]: ...
26
+ def pick_async(cls, target_name: str, message: str, caption: str, /) -> windows_foundation.IAsyncOperation[CredentialPickerResults]: ...
27
27
 
28
28
  @typing.final
29
29
  class CredentialPicker(winrt.system.Object, metaclass=CredentialPicker_Static):
30
- @staticmethod
31
- def _from(obj: winrt.system.Object, /) -> CredentialPicker: ...
30
+ pass
32
31
 
33
32
  @typing.final
34
33
  class CredentialPickerOptions(winrt.system.Object):
35
34
  @staticmethod
36
35
  def _from(obj: winrt.system.Object, /) -> CredentialPickerOptions: ...
37
- def __new__(cls: typing.Type[CredentialPickerOptions]) -> CredentialPickerOptions:...
36
+ def __new__(cls: typing.Type[CredentialPickerOptions]) -> CredentialPickerOptions: ...
38
37
  @_property
39
38
  def target_name(self) -> str: ...
40
39
  @target_name.setter
41
40
  def target_name(self, value: str) -> None: ...
42
41
  @_property
43
- def previous_credential(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
42
+ def previous_credential(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
44
43
  @previous_credential.setter
45
- def previous_credential(self, value: typing.Optional[winrt.windows.storage.streams.IBuffer]) -> None: ...
44
+ def previous_credential(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
46
45
  @_property
47
46
  def message(self) -> str: ...
48
47
  @message.setter
@@ -81,7 +80,7 @@ class CredentialPickerResults(winrt.system.Object):
81
80
  @staticmethod
82
81
  def _from(obj: winrt.system.Object, /) -> CredentialPickerResults: ...
83
82
  @_property
84
- def credential(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
83
+ def credential(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
85
84
  @_property
86
85
  def credential_domain_name(self) -> str: ...
87
86
  @_property
@@ -97,11 +96,10 @@ class CredentialPickerResults(winrt.system.Object):
97
96
 
98
97
  @typing.final
99
98
  class UserConsentVerifier_Static(type):
100
- def check_availability_async(cls) -> winrt.windows.foundation.IAsyncOperation[UserConsentVerifierAvailability]: ...
101
- def request_verification_async(cls, message: str, /) -> winrt.windows.foundation.IAsyncOperation[UserConsentVerificationResult]: ...
99
+ def check_availability_async(cls) -> windows_foundation.IAsyncOperation[UserConsentVerifierAvailability]: ...
100
+ def request_verification_async(cls, message: str, /) -> windows_foundation.IAsyncOperation[UserConsentVerificationResult]: ...
102
101
 
103
102
  @typing.final
104
103
  class UserConsentVerifier(winrt.system.Object, metaclass=UserConsentVerifier_Static):
105
- @staticmethod
106
- def _from(obj: winrt.system.Object, /) -> UserConsentVerifier: ...
104
+ pass
107
105
 
@@ -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.Credentials.UI
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.Storage.Streams[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_credentials_ui.pyi
9
9
  winrt/windows/security/credentials/ui/__init__.py
10
+ winrt/windows/security/credentials/ui/py.typed
10
11
  winrt_Windows.Security.Credentials.UI.egg-info/PKG-INFO
11
12
  winrt_Windows.Security.Credentials.UI.egg-info/SOURCES.txt
12
13
  winrt_Windows.Security.Credentials.UI.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.Storage.Streams[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.Storage.Streams[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_credentials_ui",
10
- sources=["py.Windows.Security.Credentials.UI.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.Storage.Streams[all]==2.0.0-beta.2