@floegence/redevplugin-ui 0.6.17 → 0.6.18
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/capability-client.d.ts +20 -3
- package/dist/capability-client.js +116 -0
- package/dist/contracts.gen.d.ts +50 -34
- package/dist/contracts.gen.js +43 -34
- package/dist/error-codes.gen.d.ts +3 -3
- package/dist/error-codes.gen.js +4 -1
- package/dist/openapi.gen.d.ts +338 -28
- package/dist/platform.js +1 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/surface.d.ts +34 -2
- package/dist/surface.js +148 -6
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginBridgeError } from "./errors.js";
|
|
2
|
-
import type { PluginBridgeClient, PluginBridgeRequestOptions, PluginJSONObject, PluginStreamEvent as PluginRawStreamEvent, PluginStreamTerminalStatus } from "./surface.js";
|
|
2
|
+
import type { PluginBridgeClient, PluginBridgeRequestOptions, PluginJSONObject, PluginStreamEvent as PluginRawStreamEvent, PluginStreamTerminalStatus, PluginOperationSnapshot } from "./surface.js";
|
|
3
3
|
export type PluginCapabilitySchema = Readonly<Record<string, unknown>>;
|
|
4
4
|
export type PluginCapabilityEffect = "read" | "write" | "execute" | "delete" | "admin";
|
|
5
5
|
type PluginCapabilityMethodContract = {
|
|
@@ -24,7 +24,24 @@ export type PluginCapabilityBusinessErrorSpec = {
|
|
|
24
24
|
detail_schema_sha256: string;
|
|
25
25
|
schema: PluginCapabilitySchema | null;
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
27
|
+
export type PluginOperationWaitOptions = {
|
|
28
|
+
signal?: AbortSignal;
|
|
29
|
+
timeoutMs?: number;
|
|
30
|
+
pollIntervalMs?: number;
|
|
31
|
+
};
|
|
32
|
+
export type PluginOperationTerminalStatus = {
|
|
33
|
+
[Status in Extract<PluginOperationSnapshot["status"], "completed" | "failed" | "canceled" | "orphaned_after_disable" | "orphaned_after_uninstall">]: {
|
|
34
|
+
status: Status;
|
|
35
|
+
snapshot: Extract<PluginOperationSnapshot, {
|
|
36
|
+
status: Status;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
}[Extract<PluginOperationSnapshot["status"], "completed" | "failed" | "canceled" | "orphaned_after_disable" | "orphaned_after_uninstall">];
|
|
40
|
+
type PluginOperationObservation = {
|
|
41
|
+
snapshot(options?: PluginBridgeRequestOptions): Promise<PluginOperationSnapshot>;
|
|
42
|
+
wait(options?: PluginOperationWaitOptions): Promise<PluginOperationTerminalStatus>;
|
|
43
|
+
};
|
|
44
|
+
export type PluginOperation<T, Cancelable extends boolean = true> = PluginOperationObservation & {
|
|
28
45
|
data: T;
|
|
29
46
|
operation_id: string;
|
|
30
47
|
} & (Cancelable extends true ? {
|
|
@@ -43,7 +60,7 @@ export type PluginCapabilityStreamReadResult<Event> = {
|
|
|
43
60
|
terminal_status: PluginStreamTerminalStatus;
|
|
44
61
|
retry_after_ms: 0;
|
|
45
62
|
};
|
|
46
|
-
export type PluginStream<Initial, Event> = {
|
|
63
|
+
export type PluginStream<Initial, Event> = PluginOperationObservation & {
|
|
47
64
|
data: Initial;
|
|
48
65
|
operation_id: string;
|
|
49
66
|
stream_handle: string;
|
|
@@ -18,9 +18,11 @@ export async function callCapabilityOperation(bridge, contract, request, options
|
|
|
18
18
|
await cancelAfterResponseMismatch(bridge, result.operation_id, error);
|
|
19
19
|
throw error;
|
|
20
20
|
}
|
|
21
|
+
const observation = operationObservation(bridge, result.operation_id);
|
|
21
22
|
return Object.freeze({
|
|
22
23
|
data: data,
|
|
23
24
|
operation_id: result.operation_id,
|
|
25
|
+
...observation,
|
|
24
26
|
...(contract.cancelable ? {
|
|
25
27
|
cancel: (reason, cancelOptions) => bridge.cancelOperation(result.operation_id, reason, cancelOptions),
|
|
26
28
|
} : {}),
|
|
@@ -58,10 +60,12 @@ export async function callCapabilityStream(bridge, contract, request, options =
|
|
|
58
60
|
await bridge.cancelOperation(result.operation_id, reason, cancelOptions);
|
|
59
61
|
settled = true;
|
|
60
62
|
};
|
|
63
|
+
const observation = operationObservation(bridge, result.operation_id);
|
|
61
64
|
return Object.freeze({
|
|
62
65
|
data: data,
|
|
63
66
|
operation_id: result.operation_id,
|
|
64
67
|
stream_handle: result.stream_handle,
|
|
68
|
+
...observation,
|
|
65
69
|
read,
|
|
66
70
|
cancel,
|
|
67
71
|
async *[Symbol.asyncIterator]() {
|
|
@@ -87,6 +91,118 @@ export async function callCapabilityStream(bridge, contract, request, options =
|
|
|
87
91
|
},
|
|
88
92
|
});
|
|
89
93
|
}
|
|
94
|
+
function operationObservation(bridge, operationID) {
|
|
95
|
+
const snapshot = (options = {}) => bridge.operationSnapshot(operationID, options);
|
|
96
|
+
const wait = async (options = {}) => {
|
|
97
|
+
const timeoutMs = options.timeoutMs ?? 120_000;
|
|
98
|
+
if (!Number.isFinite(timeoutMs) || timeoutMs < 1_000 || timeoutMs > 600_000) {
|
|
99
|
+
throw new PluginBridgeError("PLUGIN_INVALID_REQUEST", "Plugin operation wait timeout must be between 1 second and 10 minutes");
|
|
100
|
+
}
|
|
101
|
+
if (options.signal?.aborted)
|
|
102
|
+
throw operationWaitAborted();
|
|
103
|
+
let pollIntervalMs = options.pollIntervalMs ?? 1_000;
|
|
104
|
+
if (!Number.isFinite(pollIntervalMs)) {
|
|
105
|
+
throw new PluginBridgeError("PLUGIN_INVALID_REQUEST", "Plugin operation poll interval is invalid");
|
|
106
|
+
}
|
|
107
|
+
pollIntervalMs = Math.max(500, Math.min(10_000, pollIntervalMs));
|
|
108
|
+
const deadline = Date.now() + timeoutMs;
|
|
109
|
+
while (true) {
|
|
110
|
+
let current;
|
|
111
|
+
try {
|
|
112
|
+
current = await operationSnapshotUntilDeadline(snapshot, deadline, options.signal);
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
if (options.signal?.aborted)
|
|
116
|
+
throw operationWaitAborted();
|
|
117
|
+
if (!(error instanceof PluginBridgeError) || error.errorCode !== "PLUGIN_OPERATION_RATE_LIMITED")
|
|
118
|
+
throw error;
|
|
119
|
+
const retryAfterMS = operationRetryAfterMS(error.details);
|
|
120
|
+
await operationWaitDelay(Math.max(pollIntervalMs, retryAfterMS), deadline, options.signal);
|
|
121
|
+
pollIntervalMs = Math.min(10_000, Math.ceil(pollIntervalMs * 1.5));
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
switch (current.status) {
|
|
125
|
+
case "completed":
|
|
126
|
+
case "failed":
|
|
127
|
+
case "canceled":
|
|
128
|
+
case "orphaned_after_disable":
|
|
129
|
+
case "orphaned_after_uninstall":
|
|
130
|
+
return { status: current.status, snapshot: current };
|
|
131
|
+
default:
|
|
132
|
+
await operationWaitDelay(Math.max(pollIntervalMs, current.retry_after_ms), deadline, options.signal);
|
|
133
|
+
pollIntervalMs = Math.min(10_000, Math.ceil(pollIntervalMs * 1.5));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
return { snapshot, wait };
|
|
138
|
+
}
|
|
139
|
+
async function operationSnapshotUntilDeadline(snapshot, deadline, signal) {
|
|
140
|
+
const remaining = deadline - Date.now();
|
|
141
|
+
if (remaining <= 0)
|
|
142
|
+
throw new PluginBridgeError("PLUGIN_BRIDGE_TIMEOUT", "Plugin operation observation timed out");
|
|
143
|
+
const controller = new AbortController();
|
|
144
|
+
let timedOut = false;
|
|
145
|
+
const onAbort = () => controller.abort();
|
|
146
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
147
|
+
if (signal?.aborted)
|
|
148
|
+
onAbort();
|
|
149
|
+
const timer = setTimeout(() => {
|
|
150
|
+
timedOut = true;
|
|
151
|
+
controller.abort();
|
|
152
|
+
}, remaining);
|
|
153
|
+
try {
|
|
154
|
+
return await snapshot({ signal: controller.signal });
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
if (signal?.aborted)
|
|
158
|
+
throw operationWaitAborted();
|
|
159
|
+
if (timedOut)
|
|
160
|
+
throw new PluginBridgeError("PLUGIN_BRIDGE_TIMEOUT", "Plugin operation observation timed out");
|
|
161
|
+
throw error;
|
|
162
|
+
}
|
|
163
|
+
finally {
|
|
164
|
+
clearTimeout(timer);
|
|
165
|
+
signal?.removeEventListener("abort", onAbort);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function operationRetryAfterMS(details) {
|
|
169
|
+
if (details && typeof details === "object" && !Array.isArray(details)) {
|
|
170
|
+
const retryAfterMS = details.retry_after_ms;
|
|
171
|
+
if (Number.isInteger(retryAfterMS) && Number(retryAfterMS) >= 500 && Number(retryAfterMS) <= 10_000)
|
|
172
|
+
return Number(retryAfterMS);
|
|
173
|
+
}
|
|
174
|
+
return 500;
|
|
175
|
+
}
|
|
176
|
+
function operationWaitAborted() {
|
|
177
|
+
return new PluginBridgeError("PLUGIN_BRIDGE_CANCELLED", "Plugin operation observation was cancelled");
|
|
178
|
+
}
|
|
179
|
+
function operationWaitDelay(delayMs, deadline, signal) {
|
|
180
|
+
const remaining = deadline - Date.now();
|
|
181
|
+
if (remaining <= 0)
|
|
182
|
+
return Promise.reject(new PluginBridgeError("PLUGIN_BRIDGE_TIMEOUT", "Plugin operation observation timed out"));
|
|
183
|
+
const duration = Math.min(delayMs, remaining);
|
|
184
|
+
return new Promise((resolve, reject) => {
|
|
185
|
+
let settled = false;
|
|
186
|
+
const finish = (error) => {
|
|
187
|
+
if (settled)
|
|
188
|
+
return;
|
|
189
|
+
settled = true;
|
|
190
|
+
clearTimeout(timer);
|
|
191
|
+
signal?.removeEventListener("abort", onAbort);
|
|
192
|
+
if (error)
|
|
193
|
+
reject(error);
|
|
194
|
+
else if (Date.now() >= deadline)
|
|
195
|
+
reject(new PluginBridgeError("PLUGIN_BRIDGE_TIMEOUT", "Plugin operation observation timed out"));
|
|
196
|
+
else
|
|
197
|
+
resolve();
|
|
198
|
+
};
|
|
199
|
+
const timer = setTimeout(() => finish(), duration);
|
|
200
|
+
const onAbort = () => finish(operationWaitAborted());
|
|
201
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
202
|
+
if (signal?.aborted)
|
|
203
|
+
onAbort();
|
|
204
|
+
});
|
|
205
|
+
}
|
|
90
206
|
function decodeCapabilityStreamBatch(method, batch, eventTypeName, eventSchema) {
|
|
91
207
|
const events = batch.events.map((event) => decodeCapabilityStreamEvent(method, event, eventTypeName, eventSchema));
|
|
92
208
|
if (batch.done) {
|
package/dist/contracts.gen.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
export declare const pluginUIProtocolVersion: "plugin-ui-
|
|
2
|
-
export declare const pluginHostProtocolVersion: "plugin-host-
|
|
3
|
-
export declare const bridgeSchemaVersion: "bridge-
|
|
1
|
+
export declare const pluginUIProtocolVersion: "plugin-ui-v6";
|
|
2
|
+
export declare const pluginHostProtocolVersion: "plugin-host-v8";
|
|
3
|
+
export declare const bridgeSchemaVersion: "bridge-v6";
|
|
4
4
|
export declare const tokenTicketSchemaVersion: "token-ticket-v4";
|
|
5
5
|
export declare const redevPluginContractVersions: {
|
|
6
|
-
readonly plugin_ui_protocol_version: "plugin-ui-
|
|
7
|
-
readonly
|
|
6
|
+
readonly plugin_ui_protocol_version: "plugin-ui-v6";
|
|
7
|
+
readonly supported_plugin_ui_protocol_versions: readonly ["plugin-ui-v5", "plugin-ui-v6"];
|
|
8
|
+
readonly plugin_ui_transport_mappings: readonly [{
|
|
9
|
+
readonly plugin_ui_protocol_version: "plugin-ui-v5";
|
|
10
|
+
readonly opaque_surface_transport_schema_version: "opaque-surface-transport-v4";
|
|
11
|
+
readonly bridge_schema_version: "bridge-v5";
|
|
12
|
+
}, {
|
|
13
|
+
readonly plugin_ui_protocol_version: "plugin-ui-v6";
|
|
14
|
+
readonly opaque_surface_transport_schema_version: "opaque-surface-transport-v5";
|
|
15
|
+
readonly bridge_schema_version: "bridge-v6";
|
|
16
|
+
}];
|
|
17
|
+
readonly plugin_host_protocol_version: "plugin-host-v8";
|
|
8
18
|
readonly rust_ipc_version: "rust-ipc-v6";
|
|
9
19
|
readonly wasm_abi_version: "redevplugin-wasm-worker-v2";
|
|
10
|
-
readonly manifest_schema_version: "manifest-
|
|
20
|
+
readonly manifest_schema_version: "manifest-v6";
|
|
11
21
|
readonly package_signature_schema_version: "package-signature-v1";
|
|
12
|
-
readonly release_metadata_schema_version: "release-metadata-
|
|
22
|
+
readonly release_metadata_schema_version: "release-metadata-v6";
|
|
13
23
|
readonly release_root_delegation_schema_version: "release-root-delegation-v1";
|
|
14
24
|
readonly release_source_policy_schema_version: "release-source-policy-v2";
|
|
15
25
|
readonly release_source_policy_pointer_schema_version: "release-source-policy-pointer-v1";
|
|
@@ -24,16 +34,17 @@ export declare const redevPluginContractVersions: {
|
|
|
24
34
|
readonly release_signing_ledger_receipt_schema_version: "release-signing-ledger-receipt-v1";
|
|
25
35
|
readonly release_signing_ledger_evidence_schema_version: "release-signing-ledger-evidence-v1";
|
|
26
36
|
readonly token_ticket_schema_version: "token-ticket-v4";
|
|
27
|
-
readonly bridge_schema_version: "bridge-
|
|
37
|
+
readonly bridge_schema_version: "bridge-v6";
|
|
28
38
|
readonly opaque_surface_document_schema_version: "opaque-surface-document-v3";
|
|
29
|
-
readonly opaque_surface_transport_schema_version: "opaque-surface-transport-
|
|
39
|
+
readonly opaque_surface_transport_schema_version: "opaque-surface-transport-v5";
|
|
30
40
|
readonly target_classifier_version: "target-classifier-v2";
|
|
31
41
|
readonly network_grant_schema_version: "network-grant-v2";
|
|
32
42
|
readonly resource_scope_schema_version: "resource-scope-v1";
|
|
33
43
|
readonly session_scope_schema_version: "session-scope-v1";
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
44
|
+
readonly session_scope_maintenance_schema_version: "session-scope-maintenance-v1";
|
|
45
|
+
readonly plugin_platform_openapi_version: "plugin-platform-v9";
|
|
46
|
+
readonly compatibility_manifest_version: "redevplugin.compatibility.v11";
|
|
47
|
+
readonly compatibility_schema_version: "compatibility-manifest-v11";
|
|
37
48
|
readonly worker_invocation_schema_version: "worker-invocation-v3";
|
|
38
49
|
readonly host_capability_contract_schema_version: "host-capability-contract-v1";
|
|
39
50
|
readonly host_capability_pin_schema_version: "host-capability-pin-v1";
|
|
@@ -41,7 +52,7 @@ export declare const redevPluginContractVersions: {
|
|
|
41
52
|
readonly host_capability_compatibility_schema_version: "host-capability-compatibility-v1";
|
|
42
53
|
readonly host_capability_signature_schema_version: "host-capability-signature-v1";
|
|
43
54
|
readonly host_capability_notices_schema_version: "host-capability-notices-v1";
|
|
44
|
-
readonly error_codes_schema_version: "error-codes-
|
|
55
|
+
readonly error_codes_schema_version: "error-codes-v7";
|
|
45
56
|
readonly performance_contract_version: "performance-contract-v4";
|
|
46
57
|
readonly performance_evidence_schema_version: "performance-evidence-v4";
|
|
47
58
|
readonly contract_registry_version: "contract-registry-v2";
|
|
@@ -65,9 +76,9 @@ export type ReDevPluginContractArtifact = {
|
|
|
65
76
|
};
|
|
66
77
|
export declare const redevPluginContractArtifacts: readonly [{
|
|
67
78
|
readonly id: "compatibility-manifest-schema";
|
|
68
|
-
readonly path: "spec/plugin/compatibility-manifest-
|
|
69
|
-
readonly version: "compatibility-manifest-
|
|
70
|
-
readonly sha256: "
|
|
79
|
+
readonly path: "spec/plugin/compatibility-manifest-v11.schema.json";
|
|
80
|
+
readonly version: "compatibility-manifest-v11";
|
|
81
|
+
readonly sha256: "cec20e7bc5351641c031ebceec10559cad7c5f91a62f79158ace94df88fe1d0d";
|
|
71
82
|
}, {
|
|
72
83
|
readonly id: "contract-registry-schema";
|
|
73
84
|
readonly path: "spec/plugin/contract-registry-v2.schema.json";
|
|
@@ -75,9 +86,9 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
75
86
|
readonly sha256: "d516b3565158ac1b0d5e9f86b91b13ac19321ab3ff54468be41951b68d7085ac";
|
|
76
87
|
}, {
|
|
77
88
|
readonly id: "error-codes-schema";
|
|
78
|
-
readonly path: "spec/plugin/error-codes-
|
|
79
|
-
readonly version: "error-codes-
|
|
80
|
-
readonly sha256: "
|
|
89
|
+
readonly path: "spec/plugin/error-codes-v7.schema.json";
|
|
90
|
+
readonly version: "error-codes-v7";
|
|
91
|
+
readonly sha256: "4e7cac510a6036f90cae8f58ff8c3b785b3a2d3933875f2f69bef1c41de3d26c";
|
|
81
92
|
}, {
|
|
82
93
|
readonly id: "host-capability-compatibility-schema";
|
|
83
94
|
readonly path: "spec/plugin/host-capability-compatibility-v1.schema.json";
|
|
@@ -110,14 +121,14 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
110
121
|
readonly sha256: "88cbc1d63afb7e289ca4f8b7c76f702b8d20156f7722c1b71f3ab9138a240a5e";
|
|
111
122
|
}, {
|
|
112
123
|
readonly id: "iframe-bridge-schema";
|
|
113
|
-
readonly path: "spec/plugin/bridge-
|
|
114
|
-
readonly version: "bridge-
|
|
115
|
-
readonly sha256: "
|
|
124
|
+
readonly path: "spec/plugin/bridge-v6.schema.json";
|
|
125
|
+
readonly version: "bridge-v6";
|
|
126
|
+
readonly sha256: "e5d98528a96016950038e25b64ca760479452e06c13ab46e4ff06745a3e8aef4";
|
|
116
127
|
}, {
|
|
117
128
|
readonly id: "manifest-schema";
|
|
118
|
-
readonly path: "spec/plugin/manifest-
|
|
119
|
-
readonly version: "manifest-
|
|
120
|
-
readonly sha256: "
|
|
129
|
+
readonly path: "spec/plugin/manifest-v6.schema.json";
|
|
130
|
+
readonly version: "manifest-v6";
|
|
131
|
+
readonly sha256: "b196a328ca6e0581d3da69b8fbaed36ffb1ba13f8e2e46a34b1761cd644f1e74";
|
|
121
132
|
}, {
|
|
122
133
|
readonly id: "network-grant-schema";
|
|
123
134
|
readonly path: "spec/plugin/network-grant-v2.schema.json";
|
|
@@ -130,9 +141,9 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
130
141
|
readonly sha256: "63419ff5b5a8890e14f97ca29aaae175b93daff61d4567c5bdff7f6e6a9e7450";
|
|
131
142
|
}, {
|
|
132
143
|
readonly id: "opaque-surface-transport-schema";
|
|
133
|
-
readonly path: "spec/plugin/opaque-surface-transport-
|
|
134
|
-
readonly version: "opaque-surface-transport-
|
|
135
|
-
readonly sha256: "
|
|
144
|
+
readonly path: "spec/plugin/opaque-surface-transport-v5.schema.json";
|
|
145
|
+
readonly version: "opaque-surface-transport-v5";
|
|
146
|
+
readonly sha256: "c9beca3ed207a8059f63e946fca684b6c8a16a9999fe076684dc086af97cf67a";
|
|
136
147
|
}, {
|
|
137
148
|
readonly id: "owner-scope-inventory-registry";
|
|
138
149
|
readonly path: "spec/plugin/owner-scope-inventories-v1.json";
|
|
@@ -180,9 +191,9 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
180
191
|
readonly sha256: "4d9979f5205ec047895b64c995312c588d998bb1c1448f6c9c559f1b7ab0d796";
|
|
181
192
|
}, {
|
|
182
193
|
readonly id: "plugin-platform-openapi";
|
|
183
|
-
readonly path: "spec/openapi/plugin-platform-
|
|
184
|
-
readonly version: "plugin-platform-
|
|
185
|
-
readonly sha256: "
|
|
194
|
+
readonly path: "spec/openapi/plugin-platform-v9.yaml";
|
|
195
|
+
readonly version: "plugin-platform-v9";
|
|
196
|
+
readonly sha256: "b5999503d24828d93f5ddaadc01ca31eaa630434bef5552aed9e6ec56c65c305";
|
|
186
197
|
}, {
|
|
187
198
|
readonly id: "process-containment-schema";
|
|
188
199
|
readonly path: "spec/plugin/process-containment-v1.schema.json";
|
|
@@ -195,9 +206,9 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
195
206
|
readonly sha256: "0aced01a8d409953d5075a799ac273cae79e285ac82debe93ac4d8b706571ad1";
|
|
196
207
|
}, {
|
|
197
208
|
readonly id: "release-metadata-schema";
|
|
198
|
-
readonly path: "spec/plugin/release-metadata-
|
|
199
|
-
readonly version: "release-metadata-
|
|
200
|
-
readonly sha256: "
|
|
209
|
+
readonly path: "spec/plugin/release-metadata-v6.schema.json";
|
|
210
|
+
readonly version: "release-metadata-v6";
|
|
211
|
+
readonly sha256: "68700942b0bc21298270e90da940f29bb6a4d832282337587abddba9485b9938";
|
|
201
212
|
}, {
|
|
202
213
|
readonly id: "release-revocation-pointer-schema";
|
|
203
214
|
readonly path: "spec/plugin/release-revocation-pointer-v1.schema.json";
|
|
@@ -278,6 +289,11 @@ export declare const redevPluginContractArtifacts: readonly [{
|
|
|
278
289
|
readonly path: "spec/plugin/ipc-v6.schema.json";
|
|
279
290
|
readonly version: "rust-ipc-v6";
|
|
280
291
|
readonly sha256: "9814ca091ac2e4e8435c1ab553e248e9d2e792de93ce9fd27bd030486774837f";
|
|
292
|
+
}, {
|
|
293
|
+
readonly id: "session-scope-maintenance-contract";
|
|
294
|
+
readonly path: "spec/plugin/session-scope-maintenance-v1.json";
|
|
295
|
+
readonly version: "session-scope-maintenance-v1";
|
|
296
|
+
readonly sha256: "fd87b6654c954ee2a2dc67958ba214048b894aa421bb74a85fb02000ec51f37b";
|
|
281
297
|
}, {
|
|
282
298
|
readonly id: "session-scope-schema";
|
|
283
299
|
readonly path: "spec/plugin/session-scope-v1.schema.json";
|
package/dist/contracts.gen.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
// Code generated by scripts/generate_contract_registry.mjs; DO NOT EDIT.
|
|
2
|
-
export const pluginUIProtocolVersion = "plugin-ui-
|
|
3
|
-
export const pluginHostProtocolVersion = "plugin-host-
|
|
4
|
-
export const bridgeSchemaVersion = "bridge-
|
|
2
|
+
export const pluginUIProtocolVersion = "plugin-ui-v6";
|
|
3
|
+
export const pluginHostProtocolVersion = "plugin-host-v8";
|
|
4
|
+
export const bridgeSchemaVersion = "bridge-v6";
|
|
5
5
|
export const tokenTicketSchemaVersion = "token-ticket-v4";
|
|
6
6
|
export const redevPluginContractVersions = {
|
|
7
|
-
"plugin_ui_protocol_version": "plugin-ui-
|
|
8
|
-
"
|
|
7
|
+
"plugin_ui_protocol_version": "plugin-ui-v6",
|
|
8
|
+
"supported_plugin_ui_protocol_versions": ["plugin-ui-v5", "plugin-ui-v6"],
|
|
9
|
+
"plugin_ui_transport_mappings": [{ "plugin_ui_protocol_version": "plugin-ui-v5", "opaque_surface_transport_schema_version": "opaque-surface-transport-v4", "bridge_schema_version": "bridge-v5" }, { "plugin_ui_protocol_version": "plugin-ui-v6", "opaque_surface_transport_schema_version": "opaque-surface-transport-v5", "bridge_schema_version": "bridge-v6" }],
|
|
10
|
+
"plugin_host_protocol_version": "plugin-host-v8",
|
|
9
11
|
"rust_ipc_version": "rust-ipc-v6",
|
|
10
12
|
"wasm_abi_version": "redevplugin-wasm-worker-v2",
|
|
11
|
-
"manifest_schema_version": "manifest-
|
|
13
|
+
"manifest_schema_version": "manifest-v6",
|
|
12
14
|
"package_signature_schema_version": "package-signature-v1",
|
|
13
|
-
"release_metadata_schema_version": "release-metadata-
|
|
15
|
+
"release_metadata_schema_version": "release-metadata-v6",
|
|
14
16
|
"release_root_delegation_schema_version": "release-root-delegation-v1",
|
|
15
17
|
"release_source_policy_schema_version": "release-source-policy-v2",
|
|
16
18
|
"release_source_policy_pointer_schema_version": "release-source-policy-pointer-v1",
|
|
@@ -25,16 +27,17 @@ export const redevPluginContractVersions = {
|
|
|
25
27
|
"release_signing_ledger_receipt_schema_version": "release-signing-ledger-receipt-v1",
|
|
26
28
|
"release_signing_ledger_evidence_schema_version": "release-signing-ledger-evidence-v1",
|
|
27
29
|
"token_ticket_schema_version": "token-ticket-v4",
|
|
28
|
-
"bridge_schema_version": "bridge-
|
|
30
|
+
"bridge_schema_version": "bridge-v6",
|
|
29
31
|
"opaque_surface_document_schema_version": "opaque-surface-document-v3",
|
|
30
|
-
"opaque_surface_transport_schema_version": "opaque-surface-transport-
|
|
32
|
+
"opaque_surface_transport_schema_version": "opaque-surface-transport-v5",
|
|
31
33
|
"target_classifier_version": "target-classifier-v2",
|
|
32
34
|
"network_grant_schema_version": "network-grant-v2",
|
|
33
35
|
"resource_scope_schema_version": "resource-scope-v1",
|
|
34
36
|
"session_scope_schema_version": "session-scope-v1",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
37
|
+
"session_scope_maintenance_schema_version": "session-scope-maintenance-v1",
|
|
38
|
+
"plugin_platform_openapi_version": "plugin-platform-v9",
|
|
39
|
+
"compatibility_manifest_version": "redevplugin.compatibility.v11",
|
|
40
|
+
"compatibility_schema_version": "compatibility-manifest-v11",
|
|
38
41
|
"worker_invocation_schema_version": "worker-invocation-v3",
|
|
39
42
|
"host_capability_contract_schema_version": "host-capability-contract-v1",
|
|
40
43
|
"host_capability_pin_schema_version": "host-capability-pin-v1",
|
|
@@ -42,7 +45,7 @@ export const redevPluginContractVersions = {
|
|
|
42
45
|
"host_capability_compatibility_schema_version": "host-capability-compatibility-v1",
|
|
43
46
|
"host_capability_signature_schema_version": "host-capability-signature-v1",
|
|
44
47
|
"host_capability_notices_schema_version": "host-capability-notices-v1",
|
|
45
|
-
"error_codes_schema_version": "error-codes-
|
|
48
|
+
"error_codes_schema_version": "error-codes-v7",
|
|
46
49
|
"performance_contract_version": "performance-contract-v4",
|
|
47
50
|
"performance_evidence_schema_version": "performance-evidence-v4",
|
|
48
51
|
"contract_registry_version": "contract-registry-v2",
|
|
@@ -61,9 +64,9 @@ export const redevPluginContractVersions = {
|
|
|
61
64
|
export const redevPluginContractArtifacts = [
|
|
62
65
|
{
|
|
63
66
|
id: "compatibility-manifest-schema",
|
|
64
|
-
path: "spec/plugin/compatibility-manifest-
|
|
65
|
-
version: "compatibility-manifest-
|
|
66
|
-
sha256: "
|
|
67
|
+
path: "spec/plugin/compatibility-manifest-v11.schema.json",
|
|
68
|
+
version: "compatibility-manifest-v11",
|
|
69
|
+
sha256: "cec20e7bc5351641c031ebceec10559cad7c5f91a62f79158ace94df88fe1d0d",
|
|
67
70
|
},
|
|
68
71
|
{
|
|
69
72
|
id: "contract-registry-schema",
|
|
@@ -73,9 +76,9 @@ export const redevPluginContractArtifacts = [
|
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
id: "error-codes-schema",
|
|
76
|
-
path: "spec/plugin/error-codes-
|
|
77
|
-
version: "error-codes-
|
|
78
|
-
sha256: "
|
|
79
|
+
path: "spec/plugin/error-codes-v7.schema.json",
|
|
80
|
+
version: "error-codes-v7",
|
|
81
|
+
sha256: "4e7cac510a6036f90cae8f58ff8c3b785b3a2d3933875f2f69bef1c41de3d26c",
|
|
79
82
|
},
|
|
80
83
|
{
|
|
81
84
|
id: "host-capability-compatibility-schema",
|
|
@@ -115,15 +118,15 @@ export const redevPluginContractArtifacts = [
|
|
|
115
118
|
},
|
|
116
119
|
{
|
|
117
120
|
id: "iframe-bridge-schema",
|
|
118
|
-
path: "spec/plugin/bridge-
|
|
119
|
-
version: "bridge-
|
|
120
|
-
sha256: "
|
|
121
|
+
path: "spec/plugin/bridge-v6.schema.json",
|
|
122
|
+
version: "bridge-v6",
|
|
123
|
+
sha256: "e5d98528a96016950038e25b64ca760479452e06c13ab46e4ff06745a3e8aef4",
|
|
121
124
|
},
|
|
122
125
|
{
|
|
123
126
|
id: "manifest-schema",
|
|
124
|
-
path: "spec/plugin/manifest-
|
|
125
|
-
version: "manifest-
|
|
126
|
-
sha256: "
|
|
127
|
+
path: "spec/plugin/manifest-v6.schema.json",
|
|
128
|
+
version: "manifest-v6",
|
|
129
|
+
sha256: "b196a328ca6e0581d3da69b8fbaed36ffb1ba13f8e2e46a34b1761cd644f1e74",
|
|
127
130
|
},
|
|
128
131
|
{
|
|
129
132
|
id: "network-grant-schema",
|
|
@@ -139,9 +142,9 @@ export const redevPluginContractArtifacts = [
|
|
|
139
142
|
},
|
|
140
143
|
{
|
|
141
144
|
id: "opaque-surface-transport-schema",
|
|
142
|
-
path: "spec/plugin/opaque-surface-transport-
|
|
143
|
-
version: "opaque-surface-transport-
|
|
144
|
-
sha256: "
|
|
145
|
+
path: "spec/plugin/opaque-surface-transport-v5.schema.json",
|
|
146
|
+
version: "opaque-surface-transport-v5",
|
|
147
|
+
sha256: "c9beca3ed207a8059f63e946fca684b6c8a16a9999fe076684dc086af97cf67a",
|
|
145
148
|
},
|
|
146
149
|
{
|
|
147
150
|
id: "owner-scope-inventory-registry",
|
|
@@ -199,9 +202,9 @@ export const redevPluginContractArtifacts = [
|
|
|
199
202
|
},
|
|
200
203
|
{
|
|
201
204
|
id: "plugin-platform-openapi",
|
|
202
|
-
path: "spec/openapi/plugin-platform-
|
|
203
|
-
version: "plugin-platform-
|
|
204
|
-
sha256: "
|
|
205
|
+
path: "spec/openapi/plugin-platform-v9.yaml",
|
|
206
|
+
version: "plugin-platform-v9",
|
|
207
|
+
sha256: "b5999503d24828d93f5ddaadc01ca31eaa630434bef5552aed9e6ec56c65c305",
|
|
205
208
|
},
|
|
206
209
|
{
|
|
207
210
|
id: "process-containment-schema",
|
|
@@ -217,9 +220,9 @@ export const redevPluginContractArtifacts = [
|
|
|
217
220
|
},
|
|
218
221
|
{
|
|
219
222
|
id: "release-metadata-schema",
|
|
220
|
-
path: "spec/plugin/release-metadata-
|
|
221
|
-
version: "release-metadata-
|
|
222
|
-
sha256: "
|
|
223
|
+
path: "spec/plugin/release-metadata-v6.schema.json",
|
|
224
|
+
version: "release-metadata-v6",
|
|
225
|
+
sha256: "68700942b0bc21298270e90da940f29bb6a4d832282337587abddba9485b9938",
|
|
223
226
|
},
|
|
224
227
|
{
|
|
225
228
|
id: "release-revocation-pointer-schema",
|
|
@@ -317,6 +320,12 @@ export const redevPluginContractArtifacts = [
|
|
|
317
320
|
version: "rust-ipc-v6",
|
|
318
321
|
sha256: "9814ca091ac2e4e8435c1ab553e248e9d2e792de93ce9fd27bd030486774837f",
|
|
319
322
|
},
|
|
323
|
+
{
|
|
324
|
+
id: "session-scope-maintenance-contract",
|
|
325
|
+
path: "spec/plugin/session-scope-maintenance-v1.json",
|
|
326
|
+
version: "session-scope-maintenance-v1",
|
|
327
|
+
sha256: "fd87b6654c954ee2a2dc67958ba214048b894aa421bb74a85fb02000ec51f37b",
|
|
328
|
+
},
|
|
320
329
|
{
|
|
321
330
|
id: "session-scope-schema",
|
|
322
331
|
path: "spec/plugin/session-scope-v1.schema.json",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const pluginPlatformErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED"];
|
|
2
|
-
export declare const pluginBridgeErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED", "PLUGIN_CONFIRMATION_REJECTED", "PLUGIN_BRIDGE_CANCELLED", "PLUGIN_BRIDGE_TIMEOUT", "PLUGIN_BRIDGE_DISPOSED", "PLUGIN_BRIDGE_HANDSHAKE_FAILED", "PLUGIN_BRIDGE_HANDSHAKE_REQUIRED"];
|
|
3
|
-
export declare const pluginClientErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED", "PLUGIN_CONFIRMATION_REJECTED", "PLUGIN_BRIDGE_CANCELLED", "PLUGIN_BRIDGE_TIMEOUT", "PLUGIN_BRIDGE_DISPOSED", "PLUGIN_BRIDGE_HANDSHAKE_FAILED", "PLUGIN_BRIDGE_HANDSHAKE_REQUIRED", "PLUGIN_PLATFORM_REQUEST_FAILED", "PLUGIN_STREAM_FAILED"];
|
|
1
|
+
export declare const pluginPlatformErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_OPERATION_RATE_LIMITED", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED"];
|
|
2
|
+
export declare const pluginBridgeErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_OPERATION_RATE_LIMITED", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED", "PLUGIN_CONFIRMATION_REJECTED", "PLUGIN_BRIDGE_CANCELLED", "PLUGIN_BRIDGE_TIMEOUT", "PLUGIN_BRIDGE_DISPOSED", "PLUGIN_BRIDGE_HANDSHAKE_FAILED", "PLUGIN_BRIDGE_HANDSHAKE_REQUIRED"];
|
|
3
|
+
export declare const pluginClientErrorCodes: readonly ["PLUGIN_INVALID_REQUEST", "PLUGIN_MANIFEST_INVALID", "PLUGIN_PACKAGE_INVALID", "PLUGIN_PACKAGE_TOO_LARGE", "PLUGIN_PACKAGE_PATH_FORBIDDEN", "PLUGIN_SIGNATURE_INVALID", "PLUGIN_TRUST_STATE_DENIED", "PLUGIN_TRUST_VERIFICATION_REQUIRED", "PLUGIN_TRUST_VERIFICATION_INVALID", "PLUGIN_RELEASE_REF_VERIFICATION_FAILED", "PLUGIN_RELEASE_REF_POLICY_DENIED", "PLUGIN_DISABLED", "PLUGIN_DISABLED_BY_POLICY", "PLUGIN_PERMISSION_DENIED", "PLUGIN_ORIGIN_DENIED", "PLUGIN_ACTION_DENIED", "PLUGIN_OWNER_SCOPE_MISMATCH", "PLUGIN_SECRET_SCOPE_MISMATCH", "PLUGIN_STORAGE_SCOPE_MISMATCH", "PLUGIN_ADAPTER_FAILURE", "PLUGIN_SESSION_REVOKED", "PLUGIN_SESSION_TEARDOWN_INCOMPLETE", "PLUGIN_SESSION_FENCE_CAPACITY", "PLUGIN_CONFIRMATION_REQUIRED", "PLUGIN_CONFIRMATION_INVALID", "PLUGIN_TOKEN_EXPIRED", "PLUGIN_TOKEN_REPLAY", "PLUGIN_GATEWAY_TOKEN_INVALID", "PLUGIN_GATEWAY_TOKEN_REPLAYED", "PLUGIN_GATEWAY_TOKEN_CHANNEL_MISMATCH", "PLUGIN_ASSET_TICKET_INVALID", "PLUGIN_ASSET_SESSION_INVALID", "PLUGIN_STREAM_TICKET_INVALID", "PLUGIN_STREAM_DELIVERY_INVALID", "PLUGIN_STREAM_CANCELLED", "PLUGIN_LEASE_INVALID", "PLUGIN_LEASE_REPLAYED", "PLUGIN_GRANT_INVALID", "PLUGIN_STORAGE_QUOTA_EXCEEDED", "PLUGIN_OPERATION_BLOCKED", "PLUGIN_OPERATION_NOT_FOUND", "PLUGIN_OPERATION_NOT_CANCELABLE", "PLUGIN_OPERATION_RATE_LIMITED", "PLUGIN_NETWORK_TARGET_DENIED", "PLUGIN_NETWORK_RATE_LIMITED", "PLUGIN_RUNTIME_UNAVAILABLE", "PLUGIN_RUNTIME_VERSION_MISMATCH", "PLUGIN_RUNTIME_CONTRACT_MISMATCH", "PLUGIN_UI_PROTOCOL_UNSUPPORTED", "PLUGIN_UI_PROTOCOL_VIOLATION", "PLUGIN_SURFACE_QUIESCE_TIMEOUT", "PLUGIN_JSON_LIMIT_EXCEEDED", "PLUGIN_CAPABILITY_ERROR", "PLUGIN_WORKER_ERROR", "PLUGIN_CONTRACT_MISMATCH", "PLUGIN_MANAGEMENT_REVISION_MISMATCH", "PLUGIN_AUTHORIZATION_REVISION_MISMATCH", "PLUGIN_BINDING_REVISION_MISMATCH", "PLUGIN_VALUES_REVISION_MISMATCH", "PLUGIN_CSRF_REQUIRED", "PLUGIN_CSRF_INVALID", "PLUGIN_FEATURE_NOT_CONFIGURED", "PLUGIN_CONFIRMATION_REJECTED", "PLUGIN_BRIDGE_CANCELLED", "PLUGIN_BRIDGE_TIMEOUT", "PLUGIN_BRIDGE_DISPOSED", "PLUGIN_BRIDGE_HANDSHAKE_FAILED", "PLUGIN_BRIDGE_HANDSHAKE_REQUIRED", "PLUGIN_PLATFORM_REQUEST_FAILED", "PLUGIN_STREAM_FAILED"];
|
|
4
4
|
export declare const runtimeProcessFailureCodes: readonly ["RUNTIME_PROCESS_FAILED", "RUNTIME_PROCESS_EXIT_UNEXPECTED", "RUNTIME_PROCESS_EXIT_UNRECOGNIZED", "RUNTIME_PROCESS_SIGNALLED", "IPC_WRITER_CAPACITY_OVERFLOW", "IPC_WRITER_CAPACITY_LIMIT_EXCEEDED", "IPC_WRITER_START_FAILED", "IPC_WRITER_CLOSED", "IPC_WRITER_BATCH_SIZE_OVERFLOW", "IPC_WRITER_WRITE_FAILED", "IPC_WRITER_FLUSH_FAILED", "IPC_WRITER_PANICKED"];
|
package/dist/error-codes.gen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from spec/plugin/error-codes-
|
|
1
|
+
// Generated from spec/plugin/error-codes-v7.schema.json. Do not edit.
|
|
2
2
|
export const pluginPlatformErrorCodes = [
|
|
3
3
|
"PLUGIN_INVALID_REQUEST",
|
|
4
4
|
"PLUGIN_MANIFEST_INVALID",
|
|
@@ -42,6 +42,7 @@ export const pluginPlatformErrorCodes = [
|
|
|
42
42
|
"PLUGIN_OPERATION_BLOCKED",
|
|
43
43
|
"PLUGIN_OPERATION_NOT_FOUND",
|
|
44
44
|
"PLUGIN_OPERATION_NOT_CANCELABLE",
|
|
45
|
+
"PLUGIN_OPERATION_RATE_LIMITED",
|
|
45
46
|
"PLUGIN_NETWORK_TARGET_DENIED",
|
|
46
47
|
"PLUGIN_NETWORK_RATE_LIMITED",
|
|
47
48
|
"PLUGIN_RUNTIME_UNAVAILABLE",
|
|
@@ -105,6 +106,7 @@ export const pluginBridgeErrorCodes = [
|
|
|
105
106
|
"PLUGIN_OPERATION_BLOCKED",
|
|
106
107
|
"PLUGIN_OPERATION_NOT_FOUND",
|
|
107
108
|
"PLUGIN_OPERATION_NOT_CANCELABLE",
|
|
109
|
+
"PLUGIN_OPERATION_RATE_LIMITED",
|
|
108
110
|
"PLUGIN_NETWORK_TARGET_DENIED",
|
|
109
111
|
"PLUGIN_NETWORK_RATE_LIMITED",
|
|
110
112
|
"PLUGIN_RUNTIME_UNAVAILABLE",
|
|
@@ -174,6 +176,7 @@ export const pluginClientErrorCodes = [
|
|
|
174
176
|
"PLUGIN_OPERATION_BLOCKED",
|
|
175
177
|
"PLUGIN_OPERATION_NOT_FOUND",
|
|
176
178
|
"PLUGIN_OPERATION_NOT_CANCELABLE",
|
|
179
|
+
"PLUGIN_OPERATION_RATE_LIMITED",
|
|
177
180
|
"PLUGIN_NETWORK_TARGET_DENIED",
|
|
178
181
|
"PLUGIN_NETWORK_RATE_LIMITED",
|
|
179
182
|
"PLUGIN_RUNTIME_UNAVAILABLE",
|