@capgo/capacitor-widget-kit 8.1.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.
Files changed (54) hide show
  1. package/CapgoCapacitorWidgetKit.podspec +17 -0
  2. package/LICENSE +373 -0
  3. package/Package.swift +28 -0
  4. package/README.md +1119 -0
  5. package/android/build.gradle +59 -0
  6. package/android/src/main/AndroidManifest.xml +8 -0
  7. package/android/src/main/java/app/capgo/widgetkit/CapgoNativeWidgetBridge.java +311 -0
  8. package/android/src/main/java/app/capgo/widgetkit/CapgoTemplateActionReceiver.java +36 -0
  9. package/android/src/main/java/app/capgo/widgetkit/CapgoTemplateSvgBitmapRenderer.java +25 -0
  10. package/android/src/main/java/app/capgo/widgetkit/CapgoTemplateWidgetBridge.java +31 -0
  11. package/android/src/main/java/app/capgo/widgetkit/CapgoWidgetKit.java +218 -0
  12. package/android/src/main/java/app/capgo/widgetkit/CapgoWidgetKitConstants.java +18 -0
  13. package/android/src/main/java/app/capgo/widgetkit/CapgoWidgetKitPlugin.java +370 -0
  14. package/android/src/main/java/app/capgo/widgetkit/TemplateActivityStore.java +167 -0
  15. package/android/src/main/java/app/capgo/widgetkit/TemplateJsonUtils.java +369 -0
  16. package/android/src/main/java/app/capgo/widgetkit/TemplateRuntime.java +676 -0
  17. package/android/src/main/res/.gitkeep +0 -0
  18. package/dist/docs.json +2223 -0
  19. package/dist/esm/definitions.d.ts +1117 -0
  20. package/dist/esm/definitions.js +2 -0
  21. package/dist/esm/definitions.js.map +1 -0
  22. package/dist/esm/helpers/workout.d.ts +32 -0
  23. package/dist/esm/helpers/workout.js +129 -0
  24. package/dist/esm/helpers/workout.js.map +1 -0
  25. package/dist/esm/index.d.ts +6 -0
  26. package/dist/esm/index.js +9 -0
  27. package/dist/esm/index.js.map +1 -0
  28. package/dist/esm/runtime.d.ts +25 -0
  29. package/dist/esm/runtime.js +653 -0
  30. package/dist/esm/runtime.js.map +1 -0
  31. package/dist/esm/web.d.ts +23 -0
  32. package/dist/esm/web.js +292 -0
  33. package/dist/esm/web.js.map +1 -0
  34. package/dist/plugin.cjs.js +1096 -0
  35. package/dist/plugin.cjs.js.map +1 -0
  36. package/dist/plugin.js +1099 -0
  37. package/dist/plugin.js.map +1 -0
  38. package/ios/Sources/CapgoWidgetKitPlugin/CapgoNativeWidgetBridge.swift +372 -0
  39. package/ios/Sources/CapgoWidgetKitPlugin/CapgoTemplateWidgetBridge.swift +199 -0
  40. package/ios/Sources/CapgoWidgetKitPlugin/CapgoWidgetKit.swift +218 -0
  41. package/ios/Sources/CapgoWidgetKitPlugin/CapgoWidgetKitPlugin.swift +322 -0
  42. package/ios/Sources/CapgoWidgetKitPlugin/CapgoWidgetKitSharedStore.swift +47 -0
  43. package/ios/Sources/CapgoWidgetKitPlugin/CapgoWorkoutLiveActivityComponents.swift +246 -0
  44. package/ios/Sources/CapgoWidgetKitPlugin/CapgoWorkoutLiveActivityWidget.swift +257 -0
  45. package/ios/Sources/CapgoWidgetKitPlugin/CompleteSetIntent.swift +24 -0
  46. package/ios/Sources/CapgoWidgetKitPlugin/TemplateActionIntent.swift +56 -0
  47. package/ios/Sources/CapgoWidgetKitPlugin/TemplateActivityStore.swift +239 -0
  48. package/ios/Sources/CapgoWidgetKitPlugin/TemplateLiveActivityManager.swift +251 -0
  49. package/ios/Sources/CapgoWidgetKitPlugin/TemplateRuntime.swift +1067 -0
  50. package/ios/Sources/CapgoWidgetKitPlugin/WorkoutActivityStore.swift +111 -0
  51. package/ios/Sources/CapgoWidgetKitPlugin/WorkoutLiveActivityManager.swift +263 -0
  52. package/ios/Sources/CapgoWidgetKitPlugin/WorkoutSession.swift +271 -0
  53. package/ios/Tests/CapgoWidgetKitPluginTests/CapgoWidgetKitPluginTests.swift +130 -0
  54. package/package.json +93 -0
package/dist/docs.json ADDED
@@ -0,0 +1,2223 @@
1
+ {
2
+ "api": {
3
+ "name": "CapgoWidgetKitPlugin",
4
+ "slug": "capgowidgetkitplugin",
5
+ "docs": "Capacitor bridge for an iOS-first WidgetKit / Live Activities plugin.\n\nThe core abstraction is a generic SVG template activity:\n- raw SVG templates with binding placeholders\n- declarative action patches\n- timer bindings exposed to the template scope\n- event logging so the host app can process button results later\n\nThe plugin owns shared persistence, declarative action execution, and event retrieval.\nThe host widget extension keeps full freedom over actual WidgetKit rendering.\n\nFull-native widgets can use widget sessions for synchronous shared state and widget messages\nfor asynchronous app/widget jobs without adopting the SVG template renderer.",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "areActivitiesSupported",
10
+ "signature": "() => Promise<ActivitiesSupportedResult>",
11
+ "parameters": [],
12
+ "returns": "Promise<ActivitiesSupportedResult>",
13
+ "tags": [],
14
+ "docs": "Check whether the native template activity bridge can run on the current device.",
15
+ "complexTypes": [
16
+ "ActivitiesSupportedResult"
17
+ ],
18
+ "slug": "areactivitiessupported"
19
+ },
20
+ {
21
+ "name": "startTemplateActivity",
22
+ "signature": "(options: StartTemplateActivityOptions) => Promise<StartTemplateActivityResult>",
23
+ "parameters": [
24
+ {
25
+ "name": "options",
26
+ "docs": "",
27
+ "type": "StartTemplateActivityOptions"
28
+ }
29
+ ],
30
+ "returns": "Promise<StartTemplateActivityResult>",
31
+ "tags": [],
32
+ "docs": "Persist a generic SVG template activity and start the matching native Live Activity bridge.",
33
+ "complexTypes": [
34
+ "StartTemplateActivityResult",
35
+ "StartTemplateActivityOptions"
36
+ ],
37
+ "slug": "starttemplateactivity"
38
+ },
39
+ {
40
+ "name": "updateTemplateActivity",
41
+ "signature": "(options: UpdateTemplateActivityOptions) => Promise<TemplateActivityResult>",
42
+ "parameters": [
43
+ {
44
+ "name": "options",
45
+ "docs": "",
46
+ "type": "UpdateTemplateActivityOptions"
47
+ }
48
+ ],
49
+ "returns": "Promise<TemplateActivityResult>",
50
+ "tags": [],
51
+ "docs": "Replace part or all of the stored activity definition/state.",
52
+ "complexTypes": [
53
+ "TemplateActivityResult",
54
+ "UpdateTemplateActivityOptions"
55
+ ],
56
+ "slug": "updatetemplateactivity"
57
+ },
58
+ {
59
+ "name": "endTemplateActivity",
60
+ "signature": "(options: EndTemplateActivityOptions) => Promise<void>",
61
+ "parameters": [
62
+ {
63
+ "name": "options",
64
+ "docs": "",
65
+ "type": "EndTemplateActivityOptions"
66
+ }
67
+ ],
68
+ "returns": "Promise<void>",
69
+ "tags": [],
70
+ "docs": "End a running activity while optionally persisting one last state snapshot.",
71
+ "complexTypes": [
72
+ "EndTemplateActivityOptions"
73
+ ],
74
+ "slug": "endtemplateactivity"
75
+ },
76
+ {
77
+ "name": "performTemplateAction",
78
+ "signature": "(options: PerformTemplateActionOptions) => Promise<PerformTemplateActionResult>",
79
+ "parameters": [
80
+ {
81
+ "name": "options",
82
+ "docs": "",
83
+ "type": "PerformTemplateActionOptions"
84
+ }
85
+ ],
86
+ "returns": "Promise<PerformTemplateActionResult>",
87
+ "tags": [],
88
+ "docs": "Execute one declarative action and record the resulting event.",
89
+ "complexTypes": [
90
+ "PerformTemplateActionResult",
91
+ "PerformTemplateActionOptions"
92
+ ],
93
+ "slug": "performtemplateaction"
94
+ },
95
+ {
96
+ "name": "getTemplateActivity",
97
+ "signature": "(options: GetTemplateActivityOptions) => Promise<TemplateActivityResult>",
98
+ "parameters": [
99
+ {
100
+ "name": "options",
101
+ "docs": "",
102
+ "type": "GetTemplateActivityOptions"
103
+ }
104
+ ],
105
+ "returns": "Promise<TemplateActivityResult>",
106
+ "tags": [],
107
+ "docs": "Read one activity back from the shared store.",
108
+ "complexTypes": [
109
+ "TemplateActivityResult",
110
+ "GetTemplateActivityOptions"
111
+ ],
112
+ "slug": "gettemplateactivity"
113
+ },
114
+ {
115
+ "name": "listTemplateActivities",
116
+ "signature": "() => Promise<ListTemplateActivitiesResult>",
117
+ "parameters": [],
118
+ "returns": "Promise<ListTemplateActivitiesResult>",
119
+ "tags": [],
120
+ "docs": "List every activity currently known by the plugin.",
121
+ "complexTypes": [
122
+ "ListTemplateActivitiesResult"
123
+ ],
124
+ "slug": "listtemplateactivities"
125
+ },
126
+ {
127
+ "name": "listTemplateEvents",
128
+ "signature": "(options?: ListTemplateEventsOptions | undefined) => Promise<ListTemplateEventsResult>",
129
+ "parameters": [
130
+ {
131
+ "name": "options",
132
+ "docs": "",
133
+ "type": "ListTemplateEventsOptions | undefined"
134
+ }
135
+ ],
136
+ "returns": "Promise<ListTemplateEventsResult>",
137
+ "tags": [],
138
+ "docs": "List stored action events so the app can react to widget interactions later.",
139
+ "complexTypes": [
140
+ "ListTemplateEventsResult",
141
+ "ListTemplateEventsOptions"
142
+ ],
143
+ "slug": "listtemplateevents"
144
+ },
145
+ {
146
+ "name": "acknowledgeTemplateEvents",
147
+ "signature": "(options: AcknowledgeTemplateEventsOptions) => Promise<void>",
148
+ "parameters": [
149
+ {
150
+ "name": "options",
151
+ "docs": "",
152
+ "type": "AcknowledgeTemplateEventsOptions"
153
+ }
154
+ ],
155
+ "returns": "Promise<void>",
156
+ "tags": [],
157
+ "docs": "Mark previously processed events as acknowledged.",
158
+ "complexTypes": [
159
+ "AcknowledgeTemplateEventsOptions"
160
+ ],
161
+ "slug": "acknowledgetemplateevents"
162
+ },
163
+ {
164
+ "name": "startWidgetSession",
165
+ "signature": "(options: StartWidgetSessionOptions) => Promise<StartWidgetSessionResult>",
166
+ "parameters": [
167
+ {
168
+ "name": "options",
169
+ "docs": "",
170
+ "type": "StartWidgetSessionOptions"
171
+ }
172
+ ],
173
+ "returns": "Promise<StartWidgetSessionResult>",
174
+ "tags": [],
175
+ "docs": "Start a full-native widget session backed by shared JSON state.",
176
+ "complexTypes": [
177
+ "StartWidgetSessionResult",
178
+ "StartWidgetSessionOptions"
179
+ ],
180
+ "slug": "startwidgetsession"
181
+ },
182
+ {
183
+ "name": "updateWidgetSession",
184
+ "signature": "(options: UpdateWidgetSessionOptions) => Promise<WidgetSessionResult>",
185
+ "parameters": [
186
+ {
187
+ "name": "options",
188
+ "docs": "",
189
+ "type": "UpdateWidgetSessionOptions"
190
+ }
191
+ ],
192
+ "returns": "Promise<WidgetSessionResult>",
193
+ "tags": [],
194
+ "docs": "Update a full-native widget session.",
195
+ "complexTypes": [
196
+ "WidgetSessionResult",
197
+ "UpdateWidgetSessionOptions"
198
+ ],
199
+ "slug": "updatewidgetsession"
200
+ },
201
+ {
202
+ "name": "stopWidgetSession",
203
+ "signature": "(options: StopWidgetSessionOptions) => Promise<void>",
204
+ "parameters": [
205
+ {
206
+ "name": "options",
207
+ "docs": "",
208
+ "type": "StopWidgetSessionOptions"
209
+ }
210
+ ],
211
+ "returns": "Promise<void>",
212
+ "tags": [],
213
+ "docs": "Stop a full-native widget session.",
214
+ "complexTypes": [
215
+ "StopWidgetSessionOptions"
216
+ ],
217
+ "slug": "stopwidgetsession"
218
+ },
219
+ {
220
+ "name": "getWidgetSession",
221
+ "signature": "(options: GetWidgetSessionOptions) => Promise<WidgetSessionResult>",
222
+ "parameters": [
223
+ {
224
+ "name": "options",
225
+ "docs": "",
226
+ "type": "GetWidgetSessionOptions"
227
+ }
228
+ ],
229
+ "returns": "Promise<WidgetSessionResult>",
230
+ "tags": [],
231
+ "docs": "Read one full-native widget session.",
232
+ "complexTypes": [
233
+ "WidgetSessionResult",
234
+ "GetWidgetSessionOptions"
235
+ ],
236
+ "slug": "getwidgetsession"
237
+ },
238
+ {
239
+ "name": "listWidgetSessions",
240
+ "signature": "() => Promise<ListWidgetSessionsResult>",
241
+ "parameters": [],
242
+ "returns": "Promise<ListWidgetSessionsResult>",
243
+ "tags": [],
244
+ "docs": "List every full-native widget session currently known by the plugin.",
245
+ "complexTypes": [
246
+ "ListWidgetSessionsResult"
247
+ ],
248
+ "slug": "listwidgetsessions"
249
+ },
250
+ {
251
+ "name": "sendWidgetMessage",
252
+ "signature": "(options: SendWidgetMessageOptions) => Promise<SendWidgetMessageResult>",
253
+ "parameters": [
254
+ {
255
+ "name": "options",
256
+ "docs": "",
257
+ "type": "SendWidgetMessageOptions"
258
+ }
259
+ ],
260
+ "returns": "Promise<SendWidgetMessageResult>",
261
+ "tags": [],
262
+ "docs": "Queue a message between the app and native widget code.",
263
+ "complexTypes": [
264
+ "SendWidgetMessageResult",
265
+ "SendWidgetMessageOptions"
266
+ ],
267
+ "slug": "sendwidgetmessage"
268
+ },
269
+ {
270
+ "name": "listWidgetMessages",
271
+ "signature": "(options?: ListWidgetMessagesOptions | undefined) => Promise<ListWidgetMessagesResult>",
272
+ "parameters": [
273
+ {
274
+ "name": "options",
275
+ "docs": "",
276
+ "type": "ListWidgetMessagesOptions | undefined"
277
+ }
278
+ ],
279
+ "returns": "Promise<ListWidgetMessagesResult>",
280
+ "tags": [],
281
+ "docs": "List queued full-native widget bridge messages.",
282
+ "complexTypes": [
283
+ "ListWidgetMessagesResult",
284
+ "ListWidgetMessagesOptions"
285
+ ],
286
+ "slug": "listwidgetmessages"
287
+ },
288
+ {
289
+ "name": "acknowledgeWidgetMessages",
290
+ "signature": "(options: AcknowledgeWidgetMessagesOptions) => Promise<void>",
291
+ "parameters": [
292
+ {
293
+ "name": "options",
294
+ "docs": "",
295
+ "type": "AcknowledgeWidgetMessagesOptions"
296
+ }
297
+ ],
298
+ "returns": "Promise<void>",
299
+ "tags": [],
300
+ "docs": "Mark widget bridge messages as acknowledged after processing.",
301
+ "complexTypes": [
302
+ "AcknowledgeWidgetMessagesOptions"
303
+ ],
304
+ "slug": "acknowledgewidgetmessages"
305
+ },
306
+ {
307
+ "name": "completeWidgetMessage",
308
+ "signature": "(options: CompleteWidgetMessageOptions) => Promise<WidgetMessageResult>",
309
+ "parameters": [
310
+ {
311
+ "name": "options",
312
+ "docs": "",
313
+ "type": "CompleteWidgetMessageOptions"
314
+ }
315
+ ],
316
+ "returns": "Promise<WidgetMessageResult>",
317
+ "tags": [],
318
+ "docs": "Complete or fail an async widget bridge message.",
319
+ "complexTypes": [
320
+ "WidgetMessageResult",
321
+ "CompleteWidgetMessageOptions"
322
+ ],
323
+ "slug": "completewidgetmessage"
324
+ },
325
+ {
326
+ "name": "getPluginVersion",
327
+ "signature": "() => Promise<PluginVersionResult>",
328
+ "parameters": [],
329
+ "returns": "Promise<PluginVersionResult>",
330
+ "tags": [],
331
+ "docs": "Return the platform implementation version marker.",
332
+ "complexTypes": [
333
+ "PluginVersionResult"
334
+ ],
335
+ "slug": "getpluginversion"
336
+ }
337
+ ],
338
+ "properties": []
339
+ },
340
+ "interfaces": [
341
+ {
342
+ "name": "ActivitiesSupportedResult",
343
+ "slug": "activitiessupportedresult",
344
+ "docs": "Result of a Live Activities capability check.",
345
+ "tags": [],
346
+ "methods": [],
347
+ "properties": [
348
+ {
349
+ "name": "supported",
350
+ "tags": [],
351
+ "docs": "Whether the current device and runtime can run the native template activity bridge.",
352
+ "complexTypes": [],
353
+ "type": "boolean"
354
+ },
355
+ {
356
+ "name": "reason",
357
+ "tags": [],
358
+ "docs": "Human-readable reason when support is unavailable.",
359
+ "complexTypes": [],
360
+ "type": "string | undefined"
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ "name": "StartTemplateActivityResult",
366
+ "slug": "starttemplateactivityresult",
367
+ "docs": "Result when starting a generic template activity.",
368
+ "tags": [],
369
+ "methods": [],
370
+ "properties": [
371
+ {
372
+ "name": "activity",
373
+ "tags": [],
374
+ "docs": "Stored activity snapshot.",
375
+ "complexTypes": [
376
+ "SvgTemplateActivityRecord"
377
+ ],
378
+ "type": "SvgTemplateActivityRecord"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "name": "SvgTemplateActivityRecord",
384
+ "slug": "svgtemplateactivityrecord",
385
+ "docs": "Stored activity snapshot returned by the plugin.",
386
+ "tags": [],
387
+ "methods": [],
388
+ "properties": [
389
+ {
390
+ "name": "activityId",
391
+ "tags": [],
392
+ "docs": "Stable plugin activity identifier.",
393
+ "complexTypes": [],
394
+ "type": "string"
395
+ },
396
+ {
397
+ "name": "definition",
398
+ "tags": [],
399
+ "docs": "Full template definition.",
400
+ "complexTypes": [
401
+ "SvgTemplateDefinition"
402
+ ],
403
+ "type": "SvgTemplateDefinition"
404
+ },
405
+ {
406
+ "name": "state",
407
+ "tags": [],
408
+ "docs": "Persisted JSON state.",
409
+ "complexTypes": [
410
+ "SvgTemplateState"
411
+ ],
412
+ "type": "SvgTemplateState"
413
+ },
414
+ {
415
+ "name": "timers",
416
+ "tags": [],
417
+ "docs": "Timer runtime state keyed by timer id.",
418
+ "complexTypes": [
419
+ "Record",
420
+ "SvgTemplateTimerState"
421
+ ],
422
+ "type": "Record<string, SvgTemplateTimerState>"
423
+ },
424
+ {
425
+ "name": "status",
426
+ "tags": [],
427
+ "docs": "Current lifecycle status.",
428
+ "complexTypes": [],
429
+ "type": "'active' | 'ended'"
430
+ },
431
+ {
432
+ "name": "openUrl",
433
+ "tags": [],
434
+ "docs": "Optional deep link opened when the widget body is tapped.",
435
+ "complexTypes": [],
436
+ "type": "string | undefined"
437
+ },
438
+ {
439
+ "name": "updatedAt",
440
+ "tags": [],
441
+ "docs": "Last update timestamp.",
442
+ "complexTypes": [],
443
+ "type": "number"
444
+ },
445
+ {
446
+ "name": "revision",
447
+ "tags": [],
448
+ "docs": "Monotonic revision incremented on every state change.",
449
+ "complexTypes": [],
450
+ "type": "number"
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "name": "SvgTemplateDefinition",
456
+ "slug": "svgtemplatedefinition",
457
+ "docs": "Generic SVG template definition stored by the plugin.",
458
+ "tags": [],
459
+ "methods": [],
460
+ "properties": [
461
+ {
462
+ "name": "id",
463
+ "tags": [],
464
+ "docs": "Stable template identifier.",
465
+ "complexTypes": [],
466
+ "type": "string"
467
+ },
468
+ {
469
+ "name": "version",
470
+ "tags": [],
471
+ "docs": "Optional version marker for migrations.",
472
+ "complexTypes": [],
473
+ "type": "string | undefined"
474
+ },
475
+ {
476
+ "name": "layouts",
477
+ "tags": [],
478
+ "docs": "Available WidgetKit layouts.",
479
+ "complexTypes": [
480
+ "SvgTemplateLayouts"
481
+ ],
482
+ "type": "SvgTemplateLayouts"
483
+ },
484
+ {
485
+ "name": "actions",
486
+ "tags": [],
487
+ "docs": "Optional declarative actions.",
488
+ "complexTypes": [
489
+ "SvgTemplateActionDefinition"
490
+ ],
491
+ "type": "SvgTemplateActionDefinition[] | undefined"
492
+ },
493
+ {
494
+ "name": "timers",
495
+ "tags": [],
496
+ "docs": "Optional timer definitions exposed to the template runtime.",
497
+ "complexTypes": [
498
+ "SvgTemplateTimerDefinition"
499
+ ],
500
+ "type": "SvgTemplateTimerDefinition[] | undefined"
501
+ },
502
+ {
503
+ "name": "metadata",
504
+ "tags": [],
505
+ "docs": "Optional JSON metadata mirrored in the runtime scope under `meta.template`.",
506
+ "complexTypes": [
507
+ "JsonObject"
508
+ ],
509
+ "type": "JsonObject"
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "name": "SvgTemplateLayouts",
515
+ "slug": "svgtemplatelayouts",
516
+ "docs": "Bundle of optional WidgetKit surface layouts.",
517
+ "tags": [],
518
+ "methods": [],
519
+ "properties": [
520
+ {
521
+ "name": "lockScreen",
522
+ "tags": [],
523
+ "docs": "Primary lock-screen / banner layout.",
524
+ "complexTypes": [
525
+ "SvgTemplateLayout"
526
+ ],
527
+ "type": "SvgTemplateLayout"
528
+ },
529
+ {
530
+ "name": "dynamicIslandExpanded",
531
+ "tags": [],
532
+ "docs": "Optional expanded Dynamic Island layout.",
533
+ "complexTypes": [
534
+ "SvgTemplateLayout"
535
+ ],
536
+ "type": "SvgTemplateLayout"
537
+ },
538
+ {
539
+ "name": "dynamicIslandCompactLeading",
540
+ "tags": [],
541
+ "docs": "Optional compact leading Dynamic Island layout.",
542
+ "complexTypes": [
543
+ "SvgTemplateLayout"
544
+ ],
545
+ "type": "SvgTemplateLayout"
546
+ },
547
+ {
548
+ "name": "dynamicIslandCompactTrailing",
549
+ "tags": [],
550
+ "docs": "Optional compact trailing Dynamic Island layout.",
551
+ "complexTypes": [
552
+ "SvgTemplateLayout"
553
+ ],
554
+ "type": "SvgTemplateLayout"
555
+ },
556
+ {
557
+ "name": "dynamicIslandMinimal",
558
+ "tags": [],
559
+ "docs": "Optional minimal Dynamic Island layout.",
560
+ "complexTypes": [
561
+ "SvgTemplateLayout"
562
+ ],
563
+ "type": "SvgTemplateLayout"
564
+ }
565
+ ]
566
+ },
567
+ {
568
+ "name": "SvgTemplateLayoutWithSvg",
569
+ "slug": "svgtemplatelayoutwithsvg",
570
+ "docs": "SVG layout variant backed by a base SVG string.",
571
+ "tags": [],
572
+ "methods": [],
573
+ "properties": [
574
+ {
575
+ "name": "svg",
576
+ "tags": [],
577
+ "docs": "Raw SVG template string used when no frame is selected.\n\nThe runtime resolves `{{state.*}}`, `{{timers.*}}`, and `{{meta.*}}` placeholders before rendering.",
578
+ "complexTypes": [],
579
+ "type": "string"
580
+ },
581
+ {
582
+ "name": "frames",
583
+ "tags": [],
584
+ "docs": "Optional named SVG frames for click-driven or timer-driven frame changes.",
585
+ "complexTypes": [
586
+ "SvgTemplateFrame"
587
+ ],
588
+ "type": "SvgTemplateFrame[] | undefined"
589
+ },
590
+ {
591
+ "name": "frameIdPath",
592
+ "tags": [],
593
+ "docs": "Optional state/runtime path that resolves to the active frame id.\n\nExamples: `state.frame`, `state.widgets.{{state.activeIndex}}.frame`, or `{{state.frame}}`.",
594
+ "complexTypes": [],
595
+ "type": "string | undefined"
596
+ },
597
+ {
598
+ "name": "defaultFrameId",
599
+ "tags": [],
600
+ "docs": "Frame id used when `frameIdPath` is missing or resolves to an unknown frame.",
601
+ "complexTypes": [],
602
+ "type": "string | undefined"
603
+ },
604
+ {
605
+ "name": "width",
606
+ "tags": [],
607
+ "docs": "Nominal SVG width used for scaling hotspots.",
608
+ "complexTypes": [],
609
+ "type": "number"
610
+ },
611
+ {
612
+ "name": "height",
613
+ "tags": [],
614
+ "docs": "Nominal SVG height used for scaling hotspots.",
615
+ "complexTypes": [],
616
+ "type": "number"
617
+ },
618
+ {
619
+ "name": "hotspots",
620
+ "tags": [],
621
+ "docs": "Interactive overlay regions.",
622
+ "complexTypes": [
623
+ "SvgTemplateHotspot"
624
+ ],
625
+ "type": "SvgTemplateHotspot[] | undefined"
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "name": "SvgTemplateFrame",
631
+ "slug": "svgtemplateframe",
632
+ "docs": "Named SVG frame that can be selected by activity state.",
633
+ "tags": [],
634
+ "methods": [],
635
+ "properties": [
636
+ {
637
+ "name": "id",
638
+ "tags": [],
639
+ "docs": "Stable frame identifier.",
640
+ "complexTypes": [],
641
+ "type": "string"
642
+ },
643
+ {
644
+ "name": "svg",
645
+ "tags": [],
646
+ "docs": "Raw SVG template string for this frame.\n\nThe runtime resolves `{{state.*}}`, `{{timers.*}}`, and `{{meta.*}}` placeholders before rendering.",
647
+ "complexTypes": [],
648
+ "type": "string"
649
+ },
650
+ {
651
+ "name": "hotspots",
652
+ "tags": [],
653
+ "docs": "Optional frame-specific interactive regions.\n\nWhen omitted, the parent layout hotspots are used.",
654
+ "complexTypes": [
655
+ "SvgTemplateHotspot"
656
+ ],
657
+ "type": "SvgTemplateHotspot[] | undefined"
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "name": "SvgTemplateHotspot",
663
+ "slug": "svgtemplatehotspot",
664
+ "docs": "Interactive region overlaid on top of a rendered SVG layout.",
665
+ "tags": [],
666
+ "methods": [],
667
+ "properties": [
668
+ {
669
+ "name": "id",
670
+ "tags": [],
671
+ "docs": "Stable hotspot identifier.",
672
+ "complexTypes": [],
673
+ "type": "string"
674
+ },
675
+ {
676
+ "name": "actionId",
677
+ "tags": [],
678
+ "docs": "Action identifier executed when the region is tapped.",
679
+ "complexTypes": [],
680
+ "type": "string"
681
+ },
682
+ {
683
+ "name": "x",
684
+ "tags": [],
685
+ "docs": "X position in the SVG coordinate space.",
686
+ "complexTypes": [],
687
+ "type": "number"
688
+ },
689
+ {
690
+ "name": "y",
691
+ "tags": [],
692
+ "docs": "Y position in the SVG coordinate space.",
693
+ "complexTypes": [],
694
+ "type": "number"
695
+ },
696
+ {
697
+ "name": "width",
698
+ "tags": [],
699
+ "docs": "Hotspot width in the SVG coordinate space.",
700
+ "complexTypes": [],
701
+ "type": "number"
702
+ },
703
+ {
704
+ "name": "height",
705
+ "tags": [],
706
+ "docs": "Hotspot height in the SVG coordinate space.",
707
+ "complexTypes": [],
708
+ "type": "number"
709
+ },
710
+ {
711
+ "name": "label",
712
+ "tags": [],
713
+ "docs": "Optional accessibility label for the interactive region.",
714
+ "complexTypes": [],
715
+ "type": "string | undefined"
716
+ },
717
+ {
718
+ "name": "role",
719
+ "tags": [],
720
+ "docs": "Optional semantic role.",
721
+ "complexTypes": [],
722
+ "type": "'button' | 'link' | undefined"
723
+ },
724
+ {
725
+ "name": "payload",
726
+ "tags": [],
727
+ "docs": "Optional static payload forwarded when the hotspot triggers its action.",
728
+ "complexTypes": [
729
+ "JsonObject"
730
+ ],
731
+ "type": "JsonObject"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "name": "JsonObject",
737
+ "slug": "jsonobject",
738
+ "docs": "JSON-safe object used as activity state.",
739
+ "tags": [],
740
+ "methods": [],
741
+ "properties": []
742
+ },
743
+ {
744
+ "name": "SvgTemplateLayoutWithFrames",
745
+ "slug": "svgtemplatelayoutwithframes",
746
+ "docs": "SVG layout variant backed by named SVG frames.",
747
+ "tags": [],
748
+ "methods": [],
749
+ "properties": [
750
+ {
751
+ "name": "svg",
752
+ "tags": [],
753
+ "docs": "Raw SVG template string used when no frame is selected.\n\nThe runtime resolves `{{state.*}}`, `{{timers.*}}`, and `{{meta.*}}` placeholders before rendering.",
754
+ "complexTypes": [],
755
+ "type": "string | undefined"
756
+ },
757
+ {
758
+ "name": "frames",
759
+ "tags": [],
760
+ "docs": "Named SVG frames for click-driven or timer-driven frame changes.",
761
+ "complexTypes": [
762
+ "SvgTemplateFrame"
763
+ ],
764
+ "type": "SvgTemplateFrame[]"
765
+ },
766
+ {
767
+ "name": "frameIdPath",
768
+ "tags": [],
769
+ "docs": "Optional state/runtime path that resolves to the active frame id.\n\nExamples: `state.frame`, `state.widgets.{{state.activeIndex}}.frame`, or `{{state.frame}}`.",
770
+ "complexTypes": [],
771
+ "type": "string | undefined"
772
+ },
773
+ {
774
+ "name": "defaultFrameId",
775
+ "tags": [],
776
+ "docs": "Frame id used when `frameIdPath` is missing or resolves to an unknown frame.",
777
+ "complexTypes": [],
778
+ "type": "string | undefined"
779
+ },
780
+ {
781
+ "name": "width",
782
+ "tags": [],
783
+ "docs": "Nominal SVG width used for scaling hotspots.",
784
+ "complexTypes": [],
785
+ "type": "number"
786
+ },
787
+ {
788
+ "name": "height",
789
+ "tags": [],
790
+ "docs": "Nominal SVG height used for scaling hotspots.",
791
+ "complexTypes": [],
792
+ "type": "number"
793
+ },
794
+ {
795
+ "name": "hotspots",
796
+ "tags": [],
797
+ "docs": "Interactive overlay regions.",
798
+ "complexTypes": [
799
+ "SvgTemplateHotspot"
800
+ ],
801
+ "type": "SvgTemplateHotspot[] | undefined"
802
+ }
803
+ ]
804
+ },
805
+ {
806
+ "name": "SvgTemplateActionDefinition",
807
+ "slug": "svgtemplateactiondefinition",
808
+ "docs": "Declarative action attached to one or more hotspots.",
809
+ "tags": [],
810
+ "methods": [],
811
+ "properties": [
812
+ {
813
+ "name": "id",
814
+ "tags": [],
815
+ "docs": "Stable action identifier.",
816
+ "complexTypes": [],
817
+ "type": "string"
818
+ },
819
+ {
820
+ "name": "eventName",
821
+ "tags": [],
822
+ "docs": "Optional event name used in the action log.",
823
+ "complexTypes": [],
824
+ "type": "string | undefined"
825
+ },
826
+ {
827
+ "name": "label",
828
+ "tags": [],
829
+ "docs": "Optional UI label.",
830
+ "complexTypes": [],
831
+ "type": "string | undefined"
832
+ },
833
+ {
834
+ "name": "patches",
835
+ "tags": [],
836
+ "docs": "Ordered state mutations executed when the action runs.",
837
+ "complexTypes": [
838
+ "SvgTemplateStatePatch"
839
+ ],
840
+ "type": "SvgTemplateStatePatch[] | undefined"
841
+ },
842
+ {
843
+ "name": "timerMutations",
844
+ "tags": [],
845
+ "docs": "Ordered timer mutations executed when the action runs.",
846
+ "complexTypes": [
847
+ "SvgTemplateTimerMutation"
848
+ ],
849
+ "type": "SvgTemplateTimerMutation[] | undefined"
850
+ },
851
+ {
852
+ "name": "frameMutations",
853
+ "tags": [],
854
+ "docs": "Ordered frame mutations executed when the action runs.",
855
+ "complexTypes": [
856
+ "SvgTemplateFrameMutation"
857
+ ],
858
+ "type": "SvgTemplateFrameMutation[] | undefined"
859
+ },
860
+ {
861
+ "name": "openUrl",
862
+ "tags": [],
863
+ "docs": "Optional deep link opened by the host widget when the action runs.",
864
+ "complexTypes": [],
865
+ "type": "string | undefined"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "name": "SvgTemplateStatePatch",
871
+ "slug": "svgtemplatestatepatch",
872
+ "docs": "Declarative mutation applied to the stored activity state.",
873
+ "tags": [],
874
+ "methods": [],
875
+ "properties": [
876
+ {
877
+ "name": "op",
878
+ "tags": [],
879
+ "docs": "Mutation operation.",
880
+ "complexTypes": [],
881
+ "type": "'set' | 'increment' | 'toggle' | 'unset' | 'timestamp'"
882
+ },
883
+ {
884
+ "name": "path",
885
+ "tags": [],
886
+ "docs": "Destination state path.\n\nThe path may itself contain `{{...}}` placeholders.",
887
+ "complexTypes": [],
888
+ "type": "string"
889
+ },
890
+ {
891
+ "name": "value",
892
+ "tags": [],
893
+ "docs": "Optional literal value used by the mutation.",
894
+ "complexTypes": [
895
+ "JsonValue"
896
+ ],
897
+ "type": "JsonValue"
898
+ },
899
+ {
900
+ "name": "valuePath",
901
+ "tags": [],
902
+ "docs": "Optional source path used to copy a value from the current runtime scope.\n\nThe path may itself contain `{{...}}` placeholders.",
903
+ "complexTypes": [],
904
+ "type": "string | undefined"
905
+ },
906
+ {
907
+ "name": "valueTemplate",
908
+ "tags": [],
909
+ "docs": "Optional template-resolved value.\n\nIf the string is a single `{{...}}` token, the raw referenced JSON value is copied.\nOtherwise the resolved string is stored.",
910
+ "complexTypes": [],
911
+ "type": "string | undefined"
912
+ },
913
+ {
914
+ "name": "amount",
915
+ "tags": [],
916
+ "docs": "Increment amount for `increment`.",
917
+ "complexTypes": [],
918
+ "type": "number | undefined"
919
+ }
920
+ ]
921
+ },
922
+ {
923
+ "name": "SvgTemplateTimerMutation",
924
+ "slug": "svgtemplatetimermutation",
925
+ "docs": "Declarative timer mutation triggered by an action.",
926
+ "tags": [],
927
+ "methods": [],
928
+ "properties": [
929
+ {
930
+ "name": "op",
931
+ "tags": [],
932
+ "docs": "Mutation operation.",
933
+ "complexTypes": [],
934
+ "type": "'toggle' | 'start' | 'stop' | 'restart' | 'pause' | 'resume' | 'reset' | 'setDuration'"
935
+ },
936
+ {
937
+ "name": "timerId",
938
+ "tags": [],
939
+ "docs": "Target timer identifier.",
940
+ "complexTypes": [],
941
+ "type": "string"
942
+ },
943
+ {
944
+ "name": "durationMs",
945
+ "tags": [],
946
+ "docs": "Optional fixed duration override in milliseconds.",
947
+ "complexTypes": [],
948
+ "type": "number | undefined"
949
+ },
950
+ {
951
+ "name": "durationPath",
952
+ "tags": [],
953
+ "docs": "Optional path that resolves to a duration override in milliseconds.\n\nThe path may itself contain `{{...}}` placeholders.",
954
+ "complexTypes": [],
955
+ "type": "string | undefined"
956
+ }
957
+ ]
958
+ },
959
+ {
960
+ "name": "SvgTemplateFrameMutation",
961
+ "slug": "svgtemplateframemutation",
962
+ "docs": "Declarative frame mutation triggered by an action.",
963
+ "tags": [],
964
+ "methods": [],
965
+ "properties": [
966
+ {
967
+ "name": "op",
968
+ "tags": [],
969
+ "docs": "Mutation operation.",
970
+ "complexTypes": [],
971
+ "type": "'set' | 'toggle' | 'next' | 'previous'"
972
+ },
973
+ {
974
+ "name": "path",
975
+ "tags": [],
976
+ "docs": "Destination state path that stores the active frame id.\n\nThe path may itself contain `{{...}}` placeholders.",
977
+ "complexTypes": [],
978
+ "type": "string"
979
+ },
980
+ {
981
+ "name": "frameId",
982
+ "tags": [],
983
+ "docs": "Frame id used by `set`, or the alternate frame id used by `toggle`.\n\nThe value may contain `{{...}}` placeholders.",
984
+ "complexTypes": [],
985
+ "type": "string | undefined"
986
+ },
987
+ {
988
+ "name": "frameIds",
989
+ "tags": [],
990
+ "docs": "Ordered frame ids used by `next`, `previous`, and `toggle`.\n\nWhen omitted, `surface` can be used to read frame ids from a layout definition.",
991
+ "complexTypes": [],
992
+ "type": "string[] | undefined"
993
+ },
994
+ {
995
+ "name": "surface",
996
+ "tags": [],
997
+ "docs": "Optional surface whose layout frames should be used when `frameIds` is omitted.",
998
+ "complexTypes": [
999
+ "SvgTemplateSurface"
1000
+ ],
1001
+ "type": "SvgTemplateSurface"
1002
+ },
1003
+ {
1004
+ "name": "wrap",
1005
+ "tags": [],
1006
+ "docs": "Whether `next` and `previous` wrap at the ends.\n\nDefaults to `true`.",
1007
+ "complexTypes": [],
1008
+ "type": "boolean | undefined"
1009
+ }
1010
+ ]
1011
+ },
1012
+ {
1013
+ "name": "SvgTemplateTimerDefinition",
1014
+ "slug": "svgtemplatetimerdefinition",
1015
+ "docs": "Timer binding exposed to SVG templates.",
1016
+ "tags": [],
1017
+ "methods": [],
1018
+ "properties": [
1019
+ {
1020
+ "name": "id",
1021
+ "tags": [],
1022
+ "docs": "Stable timer identifier.",
1023
+ "complexTypes": [],
1024
+ "type": "string"
1025
+ },
1026
+ {
1027
+ "name": "durationMs",
1028
+ "tags": [],
1029
+ "docs": "Optional fixed duration in milliseconds.",
1030
+ "complexTypes": [],
1031
+ "type": "number | undefined"
1032
+ },
1033
+ {
1034
+ "name": "durationPath",
1035
+ "tags": [],
1036
+ "docs": "Optional state path that resolves to a duration in milliseconds.\n\nThe path may itself contain `{{...}}` placeholders.",
1037
+ "complexTypes": [],
1038
+ "type": "string | undefined"
1039
+ },
1040
+ {
1041
+ "name": "startAtPath",
1042
+ "tags": [],
1043
+ "docs": "Optional state path that resolves to the timer start timestamp in milliseconds.\n\nThe path may itself contain `{{...}}` placeholders.",
1044
+ "complexTypes": [],
1045
+ "type": "string | undefined"
1046
+ },
1047
+ {
1048
+ "name": "autoStart",
1049
+ "tags": [],
1050
+ "docs": "When true, the timer starts automatically when the activity is created.",
1051
+ "complexTypes": [],
1052
+ "type": "boolean | undefined"
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "name": "SvgTemplateTimerState",
1058
+ "slug": "svgtemplatetimerstate",
1059
+ "docs": "Persisted timer runtime state.",
1060
+ "tags": [],
1061
+ "methods": [],
1062
+ "properties": [
1063
+ {
1064
+ "name": "id",
1065
+ "tags": [],
1066
+ "docs": "Timer identifier.",
1067
+ "complexTypes": [],
1068
+ "type": "string"
1069
+ },
1070
+ {
1071
+ "name": "startedAt",
1072
+ "tags": [],
1073
+ "docs": "Start timestamp in milliseconds, or `null` when the timer is idle.",
1074
+ "complexTypes": [],
1075
+ "type": "number | null | undefined"
1076
+ },
1077
+ {
1078
+ "name": "elapsedMs",
1079
+ "tags": [],
1080
+ "docs": "Elapsed milliseconds already accumulated before the current run.\n\nThis is used to preserve timer progress while paused.",
1081
+ "complexTypes": [],
1082
+ "type": "number | undefined"
1083
+ },
1084
+ {
1085
+ "name": "durationMs",
1086
+ "tags": [],
1087
+ "docs": "Current timer duration in milliseconds.",
1088
+ "complexTypes": [],
1089
+ "type": "number"
1090
+ },
1091
+ {
1092
+ "name": "status",
1093
+ "tags": [],
1094
+ "docs": "Current timer status.",
1095
+ "complexTypes": [],
1096
+ "type": "'idle' | 'running' | 'paused' | 'finished' | 'stopped'"
1097
+ },
1098
+ {
1099
+ "name": "updatedAt",
1100
+ "tags": [],
1101
+ "docs": "Last update timestamp.",
1102
+ "complexTypes": [],
1103
+ "type": "number"
1104
+ }
1105
+ ]
1106
+ },
1107
+ {
1108
+ "name": "StartTemplateActivityOptions",
1109
+ "slug": "starttemplateactivityoptions",
1110
+ "docs": "Options for starting a generic SVG template activity.",
1111
+ "tags": [],
1112
+ "methods": [],
1113
+ "properties": [
1114
+ {
1115
+ "name": "activityId",
1116
+ "tags": [],
1117
+ "docs": "Optional explicit activity identifier. When omitted, the native runtime creates one.",
1118
+ "complexTypes": [],
1119
+ "type": "string | undefined"
1120
+ },
1121
+ {
1122
+ "name": "definition",
1123
+ "tags": [],
1124
+ "docs": "Generic SVG template definition.",
1125
+ "complexTypes": [
1126
+ "SvgTemplateDefinition"
1127
+ ],
1128
+ "type": "SvgTemplateDefinition"
1129
+ },
1130
+ {
1131
+ "name": "state",
1132
+ "tags": [],
1133
+ "docs": "Initial JSON state exposed under `state.*`.",
1134
+ "complexTypes": [
1135
+ "SvgTemplateState"
1136
+ ],
1137
+ "type": "SvgTemplateState"
1138
+ },
1139
+ {
1140
+ "name": "openUrl",
1141
+ "tags": [],
1142
+ "docs": "Optional deep link used when the widget body is tapped.",
1143
+ "complexTypes": [],
1144
+ "type": "string | undefined"
1145
+ }
1146
+ ]
1147
+ },
1148
+ {
1149
+ "name": "TemplateActivityResult",
1150
+ "slug": "templateactivityresult",
1151
+ "docs": "Result when reading or updating a single activity.",
1152
+ "tags": [],
1153
+ "methods": [],
1154
+ "properties": [
1155
+ {
1156
+ "name": "activity",
1157
+ "tags": [],
1158
+ "docs": "Stored activity snapshot, or `null` when not found.",
1159
+ "complexTypes": [
1160
+ "SvgTemplateActivityRecord"
1161
+ ],
1162
+ "type": "SvgTemplateActivityRecord | null"
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ "name": "UpdateTemplateActivityOptions",
1168
+ "slug": "updatetemplateactivityoptions",
1169
+ "docs": "Options for updating an existing template activity.",
1170
+ "tags": [],
1171
+ "methods": [],
1172
+ "properties": [
1173
+ {
1174
+ "name": "activityId",
1175
+ "tags": [],
1176
+ "docs": "Activity identifier returned by `startTemplateActivity`.",
1177
+ "complexTypes": [],
1178
+ "type": "string"
1179
+ },
1180
+ {
1181
+ "name": "definition",
1182
+ "tags": [],
1183
+ "docs": "Optional replacement definition.",
1184
+ "complexTypes": [
1185
+ "SvgTemplateDefinition"
1186
+ ],
1187
+ "type": "SvgTemplateDefinition"
1188
+ },
1189
+ {
1190
+ "name": "state",
1191
+ "tags": [],
1192
+ "docs": "Optional replacement state.",
1193
+ "complexTypes": [
1194
+ "SvgTemplateState"
1195
+ ],
1196
+ "type": "SvgTemplateState"
1197
+ },
1198
+ {
1199
+ "name": "openUrl",
1200
+ "tags": [],
1201
+ "docs": "Optional replacement deep link.",
1202
+ "complexTypes": [],
1203
+ "type": "string | undefined"
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "name": "EndTemplateActivityOptions",
1209
+ "slug": "endtemplateactivityoptions",
1210
+ "docs": "Options for ending a template activity.",
1211
+ "tags": [],
1212
+ "methods": [],
1213
+ "properties": [
1214
+ {
1215
+ "name": "activityId",
1216
+ "tags": [],
1217
+ "docs": "Activity identifier returned by `startTemplateActivity`.",
1218
+ "complexTypes": [],
1219
+ "type": "string"
1220
+ },
1221
+ {
1222
+ "name": "state",
1223
+ "tags": [],
1224
+ "docs": "Optional final state persisted before ending.",
1225
+ "complexTypes": [
1226
+ "SvgTemplateState"
1227
+ ],
1228
+ "type": "SvgTemplateState"
1229
+ }
1230
+ ]
1231
+ },
1232
+ {
1233
+ "name": "PerformTemplateActionResult",
1234
+ "slug": "performtemplateactionresult",
1235
+ "docs": "Result after executing an action.",
1236
+ "tags": [],
1237
+ "methods": [],
1238
+ "properties": [
1239
+ {
1240
+ "name": "activity",
1241
+ "tags": [],
1242
+ "docs": "Updated activity snapshot.",
1243
+ "complexTypes": [
1244
+ "SvgTemplateActivityRecord"
1245
+ ],
1246
+ "type": "SvgTemplateActivityRecord"
1247
+ },
1248
+ {
1249
+ "name": "event",
1250
+ "tags": [],
1251
+ "docs": "Action event emitted by the runtime.",
1252
+ "complexTypes": [
1253
+ "SvgTemplateActionEvent"
1254
+ ],
1255
+ "type": "SvgTemplateActionEvent"
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "name": "SvgTemplateActionEvent",
1261
+ "slug": "svgtemplateactionevent",
1262
+ "docs": "Event emitted whenever a declarative action is executed.",
1263
+ "tags": [],
1264
+ "methods": [],
1265
+ "properties": [
1266
+ {
1267
+ "name": "eventId",
1268
+ "tags": [],
1269
+ "docs": "Stable event identifier.",
1270
+ "complexTypes": [],
1271
+ "type": "string"
1272
+ },
1273
+ {
1274
+ "name": "activityId",
1275
+ "tags": [],
1276
+ "docs": "Activity identifier associated with the event.",
1277
+ "complexTypes": [],
1278
+ "type": "string"
1279
+ },
1280
+ {
1281
+ "name": "actionId",
1282
+ "tags": [],
1283
+ "docs": "Action identifier that produced the event.",
1284
+ "complexTypes": [],
1285
+ "type": "string"
1286
+ },
1287
+ {
1288
+ "name": "eventName",
1289
+ "tags": [],
1290
+ "docs": "Optional event name copied from the action definition.",
1291
+ "complexTypes": [],
1292
+ "type": "string | undefined"
1293
+ },
1294
+ {
1295
+ "name": "sourceId",
1296
+ "tags": [],
1297
+ "docs": "Optional source identifier, typically the hotspot id that triggered the action.",
1298
+ "complexTypes": [],
1299
+ "type": "string | undefined"
1300
+ },
1301
+ {
1302
+ "name": "createdAt",
1303
+ "tags": [],
1304
+ "docs": "Event creation timestamp in milliseconds.",
1305
+ "complexTypes": [],
1306
+ "type": "number"
1307
+ },
1308
+ {
1309
+ "name": "acknowledgedAt",
1310
+ "tags": [],
1311
+ "docs": "Timestamp in milliseconds when the app acknowledged the event.",
1312
+ "complexTypes": [],
1313
+ "type": "number | null | undefined"
1314
+ },
1315
+ {
1316
+ "name": "payload",
1317
+ "tags": [],
1318
+ "docs": "Optional caller-provided payload.",
1319
+ "complexTypes": [
1320
+ "JsonObject"
1321
+ ],
1322
+ "type": "JsonObject | null | undefined"
1323
+ },
1324
+ {
1325
+ "name": "state",
1326
+ "tags": [],
1327
+ "docs": "State snapshot after the action was applied.",
1328
+ "complexTypes": [
1329
+ "SvgTemplateState"
1330
+ ],
1331
+ "type": "SvgTemplateState"
1332
+ },
1333
+ {
1334
+ "name": "timers",
1335
+ "tags": [],
1336
+ "docs": "Timer snapshot after the action was applied.",
1337
+ "complexTypes": [
1338
+ "Record",
1339
+ "SvgTemplateTimerState"
1340
+ ],
1341
+ "type": "Record<string, SvgTemplateTimerState>"
1342
+ }
1343
+ ]
1344
+ },
1345
+ {
1346
+ "name": "PerformTemplateActionOptions",
1347
+ "slug": "performtemplateactionoptions",
1348
+ "docs": "Options for executing a declarative action.",
1349
+ "tags": [],
1350
+ "methods": [],
1351
+ "properties": [
1352
+ {
1353
+ "name": "activityId",
1354
+ "tags": [],
1355
+ "docs": "Activity identifier returned by `startTemplateActivity`.",
1356
+ "complexTypes": [],
1357
+ "type": "string"
1358
+ },
1359
+ {
1360
+ "name": "actionId",
1361
+ "tags": [],
1362
+ "docs": "Action identifier declared in the template definition.",
1363
+ "complexTypes": [],
1364
+ "type": "string"
1365
+ },
1366
+ {
1367
+ "name": "sourceId",
1368
+ "tags": [],
1369
+ "docs": "Optional source identifier, typically the hotspot id that triggered the action.",
1370
+ "complexTypes": [],
1371
+ "type": "string | undefined"
1372
+ },
1373
+ {
1374
+ "name": "payload",
1375
+ "tags": [],
1376
+ "docs": "Optional payload stored with the emitted event and exposed to declarative patches under `{{action.payload.*}}`.",
1377
+ "complexTypes": [
1378
+ "JsonObject"
1379
+ ],
1380
+ "type": "JsonObject"
1381
+ }
1382
+ ]
1383
+ },
1384
+ {
1385
+ "name": "GetTemplateActivityOptions",
1386
+ "slug": "gettemplateactivityoptions",
1387
+ "docs": "Options for reading one stored activity.",
1388
+ "tags": [],
1389
+ "methods": [],
1390
+ "properties": [
1391
+ {
1392
+ "name": "activityId",
1393
+ "tags": [],
1394
+ "docs": "Activity identifier to load.",
1395
+ "complexTypes": [],
1396
+ "type": "string"
1397
+ }
1398
+ ]
1399
+ },
1400
+ {
1401
+ "name": "ListTemplateActivitiesResult",
1402
+ "slug": "listtemplateactivitiesresult",
1403
+ "docs": "Result when listing stored activities.",
1404
+ "tags": [],
1405
+ "methods": [],
1406
+ "properties": [
1407
+ {
1408
+ "name": "activities",
1409
+ "tags": [],
1410
+ "docs": "Stored activity snapshots.",
1411
+ "complexTypes": [
1412
+ "SvgTemplateActivityRecord"
1413
+ ],
1414
+ "type": "SvgTemplateActivityRecord[]"
1415
+ }
1416
+ ]
1417
+ },
1418
+ {
1419
+ "name": "ListTemplateEventsResult",
1420
+ "slug": "listtemplateeventsresult",
1421
+ "docs": "Result when listing action events.",
1422
+ "tags": [],
1423
+ "methods": [],
1424
+ "properties": [
1425
+ {
1426
+ "name": "events",
1427
+ "tags": [],
1428
+ "docs": "Matching action events.",
1429
+ "complexTypes": [
1430
+ "SvgTemplateActionEvent"
1431
+ ],
1432
+ "type": "SvgTemplateActionEvent[]"
1433
+ }
1434
+ ]
1435
+ },
1436
+ {
1437
+ "name": "ListTemplateEventsOptions",
1438
+ "slug": "listtemplateeventsoptions",
1439
+ "docs": "Options when listing action events.",
1440
+ "tags": [],
1441
+ "methods": [],
1442
+ "properties": [
1443
+ {
1444
+ "name": "activityId",
1445
+ "tags": [],
1446
+ "docs": "Optional activity filter.",
1447
+ "complexTypes": [],
1448
+ "type": "string | undefined"
1449
+ },
1450
+ {
1451
+ "name": "unacknowledgedOnly",
1452
+ "tags": [],
1453
+ "docs": "When true, only unacknowledged events are returned.",
1454
+ "complexTypes": [],
1455
+ "type": "boolean | undefined"
1456
+ }
1457
+ ]
1458
+ },
1459
+ {
1460
+ "name": "AcknowledgeTemplateEventsOptions",
1461
+ "slug": "acknowledgetemplateeventsoptions",
1462
+ "docs": "Options for acknowledging events after the host app processes them.",
1463
+ "tags": [],
1464
+ "methods": [],
1465
+ "properties": [
1466
+ {
1467
+ "name": "eventIds",
1468
+ "tags": [],
1469
+ "docs": "Optional explicit event ids to acknowledge.",
1470
+ "complexTypes": [],
1471
+ "type": "string[] | undefined"
1472
+ },
1473
+ {
1474
+ "name": "activityId",
1475
+ "tags": [],
1476
+ "docs": "Optional activity id shortcut that acknowledges every event for the activity.",
1477
+ "complexTypes": [],
1478
+ "type": "string | undefined"
1479
+ }
1480
+ ]
1481
+ },
1482
+ {
1483
+ "name": "StartWidgetSessionResult",
1484
+ "slug": "startwidgetsessionresult",
1485
+ "docs": "Result when starting a full-native widget session.",
1486
+ "tags": [],
1487
+ "methods": [],
1488
+ "properties": [
1489
+ {
1490
+ "name": "session",
1491
+ "tags": [],
1492
+ "docs": "Stored session snapshot.",
1493
+ "complexTypes": [
1494
+ "WidgetSessionRecord"
1495
+ ],
1496
+ "type": "WidgetSessionRecord"
1497
+ }
1498
+ ]
1499
+ },
1500
+ {
1501
+ "name": "WidgetSessionRecord",
1502
+ "slug": "widgetsessionrecord",
1503
+ "docs": "Stored full-native widget session.",
1504
+ "tags": [],
1505
+ "methods": [],
1506
+ "properties": [
1507
+ {
1508
+ "name": "widgetId",
1509
+ "tags": [],
1510
+ "docs": "Stable widget/session identifier.",
1511
+ "complexTypes": [],
1512
+ "type": "string"
1513
+ },
1514
+ {
1515
+ "name": "kind",
1516
+ "tags": [],
1517
+ "docs": "Optional product-defined session kind.",
1518
+ "complexTypes": [],
1519
+ "type": "string | undefined"
1520
+ },
1521
+ {
1522
+ "name": "state",
1523
+ "tags": [],
1524
+ "docs": "JSON state shared synchronously between the app and native widget code.",
1525
+ "complexTypes": [
1526
+ "JsonObject"
1527
+ ],
1528
+ "type": "JsonObject"
1529
+ },
1530
+ {
1531
+ "name": "metadata",
1532
+ "tags": [],
1533
+ "docs": "Optional JSON metadata for native widget code.",
1534
+ "complexTypes": [
1535
+ "JsonObject"
1536
+ ],
1537
+ "type": "JsonObject"
1538
+ },
1539
+ {
1540
+ "name": "status",
1541
+ "tags": [],
1542
+ "docs": "Current session status.",
1543
+ "complexTypes": [],
1544
+ "type": "'active' | 'stopped'"
1545
+ },
1546
+ {
1547
+ "name": "createdAt",
1548
+ "tags": [],
1549
+ "docs": "Creation timestamp.",
1550
+ "complexTypes": [],
1551
+ "type": "number"
1552
+ },
1553
+ {
1554
+ "name": "updatedAt",
1555
+ "tags": [],
1556
+ "docs": "Last update timestamp.",
1557
+ "complexTypes": [],
1558
+ "type": "number"
1559
+ },
1560
+ {
1561
+ "name": "revision",
1562
+ "tags": [],
1563
+ "docs": "Monotonic revision incremented on every session state change.",
1564
+ "complexTypes": [],
1565
+ "type": "number"
1566
+ }
1567
+ ]
1568
+ },
1569
+ {
1570
+ "name": "StartWidgetSessionOptions",
1571
+ "slug": "startwidgetsessionoptions",
1572
+ "docs": "Options for starting a full-native widget session.",
1573
+ "tags": [],
1574
+ "methods": [],
1575
+ "properties": [
1576
+ {
1577
+ "name": "widgetId",
1578
+ "tags": [],
1579
+ "docs": "Optional explicit widget/session identifier. When omitted, the native runtime creates one.",
1580
+ "complexTypes": [],
1581
+ "type": "string | undefined"
1582
+ },
1583
+ {
1584
+ "name": "kind",
1585
+ "tags": [],
1586
+ "docs": "Optional product-defined session kind.",
1587
+ "complexTypes": [],
1588
+ "type": "string | undefined"
1589
+ },
1590
+ {
1591
+ "name": "state",
1592
+ "tags": [],
1593
+ "docs": "Initial shared state.",
1594
+ "complexTypes": [
1595
+ "JsonObject"
1596
+ ],
1597
+ "type": "JsonObject"
1598
+ },
1599
+ {
1600
+ "name": "metadata",
1601
+ "tags": [],
1602
+ "docs": "Optional metadata for native widget code.",
1603
+ "complexTypes": [
1604
+ "JsonObject"
1605
+ ],
1606
+ "type": "JsonObject"
1607
+ }
1608
+ ]
1609
+ },
1610
+ {
1611
+ "name": "WidgetSessionResult",
1612
+ "slug": "widgetsessionresult",
1613
+ "docs": "Result when reading or updating one full-native widget session.",
1614
+ "tags": [],
1615
+ "methods": [],
1616
+ "properties": [
1617
+ {
1618
+ "name": "session",
1619
+ "tags": [],
1620
+ "docs": "Stored session snapshot, or `null` when not found.",
1621
+ "complexTypes": [
1622
+ "WidgetSessionRecord"
1623
+ ],
1624
+ "type": "WidgetSessionRecord | null"
1625
+ }
1626
+ ]
1627
+ },
1628
+ {
1629
+ "name": "UpdateWidgetSessionOptions",
1630
+ "slug": "updatewidgetsessionoptions",
1631
+ "docs": "Options for updating a full-native widget session.",
1632
+ "tags": [],
1633
+ "methods": [],
1634
+ "properties": [
1635
+ {
1636
+ "name": "widgetId",
1637
+ "tags": [],
1638
+ "docs": "Widget/session identifier returned by `startWidgetSession`.",
1639
+ "complexTypes": [],
1640
+ "type": "string"
1641
+ },
1642
+ {
1643
+ "name": "state",
1644
+ "tags": [],
1645
+ "docs": "Replacement or merge patch for shared state.",
1646
+ "complexTypes": [
1647
+ "JsonObject"
1648
+ ],
1649
+ "type": "JsonObject"
1650
+ },
1651
+ {
1652
+ "name": "metadata",
1653
+ "tags": [],
1654
+ "docs": "Replacement or merge patch for metadata.",
1655
+ "complexTypes": [
1656
+ "JsonObject"
1657
+ ],
1658
+ "type": "JsonObject"
1659
+ },
1660
+ {
1661
+ "name": "merge",
1662
+ "tags": [],
1663
+ "docs": "When true, object values are deep-merged instead of replaced.",
1664
+ "complexTypes": [],
1665
+ "type": "boolean | undefined"
1666
+ }
1667
+ ]
1668
+ },
1669
+ {
1670
+ "name": "StopWidgetSessionOptions",
1671
+ "slug": "stopwidgetsessionoptions",
1672
+ "docs": "Options for stopping a full-native widget session.",
1673
+ "tags": [],
1674
+ "methods": [],
1675
+ "properties": [
1676
+ {
1677
+ "name": "widgetId",
1678
+ "tags": [],
1679
+ "docs": "Widget/session identifier returned by `startWidgetSession`.",
1680
+ "complexTypes": [],
1681
+ "type": "string"
1682
+ },
1683
+ {
1684
+ "name": "state",
1685
+ "tags": [],
1686
+ "docs": "Optional final shared state.",
1687
+ "complexTypes": [
1688
+ "JsonObject"
1689
+ ],
1690
+ "type": "JsonObject"
1691
+ }
1692
+ ]
1693
+ },
1694
+ {
1695
+ "name": "GetWidgetSessionOptions",
1696
+ "slug": "getwidgetsessionoptions",
1697
+ "docs": "Options for reading one full-native widget session.",
1698
+ "tags": [],
1699
+ "methods": [],
1700
+ "properties": [
1701
+ {
1702
+ "name": "widgetId",
1703
+ "tags": [],
1704
+ "docs": "Widget/session identifier to load.",
1705
+ "complexTypes": [],
1706
+ "type": "string"
1707
+ }
1708
+ ]
1709
+ },
1710
+ {
1711
+ "name": "ListWidgetSessionsResult",
1712
+ "slug": "listwidgetsessionsresult",
1713
+ "docs": "Result when listing full-native widget sessions.",
1714
+ "tags": [],
1715
+ "methods": [],
1716
+ "properties": [
1717
+ {
1718
+ "name": "sessions",
1719
+ "tags": [],
1720
+ "docs": "Stored session snapshots.",
1721
+ "complexTypes": [
1722
+ "WidgetSessionRecord"
1723
+ ],
1724
+ "type": "WidgetSessionRecord[]"
1725
+ }
1726
+ ]
1727
+ },
1728
+ {
1729
+ "name": "SendWidgetMessageResult",
1730
+ "slug": "sendwidgetmessageresult",
1731
+ "docs": "Result after sending a widget bridge message.",
1732
+ "tags": [],
1733
+ "methods": [],
1734
+ "properties": [
1735
+ {
1736
+ "name": "message",
1737
+ "tags": [],
1738
+ "docs": "Stored message snapshot.",
1739
+ "complexTypes": [
1740
+ "WidgetBridgeMessage"
1741
+ ],
1742
+ "type": "WidgetBridgeMessage"
1743
+ }
1744
+ ]
1745
+ },
1746
+ {
1747
+ "name": "WidgetBridgeMessage",
1748
+ "slug": "widgetbridgemessage",
1749
+ "docs": "Queued message used for async app/widget jobs.",
1750
+ "tags": [],
1751
+ "methods": [],
1752
+ "properties": [
1753
+ {
1754
+ "name": "messageId",
1755
+ "tags": [],
1756
+ "docs": "Stable message identifier.",
1757
+ "complexTypes": [],
1758
+ "type": "string"
1759
+ },
1760
+ {
1761
+ "name": "widgetId",
1762
+ "tags": [],
1763
+ "docs": "Widget/session identifier associated with the message.",
1764
+ "complexTypes": [],
1765
+ "type": "string"
1766
+ },
1767
+ {
1768
+ "name": "direction",
1769
+ "tags": [],
1770
+ "docs": "Message direction.",
1771
+ "complexTypes": [
1772
+ "WidgetMessageDirection"
1773
+ ],
1774
+ "type": "WidgetMessageDirection"
1775
+ },
1776
+ {
1777
+ "name": "name",
1778
+ "tags": [],
1779
+ "docs": "Product-defined message or job name.",
1780
+ "complexTypes": [],
1781
+ "type": "string"
1782
+ },
1783
+ {
1784
+ "name": "payload",
1785
+ "tags": [],
1786
+ "docs": "Optional JSON payload.",
1787
+ "complexTypes": [
1788
+ "JsonObject"
1789
+ ],
1790
+ "type": "JsonObject | null | undefined"
1791
+ },
1792
+ {
1793
+ "name": "expectsResponse",
1794
+ "tags": [],
1795
+ "docs": "Whether the sender expects a later response.",
1796
+ "complexTypes": [],
1797
+ "type": "boolean"
1798
+ },
1799
+ {
1800
+ "name": "status",
1801
+ "tags": [],
1802
+ "docs": "Current message status.",
1803
+ "complexTypes": [
1804
+ "WidgetMessageStatus"
1805
+ ],
1806
+ "type": "WidgetMessageStatus"
1807
+ },
1808
+ {
1809
+ "name": "createdAt",
1810
+ "tags": [],
1811
+ "docs": "Message creation timestamp.",
1812
+ "complexTypes": [],
1813
+ "type": "number"
1814
+ },
1815
+ {
1816
+ "name": "acknowledgedAt",
1817
+ "tags": [],
1818
+ "docs": "Timestamp in milliseconds when the receiver acknowledged the message.",
1819
+ "complexTypes": [],
1820
+ "type": "number | null | undefined"
1821
+ },
1822
+ {
1823
+ "name": "completedAt",
1824
+ "tags": [],
1825
+ "docs": "Timestamp in milliseconds when the message was completed or failed.",
1826
+ "complexTypes": [],
1827
+ "type": "number | null | undefined"
1828
+ },
1829
+ {
1830
+ "name": "response",
1831
+ "tags": [],
1832
+ "docs": "Optional JSON response for async jobs.",
1833
+ "complexTypes": [
1834
+ "JsonObject"
1835
+ ],
1836
+ "type": "JsonObject | null | undefined"
1837
+ },
1838
+ {
1839
+ "name": "error",
1840
+ "tags": [],
1841
+ "docs": "Optional failure message for async jobs.",
1842
+ "complexTypes": [],
1843
+ "type": "string | null | undefined"
1844
+ }
1845
+ ]
1846
+ },
1847
+ {
1848
+ "name": "SendWidgetMessageOptions",
1849
+ "slug": "sendwidgetmessageoptions",
1850
+ "docs": "Options for sending a full-native widget bridge message.",
1851
+ "tags": [],
1852
+ "methods": [],
1853
+ "properties": [
1854
+ {
1855
+ "name": "widgetId",
1856
+ "tags": [],
1857
+ "docs": "Widget/session identifier associated with the message.",
1858
+ "complexTypes": [],
1859
+ "type": "string"
1860
+ },
1861
+ {
1862
+ "name": "name",
1863
+ "tags": [],
1864
+ "docs": "Product-defined message or job name.",
1865
+ "complexTypes": [],
1866
+ "type": "string"
1867
+ },
1868
+ {
1869
+ "name": "direction",
1870
+ "tags": [],
1871
+ "docs": "Optional message direction.\n\nDefaults to `appToWidget` when called from the app.",
1872
+ "complexTypes": [
1873
+ "WidgetMessageDirection"
1874
+ ],
1875
+ "type": "WidgetMessageDirection"
1876
+ },
1877
+ {
1878
+ "name": "payload",
1879
+ "tags": [],
1880
+ "docs": "Optional JSON payload.",
1881
+ "complexTypes": [
1882
+ "JsonObject"
1883
+ ],
1884
+ "type": "JsonObject"
1885
+ },
1886
+ {
1887
+ "name": "expectsResponse",
1888
+ "tags": [],
1889
+ "docs": "Whether the sender expects a later response.",
1890
+ "complexTypes": [],
1891
+ "type": "boolean | undefined"
1892
+ }
1893
+ ]
1894
+ },
1895
+ {
1896
+ "name": "ListWidgetMessagesResult",
1897
+ "slug": "listwidgetmessagesresult",
1898
+ "docs": "Result when listing full-native widget bridge messages.",
1899
+ "tags": [],
1900
+ "methods": [],
1901
+ "properties": [
1902
+ {
1903
+ "name": "messages",
1904
+ "tags": [],
1905
+ "docs": "Matching messages.",
1906
+ "complexTypes": [
1907
+ "WidgetBridgeMessage"
1908
+ ],
1909
+ "type": "WidgetBridgeMessage[]"
1910
+ }
1911
+ ]
1912
+ },
1913
+ {
1914
+ "name": "ListWidgetMessagesOptions",
1915
+ "slug": "listwidgetmessagesoptions",
1916
+ "docs": "Options when listing full-native widget bridge messages.",
1917
+ "tags": [],
1918
+ "methods": [],
1919
+ "properties": [
1920
+ {
1921
+ "name": "widgetId",
1922
+ "tags": [],
1923
+ "docs": "Optional widget/session filter.",
1924
+ "complexTypes": [],
1925
+ "type": "string | undefined"
1926
+ },
1927
+ {
1928
+ "name": "direction",
1929
+ "tags": [],
1930
+ "docs": "Optional direction filter.",
1931
+ "complexTypes": [
1932
+ "WidgetMessageDirection"
1933
+ ],
1934
+ "type": "WidgetMessageDirection"
1935
+ },
1936
+ {
1937
+ "name": "unacknowledgedOnly",
1938
+ "tags": [],
1939
+ "docs": "When true, only unacknowledged messages are returned.",
1940
+ "complexTypes": [],
1941
+ "type": "boolean | undefined"
1942
+ },
1943
+ {
1944
+ "name": "pendingOnly",
1945
+ "tags": [],
1946
+ "docs": "When true, only pending messages are returned.",
1947
+ "complexTypes": [],
1948
+ "type": "boolean | undefined"
1949
+ }
1950
+ ]
1951
+ },
1952
+ {
1953
+ "name": "AcknowledgeWidgetMessagesOptions",
1954
+ "slug": "acknowledgewidgetmessagesoptions",
1955
+ "docs": "Options for acknowledging widget bridge messages after processing them.",
1956
+ "tags": [],
1957
+ "methods": [],
1958
+ "properties": [
1959
+ {
1960
+ "name": "messageIds",
1961
+ "tags": [],
1962
+ "docs": "Optional explicit message ids to acknowledge.",
1963
+ "complexTypes": [],
1964
+ "type": "string[] | undefined"
1965
+ },
1966
+ {
1967
+ "name": "widgetId",
1968
+ "tags": [],
1969
+ "docs": "Optional widget/session shortcut that acknowledges matching messages.",
1970
+ "complexTypes": [],
1971
+ "type": "string | undefined"
1972
+ },
1973
+ {
1974
+ "name": "direction",
1975
+ "tags": [],
1976
+ "docs": "Optional direction filter.",
1977
+ "complexTypes": [
1978
+ "WidgetMessageDirection"
1979
+ ],
1980
+ "type": "WidgetMessageDirection"
1981
+ }
1982
+ ]
1983
+ },
1984
+ {
1985
+ "name": "WidgetMessageResult",
1986
+ "slug": "widgetmessageresult",
1987
+ "docs": "Result after completing a widget bridge message.",
1988
+ "tags": [],
1989
+ "methods": [],
1990
+ "properties": [
1991
+ {
1992
+ "name": "message",
1993
+ "tags": [],
1994
+ "docs": "Stored message snapshot, or `null` when not found.",
1995
+ "complexTypes": [
1996
+ "WidgetBridgeMessage"
1997
+ ],
1998
+ "type": "WidgetBridgeMessage | null"
1999
+ }
2000
+ ]
2001
+ },
2002
+ {
2003
+ "name": "CompleteWidgetMessageOptions",
2004
+ "slug": "completewidgetmessageoptions",
2005
+ "docs": "Options for completing an async widget bridge message.",
2006
+ "tags": [],
2007
+ "methods": [],
2008
+ "properties": [
2009
+ {
2010
+ "name": "messageId",
2011
+ "tags": [],
2012
+ "docs": "Message identifier returned by `sendWidgetMessage`.",
2013
+ "complexTypes": [],
2014
+ "type": "string"
2015
+ },
2016
+ {
2017
+ "name": "response",
2018
+ "tags": [],
2019
+ "docs": "Optional JSON response payload.",
2020
+ "complexTypes": [
2021
+ "JsonObject"
2022
+ ],
2023
+ "type": "JsonObject"
2024
+ },
2025
+ {
2026
+ "name": "error",
2027
+ "tags": [],
2028
+ "docs": "Optional error string. When set, the message status becomes `failed`.",
2029
+ "complexTypes": [],
2030
+ "type": "string | undefined"
2031
+ }
2032
+ ]
2033
+ },
2034
+ {
2035
+ "name": "PluginVersionResult",
2036
+ "slug": "pluginversionresult",
2037
+ "docs": "Result payload for plugin version queries.",
2038
+ "tags": [],
2039
+ "methods": [],
2040
+ "properties": [
2041
+ {
2042
+ "name": "version",
2043
+ "tags": [],
2044
+ "docs": "Native implementation version marker.",
2045
+ "complexTypes": [],
2046
+ "type": "string"
2047
+ }
2048
+ ]
2049
+ }
2050
+ ],
2051
+ "enums": [],
2052
+ "typeAliases": [
2053
+ {
2054
+ "name": "SvgTemplateLayout",
2055
+ "slug": "svgtemplatelayout",
2056
+ "docs": "SVG layout variant for one WidgetKit surface.",
2057
+ "types": [
2058
+ {
2059
+ "text": "SvgTemplateLayoutWithSvg",
2060
+ "complexTypes": [
2061
+ "SvgTemplateLayoutWithSvg"
2062
+ ]
2063
+ },
2064
+ {
2065
+ "text": "SvgTemplateLayoutWithFrames",
2066
+ "complexTypes": [
2067
+ "SvgTemplateLayoutWithFrames"
2068
+ ]
2069
+ }
2070
+ ]
2071
+ },
2072
+ {
2073
+ "name": "JsonValue",
2074
+ "slug": "jsonvalue",
2075
+ "docs": "Any JSON-safe value accepted by the plugin.",
2076
+ "types": [
2077
+ {
2078
+ "text": "JsonPrimitive",
2079
+ "complexTypes": [
2080
+ "JsonPrimitive"
2081
+ ]
2082
+ },
2083
+ {
2084
+ "text": "JsonObject",
2085
+ "complexTypes": [
2086
+ "JsonObject"
2087
+ ]
2088
+ },
2089
+ {
2090
+ "text": "JsonArray",
2091
+ "complexTypes": [
2092
+ "JsonArray"
2093
+ ]
2094
+ }
2095
+ ]
2096
+ },
2097
+ {
2098
+ "name": "JsonPrimitive",
2099
+ "slug": "jsonprimitive",
2100
+ "docs": "JSON-safe primitive value.",
2101
+ "types": [
2102
+ {
2103
+ "text": "string",
2104
+ "complexTypes": []
2105
+ },
2106
+ {
2107
+ "text": "number",
2108
+ "complexTypes": []
2109
+ },
2110
+ {
2111
+ "text": "boolean",
2112
+ "complexTypes": []
2113
+ },
2114
+ {
2115
+ "text": "null",
2116
+ "complexTypes": []
2117
+ }
2118
+ ]
2119
+ },
2120
+ {
2121
+ "name": "JsonArray",
2122
+ "slug": "jsonarray",
2123
+ "docs": "JSON-safe array used as activity state.",
2124
+ "types": [
2125
+ {
2126
+ "text": "JsonValue[]",
2127
+ "complexTypes": [
2128
+ "JsonValue"
2129
+ ]
2130
+ }
2131
+ ]
2132
+ },
2133
+ {
2134
+ "name": "SvgTemplateSurface",
2135
+ "slug": "svgtemplatesurface",
2136
+ "docs": "Named WidgetKit surface for one SVG layout variant.",
2137
+ "types": [
2138
+ {
2139
+ "text": "'lockScreen'",
2140
+ "complexTypes": []
2141
+ },
2142
+ {
2143
+ "text": "'dynamicIslandExpanded'",
2144
+ "complexTypes": []
2145
+ },
2146
+ {
2147
+ "text": "'dynamicIslandCompactLeading'",
2148
+ "complexTypes": []
2149
+ },
2150
+ {
2151
+ "text": "'dynamicIslandCompactTrailing'",
2152
+ "complexTypes": []
2153
+ },
2154
+ {
2155
+ "text": "'dynamicIslandMinimal'",
2156
+ "complexTypes": []
2157
+ }
2158
+ ]
2159
+ },
2160
+ {
2161
+ "name": "SvgTemplateState",
2162
+ "slug": "svgtemplatestate",
2163
+ "docs": "Structured state payload persisted for an activity.",
2164
+ "types": [
2165
+ {
2166
+ "text": "JsonObject",
2167
+ "complexTypes": [
2168
+ "JsonObject"
2169
+ ]
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "name": "Record",
2175
+ "slug": "record",
2176
+ "docs": "Construct a type with a set of properties K of type T",
2177
+ "types": [
2178
+ {
2179
+ "text": "{\r\n [P in K]: T;\r\n}",
2180
+ "complexTypes": [
2181
+ "K",
2182
+ "T"
2183
+ ]
2184
+ }
2185
+ ]
2186
+ },
2187
+ {
2188
+ "name": "WidgetMessageDirection",
2189
+ "slug": "widgetmessagedirection",
2190
+ "docs": "Message direction for the full-native widget bridge.",
2191
+ "types": [
2192
+ {
2193
+ "text": "'appToWidget'",
2194
+ "complexTypes": []
2195
+ },
2196
+ {
2197
+ "text": "'widgetToApp'",
2198
+ "complexTypes": []
2199
+ }
2200
+ ]
2201
+ },
2202
+ {
2203
+ "name": "WidgetMessageStatus",
2204
+ "slug": "widgetmessagestatus",
2205
+ "docs": "Completion status for a full-native widget bridge message.",
2206
+ "types": [
2207
+ {
2208
+ "text": "'pending'",
2209
+ "complexTypes": []
2210
+ },
2211
+ {
2212
+ "text": "'completed'",
2213
+ "complexTypes": []
2214
+ },
2215
+ {
2216
+ "text": "'failed'",
2217
+ "complexTypes": []
2218
+ }
2219
+ ]
2220
+ }
2221
+ ],
2222
+ "pluginConfigs": []
2223
+ }