@markupai/sidebar-adapter 1.3.1 → 1.3.2
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/README.md +24 -0
- package/asyncapi.json +1893 -0
- package/dist/adapters/pluginAdapter.d.ts +7 -0
- package/dist/adapters/pluginAdapter.d.ts.map +1 -1
- package/dist/ipc/call-signatures.d.ts +5 -0
- package/dist/ipc/call-signatures.d.ts.map +1 -1
- package/dist/ipc/plugin-ipc-adapter.d.ts +6 -0
- package/dist/ipc/plugin-ipc-adapter.d.ts.map +1 -1
- package/dist/ipc/sidebar-ipc-adapter.d.ts.map +1 -1
- package/dist/main.js +118 -106
- package/dist/main.umd.cjs +5 -5
- package/dist/types/common.d.ts +13 -7
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/integrationSettings.d.ts +9 -4
- package/dist/types/integrationSettings.d.ts.map +1 -1
- package/dist/types/pluginInterface.d.ts +18 -0
- package/dist/types/pluginInterface.d.ts.map +1 -1
- package/package.json +14 -6
package/asyncapi.json
ADDED
|
@@ -0,0 +1,1893 @@
|
|
|
1
|
+
{
|
|
2
|
+
"asyncapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Markup AI Sidebar IPC contract",
|
|
5
|
+
"version": "1.3.2",
|
|
6
|
+
"description": "Bidirectional RPC-over-postMessage contract between the Markup AI sidebar and its host. Generated from the @markupai/sidebar-adapter TypeScript types — do not hand-edit."
|
|
7
|
+
},
|
|
8
|
+
"channels": {
|
|
9
|
+
"sidebarToPlugin": {
|
|
10
|
+
"address": "sidebar->plugin",
|
|
11
|
+
"title": "Sidebar to Plugin",
|
|
12
|
+
"description": "RPC calls the sidebar sends to the host plugin over postMessage.",
|
|
13
|
+
"messages": {
|
|
14
|
+
"ipc_error": { "$ref": "#/components/messages/ipc_error" },
|
|
15
|
+
"getContent_call": { "$ref": "#/components/messages/getContent_call" },
|
|
16
|
+
"getContent_response": { "$ref": "#/components/messages/getContent_response" },
|
|
17
|
+
"getSelectedContent_call": { "$ref": "#/components/messages/getSelectedContent_call" },
|
|
18
|
+
"getSelectedContent_response": {
|
|
19
|
+
"$ref": "#/components/messages/getSelectedContent_response"
|
|
20
|
+
},
|
|
21
|
+
"replaceContent_call": { "$ref": "#/components/messages/replaceContent_call" },
|
|
22
|
+
"replaceContent_response": { "$ref": "#/components/messages/replaceContent_response" },
|
|
23
|
+
"selectContent_call": { "$ref": "#/components/messages/selectContent_call" },
|
|
24
|
+
"selectContent_response": { "$ref": "#/components/messages/selectContent_response" },
|
|
25
|
+
"showDialog_call": { "$ref": "#/components/messages/showDialog_call" },
|
|
26
|
+
"showDialog_response": { "$ref": "#/components/messages/showDialog_response" },
|
|
27
|
+
"closeDialog_call": { "$ref": "#/components/messages/closeDialog_call" },
|
|
28
|
+
"closeDialog_response": { "$ref": "#/components/messages/closeDialog_response" },
|
|
29
|
+
"replaceMultipleContents_call": {
|
|
30
|
+
"$ref": "#/components/messages/replaceMultipleContents_call"
|
|
31
|
+
},
|
|
32
|
+
"replaceMultipleContents_response": {
|
|
33
|
+
"$ref": "#/components/messages/replaceMultipleContents_response"
|
|
34
|
+
},
|
|
35
|
+
"getInitConfig_call": { "$ref": "#/components/messages/getInitConfig_call" },
|
|
36
|
+
"getInitConfig_response": { "$ref": "#/components/messages/getInitConfig_response" },
|
|
37
|
+
"onAgenticAgentResults_call": {
|
|
38
|
+
"$ref": "#/components/messages/onAgenticAgentResults_call"
|
|
39
|
+
},
|
|
40
|
+
"onAgenticAgentResults_response": {
|
|
41
|
+
"$ref": "#/components/messages/onAgenticAgentResults_response"
|
|
42
|
+
},
|
|
43
|
+
"onAgenticStreamComplete_call": {
|
|
44
|
+
"$ref": "#/components/messages/onAgenticStreamComplete_call"
|
|
45
|
+
},
|
|
46
|
+
"onAgenticStreamComplete_response": {
|
|
47
|
+
"$ref": "#/components/messages/onAgenticStreamComplete_response"
|
|
48
|
+
},
|
|
49
|
+
"onAgenticIssueStatusChanged_call": {
|
|
50
|
+
"$ref": "#/components/messages/onAgenticIssueStatusChanged_call"
|
|
51
|
+
},
|
|
52
|
+
"onAgenticIssueStatusChanged_response": {
|
|
53
|
+
"$ref": "#/components/messages/onAgenticIssueStatusChanged_response"
|
|
54
|
+
},
|
|
55
|
+
"openAuthUrl_call": { "$ref": "#/components/messages/openAuthUrl_call" },
|
|
56
|
+
"openAuthUrl_response": { "$ref": "#/components/messages/openAuthUrl_response" },
|
|
57
|
+
"copyToClipboard_call": { "$ref": "#/components/messages/copyToClipboard_call" },
|
|
58
|
+
"copyToClipboard_response": { "$ref": "#/components/messages/copyToClipboard_response" },
|
|
59
|
+
"onIntegrationSettingsChange_call": {
|
|
60
|
+
"$ref": "#/components/messages/onIntegrationSettingsChange_call"
|
|
61
|
+
},
|
|
62
|
+
"onIntegrationSettingsChange_response": {
|
|
63
|
+
"$ref": "#/components/messages/onIntegrationSettingsChange_response"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"pluginToSidebar": {
|
|
68
|
+
"address": "plugin->sidebar",
|
|
69
|
+
"title": "Plugin to Sidebar",
|
|
70
|
+
"description": "RPC calls the host plugin sends to the sidebar over postMessage.",
|
|
71
|
+
"messages": {
|
|
72
|
+
"ipc_error": { "$ref": "#/components/messages/ipc_error" },
|
|
73
|
+
"onPluginStatusChange_call": { "$ref": "#/components/messages/onPluginStatusChange_call" },
|
|
74
|
+
"onPluginStatusChange_response": {
|
|
75
|
+
"$ref": "#/components/messages/onPluginStatusChange_response"
|
|
76
|
+
},
|
|
77
|
+
"activateAgenticIssue_call": { "$ref": "#/components/messages/activateAgenticIssue_call" },
|
|
78
|
+
"activateAgenticIssue_response": {
|
|
79
|
+
"$ref": "#/components/messages/activateAgenticIssue_response"
|
|
80
|
+
},
|
|
81
|
+
"invalidateAgenticIssue_call": {
|
|
82
|
+
"$ref": "#/components/messages/invalidateAgenticIssue_call"
|
|
83
|
+
},
|
|
84
|
+
"invalidateAgenticIssue_response": {
|
|
85
|
+
"$ref": "#/components/messages/invalidateAgenticIssue_response"
|
|
86
|
+
},
|
|
87
|
+
"markAgenticIssueResolved_call": {
|
|
88
|
+
"$ref": "#/components/messages/markAgenticIssueResolved_call"
|
|
89
|
+
},
|
|
90
|
+
"markAgenticIssueResolved_response": {
|
|
91
|
+
"$ref": "#/components/messages/markAgenticIssueResolved_response"
|
|
92
|
+
},
|
|
93
|
+
"restoreAgenticIssue_call": { "$ref": "#/components/messages/restoreAgenticIssue_call" },
|
|
94
|
+
"restoreAgenticIssue_response": {
|
|
95
|
+
"$ref": "#/components/messages/restoreAgenticIssue_response"
|
|
96
|
+
},
|
|
97
|
+
"applyIntegrationSettings_call": {
|
|
98
|
+
"$ref": "#/components/messages/applyIntegrationSettings_call"
|
|
99
|
+
},
|
|
100
|
+
"applyIntegrationSettings_response": {
|
|
101
|
+
"$ref": "#/components/messages/applyIntegrationSettings_response"
|
|
102
|
+
},
|
|
103
|
+
"getIntegrationSettings_call": {
|
|
104
|
+
"$ref": "#/components/messages/getIntegrationSettings_call"
|
|
105
|
+
},
|
|
106
|
+
"getIntegrationSettings_response": {
|
|
107
|
+
"$ref": "#/components/messages/getIntegrationSettings_response"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"operations": {
|
|
113
|
+
"getContent": {
|
|
114
|
+
"action": "send",
|
|
115
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
116
|
+
"title": "getContent",
|
|
117
|
+
"description": "Request full editor content.",
|
|
118
|
+
"x-optional": false,
|
|
119
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/getContent_call" }],
|
|
120
|
+
"reply": {
|
|
121
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
122
|
+
"messages": [
|
|
123
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/getContent_response" },
|
|
124
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"getSelectedContent": {
|
|
129
|
+
"action": "send",
|
|
130
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
131
|
+
"title": "getSelectedContent",
|
|
132
|
+
"description": "Request selected editor content.",
|
|
133
|
+
"x-optional": false,
|
|
134
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/getSelectedContent_call" }],
|
|
135
|
+
"reply": {
|
|
136
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
137
|
+
"messages": [
|
|
138
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/getSelectedContent_response" },
|
|
139
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"replaceContent": {
|
|
144
|
+
"action": "send",
|
|
145
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
146
|
+
"title": "replaceContent",
|
|
147
|
+
"description": "Replace content over [range.start, range.end).",
|
|
148
|
+
"x-optional": false,
|
|
149
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/replaceContent_call" }],
|
|
150
|
+
"reply": {
|
|
151
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
152
|
+
"messages": [
|
|
153
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/replaceContent_response" },
|
|
154
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"selectContent": {
|
|
159
|
+
"action": "send",
|
|
160
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
161
|
+
"title": "selectContent",
|
|
162
|
+
"description": "Select content at [range.start, range.end).",
|
|
163
|
+
"x-optional": false,
|
|
164
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/selectContent_call" }],
|
|
165
|
+
"reply": {
|
|
166
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
167
|
+
"messages": [
|
|
168
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/selectContent_response" },
|
|
169
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"showDialog": {
|
|
174
|
+
"action": "send",
|
|
175
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
176
|
+
"title": "showDialog",
|
|
177
|
+
"description": "Show a dialog in the editor.",
|
|
178
|
+
"x-optional": false,
|
|
179
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/showDialog_call" }],
|
|
180
|
+
"reply": {
|
|
181
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
182
|
+
"messages": [
|
|
183
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/showDialog_response" },
|
|
184
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"closeDialog": {
|
|
189
|
+
"action": "send",
|
|
190
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
191
|
+
"title": "closeDialog",
|
|
192
|
+
"description": "Close the editor dialog.",
|
|
193
|
+
"x-optional": false,
|
|
194
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/closeDialog_call" }],
|
|
195
|
+
"reply": {
|
|
196
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
197
|
+
"messages": [
|
|
198
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/closeDialog_response" },
|
|
199
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"replaceMultipleContents": {
|
|
204
|
+
"action": "send",
|
|
205
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
206
|
+
"title": "replaceMultipleContents",
|
|
207
|
+
"description": "Replace multiple contents.",
|
|
208
|
+
"x-optional": false,
|
|
209
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/replaceMultipleContents_call" }],
|
|
210
|
+
"reply": {
|
|
211
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
212
|
+
"messages": [
|
|
213
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/replaceMultipleContents_response" },
|
|
214
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"getInitConfig": {
|
|
219
|
+
"action": "send",
|
|
220
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
221
|
+
"title": "getInitConfig",
|
|
222
|
+
"description": "Get initialization configuration from the editor.",
|
|
223
|
+
"x-optional": false,
|
|
224
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/getInitConfig_call" }],
|
|
225
|
+
"reply": {
|
|
226
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
227
|
+
"messages": [
|
|
228
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/getInitConfig_response" },
|
|
229
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"onAgenticAgentResults": {
|
|
234
|
+
"action": "send",
|
|
235
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
236
|
+
"title": "onAgenticAgentResults",
|
|
237
|
+
"description": "Stream one agent's agentic results to the plugin.",
|
|
238
|
+
"x-optional": false,
|
|
239
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticAgentResults_call" }],
|
|
240
|
+
"reply": {
|
|
241
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
242
|
+
"messages": [
|
|
243
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticAgentResults_response" },
|
|
244
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"onAgenticStreamComplete": {
|
|
249
|
+
"action": "send",
|
|
250
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
251
|
+
"title": "onAgenticStreamComplete",
|
|
252
|
+
"description": "Notify plugin the agentic stream finished.",
|
|
253
|
+
"x-optional": false,
|
|
254
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticStreamComplete_call" }],
|
|
255
|
+
"reply": {
|
|
256
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
257
|
+
"messages": [
|
|
258
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticStreamComplete_response" },
|
|
259
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"onAgenticIssueStatusChanged": {
|
|
264
|
+
"action": "send",
|
|
265
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
266
|
+
"title": "onAgenticIssueStatusChanged",
|
|
267
|
+
"description": "Notify plugin after an agentic-issue status transition. Optional.",
|
|
268
|
+
"x-optional": true,
|
|
269
|
+
"messages": [
|
|
270
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticIssueStatusChanged_call" }
|
|
271
|
+
],
|
|
272
|
+
"reply": {
|
|
273
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
274
|
+
"messages": [
|
|
275
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onAgenticIssueStatusChanged_response" },
|
|
276
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"openAuthUrl": {
|
|
281
|
+
"action": "send",
|
|
282
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
283
|
+
"title": "openAuthUrl",
|
|
284
|
+
"description": "Ask the plugin to open an external auth URL.",
|
|
285
|
+
"x-optional": false,
|
|
286
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/openAuthUrl_call" }],
|
|
287
|
+
"reply": {
|
|
288
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
289
|
+
"messages": [
|
|
290
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/openAuthUrl_response" },
|
|
291
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"copyToClipboard": {
|
|
296
|
+
"action": "send",
|
|
297
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
298
|
+
"title": "copyToClipboard",
|
|
299
|
+
"description": "Ask the plugin to write text to the system clipboard.",
|
|
300
|
+
"x-optional": false,
|
|
301
|
+
"messages": [{ "$ref": "#/channels/sidebarToPlugin/messages/copyToClipboard_call" }],
|
|
302
|
+
"reply": {
|
|
303
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
304
|
+
"messages": [
|
|
305
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/copyToClipboard_response" },
|
|
306
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"onIntegrationSettingsChange": {
|
|
311
|
+
"action": "send",
|
|
312
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
313
|
+
"title": "onIntegrationSettingsChange",
|
|
314
|
+
"description": "Notify plugin of a user-driven settings change. Optional.",
|
|
315
|
+
"x-optional": true,
|
|
316
|
+
"messages": [
|
|
317
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onIntegrationSettingsChange_call" }
|
|
318
|
+
],
|
|
319
|
+
"reply": {
|
|
320
|
+
"channel": { "$ref": "#/channels/sidebarToPlugin" },
|
|
321
|
+
"messages": [
|
|
322
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/onIntegrationSettingsChange_response" },
|
|
323
|
+
{ "$ref": "#/channels/sidebarToPlugin/messages/ipc_error" }
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"onPluginStatusChange": {
|
|
328
|
+
"action": "send",
|
|
329
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
330
|
+
"title": "onPluginStatusChange",
|
|
331
|
+
"description": "Notify sidebar of a plugin status change. Optional.",
|
|
332
|
+
"x-optional": true,
|
|
333
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/onPluginStatusChange_call" }],
|
|
334
|
+
"reply": {
|
|
335
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
336
|
+
"messages": [
|
|
337
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/onPluginStatusChange_response" },
|
|
338
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"activateAgenticIssue": {
|
|
343
|
+
"action": "send",
|
|
344
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
345
|
+
"title": "activateAgenticIssue",
|
|
346
|
+
"description": "Activate (expand/scroll to) an issue card.",
|
|
347
|
+
"x-optional": false,
|
|
348
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/activateAgenticIssue_call" }],
|
|
349
|
+
"reply": {
|
|
350
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
351
|
+
"messages": [
|
|
352
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/activateAgenticIssue_response" },
|
|
353
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"invalidateAgenticIssue": {
|
|
358
|
+
"action": "send",
|
|
359
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
360
|
+
"title": "invalidateAgenticIssue",
|
|
361
|
+
"description": "Invalidate (dismiss) an issue card.",
|
|
362
|
+
"x-optional": false,
|
|
363
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/invalidateAgenticIssue_call" }],
|
|
364
|
+
"reply": {
|
|
365
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
366
|
+
"messages": [
|
|
367
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/invalidateAgenticIssue_response" },
|
|
368
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"markAgenticIssueResolved": {
|
|
373
|
+
"action": "send",
|
|
374
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
375
|
+
"title": "markAgenticIssueResolved",
|
|
376
|
+
"description": "Mark an open issue as resolved.",
|
|
377
|
+
"x-optional": false,
|
|
378
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/markAgenticIssueResolved_call" }],
|
|
379
|
+
"reply": {
|
|
380
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
381
|
+
"messages": [
|
|
382
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/markAgenticIssueResolved_response" },
|
|
383
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"restoreAgenticIssue": {
|
|
388
|
+
"action": "send",
|
|
389
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
390
|
+
"title": "restoreAgenticIssue",
|
|
391
|
+
"description": "Transition an issue back to the open state.",
|
|
392
|
+
"x-optional": false,
|
|
393
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/restoreAgenticIssue_call" }],
|
|
394
|
+
"reply": {
|
|
395
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
396
|
+
"messages": [
|
|
397
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/restoreAgenticIssue_response" },
|
|
398
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"applyIntegrationSettings": {
|
|
403
|
+
"action": "send",
|
|
404
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
405
|
+
"title": "applyIntegrationSettings",
|
|
406
|
+
"description": "Apply a host patch to settings values/field states.",
|
|
407
|
+
"x-optional": false,
|
|
408
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/applyIntegrationSettings_call" }],
|
|
409
|
+
"reply": {
|
|
410
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
411
|
+
"messages": [
|
|
412
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/applyIntegrationSettings_response" },
|
|
413
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"getIntegrationSettings": {
|
|
418
|
+
"action": "send",
|
|
419
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
420
|
+
"title": "getIntegrationSettings",
|
|
421
|
+
"description": "Read back the sidebar's current settings state.",
|
|
422
|
+
"x-optional": false,
|
|
423
|
+
"messages": [{ "$ref": "#/channels/pluginToSidebar/messages/getIntegrationSettings_call" }],
|
|
424
|
+
"reply": {
|
|
425
|
+
"channel": { "$ref": "#/channels/pluginToSidebar" },
|
|
426
|
+
"messages": [
|
|
427
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/getIntegrationSettings_response" },
|
|
428
|
+
{ "$ref": "#/channels/pluginToSidebar/messages/ipc_error" }
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"components": {
|
|
434
|
+
"messages": {
|
|
435
|
+
"ipc_error": {
|
|
436
|
+
"name": "ipc_error",
|
|
437
|
+
"title": "error",
|
|
438
|
+
"payload": {
|
|
439
|
+
"title": "ipc_error",
|
|
440
|
+
"type": "object",
|
|
441
|
+
"additionalProperties": false,
|
|
442
|
+
"required": ["type", "id", "name", "errorJSON"],
|
|
443
|
+
"properties": {
|
|
444
|
+
"type": { "const": "error" },
|
|
445
|
+
"id": { "type": "integer" },
|
|
446
|
+
"name": { "type": "string" },
|
|
447
|
+
"errorJSON": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"description": "JSON-stringified error: {message, name?}."
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"getContent_call": {
|
|
455
|
+
"name": "getContent_call",
|
|
456
|
+
"title": "call getContent",
|
|
457
|
+
"payload": {
|
|
458
|
+
"title": "getContent_call",
|
|
459
|
+
"type": "object",
|
|
460
|
+
"additionalProperties": false,
|
|
461
|
+
"required": ["type", "id", "name", "data"],
|
|
462
|
+
"properties": {
|
|
463
|
+
"type": { "const": "call" },
|
|
464
|
+
"id": { "type": "integer" },
|
|
465
|
+
"name": { "const": "getContent" },
|
|
466
|
+
"data": {
|
|
467
|
+
"type": "array",
|
|
468
|
+
"prefixItems": [],
|
|
469
|
+
"minItems": 0,
|
|
470
|
+
"maxItems": 0,
|
|
471
|
+
"items": false
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"getContent_response": {
|
|
477
|
+
"name": "getContent_response",
|
|
478
|
+
"title": "response getContent",
|
|
479
|
+
"payload": {
|
|
480
|
+
"title": "getContent_response",
|
|
481
|
+
"type": "object",
|
|
482
|
+
"additionalProperties": false,
|
|
483
|
+
"required": ["type", "id", "name", "data"],
|
|
484
|
+
"properties": {
|
|
485
|
+
"type": { "const": "response" },
|
|
486
|
+
"id": { "type": "integer" },
|
|
487
|
+
"name": { "const": "getContent" },
|
|
488
|
+
"data": { "$ref": "#/components/schemas/ContentInfo" }
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"getSelectedContent_call": {
|
|
493
|
+
"name": "getSelectedContent_call",
|
|
494
|
+
"title": "call getSelectedContent",
|
|
495
|
+
"payload": {
|
|
496
|
+
"title": "getSelectedContent_call",
|
|
497
|
+
"type": "object",
|
|
498
|
+
"additionalProperties": false,
|
|
499
|
+
"required": ["type", "id", "name", "data"],
|
|
500
|
+
"properties": {
|
|
501
|
+
"type": { "const": "call" },
|
|
502
|
+
"id": { "type": "integer" },
|
|
503
|
+
"name": { "const": "getSelectedContent" },
|
|
504
|
+
"data": {
|
|
505
|
+
"type": "array",
|
|
506
|
+
"prefixItems": [],
|
|
507
|
+
"minItems": 0,
|
|
508
|
+
"maxItems": 0,
|
|
509
|
+
"items": false
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"getSelectedContent_response": {
|
|
515
|
+
"name": "getSelectedContent_response",
|
|
516
|
+
"title": "response getSelectedContent",
|
|
517
|
+
"payload": {
|
|
518
|
+
"title": "getSelectedContent_response",
|
|
519
|
+
"type": "object",
|
|
520
|
+
"additionalProperties": false,
|
|
521
|
+
"required": ["type", "id", "name", "data"],
|
|
522
|
+
"properties": {
|
|
523
|
+
"type": { "const": "response" },
|
|
524
|
+
"id": { "type": "integer" },
|
|
525
|
+
"name": { "const": "getSelectedContent" },
|
|
526
|
+
"data": { "$ref": "#/components/schemas/ContentInfo" }
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"replaceContent_call": {
|
|
531
|
+
"name": "replaceContent_call",
|
|
532
|
+
"title": "call replaceContent",
|
|
533
|
+
"payload": {
|
|
534
|
+
"title": "replaceContent_call",
|
|
535
|
+
"type": "object",
|
|
536
|
+
"additionalProperties": false,
|
|
537
|
+
"required": ["type", "id", "name", "data"],
|
|
538
|
+
"properties": {
|
|
539
|
+
"type": { "const": "call" },
|
|
540
|
+
"id": { "type": "integer" },
|
|
541
|
+
"name": { "const": "replaceContent" },
|
|
542
|
+
"data": {
|
|
543
|
+
"type": "array",
|
|
544
|
+
"prefixItems": [
|
|
545
|
+
{ "type": "string" },
|
|
546
|
+
{ "$ref": "#/components/schemas/ContentRange" }
|
|
547
|
+
],
|
|
548
|
+
"minItems": 2,
|
|
549
|
+
"maxItems": 2,
|
|
550
|
+
"items": false
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"replaceContent_response": {
|
|
556
|
+
"name": "replaceContent_response",
|
|
557
|
+
"title": "response replaceContent",
|
|
558
|
+
"payload": {
|
|
559
|
+
"title": "replaceContent_response",
|
|
560
|
+
"type": "object",
|
|
561
|
+
"additionalProperties": false,
|
|
562
|
+
"required": ["type", "id", "name", "data"],
|
|
563
|
+
"properties": {
|
|
564
|
+
"type": { "const": "response" },
|
|
565
|
+
"id": { "type": "integer" },
|
|
566
|
+
"name": { "const": "replaceContent" },
|
|
567
|
+
"data": { "type": "null" }
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"selectContent_call": {
|
|
572
|
+
"name": "selectContent_call",
|
|
573
|
+
"title": "call selectContent",
|
|
574
|
+
"payload": {
|
|
575
|
+
"title": "selectContent_call",
|
|
576
|
+
"type": "object",
|
|
577
|
+
"additionalProperties": false,
|
|
578
|
+
"required": ["type", "id", "name", "data"],
|
|
579
|
+
"properties": {
|
|
580
|
+
"type": { "const": "call" },
|
|
581
|
+
"id": { "type": "integer" },
|
|
582
|
+
"name": { "const": "selectContent" },
|
|
583
|
+
"data": {
|
|
584
|
+
"type": "array",
|
|
585
|
+
"prefixItems": [{ "$ref": "#/components/schemas/ContentRange" }],
|
|
586
|
+
"minItems": 1,
|
|
587
|
+
"maxItems": 1,
|
|
588
|
+
"items": false
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"selectContent_response": {
|
|
594
|
+
"name": "selectContent_response",
|
|
595
|
+
"title": "response selectContent",
|
|
596
|
+
"payload": {
|
|
597
|
+
"title": "selectContent_response",
|
|
598
|
+
"type": "object",
|
|
599
|
+
"additionalProperties": false,
|
|
600
|
+
"required": ["type", "id", "name", "data"],
|
|
601
|
+
"properties": {
|
|
602
|
+
"type": { "const": "response" },
|
|
603
|
+
"id": { "type": "integer" },
|
|
604
|
+
"name": { "const": "selectContent" },
|
|
605
|
+
"data": { "type": "null" }
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"showDialog_call": {
|
|
610
|
+
"name": "showDialog_call",
|
|
611
|
+
"title": "call showDialog",
|
|
612
|
+
"payload": {
|
|
613
|
+
"title": "showDialog_call",
|
|
614
|
+
"type": "object",
|
|
615
|
+
"additionalProperties": false,
|
|
616
|
+
"required": ["type", "id", "name", "data"],
|
|
617
|
+
"properties": {
|
|
618
|
+
"type": { "const": "call" },
|
|
619
|
+
"id": { "type": "integer" },
|
|
620
|
+
"name": { "const": "showDialog" },
|
|
621
|
+
"data": {
|
|
622
|
+
"type": "array",
|
|
623
|
+
"prefixItems": [
|
|
624
|
+
{ "type": "string" },
|
|
625
|
+
{ "type": "number" },
|
|
626
|
+
{ "type": "number" },
|
|
627
|
+
{ "type": "string" }
|
|
628
|
+
],
|
|
629
|
+
"minItems": 1,
|
|
630
|
+
"maxItems": 4,
|
|
631
|
+
"items": false
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"showDialog_response": {
|
|
637
|
+
"name": "showDialog_response",
|
|
638
|
+
"title": "response showDialog",
|
|
639
|
+
"payload": {
|
|
640
|
+
"title": "showDialog_response",
|
|
641
|
+
"type": "object",
|
|
642
|
+
"additionalProperties": false,
|
|
643
|
+
"required": ["type", "id", "name", "data"],
|
|
644
|
+
"properties": {
|
|
645
|
+
"type": { "const": "response" },
|
|
646
|
+
"id": { "type": "integer" },
|
|
647
|
+
"name": { "const": "showDialog" },
|
|
648
|
+
"data": { "type": "null" }
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"closeDialog_call": {
|
|
653
|
+
"name": "closeDialog_call",
|
|
654
|
+
"title": "call closeDialog",
|
|
655
|
+
"payload": {
|
|
656
|
+
"title": "closeDialog_call",
|
|
657
|
+
"type": "object",
|
|
658
|
+
"additionalProperties": false,
|
|
659
|
+
"required": ["type", "id", "name", "data"],
|
|
660
|
+
"properties": {
|
|
661
|
+
"type": { "const": "call" },
|
|
662
|
+
"id": { "type": "integer" },
|
|
663
|
+
"name": { "const": "closeDialog" },
|
|
664
|
+
"data": {
|
|
665
|
+
"type": "array",
|
|
666
|
+
"prefixItems": [],
|
|
667
|
+
"minItems": 0,
|
|
668
|
+
"maxItems": 0,
|
|
669
|
+
"items": false
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"closeDialog_response": {
|
|
675
|
+
"name": "closeDialog_response",
|
|
676
|
+
"title": "response closeDialog",
|
|
677
|
+
"payload": {
|
|
678
|
+
"title": "closeDialog_response",
|
|
679
|
+
"type": "object",
|
|
680
|
+
"additionalProperties": false,
|
|
681
|
+
"required": ["type", "id", "name", "data"],
|
|
682
|
+
"properties": {
|
|
683
|
+
"type": { "const": "response" },
|
|
684
|
+
"id": { "type": "integer" },
|
|
685
|
+
"name": { "const": "closeDialog" },
|
|
686
|
+
"data": { "type": "null" }
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"replaceMultipleContents_call": {
|
|
691
|
+
"name": "replaceMultipleContents_call",
|
|
692
|
+
"title": "call replaceMultipleContents",
|
|
693
|
+
"payload": {
|
|
694
|
+
"title": "replaceMultipleContents_call",
|
|
695
|
+
"type": "object",
|
|
696
|
+
"additionalProperties": false,
|
|
697
|
+
"required": ["type", "id", "name", "data"],
|
|
698
|
+
"properties": {
|
|
699
|
+
"type": { "const": "call" },
|
|
700
|
+
"id": { "type": "integer" },
|
|
701
|
+
"name": { "const": "replaceMultipleContents" },
|
|
702
|
+
"data": {
|
|
703
|
+
"type": "array",
|
|
704
|
+
"prefixItems": [
|
|
705
|
+
{ "type": "array", "items": { "$ref": "#/components/schemas/ContentReplacement" } }
|
|
706
|
+
],
|
|
707
|
+
"minItems": 1,
|
|
708
|
+
"maxItems": 1,
|
|
709
|
+
"items": false
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"replaceMultipleContents_response": {
|
|
715
|
+
"name": "replaceMultipleContents_response",
|
|
716
|
+
"title": "response replaceMultipleContents",
|
|
717
|
+
"payload": {
|
|
718
|
+
"title": "replaceMultipleContents_response",
|
|
719
|
+
"type": "object",
|
|
720
|
+
"additionalProperties": false,
|
|
721
|
+
"required": ["type", "id", "name", "data"],
|
|
722
|
+
"properties": {
|
|
723
|
+
"type": { "const": "response" },
|
|
724
|
+
"id": { "type": "integer" },
|
|
725
|
+
"name": { "const": "replaceMultipleContents" },
|
|
726
|
+
"data": { "type": "null" }
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"getInitConfig_call": {
|
|
731
|
+
"name": "getInitConfig_call",
|
|
732
|
+
"title": "call getInitConfig",
|
|
733
|
+
"payload": {
|
|
734
|
+
"title": "getInitConfig_call",
|
|
735
|
+
"type": "object",
|
|
736
|
+
"additionalProperties": false,
|
|
737
|
+
"required": ["type", "id", "name", "data"],
|
|
738
|
+
"properties": {
|
|
739
|
+
"type": { "const": "call" },
|
|
740
|
+
"id": { "type": "integer" },
|
|
741
|
+
"name": { "const": "getInitConfig" },
|
|
742
|
+
"data": {
|
|
743
|
+
"type": "array",
|
|
744
|
+
"prefixItems": [],
|
|
745
|
+
"minItems": 0,
|
|
746
|
+
"maxItems": 0,
|
|
747
|
+
"items": false
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"getInitConfig_response": {
|
|
753
|
+
"name": "getInitConfig_response",
|
|
754
|
+
"title": "response getInitConfig",
|
|
755
|
+
"payload": {
|
|
756
|
+
"title": "getInitConfig_response",
|
|
757
|
+
"type": "object",
|
|
758
|
+
"additionalProperties": false,
|
|
759
|
+
"required": ["type", "id", "name", "data"],
|
|
760
|
+
"properties": {
|
|
761
|
+
"type": { "const": "response" },
|
|
762
|
+
"id": { "type": "integer" },
|
|
763
|
+
"name": { "const": "getInitConfig" },
|
|
764
|
+
"data": { "$ref": "#/components/schemas/SidebarConfig" }
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"onAgenticAgentResults_call": {
|
|
769
|
+
"name": "onAgenticAgentResults_call",
|
|
770
|
+
"title": "call onAgenticAgentResults",
|
|
771
|
+
"payload": {
|
|
772
|
+
"title": "onAgenticAgentResults_call",
|
|
773
|
+
"type": "object",
|
|
774
|
+
"additionalProperties": false,
|
|
775
|
+
"required": ["type", "id", "name", "data"],
|
|
776
|
+
"properties": {
|
|
777
|
+
"type": { "const": "call" },
|
|
778
|
+
"id": { "type": "integer" },
|
|
779
|
+
"name": { "const": "onAgenticAgentResults" },
|
|
780
|
+
"data": {
|
|
781
|
+
"type": "array",
|
|
782
|
+
"prefixItems": [
|
|
783
|
+
{ "type": "string" },
|
|
784
|
+
{ "type": "array", "items": { "$ref": "#/components/schemas/AgenticIssuePayload" } }
|
|
785
|
+
],
|
|
786
|
+
"minItems": 2,
|
|
787
|
+
"maxItems": 2,
|
|
788
|
+
"items": false
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"onAgenticAgentResults_response": {
|
|
794
|
+
"name": "onAgenticAgentResults_response",
|
|
795
|
+
"title": "response onAgenticAgentResults",
|
|
796
|
+
"payload": {
|
|
797
|
+
"title": "onAgenticAgentResults_response",
|
|
798
|
+
"type": "object",
|
|
799
|
+
"additionalProperties": false,
|
|
800
|
+
"required": ["type", "id", "name", "data"],
|
|
801
|
+
"properties": {
|
|
802
|
+
"type": { "const": "response" },
|
|
803
|
+
"id": { "type": "integer" },
|
|
804
|
+
"name": { "const": "onAgenticAgentResults" },
|
|
805
|
+
"data": { "type": "null" }
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"onAgenticStreamComplete_call": {
|
|
810
|
+
"name": "onAgenticStreamComplete_call",
|
|
811
|
+
"title": "call onAgenticStreamComplete",
|
|
812
|
+
"payload": {
|
|
813
|
+
"title": "onAgenticStreamComplete_call",
|
|
814
|
+
"type": "object",
|
|
815
|
+
"additionalProperties": false,
|
|
816
|
+
"required": ["type", "id", "name", "data"],
|
|
817
|
+
"properties": {
|
|
818
|
+
"type": { "const": "call" },
|
|
819
|
+
"id": { "type": "integer" },
|
|
820
|
+
"name": { "const": "onAgenticStreamComplete" },
|
|
821
|
+
"data": {
|
|
822
|
+
"type": "array",
|
|
823
|
+
"prefixItems": [],
|
|
824
|
+
"minItems": 0,
|
|
825
|
+
"maxItems": 0,
|
|
826
|
+
"items": false
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"onAgenticStreamComplete_response": {
|
|
832
|
+
"name": "onAgenticStreamComplete_response",
|
|
833
|
+
"title": "response onAgenticStreamComplete",
|
|
834
|
+
"payload": {
|
|
835
|
+
"title": "onAgenticStreamComplete_response",
|
|
836
|
+
"type": "object",
|
|
837
|
+
"additionalProperties": false,
|
|
838
|
+
"required": ["type", "id", "name", "data"],
|
|
839
|
+
"properties": {
|
|
840
|
+
"type": { "const": "response" },
|
|
841
|
+
"id": { "type": "integer" },
|
|
842
|
+
"name": { "const": "onAgenticStreamComplete" },
|
|
843
|
+
"data": { "type": "null" }
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"onAgenticIssueStatusChanged_call": {
|
|
848
|
+
"name": "onAgenticIssueStatusChanged_call",
|
|
849
|
+
"title": "call onAgenticIssueStatusChanged",
|
|
850
|
+
"payload": {
|
|
851
|
+
"title": "onAgenticIssueStatusChanged_call",
|
|
852
|
+
"type": "object",
|
|
853
|
+
"additionalProperties": false,
|
|
854
|
+
"required": ["type", "id", "name", "data"],
|
|
855
|
+
"properties": {
|
|
856
|
+
"type": { "const": "call" },
|
|
857
|
+
"id": { "type": "integer" },
|
|
858
|
+
"name": { "const": "onAgenticIssueStatusChanged" },
|
|
859
|
+
"data": {
|
|
860
|
+
"type": "array",
|
|
861
|
+
"prefixItems": [
|
|
862
|
+
{ "type": "string" },
|
|
863
|
+
{ "type": "string", "enum": ["active", "resolved", "dismissed"] },
|
|
864
|
+
{ "type": "string", "enum": ["user", "host"] }
|
|
865
|
+
],
|
|
866
|
+
"minItems": 3,
|
|
867
|
+
"maxItems": 3,
|
|
868
|
+
"items": false
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"onAgenticIssueStatusChanged_response": {
|
|
874
|
+
"name": "onAgenticIssueStatusChanged_response",
|
|
875
|
+
"title": "response onAgenticIssueStatusChanged",
|
|
876
|
+
"payload": {
|
|
877
|
+
"title": "onAgenticIssueStatusChanged_response",
|
|
878
|
+
"type": "object",
|
|
879
|
+
"additionalProperties": false,
|
|
880
|
+
"required": ["type", "id", "name", "data"],
|
|
881
|
+
"properties": {
|
|
882
|
+
"type": { "const": "response" },
|
|
883
|
+
"id": { "type": "integer" },
|
|
884
|
+
"name": { "const": "onAgenticIssueStatusChanged" },
|
|
885
|
+
"data": { "type": "null" }
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"openAuthUrl_call": {
|
|
890
|
+
"name": "openAuthUrl_call",
|
|
891
|
+
"title": "call openAuthUrl",
|
|
892
|
+
"payload": {
|
|
893
|
+
"title": "openAuthUrl_call",
|
|
894
|
+
"type": "object",
|
|
895
|
+
"additionalProperties": false,
|
|
896
|
+
"required": ["type", "id", "name", "data"],
|
|
897
|
+
"properties": {
|
|
898
|
+
"type": { "const": "call" },
|
|
899
|
+
"id": { "type": "integer" },
|
|
900
|
+
"name": { "const": "openAuthUrl" },
|
|
901
|
+
"data": {
|
|
902
|
+
"type": "array",
|
|
903
|
+
"prefixItems": [{ "type": "string" }],
|
|
904
|
+
"minItems": 1,
|
|
905
|
+
"maxItems": 1,
|
|
906
|
+
"items": false
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"openAuthUrl_response": {
|
|
912
|
+
"name": "openAuthUrl_response",
|
|
913
|
+
"title": "response openAuthUrl",
|
|
914
|
+
"payload": {
|
|
915
|
+
"title": "openAuthUrl_response",
|
|
916
|
+
"type": "object",
|
|
917
|
+
"additionalProperties": false,
|
|
918
|
+
"required": ["type", "id", "name", "data"],
|
|
919
|
+
"properties": {
|
|
920
|
+
"type": { "const": "response" },
|
|
921
|
+
"id": { "type": "integer" },
|
|
922
|
+
"name": { "const": "openAuthUrl" },
|
|
923
|
+
"data": { "type": "null" }
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"copyToClipboard_call": {
|
|
928
|
+
"name": "copyToClipboard_call",
|
|
929
|
+
"title": "call copyToClipboard",
|
|
930
|
+
"payload": {
|
|
931
|
+
"title": "copyToClipboard_call",
|
|
932
|
+
"type": "object",
|
|
933
|
+
"additionalProperties": false,
|
|
934
|
+
"required": ["type", "id", "name", "data"],
|
|
935
|
+
"properties": {
|
|
936
|
+
"type": { "const": "call" },
|
|
937
|
+
"id": { "type": "integer" },
|
|
938
|
+
"name": { "const": "copyToClipboard" },
|
|
939
|
+
"data": {
|
|
940
|
+
"type": "array",
|
|
941
|
+
"prefixItems": [{ "type": "string" }],
|
|
942
|
+
"minItems": 1,
|
|
943
|
+
"maxItems": 1,
|
|
944
|
+
"items": false
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"copyToClipboard_response": {
|
|
950
|
+
"name": "copyToClipboard_response",
|
|
951
|
+
"title": "response copyToClipboard",
|
|
952
|
+
"payload": {
|
|
953
|
+
"title": "copyToClipboard_response",
|
|
954
|
+
"type": "object",
|
|
955
|
+
"additionalProperties": false,
|
|
956
|
+
"required": ["type", "id", "name", "data"],
|
|
957
|
+
"properties": {
|
|
958
|
+
"type": { "const": "response" },
|
|
959
|
+
"id": { "type": "integer" },
|
|
960
|
+
"name": { "const": "copyToClipboard" },
|
|
961
|
+
"data": { "type": "null" }
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"onIntegrationSettingsChange_call": {
|
|
966
|
+
"name": "onIntegrationSettingsChange_call",
|
|
967
|
+
"title": "call onIntegrationSettingsChange",
|
|
968
|
+
"payload": {
|
|
969
|
+
"title": "onIntegrationSettingsChange_call",
|
|
970
|
+
"type": "object",
|
|
971
|
+
"additionalProperties": false,
|
|
972
|
+
"required": ["type", "id", "name", "data"],
|
|
973
|
+
"properties": {
|
|
974
|
+
"type": { "const": "call" },
|
|
975
|
+
"id": { "type": "integer" },
|
|
976
|
+
"name": { "const": "onIntegrationSettingsChange" },
|
|
977
|
+
"data": {
|
|
978
|
+
"type": "array",
|
|
979
|
+
"prefixItems": [
|
|
980
|
+
{ "$ref": "#/components/schemas/IntegrationSettingsValues" },
|
|
981
|
+
{ "$ref": "#/components/schemas/IntegrationSettingsChangeMeta" }
|
|
982
|
+
],
|
|
983
|
+
"minItems": 2,
|
|
984
|
+
"maxItems": 2,
|
|
985
|
+
"items": false
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"onIntegrationSettingsChange_response": {
|
|
991
|
+
"name": "onIntegrationSettingsChange_response",
|
|
992
|
+
"title": "response onIntegrationSettingsChange",
|
|
993
|
+
"payload": {
|
|
994
|
+
"title": "onIntegrationSettingsChange_response",
|
|
995
|
+
"type": "object",
|
|
996
|
+
"additionalProperties": false,
|
|
997
|
+
"required": ["type", "id", "name", "data"],
|
|
998
|
+
"properties": {
|
|
999
|
+
"type": { "const": "response" },
|
|
1000
|
+
"id": { "type": "integer" },
|
|
1001
|
+
"name": { "const": "onIntegrationSettingsChange" },
|
|
1002
|
+
"data": { "type": "null" }
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
"onPluginStatusChange_call": {
|
|
1007
|
+
"name": "onPluginStatusChange_call",
|
|
1008
|
+
"title": "call onPluginStatusChange",
|
|
1009
|
+
"payload": {
|
|
1010
|
+
"title": "onPluginStatusChange_call",
|
|
1011
|
+
"type": "object",
|
|
1012
|
+
"additionalProperties": false,
|
|
1013
|
+
"required": ["type", "id", "name", "data"],
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"type": { "const": "call" },
|
|
1016
|
+
"id": { "type": "integer" },
|
|
1017
|
+
"name": { "const": "onPluginStatusChange" },
|
|
1018
|
+
"data": {
|
|
1019
|
+
"type": "array",
|
|
1020
|
+
"prefixItems": [
|
|
1021
|
+
{ "type": "string" },
|
|
1022
|
+
{ "$ref": "#/components/schemas/PluginStatusType" }
|
|
1023
|
+
],
|
|
1024
|
+
"minItems": 1,
|
|
1025
|
+
"maxItems": 2,
|
|
1026
|
+
"items": false
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"onPluginStatusChange_response": {
|
|
1032
|
+
"name": "onPluginStatusChange_response",
|
|
1033
|
+
"title": "response onPluginStatusChange",
|
|
1034
|
+
"payload": {
|
|
1035
|
+
"title": "onPluginStatusChange_response",
|
|
1036
|
+
"type": "object",
|
|
1037
|
+
"additionalProperties": false,
|
|
1038
|
+
"required": ["type", "id", "name", "data"],
|
|
1039
|
+
"properties": {
|
|
1040
|
+
"type": { "const": "response" },
|
|
1041
|
+
"id": { "type": "integer" },
|
|
1042
|
+
"name": { "const": "onPluginStatusChange" },
|
|
1043
|
+
"data": { "type": "null" }
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"activateAgenticIssue_call": {
|
|
1048
|
+
"name": "activateAgenticIssue_call",
|
|
1049
|
+
"title": "call activateAgenticIssue",
|
|
1050
|
+
"payload": {
|
|
1051
|
+
"title": "activateAgenticIssue_call",
|
|
1052
|
+
"type": "object",
|
|
1053
|
+
"additionalProperties": false,
|
|
1054
|
+
"required": ["type", "id", "name", "data"],
|
|
1055
|
+
"properties": {
|
|
1056
|
+
"type": { "const": "call" },
|
|
1057
|
+
"id": { "type": "integer" },
|
|
1058
|
+
"name": { "const": "activateAgenticIssue" },
|
|
1059
|
+
"data": {
|
|
1060
|
+
"type": "array",
|
|
1061
|
+
"prefixItems": [{ "type": "string" }],
|
|
1062
|
+
"minItems": 1,
|
|
1063
|
+
"maxItems": 1,
|
|
1064
|
+
"items": false
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"activateAgenticIssue_response": {
|
|
1070
|
+
"name": "activateAgenticIssue_response",
|
|
1071
|
+
"title": "response activateAgenticIssue",
|
|
1072
|
+
"payload": {
|
|
1073
|
+
"title": "activateAgenticIssue_response",
|
|
1074
|
+
"type": "object",
|
|
1075
|
+
"additionalProperties": false,
|
|
1076
|
+
"required": ["type", "id", "name", "data"],
|
|
1077
|
+
"properties": {
|
|
1078
|
+
"type": { "const": "response" },
|
|
1079
|
+
"id": { "type": "integer" },
|
|
1080
|
+
"name": { "const": "activateAgenticIssue" },
|
|
1081
|
+
"data": { "type": "null" }
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"invalidateAgenticIssue_call": {
|
|
1086
|
+
"name": "invalidateAgenticIssue_call",
|
|
1087
|
+
"title": "call invalidateAgenticIssue",
|
|
1088
|
+
"payload": {
|
|
1089
|
+
"title": "invalidateAgenticIssue_call",
|
|
1090
|
+
"type": "object",
|
|
1091
|
+
"additionalProperties": false,
|
|
1092
|
+
"required": ["type", "id", "name", "data"],
|
|
1093
|
+
"properties": {
|
|
1094
|
+
"type": { "const": "call" },
|
|
1095
|
+
"id": { "type": "integer" },
|
|
1096
|
+
"name": { "const": "invalidateAgenticIssue" },
|
|
1097
|
+
"data": {
|
|
1098
|
+
"type": "array",
|
|
1099
|
+
"prefixItems": [{ "type": "string" }],
|
|
1100
|
+
"minItems": 1,
|
|
1101
|
+
"maxItems": 1,
|
|
1102
|
+
"items": false
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"invalidateAgenticIssue_response": {
|
|
1108
|
+
"name": "invalidateAgenticIssue_response",
|
|
1109
|
+
"title": "response invalidateAgenticIssue",
|
|
1110
|
+
"payload": {
|
|
1111
|
+
"title": "invalidateAgenticIssue_response",
|
|
1112
|
+
"type": "object",
|
|
1113
|
+
"additionalProperties": false,
|
|
1114
|
+
"required": ["type", "id", "name", "data"],
|
|
1115
|
+
"properties": {
|
|
1116
|
+
"type": { "const": "response" },
|
|
1117
|
+
"id": { "type": "integer" },
|
|
1118
|
+
"name": { "const": "invalidateAgenticIssue" },
|
|
1119
|
+
"data": { "type": "null" }
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"markAgenticIssueResolved_call": {
|
|
1124
|
+
"name": "markAgenticIssueResolved_call",
|
|
1125
|
+
"title": "call markAgenticIssueResolved",
|
|
1126
|
+
"payload": {
|
|
1127
|
+
"title": "markAgenticIssueResolved_call",
|
|
1128
|
+
"type": "object",
|
|
1129
|
+
"additionalProperties": false,
|
|
1130
|
+
"required": ["type", "id", "name", "data"],
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"type": { "const": "call" },
|
|
1133
|
+
"id": { "type": "integer" },
|
|
1134
|
+
"name": { "const": "markAgenticIssueResolved" },
|
|
1135
|
+
"data": {
|
|
1136
|
+
"type": "array",
|
|
1137
|
+
"prefixItems": [{ "type": "string" }],
|
|
1138
|
+
"minItems": 1,
|
|
1139
|
+
"maxItems": 1,
|
|
1140
|
+
"items": false
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
"markAgenticIssueResolved_response": {
|
|
1146
|
+
"name": "markAgenticIssueResolved_response",
|
|
1147
|
+
"title": "response markAgenticIssueResolved",
|
|
1148
|
+
"payload": {
|
|
1149
|
+
"title": "markAgenticIssueResolved_response",
|
|
1150
|
+
"type": "object",
|
|
1151
|
+
"additionalProperties": false,
|
|
1152
|
+
"required": ["type", "id", "name", "data"],
|
|
1153
|
+
"properties": {
|
|
1154
|
+
"type": { "const": "response" },
|
|
1155
|
+
"id": { "type": "integer" },
|
|
1156
|
+
"name": { "const": "markAgenticIssueResolved" },
|
|
1157
|
+
"data": { "type": "null" }
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"restoreAgenticIssue_call": {
|
|
1162
|
+
"name": "restoreAgenticIssue_call",
|
|
1163
|
+
"title": "call restoreAgenticIssue",
|
|
1164
|
+
"payload": {
|
|
1165
|
+
"title": "restoreAgenticIssue_call",
|
|
1166
|
+
"type": "object",
|
|
1167
|
+
"additionalProperties": false,
|
|
1168
|
+
"required": ["type", "id", "name", "data"],
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"type": { "const": "call" },
|
|
1171
|
+
"id": { "type": "integer" },
|
|
1172
|
+
"name": { "const": "restoreAgenticIssue" },
|
|
1173
|
+
"data": {
|
|
1174
|
+
"type": "array",
|
|
1175
|
+
"prefixItems": [{ "type": "string" }],
|
|
1176
|
+
"minItems": 1,
|
|
1177
|
+
"maxItems": 1,
|
|
1178
|
+
"items": false
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"restoreAgenticIssue_response": {
|
|
1184
|
+
"name": "restoreAgenticIssue_response",
|
|
1185
|
+
"title": "response restoreAgenticIssue",
|
|
1186
|
+
"payload": {
|
|
1187
|
+
"title": "restoreAgenticIssue_response",
|
|
1188
|
+
"type": "object",
|
|
1189
|
+
"additionalProperties": false,
|
|
1190
|
+
"required": ["type", "id", "name", "data"],
|
|
1191
|
+
"properties": {
|
|
1192
|
+
"type": { "const": "response" },
|
|
1193
|
+
"id": { "type": "integer" },
|
|
1194
|
+
"name": { "const": "restoreAgenticIssue" },
|
|
1195
|
+
"data": { "type": "null" }
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"applyIntegrationSettings_call": {
|
|
1200
|
+
"name": "applyIntegrationSettings_call",
|
|
1201
|
+
"title": "call applyIntegrationSettings",
|
|
1202
|
+
"payload": {
|
|
1203
|
+
"title": "applyIntegrationSettings_call",
|
|
1204
|
+
"type": "object",
|
|
1205
|
+
"additionalProperties": false,
|
|
1206
|
+
"required": ["type", "id", "name", "data"],
|
|
1207
|
+
"properties": {
|
|
1208
|
+
"type": { "const": "call" },
|
|
1209
|
+
"id": { "type": "integer" },
|
|
1210
|
+
"name": { "const": "applyIntegrationSettings" },
|
|
1211
|
+
"data": {
|
|
1212
|
+
"type": "array",
|
|
1213
|
+
"prefixItems": [{ "$ref": "#/components/schemas/IntegrationSettingsPatch" }],
|
|
1214
|
+
"minItems": 1,
|
|
1215
|
+
"maxItems": 1,
|
|
1216
|
+
"items": false
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
"applyIntegrationSettings_response": {
|
|
1222
|
+
"name": "applyIntegrationSettings_response",
|
|
1223
|
+
"title": "response applyIntegrationSettings",
|
|
1224
|
+
"payload": {
|
|
1225
|
+
"title": "applyIntegrationSettings_response",
|
|
1226
|
+
"type": "object",
|
|
1227
|
+
"additionalProperties": false,
|
|
1228
|
+
"required": ["type", "id", "name", "data"],
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"type": { "const": "response" },
|
|
1231
|
+
"id": { "type": "integer" },
|
|
1232
|
+
"name": { "const": "applyIntegrationSettings" },
|
|
1233
|
+
"data": { "type": "null" }
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
"getIntegrationSettings_call": {
|
|
1238
|
+
"name": "getIntegrationSettings_call",
|
|
1239
|
+
"title": "call getIntegrationSettings",
|
|
1240
|
+
"payload": {
|
|
1241
|
+
"title": "getIntegrationSettings_call",
|
|
1242
|
+
"type": "object",
|
|
1243
|
+
"additionalProperties": false,
|
|
1244
|
+
"required": ["type", "id", "name", "data"],
|
|
1245
|
+
"properties": {
|
|
1246
|
+
"type": { "const": "call" },
|
|
1247
|
+
"id": { "type": "integer" },
|
|
1248
|
+
"name": { "const": "getIntegrationSettings" },
|
|
1249
|
+
"data": {
|
|
1250
|
+
"type": "array",
|
|
1251
|
+
"prefixItems": [],
|
|
1252
|
+
"minItems": 0,
|
|
1253
|
+
"maxItems": 0,
|
|
1254
|
+
"items": false
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
"getIntegrationSettings_response": {
|
|
1260
|
+
"name": "getIntegrationSettings_response",
|
|
1261
|
+
"title": "response getIntegrationSettings",
|
|
1262
|
+
"payload": {
|
|
1263
|
+
"title": "getIntegrationSettings_response",
|
|
1264
|
+
"type": "object",
|
|
1265
|
+
"additionalProperties": false,
|
|
1266
|
+
"required": ["type", "id", "name", "data"],
|
|
1267
|
+
"properties": {
|
|
1268
|
+
"type": { "const": "response" },
|
|
1269
|
+
"id": { "type": "integer" },
|
|
1270
|
+
"name": { "const": "getIntegrationSettings" },
|
|
1271
|
+
"data": { "$ref": "#/components/schemas/IntegrationSettingsSnapshot" }
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
"schemas": {
|
|
1277
|
+
"MimeType": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"enum": ["text/plain", "text/markdown", "text/html", "application/dita+xml"],
|
|
1280
|
+
"description": "Common MIME type constants for text content Integrations are not limited to these values - any valid MIME type string can be used Note: The sidebar currently only supports text-based content analysis",
|
|
1281
|
+
"title": "MimeType"
|
|
1282
|
+
},
|
|
1283
|
+
"ContentRange": {
|
|
1284
|
+
"type": "object",
|
|
1285
|
+
"properties": {
|
|
1286
|
+
"start": {
|
|
1287
|
+
"type": "number",
|
|
1288
|
+
"description": "The zero-based character offset from the beginning of the document where the content to replace starts. Must be a non-negative integer."
|
|
1289
|
+
},
|
|
1290
|
+
"end": {
|
|
1291
|
+
"type": "number",
|
|
1292
|
+
"description": "The zero-based exclusive end offset; the span replaced or selected is `[start, end)` in the document."
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"required": ["start", "end"],
|
|
1296
|
+
"additionalProperties": false,
|
|
1297
|
+
"description": "Half-open document span `[start, end)` for replace or select operations.",
|
|
1298
|
+
"title": "ContentRange"
|
|
1299
|
+
},
|
|
1300
|
+
"ContentReplacement": {
|
|
1301
|
+
"type": "object",
|
|
1302
|
+
"properties": {
|
|
1303
|
+
"suggestion": { "type": "string" },
|
|
1304
|
+
"range": { "$ref": "#/components/schemas/ContentRange" }
|
|
1305
|
+
},
|
|
1306
|
+
"required": ["suggestion", "range"],
|
|
1307
|
+
"additionalProperties": false,
|
|
1308
|
+
"title": "ContentReplacement"
|
|
1309
|
+
},
|
|
1310
|
+
"ContentInfo": {
|
|
1311
|
+
"type": "object",
|
|
1312
|
+
"properties": {
|
|
1313
|
+
"content": {
|
|
1314
|
+
"anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "number" } }]
|
|
1315
|
+
},
|
|
1316
|
+
"documentReference": { "type": "string" },
|
|
1317
|
+
"documentName": { "type": "string" },
|
|
1318
|
+
"mimeType": { "type": "string" }
|
|
1319
|
+
},
|
|
1320
|
+
"required": ["content", "documentReference"],
|
|
1321
|
+
"additionalProperties": false,
|
|
1322
|
+
"description": "Content information including the content, document reference, optional document name, and optional mime type The integration must provide content and documentReference - documentName and mimeType are optional\n\n- documentReference: A unique identifier for the document (e.g., URL, file path, or document ID). Required because the API uses it to track a document across scans.\n- documentName: A human-readable name/title for the document (e.g., \"My Report.docx\"). Optional; when absent, the sidebar will attempt to derive it from documentReference if it contains a filename with extension.\n- mimeType: Any valid MIME type string, not limited to MimeType enum values.",
|
|
1323
|
+
"title": "ContentInfo"
|
|
1324
|
+
},
|
|
1325
|
+
"AuthConfigMediation": {
|
|
1326
|
+
"type": "object",
|
|
1327
|
+
"properties": { "type": { "type": "string", "const": "mediation" } },
|
|
1328
|
+
"required": ["type"],
|
|
1329
|
+
"additionalProperties": false,
|
|
1330
|
+
"description": "How the sidebar should run the Auth0 login flow in a given host.\n\n- `\"mediation\"` — backend-mediated authorization code flow. The sidebar asks the backend to start an OAuth handshake, opens the returned `authorizeUrl` in an external browser (via the host, see {@link PluginInterface.openAuthUrl } if provided, else `globalThis.open(url, \"_blank\", \"noopener,noreferrer\")`), and polls the backend for the code + token exchange. Works in restricted iframe contexts such as Figma and Office task panes.\n- `\"popup\"` — Auth0 SPA client `loginWithPopup`. Requires a secure origin and Web Crypto; breaks in iframes with `null` origin.",
|
|
1331
|
+
"title": "AuthConfigMediation"
|
|
1332
|
+
},
|
|
1333
|
+
"AuthConfigPopup": {
|
|
1334
|
+
"type": "object",
|
|
1335
|
+
"properties": { "type": { "type": "string", "const": "popup" } },
|
|
1336
|
+
"required": ["type"],
|
|
1337
|
+
"additionalProperties": false,
|
|
1338
|
+
"title": "AuthConfigPopup"
|
|
1339
|
+
},
|
|
1340
|
+
"AuthConfig": {
|
|
1341
|
+
"anyOf": [
|
|
1342
|
+
{ "$ref": "#/components/schemas/AuthConfigMediation" },
|
|
1343
|
+
{ "$ref": "#/components/schemas/AuthConfigPopup" }
|
|
1344
|
+
],
|
|
1345
|
+
"title": "AuthConfig"
|
|
1346
|
+
},
|
|
1347
|
+
"PluginStatusType": {
|
|
1348
|
+
"type": "string",
|
|
1349
|
+
"enum": ["error", "warning", "info"],
|
|
1350
|
+
"description": "Severity of a plugin status notification surfaced by the sidebar.\n\nMaps one-to-one onto the sidebar's message-box variants:\n- `\"error\"` — error icon, destructive color\n- `\"warning\"` — warning triangle icon\n- `\"info\"` — info icon; the default applied when the type is omitted",
|
|
1351
|
+
"title": "PluginStatusType"
|
|
1352
|
+
},
|
|
1353
|
+
"SidebarConfig": {
|
|
1354
|
+
"type": "object",
|
|
1355
|
+
"properties": {
|
|
1356
|
+
"integrationName": { "type": "string" },
|
|
1357
|
+
"integrationVersion": { "type": "string" },
|
|
1358
|
+
"integrationId": { "type": "string" },
|
|
1359
|
+
"hideBanner": { "type": "boolean" },
|
|
1360
|
+
"dialogClosingScript": { "type": "string" },
|
|
1361
|
+
"pluginOrigin": {
|
|
1362
|
+
"type": "string",
|
|
1363
|
+
"description": "Origin of the plugin/editor window where messages should be sent This is the origin where the plugin is listening for messages from the sidebar"
|
|
1364
|
+
},
|
|
1365
|
+
"useCheckPreviewDialog": {
|
|
1366
|
+
"type": "boolean",
|
|
1367
|
+
"description": "Whether to use the check preview workflow dialog If true, the sidebar will show a check preview dialog where the user can apply issues to the content If false, the sidebar will not show a dialog, but there will be an issue tab on the sidebar from where the user can apply issues"
|
|
1368
|
+
},
|
|
1369
|
+
"supportCheckSelection": {
|
|
1370
|
+
"type": "boolean",
|
|
1371
|
+
"description": "Whether to support selection-based check and rewrite functionality If true or undefined (default), the selection toggle UI will be shown and users can toggle between full content and selection modes If false, the selection toggle UI will be hidden and checkSelectionEnabled will be forced to false"
|
|
1372
|
+
},
|
|
1373
|
+
"auth": {
|
|
1374
|
+
"$ref": "#/components/schemas/AuthConfig",
|
|
1375
|
+
"description": "How the sidebar should run the Auth0 login flow. When omitted, the sidebar falls back to heuristic strategy selection (iframe context, secure origin, etc.) for backwards compatibility. New integrations should set this explicitly; `\"mediation\"` is the correct choice for hosts that embed the sidebar in an iframe (Figma, Office task pane).\n\nIn dev builds, the sidebar also honors a `localStorage` override at the key exported as `AUTH_CONFIG_OVERRIDE_STORAGE_KEY` — see `getAuthConfigWithOverride` in `sidebar-host`."
|
|
1376
|
+
},
|
|
1377
|
+
"integrationSettings": {
|
|
1378
|
+
"$ref": "#/components/schemas/IntegrationSettingsSchema",
|
|
1379
|
+
"description": "Optional declarative schema of host-supplied settings rendered in the sidebar's Settings surface. When omitted, no integration-settings section is rendered and no related IPC traffic is emitted.\n\nSee `@markupai/sidebar-adapter` README → \"Integration settings\" for the shape and lifecycle."
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"required": ["integrationName", "integrationVersion", "useCheckPreviewDialog"],
|
|
1383
|
+
"additionalProperties": false,
|
|
1384
|
+
"description": "Configuration for the sidebar",
|
|
1385
|
+
"title": "SidebarConfig"
|
|
1386
|
+
},
|
|
1387
|
+
"IntegrationSettingsSchema": {
|
|
1388
|
+
"type": "object",
|
|
1389
|
+
"properties": {
|
|
1390
|
+
"title": { "type": "string" },
|
|
1391
|
+
"fields": {
|
|
1392
|
+
"type": "array",
|
|
1393
|
+
"items": { "$ref": "#/components/schemas/IntegrationSettingField" }
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"required": ["fields"],
|
|
1397
|
+
"additionalProperties": false,
|
|
1398
|
+
"description": "Schema declared by the host in {@link SidebarConfig.integrationSettings } .\n\nThe sidebar parses schemas leniently: fields whose `type` the sidebar does not understand are dropped (with a single `console.warn`) and the rest still render. Hosts can therefore ship a schema using newer field types and still have it degrade gracefully on older sidebars — no explicit version handshake is required.",
|
|
1399
|
+
"title": "IntegrationSettingsSchema"
|
|
1400
|
+
},
|
|
1401
|
+
"IntegrationSettingField": {
|
|
1402
|
+
"anyOf": [
|
|
1403
|
+
{ "$ref": "#/components/schemas/IntegrationSettingBooleanField" },
|
|
1404
|
+
{ "$ref": "#/components/schemas/IntegrationSettingEnumField" }
|
|
1405
|
+
],
|
|
1406
|
+
"description": "Discriminated union of every supported field type. Adding a new field type (`text`, `number`, …) is an additive change — existing fields keep working.",
|
|
1407
|
+
"title": "IntegrationSettingField"
|
|
1408
|
+
},
|
|
1409
|
+
"IntegrationSettingBooleanField": {
|
|
1410
|
+
"type": "object",
|
|
1411
|
+
"properties": {
|
|
1412
|
+
"id": { "type": "string" },
|
|
1413
|
+
"label": { "type": "string" },
|
|
1414
|
+
"description": { "type": "string" },
|
|
1415
|
+
"type": { "type": "string", "const": "boolean" },
|
|
1416
|
+
"default": { "type": "boolean" }
|
|
1417
|
+
},
|
|
1418
|
+
"required": ["default", "id", "label", "type"],
|
|
1419
|
+
"additionalProperties": false,
|
|
1420
|
+
"description": "Boolean toggle rendered as a switch.",
|
|
1421
|
+
"title": "IntegrationSettingBooleanField"
|
|
1422
|
+
},
|
|
1423
|
+
"IntegrationSettingEnumField": {
|
|
1424
|
+
"type": "object",
|
|
1425
|
+
"properties": {
|
|
1426
|
+
"id": { "type": "string" },
|
|
1427
|
+
"label": { "type": "string" },
|
|
1428
|
+
"description": { "type": "string" },
|
|
1429
|
+
"type": { "type": "string", "const": "enum" },
|
|
1430
|
+
"default": { "type": "string" },
|
|
1431
|
+
"options": {
|
|
1432
|
+
"type": "array",
|
|
1433
|
+
"items": { "$ref": "#/components/schemas/IntegrationSettingEnumOption" }
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
"required": ["default", "id", "label", "options", "type"],
|
|
1437
|
+
"additionalProperties": false,
|
|
1438
|
+
"description": "Single-select enum rendered as a dropdown. Each option carries a stable `value` (persisted) and a user-visible `label`.",
|
|
1439
|
+
"title": "IntegrationSettingEnumField"
|
|
1440
|
+
},
|
|
1441
|
+
"IntegrationSettingEnumOption": {
|
|
1442
|
+
"type": "object",
|
|
1443
|
+
"properties": { "value": { "type": "string" }, "label": { "type": "string" } },
|
|
1444
|
+
"required": ["value", "label"],
|
|
1445
|
+
"additionalProperties": false,
|
|
1446
|
+
"description": "A single option in an {@link IntegrationSettingEnumField } dropdown. `value` is the stable persisted key; `label` is the user-visible display text.",
|
|
1447
|
+
"title": "IntegrationSettingEnumOption"
|
|
1448
|
+
},
|
|
1449
|
+
"AgenticIssuePosition": {
|
|
1450
|
+
"type": "object",
|
|
1451
|
+
"properties": {
|
|
1452
|
+
"start": { "type": "number" },
|
|
1453
|
+
"end": { "type": "number" },
|
|
1454
|
+
"text": { "type": "string" }
|
|
1455
|
+
},
|
|
1456
|
+
"required": ["start", "end", "text"],
|
|
1457
|
+
"additionalProperties": false,
|
|
1458
|
+
"description": "Character-offset span of an agentic issue within the document.",
|
|
1459
|
+
"title": "AgenticIssuePosition"
|
|
1460
|
+
},
|
|
1461
|
+
"AgenticIssuePayload": {
|
|
1462
|
+
"type": "object",
|
|
1463
|
+
"properties": {
|
|
1464
|
+
"id": { "type": "string" },
|
|
1465
|
+
"groupKey": { "type": "string" },
|
|
1466
|
+
"status": { "type": "string", "enum": ["active", "resolved", "dismissed"] },
|
|
1467
|
+
"original": { "type": "string" },
|
|
1468
|
+
"agent": { "type": "string" },
|
|
1469
|
+
"explanation": { "type": "string" },
|
|
1470
|
+
"severity": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
|
|
1471
|
+
"confidence": { "type": "number" },
|
|
1472
|
+
"position": { "$ref": "#/components/schemas/AgenticIssuePosition" },
|
|
1473
|
+
"suggestion": { "type": "string" },
|
|
1474
|
+
"suggestions": { "type": "array", "items": { "type": "string" } },
|
|
1475
|
+
"category": { "type": "string" },
|
|
1476
|
+
"read_only": {
|
|
1477
|
+
"type": "boolean",
|
|
1478
|
+
"description": "When true, the host cannot apply replacements (e.g. issue points at a variable or hidden content)."
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
"required": [
|
|
1482
|
+
"id",
|
|
1483
|
+
"groupKey",
|
|
1484
|
+
"status",
|
|
1485
|
+
"original",
|
|
1486
|
+
"agent",
|
|
1487
|
+
"explanation",
|
|
1488
|
+
"severity",
|
|
1489
|
+
"confidence",
|
|
1490
|
+
"position"
|
|
1491
|
+
],
|
|
1492
|
+
"additionalProperties": false,
|
|
1493
|
+
"description": "Serializable payload for a single agentic issue sent over IPC (Sidebar → Plugin). Used when streaming agent results so the plugin can render underlines or other UI.",
|
|
1494
|
+
"title": "AgenticIssuePayload"
|
|
1495
|
+
},
|
|
1496
|
+
"PluginInterface": {
|
|
1497
|
+
"type": "object",
|
|
1498
|
+
"properties": {
|
|
1499
|
+
"getContent": {
|
|
1500
|
+
"$comment": "() => Promise<ContentInfo>",
|
|
1501
|
+
"description": "Get content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional"
|
|
1502
|
+
},
|
|
1503
|
+
"getSelectedContent": {
|
|
1504
|
+
"$comment": "() => Promise<ContentInfo>",
|
|
1505
|
+
"description": "Get selected content from the editor in whatever format the integration supports The integration must provide content and documentReference; documentName and mimeType are optional"
|
|
1506
|
+
},
|
|
1507
|
+
"replaceContent": {
|
|
1508
|
+
"$comment": "(suggestion: string, range: ContentRange) => Promise<void>",
|
|
1509
|
+
"type": "object",
|
|
1510
|
+
"properties": {
|
|
1511
|
+
"namedArgs": {
|
|
1512
|
+
"type": "object",
|
|
1513
|
+
"properties": {
|
|
1514
|
+
"suggestion": { "type": "string" },
|
|
1515
|
+
"range": { "$ref": "#/components/schemas/ContentRange" }
|
|
1516
|
+
},
|
|
1517
|
+
"required": ["suggestion", "range"],
|
|
1518
|
+
"additionalProperties": false
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"description": "Replace content in the editor using document offsets only."
|
|
1522
|
+
},
|
|
1523
|
+
"selectContent": {
|
|
1524
|
+
"$comment": "(range: ContentRange) => Promise<void>",
|
|
1525
|
+
"type": "object",
|
|
1526
|
+
"properties": {
|
|
1527
|
+
"namedArgs": {
|
|
1528
|
+
"type": "object",
|
|
1529
|
+
"properties": { "range": { "$ref": "#/components/schemas/ContentRange" } },
|
|
1530
|
+
"required": ["range"],
|
|
1531
|
+
"additionalProperties": false
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"description": "Select or highlight content in the editor using document character offsets only."
|
|
1535
|
+
},
|
|
1536
|
+
"showDialog": {
|
|
1537
|
+
"$comment": "(\n dialogHtml: string,\n width?: number,\n height?: number,\n title?: string) => Promise<void>",
|
|
1538
|
+
"type": "object",
|
|
1539
|
+
"properties": {
|
|
1540
|
+
"namedArgs": {
|
|
1541
|
+
"type": "object",
|
|
1542
|
+
"properties": {
|
|
1543
|
+
"dialogHtml": { "type": "string" },
|
|
1544
|
+
"width": { "type": "number" },
|
|
1545
|
+
"height": { "type": "number" },
|
|
1546
|
+
"title": { "type": "string" }
|
|
1547
|
+
},
|
|
1548
|
+
"required": ["dialogHtml"],
|
|
1549
|
+
"additionalProperties": false
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
"description": "Show a dialog in the editor"
|
|
1553
|
+
},
|
|
1554
|
+
"closeDialog": {
|
|
1555
|
+
"$comment": "() => Promise<void>",
|
|
1556
|
+
"description": "Close the dialog in the editor"
|
|
1557
|
+
},
|
|
1558
|
+
"replaceMultipleContents": {
|
|
1559
|
+
"$comment": "(replacements: ContentReplacement[]) => Promise<void>",
|
|
1560
|
+
"type": "object",
|
|
1561
|
+
"properties": {
|
|
1562
|
+
"namedArgs": {
|
|
1563
|
+
"type": "object",
|
|
1564
|
+
"properties": {
|
|
1565
|
+
"replacements": {
|
|
1566
|
+
"type": "array",
|
|
1567
|
+
"items": { "$ref": "#/components/schemas/ContentReplacement" }
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
"required": ["replacements"],
|
|
1571
|
+
"additionalProperties": false
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"description": "Replace multiple contents in the editor"
|
|
1575
|
+
},
|
|
1576
|
+
"getInitConfig": {
|
|
1577
|
+
"$comment": "() => Promise<SidebarConfig>",
|
|
1578
|
+
"description": "Get initialization configuration from the editor Called by the sidebar when it's ready to initialize"
|
|
1579
|
+
},
|
|
1580
|
+
"onAgenticAgentResults": {
|
|
1581
|
+
"$comment": "(agentName: string, issues: AgenticIssuePayload[]) => Promise<void>",
|
|
1582
|
+
"type": "object",
|
|
1583
|
+
"properties": {
|
|
1584
|
+
"namedArgs": {
|
|
1585
|
+
"type": "object",
|
|
1586
|
+
"properties": {
|
|
1587
|
+
"agentName": { "type": "string" },
|
|
1588
|
+
"issues": {
|
|
1589
|
+
"type": "array",
|
|
1590
|
+
"items": { "$ref": "#/components/schemas/AgenticIssuePayload" }
|
|
1591
|
+
}
|
|
1592
|
+
},
|
|
1593
|
+
"required": ["agentName", "issues"],
|
|
1594
|
+
"additionalProperties": false
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
"description": "Called when one agent's results are available during agentic streaming. Enables the plugin to render underlines or update UI per agent as results arrive."
|
|
1598
|
+
},
|
|
1599
|
+
"onAgenticStreamComplete": {
|
|
1600
|
+
"$comment": "() => Promise<void>",
|
|
1601
|
+
"description": "Called when the agentic stream has finished (all agents done or completion/error event)."
|
|
1602
|
+
},
|
|
1603
|
+
"onAgenticIssueStatusChanged": {
|
|
1604
|
+
"$comment": "(\n issueId: string,\n status: \"active\" | \"resolved\" | \"dismissed\",\n source: \"user\" | \"host\") => Promise<void>",
|
|
1605
|
+
"type": "object",
|
|
1606
|
+
"properties": {
|
|
1607
|
+
"namedArgs": {
|
|
1608
|
+
"type": "object",
|
|
1609
|
+
"properties": {
|
|
1610
|
+
"issueId": { "type": "string" },
|
|
1611
|
+
"status": { "type": "string", "enum": ["active", "resolved", "dismissed"] },
|
|
1612
|
+
"source": { "type": "string", "enum": ["user", "host"] }
|
|
1613
|
+
},
|
|
1614
|
+
"required": ["issueId", "status", "source"],
|
|
1615
|
+
"additionalProperties": false
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
"description": "Called by the sidebar after every successful status transition for an agentic issue. Fires for transitions driven by sidebar card affordances (`source: \"user\"`) and by host RPC calls ( {@link SidebarInterface.invalidateAgenticIssue } , {@link SidebarInterface.markAgenticIssueResolved } , {@link SidebarInterface.restoreAgenticIssue } , `source: \"host\"`).\n\nBest-effort: the sidebar tolerates a missing or throwing implementation and does not roll back its own UI on failure. No-op calls (e.g. marking an already-resolved issue) MUST NOT emit a duplicate notification."
|
|
1619
|
+
},
|
|
1620
|
+
"openAuthUrl": {
|
|
1621
|
+
"$comment": "(url: string) => Promise<void>",
|
|
1622
|
+
"type": "object",
|
|
1623
|
+
"properties": {
|
|
1624
|
+
"namedArgs": {
|
|
1625
|
+
"type": "object",
|
|
1626
|
+
"properties": { "url": { "type": "string" } },
|
|
1627
|
+
"required": ["url"],
|
|
1628
|
+
"additionalProperties": false
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
"description": "Open an external URL during an authentication flow (typically the Auth0 `authorizeUrl` returned by the backend-mediated OAuth flow).\n\nOptional. When the host does not provide this, the sidebar falls back to `globalThis.open(url, \"_blank\", \"noopener,noreferrer\")` (the `noopener,noreferrer` mitigates reverse-tabnabbing when opening a third-party auth domain). The fallback is blocked or silently broken in some embedded contexts (Office task pane, some Figma builds).\n\nHosts that live inside a sandboxed container should implement this with their platform primitive — for example, Office add-ins should call `Office.context.ui.openBrowserWindow(url)`.\n\nThe returned promise resolves once the host has handed off the URL; it does **not** need to wait for the user to complete the auth flow (the sidebar handles that via backend polling)."
|
|
1632
|
+
},
|
|
1633
|
+
"copyToClipboard": {
|
|
1634
|
+
"$comment": "(text: string) => Promise<void>",
|
|
1635
|
+
"type": "object",
|
|
1636
|
+
"properties": {
|
|
1637
|
+
"namedArgs": {
|
|
1638
|
+
"type": "object",
|
|
1639
|
+
"properties": { "text": { "type": "string" } },
|
|
1640
|
+
"required": ["text"],
|
|
1641
|
+
"additionalProperties": false
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
"description": "Write text to the system clipboard on the sidebar's behalf.\n\nOptional. When the host does not provide this, the sidebar copies with `navigator.clipboard.writeText` (falling back to `document.execCommand`). Those in-iframe paths are blocked in some embedded contexts — most notably VS Code webviews, whose Electron permission handler denies the async clipboard API to any frame that is not on the `vscode-webview://` origin, regardless of Permissions-Policy delegation.\n\nHosts with a privileged clipboard primitive should implement this with it — for example, the VS Code extension calls `vscode.env.clipboard.writeText(text)` in the extension host.\n\nThe returned promise resolves once the text has been written to the clipboard; reject to signal the write failed."
|
|
1645
|
+
},
|
|
1646
|
+
"onIntegrationSettingsChange": {
|
|
1647
|
+
"$comment": "(\n values: IntegrationSettingsValues,\n meta: IntegrationSettingsChangeMeta) => Promise<void>",
|
|
1648
|
+
"type": "object",
|
|
1649
|
+
"properties": {
|
|
1650
|
+
"namedArgs": {
|
|
1651
|
+
"type": "object",
|
|
1652
|
+
"properties": {
|
|
1653
|
+
"values": { "$ref": "#/components/schemas/IntegrationSettingsValues" },
|
|
1654
|
+
"meta": { "$ref": "#/components/schemas/IntegrationSettingsChangeMeta" }
|
|
1655
|
+
},
|
|
1656
|
+
"required": ["values", "meta"],
|
|
1657
|
+
"additionalProperties": false
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
"description": "Called when the user changes a value in the integration-settings form declared via {@link SidebarConfig.integrationSettings } .\n\nOptional. Only invoked for **user-driven** changes; values pushed by the host via {@link SidebarInterface.applyIntegrationSettings } do not echo back to this handler."
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
"required": [
|
|
1664
|
+
"getContent",
|
|
1665
|
+
"getSelectedContent",
|
|
1666
|
+
"replaceContent",
|
|
1667
|
+
"selectContent",
|
|
1668
|
+
"showDialog",
|
|
1669
|
+
"closeDialog",
|
|
1670
|
+
"replaceMultipleContents",
|
|
1671
|
+
"getInitConfig"
|
|
1672
|
+
],
|
|
1673
|
+
"additionalProperties": false,
|
|
1674
|
+
"description": "Interface for the functions to implement in the Editor that the Sidebar will call via IPC All methods return Promises for proper async handling",
|
|
1675
|
+
"title": "PluginInterface"
|
|
1676
|
+
},
|
|
1677
|
+
"IntegrationSettingsValues": {
|
|
1678
|
+
"$ref": "#/components/schemas/Record%3Cstring%2C(boolean%7Cstring)%3E",
|
|
1679
|
+
"description": "Map of field id → current value. Booleans persist as `boolean`; enums persist as the option's `value` string.",
|
|
1680
|
+
"title": "IntegrationSettingsValues"
|
|
1681
|
+
},
|
|
1682
|
+
"Record<string,(boolean|string)>": {
|
|
1683
|
+
"type": "object",
|
|
1684
|
+
"additionalProperties": { "type": ["boolean", "string"] },
|
|
1685
|
+
"title": "Record<string,(boolean|string)>"
|
|
1686
|
+
},
|
|
1687
|
+
"IntegrationSettingsChangeMeta": {
|
|
1688
|
+
"type": "object",
|
|
1689
|
+
"properties": {
|
|
1690
|
+
"source": { "$ref": "#/components/schemas/IntegrationSettingsChangeSource" }
|
|
1691
|
+
},
|
|
1692
|
+
"required": ["source"],
|
|
1693
|
+
"additionalProperties": false,
|
|
1694
|
+
"title": "IntegrationSettingsChangeMeta"
|
|
1695
|
+
},
|
|
1696
|
+
"IntegrationSettingsChangeSource": {
|
|
1697
|
+
"type": "string",
|
|
1698
|
+
"const": "user",
|
|
1699
|
+
"description": "Origin of a settings change forwarded to the host via {@link PluginInterface.onIntegrationSettingsChange } . Only user-driven changes are emitted — host-driven changes do not echo back, since the host already knows what it pushed.\n\nThe union is intentionally narrow (single member) so future additions are additive and surface in TypeScript at the point a new source actually starts being emitted.",
|
|
1700
|
+
"title": "IntegrationSettingsChangeSource"
|
|
1701
|
+
},
|
|
1702
|
+
"SidebarInterface": {
|
|
1703
|
+
"type": "object",
|
|
1704
|
+
"properties": {
|
|
1705
|
+
"onPluginStatusChange": {
|
|
1706
|
+
"$comment": "(status: string, type?: PluginStatusType) => Promise<void>",
|
|
1707
|
+
"type": "object",
|
|
1708
|
+
"properties": {
|
|
1709
|
+
"namedArgs": {
|
|
1710
|
+
"type": "object",
|
|
1711
|
+
"properties": {
|
|
1712
|
+
"status": { "type": "string" },
|
|
1713
|
+
"type": { "$ref": "#/components/schemas/PluginStatusType" }
|
|
1714
|
+
},
|
|
1715
|
+
"required": ["status"],
|
|
1716
|
+
"additionalProperties": false
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"description": "Example method: Called when plugin status changes (e.g., initialization complete) This serves as a template for adding future Plugin → Sidebar communication"
|
|
1720
|
+
},
|
|
1721
|
+
"activateAgenticIssue": {
|
|
1722
|
+
"$comment": "(issueId: string) => Promise<void>",
|
|
1723
|
+
"type": "object",
|
|
1724
|
+
"properties": {
|
|
1725
|
+
"namedArgs": {
|
|
1726
|
+
"type": "object",
|
|
1727
|
+
"properties": { "issueId": { "type": "string" } },
|
|
1728
|
+
"required": ["issueId"],
|
|
1729
|
+
"additionalProperties": false
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
"description": "Request the sidebar to activate (expand and scroll to) the card for the given issue. Used when the user clicks an underline in the document so the sidebar focuses that issue."
|
|
1733
|
+
},
|
|
1734
|
+
"invalidateAgenticIssue": {
|
|
1735
|
+
"$comment": "(issueId: string) => Promise<void>",
|
|
1736
|
+
"type": "object",
|
|
1737
|
+
"properties": {
|
|
1738
|
+
"namedArgs": {
|
|
1739
|
+
"type": "object",
|
|
1740
|
+
"properties": { "issueId": { "type": "string" } },
|
|
1741
|
+
"required": ["issueId"],
|
|
1742
|
+
"additionalProperties": false
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
"description": "Request the sidebar to invalidate (dismiss) the card for the given issue. Used when the plugin wants to programmatically dismiss an issue (e.g. after replacement)."
|
|
1746
|
+
},
|
|
1747
|
+
"markAgenticIssueResolved": {
|
|
1748
|
+
"$comment": "(issueId: string) => Promise<void>",
|
|
1749
|
+
"type": "object",
|
|
1750
|
+
"properties": {
|
|
1751
|
+
"namedArgs": {
|
|
1752
|
+
"type": "object",
|
|
1753
|
+
"properties": { "issueId": { "type": "string" } },
|
|
1754
|
+
"required": ["issueId"],
|
|
1755
|
+
"additionalProperties": false
|
|
1756
|
+
}
|
|
1757
|
+
},
|
|
1758
|
+
"description": "Request the sidebar to mark an open issue as resolved without applying a suggestion. Parallel to {@link invalidateAgenticIssue } ; the resulting issue is restorable via {@link restoreAgenticIssue } .\n\nSilent no-op for ids that are already resolved, already dismissed, or unknown to the sidebar."
|
|
1759
|
+
},
|
|
1760
|
+
"restoreAgenticIssue": {
|
|
1761
|
+
"$comment": "(issueId: string) => Promise<void>",
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"properties": {
|
|
1764
|
+
"namedArgs": {
|
|
1765
|
+
"type": "object",
|
|
1766
|
+
"properties": { "issueId": { "type": "string" } },
|
|
1767
|
+
"required": ["issueId"],
|
|
1768
|
+
"additionalProperties": false
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
"description": "Request the sidebar to transition an issue back to the open state. Routes to the unresolve path for manually-resolved issues and to the undismiss path for dismissed issues.\n\nSilent no-op for ids that are already open, resolved via an applied suggestion (which is terminal), or unknown to the sidebar."
|
|
1772
|
+
},
|
|
1773
|
+
"applyIntegrationSettings": {
|
|
1774
|
+
"$comment": "(patch: IntegrationSettingsPatch) => Promise<void>",
|
|
1775
|
+
"type": "object",
|
|
1776
|
+
"properties": {
|
|
1777
|
+
"namedArgs": {
|
|
1778
|
+
"type": "object",
|
|
1779
|
+
"properties": {
|
|
1780
|
+
"patch": { "$ref": "#/components/schemas/IntegrationSettingsPatch" }
|
|
1781
|
+
},
|
|
1782
|
+
"required": ["patch"],
|
|
1783
|
+
"additionalProperties": false
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"description": "Apply a host-driven patch to the integration-settings form values and/or per-field UI state. The host calls this to push values and constraints into the sidebar — for example, locking a field's enum options or disabling it in response to its own state.\n\nMerge semantics: keys present in the patch overwrite prior state; keys absent preserve prior state; passing `null` for a field's state clears it. Values pushed via this call are persisted; field states are session-only.\n\nOptional on the `SidebarInterface` type so legacy consumers that pass `undefined` continue to compile. The sidebar app's actual implementation always provides it."
|
|
1787
|
+
},
|
|
1788
|
+
"getIntegrationSettings": {
|
|
1789
|
+
"$comment": "() => Promise<IntegrationSettingsSnapshot>",
|
|
1790
|
+
"description": "Read back the sidebar's current integration-settings state — the persisted user values plus any session-only field states the host has pushed via {@link applyIntegrationSettings } . Hosts call this when they re-mount mid-session and need to mirror sidebar state without clobbering the user's persisted choices.\n\nReturns an empty snapshot (`{ values: {}, fieldStates: {} }`) when no integration-settings schema has been declared.\n\nOptional on the `SidebarInterface` type for the same reason as {@link applyIntegrationSettings } ; the sidebar app's actual implementation always provides it."
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
"additionalProperties": false,
|
|
1794
|
+
"description": "Interface for functions to implement in the Sidebar that the Plugin can call via IPC\n\nCurrently using PULL pattern where Sidebar initiates all communication. This interface is provided for future extensibility when Plugin → Sidebar calls are needed.",
|
|
1795
|
+
"title": "SidebarInterface"
|
|
1796
|
+
},
|
|
1797
|
+
"IntegrationSettingsPatch": {
|
|
1798
|
+
"type": "object",
|
|
1799
|
+
"properties": {
|
|
1800
|
+
"values": { "$ref": "#/components/schemas/Partial%3CIntegrationSettingsValues%3E" },
|
|
1801
|
+
"fieldStates": {
|
|
1802
|
+
"$ref": "#/components/schemas/Record%3Cstring%2C(IntegrationSettingFieldState%7Cnull)%3E"
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
"additionalProperties": false,
|
|
1806
|
+
"description": "Patch applied by the host via {@link SidebarInterface.applyIntegrationSettings } . Merge semantics:\n\n- Keys present in `values` overwrite the prior value for that field; absent keys preserve the prior value.\n- Keys present in `fieldStates` overwrite the prior state for that field; absent keys preserve the prior state. Pass `null` for a field to clear its state entirely.\n\nValues pushed by the host are persisted under the same per-integration `localStorage` key as user-driven values; field states are not persisted.",
|
|
1807
|
+
"title": "IntegrationSettingsPatch"
|
|
1808
|
+
},
|
|
1809
|
+
"Partial<IntegrationSettingsValues>": {
|
|
1810
|
+
"type": "object",
|
|
1811
|
+
"additionalProperties": { "type": ["boolean", "string"] },
|
|
1812
|
+
"title": "Partial<IntegrationSettingsValues>"
|
|
1813
|
+
},
|
|
1814
|
+
"Record<string,(IntegrationSettingFieldState|null)>": {
|
|
1815
|
+
"type": "object",
|
|
1816
|
+
"additionalProperties": {
|
|
1817
|
+
"anyOf": [
|
|
1818
|
+
{ "$ref": "#/components/schemas/IntegrationSettingFieldState" },
|
|
1819
|
+
{ "type": "null" }
|
|
1820
|
+
]
|
|
1821
|
+
},
|
|
1822
|
+
"title": "Record<string,(IntegrationSettingFieldState|null)>"
|
|
1823
|
+
},
|
|
1824
|
+
"IntegrationSettingFieldState": {
|
|
1825
|
+
"type": "object",
|
|
1826
|
+
"properties": {
|
|
1827
|
+
"disabled": { "type": "boolean" },
|
|
1828
|
+
"hidden": { "type": "boolean" },
|
|
1829
|
+
"allowedValues": { "type": "array", "items": { "type": "string" } }
|
|
1830
|
+
},
|
|
1831
|
+
"additionalProperties": false,
|
|
1832
|
+
"description": "Host-driven per-field UI state. Session-only — never persisted across sidebar reloads. The host re-asserts these on init or in response to its own state changes.",
|
|
1833
|
+
"title": "IntegrationSettingFieldState"
|
|
1834
|
+
},
|
|
1835
|
+
"IntegrationSettingFieldBase": {
|
|
1836
|
+
"type": "object",
|
|
1837
|
+
"properties": {
|
|
1838
|
+
"id": { "type": "string" },
|
|
1839
|
+
"label": { "type": "string" },
|
|
1840
|
+
"description": { "type": "string" }
|
|
1841
|
+
},
|
|
1842
|
+
"required": ["id", "label"],
|
|
1843
|
+
"additionalProperties": false,
|
|
1844
|
+
"description": "Common shape shared by every settings field.",
|
|
1845
|
+
"title": "IntegrationSettingFieldBase"
|
|
1846
|
+
},
|
|
1847
|
+
"IntegrationSettingsSnapshot": {
|
|
1848
|
+
"type": "object",
|
|
1849
|
+
"properties": {
|
|
1850
|
+
"values": { "$ref": "#/components/schemas/IntegrationSettingsValues" },
|
|
1851
|
+
"fieldStates": {
|
|
1852
|
+
"$ref": "#/components/schemas/Record%3Cstring%2CIntegrationSettingFieldState%3E"
|
|
1853
|
+
}
|
|
1854
|
+
},
|
|
1855
|
+
"required": ["values", "fieldStates"],
|
|
1856
|
+
"additionalProperties": false,
|
|
1857
|
+
"description": "Snapshot of the sidebar's current integration-settings state, returned by {@link SidebarInterface.getIntegrationSettings } . Hosts call this to read back what the sidebar has — for example, on a re-mount where the host needs to mirror sidebar state without clobbering the user's persisted choices.\n\nThe sidebar is the source of truth for `values` (persisted per `integrationId` in `localStorage`). `fieldStates` is session-only and reflects whatever the host most recently pushed via {@link SidebarInterface.applyIntegrationSettings } .",
|
|
1858
|
+
"title": "IntegrationSettingsSnapshot"
|
|
1859
|
+
},
|
|
1860
|
+
"Record<string,IntegrationSettingFieldState>": {
|
|
1861
|
+
"type": "object",
|
|
1862
|
+
"additionalProperties": { "$ref": "#/components/schemas/IntegrationSettingFieldState" },
|
|
1863
|
+
"title": "Record<string,IntegrationSettingFieldState>"
|
|
1864
|
+
},
|
|
1865
|
+
"isIntegrationSettingsSchema": {
|
|
1866
|
+
"$comment": "(value: unknown) => value is IntegrationSettingsSchema",
|
|
1867
|
+
"type": "object",
|
|
1868
|
+
"properties": {
|
|
1869
|
+
"namedArgs": {
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"properties": { "value": {} },
|
|
1872
|
+
"required": ["value"],
|
|
1873
|
+
"additionalProperties": false
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
"title": "isIntegrationSettingsSchema"
|
|
1877
|
+
},
|
|
1878
|
+
"isIntegrationSettingField": {
|
|
1879
|
+
"$comment": "(value: unknown) => value is IntegrationSettingField",
|
|
1880
|
+
"type": "object",
|
|
1881
|
+
"properties": {
|
|
1882
|
+
"namedArgs": {
|
|
1883
|
+
"type": "object",
|
|
1884
|
+
"properties": { "value": {} },
|
|
1885
|
+
"required": ["value"],
|
|
1886
|
+
"additionalProperties": false
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
"title": "isIntegrationSettingField"
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
}
|