@await-widget/runtime 0.0.26 → 0.0.28

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/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@await-widget/runtime",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
- "author": "LitoMore",
6
+ "author": "Maundy",
7
+ "contributors": [
8
+ "LitoMore",
9
+ "Mogita"
10
+ ],
7
11
  "type": "module",
8
12
  "repository": {
9
13
  "type": "git",
package/types/bridge.d.ts CHANGED
@@ -58,6 +58,12 @@ export declare const AwaitCalendar: {
58
58
  };
59
59
  export declare const AwaitReminder: {
60
60
  get(config?: AwaitReminderConfig): Promise<AwaitReminderItem[] | undefined>;
61
+ set(
62
+ id: string,
63
+ config: {
64
+ completed: boolean;
65
+ },
66
+ ): Promise<void>;
61
67
  };
62
68
  export declare const AwaitSystem: {
63
69
  get(): AwaitSystemInfo;
@@ -124,6 +130,7 @@ type AwaitDefineConfig<T extends Record<string, unknown>, Intents> = {
124
130
  widgetTimeline?: (
125
131
  context: TimelineContext,
126
132
  ) => Timeline<T> | Promise<Timeline<T>>;
133
+ widgetFamilies?: WidgetFamily[];
127
134
  widgetIntents?: {
128
135
  [IntentKey in keyof Intents]: Intents[IntentKey] extends (
129
136
  ...args: infer IntentArguments
package/types/model.d.ts CHANGED
@@ -11,11 +11,11 @@ type WidgetFamily =
11
11
  | 'medium'
12
12
  | 'large'
13
13
  | 'extraLarge'
14
+ | 'extraLargePortrait'
14
15
  | 'fullscreen'
15
16
  | 'accessoryInline'
16
17
  | 'accessoryCircular'
17
- | 'accessoryRectangular'
18
- | 'unknown';
18
+ | 'accessoryRectangular';
19
19
 
20
20
  type SingleNativeView =
21
21
  | string
@@ -236,6 +236,11 @@ type AwaitMusicSource =
236
236
  type: 'station';
237
237
  id: string;
238
238
  name: string;
239
+ }
240
+ | {
241
+ type: 'playlist';
242
+ id: string;
243
+ name: string;
239
244
  };
240
245
 
241
246
  type AwaitNowPlayingInfo = {
@@ -302,6 +307,14 @@ type AwaitMusicPlayConfig =
302
307
  query?: string;
303
308
  type?: 'discovery' | 'user';
304
309
  id?: string;
310
+ }
311
+ | {
312
+ source: 'playlist';
313
+ query?: string;
314
+ type?: 'public' | 'user';
315
+ id?: string;
316
+ shuffle?: boolean;
317
+ loop?: boolean;
305
318
  };
306
319
 
307
320
  type AwaitCalendarConfig = {
@@ -323,10 +336,12 @@ type AwaitCalendarItem = {
323
336
 
324
337
  type AwaitReminderConfig = {
325
338
  type?: 'all' | 'incomplete' | 'completed';
339
+ calendarTitle?: string;
326
340
  limit?: number;
327
341
  };
328
342
 
329
343
  type AwaitReminderItem = {
344
+ id: string;
330
345
  calendarTitle: string;
331
346
  title: string;
332
347
  notes?: string;