win32more-Microsoft.WindowsAppSDK 0.7.1.6.250430001__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/Imaging/__init__.py +77 -0
- win32more/Microsoft/Security/Authentication/OAuth/__init__.py +591 -0
- win32more/Microsoft/UI/Composition/Core/__init__.py +4 -4
- win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +4 -4
- win32more/Microsoft/UI/Composition/Effects/__init__.py +10 -10
- win32more/Microsoft/UI/Composition/Interactions/__init__.py +93 -93
- win32more/Microsoft/UI/Composition/Scenes/__init__.py +78 -78
- win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +42 -42
- win32more/Microsoft/UI/Composition/__init__.py +125 -125
- win32more/Microsoft/UI/Content/__init__.py +676 -35
- win32more/Microsoft/UI/Dispatching/__init__.py +4 -4
- win32more/Microsoft/UI/Input/DragDrop/__init__.py +9 -9
- win32more/Microsoft/UI/Input/__init__.py +53 -45
- win32more/Microsoft/UI/Text/__init__.py +21 -0
- win32more/Microsoft/UI/Windowing/__init__.py +104 -21
- win32more/Microsoft/UI/Xaml/Controls/__init__.py +274 -0
- win32more/Microsoft/UI/Xaml/__init__.py +64 -2
- 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/AppNotifications/Builder/__init__.py +1 -1
- win32more/Microsoft/Windows/AppNotifications/__init__.py +1 -1
- win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +29 -0
- win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +65 -0
- win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +142 -0
- win32more/Microsoft/Windows/BadgeNotifications/__init__.py +53 -0
- win32more/Microsoft/Windows/Media/Capture/__init__.py +196 -0
- win32more/Microsoft/Windows/Widgets/Providers/__init__.py +24 -0
- win32more/Microsoft/Windows/Widgets/__init__.py +1 -1
- win32more/Microsoft/Windows/Workloads/__init__.py +11 -0
- win32more/appsdk/versioninfo.py +2 -2
- 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.6.250430001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/METADATA +2 -2
- {win32more_microsoft_windowsappsdk-0.7.1.6.250430001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/RECORD +43 -29
- {win32more_microsoft_windowsappsdk-0.7.1.6.250430001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +1 -1
- {win32more_microsoft_windowsappsdk-0.7.1.6.250430001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from win32more._prelude import *
|
|
3
|
+
import win32more.Microsoft.Graphics.Imaging
|
|
4
|
+
import win32more.Microsoft.Windows.AI
|
|
5
|
+
import win32more.Microsoft.Windows.AI.ContentSafety
|
|
6
|
+
import win32more.Microsoft.Windows.AI.Imaging
|
|
7
|
+
import win32more.Windows.Foundation
|
|
8
|
+
import win32more.Windows.Foundation.Collections
|
|
9
|
+
import win32more.Windows.Graphics
|
|
10
|
+
import win32more.Windows.Graphics.Imaging
|
|
11
|
+
class IImageDescriptionGenerator(ComPtr):
|
|
12
|
+
extends: IInspectable
|
|
13
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator'
|
|
14
|
+
_iid_ = Guid('{576b989e-9829-5682-91b0-a7110fa7d51e}')
|
|
15
|
+
@winrt_commethod(6)
|
|
16
|
+
def DescribeAsync(self, image: win32more.Microsoft.Graphics.Imaging.ImageBuffer, kind: win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionKind, contentFilterOptions: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResult, hstr]: ...
|
|
17
|
+
class IImageDescriptionGeneratorStatics(ComPtr):
|
|
18
|
+
extends: IInspectable
|
|
19
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics'
|
|
20
|
+
_iid_ = Guid('{5fb50b2a-5700-55a7-b413-6073b4b7f175}')
|
|
21
|
+
@winrt_commethod(6)
|
|
22
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
23
|
+
@winrt_commethod(7)
|
|
24
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
25
|
+
@winrt_commethod(8)
|
|
26
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator]: ...
|
|
27
|
+
class IImageDescriptionResult(ComPtr):
|
|
28
|
+
extends: IInspectable
|
|
29
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageDescriptionResult'
|
|
30
|
+
_iid_ = Guid('{a066dd0c-110b-5275-a635-52bed7519a2f}')
|
|
31
|
+
@winrt_commethod(6)
|
|
32
|
+
def get_Description(self) -> hstr: ...
|
|
33
|
+
@winrt_commethod(7)
|
|
34
|
+
def get_Status(self) -> win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResultStatus: ...
|
|
35
|
+
Description = property(get_Description, None)
|
|
36
|
+
Status = property(get_Status, None)
|
|
37
|
+
class IImageObjectExtractor(ComPtr):
|
|
38
|
+
extends: IInspectable
|
|
39
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractor'
|
|
40
|
+
_iid_ = Guid('{2919fdc0-d772-5fd9-a8b7-ffb56010c99c}')
|
|
41
|
+
@winrt_commethod(6)
|
|
42
|
+
def GetSoftwareBitmapObjectMask(self, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
43
|
+
@winrt_commethod(7)
|
|
44
|
+
def GetImageBufferObjectMask(self, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
45
|
+
class IImageObjectExtractorHint(ComPtr):
|
|
46
|
+
extends: IInspectable
|
|
47
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint'
|
|
48
|
+
_iid_ = Guid('{1bd8d67c-8a7a-5fe7-98a5-cbdfeb509452}')
|
|
49
|
+
@winrt_commethod(6)
|
|
50
|
+
def get_IncludeRects(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.RectInt32]: ...
|
|
51
|
+
@winrt_commethod(7)
|
|
52
|
+
def get_IncludePoints(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
53
|
+
@winrt_commethod(8)
|
|
54
|
+
def get_ExcludePoints(self) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
55
|
+
ExcludePoints = property(get_ExcludePoints, None)
|
|
56
|
+
IncludePoints = property(get_IncludePoints, None)
|
|
57
|
+
IncludeRects = property(get_IncludeRects, None)
|
|
58
|
+
class IImageObjectExtractorHintFactory(ComPtr):
|
|
59
|
+
extends: IInspectable
|
|
60
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorHintFactory'
|
|
61
|
+
_iid_ = Guid('{5028f206-145d-5a70-9a51-e17e60cfbad8}')
|
|
62
|
+
@winrt_commethod(6)
|
|
63
|
+
def CreateInstance(self, includeRects: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.RectInt32], includePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32], excludePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32]) -> win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint: ...
|
|
64
|
+
class IImageObjectExtractorStatics(ComPtr):
|
|
65
|
+
extends: IInspectable
|
|
66
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics'
|
|
67
|
+
_iid_ = Guid('{38fa261e-2c33-54cb-9e10-98d50685743d}')
|
|
68
|
+
@winrt_commethod(6)
|
|
69
|
+
def CreateWithSoftwareBitmapAsync(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
70
|
+
@winrt_commethod(7)
|
|
71
|
+
def CreateWithImageBufferAsync(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
72
|
+
@winrt_commethod(8)
|
|
73
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
74
|
+
@winrt_commethod(9)
|
|
75
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
76
|
+
class IImageObjectRemover(ComPtr):
|
|
77
|
+
extends: IInspectable
|
|
78
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectRemover'
|
|
79
|
+
_iid_ = Guid('{cfa20faf-5ae1-5b8c-b0d8-e7c64db59d26}')
|
|
80
|
+
@winrt_commethod(6)
|
|
81
|
+
def RemoveFromSoftwareBitmap(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, softwareBitmapMask: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
82
|
+
@winrt_commethod(7)
|
|
83
|
+
def RemoveFromImageBuffer(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, imageBufferMask: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
84
|
+
class IImageObjectRemoverStatics(ComPtr):
|
|
85
|
+
extends: IInspectable
|
|
86
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics'
|
|
87
|
+
_iid_ = Guid('{cbcbd7e1-5b81-503f-8fcb-66ae1d6e5b9c}')
|
|
88
|
+
@winrt_commethod(6)
|
|
89
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
90
|
+
@winrt_commethod(7)
|
|
91
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
92
|
+
@winrt_commethod(8)
|
|
93
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectRemover]: ...
|
|
94
|
+
class IImageScaler(ComPtr):
|
|
95
|
+
extends: IInspectable
|
|
96
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageScaler'
|
|
97
|
+
_iid_ = Guid('{06eec88e-91c5-5326-8128-2807faafa571}')
|
|
98
|
+
@winrt_commethod(6)
|
|
99
|
+
def ScaleSoftwareBitmap(self, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, width: Int32, height: Int32) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
100
|
+
@winrt_commethod(7)
|
|
101
|
+
def ScaleImageBuffer(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, width: Int32, height: Int32) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
102
|
+
@winrt_commethod(8)
|
|
103
|
+
def get_MaxSupportedScaleFactor(self) -> Int32: ...
|
|
104
|
+
MaxSupportedScaleFactor = property(get_MaxSupportedScaleFactor, None)
|
|
105
|
+
class IImageScalerStatics(ComPtr):
|
|
106
|
+
extends: IInspectable
|
|
107
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IImageScalerStatics'
|
|
108
|
+
_iid_ = Guid('{75380c81-9c7f-544b-9337-6e638cfb464a}')
|
|
109
|
+
@winrt_commethod(6)
|
|
110
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
111
|
+
@winrt_commethod(7)
|
|
112
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
113
|
+
@winrt_commethod(8)
|
|
114
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageScaler]: ...
|
|
115
|
+
class IRecognizedLine(ComPtr):
|
|
116
|
+
extends: IInspectable
|
|
117
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedLine'
|
|
118
|
+
_iid_ = Guid('{612a6be6-f6bb-53c9-84ce-f0a5e565faa7}')
|
|
119
|
+
@winrt_commethod(6)
|
|
120
|
+
def get_Text(self) -> hstr: ...
|
|
121
|
+
@winrt_commethod(7)
|
|
122
|
+
def get_BoundingBox(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
123
|
+
@winrt_commethod(8)
|
|
124
|
+
def get_Words(self) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedWord]: ...
|
|
125
|
+
@winrt_commethod(9)
|
|
126
|
+
def get_Style(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedLineStyle: ...
|
|
127
|
+
@winrt_commethod(10)
|
|
128
|
+
def get_LineStyleConfidence(self) -> Single: ...
|
|
129
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
130
|
+
LineStyleConfidence = property(get_LineStyleConfidence, None)
|
|
131
|
+
Style = property(get_Style, None)
|
|
132
|
+
Text = property(get_Text, None)
|
|
133
|
+
Words = property(get_Words, None)
|
|
134
|
+
class IRecognizedText(ComPtr):
|
|
135
|
+
extends: IInspectable
|
|
136
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedText'
|
|
137
|
+
_iid_ = Guid('{ae4766d3-2924-57a6-b3d3-b866f59b9972}')
|
|
138
|
+
@winrt_commethod(6)
|
|
139
|
+
def get_Lines(self) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedLine]: ...
|
|
140
|
+
@winrt_commethod(7)
|
|
141
|
+
def get_TextAngle(self) -> Single: ...
|
|
142
|
+
Lines = property(get_Lines, None)
|
|
143
|
+
TextAngle = property(get_TextAngle, None)
|
|
144
|
+
class IRecognizedWord(ComPtr):
|
|
145
|
+
extends: IInspectable
|
|
146
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.IRecognizedWord'
|
|
147
|
+
_iid_ = Guid('{6b53daab-3410-5088-826a-0788a1ee3b52}')
|
|
148
|
+
@winrt_commethod(6)
|
|
149
|
+
def get_Text(self) -> hstr: ...
|
|
150
|
+
@winrt_commethod(7)
|
|
151
|
+
def get_BoundingBox(self) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
152
|
+
@winrt_commethod(8)
|
|
153
|
+
def get_MatchConfidence(self) -> Single: ...
|
|
154
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
155
|
+
MatchConfidence = property(get_MatchConfidence, None)
|
|
156
|
+
Text = property(get_Text, None)
|
|
157
|
+
class ITextRecognizer(ComPtr):
|
|
158
|
+
extends: IInspectable
|
|
159
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ITextRecognizer'
|
|
160
|
+
_iid_ = Guid('{be7bf6c0-30f6-570d-bd92-3ffe5665d933}')
|
|
161
|
+
@winrt_commethod(6)
|
|
162
|
+
def RecognizeTextFromImageAsync(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.RecognizedText]: ...
|
|
163
|
+
@winrt_commethod(7)
|
|
164
|
+
def RecognizeTextFromImage(self, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedText: ...
|
|
165
|
+
class ITextRecognizerStatics(ComPtr):
|
|
166
|
+
extends: IInspectable
|
|
167
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ITextRecognizerStatics'
|
|
168
|
+
_iid_ = Guid('{3788c2fd-e496-53ab-85a7-e54a135824e9}')
|
|
169
|
+
@winrt_commethod(6)
|
|
170
|
+
def GetReadyState(self) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
171
|
+
@winrt_commethod(7)
|
|
172
|
+
def EnsureReadyAsync(self) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
173
|
+
@winrt_commethod(8)
|
|
174
|
+
def CreateAsync(self) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.TextRecognizer]: ...
|
|
175
|
+
ImageDescriptionContract: UInt32 = 65536
|
|
176
|
+
class ImageDescriptionGenerator(ComPtr):
|
|
177
|
+
extends: IInspectable
|
|
178
|
+
implements: Tuple[ContextManagerProtocol]
|
|
179
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator
|
|
180
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator'
|
|
181
|
+
@winrt_mixinmethod
|
|
182
|
+
def DescribeAsync(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGenerator, image: win32more.Microsoft.Graphics.Imaging.ImageBuffer, kind: win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionKind, contentFilterOptions: win32more.Microsoft.Windows.AI.ContentSafety.ContentFilterOptions) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResult, hstr]: ...
|
|
183
|
+
@winrt_mixinmethod
|
|
184
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
185
|
+
@winrt_classmethod
|
|
186
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
187
|
+
@winrt_classmethod
|
|
188
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
189
|
+
@winrt_classmethod
|
|
190
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionGeneratorStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionGenerator]: ...
|
|
191
|
+
class ImageDescriptionKind(Enum, Int32):
|
|
192
|
+
BriefDescription = 0
|
|
193
|
+
DetailedDescription = 1
|
|
194
|
+
DiagramDescription = 2
|
|
195
|
+
AccessibleDescription = 3
|
|
196
|
+
class ImageDescriptionResult(ComPtr):
|
|
197
|
+
extends: IInspectable
|
|
198
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult
|
|
199
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageDescriptionResult'
|
|
200
|
+
@winrt_mixinmethod
|
|
201
|
+
def get_Description(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult) -> hstr: ...
|
|
202
|
+
@winrt_mixinmethod
|
|
203
|
+
def get_Status(self: win32more.Microsoft.Windows.AI.Imaging.IImageDescriptionResult) -> win32more.Microsoft.Windows.AI.Imaging.ImageDescriptionResultStatus: ...
|
|
204
|
+
Description = property(get_Description, None)
|
|
205
|
+
Status = property(get_Status, None)
|
|
206
|
+
class ImageDescriptionResultStatus(Enum, Int32):
|
|
207
|
+
Complete = 0
|
|
208
|
+
InProgress = 1
|
|
209
|
+
BlockedByPolicy = 2
|
|
210
|
+
ImageBlockedByContentModeration = 3
|
|
211
|
+
TextInImageBlockedByContentModeration = 4
|
|
212
|
+
DescriptionTextBlockedByContentModeration = 5
|
|
213
|
+
ImageHasTooMuchText = 6
|
|
214
|
+
InternalError = 7
|
|
215
|
+
class ImageObjectExtractor(ComPtr):
|
|
216
|
+
extends: IInspectable
|
|
217
|
+
implements: Tuple[ContextManagerProtocol]
|
|
218
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor
|
|
219
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectExtractor'
|
|
220
|
+
@winrt_mixinmethod
|
|
221
|
+
def GetSoftwareBitmapObjectMask(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
222
|
+
@winrt_mixinmethod
|
|
223
|
+
def GetImageBufferObjectMask(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractor, hint: win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
224
|
+
@winrt_mixinmethod
|
|
225
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
226
|
+
@winrt_classmethod
|
|
227
|
+
def CreateWithSoftwareBitmapAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
228
|
+
@winrt_classmethod
|
|
229
|
+
def CreateWithImageBufferAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractor]: ...
|
|
230
|
+
@winrt_classmethod
|
|
231
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
232
|
+
@winrt_classmethod
|
|
233
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
234
|
+
ImageObjectExtractorContract: UInt32 = 65536
|
|
235
|
+
class ImageObjectExtractorHint(ComPtr):
|
|
236
|
+
extends: IInspectable
|
|
237
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint
|
|
238
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint'
|
|
239
|
+
def __init__(self, *args, **kwargs):
|
|
240
|
+
if kwargs:
|
|
241
|
+
super().__init__(**kwargs)
|
|
242
|
+
elif len(args) == 3:
|
|
243
|
+
super().__init__(move=win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint.CreateInstance(*args))
|
|
244
|
+
else:
|
|
245
|
+
raise ValueError('no matched constructor')
|
|
246
|
+
@winrt_factorymethod
|
|
247
|
+
def CreateInstance(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHintFactory, includeRects: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.RectInt32], includePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32], excludePoints: win32more.Windows.Foundation.Collections.IVector[win32more.Windows.Graphics.PointInt32]) -> win32more.Microsoft.Windows.AI.Imaging.ImageObjectExtractorHint: ...
|
|
248
|
+
@winrt_mixinmethod
|
|
249
|
+
def get_IncludeRects(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.RectInt32]: ...
|
|
250
|
+
@winrt_mixinmethod
|
|
251
|
+
def get_IncludePoints(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
252
|
+
@winrt_mixinmethod
|
|
253
|
+
def get_ExcludePoints(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectExtractorHint) -> win32more.Windows.Foundation.Collections.IVectorView[win32more.Windows.Graphics.PointInt32]: ...
|
|
254
|
+
ExcludePoints = property(get_ExcludePoints, None)
|
|
255
|
+
IncludePoints = property(get_IncludePoints, None)
|
|
256
|
+
IncludeRects = property(get_IncludeRects, None)
|
|
257
|
+
class ImageObjectRemover(ComPtr):
|
|
258
|
+
extends: IInspectable
|
|
259
|
+
implements: Tuple[ContextManagerProtocol]
|
|
260
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover
|
|
261
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageObjectRemover'
|
|
262
|
+
@winrt_mixinmethod
|
|
263
|
+
def RemoveFromSoftwareBitmap(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, softwareBitmapMask: win32more.Windows.Graphics.Imaging.SoftwareBitmap) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
264
|
+
@winrt_mixinmethod
|
|
265
|
+
def RemoveFromImageBuffer(self: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemover, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, imageBufferMask: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
266
|
+
@winrt_mixinmethod
|
|
267
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
268
|
+
@winrt_classmethod
|
|
269
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
270
|
+
@winrt_classmethod
|
|
271
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
272
|
+
@winrt_classmethod
|
|
273
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageObjectRemoverStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageObjectRemover]: ...
|
|
274
|
+
ImageObjectRemoverContract: UInt32 = 65536
|
|
275
|
+
class ImageScaler(ComPtr):
|
|
276
|
+
extends: IInspectable
|
|
277
|
+
implements: Tuple[ContextManagerProtocol]
|
|
278
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IImageScaler
|
|
279
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.ImageScaler'
|
|
280
|
+
@winrt_mixinmethod
|
|
281
|
+
def ScaleSoftwareBitmap(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler, softwareBitmap: win32more.Windows.Graphics.Imaging.SoftwareBitmap, width: Int32, height: Int32) -> win32more.Windows.Graphics.Imaging.SoftwareBitmap: ...
|
|
282
|
+
@winrt_mixinmethod
|
|
283
|
+
def ScaleImageBuffer(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer, width: Int32, height: Int32) -> win32more.Microsoft.Graphics.Imaging.ImageBuffer: ...
|
|
284
|
+
@winrt_mixinmethod
|
|
285
|
+
def get_MaxSupportedScaleFactor(self: win32more.Microsoft.Windows.AI.Imaging.IImageScaler) -> Int32: ...
|
|
286
|
+
@winrt_mixinmethod
|
|
287
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
288
|
+
@winrt_classmethod
|
|
289
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
290
|
+
@winrt_classmethod
|
|
291
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
292
|
+
@winrt_classmethod
|
|
293
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.IImageScalerStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.ImageScaler]: ...
|
|
294
|
+
MaxSupportedScaleFactor = property(get_MaxSupportedScaleFactor, None)
|
|
295
|
+
ImageScalerContract: UInt32 = 65536
|
|
296
|
+
class RecognizedLine(ComPtr):
|
|
297
|
+
extends: IInspectable
|
|
298
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine
|
|
299
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedLine'
|
|
300
|
+
@winrt_mixinmethod
|
|
301
|
+
def get_Text(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> hstr: ...
|
|
302
|
+
@winrt_mixinmethod
|
|
303
|
+
def get_BoundingBox(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
304
|
+
@winrt_mixinmethod
|
|
305
|
+
def get_Words(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedWord]: ...
|
|
306
|
+
@winrt_mixinmethod
|
|
307
|
+
def get_Style(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedLineStyle: ...
|
|
308
|
+
@winrt_mixinmethod
|
|
309
|
+
def get_LineStyleConfidence(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedLine) -> Single: ...
|
|
310
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
311
|
+
LineStyleConfidence = property(get_LineStyleConfidence, None)
|
|
312
|
+
Style = property(get_Style, None)
|
|
313
|
+
Text = property(get_Text, None)
|
|
314
|
+
Words = property(get_Words, None)
|
|
315
|
+
class RecognizedLineStyle(Enum, Int32):
|
|
316
|
+
Handwritten = 0
|
|
317
|
+
class RecognizedText(ComPtr):
|
|
318
|
+
extends: IInspectable
|
|
319
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText
|
|
320
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedText'
|
|
321
|
+
@winrt_mixinmethod
|
|
322
|
+
def get_Lines(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText) -> ReceiveArray[win32more.Microsoft.Windows.AI.Imaging.RecognizedLine]: ...
|
|
323
|
+
@winrt_mixinmethod
|
|
324
|
+
def get_TextAngle(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedText) -> Single: ...
|
|
325
|
+
Lines = property(get_Lines, None)
|
|
326
|
+
TextAngle = property(get_TextAngle, None)
|
|
327
|
+
class RecognizedTextBoundingBox(Structure):
|
|
328
|
+
_name_ = 'Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox'
|
|
329
|
+
BottomLeft: win32more.Windows.Foundation.Point
|
|
330
|
+
BottomRight: win32more.Windows.Foundation.Point
|
|
331
|
+
TopLeft: win32more.Windows.Foundation.Point
|
|
332
|
+
TopRight: win32more.Windows.Foundation.Point
|
|
333
|
+
class RecognizedWord(ComPtr):
|
|
334
|
+
extends: IInspectable
|
|
335
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord
|
|
336
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.RecognizedWord'
|
|
337
|
+
@winrt_mixinmethod
|
|
338
|
+
def get_Text(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> hstr: ...
|
|
339
|
+
@winrt_mixinmethod
|
|
340
|
+
def get_BoundingBox(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedTextBoundingBox: ...
|
|
341
|
+
@winrt_mixinmethod
|
|
342
|
+
def get_MatchConfidence(self: win32more.Microsoft.Windows.AI.Imaging.IRecognizedWord) -> Single: ...
|
|
343
|
+
BoundingBox = property(get_BoundingBox, None)
|
|
344
|
+
MatchConfidence = property(get_MatchConfidence, None)
|
|
345
|
+
Text = property(get_Text, None)
|
|
346
|
+
TextRecognitionContract: UInt32 = 65536
|
|
347
|
+
class TextRecognizer(ComPtr):
|
|
348
|
+
extends: IInspectable
|
|
349
|
+
implements: Tuple[ContextManagerProtocol]
|
|
350
|
+
default_interface: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer
|
|
351
|
+
_classid_ = 'Microsoft.Windows.AI.Imaging.TextRecognizer'
|
|
352
|
+
@winrt_mixinmethod
|
|
353
|
+
def RecognizeTextFromImageAsync(self: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.RecognizedText]: ...
|
|
354
|
+
@winrt_mixinmethod
|
|
355
|
+
def RecognizeTextFromImage(self: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizer, imageBuffer: win32more.Microsoft.Graphics.Imaging.ImageBuffer) -> win32more.Microsoft.Windows.AI.Imaging.RecognizedText: ...
|
|
356
|
+
@winrt_mixinmethod
|
|
357
|
+
def Close(self: win32more.Windows.Foundation.IClosable) -> Void: ...
|
|
358
|
+
@winrt_classmethod
|
|
359
|
+
def GetReadyState(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Microsoft.Windows.AI.AIFeatureReadyState: ...
|
|
360
|
+
@winrt_classmethod
|
|
361
|
+
def EnsureReadyAsync(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Windows.Foundation.IAsyncOperationWithProgress[win32more.Microsoft.Windows.AI.AIFeatureReadyResult, Double]: ...
|
|
362
|
+
@winrt_classmethod
|
|
363
|
+
def CreateAsync(cls: win32more.Microsoft.Windows.AI.Imaging.ITextRecognizerStatics) -> win32more.Windows.Foundation.IAsyncOperation[win32more.Microsoft.Windows.AI.Imaging.TextRecognizer]: ...
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
make_ready(__name__)
|
|
@@ -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__)
|