@floegence/redevplugin-ui 0.4.3 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge-capability.d.ts +7 -0
- package/dist/bridge-capability.js +8 -0
- package/dist/capability-client.d.ts +27 -7
- package/dist/capability-client.js +25 -19
- package/dist/contracts.gen.d.ts +84 -66
- package/dist/contracts.gen.js +87 -66
- package/dist/error-codes.gen.d.ts +4 -0
- package/dist/error-codes.gen.js +206 -0
- package/dist/errors.d.ts +22 -4
- package/dist/errors.js +42 -60
- package/dist/http.d.ts +16 -8
- package/dist/http.js +151 -15
- package/dist/local-import.d.ts +6 -11
- package/dist/local-import.js +58 -13
- package/dist/opaque-surface-policy.gen.d.ts +4 -3
- package/dist/opaque-surface-policy.gen.js +4 -2
- package/dist/openapi.gen.d.ts +3745 -0
- package/dist/openapi.gen.js +5 -0
- package/dist/platform.d.ts +148 -529
- package/dist/platform.js +250 -81
- package/dist/plugin.d.ts +2 -2
- package/dist/surface-scope.d.ts +2 -2
- package/dist/surface-scope.js +22 -6
- package/dist/surface.d.ts +64 -31
- package/dist/surface.js +1406 -202
- package/dist/trusted-parent.d.ts +3 -3
- package/dist/trusted-parent.js +1 -1
- package/dist/ui-patch-validator.d.ts +67 -0
- package/dist/ui-patch-validator.js +125 -0
- package/dist/ui-reconciler.d.ts +10 -0
- package/dist/ui-reconciler.js +283 -0
- package/package.json +1 -1
package/dist/platform.d.ts
CHANGED
|
@@ -1,539 +1,158 @@
|
|
|
1
1
|
import { type FetchLike } from "./http.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { components, operations } from "./openapi.gen.js";
|
|
3
|
+
import { type PluginConfirmationHandler, type PluginSurfaceHost, type PluginSurfaceOpeningProgress, type PluginSurfaceReloadLimiter, type PluginSurfaceSlot, type PluginTrustedMethodResult, type ReDevPluginSurfaceTransport } from "./surface.js";
|
|
3
4
|
import { type PluginSurfaceScope } from "./surface-scope.js";
|
|
4
5
|
export type PluginPlatformClientOptions = {
|
|
5
6
|
fetch?: FetchLike;
|
|
6
7
|
apiBaseURL?: string;
|
|
7
8
|
surfaceScope?: PluginSurfaceScope;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export type
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export type
|
|
61
|
-
export type
|
|
62
|
-
|
|
63
|
-
export type
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export type
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export type
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export type
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export type
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
entries_hash?: string;
|
|
113
|
-
trust_state: PluginTrustState | string;
|
|
114
|
-
trust_assessment: PluginTrustAssessment;
|
|
115
|
-
source_policy_snapshot_hash?: string;
|
|
116
|
-
source_policy_snapshot?: Record<string, unknown>;
|
|
117
|
-
local_import_provenance?: PluginLocalImportProvenance;
|
|
118
|
-
enable_state: PluginEnableState | string;
|
|
119
|
-
disabled_reason?: string;
|
|
120
|
-
retained_data_state?: PluginRetainedDataState | string;
|
|
121
|
-
policy_revision?: number;
|
|
122
|
-
management_revision?: number;
|
|
123
|
-
revoke_epoch?: number;
|
|
124
|
-
manifest?: Record<string, unknown>;
|
|
125
|
-
package_entries?: Array<Record<string, unknown>>;
|
|
126
|
-
version_history?: PluginVersionRecord[];
|
|
127
|
-
installed_at?: string;
|
|
128
|
-
enabled_at?: string;
|
|
129
|
-
updated_at?: string;
|
|
130
|
-
deleted_at?: string;
|
|
131
|
-
metadata?: Record<string, string>;
|
|
132
|
-
[key: string]: unknown;
|
|
133
|
-
};
|
|
134
|
-
export type PluginPackageHashSet = {
|
|
135
|
-
package_sha256: string;
|
|
136
|
-
manifest_sha256: string;
|
|
137
|
-
entries_sha256: string;
|
|
138
|
-
};
|
|
139
|
-
export type PluginReleaseRef = {
|
|
140
|
-
source_id: string;
|
|
141
|
-
release_metadata_ref: string;
|
|
142
|
-
release_metadata_sha256: string;
|
|
143
|
-
publisher_id: string;
|
|
144
|
-
plugin_id: string;
|
|
145
|
-
version: string;
|
|
146
|
-
expected_hashes: PluginPackageHashSet;
|
|
147
|
-
};
|
|
148
|
-
export type PluginInstallReleaseRefRequest = {
|
|
149
|
-
release_ref: PluginReleaseRef;
|
|
150
|
-
plugin_instance_id?: string;
|
|
151
|
-
plugin_state_version: 0;
|
|
152
|
-
};
|
|
153
|
-
export type PluginUpdateReleaseRefRequest = {
|
|
154
|
-
plugin_instance_id: string;
|
|
155
|
-
release_ref: PluginReleaseRef;
|
|
156
|
-
plugin_state_version: number;
|
|
157
|
-
};
|
|
158
|
-
export type PluginDowngradeRequest = {
|
|
159
|
-
plugin_instance_id: string;
|
|
160
|
-
version?: string;
|
|
161
|
-
package_hash?: string;
|
|
162
|
-
plugin_state_version: number;
|
|
163
|
-
};
|
|
164
|
-
export type PluginEnableRequest = {
|
|
165
|
-
plugin_instance_id: string;
|
|
166
|
-
plugin_state_version: number;
|
|
167
|
-
};
|
|
168
|
-
export type PluginDisableRequest = {
|
|
169
|
-
plugin_instance_id: string;
|
|
170
|
-
plugin_state_version: number;
|
|
171
|
-
reason?: string;
|
|
172
|
-
};
|
|
173
|
-
export type PluginUninstallRequest = {
|
|
174
|
-
plugin_instance_id: string;
|
|
175
|
-
plugin_state_version: number;
|
|
176
|
-
delete_data: boolean;
|
|
177
|
-
};
|
|
178
|
-
export type PluginOpenSurfaceRequest = {
|
|
179
|
-
plugin_instance_id: string;
|
|
180
|
-
surface_id: string;
|
|
181
|
-
surface_instance_id?: string;
|
|
182
|
-
plugin_state_version: number;
|
|
183
|
-
};
|
|
184
|
-
export type PluginSurfaceScopeRevokeResult = {
|
|
185
|
-
revoked_surface_count: number;
|
|
186
|
-
};
|
|
187
|
-
export type PluginSurfaceBootstrapResult = {
|
|
188
|
-
plugin_id: string;
|
|
189
|
-
plugin_instance_id: string;
|
|
190
|
-
plugin_version: string;
|
|
191
|
-
surface_id: string;
|
|
192
|
-
surface_instance_id: string;
|
|
193
|
-
active_fingerprint: string;
|
|
194
|
-
entry_path: string;
|
|
195
|
-
entry_sha256: string;
|
|
196
|
-
asset_session_nonce: string;
|
|
197
|
-
plugin_state_version: number;
|
|
198
|
-
revoke_epoch: number;
|
|
199
|
-
runtime_generation_id: string;
|
|
200
|
-
asset_ticket: string;
|
|
201
|
-
asset_ticket_id: string;
|
|
202
|
-
bridge_nonce: string;
|
|
203
|
-
issued_at: string;
|
|
204
|
-
expires_at: string;
|
|
205
|
-
};
|
|
206
|
-
export declare function toPluginSurfaceHostBootstrap(value: PluginSurfaceBootstrapResult): PluginSurfaceHostBootstrap;
|
|
207
|
-
export type PluginRuntimeTarget = {
|
|
208
|
-
os?: string;
|
|
209
|
-
arch?: string;
|
|
210
|
-
};
|
|
211
|
-
export type PluginRuntimeStartRequest = {
|
|
212
|
-
target?: PluginRuntimeTarget;
|
|
213
|
-
};
|
|
214
|
-
export type PluginRuntimeHealth = {
|
|
215
|
-
runtime_instance_id: string;
|
|
216
|
-
runtime_generation_id: string;
|
|
217
|
-
runtime_version?: string;
|
|
218
|
-
rust_ipc_version?: string;
|
|
219
|
-
wasm_abi_version?: string;
|
|
220
|
-
ready: boolean;
|
|
221
|
-
};
|
|
222
|
-
export type PluginRuntimeStopResult = {
|
|
223
|
-
stopped: boolean;
|
|
224
|
-
};
|
|
225
|
-
export type PluginRuntimeRefreshResult = {
|
|
226
|
-
refreshed_plugins: PluginRecord[];
|
|
227
|
-
};
|
|
228
|
-
export type PluginSettingsField = {
|
|
229
|
-
key: string;
|
|
230
|
-
type: string;
|
|
231
|
-
label: string;
|
|
232
|
-
scope: string;
|
|
233
|
-
default?: unknown;
|
|
234
|
-
secret_ref?: string;
|
|
235
|
-
options?: string[];
|
|
236
|
-
validation?: Record<string, unknown>;
|
|
237
|
-
};
|
|
238
|
-
export type PluginSettingsSchema = {
|
|
239
|
-
plugin_instance_id: string;
|
|
240
|
-
schema_version: number;
|
|
241
|
-
migration?: Record<string, unknown>;
|
|
242
|
-
fields: PluginSettingsField[];
|
|
243
|
-
settings_revision: number;
|
|
244
|
-
};
|
|
245
|
-
export type PluginSettingsSnapshot = {
|
|
246
|
-
plugin_instance_id: string;
|
|
247
|
-
schema_version: number;
|
|
248
|
-
settings_revision: number;
|
|
249
|
-
values: Record<string, unknown>;
|
|
250
|
-
updated_at: string;
|
|
251
|
-
};
|
|
252
|
-
export type PluginCapabilityContractPin = {
|
|
253
|
-
publisher_id: string;
|
|
254
|
-
contract_id: string;
|
|
255
|
-
contract_version: string;
|
|
256
|
-
artifact_ref: string;
|
|
257
|
-
artifact_sha256: string;
|
|
258
|
-
manifest_ref: string;
|
|
259
|
-
manifest_sha256: string;
|
|
260
|
-
signature_ref: string;
|
|
261
|
-
signature_sha256: string;
|
|
262
|
-
signature_key_id: string;
|
|
263
|
-
signature_policy_epoch: string;
|
|
264
|
-
signature_revocation_epoch: string;
|
|
265
|
-
compatibility_ref: string;
|
|
266
|
-
compatibility_sha256: string;
|
|
267
|
-
generated_client_ref: string;
|
|
268
|
-
generated_client_sha256: string;
|
|
269
|
-
notices_ref: string;
|
|
270
|
-
notices_sha256: string;
|
|
271
|
-
};
|
|
272
|
-
export type PluginExecutionBinding = {
|
|
273
|
-
invocation_id: string;
|
|
274
|
-
audit_correlation_id: string;
|
|
275
|
-
operation_id: string;
|
|
276
|
-
stream_id?: string;
|
|
277
|
-
publisher_id: string;
|
|
278
|
-
plugin_id: string;
|
|
279
|
-
plugin_instance_id: string;
|
|
280
|
-
plugin_version: string;
|
|
281
|
-
active_fingerprint: string;
|
|
282
|
-
surface_instance_id?: string;
|
|
283
|
-
owner_session_hash?: string;
|
|
284
|
-
owner_user_hash?: string;
|
|
285
|
-
session_channel_id_hash?: string;
|
|
286
|
-
bridge_channel_id?: string;
|
|
287
|
-
capability_id: string;
|
|
288
|
-
capability_version: string;
|
|
289
|
-
binding_id: string;
|
|
290
|
-
contract: PluginCapabilityContractPin;
|
|
291
|
-
method: string;
|
|
292
|
-
target_method: string;
|
|
293
|
-
effect: "read" | "write" | "execute" | "delete" | "admin";
|
|
294
|
-
execution: "operation" | "subscription";
|
|
295
|
-
permissions: {
|
|
296
|
-
required: string[];
|
|
297
|
-
granted: string[];
|
|
298
|
-
};
|
|
299
|
-
confirmation: {
|
|
300
|
-
required: boolean;
|
|
301
|
-
confirmed: boolean;
|
|
302
|
-
confirmation_id?: string;
|
|
303
|
-
request_sha256?: string;
|
|
304
|
-
plan_sha256?: string;
|
|
305
|
-
target_sha256?: string;
|
|
306
|
-
};
|
|
307
|
-
revision: {
|
|
308
|
-
policy_revision: number;
|
|
309
|
-
management_revision: number;
|
|
310
|
-
revoke_epoch: number;
|
|
311
|
-
};
|
|
312
|
-
quota: {
|
|
313
|
-
max_concurrent?: number;
|
|
314
|
-
max_duration_ms?: number;
|
|
315
|
-
max_stream_bytes?: number;
|
|
316
|
-
expires_at?: string;
|
|
317
|
-
};
|
|
318
|
-
target: {
|
|
319
|
-
kind: string;
|
|
320
|
-
fields: Record<string, unknown>;
|
|
321
|
-
};
|
|
322
|
-
target_descriptor_sha256: string;
|
|
323
|
-
stream_event_type_name?: string;
|
|
324
|
-
stream_event_schema_sha256?: string;
|
|
325
|
-
};
|
|
326
|
-
export type PluginOperationRecord = PluginExecutionBinding & {
|
|
327
|
-
status: "running" | "cancel_requested" | "canceled" | "completed" | "failed" | "orphaned_after_disable" | "orphaned_after_uninstall";
|
|
328
|
-
cancelable: boolean;
|
|
329
|
-
cancel_ack_timeout_ms?: number;
|
|
330
|
-
disable_behavior?: "cancel" | "orphan" | "wait";
|
|
331
|
-
uninstall_behavior?: "cancel_then_block_delete" | "force_cleanup_allowed";
|
|
332
|
-
reason?: string;
|
|
333
|
-
created_at: string;
|
|
334
|
-
updated_at: string;
|
|
335
|
-
cancel_requested_at?: string;
|
|
336
|
-
orphaned_at?: string;
|
|
337
|
-
};
|
|
338
|
-
export type PluginOperationList = {
|
|
339
|
-
operations?: PluginOperationRecord[];
|
|
340
|
-
[key: string]: unknown;
|
|
341
|
-
};
|
|
342
|
-
export type PluginIntentRecord = {
|
|
343
|
-
plugin_id: string;
|
|
344
|
-
plugin_instance_id: string;
|
|
345
|
-
publisher_id: string;
|
|
346
|
-
display_name: string;
|
|
347
|
-
version: string;
|
|
348
|
-
active_fingerprint: string;
|
|
349
|
-
intent_id: string;
|
|
350
|
-
method: string;
|
|
351
|
-
effect: string;
|
|
352
|
-
execution: string;
|
|
353
|
-
payload_schema?: Record<string, unknown>;
|
|
354
|
-
};
|
|
355
|
-
export type PluginIntentList = {
|
|
356
|
-
intents?: PluginIntentRecord[];
|
|
357
|
-
[key: string]: unknown;
|
|
358
|
-
};
|
|
359
|
-
export type PluginIntentListOptions = {
|
|
360
|
-
intent_id?: string;
|
|
361
|
-
plugin_instance_id?: string;
|
|
362
|
-
};
|
|
363
|
-
export type PluginIntentInvokeRequest = {
|
|
364
|
-
plugin_instance_id?: string;
|
|
365
|
-
intent_id: string;
|
|
366
|
-
params?: Record<string, unknown>;
|
|
367
|
-
};
|
|
368
|
-
export type PluginPermissionGrant = {
|
|
369
|
-
plugin_instance_id: string;
|
|
370
|
-
permission_id: string;
|
|
371
|
-
granted_by?: string;
|
|
372
|
-
granted_at?: string;
|
|
373
|
-
revoked_by?: string;
|
|
374
|
-
revoked_at?: string;
|
|
375
|
-
reason?: string;
|
|
376
|
-
expires_at?: string;
|
|
377
|
-
[key: string]: unknown;
|
|
378
|
-
};
|
|
379
|
-
export type PluginPermissionList = {
|
|
380
|
-
permissions?: PluginPermissionGrant[];
|
|
381
|
-
[key: string]: unknown;
|
|
382
|
-
};
|
|
383
|
-
export type PluginPermissionGrantRequest = {
|
|
384
|
-
plugin_instance_id: string;
|
|
385
|
-
permission_id: string;
|
|
386
|
-
granted_by?: string;
|
|
387
|
-
expires_at?: string;
|
|
388
|
-
};
|
|
389
|
-
export type PluginPermissionRevokeRequest = {
|
|
390
|
-
plugin_instance_id: string;
|
|
391
|
-
permission_id: string;
|
|
392
|
-
revoked_by?: string;
|
|
393
|
-
reason?: string;
|
|
394
|
-
};
|
|
395
|
-
export type PluginDataExportRequest = {
|
|
396
|
-
plugin_instance_id: string;
|
|
397
|
-
include_secrets?: boolean;
|
|
398
|
-
};
|
|
399
|
-
export type PluginDataExportResult = {
|
|
400
|
-
archive_ref?: string;
|
|
401
|
-
settings_archive_ref?: string;
|
|
402
|
-
};
|
|
403
|
-
export type PluginDataImportRequest = {
|
|
404
|
-
plugin_instance_id: string;
|
|
405
|
-
archive_ref?: string;
|
|
406
|
-
settings_archive_ref?: string;
|
|
407
|
-
delete_existing?: boolean;
|
|
408
|
-
};
|
|
409
|
-
export type PluginRetainedDataRecord = {
|
|
410
|
-
retained_id: string;
|
|
411
|
-
source_plugin_instance_id: string;
|
|
412
|
-
bound_plugin_instance_id?: string;
|
|
413
|
-
publisher_id: string;
|
|
414
|
-
plugin_id: string;
|
|
415
|
-
version: string;
|
|
416
|
-
package_hash: string;
|
|
417
|
-
manifest_hash: string;
|
|
418
|
-
state: PluginRetainedDataRecordState | string;
|
|
419
|
-
storage_retained?: boolean;
|
|
420
|
-
settings_retained?: boolean;
|
|
421
|
-
usage_bytes?: number;
|
|
422
|
-
delete_after?: string;
|
|
423
|
-
delete_error?: string;
|
|
424
|
-
metadata?: Record<string, string>;
|
|
425
|
-
retained_at?: string;
|
|
426
|
-
updated_at?: string;
|
|
427
|
-
bound_at?: string;
|
|
428
|
-
deleted_at?: string;
|
|
429
|
-
last_accessed_at?: string;
|
|
430
|
-
[key: string]: unknown;
|
|
431
|
-
};
|
|
432
|
-
export type PluginRetainedDataListOptions = {
|
|
433
|
-
publisher_id?: string;
|
|
434
|
-
plugin_id?: string;
|
|
435
|
-
source_plugin_instance_id?: string;
|
|
436
|
-
state?: PluginRetainedDataRecordState | string;
|
|
437
|
-
};
|
|
438
|
-
export type PluginRetainedDataList = {
|
|
439
|
-
retained_data?: PluginRetainedDataRecord[];
|
|
440
|
-
[key: string]: unknown;
|
|
441
|
-
};
|
|
442
|
-
export type PluginRetainedDataBindRequest = {
|
|
443
|
-
retained_id: string;
|
|
444
|
-
target_plugin_instance_id: string;
|
|
445
|
-
};
|
|
446
|
-
export type PluginRetainedDataCleanupRequest = {
|
|
447
|
-
retry_failed?: boolean;
|
|
448
|
-
max_records?: number;
|
|
449
|
-
};
|
|
450
|
-
export type PluginRetainedDataCleanupResult = {
|
|
451
|
-
deleted?: PluginRetainedDataRecord[];
|
|
452
|
-
failed?: PluginRetainedDataRecord[];
|
|
453
|
-
[key: string]: unknown;
|
|
454
|
-
};
|
|
455
|
-
export type PluginSecretRefRequest = {
|
|
456
|
-
plugin_instance_id: string;
|
|
457
|
-
secret_ref: string;
|
|
458
|
-
scope: string;
|
|
459
|
-
};
|
|
460
|
-
export type PluginAuditEvent = {
|
|
461
|
-
type: string;
|
|
462
|
-
plugin_id?: string;
|
|
463
|
-
plugin_instance_id?: string;
|
|
464
|
-
occurred_at?: string;
|
|
465
|
-
details?: Record<string, unknown>;
|
|
466
|
-
[key: string]: unknown;
|
|
467
|
-
};
|
|
468
|
-
export type PluginAuditEventList = {
|
|
469
|
-
audit_events?: PluginAuditEvent[];
|
|
470
|
-
[key: string]: unknown;
|
|
471
|
-
};
|
|
472
|
-
export type PluginAuditListOptions = {
|
|
473
|
-
plugin_id?: string;
|
|
474
|
-
plugin_instance_id?: string;
|
|
475
|
-
type?: string;
|
|
476
|
-
limit?: number;
|
|
477
|
-
};
|
|
478
|
-
export type PluginDiagnosticEvent = {
|
|
479
|
-
type: string;
|
|
480
|
-
severity?: string;
|
|
481
|
-
plugin_id?: string;
|
|
482
|
-
plugin_instance_id?: string;
|
|
483
|
-
surface_instance_id?: string;
|
|
484
|
-
occurred_at?: string;
|
|
485
|
-
details?: Record<string, unknown>;
|
|
486
|
-
[key: string]: unknown;
|
|
487
|
-
};
|
|
488
|
-
export type PluginDiagnosticEventList = {
|
|
489
|
-
diagnostic_events?: PluginDiagnosticEvent[];
|
|
490
|
-
[key: string]: unknown;
|
|
491
|
-
};
|
|
492
|
-
export type PluginDiagnosticListOptions = {
|
|
493
|
-
plugin_id?: string;
|
|
494
|
-
plugin_instance_id?: string;
|
|
495
|
-
surface_instance_id?: string;
|
|
496
|
-
type?: string;
|
|
497
|
-
severity?: string;
|
|
498
|
-
limit?: number;
|
|
499
|
-
};
|
|
9
|
+
surfaceTransport?: ReDevPluginSurfaceTransport;
|
|
10
|
+
onMutationOutcomeUnknown?: (pluginInstanceId?: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export type PluginRequestOptions = {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
};
|
|
15
|
+
type PlatformSchemas = components["schemas"];
|
|
16
|
+
export type PluginCatalogResult = PlatformSchemas["PluginCatalogResult"];
|
|
17
|
+
export type PluginCatalogRecord = PluginCatalogResult["plugins"][number];
|
|
18
|
+
export type PluginFeatures = PlatformSchemas["PluginFeaturesSuccessResponse"]["data"];
|
|
19
|
+
export type PluginCompatibilityManifest = PlatformSchemas["PluginCompatibilityManifest"];
|
|
20
|
+
export type PluginCompatibilityMatrix = PluginCompatibilityManifest["matrix"];
|
|
21
|
+
export type PluginContractArtifact = PluginCompatibilityManifest["contracts"][number];
|
|
22
|
+
export type PluginTrustState = PlatformSchemas["TrustState"];
|
|
23
|
+
export type PluginTrustHashSet = PlatformSchemas["TrustHashSet"];
|
|
24
|
+
export type PluginVerifiedSignature = PlatformSchemas["VerifiedSignature"];
|
|
25
|
+
export type PluginTrustAssessment = PlatformSchemas["TrustAssessment"];
|
|
26
|
+
export type PluginLocalImportProvenance = PlatformSchemas["LocalImportProvenance"];
|
|
27
|
+
export type PluginVersionRecord = PlatformSchemas["PluginVersion"];
|
|
28
|
+
export type PluginRecord = PlatformSchemas["PluginRecord"];
|
|
29
|
+
export type PluginEnableState = PluginRecord["enable_state"];
|
|
30
|
+
export type PluginPackageHashSet = PlatformSchemas["PackageHashSet"];
|
|
31
|
+
export type PluginReleaseRef = PlatformSchemas["PluginReleaseRef"];
|
|
32
|
+
export type PluginInstallReleaseRefRequest = PlatformSchemas["InstallReleaseRefRequest"];
|
|
33
|
+
export type PluginUpdateReleaseRefRequest = PlatformSchemas["UpdateReleaseRefRequest"];
|
|
34
|
+
export type PluginDowngradeRequest = PlatformSchemas["DowngradeRequest"];
|
|
35
|
+
export type PluginEnableRequest = PlatformSchemas["EnableRequest"];
|
|
36
|
+
export type PluginDisableRequest = PlatformSchemas["DisableRequest"];
|
|
37
|
+
export type PluginUninstallRequest = PlatformSchemas["UninstallRequest"];
|
|
38
|
+
export type PluginOpenSurfaceRequest = PlatformSchemas["OpenSurfaceRequest"];
|
|
39
|
+
export type PluginOpenSurfaceInSlotOptions = PluginRequestOptions & {
|
|
40
|
+
bridgeChannelId?: string;
|
|
41
|
+
loadTimeoutMs?: number;
|
|
42
|
+
requestTimeoutMs?: number;
|
|
43
|
+
leaseRenewalLeadMs?: number;
|
|
44
|
+
reloadLimiter?: PluginSurfaceReloadLimiter;
|
|
45
|
+
confirm?: PluginConfirmationHandler;
|
|
46
|
+
onOpeningProgress?: (progress: PluginSurfaceOpeningProgress) => void;
|
|
47
|
+
onError?: (error: import("./errors.js").PluginBridgeError) => void;
|
|
48
|
+
};
|
|
49
|
+
export type PluginSurfaceScopeRevokeResult = PlatformSchemas["SurfaceScopeRevokeResult"];
|
|
50
|
+
export type PluginSurfaceBootstrapResult = PlatformSchemas["SurfaceBootstrap"];
|
|
51
|
+
export type PluginRuntimeStartRequest = PlatformSchemas["StartRuntimeRequest"];
|
|
52
|
+
export type PluginRuntimeTarget = NonNullable<PluginRuntimeStartRequest["target"]>;
|
|
53
|
+
/** Negotiated limits reported by runtime health; configuration is Host-owned. */
|
|
54
|
+
export type PluginRuntimeLimits = Readonly<PlatformSchemas["RuntimeLimits"]>;
|
|
55
|
+
export type PluginRuntimeHealth = PlatformSchemas["PluginRuntimeHealth"];
|
|
56
|
+
export type PluginRuntimeShardHealth = PlatformSchemas["PluginRuntimeShardHealth"];
|
|
57
|
+
export type PluginRuntimeStopResult = PlatformSchemas["PluginRuntimeStopResult"];
|
|
58
|
+
export type PluginRuntimeRefreshResult = PlatformSchemas["PluginRuntimeRefreshResult"];
|
|
59
|
+
export type PluginSettingsField = PlatformSchemas["PluginSettingsField"];
|
|
60
|
+
export type PluginSettingsSchema = PlatformSchemas["PluginSettingsSchema"];
|
|
61
|
+
export type PluginSettingsSnapshot = PlatformSchemas["PluginSettingsSnapshot"];
|
|
62
|
+
export type PluginResourceScopeKind = PlatformSchemas["ResourceScopeKind"];
|
|
63
|
+
type PluginSettingsPatchBase = Pick<PlatformSchemas["PatchSettingsRequest"], "scope" | "expected_values_revision">;
|
|
64
|
+
export type PluginSettingsPatchRequest = PluginSettingsPatchBase & ({
|
|
65
|
+
set: Record<string, unknown>;
|
|
66
|
+
remove?: [string, ...string[]];
|
|
67
|
+
} | {
|
|
68
|
+
set?: Record<string, unknown>;
|
|
69
|
+
remove: [string, ...string[]];
|
|
70
|
+
});
|
|
71
|
+
export type PluginCapabilityContractPin = PlatformSchemas["HostCapabilityPinV1"];
|
|
72
|
+
export type PluginPublicOperationBinding = PlatformSchemas["PublicOperationBinding"];
|
|
73
|
+
export type PluginOperationRecord = PlatformSchemas["OperationRecord"];
|
|
74
|
+
export type PluginOperationList = PlatformSchemas["PluginOperationList"];
|
|
75
|
+
export type PluginOperationListOptions = NonNullable<operations["listPluginOperations"]["parameters"]["query"]>;
|
|
76
|
+
export type PluginIntentRecord = PlatformSchemas["PluginIntentRecord"];
|
|
77
|
+
export type PluginIntentList = PlatformSchemas["PluginIntentList"];
|
|
78
|
+
export type PluginIntentListOptions = NonNullable<operations["listPluginIntents"]["parameters"]["query"]>;
|
|
79
|
+
export type PluginIntentInvokeRequest = PlatformSchemas["InvokeIntentRequest"];
|
|
80
|
+
export type PluginPermissionGrant = PlatformSchemas["PluginPermissionGrant"];
|
|
81
|
+
export type PluginPermissionMutationResult = PlatformSchemas["PluginPermissionMutationResult"];
|
|
82
|
+
export type PluginPermissionList = PlatformSchemas["PluginPermissionList"];
|
|
83
|
+
export type PluginPermissionListOptions = NonNullable<operations["listPluginPermissionGrants"]["parameters"]["query"]>;
|
|
84
|
+
export type PluginPermissionGrantRequest = PlatformSchemas["GrantPermissionRequest"];
|
|
85
|
+
export type PluginPermissionRevokeRequest = PlatformSchemas["RevokePermissionRequest"];
|
|
86
|
+
export type PluginSecurityPolicy = PlatformSchemas["PluginSecurityPolicy"];
|
|
87
|
+
export type PluginSecurityPolicyList = PlatformSchemas["PluginSecurityPolicyList"];
|
|
88
|
+
export type PluginSecurityPolicyPutRequest = PlatformSchemas["PutSecurityPolicyRequest"];
|
|
89
|
+
export type PluginSecurityPolicyDeleteRequest = PlatformSchemas["DeleteSecurityPolicyRequest"];
|
|
90
|
+
export type PluginSecurityPolicyDeleteResult = PlatformSchemas["PluginSecurityPolicyDeleteResult"];
|
|
91
|
+
export type PluginDataExportRequest = PlatformSchemas["ExportDataRequest"];
|
|
92
|
+
export type PluginDataExportResult = PlatformSchemas["PluginDataExportResult"];
|
|
93
|
+
export type PluginDataExportDeleteRequest = PlatformSchemas["DeleteDataExportRequest"];
|
|
94
|
+
export type PluginDataExportDeleteResult = PlatformSchemas["PluginDataExportDeleteResult"];
|
|
95
|
+
export type PluginDataImportRequest = PlatformSchemas["ImportDataRequest"];
|
|
96
|
+
export type PluginDataBinding = PlatformSchemas["PluginDataBinding"];
|
|
97
|
+
export type PluginRetainedDataListOptions = NonNullable<operations["listPluginRetainedData"]["parameters"]["query"]>;
|
|
98
|
+
export type PluginRetainedDataList = PlatformSchemas["RetainedDataList"];
|
|
99
|
+
export type PluginRetainedDataDeleteRequest = PlatformSchemas["DeleteRetainedDataRequest"];
|
|
100
|
+
export type PluginRetainedDataBindRequest = PlatformSchemas["BindRetainedDataRequest"];
|
|
101
|
+
export type PluginRetainedDataCleanupRequest = PlatformSchemas["CleanupExpiredRetainedDataRequest"];
|
|
102
|
+
export type PluginRetainedDataCleanupResult = PlatformSchemas["RetainedDataCleanupResult"];
|
|
103
|
+
export type PluginSecretRefRequest = PlatformSchemas["SecretRefRequest"];
|
|
104
|
+
export type PluginSecretBindResult = PlatformSchemas["PluginSecretBindResult"];
|
|
105
|
+
export type PluginSecretTestResult = PlatformSchemas["PluginSecretTestResult"];
|
|
106
|
+
export type PluginSecretDeleteResult = PlatformSchemas["PluginSecretDeleteResult"];
|
|
107
|
+
export type PluginDiagnosticEvent = PlatformSchemas["PluginDiagnosticEvent"];
|
|
108
|
+
export type PluginDiagnosticEventList = PlatformSchemas["PluginDiagnosticEventList"];
|
|
109
|
+
export type PluginDiagnosticDetails = PlatformSchemas["PluginDiagnosticDetails"];
|
|
110
|
+
export type PluginDiagnosticMutationOutcome = PlatformSchemas["DiagnosticMutationOutcome"];
|
|
111
|
+
export type PluginDiagnosticListOptions = NonNullable<operations["listPluginDiagnosticEvents"]["parameters"]["query"]>;
|
|
112
|
+
export type PluginDiagnosticSeverity = NonNullable<PluginDiagnosticListOptions["severity"]>;
|
|
500
113
|
export declare class PluginPlatformClient {
|
|
501
114
|
#private;
|
|
502
115
|
constructor(options?: PluginPlatformClientOptions);
|
|
503
|
-
catalog(): Promise<PluginCatalogResult>;
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
116
|
+
catalog(options?: PluginRequestOptions): Promise<PluginCatalogResult>;
|
|
117
|
+
features(options?: PluginRequestOptions): Promise<PluginFeatures>;
|
|
118
|
+
getCompatibility(options?: PluginRequestOptions): Promise<PluginCompatibilityManifest>;
|
|
119
|
+
installReleaseRef(request: PluginInstallReleaseRefRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
120
|
+
updateReleaseRef(request: PluginUpdateReleaseRefRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
121
|
+
downgradePlugin(request: PluginDowngradeRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
122
|
+
enablePlugin(request: PluginEnableRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
123
|
+
disablePlugin(request: PluginDisableRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
124
|
+
uninstallPlugin(request: PluginUninstallRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
125
|
+
openSurfaceInSlot(slot: PluginSurfaceSlot, request: PluginOpenSurfaceRequest, options?: PluginOpenSurfaceInSlotOptions): Promise<PluginSurfaceHost>;
|
|
126
|
+
revokeSurfaceScope(options?: PluginRequestOptions): Promise<PluginSurfaceScopeRevokeResult>;
|
|
127
|
+
startRuntime(request: PluginRuntimeStartRequest, options?: PluginRequestOptions): Promise<PluginRuntimeHealth>;
|
|
128
|
+
stopRuntime(options?: PluginRequestOptions): Promise<PluginRuntimeStopResult>;
|
|
129
|
+
refreshEnabledRuntimeState(options?: PluginRequestOptions): Promise<PluginRuntimeRefreshResult>;
|
|
130
|
+
runtimeHealth(options?: PluginRequestOptions): Promise<PluginRuntimeHealth>;
|
|
131
|
+
getSettingsSchema(pluginInstanceId: string, scope: PluginResourceScopeKind, options?: PluginRequestOptions): Promise<PluginSettingsSchema>;
|
|
132
|
+
getSettings(pluginInstanceId: string, scope: PluginResourceScopeKind, options?: PluginRequestOptions): Promise<PluginSettingsSnapshot>;
|
|
133
|
+
patchSettings(pluginInstanceId: string, request: PluginSettingsPatchRequest, options?: PluginRequestOptions): Promise<PluginSettingsSnapshot>;
|
|
134
|
+
listOperations(options?: PluginOperationListOptions, requestOptions?: PluginRequestOptions): Promise<PluginOperationList>;
|
|
135
|
+
getOperation(operationId: string, options?: PluginRequestOptions): Promise<PluginOperationRecord>;
|
|
136
|
+
cancelOperation(operationId: string, reason?: string, options?: PluginRequestOptions): Promise<PluginOperationRecord>;
|
|
137
|
+
listIntents(options?: PluginIntentListOptions, requestOptions?: PluginRequestOptions): Promise<PluginIntentList>;
|
|
138
|
+
invokeIntent<T = unknown>(request: PluginIntentInvokeRequest, options?: PluginRequestOptions): Promise<PluginTrustedMethodResult<T>>;
|
|
139
|
+
exportData(request: PluginDataExportRequest, options?: PluginRequestOptions): Promise<PluginDataExportResult>;
|
|
140
|
+
deleteDataExport(request: PluginDataExportDeleteRequest, options?: PluginRequestOptions): Promise<PluginDataExportDeleteResult>;
|
|
141
|
+
importData(request: PluginDataImportRequest, options?: PluginRequestOptions): Promise<PluginRecord>;
|
|
142
|
+
listRetainedData(options?: PluginRetainedDataListOptions, requestOptions?: PluginRequestOptions): Promise<PluginRetainedDataList>;
|
|
143
|
+
deleteRetainedData(request: PluginRetainedDataDeleteRequest, options?: PluginRequestOptions): Promise<PluginDataBinding>;
|
|
144
|
+
bindRetainedData(request: PluginRetainedDataBindRequest, options?: PluginRequestOptions): Promise<PluginDataBinding>;
|
|
145
|
+
cleanupExpiredRetainedData(request?: PluginRetainedDataCleanupRequest, options?: PluginRequestOptions): Promise<PluginRetainedDataCleanupResult>;
|
|
146
|
+
listPermissions(options?: PluginPermissionListOptions, requestOptions?: PluginRequestOptions): Promise<PluginPermissionList>;
|
|
147
|
+
grantPermission(request: PluginPermissionGrantRequest, options?: PluginRequestOptions): Promise<PluginPermissionMutationResult>;
|
|
148
|
+
revokePermission(request: PluginPermissionRevokeRequest, options?: PluginRequestOptions): Promise<PluginPermissionMutationResult>;
|
|
149
|
+
listSecurityPolicies(options?: PluginRequestOptions): Promise<PluginSecurityPolicyList>;
|
|
150
|
+
getSecurityPolicy(pluginInstanceId: string, options?: PluginRequestOptions): Promise<PluginSecurityPolicy>;
|
|
151
|
+
putSecurityPolicy(pluginInstanceId: string, request: PluginSecurityPolicyPutRequest, options?: PluginRequestOptions): Promise<PluginSecurityPolicy>;
|
|
152
|
+
deleteSecurityPolicy(pluginInstanceId: string, request: PluginSecurityPolicyDeleteRequest, options?: PluginRequestOptions): Promise<PluginSecurityPolicyDeleteResult>;
|
|
153
|
+
bindSecret(request: PluginSecretRefRequest, options?: PluginRequestOptions): Promise<PluginSecretBindResult>;
|
|
154
|
+
testSecret(request: PluginSecretRefRequest, options?: PluginRequestOptions): Promise<PluginSecretTestResult>;
|
|
155
|
+
deleteSecret(request: PluginSecretRefRequest, options?: PluginRequestOptions): Promise<PluginSecretDeleteResult>;
|
|
156
|
+
listDiagnosticEvents(options?: PluginDiagnosticListOptions, requestOptions?: PluginRequestOptions): Promise<PluginDiagnosticEventList>;
|
|
539
157
|
}
|
|
158
|
+
export {};
|