@trycua/cua-driver 0.22.2 → 0.24.0

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.
@@ -876,6 +876,15 @@ export type SessionStateOutput = {
876
876
  session: string;
877
877
  captureScope: CaptureScope;
878
878
  effectiveScope: EffectiveScope;
879
+ /**
880
+ * Whether this session is authorized to use desktop-scope capture and
881
+ * actions. This does not report the operating system's lock-screen state.
882
+ */
883
+ desktopCaptureAuthorized: boolean;
884
+ /**
885
+ * Compatibility field: this reports whether this session has unlocked
886
+ * desktop capture scope. It is not an operating-system lock-screen probe.
887
+ */
879
888
  desktopUnlocked: boolean;
880
889
  escalationReason?: EscalationReason;
881
890
  escalationDetail?: string;
@@ -2290,6 +2290,7 @@ const FfiConverterTypeSessionStateOutput = (() => {
2290
2290
  session: FfiConverterString.read(from),
2291
2291
  captureScope: FfiConverterTypeCaptureScope.read(from),
2292
2292
  effectiveScope: FfiConverterTypeEffectiveScope.read(from),
2293
+ desktopCaptureAuthorized: FfiConverterBool.read(from),
2293
2294
  desktopUnlocked: FfiConverterBool.read(from),
2294
2295
  escalationReason: FfiConverterOptionalTypeEscalationReason.read(from),
2295
2296
  escalationDetail: FfiConverterOptionalString.read(from)
@@ -2299,6 +2300,7 @@ const FfiConverterTypeSessionStateOutput = (() => {
2299
2300
  FfiConverterString.write(value.session, into);
2300
2301
  FfiConverterTypeCaptureScope.write(value.captureScope, into);
2301
2302
  FfiConverterTypeEffectiveScope.write(value.effectiveScope, into);
2303
+ FfiConverterBool.write(value.desktopCaptureAuthorized, into);
2302
2304
  FfiConverterBool.write(value.desktopUnlocked, into);
2303
2305
  FfiConverterOptionalTypeEscalationReason.write(value.escalationReason, into);
2304
2306
  FfiConverterOptionalString.write(value.escalationDetail, into);
@@ -2307,6 +2309,7 @@ const FfiConverterTypeSessionStateOutput = (() => {
2307
2309
  return FfiConverterString.allocationSize(value.session) +
2308
2310
  FfiConverterTypeCaptureScope.allocationSize(value.captureScope) +
2309
2311
  FfiConverterTypeEffectiveScope.allocationSize(value.effectiveScope) +
2312
+ FfiConverterBool.allocationSize(value.desktopCaptureAuthorized) +
2310
2313
  FfiConverterBool.allocationSize(value.desktopUnlocked) +
2311
2314
  FfiConverterOptionalTypeEscalationReason.allocationSize(value.escalationReason) +
2312
2315
  FfiConverterOptionalString.allocationSize(value.escalationDetail);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycua/cua-driver",
3
- "version": "0.22.2",
3
+ "version": "0.24.0",
4
4
  "description": "Rust-backed Cua Driver SDK and embedded Node host",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,11 +42,11 @@
42
42
  "@ubjs/node": "0.31.0-3"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@trycua/cua-driver-darwin-arm64": "0.22.2",
46
- "@trycua/cua-driver-darwin-x64": "0.22.2",
47
- "@trycua/cua-driver-linux-arm64-gnu": "0.22.2",
48
- "@trycua/cua-driver-linux-x64-gnu": "0.22.2",
49
- "@trycua/cua-driver-win32-arm64-msvc": "0.22.2",
50
- "@trycua/cua-driver-win32-x64-msvc": "0.22.2"
45
+ "@trycua/cua-driver-darwin-arm64": "0.24.0",
46
+ "@trycua/cua-driver-darwin-x64": "0.24.0",
47
+ "@trycua/cua-driver-linux-arm64-gnu": "0.24.0",
48
+ "@trycua/cua-driver-linux-x64-gnu": "0.24.0",
49
+ "@trycua/cua-driver-win32-arm64-msvc": "0.24.0",
50
+ "@trycua/cua-driver-win32-x64-msvc": "0.24.0"
51
51
  }
52
52
  }