11import type { JsonObject , JsonValue } from "../plugin" ;
22import type { DidReceiveGlobalSettings , DidReceiveSettings , State } from "./events" ;
33import type { FeedbackPayload } from "./layout" ;
4+ import type { Resources } from "./resources" ;
45import type { Target } from "./target" ;
56
67/**
@@ -51,7 +52,12 @@ export type SetSettings = ContextualizedCommandWithPayload<"setSettings", JsonOb
5152/**
5253 * Gets the settings associated with an instance of an action. Causes {@link DidReceiveSettings} to be emitted.
5354 */
54- export type GetSettings = ContextualizedCommand < "getSettings" > ;
55+ export type GetSettings = ContextualizedCommand < "getSettings" > & {
56+ /**
57+ * Optional identifier that can be used to identify the response to this request.
58+ */
59+ id ?: string ;
60+ } ;
5561
5662/**
5763 * Sets the global settings associated with the plugin.
@@ -61,13 +67,39 @@ export type SetGlobalSettings = ContextualizedCommandWithPayload<"setGlobalSetti
6167/**
6268 * Gets the global settings associated with the plugin. Causes {@link DidReceiveGlobalSettings} to be emitted.
6369 */
64- export type GetGlobalSettings = ContextualizedCommand < "getGlobalSettings" > ;
70+ export type GetGlobalSettings = ContextualizedCommand < "getGlobalSettings" > & {
71+ /**
72+ * Optional identifier that can be used to identify the response to this request.
73+ */
74+ id ?: string ;
75+ } ;
6576
6677/**
6778 * Gets secrets associated with the plugin.
6879 */
6980export type GetSecrets = ContextualizedCommand < "getSecrets" > ;
7081
82+ /**
83+ * Sets the resources (files) associated with the action; these resources are embedded into the action
84+ * when it is exported, either individually, or as part of a profile.
85+ *
86+ * Available from Stream Deck 7.1.
87+ */
88+ export type SetResources = ContextualizedCommandWithPayload < "setResources" , Resources > ;
89+
90+ /**
91+ * Gets the resources (files) associated with the action; these resources are embedded into the action
92+ * when it is exported, either individually, or as part of a profile.
93+ *
94+ * Available from Stream Deck 7.1.
95+ */
96+ export type GetResources = ContextualizedCommand < "getResources" > & {
97+ /**
98+ * Optional identifier that can be used to identify the response to this request.
99+ */
100+ id ?: string ;
101+ } ;
102+
71103/**
72104 * Opens the URL in the user's default browser.
73105 */
@@ -249,6 +281,7 @@ export type SendToPropertyInspector<TPayload extends JsonValue = JsonValue> = Co
249281 */
250282export type PluginCommand =
251283 | GetGlobalSettings
284+ | GetResources
252285 | GetSecrets
253286 | GetSettings
254287 | LogMessage
@@ -258,6 +291,7 @@ export type PluginCommand =
258291 | SetFeedbackLayout
259292 | SetGlobalSettings
260293 | SetImage
294+ | SetResources
261295 | SetSettings
262296 | SetState
263297 | SetTitle
0 commit comments