@octonodes/sdk 0.2.16 → 0.2.26
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 +36 -0
- package/dist/data-tables/table.d.ts +90 -0
- package/dist/data-tables/table.d.ts.map +1 -0
- package/dist/data-tables/table.js +44 -0
- package/dist/data-tables/table.js.map +1 -0
- package/dist/data-tables/types.d.ts +24 -0
- package/dist/data-tables/types.d.ts.map +1 -0
- package/dist/data-tables/types.js +3 -0
- package/dist/data-tables/types.js.map +1 -0
- package/dist/gen/types.gen.d.ts +120 -0
- package/dist/gen/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/octonode-client.d.ts +87 -0
- package/dist/octonode-client.d.ts.map +1 -1
- package/dist/octonode-client.js +4 -0
- package/dist/octonode-client.js.map +1 -1
- package/dist/plugins/schema/app/contributions.d.ts +355 -0
- package/dist/plugins/schema/app/contributions.d.ts.map +1 -0
- package/dist/plugins/schema/app/contributions.js +179 -0
- package/dist/plugins/schema/app/contributions.js.map +1 -0
- package/dist/plugins/schema/app-contributions.d.ts +355 -0
- package/dist/plugins/schema/app-contributions.d.ts.map +1 -0
- package/dist/plugins/schema/app-contributions.js +179 -0
- package/dist/plugins/schema/app-contributions.js.map +1 -0
- package/dist/plugins/schema/app.d.ts +506 -1
- package/dist/plugins/schema/app.d.ts.map +1 -1
- package/dist/plugins/schema/app.js +59 -5
- package/dist/plugins/schema/app.js.map +1 -1
- package/dist/plugins/schema/constants.d.ts +2 -1
- package/dist/plugins/schema/constants.d.ts.map +1 -1
- package/dist/plugins/schema/constants.js +3 -1
- package/dist/plugins/schema/constants.js.map +1 -1
- package/dist/plugins/schema/icons.d.ts +4 -0
- package/dist/plugins/schema/icons.d.ts.map +1 -1
- package/dist/plugins/schema/icons.js +20 -1
- package/dist/plugins/schema/icons.js.map +1 -1
- package/dist/plugins/schema/ipc/envelope.d.ts +923 -0
- package/dist/plugins/schema/ipc/envelope.d.ts.map +1 -0
- package/dist/plugins/schema/ipc/envelope.js +210 -0
- package/dist/plugins/schema/ipc/envelope.js.map +1 -0
- package/dist/plugins/schema/ipc-envelope.d.ts +55 -55
- package/dist/plugins/schema/ipc-envelope.js +1 -1
- package/dist/plugins/schema/ipc-envelope.js.map +1 -1
- package/dist/plugins/schema/personal/layout.d.ts +52 -0
- package/dist/plugins/schema/personal/layout.d.ts.map +1 -0
- package/dist/plugins/schema/personal/layout.js +26 -0
- package/dist/plugins/schema/personal/layout.js.map +1 -0
- package/dist/plugins/schema/personal-layout.d.ts +52 -0
- package/dist/plugins/schema/personal-layout.d.ts.map +1 -0
- package/dist/plugins/schema/personal-layout.js +26 -0
- package/dist/plugins/schema/personal-layout.js.map +1 -0
- package/dist/plugins/schema/plugin/execution.d.ts +843 -44
- package/dist/plugins/schema/plugin/execution.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/execution.js +2 -2
- package/dist/plugins/schema/plugin/execution.js.map +1 -1
- package/dist/plugins/schema/plugin/plugin.d.ts +802 -39
- package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/plugin.js +82 -6
- package/dist/plugins/schema/plugin/plugin.js.map +1 -1
- package/dist/plugins/schema/plugin/publishing.d.ts +121 -68
- package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -1
- package/dist/plugins/schema/plugin/publishing.js +2 -0
- package/dist/plugins/schema/plugin/publishing.js.map +1 -1
- package/dist/plugins/schema/plugin-publishing.d.ts +68 -68
- package/dist/plugins/schema/plugin-sdk/index.d.ts +2 -1
- package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
- package/dist/plugins/schema/plugin-sdk/index.js +2 -1
- package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
- package/dist/plugins/schema/plugin.d.ts +36 -36
- package/dist/plugins/sdk/constants.d.ts +2 -0
- package/dist/plugins/sdk/constants.d.ts.map +1 -0
- package/dist/plugins/sdk/constants.js +6 -0
- package/dist/plugins/sdk/constants.js.map +1 -0
- package/dist/plugins/sdk/define/node.d.ts +15 -0
- package/dist/plugins/sdk/define/node.d.ts.map +1 -0
- package/dist/plugins/sdk/define/node.js +58 -0
- package/dist/plugins/sdk/define/node.js.map +1 -0
- package/dist/plugins/sdk/define-node.d.ts +5 -0
- package/dist/plugins/sdk/define-node.d.ts.map +1 -1
- package/dist/plugins/sdk/define-node.js +1 -1
- package/dist/plugins/sdk/define-node.js.map +1 -1
- package/dist/plugins/sdk/definitions/clients/output.d.ts +3 -0
- package/dist/plugins/sdk/definitions/clients/output.d.ts.map +1 -0
- package/dist/plugins/sdk/definitions/clients/output.js +47 -0
- package/dist/plugins/sdk/definitions/clients/output.js.map +1 -0
- package/dist/plugins/sdk/definitions/compiler/catalog.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/catalog.js +9 -0
- package/dist/plugins/sdk/definitions/compiler/catalog.js.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/index.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/compiler/index.js +59 -2
- package/dist/plugins/sdk/definitions/compiler/index.js.map +1 -1
- package/dist/plugins/sdk/definitions/npm/emit/js.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/npm/emit/js.js +7 -3
- package/dist/plugins/sdk/definitions/npm/emit/js.js.map +1 -1
- package/dist/plugins/sdk/definitions/npm/types.d.ts +35 -2
- package/dist/plugins/sdk/definitions/npm/types.d.ts.map +1 -1
- package/dist/plugins/sdk/definitions/types.d.ts +10 -3
- package/dist/plugins/sdk/definitions/types.d.ts.map +1 -1
- package/dist/plugins/sdk/json/schema.d.ts +13 -0
- package/dist/plugins/sdk/json/schema.d.ts.map +1 -0
- package/dist/plugins/sdk/json/schema.js +102 -0
- package/dist/plugins/sdk/json/schema.js.map +1 -0
- package/dist/plugins/sdk/json-schema.js +13 -0
- package/dist/plugins/sdk/json-schema.js.map +1 -1
- package/dist/plugins/sdk/nodes/index.d.ts +3 -1
- package/dist/plugins/sdk/nodes/index.d.ts.map +1 -1
- package/dist/plugins/sdk/nodes/index.js +5 -0
- package/dist/plugins/sdk/nodes/index.js.map +1 -1
- package/dist/plugins/sdk/plugin/index.d.ts +1 -0
- package/dist/plugins/sdk/plugin/index.d.ts.map +1 -1
- package/dist/plugins/sdk/plugin.d.ts +1 -1
- package/dist/plugins/sdk/plugin.d.ts.map +1 -1
- package/dist/plugins/sdk/plugin.js +2 -2
- package/dist/plugins/sdk/plugin.js.map +1 -1
- package/dist/plugins/sdk/plugins/define/node.d.ts +29 -0
- package/dist/plugins/sdk/plugins/define/node.d.ts.map +1 -0
- package/dist/plugins/sdk/plugins/define/node.js +16 -0
- package/dist/plugins/sdk/plugins/define/node.js.map +1 -0
- package/dist/plugins/sdk/plugins/index.d.ts +5 -4
- package/dist/plugins/sdk/plugins/index.d.ts.map +1 -1
- package/dist/plugins/sdk/plugins/index.js +21 -15
- package/dist/plugins/sdk/plugins/index.js.map +1 -1
- package/dist/plugins/sdk/plugins/types.d.ts +1 -1
- package/dist/plugins/sdk/plugins/types.d.ts.map +1 -1
- package/dist/plugins/sdk/runner.d.ts +3 -7
- package/dist/plugins/sdk/runner.d.ts.map +1 -1
- package/dist/plugins/sdk/runner.js +61 -18
- package/dist/plugins/sdk/runner.js.map +1 -1
- package/dist/plugins/sdk/types.d.ts +115 -0
- package/dist/plugins/sdk/types.d.ts.map +1 -0
- package/dist/plugins/sdk/types.js +3 -0
- package/dist/plugins/sdk/types.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type * from "./gen/types.gen";
|
|
2
2
|
export { CLOUD_API_URL as OCTONODE_API_URL, MCP_URL as OCTONODE_MCP_URL } from "./constants";
|
|
3
3
|
export { createClient, OctonodeClient, type OctonodeClientOptions } from "./octonode-client";
|
|
4
|
+
export type { DataTableScope, DataTable, DataTableRow, DataTableRows, ListRowsOptions, UpdateTableInput, UpdateRowInput, DataTableSqlResult, } from "./data-tables/types";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,YAAY,EACV,cAAc,EACd,SAAS,EACT,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,10 +1,97 @@
|
|
|
1
1
|
import { OctonodeApi } from "./gen/sdk.gen";
|
|
2
|
+
import type { DataTableScope } from "./data-tables/types";
|
|
2
3
|
export interface OctonodeClientOptions {
|
|
3
4
|
url?: string;
|
|
4
5
|
headers?: HeadersInit;
|
|
5
6
|
}
|
|
6
7
|
export declare class OctonodeClient extends OctonodeApi {
|
|
7
8
|
constructor(token: string, url?: string, headers?: HeadersInit);
|
|
9
|
+
table(tableId: string, scope: DataTableScope): {
|
|
10
|
+
get: () => Promise<{
|
|
11
|
+
id: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
storageMode: "sqlite" | "kv_blob";
|
|
17
|
+
columns: Array<{
|
|
18
|
+
id: string;
|
|
19
|
+
key: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: "text" | "number" | "boolean" | "date" | "datetime" | "json";
|
|
22
|
+
required: boolean;
|
|
23
|
+
defaultValue?: unknown;
|
|
24
|
+
position: number;
|
|
25
|
+
}>;
|
|
26
|
+
rowCount: number;
|
|
27
|
+
schemaVersion: number;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
updatedAt: number;
|
|
30
|
+
}>;
|
|
31
|
+
update: (body: import("./data-tables/types").UpdateTableInput) => Promise<{
|
|
32
|
+
id: string;
|
|
33
|
+
projectId: string;
|
|
34
|
+
name: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
storageMode: "sqlite" | "kv_blob";
|
|
38
|
+
columns: Array<{
|
|
39
|
+
id: string;
|
|
40
|
+
key: string;
|
|
41
|
+
name: string;
|
|
42
|
+
type: "text" | "number" | "boolean" | "date" | "datetime" | "json";
|
|
43
|
+
required: boolean;
|
|
44
|
+
defaultValue?: unknown;
|
|
45
|
+
position: number;
|
|
46
|
+
}>;
|
|
47
|
+
rowCount: number;
|
|
48
|
+
schemaVersion: number;
|
|
49
|
+
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
}>;
|
|
52
|
+
delete: () => Promise<{
|
|
53
|
+
ok: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
rows: {
|
|
56
|
+
list: (query?: import("./data-tables/types").ListRowsOptions) => Promise<{
|
|
57
|
+
rows: Array<{
|
|
58
|
+
id: string;
|
|
59
|
+
tableId: string;
|
|
60
|
+
data: {
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
version: number;
|
|
64
|
+
createdAt: number;
|
|
65
|
+
updatedAt: number;
|
|
66
|
+
}>;
|
|
67
|
+
nextCursor?: string;
|
|
68
|
+
}>;
|
|
69
|
+
insert: (data: import("./data-tables/types").DataTableRow["data"]) => Promise<{
|
|
70
|
+
id: string;
|
|
71
|
+
tableId: string;
|
|
72
|
+
data: {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
};
|
|
75
|
+
version: number;
|
|
76
|
+
createdAt: number;
|
|
77
|
+
updatedAt: number;
|
|
78
|
+
}>;
|
|
79
|
+
update: (rowId: string, body: import("./data-tables/types").UpdateRowInput) => Promise<{
|
|
80
|
+
id: string;
|
|
81
|
+
tableId: string;
|
|
82
|
+
data: {
|
|
83
|
+
[key: string]: unknown;
|
|
84
|
+
};
|
|
85
|
+
version: number;
|
|
86
|
+
createdAt: number;
|
|
87
|
+
updatedAt: number;
|
|
88
|
+
}>;
|
|
89
|
+
delete: (rowId: string) => Promise<{
|
|
90
|
+
ok: boolean;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
sql: (sql: string) => Promise<import("./data-tables/types").DataTableSqlResult>;
|
|
94
|
+
};
|
|
8
95
|
configureOctonode(token: string, url?: string, headers?: HeadersInit): void;
|
|
9
96
|
}
|
|
10
97
|
export declare function createClient(token: string, options?: OctonodeClientOptions): OctonodeClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"octonode-client.d.ts","sourceRoot":"","sources":["../src/octonode-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"octonode-client.d.ts","sourceRoot":"","sources":["../src/octonode-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,qBAAa,cAAe,SAAQ,WAAW;gBACjC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW;IAK9D,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc;;;;;;;;;;;;;;4BAuBoujF,CAAC;;;;;;;;;;;;;;;;;;;;;4BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAnBjxjF,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAgB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI;CAcnF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,cAAc,CAE/F"}
|
package/dist/octonode-client.js
CHANGED
|
@@ -4,12 +4,16 @@ exports.OctonodeClient = void 0;
|
|
|
4
4
|
exports.createClient = createClient;
|
|
5
5
|
const client_1 = require("./gen/client");
|
|
6
6
|
const sdk_gen_1 = require("./gen/sdk.gen");
|
|
7
|
+
const table_1 = require("./data-tables/table");
|
|
7
8
|
const constants_1 = require("./constants");
|
|
8
9
|
class OctonodeClient extends sdk_gen_1.OctonodeApi {
|
|
9
10
|
constructor(token, url, headers) {
|
|
10
11
|
super({ client: (0, client_1.createClient)({ throwOnError: true }) });
|
|
11
12
|
this.configureOctonode(token, url, headers);
|
|
12
13
|
}
|
|
14
|
+
table(tableId, scope) {
|
|
15
|
+
return (0, table_1.dataTable)(this.client, tableId, scope);
|
|
16
|
+
}
|
|
13
17
|
configureOctonode(token, url = constants_1.CLOUD_API_URL, headers) {
|
|
14
18
|
if (!token.trim())
|
|
15
19
|
throw new Error("token is required");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"octonode-client.js","sourceRoot":"","sources":["../src/octonode-client.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"octonode-client.js","sourceRoot":"","sources":["../src/octonode-client.ts"],"names":[],"mappings":";;;AAqCA,oCAEC;AAvCD,yCAAgE;AAChE,2CAA4C;AAC5C,+CAAgD;AAEhD,2CAA4C;AAO5C,MAAa,cAAe,SAAQ,qBAAW;IAC7C,YAAY,KAAa,EAAE,GAAY,EAAE,OAAqB;QAC5D,KAAK,CAAC,EAAE,MAAM,EAAE,IAAA,qBAAgB,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,KAAqB;QAC1C,OAAO,IAAA,iBAAS,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,KAAa,EAAE,GAAG,GAAG,yBAAa,EAAE,OAAqB;QACzE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YAClE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QACD,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,cAAc,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,KAAK,EAAE,CAAC,CAAC;QAEvD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YACpB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;YACxC,OAAO,EAAE,cAAc;SACxB,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,wCAwBC;AAED,SAAgB,YAAY,CAAC,KAAa,EAAE,UAAiC,EAAE;IAC7E,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const APP_VIEW_TARGETS: readonly ["app.page", "workspace.block", "shell.panel", "shell.dock", "project.tab", "project.overview.block", "workflow.tab", "workflow.inspector.block", "node.view", "node.inspector.tab", "node.inspector.block", "task.space.view", "task.details.tab", "task.details.block", "task.card.badge", "document.tab", "document.panel", "editor.panel", "git.diff.panel", "table.view", "execution.details.block", "app.settings.section", "project.settings.section"];
|
|
3
|
+
export declare const APP_ACTION_TARGETS: readonly ["project.action", "file.action", "editor.action", "editor.selection-action", "workflow.action", "workflow.canvas.action", "workflow.selection-action", "workflow.edge.action", "node.action", "task.space.action", "task.action", "document.action", "document.selection-action", "document.block.action", "document.slash-command", "document.review.action", "git.diff.action", "table.action", "execution.action"];
|
|
4
|
+
export declare const APP_LAUNCHER_TARGETS: readonly ["shell.navbar.action", "shell.navigation.item", "shell.command"];
|
|
5
|
+
export declare const AppViewTarget: z.ZodEnum<["app.page", "workspace.block", "shell.panel", "shell.dock", "project.tab", "project.overview.block", "workflow.tab", "workflow.inspector.block", "node.view", "node.inspector.tab", "node.inspector.block", "task.space.view", "task.details.tab", "task.details.block", "task.card.badge", "document.tab", "document.panel", "editor.panel", "git.diff.panel", "table.view", "execution.details.block", "app.settings.section", "project.settings.section"]>;
|
|
6
|
+
export declare const AppActionTarget: z.ZodEnum<["project.action", "file.action", "editor.action", "editor.selection-action", "workflow.action", "workflow.canvas.action", "workflow.selection-action", "workflow.edge.action", "node.action", "task.space.action", "task.action", "document.action", "document.selection-action", "document.block.action", "document.slash-command", "document.review.action", "git.diff.action", "table.action", "execution.action"]>;
|
|
7
|
+
export declare const AppContributionTarget: z.ZodEnum<["app.page", "workspace.block", "shell.panel", "shell.dock", "project.tab", "project.overview.block", "workflow.tab", "workflow.inspector.block", "node.view", "node.inspector.tab", "node.inspector.block", "task.space.view", "task.details.tab", "task.details.block", "task.card.badge", "document.tab", "document.panel", "editor.panel", "git.diff.panel", "table.view", "execution.details.block", "app.settings.section", "project.settings.section", "project.action", "file.action", "editor.action", "editor.selection-action", "workflow.action", "workflow.canvas.action", "workflow.selection-action", "workflow.edge.action", "node.action", "task.space.action", "task.action", "document.action", "document.selection-action", "document.block.action", "document.slash-command", "document.review.action", "git.diff.action", "table.action", "execution.action"]>;
|
|
8
|
+
export type AppContributionTarget = z.infer<typeof AppContributionTarget>;
|
|
9
|
+
export declare const appContributionId: z.ZodString;
|
|
10
|
+
export declare const appContributionTitle: z.ZodString;
|
|
11
|
+
export declare const appContributionWhen: z.ZodObject<{
|
|
12
|
+
hasProject: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
hasSelection: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
nodeKind: z.ZodOptional<z.ZodString>;
|
|
16
|
+
documentFormat: z.ZodOptional<z.ZodEnum<["markdown", "html", "latex"]>>;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
hasProject?: boolean | undefined;
|
|
19
|
+
hasSelection?: boolean | undefined;
|
|
20
|
+
readOnly?: boolean | undefined;
|
|
21
|
+
nodeKind?: string | undefined;
|
|
22
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
hasProject?: boolean | undefined;
|
|
25
|
+
hasSelection?: boolean | undefined;
|
|
26
|
+
readOnly?: boolean | undefined;
|
|
27
|
+
nodeKind?: string | undefined;
|
|
28
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const appLauncherSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
target: z.ZodEnum<["shell.navbar.action", "shell.navigation.item", "shell.command"]>;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
icon: z.ZodOptional<z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>>;
|
|
35
|
+
opens: z.ZodString;
|
|
36
|
+
}, "strict", z.ZodTypeAny, {
|
|
37
|
+
id: string;
|
|
38
|
+
target: "shell.navbar.action" | "shell.navigation.item" | "shell.command";
|
|
39
|
+
title: string;
|
|
40
|
+
opens: string;
|
|
41
|
+
icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "git-branch" | "git-merge" | "group" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "repeat" | "replace" | "ruler" | "scan-eye" | "scissors" | "search" | "server-cog" | "settings" | "sigma" | "split" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "type" | "typescript" | "ungroup" | "variable" | "wand" | "wave" | "webhook" | "workflow" | "x" | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
target: "shell.navbar.action" | "shell.navigation.item" | "shell.command";
|
|
45
|
+
title: string;
|
|
46
|
+
opens: string;
|
|
47
|
+
icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "git-branch" | "git-merge" | "group" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "repeat" | "replace" | "ruler" | "scan-eye" | "scissors" | "search" | "server-cog" | "settings" | "sigma" | "split" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "type" | "typescript" | "ungroup" | "variable" | "wand" | "wave" | "webhook" | "workflow" | "x" | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const appContributionSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
target: z.ZodEnum<["app.page", "workspace.block", "shell.panel", "shell.dock", "project.tab", "project.overview.block", "workflow.tab", "workflow.inspector.block", "node.view", "node.inspector.tab", "node.inspector.block", "task.space.view", "task.details.tab", "task.details.block", "task.card.badge", "document.tab", "document.panel", "editor.panel", "git.diff.panel", "table.view", "execution.details.block", "app.settings.section", "project.settings.section", "project.action", "file.action", "editor.action", "editor.selection-action", "workflow.action", "workflow.canvas.action", "workflow.selection-action", "workflow.edge.action", "node.action", "task.space.action", "task.action", "document.action", "document.selection-action", "document.block.action", "document.slash-command", "document.review.action", "git.diff.action", "table.action", "execution.action"]>;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
icon: z.ZodOptional<z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>>;
|
|
54
|
+
path: z.ZodString;
|
|
55
|
+
sha256: z.ZodString;
|
|
56
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
hasProject: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
hasSelection: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
nodeKind: z.ZodOptional<z.ZodString>;
|
|
61
|
+
documentFormat: z.ZodOptional<z.ZodEnum<["markdown", "html", "latex"]>>;
|
|
62
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
hasProject?: boolean | undefined;
|
|
64
|
+
hasSelection?: boolean | undefined;
|
|
65
|
+
readOnly?: boolean | undefined;
|
|
66
|
+
nodeKind?: string | undefined;
|
|
67
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
hasProject?: boolean | undefined;
|
|
70
|
+
hasSelection?: boolean | undefined;
|
|
71
|
+
readOnly?: boolean | undefined;
|
|
72
|
+
nodeKind?: string | undefined;
|
|
73
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
74
|
+
}>>;
|
|
75
|
+
}, "strict", z.ZodTypeAny, {
|
|
76
|
+
path: string;
|
|
77
|
+
id: string;
|
|
78
|
+
target: "app.page" | "workspace.block" | "shell.panel" | "shell.dock" | "project.tab" | "project.overview.block" | "workflow.tab" | "workflow.inspector.block" | "node.view" | "node.inspector.tab" | "node.inspector.block" | "task.space.view" | "task.details.tab" | "task.details.block" | "task.card.badge" | "document.tab" | "document.panel" | "editor.panel" | "git.diff.panel" | "table.view" | "execution.details.block" | "app.settings.section" | "project.settings.section" | "project.action" | "file.action" | "editor.action" | "editor.selection-action" | "workflow.action" | "workflow.canvas.action" | "workflow.selection-action" | "workflow.edge.action" | "node.action" | "task.space.action" | "task.action" | "document.action" | "document.selection-action" | "document.block.action" | "document.slash-command" | "document.review.action" | "git.diff.action" | "table.action" | "execution.action";
|
|
79
|
+
title: string;
|
|
80
|
+
sha256: string;
|
|
81
|
+
icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "git-branch" | "git-merge" | "group" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "repeat" | "replace" | "ruler" | "scan-eye" | "scissors" | "search" | "server-cog" | "settings" | "sigma" | "split" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "type" | "typescript" | "ungroup" | "variable" | "wand" | "wave" | "webhook" | "workflow" | "x" | undefined;
|
|
82
|
+
when?: {
|
|
83
|
+
hasProject?: boolean | undefined;
|
|
84
|
+
hasSelection?: boolean | undefined;
|
|
85
|
+
readOnly?: boolean | undefined;
|
|
86
|
+
nodeKind?: string | undefined;
|
|
87
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
path: string;
|
|
91
|
+
id: string;
|
|
92
|
+
target: "app.page" | "workspace.block" | "shell.panel" | "shell.dock" | "project.tab" | "project.overview.block" | "workflow.tab" | "workflow.inspector.block" | "node.view" | "node.inspector.tab" | "node.inspector.block" | "task.space.view" | "task.details.tab" | "task.details.block" | "task.card.badge" | "document.tab" | "document.panel" | "editor.panel" | "git.diff.panel" | "table.view" | "execution.details.block" | "app.settings.section" | "project.settings.section" | "project.action" | "file.action" | "editor.action" | "editor.selection-action" | "workflow.action" | "workflow.canvas.action" | "workflow.selection-action" | "workflow.edge.action" | "node.action" | "task.space.action" | "task.action" | "document.action" | "document.selection-action" | "document.block.action" | "document.slash-command" | "document.review.action" | "git.diff.action" | "table.action" | "execution.action";
|
|
93
|
+
title: string;
|
|
94
|
+
sha256: string;
|
|
95
|
+
icon?: "function" | "arrow-up-down" | "binary" | "bomb" | "boxes" | "braces" | "calculator" | "calendar" | "camera" | "clock" | "code" | "copy-x" | "database" | "dices" | "filter" | "flag" | "flask" | "git-branch" | "git-merge" | "group" | "hook" | "list-filter" | "merge" | "octagon-x" | "package" | "package-x" | "pencil" | "play" | "regex" | "repeat" | "replace" | "ruler" | "scan-eye" | "scissors" | "search" | "server-cog" | "settings" | "sigma" | "split" | "terminal" | "test-tube" | "text-cursor-input" | "ticket" | "truck" | "type" | "typescript" | "ungroup" | "variable" | "wand" | "wave" | "webhook" | "workflow" | "x" | undefined;
|
|
96
|
+
when?: {
|
|
97
|
+
hasProject?: boolean | undefined;
|
|
98
|
+
hasSelection?: boolean | undefined;
|
|
99
|
+
readOnly?: boolean | undefined;
|
|
100
|
+
nodeKind?: string | undefined;
|
|
101
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const appContributionContextSchema: z.ZodObject<{
|
|
105
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
nodeKind: z.ZodOptional<z.ZodString>;
|
|
110
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
112
|
+
taskSpaceId: z.ZodOptional<z.ZodString>;
|
|
113
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
115
|
+
documentFormat: z.ZodOptional<z.ZodEnum<["markdown", "html", "latex"]>>;
|
|
116
|
+
tableId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
rowId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
119
|
+
revision: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
120
|
+
draftRevision: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
selection: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
122
|
+
start: z.ZodNumber;
|
|
123
|
+
end: z.ZodNumber;
|
|
124
|
+
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
start: number;
|
|
126
|
+
end: number;
|
|
127
|
+
}, {
|
|
128
|
+
start: number;
|
|
129
|
+
end: number;
|
|
130
|
+
}>, {
|
|
131
|
+
start: number;
|
|
132
|
+
end: number;
|
|
133
|
+
}, {
|
|
134
|
+
start: number;
|
|
135
|
+
end: number;
|
|
136
|
+
}>>;
|
|
137
|
+
selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
138
|
+
canvas: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
x: z.ZodNumber;
|
|
140
|
+
y: z.ZodNumber;
|
|
141
|
+
}, "strict", z.ZodTypeAny, {
|
|
142
|
+
x: number;
|
|
143
|
+
y: number;
|
|
144
|
+
}, {
|
|
145
|
+
x: number;
|
|
146
|
+
y: number;
|
|
147
|
+
}>>;
|
|
148
|
+
readOnly: z.ZodDefault<z.ZodBoolean>;
|
|
149
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
itemId: z.ZodString;
|
|
151
|
+
taskSpaceId: z.ZodString;
|
|
152
|
+
revision: z.ZodNumber;
|
|
153
|
+
}, "strict", z.ZodTypeAny, {
|
|
154
|
+
taskSpaceId: string;
|
|
155
|
+
itemId: string;
|
|
156
|
+
revision: number;
|
|
157
|
+
}, {
|
|
158
|
+
taskSpaceId: string;
|
|
159
|
+
itemId: string;
|
|
160
|
+
revision: number;
|
|
161
|
+
}>, "many">>;
|
|
162
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
165
|
+
label: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, "strict", z.ZodTypeAny, {
|
|
167
|
+
id: string;
|
|
168
|
+
label?: string | undefined;
|
|
169
|
+
kind?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
id: string;
|
|
172
|
+
label?: string | undefined;
|
|
173
|
+
kind?: string | undefined;
|
|
174
|
+
}>, "many">>;
|
|
175
|
+
}, "strict", z.ZodTypeAny, {
|
|
176
|
+
readOnly: boolean;
|
|
177
|
+
nodes?: {
|
|
178
|
+
id: string;
|
|
179
|
+
label?: string | undefined;
|
|
180
|
+
kind?: string | undefined;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
workflowId?: string | undefined;
|
|
183
|
+
projectId?: string | undefined;
|
|
184
|
+
tableId?: string | undefined;
|
|
185
|
+
rowId?: string | undefined;
|
|
186
|
+
nodeId?: string | undefined;
|
|
187
|
+
nodeKind?: string | undefined;
|
|
188
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
189
|
+
worktreeId?: string | undefined;
|
|
190
|
+
edgeId?: string | undefined;
|
|
191
|
+
executionId?: string | undefined;
|
|
192
|
+
taskSpaceId?: string | undefined;
|
|
193
|
+
itemId?: string | undefined;
|
|
194
|
+
documentId?: string | undefined;
|
|
195
|
+
filePath?: string | undefined;
|
|
196
|
+
revision?: string | number | undefined;
|
|
197
|
+
draftRevision?: number | undefined;
|
|
198
|
+
selection?: {
|
|
199
|
+
start: number;
|
|
200
|
+
end: number;
|
|
201
|
+
} | undefined;
|
|
202
|
+
selectedIds?: string[] | undefined;
|
|
203
|
+
canvas?: {
|
|
204
|
+
x: number;
|
|
205
|
+
y: number;
|
|
206
|
+
} | undefined;
|
|
207
|
+
tasks?: {
|
|
208
|
+
taskSpaceId: string;
|
|
209
|
+
itemId: string;
|
|
210
|
+
revision: number;
|
|
211
|
+
}[] | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
nodes?: {
|
|
214
|
+
id: string;
|
|
215
|
+
label?: string | undefined;
|
|
216
|
+
kind?: string | undefined;
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
workflowId?: string | undefined;
|
|
219
|
+
projectId?: string | undefined;
|
|
220
|
+
tableId?: string | undefined;
|
|
221
|
+
rowId?: string | undefined;
|
|
222
|
+
nodeId?: string | undefined;
|
|
223
|
+
readOnly?: boolean | undefined;
|
|
224
|
+
nodeKind?: string | undefined;
|
|
225
|
+
documentFormat?: "markdown" | "html" | "latex" | undefined;
|
|
226
|
+
worktreeId?: string | undefined;
|
|
227
|
+
edgeId?: string | undefined;
|
|
228
|
+
executionId?: string | undefined;
|
|
229
|
+
taskSpaceId?: string | undefined;
|
|
230
|
+
itemId?: string | undefined;
|
|
231
|
+
documentId?: string | undefined;
|
|
232
|
+
filePath?: string | undefined;
|
|
233
|
+
revision?: string | number | undefined;
|
|
234
|
+
draftRevision?: number | undefined;
|
|
235
|
+
selection?: {
|
|
236
|
+
start: number;
|
|
237
|
+
end: number;
|
|
238
|
+
} | undefined;
|
|
239
|
+
selectedIds?: string[] | undefined;
|
|
240
|
+
canvas?: {
|
|
241
|
+
x: number;
|
|
242
|
+
y: number;
|
|
243
|
+
} | undefined;
|
|
244
|
+
tasks?: {
|
|
245
|
+
taskSpaceId: string;
|
|
246
|
+
itemId: string;
|
|
247
|
+
revision: number;
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
export type AppContributionContext = z.infer<typeof appContributionContextSchema>;
|
|
251
|
+
export type AppContribution = z.infer<typeof appContributionSchema>;
|
|
252
|
+
export type AppLauncher = z.infer<typeof appLauncherSchema>;
|
|
253
|
+
export declare const appHostRequestSchema: z.ZodDiscriminatedUnion<"command", [z.ZodObject<{
|
|
254
|
+
command: z.ZodLiteral<"panel.open">;
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
}, "strict", z.ZodTypeAny, {
|
|
257
|
+
id: string;
|
|
258
|
+
command: "panel.open";
|
|
259
|
+
}, {
|
|
260
|
+
id: string;
|
|
261
|
+
command: "panel.open";
|
|
262
|
+
}>, z.ZodObject<{
|
|
263
|
+
command: z.ZodLiteral<"assistant.open">;
|
|
264
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, "strict", z.ZodTypeAny, {
|
|
266
|
+
command: "assistant.open";
|
|
267
|
+
suggestion?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
command: "assistant.open";
|
|
270
|
+
suggestion?: string | undefined;
|
|
271
|
+
}>, z.ZodObject<{
|
|
272
|
+
command: z.ZodLiteral<"layout.list">;
|
|
273
|
+
}, "strict", z.ZodTypeAny, {
|
|
274
|
+
command: "layout.list";
|
|
275
|
+
}, {
|
|
276
|
+
command: "layout.list";
|
|
277
|
+
}>, z.ZodObject<{
|
|
278
|
+
command: z.ZodLiteral<"layout.undo">;
|
|
279
|
+
scope: z.ZodString;
|
|
280
|
+
revision: z.ZodString;
|
|
281
|
+
}, "strict", z.ZodTypeAny, {
|
|
282
|
+
scope: string;
|
|
283
|
+
revision: string;
|
|
284
|
+
command: "layout.undo";
|
|
285
|
+
}, {
|
|
286
|
+
scope: string;
|
|
287
|
+
revision: string;
|
|
288
|
+
command: "layout.undo";
|
|
289
|
+
}>, z.ZodObject<{
|
|
290
|
+
command: z.ZodLiteral<"layout.update">;
|
|
291
|
+
scope: z.ZodString;
|
|
292
|
+
revision: z.ZodString;
|
|
293
|
+
items: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
294
|
+
id: z.ZodEffects<z.ZodString, string, string>;
|
|
295
|
+
label: z.ZodOptional<z.ZodString>;
|
|
296
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
}, "strict", z.ZodTypeAny, {
|
|
298
|
+
id: string;
|
|
299
|
+
pinned?: boolean | undefined;
|
|
300
|
+
label?: string | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
id: string;
|
|
303
|
+
pinned?: boolean | undefined;
|
|
304
|
+
label?: string | undefined;
|
|
305
|
+
}>, "many">, {
|
|
306
|
+
id: string;
|
|
307
|
+
pinned?: boolean | undefined;
|
|
308
|
+
label?: string | undefined;
|
|
309
|
+
}[], {
|
|
310
|
+
id: string;
|
|
311
|
+
pinned?: boolean | undefined;
|
|
312
|
+
label?: string | undefined;
|
|
313
|
+
}[]>;
|
|
314
|
+
}, "strict", z.ZodTypeAny, {
|
|
315
|
+
scope: string;
|
|
316
|
+
revision: string;
|
|
317
|
+
command: "layout.update";
|
|
318
|
+
items: {
|
|
319
|
+
id: string;
|
|
320
|
+
pinned?: boolean | undefined;
|
|
321
|
+
label?: string | undefined;
|
|
322
|
+
}[];
|
|
323
|
+
}, {
|
|
324
|
+
scope: string;
|
|
325
|
+
revision: string;
|
|
326
|
+
command: "layout.update";
|
|
327
|
+
items: {
|
|
328
|
+
id: string;
|
|
329
|
+
pinned?: boolean | undefined;
|
|
330
|
+
label?: string | undefined;
|
|
331
|
+
}[];
|
|
332
|
+
}>, z.ZodObject<{
|
|
333
|
+
command: z.ZodLiteral<"edit.propose">;
|
|
334
|
+
resource: z.ZodEnum<["file", "document"]>;
|
|
335
|
+
baseRevision: z.ZodString;
|
|
336
|
+
draftRevision: z.ZodNumber;
|
|
337
|
+
content: z.ZodString;
|
|
338
|
+
mode: z.ZodEnum<["append", "replace", "replace-selection"]>;
|
|
339
|
+
}, "strict", z.ZodTypeAny, {
|
|
340
|
+
mode: "replace" | "append" | "replace-selection";
|
|
341
|
+
draftRevision: number;
|
|
342
|
+
command: "edit.propose";
|
|
343
|
+
resource: "file" | "document";
|
|
344
|
+
baseRevision: string;
|
|
345
|
+
content: string;
|
|
346
|
+
}, {
|
|
347
|
+
mode: "replace" | "append" | "replace-selection";
|
|
348
|
+
draftRevision: number;
|
|
349
|
+
command: "edit.propose";
|
|
350
|
+
resource: "file" | "document";
|
|
351
|
+
baseRevision: string;
|
|
352
|
+
content: string;
|
|
353
|
+
}>]>;
|
|
354
|
+
export type AppHostRequest = z.infer<typeof appHostRequestSchema>;
|
|
355
|
+
//# sourceMappingURL=contributions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contributions.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/app/contributions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB,wcAwBnB,CAAC;AACX,eAAO,MAAM,kBAAkB,iaAoBrB,CAAC;AACX,eAAO,MAAM,oBAAoB,4EAA6E,CAAC;AAC/G,eAAO,MAAM,aAAa,0cAA2B,CAAC;AACtD,eAAO,MAAM,eAAe,maAA6B,CAAC;AAC1D,eAAO,MAAM,qBAAqB,g2BAAuD,CAAC;AAC1F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,aAGnB,CAAC;AACZ,eAAO,MAAM,oBAAoB,aAAoC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AACZ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAQnB,CAAC;AACZ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAavB,CAAC;AACZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmD9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmC/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|