winrt-Windows.ApplicationModel.VoiceCommands 2.1.0__tar.gz → 2.2.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_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/PKG-INFO +9 -9
  2. winrt_windows_applicationmodel_voicecommands-2.2.0/all-requirements.txt +8 -0
  3. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/py.Windows.ApplicationModel.VoiceCommands.cpp +455 -67
  4. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_voicecommands-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt/_winrt_windows_applicationmodel_voicecommands.pyi +1 -1
  8. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt/windows/applicationmodel/voicecommands/__init__.py +1 -1
  9. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/PKG-INFO +9 -9
  10. winrt_windows_applicationmodel_voicecommands-2.2.0/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/requires.txt +9 -0
  11. winrt_windows_applicationmodel_voicecommands-2.1.0/all-requirements.txt +0 -8
  12. winrt_windows_applicationmodel_voicecommands-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_voicecommands-2.1.0/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/requires.txt +0 -9
  14. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/README.md +0 -0
  15. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt/windows/applicationmodel/voicecommands/py.typed +0 -0
  18. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_voicecommands-2.1.0 → winrt_windows_applicationmodel_voicecommands-2.2.0}/winrt_Windows.ApplicationModel.VoiceCommands.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.VoiceCommands
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Globalization[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Media.SpeechRecognition[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Globalization[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Media.SpeechRecognition[all]==2.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
23
23
 
24
24
  <!-- warning: Please don't edit this file. It was automatically generated. -->
25
25
 
@@ -0,0 +1,8 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.ApplicationModel.AppService[all]==2.2.0
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
6
+ winrt-Windows.Globalization[all]==2.2.0
7
+ winrt-Windows.Media.SpeechRecognition[all]==2.2.0
8
+ winrt-Windows.Storage[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.VoiceCommands.h"
4
4
 
@@ -25,7 +25,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
25
25
  {
26
26
  try
27
27
  {
28
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"CommandName"))
28
+ static std::optional<bool> is_property_present{};
29
+
30
+ if (!is_property_present.has_value())
31
+ {
32
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"CommandName");
33
+ }
34
+
35
+ if (!is_property_present.value())
29
36
  {
30
37
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
31
38
  return nullptr;
@@ -44,7 +51,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
44
51
  {
45
52
  try
46
53
  {
47
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"Properties"))
54
+ static std::optional<bool> is_property_present{};
55
+
56
+ if (!is_property_present.has_value())
57
+ {
58
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"Properties");
59
+ }
60
+
61
+ if (!is_property_present.value())
48
62
  {
49
63
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
50
64
  return nullptr;
@@ -63,7 +77,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
63
77
  {
64
78
  try
65
79
  {
66
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"SpeechRecognitionResult"))
80
+ static std::optional<bool> is_property_present{};
81
+
82
+ if (!is_property_present.has_value())
83
+ {
84
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommand", L"SpeechRecognitionResult");
85
+ }
86
+
87
+ if (!is_property_present.value())
67
88
  {
68
89
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
69
90
  return nullptr;
@@ -151,7 +172,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
151
172
  {
152
173
  try
153
174
  {
154
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs", L"Reason"))
175
+ static std::optional<bool> is_property_present{};
176
+
177
+ if (!is_property_present.has_value())
178
+ {
179
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandCompletedEventArgs", L"Reason");
180
+ }
181
+
182
+ if (!is_property_present.value())
155
183
  {
156
184
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
157
185
  return nullptr;
@@ -237,7 +265,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
237
265
  {
238
266
  try
239
267
  {
240
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandConfirmationResult", L"Confirmed"))
268
+ static std::optional<bool> is_property_present{};
269
+
270
+ if (!is_property_present.has_value())
271
+ {
272
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandConfirmationResult", L"Confirmed");
273
+ }
274
+
275
+ if (!is_property_present.value())
241
276
  {
242
277
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
243
278
  return nullptr;
@@ -317,7 +352,7 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
317
352
  {
318
353
  try
319
354
  {
320
- winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTile instance{ };
355
+ winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTile instance{};
321
356
  return py::wrap(instance, type);
322
357
  }
323
358
  catch (...)
@@ -345,7 +380,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
345
380
  {
346
381
  try
347
382
  {
348
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Title"))
383
+ static std::optional<bool> is_property_present{};
384
+
385
+ if (!is_property_present.has_value())
386
+ {
387
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Title");
388
+ }
389
+
390
+ if (!is_property_present.value())
349
391
  {
350
392
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
351
393
  return nullptr;
@@ -370,7 +412,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
370
412
 
371
413
  try
372
414
  {
373
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Title"))
415
+ static std::optional<bool> is_property_present{};
416
+
417
+ if (!is_property_present.has_value())
418
+ {
419
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Title");
420
+ }
421
+
422
+ if (!is_property_present.value())
374
423
  {
375
424
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
376
425
  return -1;
@@ -392,7 +441,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
392
441
  {
393
442
  try
394
443
  {
395
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine3"))
444
+ static std::optional<bool> is_property_present{};
445
+
446
+ if (!is_property_present.has_value())
447
+ {
448
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine3");
449
+ }
450
+
451
+ if (!is_property_present.value())
396
452
  {
397
453
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
398
454
  return nullptr;
@@ -417,7 +473,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
417
473
 
418
474
  try
419
475
  {
420
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine3"))
476
+ static std::optional<bool> is_property_present{};
477
+
478
+ if (!is_property_present.has_value())
479
+ {
480
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine3");
481
+ }
482
+
483
+ if (!is_property_present.value())
421
484
  {
422
485
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
423
486
  return -1;
@@ -439,7 +502,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
439
502
  {
440
503
  try
441
504
  {
442
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine2"))
505
+ static std::optional<bool> is_property_present{};
506
+
507
+ if (!is_property_present.has_value())
508
+ {
509
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine2");
510
+ }
511
+
512
+ if (!is_property_present.value())
443
513
  {
444
514
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
445
515
  return nullptr;
@@ -464,7 +534,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
464
534
 
465
535
  try
466
536
  {
467
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine2"))
537
+ static std::optional<bool> is_property_present{};
538
+
539
+ if (!is_property_present.has_value())
540
+ {
541
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine2");
542
+ }
543
+
544
+ if (!is_property_present.value())
468
545
  {
469
546
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
470
547
  return -1;
@@ -486,7 +563,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
486
563
  {
487
564
  try
488
565
  {
489
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine1"))
566
+ static std::optional<bool> is_property_present{};
567
+
568
+ if (!is_property_present.has_value())
569
+ {
570
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine1");
571
+ }
572
+
573
+ if (!is_property_present.value())
490
574
  {
491
575
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
492
576
  return nullptr;
@@ -511,7 +595,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
511
595
 
512
596
  try
513
597
  {
514
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine1"))
598
+ static std::optional<bool> is_property_present{};
599
+
600
+ if (!is_property_present.has_value())
601
+ {
602
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"TextLine1");
603
+ }
604
+
605
+ if (!is_property_present.value())
515
606
  {
516
607
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
517
608
  return -1;
@@ -533,7 +624,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
533
624
  {
534
625
  try
535
626
  {
536
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Image"))
627
+ static std::optional<bool> is_property_present{};
628
+
629
+ if (!is_property_present.has_value())
630
+ {
631
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Image");
632
+ }
633
+
634
+ if (!is_property_present.value())
537
635
  {
538
636
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
539
637
  return nullptr;
@@ -558,7 +656,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
558
656
 
559
657
  try
560
658
  {
561
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Image"))
659
+ static std::optional<bool> is_property_present{};
660
+
661
+ if (!is_property_present.has_value())
662
+ {
663
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"Image");
664
+ }
665
+
666
+ if (!is_property_present.value())
562
667
  {
563
668
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
564
669
  return -1;
@@ -580,7 +685,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
580
685
  {
581
686
  try
582
687
  {
583
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"ContentTileType"))
688
+ static std::optional<bool> is_property_present{};
689
+
690
+ if (!is_property_present.has_value())
691
+ {
692
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"ContentTileType");
693
+ }
694
+
695
+ if (!is_property_present.value())
584
696
  {
585
697
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
586
698
  return nullptr;
@@ -605,7 +717,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
605
717
 
606
718
  try
607
719
  {
608
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"ContentTileType"))
720
+ static std::optional<bool> is_property_present{};
721
+
722
+ if (!is_property_present.has_value())
723
+ {
724
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"ContentTileType");
725
+ }
726
+
727
+ if (!is_property_present.value())
609
728
  {
610
729
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
611
730
  return -1;
@@ -627,7 +746,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
627
746
  {
628
747
  try
629
748
  {
630
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppLaunchArgument"))
749
+ static std::optional<bool> is_property_present{};
750
+
751
+ if (!is_property_present.has_value())
752
+ {
753
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppLaunchArgument");
754
+ }
755
+
756
+ if (!is_property_present.value())
631
757
  {
632
758
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
633
759
  return nullptr;
@@ -652,7 +778,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
652
778
 
653
779
  try
654
780
  {
655
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppLaunchArgument"))
781
+ static std::optional<bool> is_property_present{};
782
+
783
+ if (!is_property_present.has_value())
784
+ {
785
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppLaunchArgument");
786
+ }
787
+
788
+ if (!is_property_present.value())
656
789
  {
657
790
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
658
791
  return -1;
@@ -674,7 +807,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
674
807
  {
675
808
  try
676
809
  {
677
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppContext"))
810
+ static std::optional<bool> is_property_present{};
811
+
812
+ if (!is_property_present.has_value())
813
+ {
814
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppContext");
815
+ }
816
+
817
+ if (!is_property_present.value())
678
818
  {
679
819
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
680
820
  return nullptr;
@@ -699,7 +839,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
699
839
 
700
840
  try
701
841
  {
702
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppContext"))
842
+ static std::optional<bool> is_property_present{};
843
+
844
+ if (!is_property_present.has_value())
845
+ {
846
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandContentTile", L"AppContext");
847
+ }
848
+
849
+ if (!is_property_present.value())
703
850
  {
704
851
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
705
852
  return -1;
@@ -799,7 +946,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
799
946
  {
800
947
  try
801
948
  {
802
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"SetPhraseListAsync", 2))
949
+ static std::optional<bool> is_overload_present{};
950
+
951
+ if (!is_overload_present.has_value())
952
+ {
953
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"SetPhraseListAsync", 2);
954
+ }
955
+
956
+ if (!is_overload_present.value())
803
957
  {
804
958
  py::set_arg_count_version_error(2);
805
959
  return nullptr;
@@ -827,7 +981,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
827
981
  {
828
982
  try
829
983
  {
830
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"Language"))
984
+ static std::optional<bool> is_property_present{};
985
+
986
+ if (!is_property_present.has_value())
987
+ {
988
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"Language");
989
+ }
990
+
991
+ if (!is_property_present.value())
831
992
  {
832
993
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
833
994
  return nullptr;
@@ -846,7 +1007,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
846
1007
  {
847
1008
  try
848
1009
  {
849
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"Name"))
1010
+ static std::optional<bool> is_property_present{};
1011
+
1012
+ if (!is_property_present.has_value())
1013
+ {
1014
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinition", L"Name");
1015
+ }
1016
+
1017
+ if (!is_property_present.value())
850
1018
  {
851
1019
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
852
1020
  return nullptr;
@@ -930,7 +1098,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
930
1098
  {
931
1099
  try
932
1100
  {
933
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager", L"InstallCommandDefinitionsFromStorageFileAsync", 1))
1101
+ static std::optional<bool> is_overload_present{};
1102
+
1103
+ if (!is_overload_present.has_value())
1104
+ {
1105
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager", L"InstallCommandDefinitionsFromStorageFileAsync", 1);
1106
+ }
1107
+
1108
+ if (!is_overload_present.value())
934
1109
  {
935
1110
  py::set_arg_count_version_error(1);
936
1111
  return nullptr;
@@ -957,7 +1132,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
957
1132
  {
958
1133
  try
959
1134
  {
960
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager", L"InstalledCommandDefinitions"))
1135
+ static std::optional<bool> is_property_present{};
1136
+
1137
+ if (!is_property_present.has_value())
1138
+ {
1139
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager", L"InstalledCommandDefinitions");
1140
+ }
1141
+
1142
+ if (!is_property_present.value())
961
1143
  {
962
1144
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
963
1145
  return nullptr;
@@ -1042,7 +1224,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1042
1224
  {
1043
1225
  try
1044
1226
  {
1045
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDisambiguationResult", L"SelectedItem"))
1227
+ static std::optional<bool> is_property_present{};
1228
+
1229
+ if (!is_property_present.has_value())
1230
+ {
1231
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandDisambiguationResult", L"SelectedItem");
1232
+ }
1233
+
1234
+ if (!is_property_present.value())
1046
1235
  {
1047
1236
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1048
1237
  return nullptr;
@@ -1132,7 +1321,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1132
1321
  {
1133
1322
  try
1134
1323
  {
1135
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponse", 1))
1324
+ static std::optional<bool> is_overload_present{};
1325
+
1326
+ if (!is_overload_present.has_value())
1327
+ {
1328
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponse", 1);
1329
+ }
1330
+
1331
+ if (!is_overload_present.value())
1136
1332
  {
1137
1333
  py::set_arg_count_version_error(1);
1138
1334
  return nullptr;
@@ -1152,7 +1348,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1152
1348
  {
1153
1349
  try
1154
1350
  {
1155
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponse", 2))
1351
+ static std::optional<bool> is_overload_present{};
1352
+
1353
+ if (!is_overload_present.has_value())
1354
+ {
1355
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponse", 2);
1356
+ }
1357
+
1358
+ if (!is_overload_present.value())
1156
1359
  {
1157
1360
  py::set_arg_count_version_error(2);
1158
1361
  return nullptr;
@@ -1184,7 +1387,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1184
1387
  {
1185
1388
  try
1186
1389
  {
1187
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponseForPrompt", 2))
1390
+ static std::optional<bool> is_overload_present{};
1391
+
1392
+ if (!is_overload_present.has_value())
1393
+ {
1394
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponseForPrompt", 2);
1395
+ }
1396
+
1397
+ if (!is_overload_present.value())
1188
1398
  {
1189
1399
  py::set_arg_count_version_error(2);
1190
1400
  return nullptr;
@@ -1205,7 +1415,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1205
1415
  {
1206
1416
  try
1207
1417
  {
1208
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponseForPrompt", 3))
1418
+ static std::optional<bool> is_overload_present{};
1419
+
1420
+ if (!is_overload_present.has_value())
1421
+ {
1422
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"CreateResponseForPrompt", 3);
1423
+ }
1424
+
1425
+ if (!is_overload_present.value())
1209
1426
  {
1210
1427
  py::set_arg_count_version_error(3);
1211
1428
  return nullptr;
@@ -1234,7 +1451,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1234
1451
  {
1235
1452
  try
1236
1453
  {
1237
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"RepeatMessage"))
1454
+ static std::optional<bool> is_property_present{};
1455
+
1456
+ if (!is_property_present.has_value())
1457
+ {
1458
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"RepeatMessage");
1459
+ }
1460
+
1461
+ if (!is_property_present.value())
1238
1462
  {
1239
1463
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1240
1464
  return nullptr;
@@ -1259,7 +1483,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1259
1483
 
1260
1484
  try
1261
1485
  {
1262
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"RepeatMessage"))
1486
+ static std::optional<bool> is_property_present{};
1487
+
1488
+ if (!is_property_present.has_value())
1489
+ {
1490
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"RepeatMessage");
1491
+ }
1492
+
1493
+ if (!is_property_present.value())
1263
1494
  {
1264
1495
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1265
1496
  return -1;
@@ -1281,7 +1512,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1281
1512
  {
1282
1513
  try
1283
1514
  {
1284
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"Message"))
1515
+ static std::optional<bool> is_property_present{};
1516
+
1517
+ if (!is_property_present.has_value())
1518
+ {
1519
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"Message");
1520
+ }
1521
+
1522
+ if (!is_property_present.value())
1285
1523
  {
1286
1524
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1287
1525
  return nullptr;
@@ -1306,7 +1544,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1306
1544
 
1307
1545
  try
1308
1546
  {
1309
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"Message"))
1547
+ static std::optional<bool> is_property_present{};
1548
+
1549
+ if (!is_property_present.has_value())
1550
+ {
1551
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"Message");
1552
+ }
1553
+
1554
+ if (!is_property_present.value())
1310
1555
  {
1311
1556
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1312
1557
  return -1;
@@ -1328,7 +1573,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1328
1573
  {
1329
1574
  try
1330
1575
  {
1331
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"AppLaunchArgument"))
1576
+ static std::optional<bool> is_property_present{};
1577
+
1578
+ if (!is_property_present.has_value())
1579
+ {
1580
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"AppLaunchArgument");
1581
+ }
1582
+
1583
+ if (!is_property_present.value())
1332
1584
  {
1333
1585
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1334
1586
  return nullptr;
@@ -1353,7 +1605,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1353
1605
 
1354
1606
  try
1355
1607
  {
1356
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"AppLaunchArgument"))
1608
+ static std::optional<bool> is_property_present{};
1609
+
1610
+ if (!is_property_present.has_value())
1611
+ {
1612
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"AppLaunchArgument");
1613
+ }
1614
+
1615
+ if (!is_property_present.value())
1357
1616
  {
1358
1617
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1359
1618
  return -1;
@@ -1375,7 +1634,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1375
1634
  {
1376
1635
  try
1377
1636
  {
1378
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"VoiceCommandContentTiles"))
1637
+ static std::optional<bool> is_property_present{};
1638
+
1639
+ if (!is_property_present.has_value())
1640
+ {
1641
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"VoiceCommandContentTiles");
1642
+ }
1643
+
1644
+ if (!is_property_present.value())
1379
1645
  {
1380
1646
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1381
1647
  return nullptr;
@@ -1394,7 +1660,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1394
1660
  {
1395
1661
  try
1396
1662
  {
1397
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"MaxSupportedVoiceCommandContentTiles"))
1663
+ static std::optional<bool> is_property_present{};
1664
+
1665
+ if (!is_property_present.has_value())
1666
+ {
1667
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandResponse", L"MaxSupportedVoiceCommandContentTiles");
1668
+ }
1669
+
1670
+ if (!is_property_present.value())
1398
1671
  {
1399
1672
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1400
1673
  return nullptr;
@@ -1515,7 +1788,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1515
1788
  {
1516
1789
  try
1517
1790
  {
1518
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"FromAppServiceTriggerDetails", 1))
1791
+ static std::optional<bool> is_overload_present{};
1792
+
1793
+ if (!is_overload_present.has_value())
1794
+ {
1795
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"FromAppServiceTriggerDetails", 1);
1796
+ }
1797
+
1798
+ if (!is_overload_present.value())
1519
1799
  {
1520
1800
  py::set_arg_count_version_error(1);
1521
1801
  return nullptr;
@@ -1546,7 +1826,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1546
1826
  {
1547
1827
  try
1548
1828
  {
1549
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"GetVoiceCommandAsync", 0))
1829
+ static std::optional<bool> is_overload_present{};
1830
+
1831
+ if (!is_overload_present.has_value())
1832
+ {
1833
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"GetVoiceCommandAsync", 0);
1834
+ }
1835
+
1836
+ if (!is_overload_present.value())
1550
1837
  {
1551
1838
  py::set_arg_count_version_error(0);
1552
1839
  return nullptr;
@@ -1575,7 +1862,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1575
1862
  {
1576
1863
  try
1577
1864
  {
1578
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportFailureAsync", 1))
1865
+ static std::optional<bool> is_overload_present{};
1866
+
1867
+ if (!is_overload_present.has_value())
1868
+ {
1869
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportFailureAsync", 1);
1870
+ }
1871
+
1872
+ if (!is_overload_present.value())
1579
1873
  {
1580
1874
  py::set_arg_count_version_error(1);
1581
1875
  return nullptr;
@@ -1606,7 +1900,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1606
1900
  {
1607
1901
  try
1608
1902
  {
1609
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportProgressAsync", 1))
1903
+ static std::optional<bool> is_overload_present{};
1904
+
1905
+ if (!is_overload_present.has_value())
1906
+ {
1907
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportProgressAsync", 1);
1908
+ }
1909
+
1910
+ if (!is_overload_present.value())
1610
1911
  {
1611
1912
  py::set_arg_count_version_error(1);
1612
1913
  return nullptr;
@@ -1637,7 +1938,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1637
1938
  {
1638
1939
  try
1639
1940
  {
1640
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportSuccessAsync", 1))
1941
+ static std::optional<bool> is_overload_present{};
1942
+
1943
+ if (!is_overload_present.has_value())
1944
+ {
1945
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"ReportSuccessAsync", 1);
1946
+ }
1947
+
1948
+ if (!is_overload_present.value())
1641
1949
  {
1642
1950
  py::set_arg_count_version_error(1);
1643
1951
  return nullptr;
@@ -1668,7 +1976,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1668
1976
  {
1669
1977
  try
1670
1978
  {
1671
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestAppLaunchAsync", 1))
1979
+ static std::optional<bool> is_overload_present{};
1980
+
1981
+ if (!is_overload_present.has_value())
1982
+ {
1983
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestAppLaunchAsync", 1);
1984
+ }
1985
+
1986
+ if (!is_overload_present.value())
1672
1987
  {
1673
1988
  py::set_arg_count_version_error(1);
1674
1989
  return nullptr;
@@ -1699,7 +2014,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1699
2014
  {
1700
2015
  try
1701
2016
  {
1702
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestConfirmationAsync", 1))
2017
+ static std::optional<bool> is_overload_present{};
2018
+
2019
+ if (!is_overload_present.has_value())
2020
+ {
2021
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestConfirmationAsync", 1);
2022
+ }
2023
+
2024
+ if (!is_overload_present.value())
1703
2025
  {
1704
2026
  py::set_arg_count_version_error(1);
1705
2027
  return nullptr;
@@ -1730,7 +2052,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1730
2052
  {
1731
2053
  try
1732
2054
  {
1733
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestDisambiguationAsync", 1))
2055
+ static std::optional<bool> is_overload_present{};
2056
+
2057
+ if (!is_overload_present.has_value())
2058
+ {
2059
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"RequestDisambiguationAsync", 1);
2060
+ }
2061
+
2062
+ if (!is_overload_present.value())
1734
2063
  {
1735
2064
  py::set_arg_count_version_error(1);
1736
2065
  return nullptr;
@@ -1757,7 +2086,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1757
2086
  {
1758
2087
  try
1759
2088
  {
1760
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"Language"))
2089
+ static std::optional<bool> is_property_present{};
2090
+
2091
+ if (!is_property_present.has_value())
2092
+ {
2093
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"Language");
2094
+ }
2095
+
2096
+ if (!is_property_present.value())
1761
2097
  {
1762
2098
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1763
2099
  return nullptr;
@@ -1776,7 +2112,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1776
2112
  {
1777
2113
  try
1778
2114
  {
1779
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"VoiceCommandCompleted"))
2115
+ static std::optional<bool> is_event_present{};
2116
+
2117
+ if (!is_event_present.has_value())
2118
+ {
2119
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"VoiceCommandCompleted");
2120
+ }
2121
+
2122
+ if (!is_event_present.value())
1780
2123
  {
1781
2124
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1782
2125
  return nullptr;
@@ -1797,7 +2140,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1797
2140
  {
1798
2141
  try
1799
2142
  {
1800
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"VoiceCommandCompleted"))
2143
+ static std::optional<bool> is_event_present{};
2144
+
2145
+ if (!is_event_present.has_value())
2146
+ {
2147
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandServiceConnection", L"VoiceCommandCompleted");
2148
+ }
2149
+
2150
+ if (!is_event_present.value())
1801
2151
  {
1802
2152
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1803
2153
  return nullptr;
@@ -1915,7 +2265,7 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1915
2265
  {
1916
2266
  try
1917
2267
  {
1918
- winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage instance{ };
2268
+ winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage instance{};
1919
2269
  return py::wrap(instance, type);
1920
2270
  }
1921
2271
  catch (...)
@@ -1943,7 +2293,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1943
2293
  {
1944
2294
  try
1945
2295
  {
1946
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"SpokenMessage"))
2296
+ static std::optional<bool> is_property_present{};
2297
+
2298
+ if (!is_property_present.has_value())
2299
+ {
2300
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"SpokenMessage");
2301
+ }
2302
+
2303
+ if (!is_property_present.value())
1947
2304
  {
1948
2305
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1949
2306
  return nullptr;
@@ -1968,7 +2325,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1968
2325
 
1969
2326
  try
1970
2327
  {
1971
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"SpokenMessage"))
2328
+ static std::optional<bool> is_property_present{};
2329
+
2330
+ if (!is_property_present.has_value())
2331
+ {
2332
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"SpokenMessage");
2333
+ }
2334
+
2335
+ if (!is_property_present.value())
1972
2336
  {
1973
2337
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1974
2338
  return -1;
@@ -1990,7 +2354,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
1990
2354
  {
1991
2355
  try
1992
2356
  {
1993
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"DisplayMessage"))
2357
+ static std::optional<bool> is_property_present{};
2358
+
2359
+ if (!is_property_present.has_value())
2360
+ {
2361
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"DisplayMessage");
2362
+ }
2363
+
2364
+ if (!is_property_present.value())
1994
2365
  {
1995
2366
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1996
2367
  return nullptr;
@@ -2015,7 +2386,14 @@ namespace py::cpp::Windows::ApplicationModel::VoiceCommands
2015
2386
 
2016
2387
  try
2017
2388
  {
2018
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"DisplayMessage"))
2389
+ static std::optional<bool> is_property_present{};
2390
+
2391
+ if (!is_property_present.has_value())
2392
+ {
2393
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.VoiceCommands.VoiceCommandUserMessage", L"DisplayMessage");
2394
+ }
2395
+
2396
+ if (!is_property_present.value())
2019
2397
  {
2020
2398
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
2021
2399
  return -1;
@@ -2129,27 +2507,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_voicecommands(void) noexce
2129
2507
  return nullptr;
2130
2508
  }
2131
2509
 
2132
- if (py::register_python_type(module.get(), &type_spec_VoiceCommand, object_bases.get(), nullptr) == -1)
2510
+ py::pytype_handle VoiceCommand_type{py::register_python_type(module.get(), &type_spec_VoiceCommand, object_bases.get(), nullptr)};
2511
+ if (!VoiceCommand_type)
2133
2512
  {
2134
2513
  return nullptr;
2135
2514
  }
2136
2515
 
2137
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandCompletedEventArgs, object_bases.get(), nullptr) == -1)
2516
+ py::pytype_handle VoiceCommandCompletedEventArgs_type{py::register_python_type(module.get(), &type_spec_VoiceCommandCompletedEventArgs, object_bases.get(), nullptr)};
2517
+ if (!VoiceCommandCompletedEventArgs_type)
2138
2518
  {
2139
2519
  return nullptr;
2140
2520
  }
2141
2521
 
2142
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandConfirmationResult, object_bases.get(), nullptr) == -1)
2522
+ py::pytype_handle VoiceCommandConfirmationResult_type{py::register_python_type(module.get(), &type_spec_VoiceCommandConfirmationResult, object_bases.get(), nullptr)};
2523
+ if (!VoiceCommandConfirmationResult_type)
2143
2524
  {
2144
2525
  return nullptr;
2145
2526
  }
2146
2527
 
2147
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandContentTile, object_bases.get(), nullptr) == -1)
2528
+ py::pytype_handle VoiceCommandContentTile_type{py::register_python_type(module.get(), &type_spec_VoiceCommandContentTile, object_bases.get(), nullptr)};
2529
+ if (!VoiceCommandContentTile_type)
2148
2530
  {
2149
2531
  return nullptr;
2150
2532
  }
2151
2533
 
2152
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandDefinition, object_bases.get(), nullptr) == -1)
2534
+ py::pytype_handle VoiceCommandDefinition_type{py::register_python_type(module.get(), &type_spec_VoiceCommandDefinition, object_bases.get(), nullptr)};
2535
+ if (!VoiceCommandDefinition_type)
2153
2536
  {
2154
2537
  return nullptr;
2155
2538
  }
@@ -2160,12 +2543,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_voicecommands(void) noexce
2160
2543
  return nullptr;
2161
2544
  }
2162
2545
 
2163
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandDefinitionManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandDefinitionManager_Static.get())) == -1)
2546
+ py::pytype_handle VoiceCommandDefinitionManager_type{py::register_python_type(module.get(), &type_spec_VoiceCommandDefinitionManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandDefinitionManager_Static.get()))};
2547
+ if (!VoiceCommandDefinitionManager_type)
2164
2548
  {
2165
2549
  return nullptr;
2166
2550
  }
2167
2551
 
2168
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandDisambiguationResult, object_bases.get(), nullptr) == -1)
2552
+ py::pytype_handle VoiceCommandDisambiguationResult_type{py::register_python_type(module.get(), &type_spec_VoiceCommandDisambiguationResult, object_bases.get(), nullptr)};
2553
+ if (!VoiceCommandDisambiguationResult_type)
2169
2554
  {
2170
2555
  return nullptr;
2171
2556
  }
@@ -2176,7 +2561,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_voicecommands(void) noexce
2176
2561
  return nullptr;
2177
2562
  }
2178
2563
 
2179
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandResponse, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandResponse_Static.get())) == -1)
2564
+ py::pytype_handle VoiceCommandResponse_type{py::register_python_type(module.get(), &type_spec_VoiceCommandResponse, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandResponse_Static.get()))};
2565
+ if (!VoiceCommandResponse_type)
2180
2566
  {
2181
2567
  return nullptr;
2182
2568
  }
@@ -2187,12 +2573,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_voicecommands(void) noexce
2187
2573
  return nullptr;
2188
2574
  }
2189
2575
 
2190
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandServiceConnection, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandServiceConnection_Static.get())) == -1)
2576
+ py::pytype_handle VoiceCommandServiceConnection_type{py::register_python_type(module.get(), &type_spec_VoiceCommandServiceConnection, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_VoiceCommandServiceConnection_Static.get()))};
2577
+ if (!VoiceCommandServiceConnection_type)
2191
2578
  {
2192
2579
  return nullptr;
2193
2580
  }
2194
2581
 
2195
- if (py::register_python_type(module.get(), &type_spec_VoiceCommandUserMessage, object_bases.get(), nullptr) == -1)
2582
+ py::pytype_handle VoiceCommandUserMessage_type{py::register_python_type(module.get(), &type_spec_VoiceCommandUserMessage, object_bases.get(), nullptr)};
2583
+ if (!VoiceCommandUserMessage_type)
2196
2584
  {
2197
2585
  return nullptr;
2198
2586
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.2.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.VoiceCommands
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Globalization[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Media.SpeechRecognition[all]==2.1.0; extra == "all"
22
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Globalization[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Media.SpeechRecognition[all]==2.2.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
23
23
 
24
24
  <!-- warning: Please don't edit this file. It was automatically generated. -->
25
25
 
@@ -0,0 +1,9 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.AppService[all]==2.2.0
5
+ winrt-Windows.Foundation[all]==2.2.0
6
+ winrt-Windows.Foundation.Collections[all]==2.2.0
7
+ winrt-Windows.Globalization[all]==2.2.0
8
+ winrt-Windows.Media.SpeechRecognition[all]==2.2.0
9
+ winrt-Windows.Storage[all]==2.2.0
@@ -1,8 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.ApplicationModel.AppService[all]==2.1.0
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Foundation.Collections[all]==2.1.0
6
- winrt-Windows.Globalization[all]==2.1.0
7
- winrt-Windows.Media.SpeechRecognition[all]==2.1.0
8
- winrt-Windows.Storage[all]==2.1.0
@@ -1,9 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.AppService[all]==2.1.0
5
- winrt-Windows.Foundation[all]==2.1.0
6
- winrt-Windows.Foundation.Collections[all]==2.1.0
7
- winrt-Windows.Globalization[all]==2.1.0
8
- winrt-Windows.Media.SpeechRecognition[all]==2.1.0
9
- winrt-Windows.Storage[all]==2.1.0