@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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-campaign-events2.ts
|
|
4
|
+
const TextitListCampaignEvents2Input = zod.z.object({
|
|
5
|
+
uuid: zod.z.string().describe("Filter by event UUID").optional(),
|
|
6
|
+
cursor: zod.z.string().describe("Cursor for pagination. Extract from the 'next' URL of previous response.").optional(),
|
|
7
|
+
campaign: zod.z.string().describe("Filter by campaign UUID").optional()
|
|
8
|
+
}).describe("Request model for listing campaign events with optional filtering by UUID or campaign.");
|
|
9
|
+
const TextitListCampaignEvents2_FlowObjectSchema = zod.z.object({
|
|
10
|
+
name: zod.z.string().describe("Name of the flow").nullable().optional(),
|
|
11
|
+
uuid: zod.z.string().describe("UUID of the flow").nullable().optional()
|
|
12
|
+
}).describe("Nested flow object within a campaign event.");
|
|
13
|
+
const TextitListCampaignEvents2_MessageObjectSchema = zod.z.object({
|
|
14
|
+
text: zod.z.string().describe("Text content of the message").nullable().optional(),
|
|
15
|
+
uuid: zod.z.string().describe("UUID of the message").nullable().optional()
|
|
16
|
+
}).describe("Nested message object within a campaign event.");
|
|
17
|
+
const TextitListCampaignEvents2_CampaignObjectSchema = zod.z.object({
|
|
18
|
+
name: zod.z.string().describe("Name of the campaign").nullable().optional(),
|
|
19
|
+
uuid: zod.z.string().describe("UUID of the campaign").nullable().optional()
|
|
20
|
+
}).describe("Nested campaign object within a campaign event.");
|
|
21
|
+
const TextitListCampaignEvents2_RelativeToObjectSchema = zod.z.object({
|
|
22
|
+
key: zod.z.string().describe("Key of the field").nullable().optional(),
|
|
23
|
+
label: zod.z.string().describe("Label of the field").nullable().optional()
|
|
24
|
+
}).describe("Nested relative_to object within a campaign event.");
|
|
25
|
+
const TextitListCampaignEvents2_CampaignEventSchema = zod.z.object({
|
|
26
|
+
flow: TextitListCampaignEvents2_FlowObjectSchema.nullable().optional(),
|
|
27
|
+
unit: zod.z.string().describe("Time unit for offset (e.g., 'D' for days, 'W' for weeks)").nullable().optional(),
|
|
28
|
+
uuid: zod.z.string().describe("Unique identifier for the campaign event").nullable().optional(),
|
|
29
|
+
offset: zod.z.number().int().describe("Number of time units before/after relative_to when the event triggers").nullable().optional(),
|
|
30
|
+
message: TextitListCampaignEvents2_MessageObjectSchema.nullable().optional(),
|
|
31
|
+
campaign: TextitListCampaignEvents2_CampaignObjectSchema.nullable().optional(),
|
|
32
|
+
created_on: zod.z.string().describe("ISO8601 timestamp when the event was created").nullable().optional(),
|
|
33
|
+
relative_to: TextitListCampaignEvents2_RelativeToObjectSchema.nullable().optional(),
|
|
34
|
+
delivery_hour: zod.z.number().int().describe("Hour of day (0-23) when the event will be delivered").nullable().optional()
|
|
35
|
+
}).describe("Detailed information about a single campaign event.");
|
|
36
|
+
const TextitListCampaignEvents2Output = zod.z.object({
|
|
37
|
+
next: zod.z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
38
|
+
results: zod.z.array(TextitListCampaignEvents2_CampaignEventSchema).describe("List of campaign event objects").nullable().optional(),
|
|
39
|
+
previous: zod.z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
40
|
+
}).describe("Paginated response model for a list of campaign events.");
|
|
41
|
+
const textitListCampaignEvents2 = require_action.action("TEXTIT_LIST_CAMPAIGN_EVENTS2", {
|
|
42
|
+
slug: "textit-list-campaign-events2",
|
|
43
|
+
name: "List Campaign Events 2",
|
|
44
|
+
description: "Tool to retrieve campaign events with optional filtering. Use when you need to list scheduled triggers within campaigns, optionally filtering by event UUID or campaign UUID.",
|
|
45
|
+
input: TextitListCampaignEvents2Input,
|
|
46
|
+
output: TextitListCampaignEvents2Output
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.textitListCampaignEvents2 = textitListCampaignEvents2;
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=list-campaign-events2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaign-events2.cjs","names":["z","action"],"sources":["../../src/actions/list-campaign-events2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListCampaignEvents2Input: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter by event UUID\").optional(),\n cursor: z.string().describe(\"Cursor for pagination. Extract from the 'next' URL of previous response.\").optional(),\n campaign: z.string().describe(\"Filter by campaign UUID\").optional(),\n}).describe(\"Request model for listing campaign events with optional filtering by UUID or campaign.\");\nconst TextitListCampaignEvents2_FlowObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the flow\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the flow\").nullable().optional(),\n}).describe(\"Nested flow object within a campaign event.\");\nconst TextitListCampaignEvents2_MessageObjectSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Text content of the message\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the message\").nullable().optional(),\n}).describe(\"Nested message object within a campaign event.\");\nconst TextitListCampaignEvents2_CampaignObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the campaign\").nullable().optional(),\n}).describe(\"Nested campaign object within a campaign event.\");\nconst TextitListCampaignEvents2_RelativeToObjectSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Key of the field\").nullable().optional(),\n label: z.string().describe(\"Label of the field\").nullable().optional(),\n}).describe(\"Nested relative_to object within a campaign event.\");\nconst TextitListCampaignEvents2_CampaignEventSchema: z.ZodTypeAny = z.object({\n flow: TextitListCampaignEvents2_FlowObjectSchema.nullable().optional(),\n unit: z.string().describe(\"Time unit for offset (e.g., 'D' for days, 'W' for weeks)\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the campaign event\").nullable().optional(),\n offset: z.number().int().describe(\"Number of time units before/after relative_to when the event triggers\").nullable().optional(),\n message: TextitListCampaignEvents2_MessageObjectSchema.nullable().optional(),\n campaign: TextitListCampaignEvents2_CampaignObjectSchema.nullable().optional(),\n created_on: z.string().describe(\"ISO8601 timestamp when the event was created\").nullable().optional(),\n relative_to: TextitListCampaignEvents2_RelativeToObjectSchema.nullable().optional(),\n delivery_hour: z.number().int().describe(\"Hour of day (0-23) when the event will be delivered\").nullable().optional(),\n}).describe(\"Detailed information about a single campaign event.\");\nexport const TextitListCampaignEvents2Output: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n results: z.array(TextitListCampaignEvents2_CampaignEventSchema).describe(\"List of campaign event objects\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated response model for a list of campaign events.\");\n\nexport const textitListCampaignEvents2 = action(\"TEXTIT_LIST_CAMPAIGN_EVENTS2\", {\n slug: \"textit-list-campaign-events2\",\n name: \"List Campaign Events 2\",\n description: \"Tool to retrieve campaign events with optional filtering. Use when you need to list scheduled triggers within campaigns, optionally filtering by event UUID or campaign UUID.\",\n input: TextitListCampaignEvents2Input,\n output: TextitListCampaignEvents2Output,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-campaign-events2.d.ts
|
|
4
|
+
declare const TextitListCampaignEvents2Input: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListCampaignEvents2Output: z.ZodTypeAny;
|
|
6
|
+
declare const textitListCampaignEvents2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListCampaignEvents2 };
|
|
9
|
+
//# sourceMappingURL=list-campaign-events2.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaign-events2.d.cts","names":[],"sources":["../../src/actions/list-campaign-events2.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIsD;AAAA,cA4BxF,+BAAA,EAAiC,CAAA,CAAE,UAIsB;AAAA,cAEzD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-campaign-events2.d.ts
|
|
4
|
+
declare const TextitListCampaignEvents2Input: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListCampaignEvents2Output: z.ZodTypeAny;
|
|
6
|
+
declare const textitListCampaignEvents2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListCampaignEvents2 };
|
|
9
|
+
//# sourceMappingURL=list-campaign-events2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaign-events2.d.mts","names":[],"sources":["../../src/actions/list-campaign-events2.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIsD;AAAA,cA4BxF,+BAAA,EAAiC,CAAA,CAAE,UAIsB;AAAA,cAEzD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-campaign-events2.ts
|
|
4
|
+
const TextitListCampaignEvents2Input = z.object({
|
|
5
|
+
uuid: z.string().describe("Filter by event UUID").optional(),
|
|
6
|
+
cursor: z.string().describe("Cursor for pagination. Extract from the 'next' URL of previous response.").optional(),
|
|
7
|
+
campaign: z.string().describe("Filter by campaign UUID").optional()
|
|
8
|
+
}).describe("Request model for listing campaign events with optional filtering by UUID or campaign.");
|
|
9
|
+
const TextitListCampaignEvents2_FlowObjectSchema = z.object({
|
|
10
|
+
name: z.string().describe("Name of the flow").nullable().optional(),
|
|
11
|
+
uuid: z.string().describe("UUID of the flow").nullable().optional()
|
|
12
|
+
}).describe("Nested flow object within a campaign event.");
|
|
13
|
+
const TextitListCampaignEvents2_MessageObjectSchema = z.object({
|
|
14
|
+
text: z.string().describe("Text content of the message").nullable().optional(),
|
|
15
|
+
uuid: z.string().describe("UUID of the message").nullable().optional()
|
|
16
|
+
}).describe("Nested message object within a campaign event.");
|
|
17
|
+
const TextitListCampaignEvents2_CampaignObjectSchema = z.object({
|
|
18
|
+
name: z.string().describe("Name of the campaign").nullable().optional(),
|
|
19
|
+
uuid: z.string().describe("UUID of the campaign").nullable().optional()
|
|
20
|
+
}).describe("Nested campaign object within a campaign event.");
|
|
21
|
+
const TextitListCampaignEvents2_RelativeToObjectSchema = z.object({
|
|
22
|
+
key: z.string().describe("Key of the field").nullable().optional(),
|
|
23
|
+
label: z.string().describe("Label of the field").nullable().optional()
|
|
24
|
+
}).describe("Nested relative_to object within a campaign event.");
|
|
25
|
+
const TextitListCampaignEvents2_CampaignEventSchema = z.object({
|
|
26
|
+
flow: TextitListCampaignEvents2_FlowObjectSchema.nullable().optional(),
|
|
27
|
+
unit: z.string().describe("Time unit for offset (e.g., 'D' for days, 'W' for weeks)").nullable().optional(),
|
|
28
|
+
uuid: z.string().describe("Unique identifier for the campaign event").nullable().optional(),
|
|
29
|
+
offset: z.number().int().describe("Number of time units before/after relative_to when the event triggers").nullable().optional(),
|
|
30
|
+
message: TextitListCampaignEvents2_MessageObjectSchema.nullable().optional(),
|
|
31
|
+
campaign: TextitListCampaignEvents2_CampaignObjectSchema.nullable().optional(),
|
|
32
|
+
created_on: z.string().describe("ISO8601 timestamp when the event was created").nullable().optional(),
|
|
33
|
+
relative_to: TextitListCampaignEvents2_RelativeToObjectSchema.nullable().optional(),
|
|
34
|
+
delivery_hour: z.number().int().describe("Hour of day (0-23) when the event will be delivered").nullable().optional()
|
|
35
|
+
}).describe("Detailed information about a single campaign event.");
|
|
36
|
+
const textitListCampaignEvents2 = action("TEXTIT_LIST_CAMPAIGN_EVENTS2", {
|
|
37
|
+
slug: "textit-list-campaign-events2",
|
|
38
|
+
name: "List Campaign Events 2",
|
|
39
|
+
description: "Tool to retrieve campaign events with optional filtering. Use when you need to list scheduled triggers within campaigns, optionally filtering by event UUID or campaign UUID.",
|
|
40
|
+
input: TextitListCampaignEvents2Input,
|
|
41
|
+
output: z.object({
|
|
42
|
+
next: z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
43
|
+
results: z.array(TextitListCampaignEvents2_CampaignEventSchema).describe("List of campaign event objects").nullable().optional(),
|
|
44
|
+
previous: z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
45
|
+
}).describe("Paginated response model for a list of campaign events.")
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { textitListCampaignEvents2 };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=list-campaign-events2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaign-events2.mjs","names":[],"sources":["../../src/actions/list-campaign-events2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListCampaignEvents2Input: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter by event UUID\").optional(),\n cursor: z.string().describe(\"Cursor for pagination. Extract from the 'next' URL of previous response.\").optional(),\n campaign: z.string().describe(\"Filter by campaign UUID\").optional(),\n}).describe(\"Request model for listing campaign events with optional filtering by UUID or campaign.\");\nconst TextitListCampaignEvents2_FlowObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the flow\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the flow\").nullable().optional(),\n}).describe(\"Nested flow object within a campaign event.\");\nconst TextitListCampaignEvents2_MessageObjectSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Text content of the message\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the message\").nullable().optional(),\n}).describe(\"Nested message object within a campaign event.\");\nconst TextitListCampaignEvents2_CampaignObjectSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the campaign\").nullable().optional(),\n}).describe(\"Nested campaign object within a campaign event.\");\nconst TextitListCampaignEvents2_RelativeToObjectSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Key of the field\").nullable().optional(),\n label: z.string().describe(\"Label of the field\").nullable().optional(),\n}).describe(\"Nested relative_to object within a campaign event.\");\nconst TextitListCampaignEvents2_CampaignEventSchema: z.ZodTypeAny = z.object({\n flow: TextitListCampaignEvents2_FlowObjectSchema.nullable().optional(),\n unit: z.string().describe(\"Time unit for offset (e.g., 'D' for days, 'W' for weeks)\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the campaign event\").nullable().optional(),\n offset: z.number().int().describe(\"Number of time units before/after relative_to when the event triggers\").nullable().optional(),\n message: TextitListCampaignEvents2_MessageObjectSchema.nullable().optional(),\n campaign: TextitListCampaignEvents2_CampaignObjectSchema.nullable().optional(),\n created_on: z.string().describe(\"ISO8601 timestamp when the event was created\").nullable().optional(),\n relative_to: TextitListCampaignEvents2_RelativeToObjectSchema.nullable().optional(),\n delivery_hour: z.number().int().describe(\"Hour of day (0-23) when the event will be delivered\").nullable().optional(),\n}).describe(\"Detailed information about a single campaign event.\");\nexport const TextitListCampaignEvents2Output: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n results: z.array(TextitListCampaignEvents2_CampaignEventSchema).describe(\"List of campaign event objects\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated response model for a list of campaign events.\");\n\nexport const textitListCampaignEvents2 = action(\"TEXTIT_LIST_CAMPAIGN_EVENTS2\", {\n slug: \"textit-list-campaign-events2\",\n name: \"List Campaign Events 2\",\n description: \"Tool to retrieve campaign events with optional filtering. Use when you need to list scheduled triggers within campaigns, optionally filtering by event UUID or campaign UUID.\",\n input: TextitListCampaignEvents2Input,\n output: TextitListCampaignEvents2Output,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-campaigns.ts
|
|
4
|
+
const TextitListCampaignsInput = zod.z.object({
|
|
5
|
+
uuid: zod.z.string().describe("Filter campaigns by their unique UUID.").optional(),
|
|
6
|
+
after: zod.z.string().describe("Only include campaigns created after this ISO 8601 datetime.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Only include campaigns created before this ISO 8601 datetime.").optional()
|
|
8
|
+
}).describe("Request model for listing campaigns with optional filtering by uuid or creation date.");
|
|
9
|
+
const TextitListCampaigns_GroupSchema = zod.z.object({
|
|
10
|
+
name: zod.z.string().describe("Name of the group."),
|
|
11
|
+
uuid: zod.z.string().describe("UUID of the group.")
|
|
12
|
+
}).describe("Nested group object within a campaign.");
|
|
13
|
+
const TextitListCampaigns_CampaignSchema = zod.z.object({
|
|
14
|
+
name: zod.z.string().describe("Name of the campaign."),
|
|
15
|
+
uuid: zod.z.string().describe("UUID of the campaign."),
|
|
16
|
+
group: TextitListCampaigns_GroupSchema.nullable(),
|
|
17
|
+
archived: zod.z.boolean().describe("Whether the campaign is archived."),
|
|
18
|
+
created_on: zod.z.string().describe("UTC timestamp when the campaign was created.")
|
|
19
|
+
}).describe("A campaign object as returned by TextIt.");
|
|
20
|
+
const TextitListCampaignsOutput = zod.z.object({
|
|
21
|
+
next: zod.z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
22
|
+
results: zod.z.array(TextitListCampaigns_CampaignSchema).describe("List of campaign objects."),
|
|
23
|
+
previous: zod.z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
24
|
+
}).describe("Response model for list campaigns endpoint.");
|
|
25
|
+
const textitListCampaigns = require_action.action("TEXTIT_LIST_CAMPAIGNS", {
|
|
26
|
+
slug: "textit-list-campaigns",
|
|
27
|
+
name: "List Campaigns",
|
|
28
|
+
description: "Tool to list campaigns. Use after authentication to retrieve campaigns, optionally filtering by uuid or date range.",
|
|
29
|
+
input: TextitListCampaignsInput,
|
|
30
|
+
output: TextitListCampaignsOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.textitListCampaigns = textitListCampaigns;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=list-campaigns.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListCampaignsInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter campaigns by their unique UUID.\").optional(),\n after: z.string().describe(\"Only include campaigns created after this ISO 8601 datetime.\").optional(),\n before: z.string().describe(\"Only include campaigns created before this ISO 8601 datetime.\").optional(),\n}).describe(\"Request model for listing campaigns with optional filtering by uuid or creation date.\");\nconst TextitListCampaigns_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.\");\nconst TextitListCampaigns_CampaignSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign.\"),\n uuid: z.string().describe(\"UUID of the campaign.\"),\n group: TextitListCampaigns_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(\"A campaign object as returned by TextIt.\");\nexport const TextitListCampaignsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n results: z.array(TextitListCampaigns_CampaignSchema).describe(\"List of campaign objects.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list campaigns endpoint.\");\n\nexport const textitListCampaigns = action(\"TEXTIT_LIST_CAMPAIGNS\", {\n slug: \"textit-list-campaigns\",\n name: \"List Campaigns\",\n description: \"Tool to list campaigns. Use after authentication to retrieve campaigns, optionally filtering by uuid or date range.\",\n input: TextitListCampaignsInput,\n output: TextitListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnG,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAChD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,gCAAgC,SAAS;CAChD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2BAA2B;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,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/list-campaigns.d.ts
|
|
4
|
+
declare const TextitListCampaignsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListCampaignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListCampaigns };
|
|
9
|
+
//# sourceMappingURL=list-campaigns.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI2D;AAAA,cAYvF,yBAAA,EAA2B,CAAA,CAAE,UAIgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-campaigns.d.ts
|
|
4
|
+
declare const TextitListCampaignsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListCampaignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListCampaigns };
|
|
9
|
+
//# sourceMappingURL=list-campaigns.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI2D;AAAA,cAYvF,yBAAA,EAA2B,CAAA,CAAE,UAIgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-campaigns.ts
|
|
4
|
+
const TextitListCampaignsInput = z.object({
|
|
5
|
+
uuid: z.string().describe("Filter campaigns by their unique UUID.").optional(),
|
|
6
|
+
after: z.string().describe("Only include campaigns created after this ISO 8601 datetime.").optional(),
|
|
7
|
+
before: z.string().describe("Only include campaigns created before this ISO 8601 datetime.").optional()
|
|
8
|
+
}).describe("Request model for listing campaigns with optional filtering by uuid or creation date.");
|
|
9
|
+
const TextitListCampaigns_GroupSchema = z.object({
|
|
10
|
+
name: z.string().describe("Name of the group."),
|
|
11
|
+
uuid: z.string().describe("UUID of the group.")
|
|
12
|
+
}).describe("Nested group object within a campaign.");
|
|
13
|
+
const TextitListCampaigns_CampaignSchema = z.object({
|
|
14
|
+
name: z.string().describe("Name of the campaign."),
|
|
15
|
+
uuid: z.string().describe("UUID of the campaign."),
|
|
16
|
+
group: TextitListCampaigns_GroupSchema.nullable(),
|
|
17
|
+
archived: z.boolean().describe("Whether the campaign is archived."),
|
|
18
|
+
created_on: z.string().describe("UTC timestamp when the campaign was created.")
|
|
19
|
+
}).describe("A campaign object as returned by TextIt.");
|
|
20
|
+
const textitListCampaigns = action("TEXTIT_LIST_CAMPAIGNS", {
|
|
21
|
+
slug: "textit-list-campaigns",
|
|
22
|
+
name: "List Campaigns",
|
|
23
|
+
description: "Tool to list campaigns. Use after authentication to retrieve campaigns, optionally filtering by uuid or date range.",
|
|
24
|
+
input: TextitListCampaignsInput,
|
|
25
|
+
output: z.object({
|
|
26
|
+
next: z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
27
|
+
results: z.array(TextitListCampaigns_CampaignSchema).describe("List of campaign objects."),
|
|
28
|
+
previous: z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
29
|
+
}).describe("Response model for list campaigns endpoint.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { textitListCampaigns };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=list-campaigns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListCampaignsInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter campaigns by their unique UUID.\").optional(),\n after: z.string().describe(\"Only include campaigns created after this ISO 8601 datetime.\").optional(),\n before: z.string().describe(\"Only include campaigns created before this ISO 8601 datetime.\").optional(),\n}).describe(\"Request model for listing campaigns with optional filtering by uuid or creation date.\");\nconst TextitListCampaigns_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.\");\nconst TextitListCampaigns_CampaignSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the campaign.\"),\n uuid: z.string().describe(\"UUID of the campaign.\"),\n group: TextitListCampaigns_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(\"A campaign object as returned by TextIt.\");\nexport const TextitListCampaignsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n results: z.array(TextitListCampaigns_CampaignSchema).describe(\"List of campaign objects.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list campaigns endpoint.\");\n\nexport const textitListCampaigns = action(\"TEXTIT_LIST_CAMPAIGNS\", {\n slug: \"textit-list-campaigns\",\n name: \"List Campaigns\",\n description: \"Tool to list campaigns. Use after authentication to retrieve campaigns, optionally filtering by uuid or date range.\",\n input: TextitListCampaignsInput,\n output: TextitListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnG,MAAM,kCAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAChD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,gCAAgC,SAAS;CAChD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAOtD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2BAA2B;EACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-channels.ts
|
|
4
|
+
const TextitListChannelsInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number for pagination; must be >= 1.").optional(),
|
|
6
|
+
uuid: zod.z.string().describe("Filter by a specific channel UUID.").optional(),
|
|
7
|
+
schemes: zod.z.string().describe("Comma-separated list of schemes to filter channels, e.g., \"tel,whatsapp\".").optional(),
|
|
8
|
+
page_size: zod.z.number().int().describe("Number of results per page; must be >= 1.").optional()
|
|
9
|
+
}).describe("Request model for listing channels with optional pagination and filtering.");
|
|
10
|
+
const TextitListChannels_ChannelSchema = zod.z.object({
|
|
11
|
+
org: zod.z.string().describe("Organization UUID owning this channel."),
|
|
12
|
+
name: zod.z.string().describe("Channel name."),
|
|
13
|
+
uuid: zod.z.string().describe("Channel UUID."),
|
|
14
|
+
status: zod.z.string().describe("Current status of the channel."),
|
|
15
|
+
address: zod.z.string().describe("Channel address, e.g., phone number."),
|
|
16
|
+
schemes: zod.z.array(zod.z.string()).describe("Supported schemes (e.g., ['tel', 'whatsapp'])."),
|
|
17
|
+
created_on: zod.z.string().describe("Timestamp when channel was created in ISO format.")
|
|
18
|
+
}).describe("A channel object as returned by TextIt.");
|
|
19
|
+
const TextitListChannelsOutput = zod.z.object({
|
|
20
|
+
next: zod.z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
21
|
+
count: zod.z.number().int().describe("Total number of channels matching the query.").nullable().optional(),
|
|
22
|
+
results: zod.z.array(TextitListChannels_ChannelSchema).describe("List of channel objects for the current page."),
|
|
23
|
+
previous: zod.z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
24
|
+
}).describe("Response model for list channels endpoint.");
|
|
25
|
+
const textitListChannels = require_action.action("TEXTIT_LIST_CHANNELS", {
|
|
26
|
+
slug: "textit-list-channels",
|
|
27
|
+
name: "List Channels",
|
|
28
|
+
description: "Tool to list channels. Use when you need to retrieve a paginated list of your organization's channels after confirming authentication.",
|
|
29
|
+
input: TextitListChannelsInput,
|
|
30
|
+
output: TextitListChannelsOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.textitListChannels = textitListChannels;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=list-channels.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.cjs","names":["z","action"],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListChannelsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination; must be >= 1.\").optional(),\n uuid: z.string().describe(\"Filter by a specific channel UUID.\").optional(),\n schemes: z.string().describe(\"Comma-separated list of schemes to filter channels, e.g., \\\"tel,whatsapp\\\".\").optional(),\n page_size: z.number().int().describe(\"Number of results per page; must be >= 1.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination and filtering.\");\nconst TextitListChannels_ChannelSchema: z.ZodTypeAny = z.object({\n org: z.string().describe(\"Organization UUID owning this channel.\"),\n name: z.string().describe(\"Channel name.\"),\n uuid: z.string().describe(\"Channel UUID.\"),\n status: z.string().describe(\"Current status of the channel.\"),\n address: z.string().describe(\"Channel address, e.g., phone number.\"),\n schemes: z.array(z.string()).describe(\"Supported schemes (e.g., ['tel', 'whatsapp']).\"),\n created_on: z.string().describe(\"Timestamp when channel was created in ISO format.\"),\n}).describe(\"A channel object as returned by TextIt.\");\nexport const TextitListChannelsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n count: z.number().int().describe(\"Total number of channels matching the query.\").nullable().optional(),\n results: z.array(TextitListChannels_ChannelSchema).describe(\"List of channel objects for the current page.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list channels endpoint.\");\n\nexport const textitListChannels = action(\"TEXTIT_LIST_CHANNELS\", {\n slug: \"textit-list-channels\",\n name: \"List Channels\",\n description: \"Tool to list channels. Use when you need to retrieve a paginated list of your organization's channels after confirming authentication.\",\n input: TextitListChannelsInput,\n output: TextitListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACrF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,+CAA+C;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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/list-channels.d.ts
|
|
4
|
+
declare const TextitListChannelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListChannelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListChannels };
|
|
9
|
+
//# sourceMappingURL=list-channels.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.d.cts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAKiD;AAAA,cAU5E,wBAAA,EAA0B,CAAA,CAAE,UAKgB;AAAA,cAE5C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-channels.d.ts
|
|
4
|
+
declare const TextitListChannelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListChannelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListChannels };
|
|
9
|
+
//# sourceMappingURL=list-channels.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.d.mts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAKiD;AAAA,cAU5E,wBAAA,EAA0B,CAAA,CAAE,UAKgB;AAAA,cAE5C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-channels.ts
|
|
4
|
+
const TextitListChannelsInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number for pagination; must be >= 1.").optional(),
|
|
6
|
+
uuid: z.string().describe("Filter by a specific channel UUID.").optional(),
|
|
7
|
+
schemes: z.string().describe("Comma-separated list of schemes to filter channels, e.g., \"tel,whatsapp\".").optional(),
|
|
8
|
+
page_size: z.number().int().describe("Number of results per page; must be >= 1.").optional()
|
|
9
|
+
}).describe("Request model for listing channels with optional pagination and filtering.");
|
|
10
|
+
const TextitListChannels_ChannelSchema = z.object({
|
|
11
|
+
org: z.string().describe("Organization UUID owning this channel."),
|
|
12
|
+
name: z.string().describe("Channel name."),
|
|
13
|
+
uuid: z.string().describe("Channel UUID."),
|
|
14
|
+
status: z.string().describe("Current status of the channel."),
|
|
15
|
+
address: z.string().describe("Channel address, e.g., phone number."),
|
|
16
|
+
schemes: z.array(z.string()).describe("Supported schemes (e.g., ['tel', 'whatsapp'])."),
|
|
17
|
+
created_on: z.string().describe("Timestamp when channel was created in ISO format.")
|
|
18
|
+
}).describe("A channel object as returned by TextIt.");
|
|
19
|
+
const textitListChannels = action("TEXTIT_LIST_CHANNELS", {
|
|
20
|
+
slug: "textit-list-channels",
|
|
21
|
+
name: "List Channels",
|
|
22
|
+
description: "Tool to list channels. Use when you need to retrieve a paginated list of your organization's channels after confirming authentication.",
|
|
23
|
+
input: TextitListChannelsInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
next: z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
26
|
+
count: z.number().int().describe("Total number of channels matching the query.").nullable().optional(),
|
|
27
|
+
results: z.array(TextitListChannels_ChannelSchema).describe("List of channel objects for the current page."),
|
|
28
|
+
previous: z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
29
|
+
}).describe("Response model for list channels endpoint.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { textitListChannels };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=list-channels.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.mjs","names":[],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListChannelsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination; must be >= 1.\").optional(),\n uuid: z.string().describe(\"Filter by a specific channel UUID.\").optional(),\n schemes: z.string().describe(\"Comma-separated list of schemes to filter channels, e.g., \\\"tel,whatsapp\\\".\").optional(),\n page_size: z.number().int().describe(\"Number of results per page; must be >= 1.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination and filtering.\");\nconst TextitListChannels_ChannelSchema: z.ZodTypeAny = z.object({\n org: z.string().describe(\"Organization UUID owning this channel.\"),\n name: z.string().describe(\"Channel name.\"),\n uuid: z.string().describe(\"Channel UUID.\"),\n status: z.string().describe(\"Current status of the channel.\"),\n address: z.string().describe(\"Channel address, e.g., phone number.\"),\n schemes: z.array(z.string()).describe(\"Supported schemes (e.g., ['tel', 'whatsapp']).\"),\n created_on: z.string().describe(\"Timestamp when channel was created in ISO format.\"),\n}).describe(\"A channel object as returned by TextIt.\");\nexport const TextitListChannelsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n count: z.number().int().describe(\"Total number of channels matching the query.\").nullable().optional(),\n results: z.array(TextitListChannels_ChannelSchema).describe(\"List of channel objects for the current page.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list channels endpoint.\");\n\nexport const textitListChannels = action(\"TEXTIT_LIST_CHANNELS\", {\n slug: \"textit-list-channels\",\n name: \"List Channels\",\n description: \"Tool to list channels. Use when you need to retrieve a paginated list of your organization's channels after confirming authentication.\",\n input: TextitListChannelsInput,\n output: TextitListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,mCAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACrF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAQrD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,+CAA+C;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-classifiers.ts
|
|
4
|
+
const TextitListClassifiersInput = zod.z.object({
|
|
5
|
+
uuid: zod.z.string().describe("Filter by a specific classifier UUID.").optional(),
|
|
6
|
+
cursor: zod.z.string().describe("Cursor for pagination. Extract from the 'next' URL of previous response.").optional()
|
|
7
|
+
}).describe("Request model for listing NLU classifiers with optional filtering.");
|
|
8
|
+
const TextitListClassifiers_ClassifierSchema = zod.z.object({
|
|
9
|
+
name: zod.z.string().describe("Classifier name."),
|
|
10
|
+
type: zod.z.string().describe("Type of classifier (e.g., 'wit', 'luis', 'bothub')."),
|
|
11
|
+
uuid: zod.z.string().describe("Classifier UUID."),
|
|
12
|
+
intents: zod.z.array(zod.z.string()).describe("List of intents the classifier can recognize."),
|
|
13
|
+
created_on: zod.z.string().describe("Timestamp when classifier was created in ISO format.")
|
|
14
|
+
}).describe("A classifier object as returned by TextIt.");
|
|
15
|
+
const TextitListClassifiersOutput = zod.z.object({
|
|
16
|
+
next: zod.z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
17
|
+
results: zod.z.array(TextitListClassifiers_ClassifierSchema).describe("List of classifier objects for the current page."),
|
|
18
|
+
previous: zod.z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
19
|
+
}).describe("Response model for list classifiers endpoint.");
|
|
20
|
+
const textitListClassifiers = require_action.action("TEXTIT_LIST_CLASSIFIERS", {
|
|
21
|
+
slug: "textit-list-classifiers",
|
|
22
|
+
name: "List Classifiers",
|
|
23
|
+
description: "Tool to list NLU classifiers configured for your organization. Use when you need to retrieve natural language understanding classifiers (wit.ai, luis, bothub) after confirming authentication.",
|
|
24
|
+
input: TextitListClassifiersInput,
|
|
25
|
+
output: TextitListClassifiersOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.textitListClassifiers = textitListClassifiers;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=list-classifiers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-classifiers.cjs","names":["z","action"],"sources":["../../src/actions/list-classifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListClassifiersInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter by a specific classifier UUID.\").optional(),\n cursor: z.string().describe(\"Cursor for pagination. Extract from the 'next' URL of previous response.\").optional(),\n}).describe(\"Request model for listing NLU classifiers with optional filtering.\");\nconst TextitListClassifiers_ClassifierSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Classifier name.\"),\n type: z.string().describe(\"Type of classifier (e.g., 'wit', 'luis', 'bothub').\"),\n uuid: z.string().describe(\"Classifier UUID.\"),\n intents: z.array(z.string()).describe(\"List of intents the classifier can recognize.\"),\n created_on: z.string().describe(\"Timestamp when classifier was created in ISO format.\"),\n}).describe(\"A classifier object as returned by TextIt.\");\nexport const TextitListClassifiersOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n results: z.array(TextitListClassifiers_ClassifierSchema).describe(\"List of classifier objects for the current page.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list classifiers endpoint.\");\n\nexport const textitListClassifiers = action(\"TEXTIT_LIST_CLASSIFIERS\", {\n slug: \"textit-list-classifiers\",\n name: \"List Classifiers\",\n description: \"Tool to list NLU classifiers configured for your organization. Use when you need to retrieve natural language understanding classifiers (wit.ai, luis, bothub) after confirming authentication.\",\n input: TextitListClassifiersInput,\n output: TextitListClassifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACxF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,kDAAkD;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/list-classifiers.d.ts
|
|
4
|
+
declare const TextitListClassifiersInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListClassifiersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListClassifiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListClassifiers };
|
|
9
|
+
//# sourceMappingURL=list-classifiers.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-classifiers.d.cts","names":[],"sources":["../../src/actions/list-classifiers.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGsC;AAAA,cAQpE,2BAAA,EAA6B,CAAA,CAAE,UAIgB;AAAA,cAE/C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-classifiers.d.ts
|
|
4
|
+
declare const TextitListClassifiersInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListClassifiersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListClassifiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListClassifiers };
|
|
9
|
+
//# sourceMappingURL=list-classifiers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-classifiers.d.mts","names":[],"sources":["../../src/actions/list-classifiers.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGsC;AAAA,cAQpE,2BAAA,EAA6B,CAAA,CAAE,UAIgB;AAAA,cAE/C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-classifiers.ts
|
|
4
|
+
const TextitListClassifiersInput = z.object({
|
|
5
|
+
uuid: z.string().describe("Filter by a specific classifier UUID.").optional(),
|
|
6
|
+
cursor: z.string().describe("Cursor for pagination. Extract from the 'next' URL of previous response.").optional()
|
|
7
|
+
}).describe("Request model for listing NLU classifiers with optional filtering.");
|
|
8
|
+
const TextitListClassifiers_ClassifierSchema = z.object({
|
|
9
|
+
name: z.string().describe("Classifier name."),
|
|
10
|
+
type: z.string().describe("Type of classifier (e.g., 'wit', 'luis', 'bothub')."),
|
|
11
|
+
uuid: z.string().describe("Classifier UUID."),
|
|
12
|
+
intents: z.array(z.string()).describe("List of intents the classifier can recognize."),
|
|
13
|
+
created_on: z.string().describe("Timestamp when classifier was created in ISO format.")
|
|
14
|
+
}).describe("A classifier object as returned by TextIt.");
|
|
15
|
+
const textitListClassifiers = action("TEXTIT_LIST_CLASSIFIERS", {
|
|
16
|
+
slug: "textit-list-classifiers",
|
|
17
|
+
name: "List Classifiers",
|
|
18
|
+
description: "Tool to list NLU classifiers configured for your organization. Use when you need to retrieve natural language understanding classifiers (wit.ai, luis, bothub) after confirming authentication.",
|
|
19
|
+
input: TextitListClassifiersInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
next: z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
22
|
+
results: z.array(TextitListClassifiers_ClassifierSchema).describe("List of classifier objects for the current page."),
|
|
23
|
+
previous: z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
24
|
+
}).describe("Response model for list classifiers endpoint.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { textitListClassifiers };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=list-classifiers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-classifiers.mjs","names":[],"sources":["../../src/actions/list-classifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListClassifiersInput: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Filter by a specific classifier UUID.\").optional(),\n cursor: z.string().describe(\"Cursor for pagination. Extract from the 'next' URL of previous response.\").optional(),\n}).describe(\"Request model for listing NLU classifiers with optional filtering.\");\nconst TextitListClassifiers_ClassifierSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Classifier name.\"),\n type: z.string().describe(\"Type of classifier (e.g., 'wit', 'luis', 'bothub').\"),\n uuid: z.string().describe(\"Classifier UUID.\"),\n intents: z.array(z.string()).describe(\"List of intents the classifier can recognize.\"),\n created_on: z.string().describe(\"Timestamp when classifier was created in ISO format.\"),\n}).describe(\"A classifier object as returned by TextIt.\");\nexport const TextitListClassifiersOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, or null if none.\").nullable().optional(),\n results: z.array(TextitListClassifiers_ClassifierSchema).describe(\"List of classifier objects for the current page.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for list classifiers endpoint.\");\n\nexport const textitListClassifiers = action(\"TEXTIT_LIST_CLASSIFIERS\", {\n slug: \"textit-list-classifiers\",\n name: \"List Classifiers\",\n description: \"Tool to list NLU classifiers configured for your organization. Use when you need to retrieve natural language understanding classifiers (wit.ai, luis, bothub) after confirming authentication.\",\n input: TextitListClassifiersInput,\n output: TextitListClassifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACxF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAOxD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,kDAAkD;EACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-contacts.ts
|
|
4
|
+
const TextitListContactsInput = zod.z.object({
|
|
5
|
+
urn: zod.z.string().describe("Filter contacts by their Uniform Resource Name (URN)").optional(),
|
|
6
|
+
uuid: zod.z.string().describe("Filter contacts by their UUID").optional(),
|
|
7
|
+
after: zod.z.string().describe("Only include contacts modified after this ISO 8601 datetime").optional(),
|
|
8
|
+
group: zod.z.string().describe("Filter contacts by group name or UUID").optional(),
|
|
9
|
+
before: zod.z.string().describe("Only include contacts modified before this ISO 8601 datetime").optional()
|
|
10
|
+
}).describe("Request model for listing contacts with optional filters.");
|
|
11
|
+
const TextitListContacts_FlowSchema = zod.z.object({
|
|
12
|
+
name: zod.z.string().describe("Name of the flow"),
|
|
13
|
+
uuid: zod.z.string().describe("UUID of the flow")
|
|
14
|
+
}).describe("Flow the contact is currently in.");
|
|
15
|
+
const TextitListContacts_ContactGroupSchema = zod.z.object({
|
|
16
|
+
name: zod.z.string().describe("Name of the group"),
|
|
17
|
+
uuid: zod.z.string().describe("UUID of the group")
|
|
18
|
+
}).describe("Group membership info for a contact.");
|
|
19
|
+
const TextitListContacts_ContactSchema = zod.z.object({
|
|
20
|
+
flow: TextitListContacts_FlowSchema.nullable().optional(),
|
|
21
|
+
name: zod.z.string().describe("Name of the contact").nullable().optional(),
|
|
22
|
+
urns: zod.z.array(zod.z.string()).describe("URNs associated with the contact"),
|
|
23
|
+
uuid: zod.z.string().describe("Unique identifier of the contact"),
|
|
24
|
+
fields: zod.z.object({}).describe("Custom fields of the contact"),
|
|
25
|
+
groups: zod.z.array(TextitListContacts_ContactGroupSchema).describe("Groups the contact belongs to"),
|
|
26
|
+
status: zod.z.string().describe("Status of the contact (active, blocked, stopped, or archived)"),
|
|
27
|
+
language: zod.z.string().describe("Preferred language of the contact").nullable().optional(),
|
|
28
|
+
created_on: zod.z.string().describe("Timestamp when the contact was created (ISO 8601)"),
|
|
29
|
+
modified_on: zod.z.string().describe("Timestamp when the contact was last modified (ISO 8601)"),
|
|
30
|
+
last_seen_on: zod.z.string().describe("Timestamp when the contact last communicated (ISO 8601)").nullable().optional()
|
|
31
|
+
}).describe("Representation of a TextIt contact.");
|
|
32
|
+
const TextitListContactsOutput = zod.z.object({
|
|
33
|
+
next: zod.z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
34
|
+
results: zod.z.array(TextitListContacts_ContactSchema).describe("List of contact objects"),
|
|
35
|
+
previous: zod.z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
36
|
+
}).describe("Paginated list of contacts.");
|
|
37
|
+
const textitListContacts = require_action.action("TEXTIT_LIST_CONTACTS", {
|
|
38
|
+
slug: "textit-list-contacts",
|
|
39
|
+
name: "List Contacts",
|
|
40
|
+
description: "Tool to retrieve a list of contacts. Use when you need to fetch contacts with optional filters (UUID, URN, group, or modified date). Use after authenticating your client.",
|
|
41
|
+
input: TextitListContactsInput,
|
|
42
|
+
output: TextitListContactsOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.textitListContacts = textitListContacts;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=list-contacts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListContactsInput: z.ZodTypeAny = z.object({\n urn: z.string().describe(\"Filter contacts by their Uniform Resource Name (URN)\").optional(),\n uuid: z.string().describe(\"Filter contacts by their UUID\").optional(),\n after: z.string().describe(\"Only include contacts modified after this ISO 8601 datetime\").optional(),\n group: z.string().describe(\"Filter contacts by group name or UUID\").optional(),\n before: z.string().describe(\"Only include contacts modified before this ISO 8601 datetime\").optional(),\n}).describe(\"Request model for listing contacts with optional filters.\");\nconst TextitListContacts_FlowSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the flow\"),\n uuid: z.string().describe(\"UUID of the flow\"),\n}).describe(\"Flow the contact is currently in.\");\nconst TextitListContacts_ContactGroupSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group\"),\n uuid: z.string().describe(\"UUID of the group\"),\n}).describe(\"Group membership info for a contact.\");\nconst TextitListContacts_ContactSchema: z.ZodTypeAny = z.object({\n flow: TextitListContacts_FlowSchema.nullable().optional(),\n name: z.string().describe(\"Name of the contact\").nullable().optional(),\n urns: z.array(z.string()).describe(\"URNs associated with the contact\"),\n uuid: z.string().describe(\"Unique identifier of the contact\"),\n fields: z.object({}).describe(\"Custom fields of the contact\"),\n groups: z.array(TextitListContacts_ContactGroupSchema).describe(\"Groups the contact belongs to\"),\n status: z.string().describe(\"Status of the contact (active, blocked, stopped, or archived)\"),\n language: z.string().describe(\"Preferred language of the contact\").nullable().optional(),\n created_on: z.string().describe(\"Timestamp when the contact was created (ISO 8601)\"),\n modified_on: z.string().describe(\"Timestamp when the contact was last modified (ISO 8601)\"),\n last_seen_on: z.string().describe(\"Timestamp when the contact last communicated (ISO 8601)\").nullable().optional(),\n}).describe(\"Representation of a TextIt contact.\");\nexport const TextitListContactsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n results: z.array(TextitListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL to the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of contacts.\");\n\nexport const textitListContacts = action(\"TEXTIT_LIST_CONTACTS\", {\n slug: \"textit-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to retrieve a list of contacts. Use when you need to fetch contacts with optional filters (UUID, URN, group, or modified date). Use after authenticating your client.\",\n input: TextitListContactsInput,\n output: TextitListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;AAC9C,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AAC/C,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAM,8BAA8B,SAAS,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC5D,QAAQA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+BAA+B;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,yBAAyB;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAEzC,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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/list-contacts.d.ts
|
|
4
|
+
declare const TextitListContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListContacts };
|
|
9
|
+
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAMgC;AAAA,cAsB3D,wBAAA,EAA0B,CAAA,CAAE,UAIC;AAAA,cAE7B,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|