@zudello/modelcontextprotocol 1.0.0 → 1.1.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 +115 -512
- package/dist/services/zudello/admin.d.ts +124 -74
- package/dist/services/zudello/admin.d.ts.map +1 -1
- package/dist/services/zudello/admin.js +443 -112
- package/dist/services/zudello/admin.js.map +1 -1
- package/dist/services/zudello/document-context.js +2 -2
- package/dist/services/zudello/document-context.js.map +1 -1
- package/dist/services/zudello/inboxes.d.ts +88 -7
- package/dist/services/zudello/inboxes.d.ts.map +1 -1
- package/dist/services/zudello/inboxes.js +317 -34
- package/dist/services/zudello/inboxes.js.map +1 -1
- package/dist/services/zudello/users.d.ts +36 -6
- package/dist/services/zudello/users.d.ts.map +1 -1
- package/dist/services/zudello/users.js +183 -82
- package/dist/services/zudello/users.js.map +1 -1
- package/dist/tools/admin/datasets/create-dataset.d.ts +35 -7
- package/dist/tools/admin/datasets/create-dataset.d.ts.map +1 -1
- package/dist/tools/admin/datasets/create-dataset.js +25 -18
- package/dist/tools/admin/datasets/create-dataset.js.map +1 -1
- package/dist/tools/admin/datasets/get-dataset.d.ts +1 -1
- package/dist/tools/admin/datasets/list-datasets.d.ts +2 -4
- package/dist/tools/admin/datasets/list-datasets.d.ts.map +1 -1
- package/dist/tools/admin/datasets/list-datasets.js +11 -8
- package/dist/tools/admin/datasets/list-datasets.js.map +1 -1
- package/dist/tools/admin/datasets/update-dataset.d.ts +39 -6
- package/dist/tools/admin/datasets/update-dataset.d.ts.map +1 -1
- package/dist/tools/admin/datasets/update-dataset.js +27 -15
- package/dist/tools/admin/datasets/update-dataset.js.map +1 -1
- package/dist/tools/admin/fields/create-field.d.ts +7 -17
- package/dist/tools/admin/fields/create-field.d.ts.map +1 -1
- package/dist/tools/admin/fields/create-field.js +15 -26
- package/dist/tools/admin/fields/create-field.js.map +1 -1
- package/dist/tools/admin/fields/get-field.d.ts +1 -1
- package/dist/tools/admin/fields/list-fields.d.ts +3 -5
- package/dist/tools/admin/fields/list-fields.d.ts.map +1 -1
- package/dist/tools/admin/fields/list-fields.js +14 -12
- package/dist/tools/admin/fields/list-fields.js.map +1 -1
- package/dist/tools/admin/fields/update-field.d.ts +11 -6
- package/dist/tools/admin/fields/update-field.d.ts.map +1 -1
- package/dist/tools/admin/fields/update-field.js +20 -16
- package/dist/tools/admin/fields/update-field.js.map +1 -1
- package/dist/tools/admin/quick-actions/create-quick-action.d.ts +9 -9
- package/dist/tools/admin/quick-actions/create-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/create-quick-action.js +18 -18
- package/dist/tools/admin/quick-actions/create-quick-action.js.map +1 -1
- package/dist/tools/admin/quick-actions/get-quick-action.d.ts +1 -1
- package/dist/tools/admin/quick-actions/list-quick-actions.d.ts +4 -3
- package/dist/tools/admin/quick-actions/list-quick-actions.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/list-quick-actions.js +11 -10
- package/dist/tools/admin/quick-actions/list-quick-actions.js.map +1 -1
- package/dist/tools/admin/quick-actions/trigger-quick-action.d.ts +4 -6
- package/dist/tools/admin/quick-actions/trigger-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/trigger-quick-action.js +15 -9
- package/dist/tools/admin/quick-actions/trigger-quick-action.js.map +1 -1
- package/dist/tools/admin/quick-actions/update-quick-action.d.ts +11 -6
- package/dist/tools/admin/quick-actions/update-quick-action.d.ts.map +1 -1
- package/dist/tools/admin/quick-actions/update-quick-action.js +19 -14
- package/dist/tools/admin/quick-actions/update-quick-action.js.map +1 -1
- package/dist/tools/inboxes/create-inbox-template.d.ts +1 -1
- package/dist/tools/inboxes/create-inbox.d.ts +1 -1
- package/dist/tools/inboxes/fetch-inbox.d.ts +1 -1
- package/dist/tools/inboxes/list-inbox-templates.d.ts +1 -1
- package/dist/tools/inboxes/list-inboxes.d.ts +1 -1
- package/dist/tools/inboxes/update-inbox-template.d.ts +1 -1
- package/dist/tools/inboxes/update-inbox.d.ts +1 -1
- package/dist/tools/inboxes/update-inbox.d.ts.map +1 -1
- package/dist/tools/inboxes/update-inbox.js +3 -2
- package/dist/tools/inboxes/update-inbox.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { logger } from "../../../utils/logger.js";
|
|
2
|
-
import {
|
|
2
|
+
import { updateZudelloFieldSettings } from "../../../services/zudello/admin.js";
|
|
3
3
|
export const zudelloUpdateField = {
|
|
4
4
|
name: "zudelloUpdateField",
|
|
5
5
|
description: `Update an existing field configuration.
|
|
6
6
|
|
|
7
|
-
Modify field label,
|
|
8
|
-
Changes affect how the field is displayed and
|
|
7
|
+
Modify field path, label, model_name, or context.
|
|
8
|
+
Changes affect how the field is displayed and used.`,
|
|
9
9
|
inputSchema: {
|
|
10
10
|
type: "object",
|
|
11
11
|
properties: {
|
|
@@ -13,29 +13,33 @@ Changes affect how the field is displayed and validated.`,
|
|
|
13
13
|
type: "string",
|
|
14
14
|
description: "UUID of the field to update"
|
|
15
15
|
},
|
|
16
|
+
path: {
|
|
17
|
+
type: "string",
|
|
18
|
+
description: "Field path (internal identifier)"
|
|
19
|
+
},
|
|
16
20
|
label: {
|
|
17
21
|
type: "string",
|
|
18
|
-
description: "
|
|
22
|
+
description: "Display label"
|
|
19
23
|
},
|
|
20
|
-
|
|
21
|
-
type: "
|
|
22
|
-
description: "
|
|
24
|
+
model_name: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Model name this field belongs to"
|
|
23
27
|
},
|
|
24
|
-
|
|
28
|
+
context: {
|
|
25
29
|
type: "object",
|
|
26
|
-
description: "Optional:
|
|
30
|
+
description: "Optional: Module/submodule context mapping"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
|
-
required: ["uuid"]
|
|
33
|
+
required: ["uuid", "path", "label", "model_name"]
|
|
30
34
|
},
|
|
31
35
|
execute: async (input, authContext) => {
|
|
32
36
|
try {
|
|
33
|
-
logger.info("zudelloUpdateField executed", input);
|
|
34
|
-
const response = await
|
|
37
|
+
logger.info("zudelloUpdateField executed", { uuid: input.uuid, path: input.path });
|
|
38
|
+
const response = await updateZudelloFieldSettings(authContext, input.uuid, {
|
|
39
|
+
path: input.path,
|
|
35
40
|
label: input.label,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
41
|
+
model_name: input.model_name,
|
|
42
|
+
}, input.context || {});
|
|
39
43
|
if (!response.success) {
|
|
40
44
|
throw new Error(response.error || "Failed to update field");
|
|
41
45
|
}
|
|
@@ -46,7 +50,7 @@ Changes affect how the field is displayed and validated.`,
|
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
catch (error) {
|
|
49
|
-
logger.error("zudelloUpdateField error", input, error);
|
|
53
|
+
logger.error("zudelloUpdateField error", { uuid: input.uuid }, error);
|
|
50
54
|
return {
|
|
51
55
|
success: false,
|
|
52
56
|
error: error.message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-field.js","sourceRoot":"","sources":["../../../../src/tools/admin/fields/update-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"update-field.js","sourceRoot":"","sources":["../../../../src/tools/admin/fields/update-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE;;;oDAGqC;IAClD,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6BAA6B;aAC3C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;aACh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AC,OAAO;aAChC,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -5,23 +5,23 @@ export declare const zudelloCreateQuickAction: {
|
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: "object";
|
|
7
7
|
properties: {
|
|
8
|
-
|
|
8
|
+
key: {
|
|
9
9
|
type: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
name: {
|
|
13
13
|
type: string;
|
|
14
14
|
description: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
description: {
|
|
17
17
|
type: string;
|
|
18
18
|
description: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
icon: {
|
|
21
21
|
type: string;
|
|
22
22
|
description: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
color: {
|
|
25
25
|
type: string;
|
|
26
26
|
description: string;
|
|
27
27
|
};
|
|
@@ -29,14 +29,14 @@ export declare const zudelloCreateQuickAction: {
|
|
|
29
29
|
required: string[];
|
|
30
30
|
};
|
|
31
31
|
execute: (input: {
|
|
32
|
+
key: string;
|
|
32
33
|
name: string;
|
|
33
|
-
action: string;
|
|
34
|
-
model: string;
|
|
35
34
|
description?: string;
|
|
36
|
-
|
|
35
|
+
icon?: string;
|
|
36
|
+
color?: string;
|
|
37
37
|
}, authContext: AuthContext) => Promise<{
|
|
38
38
|
success: boolean;
|
|
39
|
-
quickAction: import("../../../services/zudello/admin.js").
|
|
39
|
+
quickAction: import("../../../services/zudello/admin.js").ZudelloQuickAction | undefined;
|
|
40
40
|
message: string;
|
|
41
41
|
error?: undefined;
|
|
42
42
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/create-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiC1B;QACL,
|
|
1
|
+
{"version":3,"file":"create-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/create-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiC1B;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,eACY,WAAW;;;;;;;;;;;CA8B3B,CAAC"}
|
|
@@ -5,42 +5,42 @@ export const zudelloCreateQuickAction = {
|
|
|
5
5
|
description: `Create a new quick action.
|
|
6
6
|
|
|
7
7
|
Define a new one-click operation that can be performed on documents.
|
|
8
|
-
|
|
8
|
+
Requires a unique key and name. The key is used to trigger the action via sentences.`,
|
|
9
9
|
inputSchema: {
|
|
10
10
|
type: "object",
|
|
11
11
|
properties: {
|
|
12
|
-
|
|
13
|
-
type: "string",
|
|
14
|
-
description: "Quick action name"
|
|
15
|
-
},
|
|
16
|
-
action: {
|
|
12
|
+
key: {
|
|
17
13
|
type: "string",
|
|
18
|
-
description: "
|
|
14
|
+
description: "Unique key for the quick action (used for triggering)"
|
|
19
15
|
},
|
|
20
|
-
|
|
16
|
+
name: {
|
|
21
17
|
type: "string",
|
|
22
|
-
description: "
|
|
18
|
+
description: "Display name for the quick action"
|
|
23
19
|
},
|
|
24
20
|
description: {
|
|
25
21
|
type: "string",
|
|
26
22
|
description: "Optional: Description of what the action does"
|
|
27
23
|
},
|
|
28
|
-
|
|
29
|
-
type: "
|
|
30
|
-
description: "Optional:
|
|
24
|
+
icon: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Optional: Icon identifier for the action"
|
|
27
|
+
},
|
|
28
|
+
color: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Optional: Color for the action button"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
required: ["
|
|
33
|
+
required: ["key", "name"]
|
|
34
34
|
},
|
|
35
35
|
execute: async (input, authContext) => {
|
|
36
36
|
try {
|
|
37
|
-
logger.info("zudelloCreateQuickAction executed", input);
|
|
37
|
+
logger.info("zudelloCreateQuickAction executed", { key: input.key, name: input.name });
|
|
38
38
|
const response = await createZudelloQuickAction(authContext, {
|
|
39
|
+
key: input.key,
|
|
39
40
|
name: input.name,
|
|
40
|
-
action: input.action,
|
|
41
|
-
model: input.model,
|
|
42
41
|
description: input.description,
|
|
43
|
-
|
|
42
|
+
icon: input.icon,
|
|
43
|
+
color: input.color,
|
|
44
44
|
});
|
|
45
45
|
if (!response.success) {
|
|
46
46
|
throw new Error(response.error || "Failed to create quick action");
|
|
@@ -52,7 +52,7 @@ Specify name, action type, model, and parameters.`,
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
catch (error) {
|
|
55
|
-
logger.error("zudelloCreateQuickAction error", input, error);
|
|
55
|
+
logger.error("zudelloCreateQuickAction error", { key: input.key }, error);
|
|
56
56
|
return {
|
|
57
57
|
success: false,
|
|
58
58
|
error: error.message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/create-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;;
|
|
1
|
+
{"version":3,"file":"create-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/create-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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,QAAQ,CAAC,KAAK,IAAI,+BAA+B,CAAC,CAAC;YACrE,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,QAAQ,CAAC,IAAI;gBAC1B,OAAO,EAAE,iBAAiB,KAAK,CAAC,IAAI,wBAAwB;aAC7D,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,KAAc,CAAC,CAAC;YACnF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAG,KAAe,CAAC,OAAO;aAChC,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -16,7 +16,7 @@ export declare const zudelloGetQuickAction: {
|
|
|
16
16
|
uuid: string;
|
|
17
17
|
}, authContext: AuthContext) => Promise<{
|
|
18
18
|
success: boolean;
|
|
19
|
-
quickAction: import("../../../services/zudello/admin.js").
|
|
19
|
+
quickAction: import("../../../services/zudello/admin.js").ZudelloQuickAction | undefined;
|
|
20
20
|
error?: undefined;
|
|
21
21
|
} | {
|
|
22
22
|
success: boolean;
|
|
@@ -17,11 +17,12 @@ export declare const zudelloListQuickActions: {
|
|
|
17
17
|
success: boolean;
|
|
18
18
|
quickActions: {
|
|
19
19
|
uuid: string;
|
|
20
|
+
key: string;
|
|
20
21
|
name: string;
|
|
21
22
|
description: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
icon: string | undefined;
|
|
24
|
+
color: string | undefined;
|
|
25
|
+
context: Record<string, string[]> | undefined;
|
|
25
26
|
}[];
|
|
26
27
|
count: number;
|
|
27
28
|
error?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-quick-actions.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/list-quick-actions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;qBAgBzB;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,eACZ,WAAW
|
|
1
|
+
{"version":3,"file":"list-quick-actions.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/list-quick-actions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;qBAgBzB;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,eACZ,WAAW;;;;;;;;;;;;;;;;;;;CAmC3B,CAAC"}
|
|
@@ -5,20 +5,20 @@ export const zudelloListQuickActions = {
|
|
|
5
5
|
description: `List all quick action configurations.
|
|
6
6
|
|
|
7
7
|
Quick actions are one-click operations that can be performed on documents.
|
|
8
|
-
Returns action definitions including
|
|
8
|
+
Returns action definitions including key, name, description, and payload.`,
|
|
9
9
|
inputSchema: {
|
|
10
10
|
type: "object",
|
|
11
11
|
properties: {
|
|
12
12
|
model: {
|
|
13
13
|
type: "string",
|
|
14
|
-
description: "Optional: Filter quick actions by model type",
|
|
14
|
+
description: "Optional: Filter quick actions by model type (client-side)",
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
execute: async (input, authContext) => {
|
|
19
19
|
try {
|
|
20
|
-
logger.debug("zudelloListQuickActions executed", input);
|
|
21
|
-
const response = await listZudelloQuickActions(authContext
|
|
20
|
+
logger.debug("zudelloListQuickActions executed", { model: input.model });
|
|
21
|
+
const response = await listZudelloQuickActions(authContext);
|
|
22
22
|
if (!response.success) {
|
|
23
23
|
throw new Error(response.error || "Failed to list quick actions");
|
|
24
24
|
}
|
|
@@ -27,17 +27,18 @@ Returns action definitions including name, model, action type, and parameters.`,
|
|
|
27
27
|
success: true,
|
|
28
28
|
quickActions: actions.map((a) => ({
|
|
29
29
|
uuid: a.uuid,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
key: a.payload?.key,
|
|
31
|
+
name: a.payload?.name,
|
|
32
|
+
description: a.payload?.description,
|
|
33
|
+
icon: a.payload?.icon,
|
|
34
|
+
color: a.payload?.color,
|
|
35
|
+
context: a.context,
|
|
35
36
|
})),
|
|
36
37
|
count: actions.length,
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
catch (error) {
|
|
40
|
-
logger.error("zudelloListQuickActions error", input, error);
|
|
41
|
+
logger.error("zudelloListQuickActions error", { model: input.model }, error);
|
|
41
42
|
return {
|
|
42
43
|
success: false,
|
|
43
44
|
error: error.message,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-quick-actions.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/list-quick-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"list-quick-actions.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/list-quick-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;;0EAG2D;IACxE,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4DAA4D;aAC1E;SACF;KACF;IACD,OAAO,EAAE,KAAK,E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 +24,15 @@ export declare const zudelloTriggerQuickAction: {
|
|
|
24
24
|
resourceUuids: string[];
|
|
25
25
|
}, authContext: AuthContext) => Promise<{
|
|
26
26
|
success: boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
success: boolean;
|
|
30
|
-
message?: string;
|
|
31
|
-
}[];
|
|
27
|
+
succeeded: string[];
|
|
28
|
+
failed: string[];
|
|
32
29
|
summary: string;
|
|
33
30
|
error?: undefined;
|
|
34
31
|
} | {
|
|
35
32
|
success: boolean;
|
|
36
33
|
error: string;
|
|
37
|
-
|
|
34
|
+
succeeded: never[];
|
|
35
|
+
failed: never[];
|
|
38
36
|
summary?: undefined;
|
|
39
37
|
}>;
|
|
40
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/trigger-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;qBA0B3B;QACL,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,eACY,WAAW
|
|
1
|
+
{"version":3,"file":"trigger-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/trigger-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;qBA0B3B;QACL,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,eACY,WAAW;;;;;;;;;;;;;CAqC3B,CAAC"}
|
|
@@ -4,7 +4,7 @@ export const zudelloTriggerQuickAction = {
|
|
|
4
4
|
name: "zudelloTriggerQuickAction",
|
|
5
5
|
description: `Trigger a quick action on one or more resources.
|
|
6
6
|
|
|
7
|
-
Executes the configured action on the specified documents.
|
|
7
|
+
Executes the configured action on the specified documents using the quick action key.
|
|
8
8
|
Returns success status for each resource.
|
|
9
9
|
|
|
10
10
|
CAUTION: Actions execute immediately and may modify multiple documents.`,
|
|
@@ -27,25 +27,31 @@ CAUTION: Actions execute immediately and may modify multiple documents.`,
|
|
|
27
27
|
},
|
|
28
28
|
execute: async (input, authContext) => {
|
|
29
29
|
try {
|
|
30
|
-
logger.info("zudelloTriggerQuickAction executed", input);
|
|
31
|
-
|
|
30
|
+
logger.info("zudelloTriggerQuickAction executed", { uuid: input.uuid, resourceCount: input.resourceUuids.length });
|
|
31
|
+
// The API uses 'key' to trigger, but user provides UUID
|
|
32
|
+
// For now, we'll use the UUID as the key - users may need to provide the actual key
|
|
33
|
+
const response = await triggerZudelloQuickAction(authContext, input.uuid, // Note: This should be the quick action KEY, not UUID
|
|
34
|
+
input.resourceUuids);
|
|
32
35
|
if (!response.success) {
|
|
33
36
|
throw new Error(response.error || "Failed to trigger quick action");
|
|
34
37
|
}
|
|
35
|
-
const
|
|
36
|
-
const successCount =
|
|
38
|
+
const data = response.data;
|
|
39
|
+
const successCount = data?.succeeded?.length || 0;
|
|
40
|
+
const failCount = data?.failed?.length || 0;
|
|
37
41
|
return {
|
|
38
42
|
success: true,
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
succeeded: data?.succeeded || [],
|
|
44
|
+
failed: data?.failed || [],
|
|
45
|
+
summary: `Action triggered on ${input.resourceUuids.length} resource(s). ${successCount} succeeded, ${failCount} failed.`
|
|
41
46
|
};
|
|
42
47
|
}
|
|
43
48
|
catch (error) {
|
|
44
|
-
logger.error("zudelloTriggerQuickAction error", input, error);
|
|
49
|
+
logger.error("zudelloTriggerQuickAction error", { uuid: input.uuid }, error);
|
|
45
50
|
return {
|
|
46
51
|
success: false,
|
|
47
52
|
error: error.message,
|
|
48
|
-
|
|
53
|
+
succeeded: [],
|
|
54
|
+
failed: []
|
|
49
55
|
};
|
|
50
56
|
}
|
|
51
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/trigger-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAG/E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;;;;;wEAKyD;IACtE,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,8CAA8C;gBAC3D,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC;KACpC;IACD,OAAO,EAAE,KAAK,EACZ,KAGC,EACD,WAAwB,EACxB,EAAE;QACF,IAAI,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/trigger-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAG/E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;;;;;wEAKyD;IACtE,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EA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AE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,KAAc,CAAC,CAAC;YACtF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAG,KAAe,CAAC,OAAO;gBAC/B,SAAS,EAAE,EAAE;gBACb,MAAM,EAAE,EAAE;aACX,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const zudelloUpdateQuickAction: {
|
|
|
9
9
|
type: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
+
key: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
12
16
|
name: {
|
|
13
17
|
type: string;
|
|
14
18
|
description: string;
|
|
@@ -17,11 +21,11 @@ export declare const zudelloUpdateQuickAction: {
|
|
|
17
21
|
type: string;
|
|
18
22
|
description: string;
|
|
19
23
|
};
|
|
20
|
-
|
|
24
|
+
icon: {
|
|
21
25
|
type: string;
|
|
22
26
|
description: string;
|
|
23
27
|
};
|
|
24
|
-
|
|
28
|
+
color: {
|
|
25
29
|
type: string;
|
|
26
30
|
description: string;
|
|
27
31
|
};
|
|
@@ -30,13 +34,14 @@ export declare const zudelloUpdateQuickAction: {
|
|
|
30
34
|
};
|
|
31
35
|
execute: (input: {
|
|
32
36
|
uuid: string;
|
|
33
|
-
|
|
37
|
+
key: string;
|
|
38
|
+
name: string;
|
|
34
39
|
description?: string;
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
icon?: string;
|
|
41
|
+
color?: string;
|
|
37
42
|
}, authContext: AuthContext) => Promise<{
|
|
38
43
|
success: boolean;
|
|
39
|
-
quickAction: import("../../../services/zudello/admin.js").
|
|
44
|
+
quickAction: import("../../../services/zudello/admin.js").ZudelloQuickAction | undefined;
|
|
40
45
|
message: string;
|
|
41
46
|
error?: undefined;
|
|
42
47
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/update-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"update-quick-action.d.ts","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/update-quick-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqC1B;QACL,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,eACY,WAAW;;;;;;;;;;;CA8B3B,CAAC"}
|
|
@@ -4,8 +4,8 @@ export const zudelloUpdateQuickAction = {
|
|
|
4
4
|
name: "zudelloUpdateQuickAction",
|
|
5
5
|
description: `Update an existing quick action.
|
|
6
6
|
|
|
7
|
-
Modify quick action name, description,
|
|
8
|
-
Changes affect how the action operates.`,
|
|
7
|
+
Modify quick action key, name, description, icon, or color.
|
|
8
|
+
Changes affect how the action operates and displays.`,
|
|
9
9
|
inputSchema: {
|
|
10
10
|
type: "object",
|
|
11
11
|
properties: {
|
|
@@ -13,33 +13,38 @@ Changes affect how the action operates.`,
|
|
|
13
13
|
type: "string",
|
|
14
14
|
description: "UUID of the quick action to update"
|
|
15
15
|
},
|
|
16
|
+
key: {
|
|
17
|
+
type: "string",
|
|
18
|
+
description: "Unique key for the quick action (used for triggering)"
|
|
19
|
+
},
|
|
16
20
|
name: {
|
|
17
21
|
type: "string",
|
|
18
|
-
description: "
|
|
22
|
+
description: "Display name for the quick action"
|
|
19
23
|
},
|
|
20
24
|
description: {
|
|
21
25
|
type: "string",
|
|
22
|
-
description: "Optional:
|
|
26
|
+
description: "Optional: Description of what the action does"
|
|
23
27
|
},
|
|
24
|
-
|
|
28
|
+
icon: {
|
|
25
29
|
type: "string",
|
|
26
|
-
description: "Optional:
|
|
30
|
+
description: "Optional: Icon identifier for the action"
|
|
27
31
|
},
|
|
28
|
-
|
|
29
|
-
type: "
|
|
30
|
-
description: "Optional:
|
|
32
|
+
color: {
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "Optional: Color for the action button"
|
|
31
35
|
}
|
|
32
36
|
},
|
|
33
|
-
required: ["uuid"]
|
|
37
|
+
required: ["uuid", "key", "name"]
|
|
34
38
|
},
|
|
35
39
|
execute: async (input, authContext) => {
|
|
36
40
|
try {
|
|
37
|
-
logger.info("zudelloUpdateQuickAction executed", input);
|
|
41
|
+
logger.info("zudelloUpdateQuickAction executed", { uuid: input.uuid, key: input.key });
|
|
38
42
|
const response = await updateZudelloQuickAction(authContext, input.uuid, {
|
|
43
|
+
key: input.key,
|
|
39
44
|
name: input.name,
|
|
40
45
|
description: input.description,
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
icon: input.icon,
|
|
47
|
+
color: input.color,
|
|
43
48
|
});
|
|
44
49
|
if (!response.success) {
|
|
45
50
|
throw new Error(response.error || "Failed to update quick action");
|
|
@@ -51,7 +56,7 @@ Changes affect how the action operates.`,
|
|
|
51
56
|
};
|
|
52
57
|
}
|
|
53
58
|
catch (error) {
|
|
54
|
-
logger.error("zudelloUpdateQuickAction error", input, error);
|
|
59
|
+
logger.error("zudelloUpdateQuickAction error", { uuid: input.uuid }, error);
|
|
55
60
|
return {
|
|
56
61
|
success: false,
|
|
57
62
|
error: error.message
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/update-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;;
|
|
1
|
+
{"version":3,"file":"update-quick-action.js","sourceRoot":"","sources":["../../../../src/tools/admin/quick-actions/update-quick-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE;;;qDAGsC;IACnD,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;aAClD;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uDAAuD;aACrE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;aACrD;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;KAClC;IACD,OAAO,EAAE,KAAK,EACZ,KAOC,EACD,WAAwB,EACxB,EAAE;QACF,IAAI,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;YAEvF,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,EAAE;gBACvE,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,+BAA+B,CAAC,CAAC;YACrE,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,QAAQ,CAAC,IAAI;gBAC1B,OAAO,EAAE,mCAAmC;aAC7C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,KAAc,CAAC,CAAC;YACrF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAG,KAAe,CAAC,OAAO;aAChC,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare const zudelloCreateInbox: {
|
|
|
15
15
|
};
|
|
16
16
|
execute: (input: any, authContext: AuthContext) => Promise<{
|
|
17
17
|
success: boolean;
|
|
18
|
-
inbox:
|
|
18
|
+
inbox: import("../../services/zudello/inboxes.js").ZudelloInbox | undefined;
|
|
19
19
|
error?: undefined;
|
|
20
20
|
} | {
|
|
21
21
|
success: boolean;
|
|
@@ -13,7 +13,7 @@ export declare const zudelloFetchInbox: {
|
|
|
13
13
|
};
|
|
14
14
|
execute: (input: any, authContext: AuthContext) => Promise<{
|
|
15
15
|
success: boolean;
|
|
16
|
-
inbox:
|
|
16
|
+
inbox: import("../../services/zudello/inboxes.js").ZudelloInbox | undefined;
|
|
17
17
|
error?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
success: boolean;
|
|
@@ -8,7 +8,7 @@ export declare const zudelloListInboxes: {
|
|
|
8
8
|
};
|
|
9
9
|
execute: (input: any, authContext: AuthContext) => Promise<{
|
|
10
10
|
success: boolean;
|
|
11
|
-
inboxes:
|
|
11
|
+
inboxes: import("../../services/zudello/inboxes.js").InboxSummary[] | undefined;
|
|
12
12
|
count: number;
|
|
13
13
|
error?: undefined;
|
|
14
14
|
} | {
|
|
@@ -12,7 +12,7 @@ export declare const zudelloUpdateInbox: {
|
|
|
12
12
|
};
|
|
13
13
|
execute: (input: any, authContext: AuthContext) => Promise<{
|
|
14
14
|
success: boolean;
|
|
15
|
-
inbox:
|
|
15
|
+
inbox: import("../../services/zudello/inboxes.js").ZudelloInbox | undefined;
|
|
16
16
|
error?: undefined;
|
|
17
17
|
} | {
|
|
18
18
|
success: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/update-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;qBAON,GAAG,eAAe,WAAW;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"update-inbox.d.ts","sourceRoot":"","sources":["../../../src/tools/inboxes/update-inbox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;;;;;;;;;;qBAON,GAAG,eAAe,WAAW;;;;;;;;;CAcrD,CAAC"}
|
|
@@ -9,7 +9,8 @@ export const zudelloUpdateInbox = {
|
|
|
9
9
|
},
|
|
10
10
|
execute: async (input, authContext) => {
|
|
11
11
|
try {
|
|
12
|
-
|
|
12
|
+
// UpdateInboxRequest requires uuid in the request object
|
|
13
|
+
const response = await updateInbox(authContext, { uuid: input.uuid, ...input });
|
|
13
14
|
if (!response.success)
|
|
14
15
|
throw new Error(response.error || "Operation failed");
|
|
15
16
|
return {
|
|
@@ -18,7 +19,7 @@ export const zudelloUpdateInbox = {
|
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
catch (error) {
|
|
21
|
-
logger.error("zudelloUpdateInbox error", input, error);
|
|
22
|
+
logger.error("zudelloUpdateInbox error", { uuid: input.uuid }, error);
|
|
22
23
|
return { success: false, error: error.message };
|
|
23
24
|
}
|
|
24
25
|
}
|