@keystrokehq/postalytics 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.
Files changed (226) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-account.cjs +32 -0
  7. package/dist/actions/add-account.cjs.map +1 -0
  8. package/dist/actions/add-account.d.cts +9 -0
  9. package/dist/actions/add-account.d.cts.map +1 -0
  10. package/dist/actions/add-account.d.mts +9 -0
  11. package/dist/actions/add-account.d.mts.map +1 -0
  12. package/dist/actions/add-account.mjs +29 -0
  13. package/dist/actions/add-account.mjs.map +1 -0
  14. package/dist/actions/add-contact.cjs +68 -0
  15. package/dist/actions/add-contact.cjs.map +1 -0
  16. package/dist/actions/add-contact.d.cts +9 -0
  17. package/dist/actions/add-contact.d.cts.map +1 -0
  18. package/dist/actions/add-contact.d.mts +9 -0
  19. package/dist/actions/add-contact.d.mts.map +1 -0
  20. package/dist/actions/add-contact.mjs +65 -0
  21. package/dist/actions/add-contact.mjs.map +1 -0
  22. package/dist/actions/create-new-campaign.cjs +32 -0
  23. package/dist/actions/create-new-campaign.cjs.map +1 -0
  24. package/dist/actions/create-new-campaign.d.cts +9 -0
  25. package/dist/actions/create-new-campaign.d.cts.map +1 -0
  26. package/dist/actions/create-new-campaign.d.mts +9 -0
  27. package/dist/actions/create-new-campaign.d.mts.map +1 -0
  28. package/dist/actions/create-new-campaign.mjs +29 -0
  29. package/dist/actions/create-new-campaign.mjs.map +1 -0
  30. package/dist/actions/create-suppression-list-contact.cjs +134 -0
  31. package/dist/actions/create-suppression-list-contact.cjs.map +1 -0
  32. package/dist/actions/create-suppression-list-contact.d.cts +9 -0
  33. package/dist/actions/create-suppression-list-contact.d.cts.map +1 -0
  34. package/dist/actions/create-suppression-list-contact.d.mts +9 -0
  35. package/dist/actions/create-suppression-list-contact.d.mts.map +1 -0
  36. package/dist/actions/create-suppression-list-contact.mjs +133 -0
  37. package/dist/actions/create-suppression-list-contact.mjs.map +1 -0
  38. package/dist/actions/create-suppression-list.cjs +27 -0
  39. package/dist/actions/create-suppression-list.cjs.map +1 -0
  40. package/dist/actions/create-suppression-list.d.cts +9 -0
  41. package/dist/actions/create-suppression-list.d.cts.map +1 -0
  42. package/dist/actions/create-suppression-list.d.mts +9 -0
  43. package/dist/actions/create-suppression-list.d.mts.map +1 -0
  44. package/dist/actions/create-suppression-list.mjs +26 -0
  45. package/dist/actions/create-suppression-list.mjs.map +1 -0
  46. package/dist/actions/create-template.cjs +30 -0
  47. package/dist/actions/create-template.cjs.map +1 -0
  48. package/dist/actions/create-template.d.cts +9 -0
  49. package/dist/actions/create-template.d.cts.map +1 -0
  50. package/dist/actions/create-template.d.mts +9 -0
  51. package/dist/actions/create-template.d.mts.map +1 -0
  52. package/dist/actions/create-template.mjs +27 -0
  53. package/dist/actions/create-template.mjs.map +1 -0
  54. package/dist/actions/create-webhook.cjs +28 -0
  55. package/dist/actions/create-webhook.cjs.map +1 -0
  56. package/dist/actions/create-webhook.d.cts +9 -0
  57. package/dist/actions/create-webhook.d.cts.map +1 -0
  58. package/dist/actions/create-webhook.d.mts +9 -0
  59. package/dist/actions/create-webhook.d.mts.map +1 -0
  60. package/dist/actions/create-webhook.mjs +25 -0
  61. package/dist/actions/create-webhook.mjs.map +1 -0
  62. package/dist/actions/delete-account.cjs +19 -0
  63. package/dist/actions/delete-account.cjs.map +1 -0
  64. package/dist/actions/delete-account.d.cts +9 -0
  65. package/dist/actions/delete-account.d.cts.map +1 -0
  66. package/dist/actions/delete-account.d.mts +9 -0
  67. package/dist/actions/delete-account.d.mts.map +1 -0
  68. package/dist/actions/delete-account.mjs +16 -0
  69. package/dist/actions/delete-account.mjs.map +1 -0
  70. package/dist/actions/delete-campaign.cjs +16 -0
  71. package/dist/actions/delete-campaign.cjs.map +1 -0
  72. package/dist/actions/delete-campaign.d.cts +9 -0
  73. package/dist/actions/delete-campaign.d.cts.map +1 -0
  74. package/dist/actions/delete-campaign.d.mts +9 -0
  75. package/dist/actions/delete-campaign.d.mts.map +1 -0
  76. package/dist/actions/delete-campaign.mjs +13 -0
  77. package/dist/actions/delete-campaign.mjs.map +1 -0
  78. package/dist/actions/delete-suppression-list-contact.cjs +19 -0
  79. package/dist/actions/delete-suppression-list-contact.cjs.map +1 -0
  80. package/dist/actions/delete-suppression-list-contact.d.cts +9 -0
  81. package/dist/actions/delete-suppression-list-contact.d.cts.map +1 -0
  82. package/dist/actions/delete-suppression-list-contact.d.mts +9 -0
  83. package/dist/actions/delete-suppression-list-contact.d.mts.map +1 -0
  84. package/dist/actions/delete-suppression-list-contact.mjs +16 -0
  85. package/dist/actions/delete-suppression-list-contact.mjs.map +1 -0
  86. package/dist/actions/delete-suppression-list.cjs +16 -0
  87. package/dist/actions/delete-suppression-list.cjs.map +1 -0
  88. package/dist/actions/delete-suppression-list.d.cts +9 -0
  89. package/dist/actions/delete-suppression-list.d.cts.map +1 -0
  90. package/dist/actions/delete-suppression-list.d.mts +9 -0
  91. package/dist/actions/delete-suppression-list.d.mts.map +1 -0
  92. package/dist/actions/delete-suppression-list.mjs +13 -0
  93. package/dist/actions/delete-suppression-list.mjs.map +1 -0
  94. package/dist/actions/get-all-contact-lists.cjs +22 -0
  95. package/dist/actions/get-all-contact-lists.cjs.map +1 -0
  96. package/dist/actions/get-all-contact-lists.d.cts +9 -0
  97. package/dist/actions/get-all-contact-lists.d.cts.map +1 -0
  98. package/dist/actions/get-all-contact-lists.d.mts +9 -0
  99. package/dist/actions/get-all-contact-lists.d.mts.map +1 -0
  100. package/dist/actions/get-all-contact-lists.mjs +21 -0
  101. package/dist/actions/get-all-contact-lists.mjs.map +1 -0
  102. package/dist/actions/get-all-contacts-on-a-list.cjs +70 -0
  103. package/dist/actions/get-all-contacts-on-a-list.cjs.map +1 -0
  104. package/dist/actions/get-all-contacts-on-a-list.d.cts +9 -0
  105. package/dist/actions/get-all-contacts-on-a-list.d.cts.map +1 -0
  106. package/dist/actions/get-all-contacts-on-a-list.d.mts +9 -0
  107. package/dist/actions/get-all-contacts-on-a-list.d.mts.map +1 -0
  108. package/dist/actions/get-all-contacts-on-a-list.mjs +69 -0
  109. package/dist/actions/get-all-contacts-on-a-list.mjs.map +1 -0
  110. package/dist/actions/get-all-drip-campaigns.cjs +20 -0
  111. package/dist/actions/get-all-drip-campaigns.cjs.map +1 -0
  112. package/dist/actions/get-all-drip-campaigns.d.cts +9 -0
  113. package/dist/actions/get-all-drip-campaigns.d.cts.map +1 -0
  114. package/dist/actions/get-all-drip-campaigns.d.mts +9 -0
  115. package/dist/actions/get-all-drip-campaigns.d.mts.map +1 -0
  116. package/dist/actions/get-all-drip-campaigns.mjs +19 -0
  117. package/dist/actions/get-all-drip-campaigns.mjs.map +1 -0
  118. package/dist/actions/get-all-flows.cjs +25 -0
  119. package/dist/actions/get-all-flows.cjs.map +1 -0
  120. package/dist/actions/get-all-flows.d.cts +9 -0
  121. package/dist/actions/get-all-flows.d.cts.map +1 -0
  122. package/dist/actions/get-all-flows.d.mts +9 -0
  123. package/dist/actions/get-all-flows.d.mts.map +1 -0
  124. package/dist/actions/get-all-flows.mjs +24 -0
  125. package/dist/actions/get-all-flows.mjs.map +1 -0
  126. package/dist/actions/get-all-webhooks.cjs +23 -0
  127. package/dist/actions/get-all-webhooks.cjs.map +1 -0
  128. package/dist/actions/get-all-webhooks.d.cts +9 -0
  129. package/dist/actions/get-all-webhooks.d.cts.map +1 -0
  130. package/dist/actions/get-all-webhooks.d.mts +9 -0
  131. package/dist/actions/get-all-webhooks.d.mts.map +1 -0
  132. package/dist/actions/get-all-webhooks.mjs +22 -0
  133. package/dist/actions/get-all-webhooks.mjs.map +1 -0
  134. package/dist/actions/get-integrations.cjs +23 -0
  135. package/dist/actions/get-integrations.cjs.map +1 -0
  136. package/dist/actions/get-integrations.d.cts +9 -0
  137. package/dist/actions/get-integrations.d.cts.map +1 -0
  138. package/dist/actions/get-integrations.d.mts +9 -0
  139. package/dist/actions/get-integrations.d.mts.map +1 -0
  140. package/dist/actions/get-integrations.mjs +22 -0
  141. package/dist/actions/get-integrations.mjs.map +1 -0
  142. package/dist/actions/get-my-account.cjs +32 -0
  143. package/dist/actions/get-my-account.cjs.map +1 -0
  144. package/dist/actions/get-my-account.d.cts +9 -0
  145. package/dist/actions/get-my-account.d.cts.map +1 -0
  146. package/dist/actions/get-my-account.d.mts +9 -0
  147. package/dist/actions/get-my-account.d.mts.map +1 -0
  148. package/dist/actions/get-my-account.mjs +31 -0
  149. package/dist/actions/get-my-account.mjs.map +1 -0
  150. package/dist/actions/get-suppression-list-contact.cjs +87 -0
  151. package/dist/actions/get-suppression-list-contact.cjs.map +1 -0
  152. package/dist/actions/get-suppression-list-contact.d.cts +9 -0
  153. package/dist/actions/get-suppression-list-contact.d.cts.map +1 -0
  154. package/dist/actions/get-suppression-list-contact.d.mts +9 -0
  155. package/dist/actions/get-suppression-list-contact.d.mts.map +1 -0
  156. package/dist/actions/get-suppression-list-contact.mjs +86 -0
  157. package/dist/actions/get-suppression-list-contact.mjs.map +1 -0
  158. package/dist/actions/get-suppression-list-contacts.cjs +86 -0
  159. package/dist/actions/get-suppression-list-contacts.cjs.map +1 -0
  160. package/dist/actions/get-suppression-list-contacts.d.cts +9 -0
  161. package/dist/actions/get-suppression-list-contacts.d.cts.map +1 -0
  162. package/dist/actions/get-suppression-list-contacts.d.mts +9 -0
  163. package/dist/actions/get-suppression-list-contacts.d.mts.map +1 -0
  164. package/dist/actions/get-suppression-list-contacts.mjs +85 -0
  165. package/dist/actions/get-suppression-list-contacts.mjs.map +1 -0
  166. package/dist/actions/get-suppression-list.cjs +24 -0
  167. package/dist/actions/get-suppression-list.cjs.map +1 -0
  168. package/dist/actions/get-suppression-list.d.cts +9 -0
  169. package/dist/actions/get-suppression-list.d.cts.map +1 -0
  170. package/dist/actions/get-suppression-list.d.mts +9 -0
  171. package/dist/actions/get-suppression-list.d.mts.map +1 -0
  172. package/dist/actions/get-suppression-list.mjs +23 -0
  173. package/dist/actions/get-suppression-list.mjs.map +1 -0
  174. package/dist/actions/get-suppression-lists.cjs +24 -0
  175. package/dist/actions/get-suppression-lists.cjs.map +1 -0
  176. package/dist/actions/get-suppression-lists.d.cts +9 -0
  177. package/dist/actions/get-suppression-lists.d.cts.map +1 -0
  178. package/dist/actions/get-suppression-lists.d.mts +9 -0
  179. package/dist/actions/get-suppression-lists.d.mts.map +1 -0
  180. package/dist/actions/get-suppression-lists.mjs +23 -0
  181. package/dist/actions/get-suppression-lists.mjs.map +1 -0
  182. package/dist/actions/index.cjs +49 -0
  183. package/dist/actions/index.d.cts +25 -0
  184. package/dist/actions/index.d.mts +25 -0
  185. package/dist/actions/index.mjs +25 -0
  186. package/dist/actions/update-account.cjs +32 -0
  187. package/dist/actions/update-account.cjs.map +1 -0
  188. package/dist/actions/update-account.d.cts +9 -0
  189. package/dist/actions/update-account.d.cts.map +1 -0
  190. package/dist/actions/update-account.d.mts +9 -0
  191. package/dist/actions/update-account.d.mts.map +1 -0
  192. package/dist/actions/update-account.mjs +29 -0
  193. package/dist/actions/update-account.mjs.map +1 -0
  194. package/dist/actions/update-suppression-list-contact.cjs +135 -0
  195. package/dist/actions/update-suppression-list-contact.cjs.map +1 -0
  196. package/dist/actions/update-suppression-list-contact.d.cts +9 -0
  197. package/dist/actions/update-suppression-list-contact.d.cts.map +1 -0
  198. package/dist/actions/update-suppression-list-contact.d.mts +9 -0
  199. package/dist/actions/update-suppression-list-contact.d.mts.map +1 -0
  200. package/dist/actions/update-suppression-list-contact.mjs +134 -0
  201. package/dist/actions/update-suppression-list-contact.mjs.map +1 -0
  202. package/dist/app.cjs +9 -0
  203. package/dist/app.cjs.map +1 -0
  204. package/dist/app.d.cts +5 -0
  205. package/dist/app.d.cts.map +1 -0
  206. package/dist/app.d.mts +5 -0
  207. package/dist/app.d.mts.map +1 -0
  208. package/dist/app.mjs +10 -0
  209. package/dist/app.mjs.map +1 -0
  210. package/dist/catalog.cjs +15 -0
  211. package/dist/catalog.cjs.map +1 -0
  212. package/dist/catalog.d.cts +14 -0
  213. package/dist/catalog.d.cts.map +1 -0
  214. package/dist/catalog.d.mts +14 -0
  215. package/dist/catalog.d.mts.map +1 -0
  216. package/dist/catalog.mjs +15 -0
  217. package/dist/catalog.mjs.map +1 -0
  218. package/dist/execute.cjs +18 -0
  219. package/dist/execute.cjs.map +1 -0
  220. package/dist/execute.mjs +18 -0
  221. package/dist/execute.mjs.map +1 -0
  222. package/dist/index.cjs +54 -0
  223. package/dist/index.d.cts +27 -0
  224. package/dist/index.d.mts +27 -0
  225. package/dist/index.mjs +28 -0
  226. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/postalytics
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `postalytics`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 24
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { postalyticsAddAccount } from "@keystrokehq/postalytics/actions";
12
+
13
+ export default defineAgent({
14
+ key: "postalytics-agent",
15
+ tools: [postalyticsAddAccount],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.postalytics.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executePostalyticsTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["postalytics","executePostalyticsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { postalytics } from \"./app\";\nimport { executePostalyticsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return postalytics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePostalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { postalytics } from "./app.mjs";
2
+ import { executePostalyticsTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return postalytics.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executePostalyticsTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { postalytics } from \"./app\";\nimport { executePostalyticsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return postalytics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePostalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/add-account.ts
4
+ const PostalyticsAddAccountInput = zod.z.object({
5
+ phone: zod.z.string().describe("The phone number associated with the account").optional(),
6
+ company: zod.z.string().describe("The company name associated with the account").optional(),
7
+ password: zod.z.string().describe("The password associated with the account. Must follow password guidelines - minimum 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character"),
8
+ username: zod.z.string().describe("The username associated with the account - must be unique"),
9
+ last_name: zod.z.string().describe("The last name of the account holder"),
10
+ first_name: zod.z.string().describe("The first name of the account holder"),
11
+ address_zip: zod.z.string().describe("The zip code associated with the account's address").optional(),
12
+ address_city: zod.z.string().describe("The city associated with the account's address").optional(),
13
+ address_state: zod.z.string().describe("The state associated with the account's address").optional(),
14
+ email_address: zod.z.string().describe("The email address associated with the account").optional(),
15
+ address_street: zod.z.string().describe("The street address associated with the account").optional()
16
+ }).describe("Request model for creating a new sub-account.");
17
+ const PostalyticsAddAccountOutput = zod.z.object({
18
+ api_key: zod.z.string().describe("The API key associated with the newly created account").nullable().optional(),
19
+ account_id: zod.z.string().describe("The unique account identifier").nullable().optional(),
20
+ created_date: zod.z.string().describe("The date and time when the account was created").nullable().optional()
21
+ }).describe("Response model for creating a new sub-account.");
22
+ const postalyticsAddAccount = require_action.action("POSTALYTICS_ADD_ACCOUNT", {
23
+ slug: "postalytics-add-account",
24
+ name: "Add Account",
25
+ description: "Tool to create a new sub-account in the Postalytics system. Use when you need to create a new account with a unique ID associated with the requester's user ID as parent. The response includes the API key and user ID for the new account, which should be stored for future API calls.",
26
+ input: PostalyticsAddAccountInput,
27
+ output: PostalyticsAddAccountOutput
28
+ });
29
+ //#endregion
30
+ exports.postalyticsAddAccount = postalyticsAddAccount;
31
+
32
+ //# sourceMappingURL=add-account.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-account.cjs","names":["z","action"],"sources":["../../src/actions/add-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsAddAccountInput: z.ZodTypeAny = z.object({\n phone: z.string().describe(\"The phone number associated with the account\").optional(),\n company: z.string().describe(\"The company name associated with the account\").optional(),\n password: z.string().describe(\"The password associated with the account. Must follow password guidelines - minimum 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character\"),\n username: z.string().describe(\"The username associated with the account - must be unique\"),\n last_name: z.string().describe(\"The last name of the account holder\"),\n first_name: z.string().describe(\"The first name of the account holder\"),\n address_zip: z.string().describe(\"The zip code associated with the account's address\").optional(),\n address_city: z.string().describe(\"The city associated with the account's address\").optional(),\n address_state: z.string().describe(\"The state associated with the account's address\").optional(),\n email_address: z.string().describe(\"The email address associated with the account\").optional(),\n address_street: z.string().describe(\"The street address associated with the account\").optional(),\n}).describe(\"Request model for creating a new sub-account.\");\nexport const PostalyticsAddAccountOutput: z.ZodTypeAny = z.object({\n api_key: z.string().describe(\"The API key associated with the newly created account\").nullable().optional(),\n account_id: z.string().describe(\"The unique account identifier\").nullable().optional(),\n created_date: z.string().describe(\"The date and time when the account was created\").nullable().optional(),\n}).describe(\"Response model for creating a new sub-account.\");\n\nexport const postalyticsAddAccount = action(\"POSTALYTICS_ADD_ACCOUNT\", {\n slug: \"postalytics-add-account\",\n name: \"Add Account\",\n description: \"Tool to create a new sub-account in the Postalytics system. Use when you need to create a new account with a unique ID associated with the requester's user ID as parent. The response includes the API key and user ID for the new account, which should be stored for future API calls.\",\n input: PostalyticsAddAccountInput,\n output: PostalyticsAddAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;CACpN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,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/add-account.d.ts
4
+ declare const PostalyticsAddAccountInput: z.ZodTypeAny;
5
+ declare const PostalyticsAddAccountOutput: z.ZodTypeAny;
6
+ declare const postalyticsAddAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsAddAccount };
9
+ //# sourceMappingURL=add-account.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-account.d.cts","names":[],"sources":["../../src/actions/add-account.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAYiB;AAAA,cAC/C,2BAAA,EAA6B,CAAA,CAAE,UAIiB;AAAA,cAEhD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/add-account.d.ts
4
+ declare const PostalyticsAddAccountInput: z.ZodTypeAny;
5
+ declare const PostalyticsAddAccountOutput: z.ZodTypeAny;
6
+ declare const postalyticsAddAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsAddAccount };
9
+ //# sourceMappingURL=add-account.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-account.d.mts","names":[],"sources":["../../src/actions/add-account.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAYiB;AAAA,cAC/C,2BAAA,EAA6B,CAAA,CAAE,UAIiB;AAAA,cAEhD,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
+ const postalyticsAddAccount = action("POSTALYTICS_ADD_ACCOUNT", {
4
+ slug: "postalytics-add-account",
5
+ name: "Add Account",
6
+ description: "Tool to create a new sub-account in the Postalytics system. Use when you need to create a new account with a unique ID associated with the requester's user ID as parent. The response includes the API key and user ID for the new account, which should be stored for future API calls.",
7
+ input: z.object({
8
+ phone: z.string().describe("The phone number associated with the account").optional(),
9
+ company: z.string().describe("The company name associated with the account").optional(),
10
+ password: z.string().describe("The password associated with the account. Must follow password guidelines - minimum 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character"),
11
+ username: z.string().describe("The username associated with the account - must be unique"),
12
+ last_name: z.string().describe("The last name of the account holder"),
13
+ first_name: z.string().describe("The first name of the account holder"),
14
+ address_zip: z.string().describe("The zip code associated with the account's address").optional(),
15
+ address_city: z.string().describe("The city associated with the account's address").optional(),
16
+ address_state: z.string().describe("The state associated with the account's address").optional(),
17
+ email_address: z.string().describe("The email address associated with the account").optional(),
18
+ address_street: z.string().describe("The street address associated with the account").optional()
19
+ }).describe("Request model for creating a new sub-account."),
20
+ output: z.object({
21
+ api_key: z.string().describe("The API key associated with the newly created account").nullable().optional(),
22
+ account_id: z.string().describe("The unique account identifier").nullable().optional(),
23
+ created_date: z.string().describe("The date and time when the account was created").nullable().optional()
24
+ }).describe("Response model for creating a new sub-account.")
25
+ });
26
+ //#endregion
27
+ export { postalyticsAddAccount };
28
+
29
+ //# sourceMappingURL=add-account.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-account.mjs","names":[],"sources":["../../src/actions/add-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsAddAccountInput: z.ZodTypeAny = z.object({\n phone: z.string().describe(\"The phone number associated with the account\").optional(),\n company: z.string().describe(\"The company name associated with the account\").optional(),\n password: z.string().describe(\"The password associated with the account. Must follow password guidelines - minimum 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character\"),\n username: z.string().describe(\"The username associated with the account - must be unique\"),\n last_name: z.string().describe(\"The last name of the account holder\"),\n first_name: z.string().describe(\"The first name of the account holder\"),\n address_zip: z.string().describe(\"The zip code associated with the account's address\").optional(),\n address_city: z.string().describe(\"The city associated with the account's address\").optional(),\n address_state: z.string().describe(\"The state associated with the account's address\").optional(),\n email_address: z.string().describe(\"The email address associated with the account\").optional(),\n address_street: z.string().describe(\"The street address associated with the account\").optional(),\n}).describe(\"Request model for creating a new sub-account.\");\nexport const PostalyticsAddAccountOutput: z.ZodTypeAny = z.object({\n api_key: z.string().describe(\"The API key associated with the newly created account\").nullable().optional(),\n account_id: z.string().describe(\"The unique account identifier\").nullable().optional(),\n created_date: z.string().describe(\"The date and time when the account was created\").nullable().optional(),\n}).describe(\"Response model for creating a new sub-account.\");\n\nexport const postalyticsAddAccount = action(\"POSTALYTICS_ADD_ACCOUNT\", {\n slug: \"postalytics-add-account\",\n name: \"Add Account\",\n description: \"Tool to create a new sub-account in the Postalytics system. Use when you need to create a new account with a unique ID associated with the requester's user ID as parent. The response includes the API key and user ID for the new account, which should be stored for future API calls.\",\n input: PostalyticsAddAccountInput,\n output: PostalyticsAddAccountOutput,\n});\n"],"mappings":";;AAuBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;EACpN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC/F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,+CAWH;CACP,QAXuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,68 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/add-contact.ts
4
+ const PostalyticsAddContactInput = zod.z.object({
5
+ phone: zod.z.string().describe("Phone number of the contact.").optional(),
6
+ company: zod.z.string().describe("Company name of the contact.").optional(),
7
+ website: zod.z.string().describe("Website URL of the contact.").optional(),
8
+ last_name: zod.z.string().describe("Last name of the contact.").optional(),
9
+ contact_id: zod.z.number().int().describe("The unique id of the contact. Required for updating but not required for inserting.").optional(),
10
+ first_name: zod.z.string().describe("First name of the contact.").optional(),
11
+ occupation: zod.z.string().describe("Occupation of the contact.").optional(),
12
+ address_zip: zod.z.string().describe("Zip/postal code for the contact address.").optional(),
13
+ var_field_1: zod.z.string().describe("Custom variable field 1 for additional data.").optional(),
14
+ var_field_2: zod.z.string().describe("Custom variable field 2 for additional data.").optional(),
15
+ var_field_3: zod.z.string().describe("Custom variable field 3 for additional data.").optional(),
16
+ var_field_4: zod.z.string().describe("Custom variable field 4 for additional data.").optional(),
17
+ var_field_5: zod.z.string().describe("Custom variable field 5 for additional data.").optional(),
18
+ var_field_6: zod.z.string().describe("Custom variable field 6 for additional data.").optional(),
19
+ var_field_7: zod.z.string().describe("Custom variable field 7 for additional data.").optional(),
20
+ var_field_8: zod.z.string().describe("Custom variable field 8 for additional data.").optional(),
21
+ var_field_9: zod.z.string().describe("Custom variable field 9 for additional data.").optional(),
22
+ address_city: zod.z.string().describe("City for the contact address.").optional(),
23
+ created_date: zod.z.string().describe("The date and time when the contact was created (ISO 8601 format).").optional(),
24
+ mobile_phone: zod.z.string().describe("Mobile phone number of the contact.").optional(),
25
+ var_field_10: zod.z.string().describe("Custom variable field 10 for additional data.").optional(),
26
+ var_field_11: zod.z.string().describe("Custom variable field 11 for additional data.").optional(),
27
+ var_field_12: zod.z.string().describe("Custom variable field 12 for additional data.").optional(),
28
+ var_field_13: zod.z.string().describe("Custom variable field 13 for additional data.").optional(),
29
+ var_field_14: zod.z.string().describe("Custom variable field 14 for additional data.").optional(),
30
+ var_field_15: zod.z.string().describe("Custom variable field 15 for additional data.").optional(),
31
+ var_field_16: zod.z.string().describe("Custom variable field 16 for additional data.").optional(),
32
+ var_field_17: zod.z.string().describe("Custom variable field 17 for additional data.").optional(),
33
+ var_field_18: zod.z.string().describe("Custom variable field 18 for additional data.").optional(),
34
+ var_field_19: zod.z.string().describe("Custom variable field 19 for additional data.").optional(),
35
+ var_field_20: zod.z.string().describe("Custom variable field 20 for additional data.").optional(),
36
+ var_field_21: zod.z.string().describe("Custom variable field 21 for additional data.").optional(),
37
+ var_field_22: zod.z.string().describe("Custom variable field 22 for additional data.").optional(),
38
+ var_field_23: zod.z.string().describe("Custom variable field 23 for additional data.").optional(),
39
+ var_field_24: zod.z.string().describe("Custom variable field 24 for additional data.").optional(),
40
+ var_field_25: zod.z.string().describe("Custom variable field 25 for additional data.").optional(),
41
+ var_field_26: zod.z.string().describe("Custom variable field 26 for additional data.").optional(),
42
+ var_field_27: zod.z.string().describe("Custom variable field 27 for additional data.").optional(),
43
+ var_field_28: zod.z.string().describe("Custom variable field 28 for additional data.").optional(),
44
+ var_field_29: zod.z.string().describe("Custom variable field 29 for additional data.").optional(),
45
+ var_field_30: zod.z.string().describe("Custom variable field 30 for additional data.").optional(),
46
+ var_field_31: zod.z.string().describe("Custom variable field 31 for additional data.").optional(),
47
+ var_field_32: zod.z.string().describe("Custom variable field 32 for additional data.").optional(),
48
+ var_field_33: zod.z.string().describe("Custom variable field 33 for additional data.").optional(),
49
+ var_field_34: zod.z.string().describe("Custom variable field 34 for additional data.").optional(),
50
+ var_field_35: zod.z.string().describe("Custom variable field 35 for additional data.").optional(),
51
+ address_state: zod.z.string().describe("State for the contact address.").optional(),
52
+ email_address: zod.z.string().describe("Email address of the contact.").optional(),
53
+ address_street: zod.z.string().describe("Street address for the contact.").optional(),
54
+ address_street2: zod.z.string().describe("Second line of street address for the contact.").optional(),
55
+ contact_list_id: zod.z.number().int().describe("The id of the contact list to add this contact to.")
56
+ }).describe("Request model for adding a contact to a contact list.");
57
+ const PostalyticsAddContactOutput = zod.z.object({ created_date: zod.z.string().describe("The date and time when the contact was created (ISO 8601 format).") }).describe("Response model for adding a contact to a contact list.");
58
+ const postalyticsAddContact = require_action.action("POSTALYTICS_ADD_CONTACT", {
59
+ slug: "postalytics-add-contact",
60
+ name: "Add Contact",
61
+ description: "Tool to add a contact to a specified contact list with their information. Use when you need to create a new contact or update an existing one on a contact list.",
62
+ input: PostalyticsAddContactInput,
63
+ output: PostalyticsAddContactOutput
64
+ });
65
+ //#endregion
66
+ exports.postalyticsAddContact = postalyticsAddContact;
67
+
68
+ //# sourceMappingURL=add-contact.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsAddContactInput: z.ZodTypeAny = z.object({\n phone: z.string().describe(\"Phone number of the contact.\").optional(),\n company: z.string().describe(\"Company name of the contact.\").optional(),\n website: z.string().describe(\"Website URL of the contact.\").optional(),\n last_name: z.string().describe(\"Last name of the contact.\").optional(),\n contact_id: z.number().int().describe(\"The unique id of the contact. Required for updating but not required for inserting.\").optional(),\n first_name: z.string().describe(\"First name of the contact.\").optional(),\n occupation: z.string().describe(\"Occupation of the contact.\").optional(),\n address_zip: z.string().describe(\"Zip/postal code for the contact address.\").optional(),\n var_field_1: z.string().describe(\"Custom variable field 1 for additional data.\").optional(),\n var_field_2: z.string().describe(\"Custom variable field 2 for additional data.\").optional(),\n var_field_3: z.string().describe(\"Custom variable field 3 for additional data.\").optional(),\n var_field_4: z.string().describe(\"Custom variable field 4 for additional data.\").optional(),\n var_field_5: z.string().describe(\"Custom variable field 5 for additional data.\").optional(),\n var_field_6: z.string().describe(\"Custom variable field 6 for additional data.\").optional(),\n var_field_7: z.string().describe(\"Custom variable field 7 for additional data.\").optional(),\n var_field_8: z.string().describe(\"Custom variable field 8 for additional data.\").optional(),\n var_field_9: z.string().describe(\"Custom variable field 9 for additional data.\").optional(),\n address_city: z.string().describe(\"City for the contact address.\").optional(),\n created_date: z.string().describe(\"The date and time when the contact was created (ISO 8601 format).\").optional(),\n mobile_phone: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n var_field_10: z.string().describe(\"Custom variable field 10 for additional data.\").optional(),\n var_field_11: z.string().describe(\"Custom variable field 11 for additional data.\").optional(),\n var_field_12: z.string().describe(\"Custom variable field 12 for additional data.\").optional(),\n var_field_13: z.string().describe(\"Custom variable field 13 for additional data.\").optional(),\n var_field_14: z.string().describe(\"Custom variable field 14 for additional data.\").optional(),\n var_field_15: z.string().describe(\"Custom variable field 15 for additional data.\").optional(),\n var_field_16: z.string().describe(\"Custom variable field 16 for additional data.\").optional(),\n var_field_17: z.string().describe(\"Custom variable field 17 for additional data.\").optional(),\n var_field_18: z.string().describe(\"Custom variable field 18 for additional data.\").optional(),\n var_field_19: z.string().describe(\"Custom variable field 19 for additional data.\").optional(),\n var_field_20: z.string().describe(\"Custom variable field 20 for additional data.\").optional(),\n var_field_21: z.string().describe(\"Custom variable field 21 for additional data.\").optional(),\n var_field_22: z.string().describe(\"Custom variable field 22 for additional data.\").optional(),\n var_field_23: z.string().describe(\"Custom variable field 23 for additional data.\").optional(),\n var_field_24: z.string().describe(\"Custom variable field 24 for additional data.\").optional(),\n var_field_25: z.string().describe(\"Custom variable field 25 for additional data.\").optional(),\n var_field_26: z.string().describe(\"Custom variable field 26 for additional data.\").optional(),\n var_field_27: z.string().describe(\"Custom variable field 27 for additional data.\").optional(),\n var_field_28: z.string().describe(\"Custom variable field 28 for additional data.\").optional(),\n var_field_29: z.string().describe(\"Custom variable field 29 for additional data.\").optional(),\n var_field_30: z.string().describe(\"Custom variable field 30 for additional data.\").optional(),\n var_field_31: z.string().describe(\"Custom variable field 31 for additional data.\").optional(),\n var_field_32: z.string().describe(\"Custom variable field 32 for additional data.\").optional(),\n var_field_33: z.string().describe(\"Custom variable field 33 for additional data.\").optional(),\n var_field_34: z.string().describe(\"Custom variable field 34 for additional data.\").optional(),\n var_field_35: z.string().describe(\"Custom variable field 35 for additional data.\").optional(),\n address_state: z.string().describe(\"State for the contact address.\").optional(),\n email_address: z.string().describe(\"Email address of the contact.\").optional(),\n address_street: z.string().describe(\"Street address for the contact.\").optional(),\n address_street2: z.string().describe(\"Second line of street address for the contact.\").optional(),\n contact_list_id: z.number().int().describe(\"The id of the contact list to add this contact to.\"),\n}).describe(\"Request model for adding a contact to a contact list.\");\nexport const PostalyticsAddContactOutput: z.ZodTypeAny = z.object({\n created_date: z.string().describe(\"The date and time when the contact was created (ISO 8601 format).\"),\n}).describe(\"Response model for adding a contact to a contact list.\");\n\nexport const postalyticsAddContact = action(\"POSTALYTICS_ADD_CONTACT\", {\n slug: \"postalytics-add-contact\",\n name: \"Add Contact\",\n description: \"Tool to add a contact to a specified contact list with their information. Use when you need to create a new contact or update an existing one on a contact list.\",\n input: PostalyticsAddContactInput,\n output: PostalyticsAddContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACjG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,EACvG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,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/add-contact.d.ts
4
+ declare const PostalyticsAddContactInput: z.ZodTypeAny;
5
+ declare const PostalyticsAddContactOutput: z.ZodTypeAny;
6
+ declare const postalyticsAddContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsAddContact };
9
+ //# sourceMappingURL=add-contact.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-contact.d.cts","names":[],"sources":["../../src/actions/add-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAoDyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cAExD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/add-contact.d.ts
4
+ declare const PostalyticsAddContactInput: z.ZodTypeAny;
5
+ declare const PostalyticsAddContactOutput: z.ZodTypeAny;
6
+ declare const postalyticsAddContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsAddContact };
9
+ //# sourceMappingURL=add-contact.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-contact.d.mts","names":[],"sources":["../../src/actions/add-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAoDyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cAExD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,65 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const postalyticsAddContact = action("POSTALYTICS_ADD_CONTACT", {
4
+ slug: "postalytics-add-contact",
5
+ name: "Add Contact",
6
+ description: "Tool to add a contact to a specified contact list with their information. Use when you need to create a new contact or update an existing one on a contact list.",
7
+ input: z.object({
8
+ phone: z.string().describe("Phone number of the contact.").optional(),
9
+ company: z.string().describe("Company name of the contact.").optional(),
10
+ website: z.string().describe("Website URL of the contact.").optional(),
11
+ last_name: z.string().describe("Last name of the contact.").optional(),
12
+ contact_id: z.number().int().describe("The unique id of the contact. Required for updating but not required for inserting.").optional(),
13
+ first_name: z.string().describe("First name of the contact.").optional(),
14
+ occupation: z.string().describe("Occupation of the contact.").optional(),
15
+ address_zip: z.string().describe("Zip/postal code for the contact address.").optional(),
16
+ var_field_1: z.string().describe("Custom variable field 1 for additional data.").optional(),
17
+ var_field_2: z.string().describe("Custom variable field 2 for additional data.").optional(),
18
+ var_field_3: z.string().describe("Custom variable field 3 for additional data.").optional(),
19
+ var_field_4: z.string().describe("Custom variable field 4 for additional data.").optional(),
20
+ var_field_5: z.string().describe("Custom variable field 5 for additional data.").optional(),
21
+ var_field_6: z.string().describe("Custom variable field 6 for additional data.").optional(),
22
+ var_field_7: z.string().describe("Custom variable field 7 for additional data.").optional(),
23
+ var_field_8: z.string().describe("Custom variable field 8 for additional data.").optional(),
24
+ var_field_9: z.string().describe("Custom variable field 9 for additional data.").optional(),
25
+ address_city: z.string().describe("City for the contact address.").optional(),
26
+ created_date: z.string().describe("The date and time when the contact was created (ISO 8601 format).").optional(),
27
+ mobile_phone: z.string().describe("Mobile phone number of the contact.").optional(),
28
+ var_field_10: z.string().describe("Custom variable field 10 for additional data.").optional(),
29
+ var_field_11: z.string().describe("Custom variable field 11 for additional data.").optional(),
30
+ var_field_12: z.string().describe("Custom variable field 12 for additional data.").optional(),
31
+ var_field_13: z.string().describe("Custom variable field 13 for additional data.").optional(),
32
+ var_field_14: z.string().describe("Custom variable field 14 for additional data.").optional(),
33
+ var_field_15: z.string().describe("Custom variable field 15 for additional data.").optional(),
34
+ var_field_16: z.string().describe("Custom variable field 16 for additional data.").optional(),
35
+ var_field_17: z.string().describe("Custom variable field 17 for additional data.").optional(),
36
+ var_field_18: z.string().describe("Custom variable field 18 for additional data.").optional(),
37
+ var_field_19: z.string().describe("Custom variable field 19 for additional data.").optional(),
38
+ var_field_20: z.string().describe("Custom variable field 20 for additional data.").optional(),
39
+ var_field_21: z.string().describe("Custom variable field 21 for additional data.").optional(),
40
+ var_field_22: z.string().describe("Custom variable field 22 for additional data.").optional(),
41
+ var_field_23: z.string().describe("Custom variable field 23 for additional data.").optional(),
42
+ var_field_24: z.string().describe("Custom variable field 24 for additional data.").optional(),
43
+ var_field_25: z.string().describe("Custom variable field 25 for additional data.").optional(),
44
+ var_field_26: z.string().describe("Custom variable field 26 for additional data.").optional(),
45
+ var_field_27: z.string().describe("Custom variable field 27 for additional data.").optional(),
46
+ var_field_28: z.string().describe("Custom variable field 28 for additional data.").optional(),
47
+ var_field_29: z.string().describe("Custom variable field 29 for additional data.").optional(),
48
+ var_field_30: z.string().describe("Custom variable field 30 for additional data.").optional(),
49
+ var_field_31: z.string().describe("Custom variable field 31 for additional data.").optional(),
50
+ var_field_32: z.string().describe("Custom variable field 32 for additional data.").optional(),
51
+ var_field_33: z.string().describe("Custom variable field 33 for additional data.").optional(),
52
+ var_field_34: z.string().describe("Custom variable field 34 for additional data.").optional(),
53
+ var_field_35: z.string().describe("Custom variable field 35 for additional data.").optional(),
54
+ address_state: z.string().describe("State for the contact address.").optional(),
55
+ email_address: z.string().describe("Email address of the contact.").optional(),
56
+ address_street: z.string().describe("Street address for the contact.").optional(),
57
+ address_street2: z.string().describe("Second line of street address for the contact.").optional(),
58
+ contact_list_id: z.number().int().describe("The id of the contact list to add this contact to.")
59
+ }).describe("Request model for adding a contact to a contact list."),
60
+ output: z.object({ created_date: z.string().describe("The date and time when the contact was created (ISO 8601 format).") }).describe("Response model for adding a contact to a contact list.")
61
+ });
62
+ //#endregion
63
+ export { postalyticsAddContact };
64
+
65
+ //# sourceMappingURL=add-contact.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-contact.mjs","names":[],"sources":["../../src/actions/add-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsAddContactInput: z.ZodTypeAny = z.object({\n phone: z.string().describe(\"Phone number of the contact.\").optional(),\n company: z.string().describe(\"Company name of the contact.\").optional(),\n website: z.string().describe(\"Website URL of the contact.\").optional(),\n last_name: z.string().describe(\"Last name of the contact.\").optional(),\n contact_id: z.number().int().describe(\"The unique id of the contact. Required for updating but not required for inserting.\").optional(),\n first_name: z.string().describe(\"First name of the contact.\").optional(),\n occupation: z.string().describe(\"Occupation of the contact.\").optional(),\n address_zip: z.string().describe(\"Zip/postal code for the contact address.\").optional(),\n var_field_1: z.string().describe(\"Custom variable field 1 for additional data.\").optional(),\n var_field_2: z.string().describe(\"Custom variable field 2 for additional data.\").optional(),\n var_field_3: z.string().describe(\"Custom variable field 3 for additional data.\").optional(),\n var_field_4: z.string().describe(\"Custom variable field 4 for additional data.\").optional(),\n var_field_5: z.string().describe(\"Custom variable field 5 for additional data.\").optional(),\n var_field_6: z.string().describe(\"Custom variable field 6 for additional data.\").optional(),\n var_field_7: z.string().describe(\"Custom variable field 7 for additional data.\").optional(),\n var_field_8: z.string().describe(\"Custom variable field 8 for additional data.\").optional(),\n var_field_9: z.string().describe(\"Custom variable field 9 for additional data.\").optional(),\n address_city: z.string().describe(\"City for the contact address.\").optional(),\n created_date: z.string().describe(\"The date and time when the contact was created (ISO 8601 format).\").optional(),\n mobile_phone: z.string().describe(\"Mobile phone number of the contact.\").optional(),\n var_field_10: z.string().describe(\"Custom variable field 10 for additional data.\").optional(),\n var_field_11: z.string().describe(\"Custom variable field 11 for additional data.\").optional(),\n var_field_12: z.string().describe(\"Custom variable field 12 for additional data.\").optional(),\n var_field_13: z.string().describe(\"Custom variable field 13 for additional data.\").optional(),\n var_field_14: z.string().describe(\"Custom variable field 14 for additional data.\").optional(),\n var_field_15: z.string().describe(\"Custom variable field 15 for additional data.\").optional(),\n var_field_16: z.string().describe(\"Custom variable field 16 for additional data.\").optional(),\n var_field_17: z.string().describe(\"Custom variable field 17 for additional data.\").optional(),\n var_field_18: z.string().describe(\"Custom variable field 18 for additional data.\").optional(),\n var_field_19: z.string().describe(\"Custom variable field 19 for additional data.\").optional(),\n var_field_20: z.string().describe(\"Custom variable field 20 for additional data.\").optional(),\n var_field_21: z.string().describe(\"Custom variable field 21 for additional data.\").optional(),\n var_field_22: z.string().describe(\"Custom variable field 22 for additional data.\").optional(),\n var_field_23: z.string().describe(\"Custom variable field 23 for additional data.\").optional(),\n var_field_24: z.string().describe(\"Custom variable field 24 for additional data.\").optional(),\n var_field_25: z.string().describe(\"Custom variable field 25 for additional data.\").optional(),\n var_field_26: z.string().describe(\"Custom variable field 26 for additional data.\").optional(),\n var_field_27: z.string().describe(\"Custom variable field 27 for additional data.\").optional(),\n var_field_28: z.string().describe(\"Custom variable field 28 for additional data.\").optional(),\n var_field_29: z.string().describe(\"Custom variable field 29 for additional data.\").optional(),\n var_field_30: z.string().describe(\"Custom variable field 30 for additional data.\").optional(),\n var_field_31: z.string().describe(\"Custom variable field 31 for additional data.\").optional(),\n var_field_32: z.string().describe(\"Custom variable field 32 for additional data.\").optional(),\n var_field_33: z.string().describe(\"Custom variable field 33 for additional data.\").optional(),\n var_field_34: z.string().describe(\"Custom variable field 34 for additional data.\").optional(),\n var_field_35: z.string().describe(\"Custom variable field 35 for additional data.\").optional(),\n address_state: z.string().describe(\"State for the contact address.\").optional(),\n email_address: z.string().describe(\"Email address of the contact.\").optional(),\n address_street: z.string().describe(\"Street address for the contact.\").optional(),\n address_street2: z.string().describe(\"Second line of street address for the contact.\").optional(),\n contact_list_id: z.number().int().describe(\"The id of the contact list to add this contact to.\"),\n}).describe(\"Request model for adding a contact to a contact list.\");\nexport const PostalyticsAddContactOutput: z.ZodTypeAny = z.object({\n created_date: z.string().describe(\"The date and time when the contact was created (ISO 8601 format).\"),\n}).describe(\"Response model for adding a contact to a contact list.\");\n\nexport const postalyticsAddContact = action(\"POSTALYTICS_ADD_CONTACT\", {\n slug: \"postalytics-add-contact\",\n name: \"Add Contact\",\n description: \"Tool to add a contact to a specified contact list with their information. Use when you need to create a new contact or update an existing one on a contact list.\",\n input: PostalyticsAddContactInput,\n output: PostalyticsAddContactOutput,\n});\n"],"mappings":";;AA6DA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7DsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC1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CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CACjG,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATuD,EAAE,OAAO,EAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,EACvG,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-new-campaign.ts
4
+ const PostalyticsCreateNewCampaignInput = zod.z.object({
5
+ SenderZip: zod.z.string().describe("The sender's postal code."),
6
+ SenderCity: zod.z.string().describe("The sender's city."),
7
+ SenderName: zod.z.string().describe("The name of the campaign sender."),
8
+ PostageType: zod.z.number().int().describe("Postage type for the campaign. 0 for first class, 1 for standard mail."),
9
+ SenderState: zod.z.string().describe("The sender's state abbreviation (e.g., NY, CA)."),
10
+ CreditTypeId: zod.z.number().int().describe("Identifies media type. Valid values are 21-34, including postcards, letters, and bifolds in first class or standard mail."),
11
+ SenderCountry: zod.z.string().describe("The sender's country code. Defaults to 'US' if not specified.").optional(),
12
+ DirectMailName: zod.z.string().describe("The name of the direct mail campaign."),
13
+ SenderAddress1: zod.z.string().describe("The sender's primary street address."),
14
+ SenderAddress2: zod.z.string().describe("The sender's secondary address line (e.g., apartment, suite number).").optional(),
15
+ TemplateFrontId: zod.z.number().int().describe("The ID of the template to use for the front of this campaign. Template must be created and proofed before campaign creation."),
16
+ TemplateEnvelopeId: zod.z.number().int().describe("Custom envelope ID for letter campaigns. Optional parameter only applicable to letter-type campaigns.").optional()
17
+ }).describe("Request model for creating a new direct mail campaign.\nNote: A template must be created and proofed before creating a campaign.");
18
+ const PostalyticsCreateNewCampaignOutput = zod.z.object({
19
+ drop_id: zod.z.number().int().describe("The unique identifier for the created direct mail drop."),
20
+ created_date: zod.z.string().describe("The date and time when the direct mail drop was created in ISO 8601 format.")
21
+ }).describe("Response model for creating a new campaign.");
22
+ const postalyticsCreateNewCampaign = require_action.action("POSTALYTICS_CREATE_NEW_CAMPAIGN", {
23
+ slug: "postalytics-create-new-campaign",
24
+ name: "Create New Campaign",
25
+ description: "Tool to create a new direct mail campaign in Postalytics. Use when you need to start a new campaign with specified sender details and template. Important: A template must be created and proofed before creating the campaign.",
26
+ input: PostalyticsCreateNewCampaignInput,
27
+ output: PostalyticsCreateNewCampaignOutput
28
+ });
29
+ //#endregion
30
+ exports.postalyticsCreateNewCampaign = postalyticsCreateNewCampaign;
31
+
32
+ //# sourceMappingURL=create-new-campaign.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-new-campaign.cjs","names":["z","action"],"sources":["../../src/actions/create-new-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsCreateNewCampaignInput: z.ZodTypeAny = z.object({\n SenderZip: z.string().describe(\"The sender's postal code.\"),\n SenderCity: z.string().describe(\"The sender's city.\"),\n SenderName: z.string().describe(\"The name of the campaign sender.\"),\n PostageType: z.number().int().describe(\"Postage type for the campaign. 0 for first class, 1 for standard mail.\"),\n SenderState: z.string().describe(\"The sender's state abbreviation (e.g., NY, CA).\"),\n CreditTypeId: z.number().int().describe(\"Identifies media type. Valid values are 21-34, including postcards, letters, and bifolds in first class or standard mail.\"),\n SenderCountry: z.string().describe(\"The sender's country code. Defaults to 'US' if not specified.\").optional(),\n DirectMailName: z.string().describe(\"The name of the direct mail campaign.\"),\n SenderAddress1: z.string().describe(\"The sender's primary street address.\"),\n SenderAddress2: z.string().describe(\"The sender's secondary address line (e.g., apartment, suite number).\").optional(),\n TemplateFrontId: z.number().int().describe(\"The ID of the template to use for the front of this campaign. Template must be created and proofed before campaign creation.\"),\n TemplateEnvelopeId: z.number().int().describe(\"Custom envelope ID for letter campaigns. Optional parameter only applicable to letter-type campaigns.\").optional(),\n}).describe(\"Request model for creating a new direct mail campaign.\\nNote: A template must be created and proofed before creating a campaign.\");\nexport const PostalyticsCreateNewCampaignOutput: z.ZodTypeAny = z.object({\n drop_id: z.number().int().describe(\"The unique identifier for the created direct mail drop.\"),\n created_date: z.string().describe(\"The date and time when the direct mail drop was created in ISO 8601 format.\"),\n}).describe(\"Response model for creating a new campaign.\");\n\nexport const postalyticsCreateNewCampaign = action(\"POSTALYTICS_CREATE_NEW_CAMPAIGN\", {\n slug: \"postalytics-create-new-campaign\",\n name: \"Create New Campaign\",\n description: \"Tool to create a new direct mail campaign in Postalytics. Use when you need to start a new campaign with specified sender details and template. Important: A template must be created and proofed before creating the campaign.\",\n input: PostalyticsCreateNewCampaignInput,\n output: PostalyticsCreateNewCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H;CACnK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC3E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACrH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H;CACzK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,kIAAkI;AAC9I,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACjH,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-new-campaign.d.ts
4
+ declare const PostalyticsCreateNewCampaignInput: z.ZodTypeAny;
5
+ declare const PostalyticsCreateNewCampaignOutput: z.ZodTypeAny;
6
+ declare const postalyticsCreateNewCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsCreateNewCampaign };
9
+ //# sourceMappingURL=create-new-campaign.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-new-campaign.d.cts","names":[],"sources":["../../src/actions/create-new-campaign.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAa6F;AAAA,cAClI,kCAAA,EAAoC,CAAA,CAAE,UAGO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-new-campaign.d.ts
4
+ declare const PostalyticsCreateNewCampaignInput: z.ZodTypeAny;
5
+ declare const PostalyticsCreateNewCampaignOutput: z.ZodTypeAny;
6
+ declare const postalyticsCreateNewCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { postalyticsCreateNewCampaign };
9
+ //# sourceMappingURL=create-new-campaign.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-new-campaign.d.mts","names":[],"sources":["../../src/actions/create-new-campaign.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAa6F;AAAA,cAClI,kCAAA,EAAoC,CAAA,CAAE,UAGO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const postalyticsCreateNewCampaign = action("POSTALYTICS_CREATE_NEW_CAMPAIGN", {
4
+ slug: "postalytics-create-new-campaign",
5
+ name: "Create New Campaign",
6
+ description: "Tool to create a new direct mail campaign in Postalytics. Use when you need to start a new campaign with specified sender details and template. Important: A template must be created and proofed before creating the campaign.",
7
+ input: z.object({
8
+ SenderZip: z.string().describe("The sender's postal code."),
9
+ SenderCity: z.string().describe("The sender's city."),
10
+ SenderName: z.string().describe("The name of the campaign sender."),
11
+ PostageType: z.number().int().describe("Postage type for the campaign. 0 for first class, 1 for standard mail."),
12
+ SenderState: z.string().describe("The sender's state abbreviation (e.g., NY, CA)."),
13
+ CreditTypeId: z.number().int().describe("Identifies media type. Valid values are 21-34, including postcards, letters, and bifolds in first class or standard mail."),
14
+ SenderCountry: z.string().describe("The sender's country code. Defaults to 'US' if not specified.").optional(),
15
+ DirectMailName: z.string().describe("The name of the direct mail campaign."),
16
+ SenderAddress1: z.string().describe("The sender's primary street address."),
17
+ SenderAddress2: z.string().describe("The sender's secondary address line (e.g., apartment, suite number).").optional(),
18
+ TemplateFrontId: z.number().int().describe("The ID of the template to use for the front of this campaign. Template must be created and proofed before campaign creation."),
19
+ TemplateEnvelopeId: z.number().int().describe("Custom envelope ID for letter campaigns. Optional parameter only applicable to letter-type campaigns.").optional()
20
+ }).describe("Request model for creating a new direct mail campaign.\nNote: A template must be created and proofed before creating a campaign."),
21
+ output: z.object({
22
+ drop_id: z.number().int().describe("The unique identifier for the created direct mail drop."),
23
+ created_date: z.string().describe("The date and time when the direct mail drop was created in ISO 8601 format.")
24
+ }).describe("Response model for creating a new campaign.")
25
+ });
26
+ //#endregion
27
+ export { postalyticsCreateNewCampaign };
28
+
29
+ //# sourceMappingURL=create-new-campaign.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-new-campaign.mjs","names":[],"sources":["../../src/actions/create-new-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PostalyticsCreateNewCampaignInput: z.ZodTypeAny = z.object({\n SenderZip: z.string().describe(\"The sender's postal code.\"),\n SenderCity: z.string().describe(\"The sender's city.\"),\n SenderName: z.string().describe(\"The name of the campaign sender.\"),\n PostageType: z.number().int().describe(\"Postage type for the campaign. 0 for first class, 1 for standard mail.\"),\n SenderState: z.string().describe(\"The sender's state abbreviation (e.g., NY, CA).\"),\n CreditTypeId: z.number().int().describe(\"Identifies media type. Valid values are 21-34, including postcards, letters, and bifolds in first class or standard mail.\"),\n SenderCountry: z.string().describe(\"The sender's country code. Defaults to 'US' if not specified.\").optional(),\n DirectMailName: z.string().describe(\"The name of the direct mail campaign.\"),\n SenderAddress1: z.string().describe(\"The sender's primary street address.\"),\n SenderAddress2: z.string().describe(\"The sender's secondary address line (e.g., apartment, suite number).\").optional(),\n TemplateFrontId: z.number().int().describe(\"The ID of the template to use for the front of this campaign. Template must be created and proofed before campaign creation.\"),\n TemplateEnvelopeId: z.number().int().describe(\"Custom envelope ID for letter campaigns. Optional parameter only applicable to letter-type campaigns.\").optional(),\n}).describe(\"Request model for creating a new direct mail campaign.\\nNote: A template must be created and proofed before creating a campaign.\");\nexport const PostalyticsCreateNewCampaignOutput: z.ZodTypeAny = z.object({\n drop_id: z.number().int().describe(\"The unique identifier for the created direct mail drop.\"),\n created_date: z.string().describe(\"The date and time when the direct mail drop was created in ISO 8601 format.\"),\n}).describe(\"Response model for creating a new campaign.\");\n\nexport const postalyticsCreateNewCampaign = action(\"POSTALYTICS_CREATE_NEW_CAMPAIGN\", {\n slug: \"postalytics-create-new-campaign\",\n name: \"Create New Campaign\",\n description: \"Tool to create a new direct mail campaign in Postalytics. Use when you need to start a new campaign with specified sender details and template. Important: A template must be created and proofed before creating the campaign.\",\n input: PostalyticsCreateNewCampaignInput,\n output: PostalyticsCreateNewCampaignOutput,\n});\n"],"mappings":";;AAuBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB6D,EAAE,OAAO;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2HAA2H;EACnK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EAC1E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACrH,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H;EACzK,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClK,CAAC,CAAC,CAAC,SAAS,kIAUH;CACP,QAV8D,EAAE,OAAO;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACjH,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}