@plitzi/sdk-mcp 0.33.2 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/modules/mcp/catalogs/index.d.ts +2 -7
- package/dist/modules/mcp/catalogs/index.js +4 -0
- package/dist/modules/mcp/catalogs/observed.d.ts +1 -1
- package/dist/modules/mcp/catalogs/observed.js +2 -5
- package/dist/modules/mcp/catalogs/pluginCatalog.d.ts +17 -0
- package/dist/modules/mcp/catalogs/pluginCatalog.js +91 -0
- package/dist/modules/mcp/catalogs/registry.js +2 -3
- package/dist/modules/mcp/helpers/agentPrompt.js +9 -9
- package/dist/modules/mcp/helpers/guide.d.ts +2 -2
- package/dist/modules/mcp/helpers/guide.js +117 -50
- package/dist/modules/mcp/helpers/interactions.d.ts +5 -1
- package/dist/modules/mcp/helpers/interactions.js +15 -6
- package/dist/modules/mcp/helpers/space.d.ts +45 -28
- package/dist/modules/mcp/helpers/space.js +87 -87
- package/dist/modules/mcp/helpers/uris.d.ts +9 -0
- package/dist/modules/mcp/helpers/uris.js +10 -1
- package/dist/modules/mcp/index.d.ts +2 -0
- package/dist/modules/mcp/localScreenshotClient.d.ts +51 -0
- package/dist/modules/mcp/localScreenshotClient.js +106 -0
- package/dist/modules/mcp/proxy/rewrite.js +15 -1
- package/dist/modules/mcp/resources/actions.d.ts +25 -0
- package/dist/modules/mcp/resources/actions.js +54 -0
- package/dist/modules/mcp/resources/canonical.d.ts +1 -1
- package/dist/modules/mcp/resources/canonical.js +1 -1
- package/dist/modules/mcp/resources/connectors.d.ts +1 -1
- package/dist/modules/mcp/resources/core.js +1 -1
- package/dist/modules/mcp/resources/index.d.ts +1 -0
- package/dist/modules/mcp/resources/primer.d.ts +8 -1
- package/dist/modules/mcp/resources/primer.js +139 -15
- package/dist/modules/mcp/resources/register.js +24 -4
- package/dist/modules/mcp/resources/renderGuide.js +66 -14
- package/dist/modules/mcp/resources/router.js +3 -1
- package/dist/modules/mcp/resources/schema.js +6 -5
- package/dist/modules/mcp/resources/style.d.ts +2 -1
- package/dist/modules/mcp/resources/style.js +10 -3
- package/dist/modules/mcp/screenshotClient.js +3 -2
- package/dist/modules/mcp/server.js +12 -6
- package/dist/modules/mcp/tests/agentRoundtrip.test.d.ts +1 -0
- package/dist/modules/mcp/tests/layouts.test.d.ts +1 -0
- package/dist/modules/mcp/tools/apply/dispatch.js +30 -1
- package/dist/modules/mcp/tools/apply/index.d.ts +149 -15
- package/dist/modules/mcp/tools/apply/index.js +12 -2
- package/dist/modules/mcp/tools/operations/actions/actions.test.d.ts +1 -0
- package/dist/modules/mcp/tools/operations/actions/deleteAction.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/actions/deleteAction.js +20 -0
- package/dist/modules/mcp/tools/operations/actions/document.d.ts +69 -0
- package/dist/modules/mcp/tools/operations/actions/document.js +73 -0
- package/dist/modules/mcp/tools/operations/actions/index.d.ts +90 -0
- package/dist/modules/mcp/tools/operations/actions/index.js +12 -0
- package/dist/modules/mcp/tools/operations/actions/patchAction.d.ts +45 -0
- package/dist/modules/mcp/tools/operations/actions/patchAction.js +71 -0
- package/dist/modules/mcp/tools/operations/actions/upsertAction.d.ts +47 -0
- package/dist/modules/mcp/tools/operations/actions/upsertAction.js +83 -0
- package/dist/modules/mcp/tools/operations/connectors/index.d.ts +10 -10
- package/dist/modules/mcp/tools/operations/connectors/manifest.d.ts +5 -5
- package/dist/modules/mcp/tools/operations/connectors/patchConnector.d.ts +5 -5
- package/dist/modules/mcp/tools/operations/connectors/upsertConnector.d.ts +5 -5
- package/dist/modules/mcp/tools/operations/index.d.ts +415 -40
- package/dist/modules/mcp/tools/operations/index.js +11 -2
- package/dist/modules/mcp/tools/operations/schema/bindings/deleteBinding.js +2 -2
- package/dist/modules/mcp/tools/operations/schema/bindings/patchBinding.d.ts +1 -1
- package/dist/modules/mcp/tools/operations/schema/bindings/patchBinding.js +2 -2
- package/dist/modules/mcp/tools/operations/schema/bindings/upsertBinding.d.ts +1 -1
- package/dist/modules/mcp/tools/operations/schema/bindings/upsertBinding.js +4 -4
- package/dist/modules/mcp/tools/operations/schema/elements/deleteElement.js +5 -5
- package/dist/modules/mcp/tools/operations/schema/elements/moveElement.js +6 -6
- package/dist/modules/mcp/tools/operations/schema/elements/patchElement.d.ts +1 -1
- package/dist/modules/mcp/tools/operations/schema/elements/patchElement.js +11 -12
- package/dist/modules/mcp/tools/operations/schema/elements/repeatElement.js +1 -1
- package/dist/modules/mcp/tools/operations/schema/elements/upsertElement.js +4 -4
- package/dist/modules/mcp/tools/operations/schema/index.d.ts +2 -0
- package/dist/modules/mcp/tools/operations/schema/interactions/deleteInteraction.js +2 -2
- package/dist/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.d.ts +1 -1
- package/dist/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.js +2 -2
- package/dist/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.d.ts +1 -1
- package/dist/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.js +4 -4
- package/dist/modules/mcp/tools/operations/schema/operations.d.ts +28 -5
- package/dist/modules/mcp/tools/operations/schema/operations.js +4 -0
- package/dist/modules/mcp/tools/operations/schema/pages/deleteLayout.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/schema/pages/deleteLayout.js +33 -0
- package/dist/modules/mcp/tools/operations/schema/pages/deletePage.js +1 -1
- package/dist/modules/mcp/tools/operations/schema/pages/upsertLayout.d.ts +22 -0
- package/dist/modules/mcp/tools/operations/schema/pages/upsertLayout.js +61 -0
- package/dist/modules/mcp/tools/operations/schema/pages/upsertPage.d.ts +2 -0
- package/dist/modules/mcp/tools/operations/schema/pages/upsertPage.js +53 -18
- package/dist/modules/mcp/tools/operations/schema/shared.d.ts +5 -1
- package/dist/modules/mcp/tools/operations/schema/shared.js +2 -2
- package/dist/modules/mcp/tools/operations/schema/translator.d.ts +2 -1
- package/dist/modules/mcp/tools/operations/schema/translator.js +21 -9
- package/dist/modules/mcp/tools/operations/schema/write.d.ts +9 -22
- package/dist/modules/mcp/tools/operations/schema/write.js +23 -43
- package/dist/modules/mcp/tools/operations/schemaIds.js +7 -1
- package/dist/modules/mcp/tools/operations/style/fonts/deleteFont.d.ts +9 -0
- package/dist/modules/mcp/tools/operations/style/fonts/deleteFont.js +21 -0
- package/dist/modules/mcp/tools/operations/style/fonts/fonts.test.d.ts +1 -0
- package/dist/modules/mcp/tools/operations/style/fonts/upsertFont.d.ts +35 -0
- package/dist/modules/mcp/tools/operations/style/fonts/upsertFont.js +66 -0
- package/dist/modules/mcp/tools/operations/style/index.d.ts +2 -0
- package/dist/modules/mcp/tools/operations/style/operations.d.ts +34 -0
- package/dist/modules/mcp/tools/operations/style/operations.js +5 -1
- package/dist/modules/mcp/tools/operations/style/translator.d.ts +13 -1
- package/dist/modules/mcp/tools/operations/style/translator.js +18 -1
- package/dist/modules/mcp/tools/operations/style/write.js +1 -1
- package/dist/modules/mcp/tools/preview.d.ts +58 -5
- package/dist/modules/mcp/tools/preview.js +1 -1
- package/dist/modules/mcp/tools/render.d.ts +61 -5
- package/dist/modules/mcp/tools/render.js +10 -3
- package/dist/modules/mcp/tools/screenshot.d.ts +151 -16
- package/dist/modules/mcp/tools/screenshot.js +22 -13
- package/dist/modules/mcp/tools/search.js +3 -3
- package/dist/modules/mcp/tools/shared/interactionReport.d.ts +7 -0
- package/dist/modules/mcp/tools/shared/interactionReport.js +48 -0
- package/dist/modules/mcp/tools/shared/validator/audit.js +4 -4
- package/dist/modules/mcp/tools/shared/validator/batch.d.ts +1 -0
- package/dist/modules/mcp/tools/shared/validator/batch.js +11 -2
- package/dist/modules/mcp/tools/shared/validator/bindings.js +6 -6
- package/dist/modules/mcp/tools/shared/validator/connectors.js +1 -1
- package/dist/modules/mcp/tools/shared/validator/context.d.ts +3 -0
- package/dist/modules/mcp/tools/shared/validator/css.js +1 -1
- package/dist/modules/mcp/tools/shared/validator/index.js +29 -9
- package/dist/modules/mcp/tools/shared/validator/interactions.js +41 -7
- package/dist/modules/mcp/tools/shared/validator/refs.js +4 -4
- package/dist/modules/mcp/tools/validate.d.ts +149 -15
- package/dist/modules/mcp/types/aiSchema.d.ts +33 -4
- package/dist/modules/mcp/types/previewTypes.d.ts +19 -0
- package/dist/modules/mcp/types/screenshotTypes.d.ts +1 -0
- package/dist/modules/mcp/types/toolTypes.d.ts +6 -1
- package/dist/pipeline.js +1 -1
- package/dist/preview/createPreview.d.ts +4 -2
- package/dist/preview/createPreview.js +16 -6
- package/dist/server.d.ts +3 -0
- package/dist/server.js +3 -1
- package/dist/stages/preview.js +20 -1
- package/dist/tests/httpRequest.d.ts +2 -0
- package/package.json +20 -16
- package/skills/plitzi-render/SKILL.md +84 -11
- package/dist/modules/mcp/catalogs/builtinCallbacks.d.ts +0 -19
- package/dist/modules/mcp/catalogs/builtinCallbacks.js +0 -139
- package/dist/modules/mcp/catalogs/builtinComponents.d.ts +0 -4
- package/dist/modules/mcp/catalogs/builtinComponents.js +0 -165
- package/dist/modules/mcp/catalogs/builtinElementCallbacks.d.ts +0 -17
- package/dist/modules/mcp/catalogs/builtinElementCallbacks.js +0 -50
- package/dist/modules/mcp/catalogs/builtinTransformers.d.ts +0 -28
- package/dist/modules/mcp/catalogs/builtinTransformers.js +0 -148
- package/dist/modules/mcp/catalogs/builtinUtilities.d.ts +0 -15
- package/dist/modules/mcp/catalogs/builtinUtilities.js +0 -90
- package/dist/modules/mcp/catalogs/cssCatalog/border.d.ts +0 -4
- package/dist/modules/mcp/catalogs/cssCatalog/border.js +0 -30
- package/dist/modules/mcp/catalogs/cssCatalog/box.d.ts +0 -4
- package/dist/modules/mcp/catalogs/cssCatalog/box.js +0 -31
- package/dist/modules/mcp/catalogs/cssCatalog/helpers.d.ts +0 -34
- package/dist/modules/mcp/catalogs/cssCatalog/helpers.js +0 -185
- package/dist/modules/mcp/catalogs/cssCatalog/index.d.ts +0 -18
- package/dist/modules/mcp/catalogs/cssCatalog/index.js +0 -131
- package/dist/modules/mcp/catalogs/cssCatalog/layout.d.ts +0 -9
- package/dist/modules/mcp/catalogs/cssCatalog/layout.js +0 -99
- package/dist/modules/mcp/catalogs/cssCatalog/visual.d.ts +0 -8
- package/dist/modules/mcp/catalogs/cssCatalog/visual.js +0 -147
- package/dist/modules/mcp/catalogs/paramSpec.d.ts +0 -39
- package/dist/modules/mcp/catalogs/paramSpec.js +0 -69
- package/dist/modules/oauth/authorize.d.ts +0 -7
- package/dist/modules/oauth/authorize.js +0 -177
- package/dist/modules/oauth/challenge.d.ts +0 -11
- package/dist/modules/oauth/challenge.js +0 -33
- package/dist/modules/oauth/consentPage.d.ts +0 -7
- package/dist/modules/oauth/consentPage.js +0 -118
- package/dist/modules/oauth/metadata.d.ts +0 -40
- package/dist/modules/oauth/metadata.js +0 -69
- package/dist/modules/oauth/params.d.ts +0 -5
- package/dist/modules/oauth/params.js +0 -5
- package/dist/modules/oauth/pkce.d.ts +0 -6
- package/dist/modules/oauth/pkce.js +0 -15
- package/dist/modules/oauth/records.d.ts +0 -71
- package/dist/modules/oauth/records.js +0 -46
- package/dist/modules/oauth/register.d.ts +0 -5
- package/dist/modules/oauth/register.js +0 -55
- package/dist/modules/oauth/respond.d.ts +0 -13
- package/dist/modules/oauth/respond.js +0 -44
- package/dist/modules/oauth/token.d.ts +0 -5
- package/dist/modules/oauth/token.js +0 -100
- package/dist/stages/oauth.d.ts +0 -19
- package/dist/stages/oauth.js +0 -114
- /package/dist/modules/mcp/catalogs/{builtinTransformers.test.d.ts → pluginCatalog.test.d.ts} +0 -0
- /package/dist/modules/mcp/{catalogs/cssCatalog/cssCatalog.test.d.ts → localScreenshotClient.test.d.ts} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export * from './upsertAction';
|
|
2
|
+
export * from './patchAction';
|
|
3
|
+
export * from './deleteAction';
|
|
4
|
+
/** The action write vocabulary, keyed by op type — feeds the discriminated union in tools/operations.ts. */
|
|
5
|
+
export declare const actionOps: {
|
|
6
|
+
upsertAction: import('zod').ZodObject<{
|
|
7
|
+
type: import('zod').ZodLiteral<"upsertAction">;
|
|
8
|
+
ref: import('zod').ZodString;
|
|
9
|
+
name: import('zod').ZodString;
|
|
10
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
11
|
+
output: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodObject<{
|
|
12
|
+
type: import('zod').ZodEnum<{
|
|
13
|
+
number: "number";
|
|
14
|
+
boolean: "boolean";
|
|
15
|
+
file: "file";
|
|
16
|
+
json: "json";
|
|
17
|
+
text: "text";
|
|
18
|
+
date: "date";
|
|
19
|
+
}>;
|
|
20
|
+
required: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
21
|
+
defaultValue: import('zod').ZodOptional<import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodNumber, import('zod').ZodBoolean]>>;
|
|
22
|
+
label: import('zod').ZodOptional<import('zod').ZodString>;
|
|
23
|
+
}, import('zod/v4/core').$strip>>>;
|
|
24
|
+
nodes: import('zod').ZodArray<import('zod').ZodObject<{
|
|
25
|
+
id: import('zod').ZodString;
|
|
26
|
+
title: import('zod').ZodString;
|
|
27
|
+
type: import('zod').ZodEnum<{
|
|
28
|
+
trigger: "trigger";
|
|
29
|
+
task: "task";
|
|
30
|
+
}>;
|
|
31
|
+
action: import('zod').ZodString;
|
|
32
|
+
params: import('zod').ZodDefault<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
33
|
+
afterNode: import('zod').ZodDefault<import('zod').ZodString>;
|
|
34
|
+
beforeNode: import('zod').ZodDefault<import('zod').ZodString>;
|
|
35
|
+
enabled: import('zod').ZodDefault<import('zod').ZodBoolean>;
|
|
36
|
+
when: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
37
|
+
remove: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
38
|
+
}, import('zod/v4/core').$strip>>;
|
|
39
|
+
limits: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
40
|
+
timeoutMs: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
41
|
+
streamTimeoutMs: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
42
|
+
maxNodes: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
43
|
+
maxRequests: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
44
|
+
}, import('zod/v4/core').$strip>>;
|
|
45
|
+
}, import('zod/v4/core').$strip>;
|
|
46
|
+
patchAction: import('zod').ZodObject<{
|
|
47
|
+
type: import('zod').ZodLiteral<"patchAction">;
|
|
48
|
+
ref: import('zod').ZodString;
|
|
49
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
50
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
51
|
+
output: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodNullable<import('zod').ZodObject<{
|
|
52
|
+
type: import('zod').ZodEnum<{
|
|
53
|
+
number: "number";
|
|
54
|
+
boolean: "boolean";
|
|
55
|
+
file: "file";
|
|
56
|
+
json: "json";
|
|
57
|
+
text: "text";
|
|
58
|
+
date: "date";
|
|
59
|
+
}>;
|
|
60
|
+
required: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
61
|
+
defaultValue: import('zod').ZodOptional<import('zod').ZodUnion<readonly [import('zod').ZodString, import('zod').ZodNumber, import('zod').ZodBoolean]>>;
|
|
62
|
+
label: import('zod').ZodOptional<import('zod').ZodString>;
|
|
63
|
+
}, import('zod/v4/core').$strip>>>>;
|
|
64
|
+
nodes: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodObject<{
|
|
65
|
+
id: import('zod').ZodString;
|
|
66
|
+
title: import('zod').ZodString;
|
|
67
|
+
type: import('zod').ZodEnum<{
|
|
68
|
+
trigger: "trigger";
|
|
69
|
+
task: "task";
|
|
70
|
+
}>;
|
|
71
|
+
action: import('zod').ZodString;
|
|
72
|
+
params: import('zod').ZodDefault<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>>;
|
|
73
|
+
afterNode: import('zod').ZodDefault<import('zod').ZodString>;
|
|
74
|
+
beforeNode: import('zod').ZodDefault<import('zod').ZodString>;
|
|
75
|
+
enabled: import('zod').ZodDefault<import('zod').ZodBoolean>;
|
|
76
|
+
when: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
77
|
+
remove: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
78
|
+
}, import('zod/v4/core').$strip>>>;
|
|
79
|
+
limits: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
80
|
+
timeoutMs: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
81
|
+
streamTimeoutMs: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
82
|
+
maxNodes: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
83
|
+
maxRequests: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
84
|
+
}, import('zod/v4/core').$strip>>;
|
|
85
|
+
}, import('zod/v4/core').$strip>;
|
|
86
|
+
deleteAction: import('zod').ZodObject<{
|
|
87
|
+
type: import('zod').ZodLiteral<"deleteAction">;
|
|
88
|
+
ref: import('zod').ZodString;
|
|
89
|
+
}, import('zod/v4/core').$strip>;
|
|
90
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { deleteAction, deleteActionOp } from "./deleteAction.js";
|
|
2
|
+
import { patchAction, patchActionOp } from "./patchAction.js";
|
|
3
|
+
import { toDocument, upsertAction, upsertActionOp } from "./upsertAction.js";
|
|
4
|
+
//#region src/modules/mcp/tools/operations/actions/index.ts
|
|
5
|
+
/** The action write vocabulary, keyed by op type — feeds the discriminated union in tools/operations.ts. */
|
|
6
|
+
var actionOps = {
|
|
7
|
+
upsertAction: upsertActionOp,
|
|
8
|
+
patchAction: patchActionOp,
|
|
9
|
+
deleteAction: deleteActionOp
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { actionOps, deleteAction, deleteActionOp, patchAction, patchActionOp, toDocument, upsertAction, upsertActionOp };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OpResult, Space } from '../../../helpers';
|
|
3
|
+
import { Env } from '../../../types';
|
|
4
|
+
export declare const patchActionOp: z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"patchAction">;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
number: "number";
|
|
12
|
+
boolean: "boolean";
|
|
13
|
+
file: "file";
|
|
14
|
+
json: "json";
|
|
15
|
+
text: "text";
|
|
16
|
+
date: "date";
|
|
17
|
+
}>;
|
|
18
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
20
|
+
label: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>>>;
|
|
22
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
type: z.ZodEnum<{
|
|
26
|
+
trigger: "trigger";
|
|
27
|
+
task: "task";
|
|
28
|
+
}>;
|
|
29
|
+
action: z.ZodString;
|
|
30
|
+
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
afterNode: z.ZodDefault<z.ZodString>;
|
|
32
|
+
beforeNode: z.ZodDefault<z.ZodString>;
|
|
33
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
when: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
remove: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
maxRequests: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type PatchAction = z.infer<typeof patchActionOp>;
|
|
45
|
+
export declare const patchAction: (space: Space, env: Env, op: PatchAction) => OpResult;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { findActionEntry } from "../../../helpers/space.js";
|
|
2
|
+
import { actionUri, actionsUri } from "../../../helpers/uris.js";
|
|
3
|
+
import { empty, fail } from "../../../helpers/opResult.js";
|
|
4
|
+
import { actionField, actionLimits, actionNode } from "./document.js";
|
|
5
|
+
import { validateActionDocument } from "@plitzi/sdk-shared/actions";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/modules/mcp/tools/operations/actions/patchAction.ts
|
|
8
|
+
var patchActionOp = z.object({
|
|
9
|
+
type: z.literal("patchAction"),
|
|
10
|
+
ref: z.string().describe("Identifier of the action to change"),
|
|
11
|
+
name: z.string().optional(),
|
|
12
|
+
description: z.string().optional(),
|
|
13
|
+
output: z.record(z.string(), actionField.nullable()).optional().describe("Merged by name; null removes one"),
|
|
14
|
+
nodes: z.array(actionNode).optional().describe("Steps merged BY ID: unlisted ones are preserved, one with remove:true is dropped"),
|
|
15
|
+
limits: actionLimits.optional()
|
|
16
|
+
}).describe("Change part of a server action, preserving what you do not send. Never creates; use upsertAction.");
|
|
17
|
+
/** Overlay a name-keyed map: a listed key replaces, a null removes, an unlisted one is preserved. */
|
|
18
|
+
var mergeMap = (current, patch) => {
|
|
19
|
+
if (!patch) return current;
|
|
20
|
+
const removed = new Set(Object.entries(patch).filter(([, value]) => value === null).map(([key]) => key));
|
|
21
|
+
return Object.fromEntries(Object.entries({
|
|
22
|
+
...current,
|
|
23
|
+
...patch
|
|
24
|
+
}).filter(([key]) => !removed.has(key)));
|
|
25
|
+
};
|
|
26
|
+
var patchAction = (space, env, op) => {
|
|
27
|
+
const entry = findActionEntry(space, op.ref);
|
|
28
|
+
if (!entry) return fail("ref", `Action "${op.ref}" does not exist`, `Create it with upsertAction, or read ${actionsUri(env)} for the actions this space has`, space.actions.map((item) => item.id));
|
|
29
|
+
const { document } = entry;
|
|
30
|
+
const nodes = { ...document.nodes };
|
|
31
|
+
for (const node of op.nodes ?? []) {
|
|
32
|
+
if (node.remove) {
|
|
33
|
+
delete nodes[node.id];
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const previous = nodes[node.id];
|
|
37
|
+
nodes[node.id] = {
|
|
38
|
+
...previous,
|
|
39
|
+
id: node.id,
|
|
40
|
+
title: node.title,
|
|
41
|
+
type: node.type,
|
|
42
|
+
action: node.action,
|
|
43
|
+
params: node.params,
|
|
44
|
+
preview: previous?.preview ?? {},
|
|
45
|
+
elementId: null,
|
|
46
|
+
beforeNode: node.beforeNode,
|
|
47
|
+
afterNode: node.afterNode,
|
|
48
|
+
flowId: previous?.flowId ?? node.id,
|
|
49
|
+
enabled: node.enabled,
|
|
50
|
+
...node.when === void 0 ? {} : { when: node.when }
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const patched = {
|
|
54
|
+
...document,
|
|
55
|
+
...op.name === void 0 ? {} : { name: op.name },
|
|
56
|
+
...op.description === void 0 ? {} : { description: op.description },
|
|
57
|
+
...op.limits === void 0 ? {} : { limits: op.limits },
|
|
58
|
+
output: mergeMap(document.output ?? {}, op.output),
|
|
59
|
+
nodes
|
|
60
|
+
};
|
|
61
|
+
const report = validateActionDocument(patched);
|
|
62
|
+
if (!report.valid) return fail("nodes", `Invalid action: ${report.errors.map((issue) => issue.message).join("; ")}`, "", []);
|
|
63
|
+
entry.document = patched;
|
|
64
|
+
return {
|
|
65
|
+
...empty(),
|
|
66
|
+
updated: 1,
|
|
67
|
+
staleResources: [actionsUri(env), actionUri(env, op.ref)]
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { patchAction, patchActionOp };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OpResult, Space } from '../../../helpers';
|
|
3
|
+
import { Env } from '../../../types';
|
|
4
|
+
import { ActionDocument } from '@plitzi/sdk-shared';
|
|
5
|
+
export declare const upsertActionOp: z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"upsertAction">;
|
|
7
|
+
ref: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
number: "number";
|
|
13
|
+
boolean: "boolean";
|
|
14
|
+
file: "file";
|
|
15
|
+
json: "json";
|
|
16
|
+
text: "text";
|
|
17
|
+
date: "date";
|
|
18
|
+
}>;
|
|
19
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
21
|
+
label: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
type: z.ZodEnum<{
|
|
27
|
+
trigger: "trigger";
|
|
28
|
+
task: "task";
|
|
29
|
+
}>;
|
|
30
|
+
action: z.ZodString;
|
|
31
|
+
params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
afterNode: z.ZodDefault<z.ZodString>;
|
|
33
|
+
beforeNode: z.ZodDefault<z.ZodString>;
|
|
34
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
when: z.ZodOptional<z.ZodUnknown>;
|
|
36
|
+
remove: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
maxNodes: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
maxRequests: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type UpsertAction = z.infer<typeof upsertActionOp>;
|
|
46
|
+
export declare const toDocument: (op: UpsertAction) => ActionDocument;
|
|
47
|
+
export declare const upsertAction: (space: Space, env: Env, op: UpsertAction) => OpResult;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { findActionEntry } from "../../../helpers/space.js";
|
|
2
|
+
import { actionUri, actionsUri } from "../../../helpers/uris.js";
|
|
3
|
+
import { empty, fail } from "../../../helpers/opResult.js";
|
|
4
|
+
import { actionField, actionLimits, actionNode } from "./document.js";
|
|
5
|
+
import { validateActionDocument } from "@plitzi/sdk-shared/actions";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
//#region src/modules/mcp/tools/operations/actions/upsertAction.ts
|
|
8
|
+
var upsertActionOp = z.object({
|
|
9
|
+
type: z.literal("upsertAction"),
|
|
10
|
+
ref: z.string().describe("Stable identifier a `runServerAction` step stores, e.g. \"send-quote\". Never reused for another action"),
|
|
11
|
+
name: z.string().describe("Human name shown in the builder"),
|
|
12
|
+
description: z.string().optional(),
|
|
13
|
+
output: z.record(z.string(), actionField).optional().describe("Derived from the `flow.output` step for typed bindings. THAT step is the contract; this is a hint"),
|
|
14
|
+
nodes: z.array(actionNode).describe("The flow: a trigger step per way in, each heading a chain linked by afterNode"),
|
|
15
|
+
limits: actionLimits.optional()
|
|
16
|
+
}).describe("Create a server action, or REPLACE one whole (use patchAction to change part). An action is a declarative flow the SERVER runs — the same node map an element's interactions are, with tasks instead of callbacks. What starts it, who may, what they send and whether it runs at all live on its TRIGGER steps, not beside the flow.");
|
|
17
|
+
/**
|
|
18
|
+
* The node array becomes the map the runner walks, keyed by id — the same shape an element's interactions hold.
|
|
19
|
+
*
|
|
20
|
+
* `flowId` is stamped by walking each trigger's chain, because an action may hold several: a step belongs to the
|
|
21
|
+
* flow whose trigger reaches it, and guessing "the first trigger" would label a webhook's steps as the call's.
|
|
22
|
+
*/
|
|
23
|
+
var toNodes = (nodes) => {
|
|
24
|
+
const byId = new Map(nodes.map((node) => [node.id, node]));
|
|
25
|
+
const flowOf = /* @__PURE__ */ new Map();
|
|
26
|
+
nodes.filter((node) => node.type === "trigger").forEach((trigger) => {
|
|
27
|
+
let current = trigger.id;
|
|
28
|
+
while (current && !flowOf.has(current)) {
|
|
29
|
+
flowOf.set(current, trigger.id);
|
|
30
|
+
current = byId.get(current)?.afterNode || void 0;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return nodes.reduce((acum, node) => {
|
|
34
|
+
acum[node.id] = {
|
|
35
|
+
id: node.id,
|
|
36
|
+
title: node.title,
|
|
37
|
+
type: node.type,
|
|
38
|
+
action: node.action,
|
|
39
|
+
params: node.params,
|
|
40
|
+
preview: {},
|
|
41
|
+
elementId: null,
|
|
42
|
+
beforeNode: node.beforeNode,
|
|
43
|
+
afterNode: node.afterNode,
|
|
44
|
+
flowId: flowOf.get(node.id) ?? node.id,
|
|
45
|
+
enabled: node.enabled,
|
|
46
|
+
...node.when === void 0 ? {} : { when: node.when }
|
|
47
|
+
};
|
|
48
|
+
return acum;
|
|
49
|
+
}, {});
|
|
50
|
+
};
|
|
51
|
+
var toDocument = (op) => ({
|
|
52
|
+
name: op.name,
|
|
53
|
+
...op.description === void 0 ? {} : { description: op.description },
|
|
54
|
+
...op.output === void 0 ? {} : { output: op.output },
|
|
55
|
+
nodes: toNodes(op.nodes),
|
|
56
|
+
...op.limits === void 0 ? {} : { limits: op.limits }
|
|
57
|
+
});
|
|
58
|
+
var upsertAction = (space, env, op) => {
|
|
59
|
+
const document = toDocument(op);
|
|
60
|
+
const report = validateActionDocument(document);
|
|
61
|
+
if (!report.valid) return fail("nodes", `Invalid action: ${report.errors.map((issue) => issue.message).join("; ")}`, "", []);
|
|
62
|
+
const existing = findActionEntry(space, op.ref);
|
|
63
|
+
const stale = [actionsUri(env), actionUri(env, op.ref)];
|
|
64
|
+
if (existing) {
|
|
65
|
+
existing.document = document;
|
|
66
|
+
return {
|
|
67
|
+
...empty(),
|
|
68
|
+
updated: 1,
|
|
69
|
+
staleResources: stale
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
space.actions.push({
|
|
73
|
+
id: op.ref,
|
|
74
|
+
document
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
...empty(),
|
|
78
|
+
created: 1,
|
|
79
|
+
staleResources: stale
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { toDocument, upsertAction, upsertActionOp };
|
|
@@ -21,8 +21,8 @@ export declare const connectorOps: {
|
|
|
21
21
|
headers: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
22
22
|
pagination: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
23
23
|
page: "page";
|
|
24
|
-
cursor: "cursor";
|
|
25
24
|
offset: "offset";
|
|
25
|
+
cursor: "cursor";
|
|
26
26
|
}>>;
|
|
27
27
|
operators: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
28
28
|
mediaBaseUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -31,14 +31,14 @@ export declare const connectorOps: {
|
|
|
31
31
|
file: "file";
|
|
32
32
|
text: "text";
|
|
33
33
|
color: "color";
|
|
34
|
-
link: "link";
|
|
35
|
-
image: "image";
|
|
36
|
-
video: "video";
|
|
37
34
|
switch: "switch";
|
|
38
35
|
email: "email";
|
|
39
36
|
date: "date";
|
|
40
37
|
richText: "richText";
|
|
38
|
+
image: "image";
|
|
41
39
|
multiImage: "multiImage";
|
|
40
|
+
video: "video";
|
|
41
|
+
link: "link";
|
|
42
42
|
phone: "phone";
|
|
43
43
|
option: "option";
|
|
44
44
|
}>>>;
|
|
@@ -65,8 +65,8 @@ export declare const connectorOps: {
|
|
|
65
65
|
body: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
66
66
|
pagination: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
67
67
|
page: "page";
|
|
68
|
-
cursor: "cursor";
|
|
69
68
|
offset: "offset";
|
|
69
|
+
cursor: "cursor";
|
|
70
70
|
}>>;
|
|
71
71
|
}, import('zod/v4/core').$strip>>;
|
|
72
72
|
write: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodObject<{
|
|
@@ -110,8 +110,8 @@ export declare const connectorOps: {
|
|
|
110
110
|
headers: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
111
111
|
pagination: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
112
112
|
page: "page";
|
|
113
|
-
cursor: "cursor";
|
|
114
113
|
offset: "offset";
|
|
114
|
+
cursor: "cursor";
|
|
115
115
|
}>>;
|
|
116
116
|
operators: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
117
117
|
mediaBaseUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -120,14 +120,14 @@ export declare const connectorOps: {
|
|
|
120
120
|
file: "file";
|
|
121
121
|
text: "text";
|
|
122
122
|
color: "color";
|
|
123
|
-
link: "link";
|
|
124
|
-
image: "image";
|
|
125
|
-
video: "video";
|
|
126
123
|
switch: "switch";
|
|
127
124
|
email: "email";
|
|
128
125
|
date: "date";
|
|
129
126
|
richText: "richText";
|
|
127
|
+
image: "image";
|
|
130
128
|
multiImage: "multiImage";
|
|
129
|
+
video: "video";
|
|
130
|
+
link: "link";
|
|
131
131
|
phone: "phone";
|
|
132
132
|
option: "option";
|
|
133
133
|
}>>>;
|
|
@@ -154,8 +154,8 @@ export declare const connectorOps: {
|
|
|
154
154
|
body: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>>;
|
|
155
155
|
pagination: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
156
156
|
page: "page";
|
|
157
|
-
cursor: "cursor";
|
|
158
157
|
offset: "offset";
|
|
158
|
+
cursor: "cursor";
|
|
159
159
|
}>>;
|
|
160
160
|
}, import('zod/v4/core').$strip>>>>;
|
|
161
161
|
write: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodNullable<import('zod').ZodObject<{
|
|
@@ -19,8 +19,8 @@ export declare const readEndpoint: z.ZodObject<{
|
|
|
19
19
|
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20
20
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
21
21
|
page: "page";
|
|
22
|
-
cursor: "cursor";
|
|
23
22
|
offset: "offset";
|
|
23
|
+
cursor: "cursor";
|
|
24
24
|
}>>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
export declare const writeEndpoint: z.ZodObject<{
|
|
@@ -63,8 +63,8 @@ export declare const connectorConnection: z.ZodObject<{
|
|
|
63
63
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
64
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
65
65
|
page: "page";
|
|
66
|
-
cursor: "cursor";
|
|
67
66
|
offset: "offset";
|
|
67
|
+
cursor: "cursor";
|
|
68
68
|
}>>;
|
|
69
69
|
operators: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
70
70
|
mediaBaseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -73,14 +73,14 @@ export declare const connectorConnection: z.ZodObject<{
|
|
|
73
73
|
file: "file";
|
|
74
74
|
text: "text";
|
|
75
75
|
color: "color";
|
|
76
|
-
link: "link";
|
|
77
|
-
image: "image";
|
|
78
|
-
video: "video";
|
|
79
76
|
switch: "switch";
|
|
80
77
|
email: "email";
|
|
81
78
|
date: "date";
|
|
82
79
|
richText: "richText";
|
|
80
|
+
image: "image";
|
|
83
81
|
multiImage: "multiImage";
|
|
82
|
+
video: "video";
|
|
83
|
+
link: "link";
|
|
84
84
|
phone: "phone";
|
|
85
85
|
option: "option";
|
|
86
86
|
}>>>;
|
|
@@ -19,8 +19,8 @@ export declare const patchConnectorOp: z.ZodObject<{
|
|
|
19
19
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20
20
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
21
21
|
page: "page";
|
|
22
|
-
cursor: "cursor";
|
|
23
22
|
offset: "offset";
|
|
23
|
+
cursor: "cursor";
|
|
24
24
|
}>>;
|
|
25
25
|
operators: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
26
|
mediaBaseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -29,14 +29,14 @@ export declare const patchConnectorOp: z.ZodObject<{
|
|
|
29
29
|
file: "file";
|
|
30
30
|
text: "text";
|
|
31
31
|
color: "color";
|
|
32
|
-
link: "link";
|
|
33
|
-
image: "image";
|
|
34
|
-
video: "video";
|
|
35
32
|
switch: "switch";
|
|
36
33
|
email: "email";
|
|
37
34
|
date: "date";
|
|
38
35
|
richText: "richText";
|
|
36
|
+
image: "image";
|
|
39
37
|
multiImage: "multiImage";
|
|
38
|
+
video: "video";
|
|
39
|
+
link: "link";
|
|
40
40
|
phone: "phone";
|
|
41
41
|
option: "option";
|
|
42
42
|
}>>>;
|
|
@@ -63,8 +63,8 @@ export declare const patchConnectorOp: z.ZodObject<{
|
|
|
63
63
|
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
64
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
65
65
|
page: "page";
|
|
66
|
-
cursor: "cursor";
|
|
67
66
|
offset: "offset";
|
|
67
|
+
cursor: "cursor";
|
|
68
68
|
}>>;
|
|
69
69
|
}, z.core.$strip>>>>;
|
|
70
70
|
write: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
@@ -20,8 +20,8 @@ export declare const upsertConnectorOp: z.ZodObject<{
|
|
|
20
20
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21
21
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
22
22
|
page: "page";
|
|
23
|
-
cursor: "cursor";
|
|
24
23
|
offset: "offset";
|
|
24
|
+
cursor: "cursor";
|
|
25
25
|
}>>;
|
|
26
26
|
operators: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
27
27
|
mediaBaseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -30,14 +30,14 @@ export declare const upsertConnectorOp: z.ZodObject<{
|
|
|
30
30
|
file: "file";
|
|
31
31
|
text: "text";
|
|
32
32
|
color: "color";
|
|
33
|
-
link: "link";
|
|
34
|
-
image: "image";
|
|
35
|
-
video: "video";
|
|
36
33
|
switch: "switch";
|
|
37
34
|
email: "email";
|
|
38
35
|
date: "date";
|
|
39
36
|
richText: "richText";
|
|
37
|
+
image: "image";
|
|
40
38
|
multiImage: "multiImage";
|
|
39
|
+
video: "video";
|
|
40
|
+
link: "link";
|
|
41
41
|
phone: "phone";
|
|
42
42
|
option: "option";
|
|
43
43
|
}>>>;
|
|
@@ -64,8 +64,8 @@ export declare const upsertConnectorOp: z.ZodObject<{
|
|
|
64
64
|
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
65
|
pagination: z.ZodOptional<z.ZodEnum<{
|
|
66
66
|
page: "page";
|
|
67
|
-
cursor: "cursor";
|
|
68
67
|
offset: "offset";
|
|
68
|
+
cursor: "cursor";
|
|
69
69
|
}>>;
|
|
70
70
|
}, z.core.$strip>>;
|
|
71
71
|
write: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|