win32more-Microsoft.WindowsAppSDK 0.6.1.7.250310001__py2.py3-none-any.whl → 0.7.1.7.251107005__py2.py3-none-any.whl
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.
- win32more/Microsoft/Foundation/__init__.py +1 -1
- win32more/Microsoft/Graphics/DirectX/__init__.py +1 -1
- win32more/Microsoft/Graphics/Display/__init__.py +9 -9
- win32more/Microsoft/Graphics/Imaging/__init__.py +77 -0
- win32more/Microsoft/Security/Authentication/OAuth/__init__.py +111 -111
- win32more/Microsoft/UI/Composition/Core/__init__.py +3 -3
- win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +1 -1
- win32more/Microsoft/UI/Composition/Effects/__init__.py +3 -3
- win32more/Microsoft/UI/Composition/Interactions/__init__.py +1 -1
- win32more/Microsoft/UI/Composition/Scenes/__init__.py +10 -10
- win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +8 -8
- win32more/Microsoft/UI/Composition/__init__.py +134 -134
- win32more/Microsoft/UI/Content/__init__.py +39 -39
- win32more/Microsoft/UI/Dispatching/__init__.py +11 -11
- win32more/Microsoft/UI/Input/DragDrop/__init__.py +7 -7
- win32more/Microsoft/UI/Input/Interop/__init__.py +1 -1
- win32more/Microsoft/UI/Input/__init__.py +103 -99
- win32more/Microsoft/UI/System/__init__.py +5 -5
- win32more/Microsoft/UI/Text/__init__.py +30 -30
- win32more/Microsoft/UI/Windowing/__init__.py +27 -27
- win32more/Microsoft/UI/Xaml/Automation/Peers/__init__.py +56 -55
- win32more/Microsoft/UI/Xaml/Automation/Provider/__init__.py +19 -19
- win32more/Microsoft/UI/Xaml/Automation/Text/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/Automation/__init__.py +41 -41
- win32more/Microsoft/UI/Xaml/Controls/AnimatedVisuals/__init__.py +17 -17
- win32more/Microsoft/UI/Xaml/Controls/Primitives/__init__.py +108 -107
- win32more/Microsoft/UI/Xaml/Controls/__init__.py +744 -744
- win32more/Microsoft/UI/Xaml/Data/__init__.py +31 -30
- win32more/Microsoft/UI/Xaml/Documents/__init__.py +38 -37
- win32more/Microsoft/UI/Xaml/Hosting/__init__.py +7 -7
- win32more/Microsoft/UI/Xaml/Input/__init__.py +38 -31
- win32more/Microsoft/UI/Xaml/Interop/__init__.py +3 -3
- win32more/Microsoft/UI/Xaml/Markup/__init__.py +19 -17
- win32more/Microsoft/UI/Xaml/Media/Animation/__init__.py +111 -109
- win32more/Microsoft/UI/Xaml/Media/Imaging/__init__.py +11 -11
- win32more/Microsoft/UI/Xaml/Media/Media3D/__init__.py +2 -1
- win32more/Microsoft/UI/Xaml/Media/__init__.py +34 -28
- win32more/Microsoft/UI/Xaml/Navigation/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/Printing/__init__.py +7 -7
- win32more/Microsoft/UI/Xaml/Resources/__init__.py +3 -3
- win32more/Microsoft/UI/Xaml/Shapes/__init__.py +1 -1
- win32more/Microsoft/UI/Xaml/XamlTypeInfo/__init__.py +2 -2
- win32more/Microsoft/UI/Xaml/__init__.py +190 -186
- win32more/Microsoft/UI/__init__.py +8 -5
- win32more/Microsoft/Windows/AI/ContentSafety/__init__.py +197 -0
- win32more/Microsoft/Windows/AI/Imaging/__init__.py +366 -0
- win32more/Microsoft/Windows/AI/Text/__init__.py +261 -0
- win32more/Microsoft/Windows/AI/__init__.py +49 -0
- win32more/Microsoft/Windows/AppLifecycle/__init__.py +21 -21
- win32more/Microsoft/Windows/AppNotifications/Builder/__init__.py +99 -99
- win32more/Microsoft/Windows/AppNotifications/__init__.py +45 -45
- win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +1 -1
- win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +7 -7
- win32more/Microsoft/Windows/ApplicationModel/DynamicDependency/__init__.py +22 -21
- win32more/Microsoft/Windows/ApplicationModel/Resources/__init__.py +59 -59
- win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +32 -7
- win32more/Microsoft/Windows/BadgeNotifications/__init__.py +1 -1
- win32more/Microsoft/Windows/Globalization/__init__.py +9 -9
- win32more/Microsoft/Windows/Management/Deployment/__init__.py +86 -85
- win32more/Microsoft/Windows/Media/Capture/__init__.py +1 -1
- win32more/Microsoft/Windows/PushNotifications/__init__.py +6 -5
- win32more/Microsoft/Windows/Security/AccessControl/__init__.py +7 -6
- win32more/Microsoft/Windows/Storage/__init__.py +27 -27
- win32more/Microsoft/Windows/System/Power/__init__.py +23 -12
- win32more/Microsoft/Windows/System/__init__.py +15 -15
- win32more/Microsoft/Windows/Widgets/Feeds/Providers/__init__.py +65 -65
- win32more/Microsoft/Windows/Widgets/Notifications/__init__.py +25 -25
- win32more/Microsoft/Windows/Widgets/Providers/__init__.py +91 -67
- win32more/Microsoft/Windows/Widgets/__init__.py +2 -2
- win32more/Microsoft/Windows/Workloads/__init__.py +11 -0
- win32more/appsdk/versioninfo.py +1 -1
- win32more/dll/arm64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/arm64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more/dll/x64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/x64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more/dll/x86/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
- win32more/dll/x86/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/METADATA +6 -0
- win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/RECORD +81 -0
- {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +1 -1
- win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/METADATA +0 -6
- win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/RECORD +0 -75
- {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from win32more._prelude import *
|
|
3
|
+
import win32more.Microsoft.Windows.AI
|
|
4
|
+
import win32more.Microsoft.Windows.AI.ContentSafety
|
|
5
|
+
import win32more.Microsoft.Windows.AI.Text
|
|
6
|
+
import win32more.Windows.Foundation
|
|
7
|
+
class ILanguageModel(ComPtr):
|
|
8
|
+
extends: IInspectable
|
|
9
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ILanguageModel'
|
|
10
|
+
_iid_ = Guid('{6331c629-8c86-5bfe-8c4e-9ca5573cc14b}')
|
|
11
|
+
class ILanguageModelContext(ComPtr):
|
|
12
|
+
extends: IInspectable
|
|
13
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ILanguageModelContext'
|
|
14
|
+
_iid_ = Guid('{518b305c-7b69-5a33-8129-d47d6b8eec4e}')
|
|
15
|
+
class ILanguageModelOptions(ComPtr):
|
|
16
|
+
extends: IInspectable
|
|
17
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ILanguageModelOptions'
|
|
18
|
+
_iid_ = Guid('{7f380003-5a09-5f1f-afb0-aa483e3670cc}')
|
|
19
|
+
@winrt_commethod(6)
|
|
20
|
+
def get_Temperature(self) -> Single: ...
|
|
21
|
+
@winrt_commethod(7)
|
|
22
|
+
def put_Temperature(self, value: Single) -> Void: ...
|
|
23
|
+
@winrt_commethod(8)
|
|
24
|
+
def get_TopP(self) -> Single: ...
|
|
25
|
+
@winrt_commethod(9)
|
|
26
|
+
def put_TopP(self, value: Single) -> Void: ...
|
|
27
|
+
@winrt_commethod(10)
|
|
28
|
+
def get_TopK(self) -> UInt32: ...
|
|
29
|
+
@winrt_commethod(11)
|
|
30
|
+
def put_TopK(self, value: UInt32) -> Void: ...
|
|
31
|
+
@winrt_commethod(12)
|
|
32
|
+
def get_ContentFilterOptions(self) -> win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions: ...
|
|
33
|
+
@winrt_commethod(13)
|
|
34
|
+
def put_ContentFilterOptions(self, value: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> Void: ...
|
|
35
|
+
ContentFilterOptions = property(get_ContentFilterOptions, put_ContentFilterOptions)
|
|
36
|
+
Temperature = property(get_Temperature, put_Temperature)
|
|
37
|
+
TopK = property(get_TopK, put_TopK)
|
|
38
|
+
TopP = property(get_TopP, put_TopP)
|
|
39
|
+
class ILanguageModelResponseResult(ComPtr):
|
|
40
|
+
extends: IInspectable
|
|
41
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ILanguageModelResponseResult'
|
|
42
|
+
_iid_ = Guid('{3a256fff-a426-5d3b-8e4b-3ac84162471e}')
|
|
43
|
+
@winrt_commethod(6)
|
|
44
|
+
def get_Text(self) -> hstr: ...
|
|
45
|
+
@winrt_commethod(7)
|
|
46
|
+
def get_Status(self) -> win32more.Microsoft.Windows.AI.Text.LanguageModelResponseStatus: ...
|
|
47
|
+
@winrt_commethod(8)
|
|
48
|
+
def get_ExtendedError(self) -> win32more.Windows.Foundation.HResult: ...
|
|
49
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
50
|
+
Status = property(get_Status, None)
|
|
51
|
+
Text = property(get_Text, None)
|
|
52
|
+
class ILanguageModelStatics(ComPtr):
|
|
53
|
+
extends: IInspectable
|
|
54
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ILanguageModelStatics'
|
|
55
|
+
_iid_ = Guid('{8f18f9af-6095-553b-8d9d-6bcc98026546}')
|
|
56
|
+
@winrt_commethod(6)
|
|
57
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
58
|
+
@winrt_commethod(7)
|
|
59
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
60
|
+
@winrt_commethod(8)
|
|
61
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Text.LanguageModel]: ...
|
|
62
|
+
class ITextRewriter(ComPtr):
|
|
63
|
+
extends: IInspectable
|
|
64
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextRewriter'
|
|
65
|
+
_iid_ = Guid('{eb1e7cf0-e110-506c-b0ea-7a288d8e7778}')
|
|
66
|
+
@winrt_commethod(6)
|
|
67
|
+
def RewriteAsync(self, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
68
|
+
class ITextRewriterFactory(ComPtr):
|
|
69
|
+
extends: IInspectable
|
|
70
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextRewriterFactory'
|
|
71
|
+
_iid_ = Guid('{f452e60d-ef50-5bc9-b483-217d5b4e7151}')
|
|
72
|
+
@winrt_commethod(6)
|
|
73
|
+
def CreateInstance(self, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextRewriter: ...
|
|
74
|
+
class ITextSummarizer(ComPtr):
|
|
75
|
+
extends: IInspectable
|
|
76
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextSummarizer'
|
|
77
|
+
_iid_ = Guid('{eef548c5-d7bc-50be-a8ab-29e241b78bd1}')
|
|
78
|
+
@winrt_commethod(6)
|
|
79
|
+
def SummarizeAsync(self, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
80
|
+
@winrt_commethod(7)
|
|
81
|
+
def SummarizeParagraphAsync(self, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
82
|
+
class ITextSummarizerFactory(ComPtr):
|
|
83
|
+
extends: IInspectable
|
|
84
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextSummarizerFactory'
|
|
85
|
+
_iid_ = Guid('{b6a75913-4a1e-59e7-856a-ae7ab2383864}')
|
|
86
|
+
@winrt_commethod(6)
|
|
87
|
+
def CreateInstance(self, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextSummarizer: ...
|
|
88
|
+
class ITextToTableConverter(ComPtr):
|
|
89
|
+
extends: IInspectable
|
|
90
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextToTableConverter'
|
|
91
|
+
_iid_ = Guid('{a008d9ad-25ce-5a6b-9ceb-d8e95d04e10b}')
|
|
92
|
+
@winrt_commethod(6)
|
|
93
|
+
def ConvertAsync(self, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.TextToTableResponseResult, hstr]: ...
|
|
94
|
+
class ITextToTableConverterFactory(ComPtr):
|
|
95
|
+
extends: IInspectable
|
|
96
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextToTableConverterFactory'
|
|
97
|
+
_iid_ = Guid('{bb84cbb5-19c8-5857-b65d-705aa1486404}')
|
|
98
|
+
@winrt_commethod(6)
|
|
99
|
+
def CreateInstance(self, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextToTableConverter: ...
|
|
100
|
+
class ITextToTableResponseResult(ComPtr):
|
|
101
|
+
extends: IInspectable
|
|
102
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextToTableResponseResult'
|
|
103
|
+
_iid_ = Guid('{391fbf11-59cd-575d-834a-9ef823116f98}')
|
|
104
|
+
@winrt_commethod(6)
|
|
105
|
+
def GetRows(self) -> ReceiveArray[win32more.Microsoft.Windows.AI.Text.TextToTableRow]: ...
|
|
106
|
+
@winrt_commethod(7)
|
|
107
|
+
def get_Status(self) -> win32more.Microsoft.Windows.AI.Text.LanguageModelResponseStatus: ...
|
|
108
|
+
@winrt_commethod(8)
|
|
109
|
+
def get_ExtendedError(self) -> win32more.Windows.Foundation.HResult: ...
|
|
110
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
111
|
+
Status = property(get_Status, None)
|
|
112
|
+
class ITextToTableRow(ComPtr):
|
|
113
|
+
extends: IInspectable
|
|
114
|
+
_classid_ = 'Microsoft.Windows.AI.Text.ITextToTableRow'
|
|
115
|
+
_iid_ = Guid('{036294fe-e53c-5e66-93d2-7c92338db881}')
|
|
116
|
+
@winrt_commethod(6)
|
|
117
|
+
def GetColumns(self) -> ReceiveArray[hstr]: ...
|
|
118
|
+
class LanguageModel(ComPtr):
|
|
119
|
+
extends: IInspectable
|
|
120
|
+
implements: Tuple[ContextManagerProtocol]
|
|
121
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ILanguageModel
|
|
122
|
+
_classid_ = 'Microsoft.Windows.AI.Text.LanguageModel'
|
|
123
|
+
@winrt_mixinmethod
|
|
124
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
125
|
+
@winrt_classmethod
|
|
126
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Text.ILanguageModelStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
127
|
+
@winrt_classmethod
|
|
128
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Text.ILanguageModelStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
129
|
+
@winrt_classmethod
|
|
130
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Text.ILanguageModelStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Text.LanguageModel]: ...
|
|
131
|
+
class LanguageModelContext(ComPtr):
|
|
132
|
+
extends: IInspectable
|
|
133
|
+
implements: Tuple[ContextManagerProtocol]
|
|
134
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ILanguageModelContext
|
|
135
|
+
_classid_ = 'Microsoft.Windows.AI.Text.LanguageModelContext'
|
|
136
|
+
@winrt_mixinmethod
|
|
137
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
138
|
+
LanguageModelContract: UInt32 = 131072
|
|
139
|
+
class LanguageModelOptions(ComPtr):
|
|
140
|
+
extends: IInspectable
|
|
141
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions
|
|
142
|
+
_classid_ = 'Microsoft.Windows.AI.Text.LanguageModelOptions'
|
|
143
|
+
def __init__(self, *args, **kwargs):
|
|
144
|
+
if kwargs:
|
|
145
|
+
super().__init__(**kwargs)
|
|
146
|
+
elif len(args) == 0:
|
|
147
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Text.LanguageModelOptions.CreateInstance(*args))
|
|
148
|
+
else:
|
|
149
|
+
raise ValueError('no matched constructor')
|
|
150
|
+
@winrt_activatemethod
|
|
151
|
+
def CreateInstance(cls) -> win32more.Microsoft.Windows.AI.Text.LanguageModelOptions: ...
|
|
152
|
+
@winrt_mixinmethod
|
|
153
|
+
def get_Temperature(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions) -> Single: ...
|
|
154
|
+
@winrt_mixinmethod
|
|
155
|
+
def put_Temperature(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions, value: Single) -> Void: ...
|
|
156
|
+
@winrt_mixinmethod
|
|
157
|
+
def get_TopP(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions) -> Single: ...
|
|
158
|
+
@winrt_mixinmethod
|
|
159
|
+
def put_TopP(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions, value: Single) -> Void: ...
|
|
160
|
+
@winrt_mixinmethod
|
|
161
|
+
def get_TopK(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions) -> UInt32: ...
|
|
162
|
+
@winrt_mixinmethod
|
|
163
|
+
def put_TopK(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions, value: UInt32) -> Void: ...
|
|
164
|
+
@winrt_mixinmethod
|
|
165
|
+
def get_ContentFilterOptions(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions) -> win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions: ...
|
|
166
|
+
@winrt_mixinmethod
|
|
167
|
+
def put_ContentFilterOptions(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelOptions, value: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> Void: ...
|
|
168
|
+
ContentFilterOptions = property(get_ContentFilterOptions, put_ContentFilterOptions)
|
|
169
|
+
Temperature = property(get_Temperature, put_Temperature)
|
|
170
|
+
TopK = property(get_TopK, put_TopK)
|
|
171
|
+
TopP = property(get_TopP, put_TopP)
|
|
172
|
+
class LanguageModelResponseResult(ComPtr):
|
|
173
|
+
extends: IInspectable
|
|
174
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ILanguageModelResponseResult
|
|
175
|
+
_classid_ = 'Microsoft.Windows.AI.Text.LanguageModelResponseResult'
|
|
176
|
+
@winrt_mixinmethod
|
|
177
|
+
def get_Text(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelResponseResult) -> hstr: ...
|
|
178
|
+
@winrt_mixinmethod
|
|
179
|
+
def get_Status(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelResponseResult) -> win32more.Microsoft.Windows.AI.Text.LanguageModelResponseStatus: ...
|
|
180
|
+
@winrt_mixinmethod
|
|
181
|
+
def get_ExtendedError(self: win32more.Microsoft.Windows.AI.Text.ILanguageModelResponseResult) -> win32more.Windows.Foundation.HResult: ...
|
|
182
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
183
|
+
Status = property(get_Status, None)
|
|
184
|
+
Text = property(get_Text, None)
|
|
185
|
+
class LanguageModelResponseStatus(Enum, Int32):
|
|
186
|
+
Complete = 0
|
|
187
|
+
InProgress = 1
|
|
188
|
+
BlockedByPolicy = 2
|
|
189
|
+
PromptLargerThanContext = 3
|
|
190
|
+
PromptBlockedByContentModeration = 4
|
|
191
|
+
ResponseBlockedByContentModeration = 5
|
|
192
|
+
Error = 6
|
|
193
|
+
TextIntelligenceContract: UInt32 = 196608
|
|
194
|
+
class TextRewriter(ComPtr):
|
|
195
|
+
extends: IInspectable
|
|
196
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ITextRewriter
|
|
197
|
+
_classid_ = 'Microsoft.Windows.AI.Text.TextRewriter'
|
|
198
|
+
def __init__(self, *args, **kwargs):
|
|
199
|
+
if kwargs:
|
|
200
|
+
super().__init__(**kwargs)
|
|
201
|
+
elif len(args) == 1:
|
|
202
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Text.TextRewriter.CreateInstance(*args))
|
|
203
|
+
else:
|
|
204
|
+
raise ValueError('no matched constructor')
|
|
205
|
+
@winrt_factorymethod
|
|
206
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.Text.ITextRewriterFactory, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextRewriter: ...
|
|
207
|
+
@winrt_mixinmethod
|
|
208
|
+
def RewriteAsync(self: win32more.Microsoft.Windows.AI.Text.ITextRewriter, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
209
|
+
class TextSummarizer(ComPtr):
|
|
210
|
+
extends: IInspectable
|
|
211
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ITextSummarizer
|
|
212
|
+
_classid_ = 'Microsoft.Windows.AI.Text.TextSummarizer'
|
|
213
|
+
def __init__(self, *args, **kwargs):
|
|
214
|
+
if kwargs:
|
|
215
|
+
super().__init__(**kwargs)
|
|
216
|
+
elif len(args) == 1:
|
|
217
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Text.TextSummarizer.CreateInstance(*args))
|
|
218
|
+
else:
|
|
219
|
+
raise ValueError('no matched constructor')
|
|
220
|
+
@winrt_factorymethod
|
|
221
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.Text.ITextSummarizerFactory, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextSummarizer: ...
|
|
222
|
+
@winrt_mixinmethod
|
|
223
|
+
def SummarizeAsync(self: win32more.Microsoft.Windows.AI.Text.ITextSummarizer, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
224
|
+
@winrt_mixinmethod
|
|
225
|
+
def SummarizeParagraphAsync(self: win32more.Microsoft.Windows.AI.Text.ITextSummarizer, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.LanguageModelResponseResult, hstr]: ...
|
|
226
|
+
class TextToTableConverter(ComPtr):
|
|
227
|
+
extends: IInspectable
|
|
228
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ITextToTableConverter
|
|
229
|
+
_classid_ = 'Microsoft.Windows.AI.Text.TextToTableConverter'
|
|
230
|
+
def __init__(self, *args, **kwargs):
|
|
231
|
+
if kwargs:
|
|
232
|
+
super().__init__(**kwargs)
|
|
233
|
+
elif len(args) == 1:
|
|
234
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Text.TextToTableConverter.CreateInstance(*args))
|
|
235
|
+
else:
|
|
236
|
+
raise ValueError('no matched constructor')
|
|
237
|
+
@winrt_factorymethod
|
|
238
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.Text.ITextToTableConverterFactory, languageModel: win32more.Microsoft.Windows.AI.Text.LanguageModel) -> win32more.Microsoft.Windows.AI.Text.TextToTableConverter: ...
|
|
239
|
+
@winrt_mixinmethod
|
|
240
|
+
def ConvertAsync(self: win32more.Microsoft.Windows.AI.Text.ITextToTableConverter, text: hstr) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Text.TextToTableResponseResult, hstr]: ...
|
|
241
|
+
class TextToTableResponseResult(ComPtr):
|
|
242
|
+
extends: IInspectable
|
|
243
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ITextToTableResponseResult
|
|
244
|
+
_classid_ = 'Microsoft.Windows.AI.Text.TextToTableResponseResult'
|
|
245
|
+
@winrt_mixinmethod
|
|
246
|
+
def GetRows(self: win32more.Microsoft.Windows.AI.Text.ITextToTableResponseResult) -> ReceiveArray[win32more.Microsoft.Windows.AI.Text.TextToTableRow]: ...
|
|
247
|
+
@winrt_mixinmethod
|
|
248
|
+
def get_Status(self: win32more.Microsoft.Windows.AI.Text.ITextToTableResponseResult) -> win32more.Microsoft.Windows.AI.Text.LanguageModelResponseStatus: ...
|
|
249
|
+
@winrt_mixinmethod
|
|
250
|
+
def get_ExtendedError(self: win32more.Microsoft.Windows.AI.Text.ITextToTableResponseResult) -> win32more.Windows.Foundation.HResult: ...
|
|
251
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
252
|
+
Status = property(get_Status, None)
|
|
253
|
+
class TextToTableRow(ComPtr):
|
|
254
|
+
extends: IInspectable
|
|
255
|
+
default_interface: win32more.Microsoft.Windows.AI.Text.ITextToTableRow
|
|
256
|
+
_classid_ = 'Microsoft.Windows.AI.Text.TextToTableRow'
|
|
257
|
+
@winrt_mixinmethod
|
|
258
|
+
def GetColumns(self: win32more.Microsoft.Windows.AI.Text.ITextToTableRow) -> ReceiveArray[hstr]: ...
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
make_ready(__name__)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from win32more._prelude import *
|
|
3
|
+
import win32more.Microsoft.Windows.AI
|
|
4
|
+
import win32more.Windows.Foundation
|
|
5
|
+
AIFeatureReadyContract: UInt32 = 65536
|
|
6
|
+
class AIFeatureReadyResult(ComPtr):
|
|
7
|
+
extends: IInspectable
|
|
8
|
+
default_interface: win32more.Microsoft.Windows.AI.IAIFeatureReadyResult
|
|
9
|
+
_classid_ = 'Microsoft.Windows.AI.AIFeatureReadyResult'
|
|
10
|
+
@winrt_mixinmethod
|
|
11
|
+
def get_Error(self: win32more.Microsoft.Windows.AI.IAIFeatureReadyResult) -> win32more.Windows.Foundation.HResult: ...
|
|
12
|
+
@winrt_mixinmethod
|
|
13
|
+
def get_ErrorDisplayText(self: win32more.Microsoft.Windows.AI.IAIFeatureReadyResult) -> hstr: ...
|
|
14
|
+
@winrt_mixinmethod
|
|
15
|
+
def get_ExtendedError(self: win32more.Microsoft.Windows.AI.IAIFeatureReadyResult) -> win32more.Windows.Foundation.HResult: ...
|
|
16
|
+
@winrt_mixinmethod
|
|
17
|
+
def get_Status(self: win32more.Microsoft.Windows.AI.IAIFeatureReadyResult) -> win32more.Microsoft.Windows.AI.AIFeatureReadyResultState: ...
|
|
18
|
+
Error = property(get_Error, None)
|
|
19
|
+
ErrorDisplayText = property(get_ErrorDisplayText, None)
|
|
20
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
21
|
+
Status = property(get_Status, None)
|
|
22
|
+
class AIFeatureReadyResultState(Enum, Int32):
|
|
23
|
+
InProgress = 0
|
|
24
|
+
Success = 1
|
|
25
|
+
Failure = 2
|
|
26
|
+
class AIFeatureReadyState(Enum, Int32):
|
|
27
|
+
Ready = 0
|
|
28
|
+
NotReady = 1
|
|
29
|
+
NotSupportedOnCurrentSystem = 2
|
|
30
|
+
DisabledByUser = 3
|
|
31
|
+
class IAIFeatureReadyResult(ComPtr):
|
|
32
|
+
extends: IInspectable
|
|
33
|
+
_classid_ = 'Microsoft.Windows.AI.IAIFeatureReadyResult'
|
|
34
|
+
_iid_ = Guid('{936a78a6-c242-5937-9814-e512d4193a6d}')
|
|
35
|
+
@winrt_commethod(6)
|
|
36
|
+
def get_Error(self) -> win32more.Windows.Foundation.HResult: ...
|
|
37
|
+
@winrt_commethod(7)
|
|
38
|
+
def get_ErrorDisplayText(self) -> hstr: ...
|
|
39
|
+
@winrt_commethod(8)
|
|
40
|
+
def get_ExtendedError(self) -> win32more.Windows.Foundation.HResult: ...
|
|
41
|
+
@winrt_commethod(9)
|
|
42
|
+
def get_Status(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyResultState: ...
|
|
43
|
+
Error = property(get_Error, None)
|
|
44
|
+
ErrorDisplayText = property(get_ErrorDisplayText, None)
|
|
45
|
+
ExtendedError = property(get_ExtendedError, None)
|
|
46
|
+
Status = property(get_Status, None)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
make_ready(__name__)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
-
from win32more.
|
|
2
|
+
from win32more._prelude import *
|
|
3
3
|
import win32more.Microsoft.Windows.AppLifecycle
|
|
4
4
|
import win32more.Windows.ApplicationModel.Core
|
|
5
5
|
import win32more.Windows.Foundation
|
|
@@ -8,17 +8,17 @@ class ActivationRegistrationManager(ComPtr):
|
|
|
8
8
|
extends: IInspectable
|
|
9
9
|
_classid_ = 'Microsoft.Windows.AppLifecycle.ActivationRegistrationManager'
|
|
10
10
|
@winrt_classmethod
|
|
11
|
-
def RegisterForFileTypeActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, supportedFileTypes: PassArray[
|
|
11
|
+
def RegisterForFileTypeActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, supportedFileTypes: PassArray[hstr], logo: hstr, displayName: hstr, supportedVerbs: PassArray[hstr], exePath: hstr) -> Void: ...
|
|
12
12
|
@winrt_classmethod
|
|
13
|
-
def RegisterForProtocolActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, scheme:
|
|
13
|
+
def RegisterForProtocolActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, scheme: hstr, logo: hstr, displayName: hstr, exePath: hstr) -> Void: ...
|
|
14
14
|
@winrt_classmethod
|
|
15
|
-
def RegisterForStartupActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, taskId:
|
|
15
|
+
def RegisterForStartupActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, taskId: hstr, exePath: hstr) -> Void: ...
|
|
16
16
|
@winrt_classmethod
|
|
17
|
-
def UnregisterForFileTypeActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, fileTypes: PassArray[
|
|
17
|
+
def UnregisterForFileTypeActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, fileTypes: PassArray[hstr], exePath: hstr) -> Void: ...
|
|
18
18
|
@winrt_classmethod
|
|
19
|
-
def UnregisterForProtocolActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, scheme:
|
|
19
|
+
def UnregisterForProtocolActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, scheme: hstr, exePath: hstr) -> Void: ...
|
|
20
20
|
@winrt_classmethod
|
|
21
|
-
def UnregisterForStartupActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, taskId:
|
|
21
|
+
def UnregisterForStartupActivation(cls: win32more.Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics, taskId: hstr) -> Void: ...
|
|
22
22
|
class AppActivationArguments(ComPtr):
|
|
23
23
|
extends: IInspectable
|
|
24
24
|
default_interface: win32more.Microsoft.Windows.AppLifecycle.IAppActivationArguments
|
|
@@ -44,23 +44,23 @@ class AppInstance(ComPtr):
|
|
|
44
44
|
@winrt_mixinmethod
|
|
45
45
|
def remove_Activated(self: win32more.Microsoft.Windows.AppLifecycle.IAppInstance, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
|
|
46
46
|
@winrt_mixinmethod
|
|
47
|
-
def get_Key(self: win32more.Microsoft.Windows.AppLifecycle.IAppInstance) ->
|
|
47
|
+
def get_Key(self: win32more.Microsoft.Windows.AppLifecycle.IAppInstance) -> hstr: ...
|
|
48
48
|
@winrt_mixinmethod
|
|
49
49
|
def get_IsCurrent(self: win32more.Microsoft.Windows.AppLifecycle.IAppInstance) -> Boolean: ...
|
|
50
50
|
@winrt_mixinmethod
|
|
51
51
|
def get_ProcessId(self: win32more.Microsoft.Windows.AppLifecycle.IAppInstance) -> UInt32: ...
|
|
52
52
|
@winrt_classmethod
|
|
53
|
-
def Restart(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics2, arguments:
|
|
53
|
+
def Restart(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics2, arguments: hstr) -> win32more.Windows.ApplicationModel.Core.AppRestartFailureReason: ...
|
|
54
54
|
@winrt_classmethod
|
|
55
55
|
def GetCurrent(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics) -> win32more.Microsoft.Windows.AppLifecycle.AppInstance: ...
|
|
56
56
|
@winrt_classmethod
|
|
57
57
|
def GetInstances(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.Windows.AppLifecycle.AppInstance]: ...
|
|
58
58
|
@winrt_classmethod
|
|
59
|
-
def FindOrRegisterForKey(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics, key:
|
|
59
|
+
def FindOrRegisterForKey(cls: win32more.Microsoft.Windows.AppLifecycle.IAppInstanceStatics, key: hstr) -> win32more.Microsoft.Windows.AppLifecycle.AppInstance: ...
|
|
60
60
|
IsCurrent = property(get_IsCurrent, None)
|
|
61
61
|
Key = property(get_Key, None)
|
|
62
62
|
ProcessId = property(get_ProcessId, None)
|
|
63
|
-
Activated = event()
|
|
63
|
+
Activated = event(add_Activated, remove_Activated)
|
|
64
64
|
AppLifecycleContract: UInt32 = 131072
|
|
65
65
|
class ExtendedActivationKind(Enum, Int32):
|
|
66
66
|
Launch = 0
|
|
@@ -114,17 +114,17 @@ class IActivationRegistrationManagerStatics(ComPtr):
|
|
|
114
114
|
_classid_ = 'Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics'
|
|
115
115
|
_iid_ = Guid('{5ac4e92e-017b-5d68-8198-f68636ab99d3}')
|
|
116
116
|
@winrt_commethod(6)
|
|
117
|
-
def RegisterForFileTypeActivation(self, supportedFileTypes: PassArray[
|
|
117
|
+
def RegisterForFileTypeActivation(self, supportedFileTypes: PassArray[hstr], logo: hstr, displayName: hstr, supportedVerbs: PassArray[hstr], exePath: hstr) -> Void: ...
|
|
118
118
|
@winrt_commethod(7)
|
|
119
|
-
def RegisterForProtocolActivation(self, scheme:
|
|
119
|
+
def RegisterForProtocolActivation(self, scheme: hstr, logo: hstr, displayName: hstr, exePath: hstr) -> Void: ...
|
|
120
120
|
@winrt_commethod(8)
|
|
121
|
-
def RegisterForStartupActivation(self, taskId:
|
|
121
|
+
def RegisterForStartupActivation(self, taskId: hstr, exePath: hstr) -> Void: ...
|
|
122
122
|
@winrt_commethod(9)
|
|
123
|
-
def UnregisterForFileTypeActivation(self, fileTypes: PassArray[
|
|
123
|
+
def UnregisterForFileTypeActivation(self, fileTypes: PassArray[hstr], exePath: hstr) -> Void: ...
|
|
124
124
|
@winrt_commethod(10)
|
|
125
|
-
def UnregisterForProtocolActivation(self, scheme:
|
|
125
|
+
def UnregisterForProtocolActivation(self, scheme: hstr, exePath: hstr) -> Void: ...
|
|
126
126
|
@winrt_commethod(11)
|
|
127
|
-
def UnregisterForStartupActivation(self, taskId:
|
|
127
|
+
def UnregisterForStartupActivation(self, taskId: hstr) -> Void: ...
|
|
128
128
|
class IAppActivationArguments(ComPtr):
|
|
129
129
|
extends: IInspectable
|
|
130
130
|
_classid_ = 'Microsoft.Windows.AppLifecycle.IAppActivationArguments'
|
|
@@ -150,7 +150,7 @@ class IAppInstance(ComPtr):
|
|
|
150
150
|
@winrt_commethod(10)
|
|
151
151
|
def remove_Activated(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
|
|
152
152
|
@winrt_commethod(11)
|
|
153
|
-
def get_Key(self) ->
|
|
153
|
+
def get_Key(self) -> hstr: ...
|
|
154
154
|
@winrt_commethod(12)
|
|
155
155
|
def get_IsCurrent(self) -> Boolean: ...
|
|
156
156
|
@winrt_commethod(13)
|
|
@@ -158,7 +158,7 @@ class IAppInstance(ComPtr):
|
|
|
158
158
|
IsCurrent = property(get_IsCurrent, None)
|
|
159
159
|
Key = property(get_Key, None)
|
|
160
160
|
ProcessId = property(get_ProcessId, None)
|
|
161
|
-
Activated = event()
|
|
161
|
+
Activated = event(add_Activated, remove_Activated)
|
|
162
162
|
class IAppInstanceStatics(ComPtr):
|
|
163
163
|
extends: IInspectable
|
|
164
164
|
_classid_ = 'Microsoft.Windows.AppLifecycle.IAppInstanceStatics'
|
|
@@ -168,13 +168,13 @@ class IAppInstanceStatics(ComPtr):
|
|
|
168
168
|
@winrt_commethod(7)
|
|
169
169
|
def GetInstances(self) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.Windows.AppLifecycle.AppInstance]: ...
|
|
170
170
|
@winrt_commethod(8)
|
|
171
|
-
def FindOrRegisterForKey(self, key:
|
|
171
|
+
def FindOrRegisterForKey(self, key: hstr) -> win32more.Microsoft.Windows.AppLifecycle.AppInstance: ...
|
|
172
172
|
class IAppInstanceStatics2(ComPtr):
|
|
173
173
|
extends: IInspectable
|
|
174
174
|
_classid_ = 'Microsoft.Windows.AppLifecycle.IAppInstanceStatics2'
|
|
175
175
|
_iid_ = Guid('{fe9f1885-7160-5397-ba9b-5890b24fdc04}')
|
|
176
176
|
@winrt_commethod(6)
|
|
177
|
-
def Restart(self, arguments:
|
|
177
|
+
def Restart(self, arguments: hstr) -> win32more.Windows.ApplicationModel.Core.AppRestartFailureReason: ...
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
make_ready(__name__)
|