@keystrokehq/textit 0.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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-campaign.cjs +29 -0
- package/dist/actions/create-campaign.cjs.map +1 -0
- package/dist/actions/create-campaign.d.cts +9 -0
- package/dist/actions/create-campaign.d.cts.map +1 -0
- package/dist/actions/create-campaign.d.mts +9 -0
- package/dist/actions/create-campaign.d.mts.map +1 -0
- package/dist/actions/create-campaign.mjs +28 -0
- package/dist/actions/create-campaign.mjs.map +1 -0
- package/dist/actions/create-group.cjs +23 -0
- package/dist/actions/create-group.cjs.map +1 -0
- package/dist/actions/create-group.d.cts +9 -0
- package/dist/actions/create-group.d.cts.map +1 -0
- package/dist/actions/create-group.d.mts +9 -0
- package/dist/actions/create-group.d.mts.map +1 -0
- package/dist/actions/create-group.mjs +20 -0
- package/dist/actions/create-group.mjs.map +1 -0
- package/dist/actions/create-label.cjs +20 -0
- package/dist/actions/create-label.cjs.map +1 -0
- package/dist/actions/create-label.d.cts +9 -0
- package/dist/actions/create-label.d.cts.map +1 -0
- package/dist/actions/create-label.d.mts +9 -0
- package/dist/actions/create-label.d.mts.map +1 -0
- package/dist/actions/create-label.mjs +17 -0
- package/dist/actions/create-label.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +16 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +13 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/delete-group.cjs +19 -0
- package/dist/actions/delete-group.cjs.map +1 -0
- package/dist/actions/delete-group.d.cts +9 -0
- package/dist/actions/delete-group.d.cts.map +1 -0
- package/dist/actions/delete-group.d.mts +9 -0
- package/dist/actions/delete-group.d.mts.map +1 -0
- package/dist/actions/delete-group.mjs +16 -0
- package/dist/actions/delete-group.mjs.map +1 -0
- package/dist/actions/delete-label.cjs +19 -0
- package/dist/actions/delete-label.cjs.map +1 -0
- package/dist/actions/delete-label.d.cts +9 -0
- package/dist/actions/delete-label.d.cts.map +1 -0
- package/dist/actions/delete-label.d.mts +9 -0
- package/dist/actions/delete-label.d.mts.map +1 -0
- package/dist/actions/delete-label.mjs +16 -0
- package/dist/actions/delete-label.mjs.map +1 -0
- package/dist/actions/get-campaign.cjs +26 -0
- package/dist/actions/get-campaign.cjs.map +1 -0
- package/dist/actions/get-campaign.d.cts +9 -0
- package/dist/actions/get-campaign.d.cts.map +1 -0
- package/dist/actions/get-campaign.d.mts +9 -0
- package/dist/actions/get-campaign.d.mts.map +1 -0
- package/dist/actions/get-campaign.mjs +25 -0
- package/dist/actions/get-campaign.mjs.map +1 -0
- package/dist/actions/get-workspace.cjs +24 -0
- package/dist/actions/get-workspace.cjs.map +1 -0
- package/dist/actions/get-workspace.d.cts +9 -0
- package/dist/actions/get-workspace.d.cts.map +1 -0
- package/dist/actions/get-workspace.d.mts +9 -0
- package/dist/actions/get-workspace.d.mts.map +1 -0
- package/dist/actions/get-workspace.mjs +21 -0
- package/dist/actions/get-workspace.mjs.map +1 -0
- package/dist/actions/index.cjs +63 -0
- package/dist/actions/index.d.cts +32 -0
- package/dist/actions/index.d.mts +32 -0
- package/dist/actions/index.mjs +32 -0
- package/dist/actions/list-archives.cjs +35 -0
- package/dist/actions/list-archives.cjs.map +1 -0
- package/dist/actions/list-archives.d.cts +9 -0
- package/dist/actions/list-archives.d.cts.map +1 -0
- package/dist/actions/list-archives.d.mts +9 -0
- package/dist/actions/list-archives.d.mts.map +1 -0
- package/dist/actions/list-archives.mjs +34 -0
- package/dist/actions/list-archives.mjs.map +1 -0
- package/dist/actions/list-broadcasts.cjs +35 -0
- package/dist/actions/list-broadcasts.cjs.map +1 -0
- package/dist/actions/list-broadcasts.d.cts +9 -0
- package/dist/actions/list-broadcasts.d.cts.map +1 -0
- package/dist/actions/list-broadcasts.d.mts +9 -0
- package/dist/actions/list-broadcasts.d.mts.map +1 -0
- package/dist/actions/list-broadcasts.mjs +34 -0
- package/dist/actions/list-broadcasts.mjs.map +1 -0
- package/dist/actions/list-campaign-events2.cjs +51 -0
- package/dist/actions/list-campaign-events2.cjs.map +1 -0
- package/dist/actions/list-campaign-events2.d.cts +9 -0
- package/dist/actions/list-campaign-events2.d.cts.map +1 -0
- package/dist/actions/list-campaign-events2.d.mts +9 -0
- package/dist/actions/list-campaign-events2.d.mts.map +1 -0
- package/dist/actions/list-campaign-events2.mjs +50 -0
- package/dist/actions/list-campaign-events2.mjs.map +1 -0
- package/dist/actions/list-campaigns.cjs +35 -0
- package/dist/actions/list-campaigns.cjs.map +1 -0
- package/dist/actions/list-campaigns.d.cts +9 -0
- package/dist/actions/list-campaigns.d.cts.map +1 -0
- package/dist/actions/list-campaigns.d.mts +9 -0
- package/dist/actions/list-campaigns.d.mts.map +1 -0
- package/dist/actions/list-campaigns.mjs +34 -0
- package/dist/actions/list-campaigns.mjs.map +1 -0
- package/dist/actions/list-channels.cjs +35 -0
- package/dist/actions/list-channels.cjs.map +1 -0
- package/dist/actions/list-channels.d.cts +9 -0
- package/dist/actions/list-channels.d.cts.map +1 -0
- package/dist/actions/list-channels.d.mts +9 -0
- package/dist/actions/list-channels.d.mts.map +1 -0
- package/dist/actions/list-channels.mjs +34 -0
- package/dist/actions/list-channels.mjs.map +1 -0
- package/dist/actions/list-classifiers.cjs +30 -0
- package/dist/actions/list-classifiers.cjs.map +1 -0
- package/dist/actions/list-classifiers.d.cts +9 -0
- package/dist/actions/list-classifiers.d.cts.map +1 -0
- package/dist/actions/list-classifiers.d.mts +9 -0
- package/dist/actions/list-classifiers.d.mts.map +1 -0
- package/dist/actions/list-classifiers.mjs +29 -0
- package/dist/actions/list-classifiers.mjs.map +1 -0
- package/dist/actions/list-contacts.cjs +47 -0
- package/dist/actions/list-contacts.cjs.map +1 -0
- package/dist/actions/list-contacts.d.cts +9 -0
- package/dist/actions/list-contacts.d.cts.map +1 -0
- package/dist/actions/list-contacts.d.mts +9 -0
- package/dist/actions/list-contacts.d.mts.map +1 -0
- package/dist/actions/list-contacts.mjs +46 -0
- package/dist/actions/list-contacts.mjs.map +1 -0
- package/dist/actions/list-fields.cjs +40 -0
- package/dist/actions/list-fields.cjs.map +1 -0
- package/dist/actions/list-fields.d.cts +9 -0
- package/dist/actions/list-fields.d.cts.map +1 -0
- package/dist/actions/list-fields.d.mts +9 -0
- package/dist/actions/list-fields.d.mts.map +1 -0
- package/dist/actions/list-fields.mjs +39 -0
- package/dist/actions/list-fields.mjs.map +1 -0
- package/dist/actions/list-flow-starts.cjs +44 -0
- package/dist/actions/list-flow-starts.cjs.map +1 -0
- package/dist/actions/list-flow-starts.d.cts +9 -0
- package/dist/actions/list-flow-starts.d.cts.map +1 -0
- package/dist/actions/list-flow-starts.d.mts +9 -0
- package/dist/actions/list-flow-starts.d.mts.map +1 -0
- package/dist/actions/list-flow-starts.mjs +43 -0
- package/dist/actions/list-flow-starts.mjs.map +1 -0
- package/dist/actions/list-flows.cjs +59 -0
- package/dist/actions/list-flows.cjs.map +1 -0
- package/dist/actions/list-flows.d.cts +9 -0
- package/dist/actions/list-flows.d.cts.map +1 -0
- package/dist/actions/list-flows.d.mts +9 -0
- package/dist/actions/list-flows.d.mts.map +1 -0
- package/dist/actions/list-flows.mjs +58 -0
- package/dist/actions/list-flows.mjs.map +1 -0
- package/dist/actions/list-globals.cjs +26 -0
- package/dist/actions/list-globals.cjs.map +1 -0
- package/dist/actions/list-globals.d.cts +9 -0
- package/dist/actions/list-globals.d.cts.map +1 -0
- package/dist/actions/list-globals.d.mts +9 -0
- package/dist/actions/list-globals.d.mts.map +1 -0
- package/dist/actions/list-globals.mjs +25 -0
- package/dist/actions/list-globals.mjs.map +1 -0
- package/dist/actions/list-groups2.cjs +32 -0
- package/dist/actions/list-groups2.cjs.map +1 -0
- package/dist/actions/list-groups2.d.cts +9 -0
- package/dist/actions/list-groups2.d.cts.map +1 -0
- package/dist/actions/list-groups2.d.mts +9 -0
- package/dist/actions/list-groups2.d.mts.map +1 -0
- package/dist/actions/list-groups2.mjs +31 -0
- package/dist/actions/list-groups2.mjs.map +1 -0
- package/dist/actions/list-labels2.cjs +29 -0
- package/dist/actions/list-labels2.cjs.map +1 -0
- package/dist/actions/list-labels2.d.cts +9 -0
- package/dist/actions/list-labels2.d.cts.map +1 -0
- package/dist/actions/list-labels2.d.mts +9 -0
- package/dist/actions/list-labels2.d.mts.map +1 -0
- package/dist/actions/list-labels2.mjs +28 -0
- package/dist/actions/list-labels2.mjs.map +1 -0
- package/dist/actions/list-messages.cjs +68 -0
- package/dist/actions/list-messages.cjs.map +1 -0
- package/dist/actions/list-messages.d.cts +9 -0
- package/dist/actions/list-messages.d.cts.map +1 -0
- package/dist/actions/list-messages.d.mts +9 -0
- package/dist/actions/list-messages.d.mts.map +1 -0
- package/dist/actions/list-messages.mjs +67 -0
- package/dist/actions/list-messages.mjs.map +1 -0
- package/dist/actions/list-resthook-events.cjs +28 -0
- package/dist/actions/list-resthook-events.cjs.map +1 -0
- package/dist/actions/list-resthook-events.d.cts +9 -0
- package/dist/actions/list-resthook-events.d.cts.map +1 -0
- package/dist/actions/list-resthook-events.d.mts +9 -0
- package/dist/actions/list-resthook-events.d.mts.map +1 -0
- package/dist/actions/list-resthook-events.mjs +27 -0
- package/dist/actions/list-resthook-events.mjs.map +1 -0
- package/dist/actions/list-resthook-subscribers.cjs +29 -0
- package/dist/actions/list-resthook-subscribers.cjs.map +1 -0
- package/dist/actions/list-resthook-subscribers.d.cts +9 -0
- package/dist/actions/list-resthook-subscribers.d.cts.map +1 -0
- package/dist/actions/list-resthook-subscribers.d.mts +9 -0
- package/dist/actions/list-resthook-subscribers.d.mts.map +1 -0
- package/dist/actions/list-resthook-subscribers.mjs +28 -0
- package/dist/actions/list-resthook-subscribers.mjs.map +1 -0
- package/dist/actions/list-resthooks.cjs +29 -0
- package/dist/actions/list-resthooks.cjs.map +1 -0
- package/dist/actions/list-resthooks.d.cts +9 -0
- package/dist/actions/list-resthooks.d.cts.map +1 -0
- package/dist/actions/list-resthooks.d.mts +9 -0
- package/dist/actions/list-resthooks.d.mts.map +1 -0
- package/dist/actions/list-resthooks.mjs +28 -0
- package/dist/actions/list-resthooks.mjs.map +1 -0
- package/dist/actions/list-runs.cjs +45 -0
- package/dist/actions/list-runs.cjs.map +1 -0
- package/dist/actions/list-runs.d.cts +9 -0
- package/dist/actions/list-runs.d.cts.map +1 -0
- package/dist/actions/list-runs.d.mts +9 -0
- package/dist/actions/list-runs.d.mts.map +1 -0
- package/dist/actions/list-runs.mjs +44 -0
- package/dist/actions/list-runs.mjs.map +1 -0
- package/dist/actions/list-tickets.cjs +55 -0
- package/dist/actions/list-tickets.cjs.map +1 -0
- package/dist/actions/list-tickets.d.cts +9 -0
- package/dist/actions/list-tickets.d.cts.map +1 -0
- package/dist/actions/list-tickets.d.mts +9 -0
- package/dist/actions/list-tickets.d.mts.map +1 -0
- package/dist/actions/list-tickets.mjs +54 -0
- package/dist/actions/list-tickets.mjs.map +1 -0
- package/dist/actions/list-topics2.cjs +34 -0
- package/dist/actions/list-topics2.cjs.map +1 -0
- package/dist/actions/list-topics2.d.cts +9 -0
- package/dist/actions/list-topics2.d.cts.map +1 -0
- package/dist/actions/list-topics2.d.mts +9 -0
- package/dist/actions/list-topics2.d.mts.map +1 -0
- package/dist/actions/list-topics2.mjs +33 -0
- package/dist/actions/list-topics2.mjs.map +1 -0
- package/dist/actions/list-users.cjs +37 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +36 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/send-broadcast.cjs +42 -0
- package/dist/actions/send-broadcast.cjs.map +1 -0
- package/dist/actions/send-broadcast.d.cts +9 -0
- package/dist/actions/send-broadcast.d.cts.map +1 -0
- package/dist/actions/send-broadcast.d.mts +9 -0
- package/dist/actions/send-broadcast.d.mts.map +1 -0
- package/dist/actions/send-broadcast.mjs +41 -0
- package/dist/actions/send-broadcast.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +40 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +39 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +34 -0
- package/dist/index.d.mts +34 -0
- package/dist/index.mjs +35 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/textit
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `textit`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 31
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { textitCreateCampaign } from "@keystrokehq/textit/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "textit-agent",
|
|
15
|
+
tools: [textitCreateCampaign],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.textit.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeTextitTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["textit","executeTextitTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { textit } from \"./app\";\nimport { executeTextitTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return textit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTextitTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { textit } from "./app.mjs";
|
|
2
|
+
import { executeTextitTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return textit.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeTextitTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { textit } from \"./app\";\nimport { executeTextitTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return textit.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTextitTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-campaign.ts
|
|
4
|
+
const TextitCreateCampaignInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the campaign"),
|
|
6
|
+
group: zod.z.string().describe("UUID of the contact group to associate with the campaign")
|
|
7
|
+
}).describe("Request model for creating a campaign in TextIt.");
|
|
8
|
+
const TextitCreateCampaign_GroupSchema = zod.z.object({
|
|
9
|
+
name: zod.z.string().describe("Name of the group."),
|
|
10
|
+
uuid: zod.z.string().describe("UUID of the group.")
|
|
11
|
+
}).describe("Nested group object within a campaign response.");
|
|
12
|
+
const TextitCreateCampaignOutput = zod.z.object({
|
|
13
|
+
name: zod.z.string().describe("Name of the campaign"),
|
|
14
|
+
uuid: zod.z.string().describe("UUID of the created campaign"),
|
|
15
|
+
group: TextitCreateCampaign_GroupSchema.nullable(),
|
|
16
|
+
archived: zod.z.boolean().describe("Whether the campaign is archived"),
|
|
17
|
+
created_on: zod.z.string().describe("UTC timestamp when the campaign was created")
|
|
18
|
+
}).describe("Response model for a created campaign.");
|
|
19
|
+
const textitCreateCampaign = require_action.action("TEXTIT_CREATE_CAMPAIGN", {
|
|
20
|
+
slug: "textit-create-campaign",
|
|
21
|
+
name: "Create Campaign",
|
|
22
|
+
description: "Tool to create a new campaign in TextIt. Use when you need to start a messaging campaign for a specific contact group.",
|
|
23
|
+
input: TextitCreateCampaignInput,
|
|
24
|
+
output: TextitCreateCampaignOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.textitCreateCampaign = textitCreateCampaign;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=create-campaign.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.cjs","names":["z","action"],"sources":["../../src/actions/create-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateCampaignInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\"),\n group: z.string().describe(\"UUID of the contact group to associate with the campaign\"),\n}).describe(\"Request model for creating a campaign in TextIt.\");\nconst TextitCreateCampaign_GroupSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group.\"),\n uuid: z.string().describe(\"UUID of the group.\"),\n}).describe(\"Nested group object within a campaign response.\");\nexport const TextitCreateCampaignOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\"),\n uuid: z.string().describe(\"UUID of the created campaign\"),\n group: TextitCreateCampaign_GroupSchema.nullable(),\n archived: z.boolean().describe(\"Whether the campaign is archived\"),\n created_on: z.string().describe(\"UTC timestamp when the campaign was created\"),\n}).describe(\"Response model for a created campaign.\");\n\nexport const textitCreateCampaign = action(\"TEXTIT_CREATE_CAMPAIGN\", {\n slug: \"textit-create-campaign\",\n name: \"Create Campaign\",\n description: \"Tool to create a new campaign in TextIt. Use when you need to start a messaging campaign for a specific contact group.\",\n input: TextitCreateCampaignInput,\n output: TextitCreateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACvF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAChD,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,OAAO,iCAAiC,SAAS;CACjD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAC/E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-campaign.d.ts
|
|
4
|
+
declare const TextitCreateCampaignInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateCampaign };
|
|
9
|
+
//# sourceMappingURL=create-campaign.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.d.cts","names":[],"sources":["../../src/actions/create-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGqB;AAAA,cAKlD,0BAAA,EAA4B,CAAA,CAAE,UAMU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-campaign.d.ts
|
|
4
|
+
declare const TextitCreateCampaignInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateCampaignOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateCampaign };
|
|
9
|
+
//# sourceMappingURL=create-campaign.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.d.mts","names":[],"sources":["../../src/actions/create-campaign.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGqB;AAAA,cAKlD,0BAAA,EAA4B,CAAA,CAAE,UAMU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-campaign.ts
|
|
4
|
+
const TextitCreateCampaignInput = z.object({
|
|
5
|
+
name: z.string().describe("Name of the campaign"),
|
|
6
|
+
group: z.string().describe("UUID of the contact group to associate with the campaign")
|
|
7
|
+
}).describe("Request model for creating a campaign in TextIt.");
|
|
8
|
+
const TextitCreateCampaign_GroupSchema = z.object({
|
|
9
|
+
name: z.string().describe("Name of the group."),
|
|
10
|
+
uuid: z.string().describe("UUID of the group.")
|
|
11
|
+
}).describe("Nested group object within a campaign response.");
|
|
12
|
+
const textitCreateCampaign = action("TEXTIT_CREATE_CAMPAIGN", {
|
|
13
|
+
slug: "textit-create-campaign",
|
|
14
|
+
name: "Create Campaign",
|
|
15
|
+
description: "Tool to create a new campaign in TextIt. Use when you need to start a messaging campaign for a specific contact group.",
|
|
16
|
+
input: TextitCreateCampaignInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
name: z.string().describe("Name of the campaign"),
|
|
19
|
+
uuid: z.string().describe("UUID of the created campaign"),
|
|
20
|
+
group: TextitCreateCampaign_GroupSchema.nullable(),
|
|
21
|
+
archived: z.boolean().describe("Whether the campaign is archived"),
|
|
22
|
+
created_on: z.string().describe("UTC timestamp when the campaign was created")
|
|
23
|
+
}).describe("Response model for a created campaign.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { textitCreateCampaign };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=create-campaign.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-campaign.mjs","names":[],"sources":["../../src/actions/create-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateCampaignInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\"),\n group: z.string().describe(\"UUID of the contact group to associate with the campaign\"),\n}).describe(\"Request model for creating a campaign in TextIt.\");\nconst TextitCreateCampaign_GroupSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group.\"),\n uuid: z.string().describe(\"UUID of the group.\"),\n}).describe(\"Nested group object within a campaign response.\");\nexport const TextitCreateCampaignOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\"),\n uuid: z.string().describe(\"UUID of the created campaign\"),\n group: TextitCreateCampaign_GroupSchema.nullable(),\n archived: z.boolean().describe(\"Whether the campaign is archived\"),\n created_on: z.string().describe(\"UTC timestamp when the campaign was created\"),\n}).describe(\"Response model for a created campaign.\");\n\nexport const textitCreateCampaign = action(\"TEXTIT_CREATE_CAMPAIGN\", {\n slug: \"textit-create-campaign\",\n name: \"Create Campaign\",\n description: \"Tool to create a new campaign in TextIt. Use when you need to start a messaging campaign for a specific contact group.\",\n input: TextitCreateCampaignInput,\n output: TextitCreateCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACvF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAChD,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAS7D,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACxD,OAAO,iCAAiC,SAAS;EACjD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-group.ts
|
|
4
|
+
const TextitCreateGroupInput = zod.z.object({ name: zod.z.string().describe("Name of the new contact group") }).describe("Parameters to create a new contact group.");
|
|
5
|
+
const TextitCreateGroupOutput = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the group"),
|
|
7
|
+
uuid: zod.z.string().describe("Unique identifier of the group"),
|
|
8
|
+
count: zod.z.number().int().describe("Number of contacts in the group"),
|
|
9
|
+
query: zod.z.string().describe("Query string for dynamic groups, or null for static groups").nullable().optional(),
|
|
10
|
+
status: zod.z.string().describe("Status of the group (e.g., 'initializing', 'evaluating', 'ready')"),
|
|
11
|
+
system: zod.z.boolean().describe("Whether this is a system-managed group")
|
|
12
|
+
}).describe("Response schema for a created contact group.");
|
|
13
|
+
const textitCreateGroup = require_action.action("TEXTIT_CREATE_GROUP", {
|
|
14
|
+
slug: "textit-create-group",
|
|
15
|
+
name: "Create Contact Group",
|
|
16
|
+
description: "Tool to create a new contact group. Use when segmenting contacts before sending messages.",
|
|
17
|
+
input: TextitCreateGroupInput,
|
|
18
|
+
output: TextitCreateGroupOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.textitCreateGroup = textitCreateGroup;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=create-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.cjs","names":["z","action"],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the new contact group\"),\n}).describe(\"Parameters to create a new contact group.\");\nexport const TextitCreateGroupOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group\"),\n uuid: z.string().describe(\"Unique identifier of the group\"),\n count: z.number().int().describe(\"Number of contacts in the group\"),\n query: z.string().describe(\"Query string for dynamic groups, or null for static groups\").nullable().optional(),\n status: z.string().describe(\"Status of the group (e.g., 'initializing', 'evaluating', 'ready')\"),\n system: z.boolean().describe(\"Whether this is a system-managed group\"),\n}).describe(\"Response schema for a created contact group.\");\n\nexport const textitCreateGroup = action(\"TEXTIT_CREATE_GROUP\", {\n slug: \"textit-create-group\",\n name: \"Create Contact Group\",\n description: \"Tool to create a new contact group. Use when segmenting contacts before sending messages.\",\n input: TextitCreateGroupInput,\n output: TextitCreateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC/F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;AACvE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-group.d.ts
|
|
4
|
+
declare const TextitCreateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateGroup };
|
|
9
|
+
//# sourceMappingURL=create-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.d.cts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEiB;AAAA,cAC3C,uBAAA,EAAyB,CAAA,CAAE,UAOmB;AAAA,cAE9C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-group.d.ts
|
|
4
|
+
declare const TextitCreateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateGroup };
|
|
9
|
+
//# sourceMappingURL=create-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.d.mts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEiB;AAAA,cAC3C,uBAAA,EAAyB,CAAA,CAAE,UAOmB;AAAA,cAE9C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const textitCreateGroup = action("TEXTIT_CREATE_GROUP", {
|
|
4
|
+
slug: "textit-create-group",
|
|
5
|
+
name: "Create Contact Group",
|
|
6
|
+
description: "Tool to create a new contact group. Use when segmenting contacts before sending messages.",
|
|
7
|
+
input: z.object({ name: z.string().describe("Name of the new contact group") }).describe("Parameters to create a new contact group."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
name: z.string().describe("Name of the group"),
|
|
10
|
+
uuid: z.string().describe("Unique identifier of the group"),
|
|
11
|
+
count: z.number().int().describe("Number of contacts in the group"),
|
|
12
|
+
query: z.string().describe("Query string for dynamic groups, or null for static groups").nullable().optional(),
|
|
13
|
+
status: z.string().describe("Status of the group (e.g., 'initializing', 'evaluating', 'ready')"),
|
|
14
|
+
system: z.boolean().describe("Whether this is a system-managed group")
|
|
15
|
+
}).describe("Response schema for a created contact group.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { textitCreateGroup };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=create-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.mjs","names":[],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the new contact group\"),\n}).describe(\"Parameters to create a new contact group.\");\nexport const TextitCreateGroupOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group\"),\n uuid: z.string().describe(\"Unique identifier of the group\"),\n count: z.number().int().describe(\"Number of contacts in the group\"),\n query: z.string().describe(\"Query string for dynamic groups, or null for static groups\").nullable().optional(),\n status: z.string().describe(\"Status of the group (e.g., 'initializing', 'evaluating', 'ready')\"),\n system: z.boolean().describe(\"Whether this is a system-managed group\"),\n}).describe(\"Response schema for a created contact group.\");\n\nexport const textitCreateGroup = action(\"TEXTIT_CREATE_GROUP\", {\n slug: \"textit-create-group\",\n name: \"Create Contact Group\",\n description: \"Tool to create a new contact group. Use when segmenting contacts before sending messages.\",\n input: TextitCreateGroupInput,\n output: TextitCreateGroupOutput,\n});\n"],"mappings":";;AAgBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO,EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAcH;CACP,QAdmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC/F,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACvE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-label.ts
|
|
4
|
+
const TextitCreateLabelInput = zod.z.object({ name: zod.z.string().describe("Name of the label to create") }).describe("Request model for CreateLabel action.");
|
|
5
|
+
const TextitCreateLabelOutput = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the created label"),
|
|
7
|
+
uuid: zod.z.string().describe("Unique identifier of the created label"),
|
|
8
|
+
count: zod.z.number().int().describe("Number of messages with this label (starts at 0)")
|
|
9
|
+
}).describe("Response model for CreateLabel action.");
|
|
10
|
+
const textitCreateLabel = require_action.action("TEXTIT_CREATE_LABEL", {
|
|
11
|
+
slug: "textit-create-label",
|
|
12
|
+
name: "Create Label",
|
|
13
|
+
description: "Tool to create a new message label. Use when you need to categorize messages. Example: Create a label 'Important'. Creates a label under your organization using the TextIt Labels API.",
|
|
14
|
+
input: TextitCreateLabelInput,
|
|
15
|
+
output: TextitCreateLabelOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.textitCreateLabel = textitCreateLabel;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=create-label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-label.cjs","names":["z","action"],"sources":["../../src/actions/create-label.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateLabelInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label to create\"),\n}).describe(\"Request model for CreateLabel action.\");\nexport const TextitCreateLabelOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the created label\"),\n uuid: z.string().describe(\"Unique identifier of the created label\"),\n count: z.number().int().describe(\"Number of messages with this label (starts at 0)\"),\n}).describe(\"Response model for CreateLabel action.\");\n\nexport const textitCreateLabel = action(\"TEXTIT_CREATE_LABEL\", {\n slug: \"textit-create-label\",\n name: \"Create Label\",\n description: \"Tool to create a new message label. Use when you need to categorize messages. Example: Create a label 'Important'. Creates a label under your organization using the TextIt Labels API.\",\n input: TextitCreateLabelInput,\n output: TextitCreateLabelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACzD,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-label.d.ts
|
|
4
|
+
declare const TextitCreateLabelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateLabelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateLabel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateLabel };
|
|
9
|
+
//# sourceMappingURL=create-label.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-label.d.cts","names":[],"sources":["../../src/actions/create-label.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEa;AAAA,cACvC,uBAAA,EAAyB,CAAA,CAAE,UAIa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-label.d.ts
|
|
4
|
+
declare const TextitCreateLabelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitCreateLabelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitCreateLabel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitCreateLabel };
|
|
9
|
+
//# sourceMappingURL=create-label.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-label.d.mts","names":[],"sources":["../../src/actions/create-label.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEa;AAAA,cACvC,uBAAA,EAAyB,CAAA,CAAE,UAIa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const textitCreateLabel = action("TEXTIT_CREATE_LABEL", {
|
|
4
|
+
slug: "textit-create-label",
|
|
5
|
+
name: "Create Label",
|
|
6
|
+
description: "Tool to create a new message label. Use when you need to categorize messages. Example: Create a label 'Important'. Creates a label under your organization using the TextIt Labels API.",
|
|
7
|
+
input: z.object({ name: z.string().describe("Name of the label to create") }).describe("Request model for CreateLabel action."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
name: z.string().describe("Name of the created label"),
|
|
10
|
+
uuid: z.string().describe("Unique identifier of the created label"),
|
|
11
|
+
count: z.number().int().describe("Number of messages with this label (starts at 0)")
|
|
12
|
+
}).describe("Response model for CreateLabel action.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { textitCreateLabel };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=create-label.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-label.mjs","names":[],"sources":["../../src/actions/create-label.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitCreateLabelInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label to create\"),\n}).describe(\"Request model for CreateLabel action.\");\nexport const TextitCreateLabelOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the created label\"),\n uuid: z.string().describe(\"Unique identifier of the created label\"),\n count: z.number().int().describe(\"Number of messages with this label (starts at 0)\"),\n}).describe(\"Response model for CreateLabel action.\");\n\nexport const textitCreateLabel = action(\"TEXTIT_CREATE_LABEL\", {\n slug: \"textit-create-label\",\n name: \"Create Label\",\n description: \"Tool to create a new message label. Use when you need to categorize messages. Example: Create a label 'Important'. Creates a label under your organization using the TextIt Labels API.\",\n input: TextitCreateLabelInput,\n output: TextitCreateLabelOutput,\n});\n"],"mappings":";;AAaA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO,EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACzD,CAAC,CAAC,CAAC,SAAS,uCAWH;CACP,QAXmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACrF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-contact.ts
|
|
4
|
+
const TextitDeleteContactInput = zod.z.object({ uuid: zod.z.string().describe("The unique UUID of the contact to delete.") }).describe("Request model for deleting a contact.");
|
|
5
|
+
const TextitDeleteContactOutput = zod.z.object({ deleted: zod.z.boolean().describe("Indicates whether the contact was successfully deleted.") }).describe("Response model for deleting a contact.");
|
|
6
|
+
const textitDeleteContact = require_action.action("TEXTIT_DELETE_CONTACT", {
|
|
7
|
+
slug: "textit-delete-contact",
|
|
8
|
+
name: "Delete Contact",
|
|
9
|
+
description: "Tool to delete an existing contact. Use when you have the contact's UUID and need to remove it.",
|
|
10
|
+
input: TextitDeleteContactInput,
|
|
11
|
+
output: TextitDeleteContactOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.textitDeleteContact = textitDeleteContact;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-contact.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteContactInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique UUID of the contact to delete.\"),\n}).describe(\"Request model for deleting a contact.\");\nexport const TextitDeleteContactOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Indicates whether the contact was successfully deleted.\"),\n}).describe(\"Response model for deleting a contact.\");\n\nexport const textitDeleteContact = action(\"TEXTIT_DELETE_CONTACT\", {\n slug: \"textit-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete an existing contact. Use when you have the contact's UUID and need to remove it.\",\n input: TextitDeleteContactInput,\n output: TextitDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EACvE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-contact.d.ts
|
|
4
|
+
declare const TextitDeleteContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteContact };
|
|
9
|
+
//# sourceMappingURL=delete-contact.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAEW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-contact.d.ts
|
|
4
|
+
declare const TextitDeleteContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteContact };
|
|
9
|
+
//# sourceMappingURL=delete-contact.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEW;AAAA,cACvC,yBAAA,EAA2B,CAAA,CAAE,UAEW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const textitDeleteContact = action("TEXTIT_DELETE_CONTACT", {
|
|
4
|
+
slug: "textit-delete-contact",
|
|
5
|
+
name: "Delete Contact",
|
|
6
|
+
description: "Tool to delete an existing contact. Use when you have the contact's UUID and need to remove it.",
|
|
7
|
+
input: z.object({ uuid: z.string().describe("The unique UUID of the contact to delete.") }).describe("Request model for deleting a contact."),
|
|
8
|
+
output: z.object({ deleted: z.boolean().describe("Indicates whether the contact was successfully deleted.") }).describe("Response model for deleting a contact.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { textitDeleteContact };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-contact.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteContactInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The unique UUID of the contact to delete.\"),\n}).describe(\"Request model for deleting a contact.\");\nexport const TextitDeleteContactOutput: z.ZodTypeAny = z.object({\n deleted: z.boolean().describe(\"Indicates whether the contact was successfully deleted.\"),\n}).describe(\"Response model for deleting a contact.\");\n\nexport const textitDeleteContact = action(\"TEXTIT_DELETE_CONTACT\", {\n slug: \"textit-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to delete an existing contact. Use when you have the contact's UUID and need to remove it.\",\n input: TextitDeleteContactInput,\n output: TextitDeleteContactOutput,\n});\n"],"mappings":";;AAWA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXoD,EAAE,OAAO,EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EACvE,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-group.ts
|
|
4
|
+
const TextitDeleteGroupInput = zod.z.object({ uuid: zod.z.string().describe("The UUID of the contact group to delete") }).describe("Request parameters for deleting a TextIt contact group.");
|
|
5
|
+
const TextitDeleteGroupOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Optional message describing the result").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if the group was successfully deleted")
|
|
8
|
+
}).describe("Response schema for delete group action.");
|
|
9
|
+
const textitDeleteGroup = require_action.action("TEXTIT_DELETE_GROUP", {
|
|
10
|
+
slug: "textit-delete-group",
|
|
11
|
+
name: "Delete Contact Group",
|
|
12
|
+
description: "Tool to delete an existing contact group. Use after ensuring the group has no active triggers or campaigns.",
|
|
13
|
+
input: TextitDeleteGroupInput,
|
|
14
|
+
output: TextitDeleteGroupOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.textitDeleteGroup = textitDeleteGroup;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-group.cjs","names":["z","action"],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteGroupInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The UUID of the contact group to delete\"),\n}).describe(\"Request parameters for deleting a TextIt contact group.\");\nexport const TextitDeleteGroupOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the group was successfully deleted\"),\n}).describe(\"Response schema for delete group action.\");\n\nexport const textitDeleteGroup = action(\"TEXTIT_DELETE_GROUP\", {\n slug: \"textit-delete-group\",\n name: \"Delete Contact Group\",\n description: \"Tool to delete an existing contact group. Use after ensuring the group has no active triggers or campaigns.\",\n input: TextitDeleteGroupInput,\n output: TextitDeleteGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACrE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;AACjF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-group.d.ts
|
|
4
|
+
declare const TextitDeleteGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteGroup };
|
|
9
|
+
//# sourceMappingURL=delete-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-group.d.cts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cACzD,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-group.d.ts
|
|
4
|
+
declare const TextitDeleteGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteGroup };
|
|
9
|
+
//# sourceMappingURL=delete-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-group.d.mts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cACzD,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const textitDeleteGroup = action("TEXTIT_DELETE_GROUP", {
|
|
4
|
+
slug: "textit-delete-group",
|
|
5
|
+
name: "Delete Contact Group",
|
|
6
|
+
description: "Tool to delete an existing contact group. Use after ensuring the group has no active triggers or campaigns.",
|
|
7
|
+
input: z.object({ uuid: z.string().describe("The UUID of the contact group to delete") }).describe("Request parameters for deleting a TextIt contact group."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Optional message describing the result").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if the group was successfully deleted")
|
|
11
|
+
}).describe("Response schema for delete group action.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { textitDeleteGroup };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-group.mjs","names":[],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteGroupInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The UUID of the contact group to delete\"),\n}).describe(\"Request parameters for deleting a TextIt contact group.\");\nexport const TextitDeleteGroupOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the group was successfully deleted\"),\n}).describe(\"Response schema for delete group action.\");\n\nexport const textitDeleteGroup = action(\"TEXTIT_DELETE_GROUP\", {\n slug: \"textit-delete-group\",\n name: \"Delete Contact Group\",\n description: \"Tool to delete an existing contact group. Use after ensuring the group has no active triggers or campaigns.\",\n input: TextitDeleteGroupInput,\n output: TextitDeleteGroupOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkD,EAAE,OAAO,EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACrE,CAAC,CAAC,CAAC,SAAS,yDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CACjF,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-label.ts
|
|
4
|
+
const TextitDeleteLabelInput = zod.z.object({ uuid: zod.z.string().describe("UUID of the label to delete") }).describe("Request parameters for deleting a TextIt message label.");
|
|
5
|
+
const TextitDeleteLabelOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Optional message describing the result").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if the label was successfully deleted")
|
|
8
|
+
}).describe("Response schema for delete label action.");
|
|
9
|
+
const textitDeleteLabel = require_action.action("TEXTIT_DELETE_LABEL", {
|
|
10
|
+
slug: "textit-delete-label",
|
|
11
|
+
name: "Delete Label",
|
|
12
|
+
description: "Tool to delete a message label by UUID. Use when you need to remove an existing label from your TextIt workspace.",
|
|
13
|
+
input: TextitDeleteLabelInput,
|
|
14
|
+
output: TextitDeleteLabelOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.textitDeleteLabel = textitDeleteLabel;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-label.cjs","names":["z","action"],"sources":["../../src/actions/delete-label.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteLabelInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the label to delete\"),\n}).describe(\"Request parameters for deleting a TextIt message label.\");\nexport const TextitDeleteLabelOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the label was successfully deleted\"),\n}).describe(\"Response schema for delete label action.\");\n\nexport const textitDeleteLabel = action(\"TEXTIT_DELETE_LABEL\", {\n slug: \"textit-delete-label\",\n name: \"Delete Label\",\n description: \"Tool to delete a message label by UUID. Use when you need to remove an existing label from your TextIt workspace.\",\n input: TextitDeleteLabelInput,\n output: TextitDeleteLabelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACzD,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;AACjF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-label.d.ts
|
|
4
|
+
declare const TextitDeleteLabelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteLabelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteLabel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteLabel };
|
|
9
|
+
//# sourceMappingURL=delete-label.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-label.d.cts","names":[],"sources":["../../src/actions/delete-label.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cACzD,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-label.d.ts
|
|
4
|
+
declare const TextitDeleteLabelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitDeleteLabelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitDeleteLabel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitDeleteLabel };
|
|
9
|
+
//# sourceMappingURL=delete-label.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-label.d.mts","names":[],"sources":["../../src/actions/delete-label.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cACzD,uBAAA,EAAyB,CAAA,CAAE,UAGe;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const textitDeleteLabel = action("TEXTIT_DELETE_LABEL", {
|
|
4
|
+
slug: "textit-delete-label",
|
|
5
|
+
name: "Delete Label",
|
|
6
|
+
description: "Tool to delete a message label by UUID. Use when you need to remove an existing label from your TextIt workspace.",
|
|
7
|
+
input: z.object({ uuid: z.string().describe("UUID of the label to delete") }).describe("Request parameters for deleting a TextIt message label."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Optional message describing the result").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if the label was successfully deleted")
|
|
11
|
+
}).describe("Response schema for delete label action.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { textitDeleteLabel };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-label.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-label.mjs","names":[],"sources":["../../src/actions/delete-label.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitDeleteLabelInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"UUID of the label to delete\"),\n}).describe(\"Request parameters for deleting a TextIt message label.\");\nexport const TextitDeleteLabelOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the label was successfully deleted\"),\n}).describe(\"Response schema for delete label action.\");\n\nexport const textitDeleteLabel = action(\"TEXTIT_DELETE_LABEL\", {\n slug: \"textit-delete-label\",\n name: \"Delete Label\",\n description: \"Tool to delete a message label by UUID. Use when you need to remove an existing label from your TextIt workspace.\",\n input: TextitDeleteLabelInput,\n output: TextitDeleteLabelOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkD,EAAE,OAAO,EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,EACzD,CAAC,CAAC,CAAC,SAAS,yDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CACjF,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|