@acid-cat/cli 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -2
- package/conformance/fixture.acidcat.json +96 -0
- package/dist/conform-LH9KgQ9-.js +5045 -0
- package/dist/index.d.ts +164 -4
- package/dist/index.js +96 -4
- package/dist/main.d.ts +1 -2
- package/dist/main.js +1090 -7
- package/package.json +4 -3
- package/dist/catalog.d.ts +0 -12
- package/dist/catalog.js +0 -149
- package/dist/conform/check.d.ts +0 -47
- package/dist/conform/check.js +0 -178
- package/dist/conform/cli.d.ts +0 -5
- package/dist/conform/cli.js +0 -721
- package/dist/conform/http.d.ts +0 -6
- package/dist/conform/http.js +0 -297
- package/dist/conform/index.d.ts +0 -69
- package/dist/conform/index.js +0 -80
- package/dist/conform/mcp-stdio.d.ts +0 -7
- package/dist/conform/mcp-stdio.js +0 -291
- package/dist/conform/mcp.d.ts +0 -47
- package/dist/conform/mcp.js +0 -754
- package/dist/conform/poll.d.ts +0 -13
- package/dist/conform/poll.js +0 -295
- package/dist/conform/properties.d.ts +0 -12
- package/dist/conform/properties.js +0 -151
- package/dist/conform/serve.d.ts +0 -12
- package/dist/conform/serve.js +0 -96
- package/dist/conform/server-card.d.ts +0 -5
- package/dist/conform/server-card.js +0 -142
- package/dist/conform/sse.d.ts +0 -9
- package/dist/conform/sse.js +0 -53
- package/dist/conform/webhook.d.ts +0 -30
- package/dist/conform/webhook.js +0 -481
- package/dist/conform/webmcp.d.ts +0 -53
- package/dist/conform/webmcp.js +0 -232
- package/dist/json/catalog.schema.json.js +0 -170
- package/dist/json/fixture.acidcat.json.js +0 -396
- package/dist/json/package.json.js +0 -3
- package/dist/json/server-card.schema.json.js +0 -281
- package/dist/json.d.ts +0 -11
- package/dist/json.js +0 -13
package/dist/conform/webmcp.js
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { isArrayOf, isObject, isStringArray, memberOf, parseJson } from "../json.js";
|
|
2
|
-
import { Checks, abortable, expect, expectEqual, fixture, idsOf, sorted, until } from "./check.js";
|
|
3
|
-
import { REFERENCE, visitObjects } from "@acid-cat/spec-ts";
|
|
4
|
-
// src/conform/webmcp.ts
|
|
5
|
-
const RULE = "spec/surfaces/webmcp.md";
|
|
6
|
-
const TARGET = "app";
|
|
7
|
-
/** The function uses no imports and no outer variables, because the browser driver sends its source text to the page. */
|
|
8
|
-
function createTestHost() {
|
|
9
|
-
const registered = /* @__PURE__ */ new Map();
|
|
10
|
-
const calls = /* @__PURE__ */ new Map();
|
|
11
|
-
return {
|
|
12
|
-
modelContext: { registerTool(tool, options) {
|
|
13
|
-
registered.set(tool.name, tool);
|
|
14
|
-
options.signal.addEventListener("abort", () => {
|
|
15
|
-
if (registered.get(tool.name) === tool) registered.delete(tool.name);
|
|
16
|
-
});
|
|
17
|
-
} },
|
|
18
|
-
tools: () => [...registered.values()].map((tool) => ({
|
|
19
|
-
name: tool.name,
|
|
20
|
-
description: tool.description,
|
|
21
|
-
inputSchema: tool.inputSchema
|
|
22
|
-
})),
|
|
23
|
-
async call(name, input, id) {
|
|
24
|
-
const tool = registered.get(name);
|
|
25
|
-
if (tool === void 0) return { missing: true };
|
|
26
|
-
const controller = new AbortController();
|
|
27
|
-
if (id !== void 0) calls.set(id, controller);
|
|
28
|
-
try {
|
|
29
|
-
return { resolved: await tool.execute(input, { signal: controller.signal }) };
|
|
30
|
-
} catch (error) {
|
|
31
|
-
const hasMembers = typeof error === "object" && error !== null;
|
|
32
|
-
const errorName = hasMembers && "name" in error ? error.name : void 0;
|
|
33
|
-
const kind = hasMembers && "kind" in error ? error.kind : void 0;
|
|
34
|
-
const message = hasMembers && "message" in error ? error.message : void 0;
|
|
35
|
-
return { rejected: {
|
|
36
|
-
name: String(errorName),
|
|
37
|
-
kind,
|
|
38
|
-
message: String(message)
|
|
39
|
-
} };
|
|
40
|
-
} finally {
|
|
41
|
-
if (id !== void 0) calls.delete(id);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
cancel(id) {
|
|
45
|
-
calls.get(id)?.abort();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function toolsOf(value) {
|
|
50
|
-
const isTool = (tool) => isObject(tool) && typeof tool.name === "string" && typeof tool.description === "string";
|
|
51
|
-
if (!isArrayOf(value, isTool)) throw new Error(`the host must give a list of tools, got ${JSON.stringify(value)}`);
|
|
52
|
-
return value.map((tool) => ({
|
|
53
|
-
name: tool.name,
|
|
54
|
-
description: tool.description,
|
|
55
|
-
inputSchema: tool.inputSchema
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
function toolCallOf(value) {
|
|
59
|
-
if (isObject(value)) {
|
|
60
|
-
if (value.missing === true) return { missing: true };
|
|
61
|
-
if ("resolved" in value) return { resolved: value.resolved };
|
|
62
|
-
const rejected = value.rejected;
|
|
63
|
-
if (isObject(rejected) && typeof rejected.name === "string" && typeof rejected.message === "string") return { rejected: {
|
|
64
|
-
name: rejected.name,
|
|
65
|
-
kind: rejected.kind,
|
|
66
|
-
message: rejected.message
|
|
67
|
-
} };
|
|
68
|
-
}
|
|
69
|
-
throw new Error(`the host must give a tool call, got ${JSON.stringify(value)}`);
|
|
70
|
-
}
|
|
71
|
-
let lastCall = 0;
|
|
72
|
-
function driverOf(host) {
|
|
73
|
-
return {
|
|
74
|
-
tools: (signal) => abortable(host.tools(), signal),
|
|
75
|
-
call: (name, input, { signal, cancel } = {}) => {
|
|
76
|
-
const id = String(++lastCall);
|
|
77
|
-
const stop = () => void host.cancel(id).catch(() => void 0);
|
|
78
|
-
signal?.addEventListener("abort", stop, { once: true });
|
|
79
|
-
cancel?.addEventListener("abort", stop, { once: true });
|
|
80
|
-
const call = host.call(name, input, id).finally(() => {
|
|
81
|
-
signal?.removeEventListener("abort", stop);
|
|
82
|
-
cancel?.removeEventListener("abort", stop);
|
|
83
|
-
});
|
|
84
|
-
return signal === void 0 ? call : abortable(call, signal);
|
|
85
|
-
},
|
|
86
|
-
close: () => host.close()
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
async function processDriver(install) {
|
|
90
|
-
const host = createTestHost();
|
|
91
|
-
const remove = await install(host.modelContext);
|
|
92
|
-
const copy = (value) => parseJson(JSON.stringify(value));
|
|
93
|
-
return driverOf({
|
|
94
|
-
tools: async () => toolsOf(copy(host.tools())),
|
|
95
|
-
call: async (name, input, id) => toolCallOf(copy(await host.call(name, input, id))),
|
|
96
|
-
cancel: async (id) => host.cancel(id),
|
|
97
|
-
close: async () => {
|
|
98
|
-
if (typeof remove === "function") await remove();
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
async function browserDriver(url) {
|
|
103
|
-
let playwright;
|
|
104
|
-
try {
|
|
105
|
-
playwright = await import("playwright");
|
|
106
|
-
} catch {
|
|
107
|
-
throw new Error("acid-cat conform --webmcp needs Playwright and Chromium: `pnpm add -D playwright`, then `pnpm exec playwright install chromium`.");
|
|
108
|
-
}
|
|
109
|
-
const browser = await playwright.chromium.launch();
|
|
110
|
-
const page = await browser.newPage();
|
|
111
|
-
const errors = [];
|
|
112
|
-
page.on("pageerror", (error) => errors.push(error.message));
|
|
113
|
-
await page.addInitScript(`
|
|
114
|
-
window.__acidCatConform = (${createTestHost.toString()})();
|
|
115
|
-
for (const scope of [document, navigator]) {
|
|
116
|
-
Object.defineProperty(scope, "modelContext", { value: window.__acidCatConform.modelContext, configurable: true });
|
|
117
|
-
}
|
|
118
|
-
`);
|
|
119
|
-
await page.goto(url);
|
|
120
|
-
const host = (method, ...args) => page.evaluate(`window.__acidCatConform.${method}(${args.map((arg) => JSON.stringify(arg) ?? "undefined").join(", ")})`);
|
|
121
|
-
return driverOf({
|
|
122
|
-
tools: async () => {
|
|
123
|
-
if (errors.length > 0) throw new Error(`The page has errors: ${errors.join("; ")}`);
|
|
124
|
-
return toolsOf(await host("tools"));
|
|
125
|
-
},
|
|
126
|
-
call: async (name, input, id) => toolCallOf(await host("call", name, input, id)),
|
|
127
|
-
cancel: async (id) => {
|
|
128
|
-
await host("cancel", id);
|
|
129
|
-
},
|
|
130
|
-
close: () => browser.close()
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function isBundled(schema) {
|
|
134
|
-
const types = isObject(schema.$defs) ? schema.$defs : {};
|
|
135
|
-
let bundled = true;
|
|
136
|
-
visitObjects(schema, (node) => {
|
|
137
|
-
if (typeof node.$ref !== "string") return;
|
|
138
|
-
const name = REFERENCE.exec(node.$ref)?.[1];
|
|
139
|
-
if (name === void 0 || !Object.hasOwn(types, name)) bundled = false;
|
|
140
|
-
});
|
|
141
|
-
return bundled;
|
|
142
|
-
}
|
|
143
|
-
const requiredOf = (schema) => isStringArray(schema.required) ? schema.required : [];
|
|
144
|
-
function expectSameInputShape(tool, schema, input) {
|
|
145
|
-
expectEqual(schema.type, "object", `type of the input schema of ${tool}`);
|
|
146
|
-
expectEqual(sorted(Object.keys(schema.properties ?? {})), sorted(Object.keys(input.properties ?? {})), `properties of ${tool}`);
|
|
147
|
-
expectEqual(sorted(requiredOf(schema)), sorted(requiredOf(input)), `required properties of ${tool}`);
|
|
148
|
-
}
|
|
149
|
-
const names = async (driver, signal) => sorted((await driver.tools(signal)).map((tool) => tool.name));
|
|
150
|
-
async function heldKeys(driver, signal) {
|
|
151
|
-
const call = await driver.call("fixture.held", {}, { signal });
|
|
152
|
-
expect("resolved" in call, `fixture.held gave ${JSON.stringify(call)}`);
|
|
153
|
-
const keys = memberOf(memberOf(call.resolved, "value"), "keys");
|
|
154
|
-
expect(isStringArray(keys), `fixture.held gave ${JSON.stringify(call)}, with no list of keys`);
|
|
155
|
-
return keys;
|
|
156
|
-
}
|
|
157
|
-
async function checkWebMcp(driver, options) {
|
|
158
|
-
const checks = new Checks("webmcp", options.deadline, options.signal);
|
|
159
|
-
const capabilities = fixture.capabilities;
|
|
160
|
-
const expected = idsOf(TARGET);
|
|
161
|
-
await checks.run("each available capability of the target is a tool", `${RULE}#tools`, async (signal) => {
|
|
162
|
-
await until(`the tools are ${expected.join(", ")}`, () => names(driver, signal), (tools) => JSON.stringify(tools) === JSON.stringify(expected), signal);
|
|
163
|
-
});
|
|
164
|
-
await checks.run("a tool has the description and the bundled input schema of its capability", `${RULE}#tools`, async (signal) => {
|
|
165
|
-
for (const tool of await driver.tools(signal)) {
|
|
166
|
-
expectEqual(tool.description, capabilities[tool.name]?.description, `description of ${tool.name}`);
|
|
167
|
-
const schema = tool.inputSchema;
|
|
168
|
-
expect(isObject(schema), `the input schema of ${tool.name} must be an object`);
|
|
169
|
-
expectSameInputShape(tool.name, schema, capabilities[tool.name]?.input ?? {});
|
|
170
|
-
expect(isBundled(schema), `the input schema of ${tool.name} must be bundled`);
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
await checks.run("a value resolves as a result", `${RULE}#tools`, async (signal) => {
|
|
174
|
-
expectEqual(await driver.call("fixture.echo", { text: "hello" }, { signal }), { resolved: {
|
|
175
|
-
ok: true,
|
|
176
|
-
value: { text: "hello" }
|
|
177
|
-
} }, "outcome");
|
|
178
|
-
});
|
|
179
|
-
await checks.run("a failure resolves as a result", `${RULE}#tools`, async (signal) => {
|
|
180
|
-
const call = await driver.call("fixture.refuse", {}, { signal });
|
|
181
|
-
expect("resolved" in call, `the call must resolve, got ${JSON.stringify(call)}`);
|
|
182
|
-
expectEqual(memberOf(memberOf(call.resolved, "error"), "_tag"), "Refused", "_tag");
|
|
183
|
-
});
|
|
184
|
-
for (const [name, capability, input, kind, errorName] of [[
|
|
185
|
-
"a defect rejects with the kind internal",
|
|
186
|
-
"fixture.crash",
|
|
187
|
-
{},
|
|
188
|
-
"internal",
|
|
189
|
-
void 0
|
|
190
|
-
], [
|
|
191
|
-
"invalid input rejects with the kind invalid-input, as a TypeError",
|
|
192
|
-
"fixture.echo",
|
|
193
|
-
{ text: 1 },
|
|
194
|
-
"invalid-input",
|
|
195
|
-
"TypeError"
|
|
196
|
-
]]) await checks.run(name, `${RULE}#tools`, async (signal) => {
|
|
197
|
-
const call = await driver.call(capability, input, { signal });
|
|
198
|
-
expect("rejected" in call, `the call must reject, got ${JSON.stringify(call)}`);
|
|
199
|
-
expectEqual(call.rejected.kind, kind, "kind");
|
|
200
|
-
if (errorName !== void 0) expectEqual(call.rejected.name, errorName, "name");
|
|
201
|
-
});
|
|
202
|
-
await checks.run("the signal of the host cancels a call, as an AbortError", `${RULE}#tools`, async (signal) => {
|
|
203
|
-
const key = "cancel";
|
|
204
|
-
const cancel = new AbortController();
|
|
205
|
-
const call = driver.call("fixture.hold", { key }, {
|
|
206
|
-
signal,
|
|
207
|
-
cancel: cancel.signal
|
|
208
|
-
});
|
|
209
|
-
call.catch(() => void 0);
|
|
210
|
-
const read = () => heldKeys(driver, signal);
|
|
211
|
-
try {
|
|
212
|
-
await until(`fixture.held gives ${key}`, read, (held) => held.includes(key), signal);
|
|
213
|
-
cancel.abort();
|
|
214
|
-
const result = await call;
|
|
215
|
-
expect("rejected" in result, `the call must reject, got ${JSON.stringify(result)}`);
|
|
216
|
-
expectEqual(result.rejected.kind, "cancelled", "kind");
|
|
217
|
-
expectEqual(result.rejected.name, "AbortError", "name");
|
|
218
|
-
await until("the cancelled call stops holding", read, (held) => !held.includes(key), signal);
|
|
219
|
-
} finally {
|
|
220
|
-
await driver.call("fixture.release", { key }, { signal: AbortSignal.timeout(options.deadline) }).catch(() => void 0);
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
await checks.run("a tool is removed while its capability is unavailable, and registered again after", `${RULE}#tools`, async (signal) => {
|
|
224
|
-
const toggle = (present) => (tools) => tools.includes("fixture.toggle") === present;
|
|
225
|
-
await driver.call("fixture.switch.set", { on: false }, { signal });
|
|
226
|
-
await until("fixture.toggle is removed", () => names(driver, signal), toggle(false), signal);
|
|
227
|
-
await driver.call("fixture.switch.set", { on: true }, { signal });
|
|
228
|
-
await until("fixture.toggle is registered again", () => names(driver, signal), toggle(true), signal);
|
|
229
|
-
});
|
|
230
|
-
return checks;
|
|
231
|
-
}
|
|
232
|
-
export { browserDriver, checkWebMcp, createTestHost, processDriver };
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
// ../../schemas/catalog.schema.json
|
|
2
|
-
var catalog_schema_default = {
|
|
3
|
-
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
-
$id: "https://acid-cat.dev/schemas/0.1/catalog.schema.json",
|
|
5
|
-
title: "AcidCat catalog",
|
|
6
|
-
description: "One document that states what an application can do, which events it gives, and which targets see each one. See spec/catalog.md.",
|
|
7
|
-
type: "object",
|
|
8
|
-
required: [
|
|
9
|
-
"acidcat",
|
|
10
|
-
"targets",
|
|
11
|
-
"capabilities"
|
|
12
|
-
],
|
|
13
|
-
properties: {
|
|
14
|
-
"acidcat": {
|
|
15
|
-
"description": "The version of the AcidCat specification this catalog follows.",
|
|
16
|
-
"const": "0.1"
|
|
17
|
-
},
|
|
18
|
-
"title": { "type": "string" },
|
|
19
|
-
"description": { "type": "string" },
|
|
20
|
-
"targets": {
|
|
21
|
-
"description": "The targets, keyed by name.",
|
|
22
|
-
"type": "object",
|
|
23
|
-
"propertyNames": { "$ref": "#/$defs/targetName" },
|
|
24
|
-
"additionalProperties": { "$ref": "#/$defs/target" }
|
|
25
|
-
},
|
|
26
|
-
"$defs": {
|
|
27
|
-
"description": "Shared types, keyed by name. Capability schemas reference them as #/$defs/<Name>.",
|
|
28
|
-
"type": "object",
|
|
29
|
-
"propertyNames": { "$ref": "#/$defs/typeName" },
|
|
30
|
-
"additionalProperties": { "$ref": "#/$defs/schema" }
|
|
31
|
-
},
|
|
32
|
-
"capabilities": {
|
|
33
|
-
"description": "The capabilities, keyed by id.",
|
|
34
|
-
"type": "object",
|
|
35
|
-
"propertyNames": { "$ref": "#/$defs/id" },
|
|
36
|
-
"additionalProperties": { "$ref": "#/$defs/capability" }
|
|
37
|
-
},
|
|
38
|
-
"events": {
|
|
39
|
-
"description": "The events, keyed by id. See spec/events.md.",
|
|
40
|
-
"type": "object",
|
|
41
|
-
"propertyNames": { "$ref": "#/$defs/id" },
|
|
42
|
-
"additionalProperties": { "$ref": "#/$defs/event" }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
$defs: {
|
|
46
|
-
"id": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"maxLength": 128,
|
|
49
|
-
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*(\\.[a-z][a-z0-9]*(-[a-z0-9]+)*)+$"
|
|
50
|
-
},
|
|
51
|
-
"targetName": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"pattern": "^[a-z][a-z0-9-]*(:[a-z][a-z0-9-]*)?$"
|
|
54
|
-
},
|
|
55
|
-
"surfaceName": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"pattern": "^[a-z][a-z0-9-]*(:[a-z][a-z0-9-]*)?$"
|
|
58
|
-
},
|
|
59
|
-
"typeName": {
|
|
60
|
-
"type": "string",
|
|
61
|
-
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
|
62
|
-
},
|
|
63
|
-
"target": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"required": ["surfaces"],
|
|
66
|
-
"properties": {
|
|
67
|
-
"surfaces": {
|
|
68
|
-
"type": "array",
|
|
69
|
-
"items": { "$ref": "#/$defs/surfaceName" },
|
|
70
|
-
"minItems": 1,
|
|
71
|
-
"uniqueItems": true
|
|
72
|
-
},
|
|
73
|
-
"description": { "type": "string" },
|
|
74
|
-
"options": {
|
|
75
|
-
"type": "object",
|
|
76
|
-
"properties": { "cli": { "$ref": "#/$defs/cliOptions" } }
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"cliOptions": {
|
|
81
|
-
"description": "The settings of the CLI surface. See spec/surfaces/cli.md#aliases.",
|
|
82
|
-
"type": "object",
|
|
83
|
-
"properties": {
|
|
84
|
-
"aliases": {
|
|
85
|
-
"type": "object",
|
|
86
|
-
"propertyNames": { "pattern": "^(--[a-z][a-z0-9]*(-[a-z0-9]+)*|[a-z][a-z0-9]*(-[a-z0-9]+)*( [a-z][a-z0-9]*(-[a-z0-9]+)*)?)$" },
|
|
87
|
-
"additionalProperties": { "$ref": "#/$defs/cliAlias" }
|
|
88
|
-
},
|
|
89
|
-
"default": {
|
|
90
|
-
"description": "The name of the default alias: a command alias that runs when the command line gets no command.",
|
|
91
|
-
"type": "string",
|
|
92
|
-
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*( [a-z][a-z0-9]*(-[a-z0-9]+)*)?$"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"cliAlias": {
|
|
97
|
-
"description": "A short name for a capability or an event: its id in capability or event, and an optional fixed input. Other members start with x-; acid-cat check rejects other members, and an alias with both or neither of capability and event.",
|
|
98
|
-
"type": "object",
|
|
99
|
-
"properties": {
|
|
100
|
-
"capability": { "$ref": "#/$defs/id" },
|
|
101
|
-
"event": { "$ref": "#/$defs/id" },
|
|
102
|
-
"input": { "type": "object" }
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"schema": {
|
|
106
|
-
"description": "A JSON Schema 2020-12 schema in object form. A catalog does not use the boolean schemas true and false. Its $refs point into the catalog's $defs.",
|
|
107
|
-
"type": "object"
|
|
108
|
-
},
|
|
109
|
-
"objectSchema": {
|
|
110
|
-
"description": "An input or payload schema: it states that the value is an object, or it references a type.",
|
|
111
|
-
"type": "object",
|
|
112
|
-
"anyOf": [{
|
|
113
|
-
"required": ["type"],
|
|
114
|
-
"properties": { "type": { "const": "object" } }
|
|
115
|
-
}, {
|
|
116
|
-
"required": ["$ref"],
|
|
117
|
-
"properties": { "$ref": { "type": "string" } }
|
|
118
|
-
}]
|
|
119
|
-
},
|
|
120
|
-
"capability": {
|
|
121
|
-
"type": "object",
|
|
122
|
-
"required": ["description"],
|
|
123
|
-
"properties": {
|
|
124
|
-
"description": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"minLength": 1,
|
|
127
|
-
"pattern": "\\S"
|
|
128
|
-
},
|
|
129
|
-
"audience": {
|
|
130
|
-
"type": "array",
|
|
131
|
-
"items": { "$ref": "#/$defs/targetName" },
|
|
132
|
-
"uniqueItems": true
|
|
133
|
-
},
|
|
134
|
-
"input": { "$ref": "#/$defs/objectSchema" },
|
|
135
|
-
"output": { "$ref": "#/$defs/schema" },
|
|
136
|
-
"failures": {
|
|
137
|
-
"type": "object",
|
|
138
|
-
"propertyNames": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"minLength": 1
|
|
141
|
-
},
|
|
142
|
-
"additionalProperties": { "$ref": "#/$defs/schema" }
|
|
143
|
-
},
|
|
144
|
-
"readOnly": { "type": "boolean" },
|
|
145
|
-
"destructive": { "type": "boolean" },
|
|
146
|
-
"idempotent": { "type": "boolean" },
|
|
147
|
-
"state": { "$ref": "#/$defs/schema" }
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"event": {
|
|
151
|
-
"type": "object",
|
|
152
|
-
"required": ["description"],
|
|
153
|
-
"properties": {
|
|
154
|
-
"description": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"minLength": 1,
|
|
157
|
-
"pattern": "\\S"
|
|
158
|
-
},
|
|
159
|
-
"audience": {
|
|
160
|
-
"type": "array",
|
|
161
|
-
"items": { "$ref": "#/$defs/targetName" },
|
|
162
|
-
"uniqueItems": true
|
|
163
|
-
},
|
|
164
|
-
"input": { "$ref": "#/$defs/objectSchema" },
|
|
165
|
-
"payload": { "$ref": "#/$defs/objectSchema" }
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
export { catalog_schema_default as default };
|