@domicile-desktop/sdk 0.0.0-alpha-ddde2bfbbaad → 0.0.0-alpha-e1457b57e6b2
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/dist/portal.d.ts +9 -9
- package/dist/portal.js +12 -6
- package/package.json +1 -1
package/dist/portal.d.ts
CHANGED
|
@@ -161,9 +161,13 @@ export type RemoteDesktopBody = {
|
|
|
161
161
|
export type InputCaptureBody = {
|
|
162
162
|
devices: Devices;
|
|
163
163
|
};
|
|
164
|
-
/**
|
|
164
|
+
/** What an application would get of the user, and why it asks. */
|
|
165
165
|
export type AccountBody = {
|
|
166
|
+
/** In the application's own words. */
|
|
166
167
|
reason: string | undefined;
|
|
168
|
+
name: string;
|
|
169
|
+
/** The picture's path, or `undefined` for none. */
|
|
170
|
+
image: string | undefined;
|
|
167
171
|
};
|
|
168
172
|
/** A shortcut an application asks for. */
|
|
169
173
|
export type ProposedShortcut = {
|
|
@@ -303,19 +307,15 @@ export declare const CastSource: {
|
|
|
303
307
|
id: string;
|
|
304
308
|
/** Empty until the client names it. */
|
|
305
309
|
title: string;
|
|
306
|
-
/** Its
|
|
307
|
-
|
|
308
|
-
/** Its application's icon, as a `data:` URL. */
|
|
309
|
-
icon: string | undefined;
|
|
310
|
+
/** Its Wayland app id, which names its desktop entry; empty if unset. */
|
|
311
|
+
appId: string;
|
|
310
312
|
}) => {
|
|
311
313
|
/** The window's id, as `DomicileHost.windows` lists it. */
|
|
312
314
|
id: string;
|
|
313
315
|
/** Empty until the client names it. */
|
|
314
316
|
title: string;
|
|
315
|
-
/** Its
|
|
316
|
-
|
|
317
|
-
/** Its application's icon, as a `data:` URL. */
|
|
318
|
-
icon: string | undefined;
|
|
317
|
+
/** Its Wayland app id, which names its desktop entry; empty if unset. */
|
|
318
|
+
appId: string;
|
|
319
319
|
kind: CastSourceKind.Window;
|
|
320
320
|
};
|
|
321
321
|
};
|
package/dist/portal.js
CHANGED
|
@@ -499,14 +499,21 @@ const remoteDesktopSchema = z.object({
|
|
|
499
499
|
});
|
|
500
500
|
const inputCaptureSchema = z.object({ devices: devicesSchema });
|
|
501
501
|
const accountSchema = z
|
|
502
|
-
.object({
|
|
503
|
-
.
|
|
502
|
+
.object({
|
|
503
|
+
image: z.string().optional(),
|
|
504
|
+
name: z.string(),
|
|
505
|
+
reason: z.string().optional(),
|
|
506
|
+
})
|
|
507
|
+
.transform((body) => ({
|
|
508
|
+
image: body.image,
|
|
509
|
+
name: body.name,
|
|
510
|
+
reason: body.reason,
|
|
511
|
+
}));
|
|
504
512
|
const pairSchema = z.tuple([z.number(), z.number()]);
|
|
505
513
|
const castSourceSchema = z
|
|
506
514
|
.discriminatedUnion("type", [
|
|
507
515
|
z.object({
|
|
508
|
-
|
|
509
|
-
icon: z.string().optional(),
|
|
516
|
+
app_id: z.string(),
|
|
510
517
|
id: z.string(),
|
|
511
518
|
title: z.string(),
|
|
512
519
|
type: z.literal("window"),
|
|
@@ -522,8 +529,7 @@ const castSourceSchema = z
|
|
|
522
529
|
switch (source.type) {
|
|
523
530
|
case "window":
|
|
524
531
|
return CastSource.Window({
|
|
525
|
-
|
|
526
|
-
icon: source.icon,
|
|
532
|
+
appId: source.app_id,
|
|
527
533
|
id: source.id,
|
|
528
534
|
title: source.title,
|
|
529
535
|
});
|
package/package.json
CHANGED