@trycua/cua-driver 0.12.4 → 0.13.1
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.
- package/README.md +33 -0
- package/dist/index.js +5 -0
- package/dist/native/cua_driver_contract.d.ts +313 -2
- package/dist/native/cua_driver_contract.js +635 -4
- package/dist/native/cua_driver_sdk-ffi.d.ts +106 -1
- package/dist/native/cua_driver_sdk-ffi.js +471 -0
- package/dist/native/cua_driver_sdk.d.ts +1066 -32
- package/dist/native/cua_driver_sdk.js +2141 -123
- package/package.json +7 -7
|
@@ -128,6 +128,305 @@ const FfiConverterTypeClickInput = (() => {
|
|
|
128
128
|
;
|
|
129
129
|
return new FFIConverter();
|
|
130
130
|
})();
|
|
131
|
+
/**
|
|
132
|
+
* Generated factory for {@link CursorMotionOutput} record objects.
|
|
133
|
+
*/
|
|
134
|
+
export const CursorMotionOutput = (() => {
|
|
135
|
+
const defaults = () => ({});
|
|
136
|
+
const create = (() => {
|
|
137
|
+
return uniffiCreateRecord(defaults);
|
|
138
|
+
})();
|
|
139
|
+
return Object.freeze({
|
|
140
|
+
create,
|
|
141
|
+
new: create,
|
|
142
|
+
defaults: () => Object.freeze(defaults()),
|
|
143
|
+
});
|
|
144
|
+
})();
|
|
145
|
+
const FfiConverterTypeCursorMotionOutput = (() => {
|
|
146
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
147
|
+
read(from) {
|
|
148
|
+
return {
|
|
149
|
+
startHandle: FfiConverterFloat64.read(from),
|
|
150
|
+
endHandle: FfiConverterFloat64.read(from),
|
|
151
|
+
arcSize: FfiConverterFloat64.read(from),
|
|
152
|
+
arcFlow: FfiConverterFloat64.read(from),
|
|
153
|
+
spring: FfiConverterFloat64.read(from),
|
|
154
|
+
glideDurationMs: FfiConverterFloat64.read(from),
|
|
155
|
+
dwellAfterClickMs: FfiConverterFloat64.read(from),
|
|
156
|
+
idleHideMs: FfiConverterFloat64.read(from),
|
|
157
|
+
turnRadius: FfiConverterFloat64.read(from)
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
write(value, into) {
|
|
161
|
+
FfiConverterFloat64.write(value.startHandle, into);
|
|
162
|
+
FfiConverterFloat64.write(value.endHandle, into);
|
|
163
|
+
FfiConverterFloat64.write(value.arcSize, into);
|
|
164
|
+
FfiConverterFloat64.write(value.arcFlow, into);
|
|
165
|
+
FfiConverterFloat64.write(value.spring, into);
|
|
166
|
+
FfiConverterFloat64.write(value.glideDurationMs, into);
|
|
167
|
+
FfiConverterFloat64.write(value.dwellAfterClickMs, into);
|
|
168
|
+
FfiConverterFloat64.write(value.idleHideMs, into);
|
|
169
|
+
FfiConverterFloat64.write(value.turnRadius, into);
|
|
170
|
+
}
|
|
171
|
+
allocationSize(value) {
|
|
172
|
+
return FfiConverterFloat64.allocationSize(value.startHandle) +
|
|
173
|
+
FfiConverterFloat64.allocationSize(value.endHandle) +
|
|
174
|
+
FfiConverterFloat64.allocationSize(value.arcSize) +
|
|
175
|
+
FfiConverterFloat64.allocationSize(value.arcFlow) +
|
|
176
|
+
FfiConverterFloat64.allocationSize(value.spring) +
|
|
177
|
+
FfiConverterFloat64.allocationSize(value.glideDurationMs) +
|
|
178
|
+
FfiConverterFloat64.allocationSize(value.dwellAfterClickMs) +
|
|
179
|
+
FfiConverterFloat64.allocationSize(value.idleHideMs) +
|
|
180
|
+
FfiConverterFloat64.allocationSize(value.turnRadius);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
;
|
|
184
|
+
return new FFIConverter();
|
|
185
|
+
})();
|
|
186
|
+
/**
|
|
187
|
+
* Generated factory for {@link CursorPointOutput} record objects.
|
|
188
|
+
*/
|
|
189
|
+
export const CursorPointOutput = (() => {
|
|
190
|
+
const defaults = () => ({});
|
|
191
|
+
const create = (() => {
|
|
192
|
+
return uniffiCreateRecord(defaults);
|
|
193
|
+
})();
|
|
194
|
+
return Object.freeze({
|
|
195
|
+
create,
|
|
196
|
+
new: create,
|
|
197
|
+
defaults: () => Object.freeze(defaults()),
|
|
198
|
+
});
|
|
199
|
+
})();
|
|
200
|
+
const FfiConverterTypeCursorPointOutput = (() => {
|
|
201
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
202
|
+
read(from) {
|
|
203
|
+
return {
|
|
204
|
+
x: FfiConverterFloat64.read(from),
|
|
205
|
+
y: FfiConverterFloat64.read(from)
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
write(value, into) {
|
|
209
|
+
FfiConverterFloat64.write(value.x, into);
|
|
210
|
+
FfiConverterFloat64.write(value.y, into);
|
|
211
|
+
}
|
|
212
|
+
allocationSize(value) {
|
|
213
|
+
return FfiConverterFloat64.allocationSize(value.x) +
|
|
214
|
+
FfiConverterFloat64.allocationSize(value.y);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
;
|
|
218
|
+
return new FFIConverter();
|
|
219
|
+
})();
|
|
220
|
+
export var CursorReducedMotion;
|
|
221
|
+
(function (CursorReducedMotion) {
|
|
222
|
+
CursorReducedMotion[CursorReducedMotion["Auto"] = 0] = "Auto";
|
|
223
|
+
CursorReducedMotion[CursorReducedMotion["On"] = 1] = "On";
|
|
224
|
+
CursorReducedMotion[CursorReducedMotion["Off"] = 2] = "Off";
|
|
225
|
+
})(CursorReducedMotion || (CursorReducedMotion = {}));
|
|
226
|
+
const FfiConverterTypeCursorReducedMotion = (() => {
|
|
227
|
+
const ordinalConverter = FfiConverterInt32;
|
|
228
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
229
|
+
read(from) {
|
|
230
|
+
switch (ordinalConverter.read(from)) {
|
|
231
|
+
case 1: return CursorReducedMotion.Auto;
|
|
232
|
+
case 2: return CursorReducedMotion.On;
|
|
233
|
+
case 3: return CursorReducedMotion.Off;
|
|
234
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
write(value, into) {
|
|
238
|
+
switch (value) {
|
|
239
|
+
case CursorReducedMotion.Auto: return ordinalConverter.write(1, into);
|
|
240
|
+
case CursorReducedMotion.On: return ordinalConverter.write(2, into);
|
|
241
|
+
case CursorReducedMotion.Off: return ordinalConverter.write(3, into);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
allocationSize(value) {
|
|
245
|
+
return ordinalConverter.allocationSize(0);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return new FFIConverter();
|
|
249
|
+
})();
|
|
250
|
+
/**
|
|
251
|
+
* Generated factory for {@link CursorThemeOutput} record objects.
|
|
252
|
+
*/
|
|
253
|
+
export const CursorThemeOutput = (() => {
|
|
254
|
+
const defaults = () => ({});
|
|
255
|
+
const create = (() => {
|
|
256
|
+
return uniffiCreateRecord(defaults);
|
|
257
|
+
})();
|
|
258
|
+
return Object.freeze({
|
|
259
|
+
create,
|
|
260
|
+
new: create,
|
|
261
|
+
defaults: () => Object.freeze(defaults()),
|
|
262
|
+
});
|
|
263
|
+
})();
|
|
264
|
+
const FfiConverterTypeCursorThemeOutput = (() => {
|
|
265
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
266
|
+
read(from) {
|
|
267
|
+
return {
|
|
268
|
+
id: FfiConverterString.read(from),
|
|
269
|
+
version: FfiConverterString.read(from),
|
|
270
|
+
profile: FfiConverterString.read(from),
|
|
271
|
+
reducedMotion: FfiConverterTypeCursorReducedMotion.read(from),
|
|
272
|
+
fallback: FfiConverterOptionalString.read(from)
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
write(value, into) {
|
|
276
|
+
FfiConverterString.write(value.id, into);
|
|
277
|
+
FfiConverterString.write(value.version, into);
|
|
278
|
+
FfiConverterString.write(value.profile, into);
|
|
279
|
+
FfiConverterTypeCursorReducedMotion.write(value.reducedMotion, into);
|
|
280
|
+
FfiConverterOptionalString.write(value.fallback, into);
|
|
281
|
+
}
|
|
282
|
+
allocationSize(value) {
|
|
283
|
+
return FfiConverterString.allocationSize(value.id) +
|
|
284
|
+
FfiConverterString.allocationSize(value.version) +
|
|
285
|
+
FfiConverterString.allocationSize(value.profile) +
|
|
286
|
+
FfiConverterTypeCursorReducedMotion.allocationSize(value.reducedMotion) +
|
|
287
|
+
FfiConverterOptionalString.allocationSize(value.fallback);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
;
|
|
291
|
+
return new FFIConverter();
|
|
292
|
+
})();
|
|
293
|
+
/**
|
|
294
|
+
* Generated factory for {@link CursorThemeSelection} record objects.
|
|
295
|
+
*/
|
|
296
|
+
export const CursorThemeSelection = (() => {
|
|
297
|
+
const defaults = () => ({});
|
|
298
|
+
const create = (() => {
|
|
299
|
+
return uniffiCreateRecord(defaults);
|
|
300
|
+
})();
|
|
301
|
+
return Object.freeze({
|
|
302
|
+
create,
|
|
303
|
+
new: create,
|
|
304
|
+
defaults: () => Object.freeze(defaults()),
|
|
305
|
+
});
|
|
306
|
+
})();
|
|
307
|
+
const FfiConverterTypeCursorThemeSelection = (() => {
|
|
308
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
309
|
+
read(from) {
|
|
310
|
+
return {
|
|
311
|
+
themeId: FfiConverterString.read(from),
|
|
312
|
+
reducedMotion: FfiConverterTypeCursorReducedMotion.read(from)
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
write(value, into) {
|
|
316
|
+
FfiConverterString.write(value.themeId, into);
|
|
317
|
+
FfiConverterTypeCursorReducedMotion.write(value.reducedMotion, into);
|
|
318
|
+
}
|
|
319
|
+
allocationSize(value) {
|
|
320
|
+
return FfiConverterString.allocationSize(value.themeId) +
|
|
321
|
+
FfiConverterTypeCursorReducedMotion.allocationSize(value.reducedMotion);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
;
|
|
325
|
+
return new FFIConverter();
|
|
326
|
+
})();
|
|
327
|
+
export var CursorAction;
|
|
328
|
+
(function (CursorAction) {
|
|
329
|
+
CursorAction[CursorAction["Idle"] = 0] = "Idle";
|
|
330
|
+
CursorAction[CursorAction["Observe"] = 1] = "Observe";
|
|
331
|
+
CursorAction[CursorAction["Click"] = 2] = "Click";
|
|
332
|
+
CursorAction[CursorAction["Drag"] = 3] = "Drag";
|
|
333
|
+
CursorAction[CursorAction["Scroll"] = 4] = "Scroll";
|
|
334
|
+
CursorAction[CursorAction["Text"] = 5] = "Text";
|
|
335
|
+
CursorAction[CursorAction["Key"] = 6] = "Key";
|
|
336
|
+
CursorAction[CursorAction["Navigate"] = 7] = "Navigate";
|
|
337
|
+
CursorAction[CursorAction["App"] = 8] = "App";
|
|
338
|
+
CursorAction[CursorAction["Transfer"] = 9] = "Transfer";
|
|
339
|
+
CursorAction[CursorAction["Record"] = 10] = "Record";
|
|
340
|
+
CursorAction[CursorAction["System"] = 11] = "System";
|
|
341
|
+
})(CursorAction || (CursorAction = {}));
|
|
342
|
+
const FfiConverterTypeCursorAction = (() => {
|
|
343
|
+
const ordinalConverter = FfiConverterInt32;
|
|
344
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
345
|
+
read(from) {
|
|
346
|
+
switch (ordinalConverter.read(from)) {
|
|
347
|
+
case 1: return CursorAction.Idle;
|
|
348
|
+
case 2: return CursorAction.Observe;
|
|
349
|
+
case 3: return CursorAction.Click;
|
|
350
|
+
case 4: return CursorAction.Drag;
|
|
351
|
+
case 5: return CursorAction.Scroll;
|
|
352
|
+
case 6: return CursorAction.Text;
|
|
353
|
+
case 7: return CursorAction.Key;
|
|
354
|
+
case 8: return CursorAction.Navigate;
|
|
355
|
+
case 9: return CursorAction.App;
|
|
356
|
+
case 10: return CursorAction.Transfer;
|
|
357
|
+
case 11: return CursorAction.Record;
|
|
358
|
+
case 12: return CursorAction.System;
|
|
359
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
write(value, into) {
|
|
363
|
+
switch (value) {
|
|
364
|
+
case CursorAction.Idle: return ordinalConverter.write(1, into);
|
|
365
|
+
case CursorAction.Observe: return ordinalConverter.write(2, into);
|
|
366
|
+
case CursorAction.Click: return ordinalConverter.write(3, into);
|
|
367
|
+
case CursorAction.Drag: return ordinalConverter.write(4, into);
|
|
368
|
+
case CursorAction.Scroll: return ordinalConverter.write(5, into);
|
|
369
|
+
case CursorAction.Text: return ordinalConverter.write(6, into);
|
|
370
|
+
case CursorAction.Key: return ordinalConverter.write(7, into);
|
|
371
|
+
case CursorAction.Navigate: return ordinalConverter.write(8, into);
|
|
372
|
+
case CursorAction.App: return ordinalConverter.write(9, into);
|
|
373
|
+
case CursorAction.Transfer: return ordinalConverter.write(10, into);
|
|
374
|
+
case CursorAction.Record: return ordinalConverter.write(11, into);
|
|
375
|
+
case CursorAction.System: return ordinalConverter.write(12, into);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
allocationSize(value) {
|
|
379
|
+
return ordinalConverter.allocationSize(0);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return new FFIConverter();
|
|
383
|
+
})();
|
|
384
|
+
/**
|
|
385
|
+
* Generated factory for {@link CursorVisualOutput} record objects.
|
|
386
|
+
*/
|
|
387
|
+
export const CursorVisualOutput = (() => {
|
|
388
|
+
const defaults = () => ({});
|
|
389
|
+
const create = (() => {
|
|
390
|
+
return uniffiCreateRecord(defaults);
|
|
391
|
+
})();
|
|
392
|
+
return Object.freeze({
|
|
393
|
+
create,
|
|
394
|
+
new: create,
|
|
395
|
+
defaults: () => Object.freeze(defaults()),
|
|
396
|
+
});
|
|
397
|
+
})();
|
|
398
|
+
const FfiConverterTypeCursorVisualOutput = (() => {
|
|
399
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
400
|
+
read(from) {
|
|
401
|
+
return {
|
|
402
|
+
requestedAction: FfiConverterTypeCursorAction.read(from),
|
|
403
|
+
resolvedAction: FfiConverterTypeCursorAction.read(from),
|
|
404
|
+
modifiers: FfiConverterSequenceString.read(from),
|
|
405
|
+
phase: FfiConverterString.read(from),
|
|
406
|
+
frame: FfiConverterUInt64.read(from),
|
|
407
|
+
preemptedCount: FfiConverterUInt64.read(from)
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
write(value, into) {
|
|
411
|
+
FfiConverterTypeCursorAction.write(value.requestedAction, into);
|
|
412
|
+
FfiConverterTypeCursorAction.write(value.resolvedAction, into);
|
|
413
|
+
FfiConverterSequenceString.write(value.modifiers, into);
|
|
414
|
+
FfiConverterString.write(value.phase, into);
|
|
415
|
+
FfiConverterUInt64.write(value.frame, into);
|
|
416
|
+
FfiConverterUInt64.write(value.preemptedCount, into);
|
|
417
|
+
}
|
|
418
|
+
allocationSize(value) {
|
|
419
|
+
return FfiConverterTypeCursorAction.allocationSize(value.requestedAction) +
|
|
420
|
+
FfiConverterTypeCursorAction.allocationSize(value.resolvedAction) +
|
|
421
|
+
FfiConverterSequenceString.allocationSize(value.modifiers) +
|
|
422
|
+
FfiConverterString.allocationSize(value.phase) +
|
|
423
|
+
FfiConverterUInt64.allocationSize(value.frame) +
|
|
424
|
+
FfiConverterUInt64.allocationSize(value.preemptedCount);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
;
|
|
428
|
+
return new FFIConverter();
|
|
429
|
+
})();
|
|
131
430
|
/**
|
|
132
431
|
* Generated factory for {@link DragInput} record objects.
|
|
133
432
|
*/
|
|
@@ -324,6 +623,83 @@ const FfiConverterTypeEscalateSessionInput = (() => {
|
|
|
324
623
|
;
|
|
325
624
|
return new FFIConverter();
|
|
326
625
|
})();
|
|
626
|
+
/**
|
|
627
|
+
* Generated factory for {@link GetAgentCursorStateInput} record objects.
|
|
628
|
+
*/
|
|
629
|
+
export const GetAgentCursorStateInput = (() => {
|
|
630
|
+
const defaults = () => ({});
|
|
631
|
+
const create = (() => {
|
|
632
|
+
return uniffiCreateRecord(defaults);
|
|
633
|
+
})();
|
|
634
|
+
return Object.freeze({
|
|
635
|
+
create,
|
|
636
|
+
new: create,
|
|
637
|
+
defaults: () => Object.freeze(defaults()),
|
|
638
|
+
});
|
|
639
|
+
})();
|
|
640
|
+
const FfiConverterTypeGetAgentCursorStateInput = (() => {
|
|
641
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
642
|
+
read(from) {
|
|
643
|
+
return {
|
|
644
|
+
session: FfiConverterString.read(from)
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
write(value, into) {
|
|
648
|
+
FfiConverterString.write(value.session, into);
|
|
649
|
+
}
|
|
650
|
+
allocationSize(value) {
|
|
651
|
+
return FfiConverterString.allocationSize(value.session);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
;
|
|
655
|
+
return new FFIConverter();
|
|
656
|
+
})();
|
|
657
|
+
/**
|
|
658
|
+
* Generated factory for {@link GetAgentCursorStateOutput} record objects.
|
|
659
|
+
*/
|
|
660
|
+
export const GetAgentCursorStateOutput = (() => {
|
|
661
|
+
const defaults = () => ({});
|
|
662
|
+
const create = (() => {
|
|
663
|
+
return uniffiCreateRecord(defaults);
|
|
664
|
+
})();
|
|
665
|
+
return Object.freeze({
|
|
666
|
+
create,
|
|
667
|
+
new: create,
|
|
668
|
+
defaults: () => Object.freeze(defaults()),
|
|
669
|
+
});
|
|
670
|
+
})();
|
|
671
|
+
const FfiConverterTypeGetAgentCursorStateOutput = (() => {
|
|
672
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
673
|
+
read(from) {
|
|
674
|
+
return {
|
|
675
|
+
session: FfiConverterString.read(from),
|
|
676
|
+
enabled: FfiConverterBool.read(from),
|
|
677
|
+
position: FfiConverterOptionalTypeCursorPointOutput.read(from),
|
|
678
|
+
theme: FfiConverterTypeCursorThemeOutput.read(from),
|
|
679
|
+
visualState: FfiConverterTypeCursorVisualOutput.read(from),
|
|
680
|
+
motion: FfiConverterTypeCursorMotionOutput.read(from)
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
write(value, into) {
|
|
684
|
+
FfiConverterString.write(value.session, into);
|
|
685
|
+
FfiConverterBool.write(value.enabled, into);
|
|
686
|
+
FfiConverterOptionalTypeCursorPointOutput.write(value.position, into);
|
|
687
|
+
FfiConverterTypeCursorThemeOutput.write(value.theme, into);
|
|
688
|
+
FfiConverterTypeCursorVisualOutput.write(value.visualState, into);
|
|
689
|
+
FfiConverterTypeCursorMotionOutput.write(value.motion, into);
|
|
690
|
+
}
|
|
691
|
+
allocationSize(value) {
|
|
692
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
693
|
+
FfiConverterBool.allocationSize(value.enabled) +
|
|
694
|
+
FfiConverterOptionalTypeCursorPointOutput.allocationSize(value.position) +
|
|
695
|
+
FfiConverterTypeCursorThemeOutput.allocationSize(value.theme) +
|
|
696
|
+
FfiConverterTypeCursorVisualOutput.allocationSize(value.visualState) +
|
|
697
|
+
FfiConverterTypeCursorMotionOutput.allocationSize(value.motion);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
;
|
|
701
|
+
return new FFIConverter();
|
|
702
|
+
})();
|
|
327
703
|
/**
|
|
328
704
|
* Generated factory for {@link GetCursorPositionInput} record objects.
|
|
329
705
|
*/
|
|
@@ -780,6 +1156,237 @@ const FfiConverterTypeSessionStateOutput = (() => {
|
|
|
780
1156
|
;
|
|
781
1157
|
return new FFIConverter();
|
|
782
1158
|
})();
|
|
1159
|
+
/**
|
|
1160
|
+
* Generated factory for {@link SetAgentCursorEnabledInput} record objects.
|
|
1161
|
+
*/
|
|
1162
|
+
export const SetAgentCursorEnabledInput = (() => {
|
|
1163
|
+
const defaults = () => ({});
|
|
1164
|
+
const create = (() => {
|
|
1165
|
+
return uniffiCreateRecord(defaults);
|
|
1166
|
+
})();
|
|
1167
|
+
return Object.freeze({
|
|
1168
|
+
create,
|
|
1169
|
+
new: create,
|
|
1170
|
+
defaults: () => Object.freeze(defaults()),
|
|
1171
|
+
});
|
|
1172
|
+
})();
|
|
1173
|
+
const FfiConverterTypeSetAgentCursorEnabledInput = (() => {
|
|
1174
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1175
|
+
read(from) {
|
|
1176
|
+
return {
|
|
1177
|
+
session: FfiConverterString.read(from),
|
|
1178
|
+
enabled: FfiConverterBool.read(from)
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
write(value, into) {
|
|
1182
|
+
FfiConverterString.write(value.session, into);
|
|
1183
|
+
FfiConverterBool.write(value.enabled, into);
|
|
1184
|
+
}
|
|
1185
|
+
allocationSize(value) {
|
|
1186
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1187
|
+
FfiConverterBool.allocationSize(value.enabled);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
;
|
|
1191
|
+
return new FFIConverter();
|
|
1192
|
+
})();
|
|
1193
|
+
/**
|
|
1194
|
+
* Generated factory for {@link SetAgentCursorEnabledOutput} record objects.
|
|
1195
|
+
*/
|
|
1196
|
+
export const SetAgentCursorEnabledOutput = (() => {
|
|
1197
|
+
const defaults = () => ({});
|
|
1198
|
+
const create = (() => {
|
|
1199
|
+
return uniffiCreateRecord(defaults);
|
|
1200
|
+
})();
|
|
1201
|
+
return Object.freeze({
|
|
1202
|
+
create,
|
|
1203
|
+
new: create,
|
|
1204
|
+
defaults: () => Object.freeze(defaults()),
|
|
1205
|
+
});
|
|
1206
|
+
})();
|
|
1207
|
+
const FfiConverterTypeSetAgentCursorEnabledOutput = (() => {
|
|
1208
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1209
|
+
read(from) {
|
|
1210
|
+
return {
|
|
1211
|
+
session: FfiConverterString.read(from),
|
|
1212
|
+
enabled: FfiConverterBool.read(from)
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
write(value, into) {
|
|
1216
|
+
FfiConverterString.write(value.session, into);
|
|
1217
|
+
FfiConverterBool.write(value.enabled, into);
|
|
1218
|
+
}
|
|
1219
|
+
allocationSize(value) {
|
|
1220
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1221
|
+
FfiConverterBool.allocationSize(value.enabled);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
;
|
|
1225
|
+
return new FFIConverter();
|
|
1226
|
+
})();
|
|
1227
|
+
/**
|
|
1228
|
+
* Generated factory for {@link SetAgentCursorMotionInput} record objects.
|
|
1229
|
+
*/
|
|
1230
|
+
export const SetAgentCursorMotionInput = (() => {
|
|
1231
|
+
const defaults = () => ({});
|
|
1232
|
+
const create = (() => {
|
|
1233
|
+
return uniffiCreateRecord(defaults);
|
|
1234
|
+
})();
|
|
1235
|
+
return Object.freeze({
|
|
1236
|
+
create,
|
|
1237
|
+
new: create,
|
|
1238
|
+
defaults: () => Object.freeze(defaults()),
|
|
1239
|
+
});
|
|
1240
|
+
})();
|
|
1241
|
+
const FfiConverterTypeSetAgentCursorMotionInput = (() => {
|
|
1242
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1243
|
+
read(from) {
|
|
1244
|
+
return {
|
|
1245
|
+
session: FfiConverterString.read(from),
|
|
1246
|
+
startHandle: FfiConverterOptionalFloat64.read(from),
|
|
1247
|
+
endHandle: FfiConverterOptionalFloat64.read(from),
|
|
1248
|
+
arcSize: FfiConverterOptionalFloat64.read(from),
|
|
1249
|
+
arcFlow: FfiConverterOptionalFloat64.read(from),
|
|
1250
|
+
spring: FfiConverterOptionalFloat64.read(from),
|
|
1251
|
+
glideDurationMs: FfiConverterOptionalFloat64.read(from),
|
|
1252
|
+
dwellAfterClickMs: FfiConverterOptionalFloat64.read(from),
|
|
1253
|
+
idleHideMs: FfiConverterOptionalFloat64.read(from),
|
|
1254
|
+
turnRadius: FfiConverterOptionalFloat64.read(from)
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
write(value, into) {
|
|
1258
|
+
FfiConverterString.write(value.session, into);
|
|
1259
|
+
FfiConverterOptionalFloat64.write(value.startHandle, into);
|
|
1260
|
+
FfiConverterOptionalFloat64.write(value.endHandle, into);
|
|
1261
|
+
FfiConverterOptionalFloat64.write(value.arcSize, into);
|
|
1262
|
+
FfiConverterOptionalFloat64.write(value.arcFlow, into);
|
|
1263
|
+
FfiConverterOptionalFloat64.write(value.spring, into);
|
|
1264
|
+
FfiConverterOptionalFloat64.write(value.glideDurationMs, into);
|
|
1265
|
+
FfiConverterOptionalFloat64.write(value.dwellAfterClickMs, into);
|
|
1266
|
+
FfiConverterOptionalFloat64.write(value.idleHideMs, into);
|
|
1267
|
+
FfiConverterOptionalFloat64.write(value.turnRadius, into);
|
|
1268
|
+
}
|
|
1269
|
+
allocationSize(value) {
|
|
1270
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1271
|
+
FfiConverterOptionalFloat64.allocationSize(value.startHandle) +
|
|
1272
|
+
FfiConverterOptionalFloat64.allocationSize(value.endHandle) +
|
|
1273
|
+
FfiConverterOptionalFloat64.allocationSize(value.arcSize) +
|
|
1274
|
+
FfiConverterOptionalFloat64.allocationSize(value.arcFlow) +
|
|
1275
|
+
FfiConverterOptionalFloat64.allocationSize(value.spring) +
|
|
1276
|
+
FfiConverterOptionalFloat64.allocationSize(value.glideDurationMs) +
|
|
1277
|
+
FfiConverterOptionalFloat64.allocationSize(value.dwellAfterClickMs) +
|
|
1278
|
+
FfiConverterOptionalFloat64.allocationSize(value.idleHideMs) +
|
|
1279
|
+
FfiConverterOptionalFloat64.allocationSize(value.turnRadius);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
;
|
|
1283
|
+
return new FFIConverter();
|
|
1284
|
+
})();
|
|
1285
|
+
/**
|
|
1286
|
+
* Generated factory for {@link SetAgentCursorMotionOutput} record objects.
|
|
1287
|
+
*/
|
|
1288
|
+
export const SetAgentCursorMotionOutput = (() => {
|
|
1289
|
+
const defaults = () => ({});
|
|
1290
|
+
const create = (() => {
|
|
1291
|
+
return uniffiCreateRecord(defaults);
|
|
1292
|
+
})();
|
|
1293
|
+
return Object.freeze({
|
|
1294
|
+
create,
|
|
1295
|
+
new: create,
|
|
1296
|
+
defaults: () => Object.freeze(defaults()),
|
|
1297
|
+
});
|
|
1298
|
+
})();
|
|
1299
|
+
const FfiConverterTypeSetAgentCursorMotionOutput = (() => {
|
|
1300
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1301
|
+
read(from) {
|
|
1302
|
+
return {
|
|
1303
|
+
session: FfiConverterString.read(from),
|
|
1304
|
+
motion: FfiConverterTypeCursorMotionOutput.read(from)
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
write(value, into) {
|
|
1308
|
+
FfiConverterString.write(value.session, into);
|
|
1309
|
+
FfiConverterTypeCursorMotionOutput.write(value.motion, into);
|
|
1310
|
+
}
|
|
1311
|
+
allocationSize(value) {
|
|
1312
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1313
|
+
FfiConverterTypeCursorMotionOutput.allocationSize(value.motion);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
;
|
|
1317
|
+
return new FFIConverter();
|
|
1318
|
+
})();
|
|
1319
|
+
/**
|
|
1320
|
+
* Generated factory for {@link SetAgentCursorThemeInput} record objects.
|
|
1321
|
+
*/
|
|
1322
|
+
export const SetAgentCursorThemeInput = (() => {
|
|
1323
|
+
const defaults = () => ({});
|
|
1324
|
+
const create = (() => {
|
|
1325
|
+
return uniffiCreateRecord(defaults);
|
|
1326
|
+
})();
|
|
1327
|
+
return Object.freeze({
|
|
1328
|
+
create,
|
|
1329
|
+
new: create,
|
|
1330
|
+
defaults: () => Object.freeze(defaults()),
|
|
1331
|
+
});
|
|
1332
|
+
})();
|
|
1333
|
+
const FfiConverterTypeSetAgentCursorThemeInput = (() => {
|
|
1334
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1335
|
+
read(from) {
|
|
1336
|
+
return {
|
|
1337
|
+
session: FfiConverterString.read(from),
|
|
1338
|
+
themeId: FfiConverterString.read(from),
|
|
1339
|
+
reducedMotion: FfiConverterTypeCursorReducedMotion.read(from)
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
write(value, into) {
|
|
1343
|
+
FfiConverterString.write(value.session, into);
|
|
1344
|
+
FfiConverterString.write(value.themeId, into);
|
|
1345
|
+
FfiConverterTypeCursorReducedMotion.write(value.reducedMotion, into);
|
|
1346
|
+
}
|
|
1347
|
+
allocationSize(value) {
|
|
1348
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1349
|
+
FfiConverterString.allocationSize(value.themeId) +
|
|
1350
|
+
FfiConverterTypeCursorReducedMotion.allocationSize(value.reducedMotion);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
;
|
|
1354
|
+
return new FFIConverter();
|
|
1355
|
+
})();
|
|
1356
|
+
/**
|
|
1357
|
+
* Generated factory for {@link SetAgentCursorThemeOutput} record objects.
|
|
1358
|
+
*/
|
|
1359
|
+
export const SetAgentCursorThemeOutput = (() => {
|
|
1360
|
+
const defaults = () => ({});
|
|
1361
|
+
const create = (() => {
|
|
1362
|
+
return uniffiCreateRecord(defaults);
|
|
1363
|
+
})();
|
|
1364
|
+
return Object.freeze({
|
|
1365
|
+
create,
|
|
1366
|
+
new: create,
|
|
1367
|
+
defaults: () => Object.freeze(defaults()),
|
|
1368
|
+
});
|
|
1369
|
+
})();
|
|
1370
|
+
const FfiConverterTypeSetAgentCursorThemeOutput = (() => {
|
|
1371
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1372
|
+
read(from) {
|
|
1373
|
+
return {
|
|
1374
|
+
session: FfiConverterString.read(from),
|
|
1375
|
+
theme: FfiConverterTypeCursorThemeOutput.read(from)
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
write(value, into) {
|
|
1379
|
+
FfiConverterString.write(value.session, into);
|
|
1380
|
+
FfiConverterTypeCursorThemeOutput.write(value.theme, into);
|
|
1381
|
+
}
|
|
1382
|
+
allocationSize(value) {
|
|
1383
|
+
return FfiConverterString.allocationSize(value.session) +
|
|
1384
|
+
FfiConverterTypeCursorThemeOutput.allocationSize(value.theme);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
;
|
|
1388
|
+
return new FFIConverter();
|
|
1389
|
+
})();
|
|
783
1390
|
/**
|
|
784
1391
|
* Generated factory for {@link StartSessionInput} record objects.
|
|
785
1392
|
*/
|
|
@@ -799,16 +1406,19 @@ const FfiConverterTypeStartSessionInput = (() => {
|
|
|
799
1406
|
read(from) {
|
|
800
1407
|
return {
|
|
801
1408
|
session: FfiConverterString.read(from),
|
|
802
|
-
captureScope: FfiConverterOptionalTypeCaptureScope.read(from)
|
|
1409
|
+
captureScope: FfiConverterOptionalTypeCaptureScope.read(from),
|
|
1410
|
+
cursorTheme: FfiConverterOptionalTypeCursorThemeSelection.read(from)
|
|
803
1411
|
};
|
|
804
1412
|
}
|
|
805
1413
|
write(value, into) {
|
|
806
1414
|
FfiConverterString.write(value.session, into);
|
|
807
1415
|
FfiConverterOptionalTypeCaptureScope.write(value.captureScope, into);
|
|
1416
|
+
FfiConverterOptionalTypeCursorThemeSelection.write(value.cursorTheme, into);
|
|
808
1417
|
}
|
|
809
1418
|
allocationSize(value) {
|
|
810
1419
|
return FfiConverterString.allocationSize(value.session) +
|
|
811
|
-
FfiConverterOptionalTypeCaptureScope.allocationSize(value.captureScope)
|
|
1420
|
+
FfiConverterOptionalTypeCaptureScope.allocationSize(value.captureScope) +
|
|
1421
|
+
FfiConverterOptionalTypeCursorThemeSelection.allocationSize(value.cursorTheme);
|
|
812
1422
|
}
|
|
813
1423
|
}
|
|
814
1424
|
;
|
|
@@ -924,18 +1534,24 @@ const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
|
924
1534
|
const FfiConverterOptionalTypeClickButton = new FfiConverterOptional(FfiConverterTypeClickButton);
|
|
925
1535
|
// FfiConverter for number | undefined
|
|
926
1536
|
const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
927
|
-
// FfiConverter for bigint | undefined
|
|
928
|
-
const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
929
1537
|
// FfiConverter for Array<string>
|
|
930
1538
|
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1539
|
+
// FfiConverter for bigint | undefined
|
|
1540
|
+
const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
931
1541
|
// FfiConverter for Array<string> | undefined
|
|
932
1542
|
const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
|
|
1543
|
+
// FfiConverter for CursorPointOutput | undefined
|
|
1544
|
+
const FfiConverterOptionalTypeCursorPointOutput = new FfiConverterOptional(FfiConverterTypeCursorPointOutput);
|
|
933
1545
|
// FfiConverter for ScrollBy | undefined
|
|
934
1546
|
const FfiConverterOptionalTypeScrollBy = new FfiConverterOptional(FfiConverterTypeScrollBy);
|
|
935
1547
|
// FfiConverter for EscalationReason | undefined
|
|
936
1548
|
const FfiConverterOptionalTypeEscalationReason = new FfiConverterOptional(FfiConverterTypeEscalationReason);
|
|
1549
|
+
// FfiConverter for number | undefined
|
|
1550
|
+
const FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
937
1551
|
// FfiConverter for CaptureScope | undefined
|
|
938
1552
|
const FfiConverterOptionalTypeCaptureScope = new FfiConverterOptional(FfiConverterTypeCaptureScope);
|
|
1553
|
+
// FfiConverter for CursorThemeSelection | undefined
|
|
1554
|
+
const FfiConverterOptionalTypeCursorThemeSelection = new FfiConverterOptional(FfiConverterTypeCursorThemeSelection);
|
|
939
1555
|
/**
|
|
940
1556
|
* This should be called before anything else.
|
|
941
1557
|
*
|
|
@@ -961,6 +1577,13 @@ export default Object.freeze({
|
|
|
961
1577
|
FfiConverterTypeCaptureScope,
|
|
962
1578
|
FfiConverterTypeClickButton,
|
|
963
1579
|
FfiConverterTypeClickInput,
|
|
1580
|
+
FfiConverterTypeCursorAction,
|
|
1581
|
+
FfiConverterTypeCursorMotionOutput,
|
|
1582
|
+
FfiConverterTypeCursorPointOutput,
|
|
1583
|
+
FfiConverterTypeCursorReducedMotion,
|
|
1584
|
+
FfiConverterTypeCursorThemeOutput,
|
|
1585
|
+
FfiConverterTypeCursorThemeSelection,
|
|
1586
|
+
FfiConverterTypeCursorVisualOutput,
|
|
964
1587
|
FfiConverterTypeDesktopScope,
|
|
965
1588
|
FfiConverterTypeDragInput,
|
|
966
1589
|
FfiConverterTypeEffectiveScope,
|
|
@@ -968,6 +1591,8 @@ export default Object.freeze({
|
|
|
968
1591
|
FfiConverterTypeEndSessionOutput,
|
|
969
1592
|
FfiConverterTypeEscalateSessionInput,
|
|
970
1593
|
FfiConverterTypeEscalationReason,
|
|
1594
|
+
FfiConverterTypeGetAgentCursorStateInput,
|
|
1595
|
+
FfiConverterTypeGetAgentCursorStateOutput,
|
|
971
1596
|
FfiConverterTypeGetCursorPositionInput,
|
|
972
1597
|
FfiConverterTypeGetDesktopStateInput,
|
|
973
1598
|
FfiConverterTypeGetScreenSizeInput,
|
|
@@ -980,6 +1605,12 @@ export default Object.freeze({
|
|
|
980
1605
|
FfiConverterTypeScrollDirection,
|
|
981
1606
|
FfiConverterTypeScrollInput,
|
|
982
1607
|
FfiConverterTypeSessionStateOutput,
|
|
1608
|
+
FfiConverterTypeSetAgentCursorEnabledInput,
|
|
1609
|
+
FfiConverterTypeSetAgentCursorEnabledOutput,
|
|
1610
|
+
FfiConverterTypeSetAgentCursorMotionInput,
|
|
1611
|
+
FfiConverterTypeSetAgentCursorMotionOutput,
|
|
1612
|
+
FfiConverterTypeSetAgentCursorThemeInput,
|
|
1613
|
+
FfiConverterTypeSetAgentCursorThemeOutput,
|
|
983
1614
|
FfiConverterTypeStartSessionInput,
|
|
984
1615
|
FfiConverterTypeStartSessionOutput,
|
|
985
1616
|
FfiConverterTypeTypeTextInput,
|