@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,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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.d.mts","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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-contacts.ts
|
|
4
|
+
const TextitListContactsInput = z.object({
|
|
5
|
+
urn: z.string().describe("Filter contacts by their Uniform Resource Name (URN)").optional(),
|
|
6
|
+
uuid: z.string().describe("Filter contacts by their UUID").optional(),
|
|
7
|
+
after: z.string().describe("Only include contacts modified after this ISO 8601 datetime").optional(),
|
|
8
|
+
group: z.string().describe("Filter contacts by group name or UUID").optional(),
|
|
9
|
+
before: 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 = z.object({
|
|
12
|
+
name: z.string().describe("Name of the flow"),
|
|
13
|
+
uuid: z.string().describe("UUID of the flow")
|
|
14
|
+
}).describe("Flow the contact is currently in.");
|
|
15
|
+
const TextitListContacts_ContactGroupSchema = z.object({
|
|
16
|
+
name: z.string().describe("Name of the group"),
|
|
17
|
+
uuid: z.string().describe("UUID of the group")
|
|
18
|
+
}).describe("Group membership info for a contact.");
|
|
19
|
+
const TextitListContacts_ContactSchema = z.object({
|
|
20
|
+
flow: TextitListContacts_FlowSchema.nullable().optional(),
|
|
21
|
+
name: z.string().describe("Name of the contact").nullable().optional(),
|
|
22
|
+
urns: z.array(z.string()).describe("URNs associated with the contact"),
|
|
23
|
+
uuid: z.string().describe("Unique identifier of the contact"),
|
|
24
|
+
fields: z.object({}).describe("Custom fields of the contact"),
|
|
25
|
+
groups: z.array(TextitListContacts_ContactGroupSchema).describe("Groups the contact belongs to"),
|
|
26
|
+
status: z.string().describe("Status of the contact (active, blocked, stopped, or archived)"),
|
|
27
|
+
language: z.string().describe("Preferred language of the contact").nullable().optional(),
|
|
28
|
+
created_on: z.string().describe("Timestamp when the contact was created (ISO 8601)"),
|
|
29
|
+
modified_on: z.string().describe("Timestamp when the contact was last modified (ISO 8601)"),
|
|
30
|
+
last_seen_on: z.string().describe("Timestamp when the contact last communicated (ISO 8601)").nullable().optional()
|
|
31
|
+
}).describe("Representation of a TextIt contact.");
|
|
32
|
+
const textitListContacts = action("TEXTIT_LIST_CONTACTS", {
|
|
33
|
+
slug: "textit-list-contacts",
|
|
34
|
+
name: "List Contacts",
|
|
35
|
+
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.",
|
|
36
|
+
input: TextitListContactsInput,
|
|
37
|
+
output: z.object({
|
|
38
|
+
next: z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
39
|
+
results: z.array(TextitListContacts_ContactSchema).describe("List of contact objects"),
|
|
40
|
+
previous: z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
41
|
+
}).describe("Paginated list of contacts.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { textitListContacts };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=list-contacts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.mjs","names":[],"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,0BAAwC,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;AAC9C,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AAC/C,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,8BAA8B,SAAS,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B;CAC5D,QAAQ,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+BAA+B;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAOjD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,yBAAyB;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,6BAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-fields.ts
|
|
4
|
+
const TextitListFieldsInput = zod.z.object({
|
|
5
|
+
q: zod.z.string().describe("Search string to filter fields by name.").optional(),
|
|
6
|
+
page: zod.z.number().int().describe("Page number of results to return (default is 1).").optional(),
|
|
7
|
+
page_size: zod.z.number().int().describe("Number of results per page (default is 50).").optional()
|
|
8
|
+
}).describe("Request model for listing custom contact fields in TextIt.");
|
|
9
|
+
const TextitListFields_FieldUsagesSchema = zod.z.object({
|
|
10
|
+
flows: zod.z.number().int().default(0).describe("Number of flows using this field.").nullable().optional(),
|
|
11
|
+
groups: zod.z.number().int().default(0).describe("Number of groups using this field.").nullable().optional(),
|
|
12
|
+
campaign_events: zod.z.number().int().default(0).describe("Number of campaign events using this field.").nullable().optional()
|
|
13
|
+
}).describe("Model representing the usage count of a field in different contexts.");
|
|
14
|
+
const TextitListFields_FieldItemSchema = zod.z.object({
|
|
15
|
+
key: zod.z.string().describe("Unique key for the field."),
|
|
16
|
+
name: zod.z.string().describe("Name of the contact field."),
|
|
17
|
+
type: zod.z.string().describe("Type of value stored (e.g., text, numeric, datetime, state, district, ward)."),
|
|
18
|
+
label: zod.z.string().describe("Display label for the field.").nullable().optional(),
|
|
19
|
+
usages: TextitListFields_FieldUsagesSchema.nullable().optional(),
|
|
20
|
+
featured: zod.z.boolean().default(false).describe("Whether the field is featured.").nullable().optional(),
|
|
21
|
+
priority: zod.z.number().int().default(0).describe("Priority of the field.").nullable().optional(),
|
|
22
|
+
value_type: zod.z.string().describe("Value type of the field.").nullable().optional(),
|
|
23
|
+
agent_access: zod.z.string().describe("Access level for agents (e.g., view, edit, none).").nullable().optional()
|
|
24
|
+
}).describe("Model representing a custom contact field.");
|
|
25
|
+
const TextitListFieldsOutput = zod.z.object({
|
|
26
|
+
next: zod.z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
27
|
+
results: zod.z.array(TextitListFields_FieldItemSchema).describe("List of custom contact field objects."),
|
|
28
|
+
previous: zod.z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
29
|
+
}).describe("Response model for listing custom contact fields.");
|
|
30
|
+
const textitListFields = require_action.action("TEXTIT_LIST_FIELDS", {
|
|
31
|
+
slug: "textit-list-fields",
|
|
32
|
+
name: "List custom contact fields",
|
|
33
|
+
description: "Tool to retrieve a list of custom contact fields. Use when you need to view or filter all defined contact fields with pagination and optional search.",
|
|
34
|
+
input: TextitListFieldsInput,
|
|
35
|
+
output: TextitListFieldsOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.textitListFields = textitListFields;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=list-fields.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFieldsInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Search string to filter fields by name.\").optional(),\n page: z.number().int().describe(\"Page number of results to return (default is 1).\").optional(),\n page_size: z.number().int().describe(\"Number of results per page (default is 50).\").optional(),\n}).describe(\"Request model for listing custom contact fields in TextIt.\");\nconst TextitListFields_FieldUsagesSchema: z.ZodTypeAny = z.object({\n flows: z.number().int().default(0).describe(\"Number of flows using this field.\").nullable().optional(),\n groups: z.number().int().default(0).describe(\"Number of groups using this field.\").nullable().optional(),\n campaign_events: z.number().int().default(0).describe(\"Number of campaign events using this field.\").nullable().optional(),\n}).describe(\"Model representing the usage count of a field in different contexts.\");\nconst TextitListFields_FieldItemSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Unique key for the field.\"),\n name: z.string().describe(\"Name of the contact field.\"),\n type: z.string().describe(\"Type of value stored (e.g., text, numeric, datetime, state, district, ward).\"),\n label: z.string().describe(\"Display label for the field.\").nullable().optional(),\n usages: TextitListFields_FieldUsagesSchema.nullable().optional(),\n featured: z.boolean().default(false).describe(\"Whether the field is featured.\").nullable().optional(),\n priority: z.number().int().default(0).describe(\"Priority of the field.\").nullable().optional(),\n value_type: z.string().describe(\"Value type of the field.\").nullable().optional(),\n agent_access: z.string().describe(\"Access level for agents (e.g., view, edit, none).\").nullable().optional(),\n}).describe(\"Model representing a custom contact field.\");\nexport const TextitListFieldsOutput: 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(TextitListFields_FieldItemSchema).describe(\"List of custom contact field objects.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for listing custom contact fields.\");\n\nexport const textitListFields = action(\"TEXTIT_LIST_FIELDS\", {\n slug: \"textit-list-fields\",\n name: \"List custom contact fields\",\n description: \"Tool to retrieve a list of custom contact fields. Use when you need to view or filter all defined contact fields with pagination and optional search.\",\n input: TextitListFieldsInput,\n output: TextitListFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAA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SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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-fields.d.ts
|
|
4
|
+
declare const TextitListFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFields };
|
|
9
|
+
//# sourceMappingURL=list-fields.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fields.d.cts","names":[],"sources":["../../src/actions/list-fields.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAImC;AAAA,cAiB5D,sBAAA,EAAwB,CAAA,CAAE,UAIyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-fields.d.ts
|
|
4
|
+
declare const TextitListFieldsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListFieldsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFields };
|
|
9
|
+
//# sourceMappingURL=list-fields.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fields.d.mts","names":[],"sources":["../../src/actions/list-fields.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAImC;AAAA,cAiB5D,sBAAA,EAAwB,CAAA,CAAE,UAIyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-fields.ts
|
|
4
|
+
const TextitListFieldsInput = z.object({
|
|
5
|
+
q: z.string().describe("Search string to filter fields by name.").optional(),
|
|
6
|
+
page: z.number().int().describe("Page number of results to return (default is 1).").optional(),
|
|
7
|
+
page_size: z.number().int().describe("Number of results per page (default is 50).").optional()
|
|
8
|
+
}).describe("Request model for listing custom contact fields in TextIt.");
|
|
9
|
+
const TextitListFields_FieldUsagesSchema = z.object({
|
|
10
|
+
flows: z.number().int().default(0).describe("Number of flows using this field.").nullable().optional(),
|
|
11
|
+
groups: z.number().int().default(0).describe("Number of groups using this field.").nullable().optional(),
|
|
12
|
+
campaign_events: z.number().int().default(0).describe("Number of campaign events using this field.").nullable().optional()
|
|
13
|
+
}).describe("Model representing the usage count of a field in different contexts.");
|
|
14
|
+
const TextitListFields_FieldItemSchema = z.object({
|
|
15
|
+
key: z.string().describe("Unique key for the field."),
|
|
16
|
+
name: z.string().describe("Name of the contact field."),
|
|
17
|
+
type: z.string().describe("Type of value stored (e.g., text, numeric, datetime, state, district, ward)."),
|
|
18
|
+
label: z.string().describe("Display label for the field.").nullable().optional(),
|
|
19
|
+
usages: TextitListFields_FieldUsagesSchema.nullable().optional(),
|
|
20
|
+
featured: z.boolean().default(false).describe("Whether the field is featured.").nullable().optional(),
|
|
21
|
+
priority: z.number().int().default(0).describe("Priority of the field.").nullable().optional(),
|
|
22
|
+
value_type: z.string().describe("Value type of the field.").nullable().optional(),
|
|
23
|
+
agent_access: z.string().describe("Access level for agents (e.g., view, edit, none).").nullable().optional()
|
|
24
|
+
}).describe("Model representing a custom contact field.");
|
|
25
|
+
const textitListFields = action("TEXTIT_LIST_FIELDS", {
|
|
26
|
+
slug: "textit-list-fields",
|
|
27
|
+
name: "List custom contact fields",
|
|
28
|
+
description: "Tool to retrieve a list of custom contact fields. Use when you need to view or filter all defined contact fields with pagination and optional search.",
|
|
29
|
+
input: TextitListFieldsInput,
|
|
30
|
+
output: z.object({
|
|
31
|
+
next: z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
32
|
+
results: z.array(TextitListFields_FieldItemSchema).describe("List of custom contact field objects."),
|
|
33
|
+
previous: z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
34
|
+
}).describe("Response model for listing custom contact fields.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { textitListFields };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=list-fields.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-fields.mjs","names":[],"sources":["../../src/actions/list-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFieldsInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Search string to filter fields by name.\").optional(),\n page: z.number().int().describe(\"Page number of results to return (default is 1).\").optional(),\n page_size: z.number().int().describe(\"Number of results per page (default is 50).\").optional(),\n}).describe(\"Request model for listing custom contact fields in TextIt.\");\nconst TextitListFields_FieldUsagesSchema: z.ZodTypeAny = z.object({\n flows: z.number().int().default(0).describe(\"Number of flows using this field.\").nullable().optional(),\n groups: z.number().int().default(0).describe(\"Number of groups using this field.\").nullable().optional(),\n campaign_events: z.number().int().default(0).describe(\"Number of campaign events using this field.\").nullable().optional(),\n}).describe(\"Model representing the usage count of a field in different contexts.\");\nconst TextitListFields_FieldItemSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Unique key for the field.\"),\n name: z.string().describe(\"Name of the contact field.\"),\n type: z.string().describe(\"Type of value stored (e.g., text, numeric, datetime, state, district, ward).\"),\n label: z.string().describe(\"Display label for the field.\").nullable().optional(),\n usages: TextitListFields_FieldUsagesSchema.nullable().optional(),\n featured: z.boolean().default(false).describe(\"Whether the field is featured.\").nullable().optional(),\n priority: z.number().int().default(0).describe(\"Priority of the field.\").nullable().optional(),\n value_type: z.string().describe(\"Value type of the field.\").nullable().optional(),\n agent_access: z.string().describe(\"Access level for agents (e.g., view, edit, none).\").nullable().optional(),\n}).describe(\"Model representing a custom contact field.\");\nexport const TextitListFieldsOutput: 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(TextitListFields_FieldItemSchema).describe(\"List of custom contact field objects.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Response model for listing custom contact fields.\");\n\nexport const textitListFields = action(\"TEXTIT_LIST_FIELDS\", {\n slug: \"textit-list-fields\",\n name: \"List custom contact fields\",\n description: \"Tool to retrieve a list of custom contact fields. Use when you need to view or filter all defined contact fields with pagination and optional search.\",\n input: TextitListFieldsInput,\n output: TextitListFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,qCAAmD,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAA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QAXkD,EAAE,OAAO;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uCAAuC;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-flow-starts.ts
|
|
4
|
+
const TextitListFlowStartsInput = zod.z.object({
|
|
5
|
+
flow: zod.z.string().describe("UUID of the flow to filter flow starts by.").optional(),
|
|
6
|
+
page: zod.z.number().int().describe("Page number of results to retrieve, must be >= 1.").optional(),
|
|
7
|
+
after: zod.z.string().describe("Only include flow starts after this ISO 8601 datetime.").optional(),
|
|
8
|
+
before: zod.z.string().describe("Only include flow starts before this ISO 8601 datetime.").optional(),
|
|
9
|
+
contact: zod.z.string().describe("UUID of the contact to filter flow starts by.").optional(),
|
|
10
|
+
completed: zod.z.boolean().describe("Only include completed (true) or incomplete (false) flow starts.").optional(),
|
|
11
|
+
page_size: zod.z.number().int().describe("Number of results per page, must be >= 1.").optional()
|
|
12
|
+
}).describe("Request model for listing flow starts with optional pagination and filters.");
|
|
13
|
+
const TextitListFlowStarts_ListFlowStartsFlowSchema = zod.z.object({
|
|
14
|
+
name: zod.z.string().describe("The flow's name.").nullable().optional(),
|
|
15
|
+
uuid: zod.z.string().describe("UUID of the flow.")
|
|
16
|
+
}).describe("Nested flow object in flow start.");
|
|
17
|
+
const TextitListFlowStarts_ListFlowStartsContactSchema = zod.z.object({
|
|
18
|
+
name: zod.z.string().describe("The contact's display name.").nullable().optional(),
|
|
19
|
+
uuid: zod.z.string().describe("UUID of the contact.")
|
|
20
|
+
}).describe("Nested contact object in flow start.");
|
|
21
|
+
const TextitListFlowStarts_FlowStartSchema = zod.z.object({
|
|
22
|
+
id: zod.z.string().describe("UUID of the flow start."),
|
|
23
|
+
flow: TextitListFlowStarts_ListFlowStartsFlowSchema.nullable(),
|
|
24
|
+
contact: TextitListFlowStarts_ListFlowStartsContactSchema.nullable(),
|
|
25
|
+
completed: zod.z.string().describe("UTC timestamp when the flow was completed (ISO 8601 format), or null if not completed.").nullable().optional(),
|
|
26
|
+
started_on: zod.z.string().describe("UTC timestamp when the flow was started (ISO 8601 format).")
|
|
27
|
+
}).describe("A flow start record.");
|
|
28
|
+
const TextitListFlowStartsOutput = zod.z.object({
|
|
29
|
+
next: zod.z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
30
|
+
count: zod.z.number().int().describe("Total number of flow starts matching the filters.").nullable().optional(),
|
|
31
|
+
results: zod.z.array(TextitListFlowStarts_FlowStartSchema).describe("List of flow start records."),
|
|
32
|
+
previous: zod.z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
33
|
+
}).describe("Paginated list of flow start records.");
|
|
34
|
+
const textitListFlowStarts = require_action.action("TEXTIT_LIST_FLOW_STARTS", {
|
|
35
|
+
slug: "textit-list-flow-starts",
|
|
36
|
+
name: "List Flow Starts",
|
|
37
|
+
description: "Tool to retrieve a list of manual flow starts. Use when you need to fetch flow start records with optional filters and pagination.",
|
|
38
|
+
input: TextitListFlowStartsInput,
|
|
39
|
+
output: TextitListFlowStartsOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.textitListFlowStarts = textitListFlowStarts;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=list-flow-starts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flow-starts.cjs","names":["z","action"],"sources":["../../src/actions/list-flow-starts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFlowStartsInput: z.ZodTypeAny = z.object({\n flow: z.string().describe(\"UUID of the flow to filter flow starts by.\").optional(),\n page: z.number().int().describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n after: z.string().describe(\"Only include flow starts after this ISO 8601 datetime.\").optional(),\n before: z.string().describe(\"Only include flow starts before this ISO 8601 datetime.\").optional(),\n contact: z.string().describe(\"UUID of the contact to filter flow starts by.\").optional(),\n completed: z.boolean().describe(\"Only include completed (true) or incomplete (false) flow starts.\").optional(),\n page_size: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request model for listing flow starts with optional pagination and filters.\");\nconst TextitListFlowStarts_ListFlowStartsFlowSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The flow's name.\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the flow.\"),\n}).describe(\"Nested flow object in flow start.\");\nconst TextitListFlowStarts_ListFlowStartsContactSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The contact's display name.\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the contact.\"),\n}).describe(\"Nested contact object in flow start.\");\nconst TextitListFlowStarts_FlowStartSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the flow start.\"),\n flow: TextitListFlowStarts_ListFlowStartsFlowSchema.nullable(),\n contact: TextitListFlowStarts_ListFlowStartsContactSchema.nullable(),\n completed: z.string().describe(\"UTC timestamp when the flow was completed (ISO 8601 format), or null if not completed.\").nullable().optional(),\n started_on: z.string().describe(\"UTC timestamp when the flow was started (ISO 8601 format).\"),\n}).describe(\"A flow start record.\");\nexport const TextitListFlowStartsOutput: 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 flow starts matching the filters.\").nullable().optional(),\n results: z.array(TextitListFlowStarts_FlowStartSchema).describe(\"List of flow start records.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Paginated list of flow start records.\");\n\nexport const textitListFlowStarts = action(\"TEXTIT_LIST_FLOW_STARTS\", {\n slug: \"textit-list-flow-starts\",\n name: \"List Flow Starts\",\n description: \"Tool to retrieve a list of manual flow starts. Use when you need to fetch flow start records with optional filters and pagination.\",\n input: TextitListFlowStartsInput,\n output: TextitListFlowStartsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AAC/C,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AAClD,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,MAAM,8CAA8C,SAAS;CAC7D,SAAS,iDAAiD,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC9F,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,6BAA6B;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,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-flow-starts.d.ts
|
|
4
|
+
declare const TextitListFlowStartsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListFlowStartsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListFlowStarts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFlowStarts };
|
|
9
|
+
//# sourceMappingURL=list-flow-starts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flow-starts.d.cts","names":[],"sources":["../../src/actions/list-flow-starts.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQgD;AAAA,cAgB7E,0BAAA,EAA4B,CAAA,CAAE,UAKS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-flow-starts.d.ts
|
|
4
|
+
declare const TextitListFlowStartsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListFlowStartsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListFlowStarts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFlowStarts };
|
|
9
|
+
//# sourceMappingURL=list-flow-starts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flow-starts.d.mts","names":[],"sources":["../../src/actions/list-flow-starts.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQgD;AAAA,cAgB7E,0BAAA,EAA4B,CAAA,CAAE,UAKS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-flow-starts.ts
|
|
4
|
+
const TextitListFlowStartsInput = z.object({
|
|
5
|
+
flow: z.string().describe("UUID of the flow to filter flow starts by.").optional(),
|
|
6
|
+
page: z.number().int().describe("Page number of results to retrieve, must be >= 1.").optional(),
|
|
7
|
+
after: z.string().describe("Only include flow starts after this ISO 8601 datetime.").optional(),
|
|
8
|
+
before: z.string().describe("Only include flow starts before this ISO 8601 datetime.").optional(),
|
|
9
|
+
contact: z.string().describe("UUID of the contact to filter flow starts by.").optional(),
|
|
10
|
+
completed: z.boolean().describe("Only include completed (true) or incomplete (false) flow starts.").optional(),
|
|
11
|
+
page_size: z.number().int().describe("Number of results per page, must be >= 1.").optional()
|
|
12
|
+
}).describe("Request model for listing flow starts with optional pagination and filters.");
|
|
13
|
+
const TextitListFlowStarts_ListFlowStartsFlowSchema = z.object({
|
|
14
|
+
name: z.string().describe("The flow's name.").nullable().optional(),
|
|
15
|
+
uuid: z.string().describe("UUID of the flow.")
|
|
16
|
+
}).describe("Nested flow object in flow start.");
|
|
17
|
+
const TextitListFlowStarts_ListFlowStartsContactSchema = z.object({
|
|
18
|
+
name: z.string().describe("The contact's display name.").nullable().optional(),
|
|
19
|
+
uuid: z.string().describe("UUID of the contact.")
|
|
20
|
+
}).describe("Nested contact object in flow start.");
|
|
21
|
+
const TextitListFlowStarts_FlowStartSchema = z.object({
|
|
22
|
+
id: z.string().describe("UUID of the flow start."),
|
|
23
|
+
flow: TextitListFlowStarts_ListFlowStartsFlowSchema.nullable(),
|
|
24
|
+
contact: TextitListFlowStarts_ListFlowStartsContactSchema.nullable(),
|
|
25
|
+
completed: z.string().describe("UTC timestamp when the flow was completed (ISO 8601 format), or null if not completed.").nullable().optional(),
|
|
26
|
+
started_on: z.string().describe("UTC timestamp when the flow was started (ISO 8601 format).")
|
|
27
|
+
}).describe("A flow start record.");
|
|
28
|
+
const textitListFlowStarts = action("TEXTIT_LIST_FLOW_STARTS", {
|
|
29
|
+
slug: "textit-list-flow-starts",
|
|
30
|
+
name: "List Flow Starts",
|
|
31
|
+
description: "Tool to retrieve a list of manual flow starts. Use when you need to fetch flow start records with optional filters and pagination.",
|
|
32
|
+
input: TextitListFlowStartsInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
next: z.string().describe("URL to the next page of results, or null if none.").nullable().optional(),
|
|
35
|
+
count: z.number().int().describe("Total number of flow starts matching the filters.").nullable().optional(),
|
|
36
|
+
results: z.array(TextitListFlowStarts_FlowStartSchema).describe("List of flow start records."),
|
|
37
|
+
previous: z.string().describe("URL to the previous page of results, or null if none.").nullable().optional()
|
|
38
|
+
}).describe("Paginated list of flow start records.")
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { textitListFlowStarts };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=list-flow-starts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flow-starts.mjs","names":[],"sources":["../../src/actions/list-flow-starts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFlowStartsInput: z.ZodTypeAny = z.object({\n flow: z.string().describe(\"UUID of the flow to filter flow starts by.\").optional(),\n page: z.number().int().describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n after: z.string().describe(\"Only include flow starts after this ISO 8601 datetime.\").optional(),\n before: z.string().describe(\"Only include flow starts before this ISO 8601 datetime.\").optional(),\n contact: z.string().describe(\"UUID of the contact to filter flow starts by.\").optional(),\n completed: z.boolean().describe(\"Only include completed (true) or incomplete (false) flow starts.\").optional(),\n page_size: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request model for listing flow starts with optional pagination and filters.\");\nconst TextitListFlowStarts_ListFlowStartsFlowSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The flow's name.\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the flow.\"),\n}).describe(\"Nested flow object in flow start.\");\nconst TextitListFlowStarts_ListFlowStartsContactSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The contact's display name.\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the contact.\"),\n}).describe(\"Nested contact object in flow start.\");\nconst TextitListFlowStarts_FlowStartSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the flow start.\"),\n flow: TextitListFlowStarts_ListFlowStartsFlowSchema.nullable(),\n contact: TextitListFlowStarts_ListFlowStartsContactSchema.nullable(),\n completed: z.string().describe(\"UTC timestamp when the flow was completed (ISO 8601 format), or null if not completed.\").nullable().optional(),\n started_on: z.string().describe(\"UTC timestamp when the flow was started (ISO 8601 format).\"),\n}).describe(\"A flow start record.\");\nexport const TextitListFlowStartsOutput: 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 flow starts matching the filters.\").nullable().optional(),\n results: z.array(TextitListFlowStarts_FlowStartSchema).describe(\"List of flow start records.\"),\n previous: z.string().describe(\"URL to the previous page of results, or null if none.\").nullable().optional(),\n}).describe(\"Paginated list of flow start records.\");\n\nexport const textitListFlowStarts = action(\"TEXTIT_LIST_FLOW_STARTS\", {\n slug: \"textit-list-flow-starts\",\n name: \"List Flow Starts\",\n description: \"Tool to retrieve a list of manual flow starts. Use when you need to fetch flow start records with optional filters and pagination.\",\n input: TextitListFlowStartsInput,\n output: TextitListFlowStartsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,OAAO,CA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SAAS;EACnG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,6BAA6B;EAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-flows.ts
|
|
4
|
+
const TextitListFlowsInput = zod.z.object({
|
|
5
|
+
type: zod.z.enum([
|
|
6
|
+
"message",
|
|
7
|
+
"voice",
|
|
8
|
+
"survey"
|
|
9
|
+
]).describe("Enum for flow types.").optional(),
|
|
10
|
+
uuid: zod.z.string().describe("Filter flows by their UUID").optional(),
|
|
11
|
+
after: zod.z.string().describe("Only include flows modified after this ISO 8601 datetime").optional(),
|
|
12
|
+
before: zod.z.string().describe("Only include flows modified before this ISO 8601 datetime").optional(),
|
|
13
|
+
archived: zod.z.boolean().describe("Filter flows by archived status").optional()
|
|
14
|
+
}).describe("Request model for listing flows with optional filters.");
|
|
15
|
+
const TextitListFlows_RunsInfoSchema = zod.z.object({
|
|
16
|
+
active: zod.z.number().int().describe("Number of active runs"),
|
|
17
|
+
expired: zod.z.number().int().describe("Number of expired runs"),
|
|
18
|
+
completed: zod.z.number().int().describe("Number of completed runs"),
|
|
19
|
+
interrupted: zod.z.number().int().describe("Number of interrupted runs")
|
|
20
|
+
}).describe("Statistics about flow runs.");
|
|
21
|
+
const TextitListFlows_LabelSchema = zod.z.object({
|
|
22
|
+
name: zod.z.string().describe("Name of the label"),
|
|
23
|
+
uuid: zod.z.string().describe("UUID of the label")
|
|
24
|
+
}).describe("Label associated with a flow.");
|
|
25
|
+
const TextitListFlows_FlowResultSchema = zod.z.object({
|
|
26
|
+
key: zod.z.string().describe("Key of the result"),
|
|
27
|
+
name: zod.z.string().describe("Name of the result"),
|
|
28
|
+
categories: zod.z.array(zod.z.string()).describe("Categories for this result"),
|
|
29
|
+
node_uuids: zod.z.array(zod.z.string()).describe("Node UUIDs associated with this result")
|
|
30
|
+
}).describe("Result category within a flow.");
|
|
31
|
+
const TextitListFlows_FlowSchema = zod.z.object({
|
|
32
|
+
name: zod.z.string().describe("Name of the flow"),
|
|
33
|
+
runs: TextitListFlows_RunsInfoSchema.nullable(),
|
|
34
|
+
type: zod.z.string().describe("Type of the flow (message, voice, or survey)"),
|
|
35
|
+
uuid: zod.z.string().describe("Unique identifier of the flow"),
|
|
36
|
+
labels: zod.z.array(TextitListFlows_LabelSchema).describe("Labels associated with the flow"),
|
|
37
|
+
expires: zod.z.number().int().describe("Expiration time in minutes for flow runs"),
|
|
38
|
+
results: zod.z.array(TextitListFlows_FlowResultSchema).describe("Result categories within the flow"),
|
|
39
|
+
archived: zod.z.boolean().describe("Whether the flow is archived"),
|
|
40
|
+
created_on: zod.z.string().describe("Timestamp when the flow was created (ISO 8601)"),
|
|
41
|
+
modified_on: zod.z.string().describe("Timestamp when the flow was last modified (ISO 8601)"),
|
|
42
|
+
parent_refs: zod.z.array(zod.z.string()).describe("Parent flow references")
|
|
43
|
+
}).describe("Representation of a TextIt flow.");
|
|
44
|
+
const TextitListFlowsOutput = zod.z.object({
|
|
45
|
+
next: zod.z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
46
|
+
results: zod.z.array(TextitListFlows_FlowSchema).describe("List of flow objects"),
|
|
47
|
+
previous: zod.z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
48
|
+
}).describe("Paginated list of flows.");
|
|
49
|
+
const textitListFlows = require_action.action("TEXTIT_LIST_FLOWS", {
|
|
50
|
+
slug: "textit-list-flows",
|
|
51
|
+
name: "List Flows",
|
|
52
|
+
description: "Tool to retrieve a list of flows for your organization. Use when you need to fetch automated conversation flows with optional filters (UUID, type, archived status, or modified date).",
|
|
53
|
+
input: TextitListFlowsInput,
|
|
54
|
+
output: TextitListFlowsOutput
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
exports.textitListFlows = textitListFlows;
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=list-flows.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flows.cjs","names":["z","action"],"sources":["../../src/actions/list-flows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFlowsInput: z.ZodTypeAny = z.object({\n type: z.enum([\"message\", \"voice\", \"survey\"]).describe(\"Enum for flow types.\").optional(),\n uuid: z.string().describe(\"Filter flows by their UUID\").optional(),\n after: z.string().describe(\"Only include flows modified after this ISO 8601 datetime\").optional(),\n before: z.string().describe(\"Only include flows modified before this ISO 8601 datetime\").optional(),\n archived: z.boolean().describe(\"Filter flows by archived status\").optional(),\n}).describe(\"Request model for listing flows with optional filters.\");\nconst TextitListFlows_RunsInfoSchema: z.ZodTypeAny = z.object({\n active: z.number().int().describe(\"Number of active runs\"),\n expired: z.number().int().describe(\"Number of expired runs\"),\n completed: z.number().int().describe(\"Number of completed runs\"),\n interrupted: z.number().int().describe(\"Number of interrupted runs\"),\n}).describe(\"Statistics about flow runs.\");\nconst TextitListFlows_LabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label\"),\n uuid: z.string().describe(\"UUID of the label\"),\n}).describe(\"Label associated with a flow.\");\nconst TextitListFlows_FlowResultSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Key of the result\"),\n name: z.string().describe(\"Name of the result\"),\n categories: z.array(z.string()).describe(\"Categories for this result\"),\n node_uuids: z.array(z.string()).describe(\"Node UUIDs associated with this result\"),\n}).describe(\"Result category within a flow.\");\nconst TextitListFlows_FlowSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the flow\"),\n runs: TextitListFlows_RunsInfoSchema.nullable(),\n type: z.string().describe(\"Type of the flow (message, voice, or survey)\"),\n uuid: z.string().describe(\"Unique identifier of the flow\"),\n labels: z.array(TextitListFlows_LabelSchema).describe(\"Labels associated with the flow\"),\n expires: z.number().int().describe(\"Expiration time in minutes for flow runs\"),\n results: z.array(TextitListFlows_FlowResultSchema).describe(\"Result categories within the flow\"),\n archived: z.boolean().describe(\"Whether the flow is archived\"),\n created_on: z.string().describe(\"Timestamp when the flow was created (ISO 8601)\"),\n modified_on: z.string().describe(\"Timestamp when the flow was last modified (ISO 8601)\"),\n parent_refs: z.array(z.string()).describe(\"Parent flow references\"),\n}).describe(\"Representation of a TextIt flow.\");\nexport const TextitListFlowsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n results: z.array(TextitListFlows_FlowSchema).describe(\"List of flow objects\"),\n previous: z.string().describe(\"URL to the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of flows.\");\n\nexport const textitListFlows = action(\"TEXTIT_LIST_FLOWS\", {\n slug: \"textit-list-flows\",\n name: \"List Flows\",\n description: \"Tool to retrieve a list of flows for your organization. Use when you need to fetch automated conversation flows with optional filters (UUID, type, archived status, or modified date).\",\n input: TextitListFlowsInput,\n output: TextitListFlowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA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|
6
|
+
declare const textitListFlows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFlows };
|
|
9
|
+
//# sourceMappingURL=list-flows.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flows.d.cts","names":[],"sources":["../../src/actions/list-flows.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAMgC;AAAA,cA8BxD,qBAAA,EAAuB,CAAA,CAAE,UAIC;AAAA,cAE1B,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-flows.d.ts
|
|
4
|
+
declare const TextitListFlowsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListFlowsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListFlows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListFlows };
|
|
9
|
+
//# sourceMappingURL=list-flows.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flows.d.mts","names":[],"sources":["../../src/actions/list-flows.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAMgC;AAAA,cA8BxD,qBAAA,EAAuB,CAAA,CAAE,UAIC;AAAA,cAE1B,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-flows.ts
|
|
4
|
+
const TextitListFlowsInput = z.object({
|
|
5
|
+
type: z.enum([
|
|
6
|
+
"message",
|
|
7
|
+
"voice",
|
|
8
|
+
"survey"
|
|
9
|
+
]).describe("Enum for flow types.").optional(),
|
|
10
|
+
uuid: z.string().describe("Filter flows by their UUID").optional(),
|
|
11
|
+
after: z.string().describe("Only include flows modified after this ISO 8601 datetime").optional(),
|
|
12
|
+
before: z.string().describe("Only include flows modified before this ISO 8601 datetime").optional(),
|
|
13
|
+
archived: z.boolean().describe("Filter flows by archived status").optional()
|
|
14
|
+
}).describe("Request model for listing flows with optional filters.");
|
|
15
|
+
const TextitListFlows_RunsInfoSchema = z.object({
|
|
16
|
+
active: z.number().int().describe("Number of active runs"),
|
|
17
|
+
expired: z.number().int().describe("Number of expired runs"),
|
|
18
|
+
completed: z.number().int().describe("Number of completed runs"),
|
|
19
|
+
interrupted: z.number().int().describe("Number of interrupted runs")
|
|
20
|
+
}).describe("Statistics about flow runs.");
|
|
21
|
+
const TextitListFlows_LabelSchema = z.object({
|
|
22
|
+
name: z.string().describe("Name of the label"),
|
|
23
|
+
uuid: z.string().describe("UUID of the label")
|
|
24
|
+
}).describe("Label associated with a flow.");
|
|
25
|
+
const TextitListFlows_FlowResultSchema = z.object({
|
|
26
|
+
key: z.string().describe("Key of the result"),
|
|
27
|
+
name: z.string().describe("Name of the result"),
|
|
28
|
+
categories: z.array(z.string()).describe("Categories for this result"),
|
|
29
|
+
node_uuids: z.array(z.string()).describe("Node UUIDs associated with this result")
|
|
30
|
+
}).describe("Result category within a flow.");
|
|
31
|
+
const TextitListFlows_FlowSchema = z.object({
|
|
32
|
+
name: z.string().describe("Name of the flow"),
|
|
33
|
+
runs: TextitListFlows_RunsInfoSchema.nullable(),
|
|
34
|
+
type: z.string().describe("Type of the flow (message, voice, or survey)"),
|
|
35
|
+
uuid: z.string().describe("Unique identifier of the flow"),
|
|
36
|
+
labels: z.array(TextitListFlows_LabelSchema).describe("Labels associated with the flow"),
|
|
37
|
+
expires: z.number().int().describe("Expiration time in minutes for flow runs"),
|
|
38
|
+
results: z.array(TextitListFlows_FlowResultSchema).describe("Result categories within the flow"),
|
|
39
|
+
archived: z.boolean().describe("Whether the flow is archived"),
|
|
40
|
+
created_on: z.string().describe("Timestamp when the flow was created (ISO 8601)"),
|
|
41
|
+
modified_on: z.string().describe("Timestamp when the flow was last modified (ISO 8601)"),
|
|
42
|
+
parent_refs: z.array(z.string()).describe("Parent flow references")
|
|
43
|
+
}).describe("Representation of a TextIt flow.");
|
|
44
|
+
const textitListFlows = action("TEXTIT_LIST_FLOWS", {
|
|
45
|
+
slug: "textit-list-flows",
|
|
46
|
+
name: "List Flows",
|
|
47
|
+
description: "Tool to retrieve a list of flows for your organization. Use when you need to fetch automated conversation flows with optional filters (UUID, type, archived status, or modified date).",
|
|
48
|
+
input: TextitListFlowsInput,
|
|
49
|
+
output: z.object({
|
|
50
|
+
next: z.string().describe("URL to the next page of results, if any").nullable().optional(),
|
|
51
|
+
results: z.array(TextitListFlows_FlowSchema).describe("List of flow objects"),
|
|
52
|
+
previous: z.string().describe("URL to the previous page of results, if any").nullable().optional()
|
|
53
|
+
}).describe("Paginated list of flows.")
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { textitListFlows };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=list-flows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-flows.mjs","names":[],"sources":["../../src/actions/list-flows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListFlowsInput: z.ZodTypeAny = z.object({\n type: z.enum([\"message\", \"voice\", \"survey\"]).describe(\"Enum for flow types.\").optional(),\n uuid: z.string().describe(\"Filter flows by their UUID\").optional(),\n after: z.string().describe(\"Only include flows modified after this ISO 8601 datetime\").optional(),\n before: z.string().describe(\"Only include flows modified before this ISO 8601 datetime\").optional(),\n archived: z.boolean().describe(\"Filter flows by archived status\").optional(),\n}).describe(\"Request model for listing flows with optional filters.\");\nconst TextitListFlows_RunsInfoSchema: z.ZodTypeAny = z.object({\n active: z.number().int().describe(\"Number of active runs\"),\n expired: z.number().int().describe(\"Number of expired runs\"),\n completed: z.number().int().describe(\"Number of completed runs\"),\n interrupted: z.number().int().describe(\"Number of interrupted runs\"),\n}).describe(\"Statistics about flow runs.\");\nconst TextitListFlows_LabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label\"),\n uuid: z.string().describe(\"UUID of the label\"),\n}).describe(\"Label associated with a flow.\");\nconst TextitListFlows_FlowResultSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"Key of the result\"),\n name: z.string().describe(\"Name of the result\"),\n categories: z.array(z.string()).describe(\"Categories for this result\"),\n node_uuids: z.array(z.string()).describe(\"Node UUIDs associated with this result\"),\n}).describe(\"Result category within a flow.\");\nconst TextitListFlows_FlowSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the flow\"),\n runs: TextitListFlows_RunsInfoSchema.nullable(),\n type: z.string().describe(\"Type of the flow (message, voice, or survey)\"),\n uuid: z.string().describe(\"Unique identifier of the flow\"),\n labels: z.array(TextitListFlows_LabelSchema).describe(\"Labels associated with the flow\"),\n expires: z.number().int().describe(\"Expiration time in minutes for flow runs\"),\n results: z.array(TextitListFlows_FlowResultSchema).describe(\"Result categories within the flow\"),\n archived: z.boolean().describe(\"Whether the flow is archived\"),\n created_on: z.string().describe(\"Timestamp when the flow was created (ISO 8601)\"),\n modified_on: z.string().describe(\"Timestamp when the flow was last modified (ISO 8601)\"),\n parent_refs: z.array(z.string()).describe(\"Parent flow references\"),\n}).describe(\"Representation of a TextIt flow.\");\nexport const TextitListFlowsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any\").nullable().optional(),\n results: z.array(TextitListFlows_FlowSchema).describe(\"List of flow objects\"),\n previous: z.string().describe(\"URL to the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of flows.\");\n\nexport const textitListFlows = action(\"TEXTIT_LIST_FLOWS\", {\n slug: \"textit-list-flows\",\n name: \"List Flows\",\n description: \"Tool to retrieve a list of flows for your organization. Use when you need to fetch automated conversation flows with optional filters (UUID, type, archived status, or modified date).\",\n input: TextitListFlowsInput,\n output: TextitListFlowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAA+C,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;AACrE,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,8BAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;AAC/C,CAAC,CAAC,CAAC,SAAS,+BAA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B;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,0BAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-globals.ts
|
|
4
|
+
const TextitListGlobalsInput = zod.z.object({ cursor: zod.z.string().describe("Cursor for pagination. Extract from the 'next' URL of previous response.").optional() }).describe("Request model for listing global variables.");
|
|
5
|
+
const TextitListGlobals_GlobalSchema = zod.z.object({
|
|
6
|
+
key: zod.z.string().describe("The key/name of the global variable."),
|
|
7
|
+
name: zod.z.string().describe("The display name of the global variable."),
|
|
8
|
+
value: zod.z.string().describe("The value of the global variable."),
|
|
9
|
+
modified_on: zod.z.string().describe("UTC timestamp when the global variable was last modified (ISO 8601 format).")
|
|
10
|
+
}).describe("Model representing a single global variable.");
|
|
11
|
+
const TextitListGlobalsOutput = zod.z.object({
|
|
12
|
+
next: zod.z.string().describe("URL to the next page of results, if any.").nullable().optional(),
|
|
13
|
+
results: zod.z.array(TextitListGlobals_GlobalSchema).describe("List of global variable objects."),
|
|
14
|
+
previous: zod.z.string().describe("URL to the previous page of results, if any.").nullable().optional()
|
|
15
|
+
}).describe("Response model for listing global variables with pagination.");
|
|
16
|
+
const textitListGlobals = require_action.action("TEXTIT_LIST_GLOBALS", {
|
|
17
|
+
slug: "textit-list-globals",
|
|
18
|
+
name: "List Globals",
|
|
19
|
+
description: "Tool to list global variables. Use when you need to retrieve all workspace-level variables after authenticating.",
|
|
20
|
+
input: TextitListGlobalsInput,
|
|
21
|
+
output: TextitListGlobalsOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.textitListGlobals = textitListGlobals;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=list-globals.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-globals.cjs","names":["z","action"],"sources":["../../src/actions/list-globals.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextitListGlobalsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Extract from the 'next' URL of previous response.\").optional(),\n}).describe(\"Request model for listing global variables.\");\nconst TextitListGlobals_GlobalSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The key/name of the global variable.\"),\n name: z.string().describe(\"The display name of the global variable.\"),\n value: z.string().describe(\"The value of the global variable.\"),\n modified_on: z.string().describe(\"UTC timestamp when the global variable was last modified (ISO 8601 format).\"),\n}).describe(\"Model representing a single global variable.\");\nexport const TextitListGlobalsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, if any.\").nullable().optional(),\n results: z.array(TextitListGlobals_GlobalSchema).describe(\"List of global variable objects.\"),\n previous: z.string().describe(\"URL to the previous page of results, if any.\").nullable().optional(),\n}).describe(\"Response model for listing global variables with pagination.\");\n\nexport const textitListGlobals = action(\"TEXTIT_LIST_GLOBALS\", {\n slug: \"textit-list-globals\",\n name: \"List Globals\",\n description: \"Tool to list global variables. Use when you need to retrieve all workspace-level variables after authenticating.\",\n input: TextitListGlobalsInput,\n output: TextitListGlobalsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,kCAAkC;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,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/list-globals.d.ts
|
|
4
|
+
declare const TextitListGlobalsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListGlobalsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListGlobals: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListGlobals };
|
|
9
|
+
//# sourceMappingURL=list-globals.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-globals.d.cts","names":[],"sources":["../../src/actions/list-globals.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEmB;AAAA,cAO7C,uBAAA,EAAyB,CAAA,CAAE,UAImC;AAAA,cAE9D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-globals.d.ts
|
|
4
|
+
declare const TextitListGlobalsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextitListGlobalsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textitListGlobals: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textitListGlobals };
|
|
9
|
+
//# sourceMappingURL=list-globals.d.mts.map
|