@keystrokehq/persistiq 0.1.4 → 0.1.6

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 (125) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-lead-to-campaign.cjs +1 -0
  4. package/dist/actions/add-lead-to-campaign.cjs.map +1 -1
  5. package/dist/actions/add-lead-to-campaign.d.cts +3 -10
  6. package/dist/actions/add-lead-to-campaign.d.cts.map +1 -1
  7. package/dist/actions/add-lead-to-campaign.d.mts +3 -10
  8. package/dist/actions/add-lead-to-campaign.d.mts.map +1 -1
  9. package/dist/actions/add-lead-to-campaign.mjs +1 -0
  10. package/dist/actions/add-lead-to-campaign.mjs.map +1 -1
  11. package/dist/actions/create-campaign.cjs +1 -0
  12. package/dist/actions/create-campaign.cjs.map +1 -1
  13. package/dist/actions/create-campaign.d.cts +3 -4
  14. package/dist/actions/create-campaign.d.cts.map +1 -1
  15. package/dist/actions/create-campaign.d.mts +3 -4
  16. package/dist/actions/create-campaign.d.mts.map +1 -1
  17. package/dist/actions/create-campaign.mjs +1 -0
  18. package/dist/actions/create-campaign.mjs.map +1 -1
  19. package/dist/actions/create-dnc-domain.cjs +1 -0
  20. package/dist/actions/create-dnc-domain.cjs.map +1 -1
  21. package/dist/actions/create-dnc-domain.d.cts +3 -3
  22. package/dist/actions/create-dnc-domain.d.cts.map +1 -1
  23. package/dist/actions/create-dnc-domain.d.mts +3 -3
  24. package/dist/actions/create-dnc-domain.d.mts.map +1 -1
  25. package/dist/actions/create-dnc-domain.mjs +1 -0
  26. package/dist/actions/create-dnc-domain.mjs.map +1 -1
  27. package/dist/actions/create-leads.cjs +1 -0
  28. package/dist/actions/create-leads.cjs.map +1 -1
  29. package/dist/actions/create-leads.d.cts +3 -15
  30. package/dist/actions/create-leads.d.cts.map +1 -1
  31. package/dist/actions/create-leads.d.mts +3 -15
  32. package/dist/actions/create-leads.d.mts.map +1 -1
  33. package/dist/actions/create-leads.mjs +1 -0
  34. package/dist/actions/create-leads.mjs.map +1 -1
  35. package/dist/actions/list-campaigns.cjs +1 -0
  36. package/dist/actions/list-campaigns.cjs.map +1 -1
  37. package/dist/actions/list-campaigns.d.cts +3 -7
  38. package/dist/actions/list-campaigns.d.cts.map +1 -1
  39. package/dist/actions/list-campaigns.d.mts +3 -7
  40. package/dist/actions/list-campaigns.d.mts.map +1 -1
  41. package/dist/actions/list-campaigns.mjs +1 -0
  42. package/dist/actions/list-campaigns.mjs.map +1 -1
  43. package/dist/actions/list-dnc-domains.cjs +1 -0
  44. package/dist/actions/list-dnc-domains.cjs.map +1 -1
  45. package/dist/actions/list-dnc-domains.d.cts +3 -1
  46. package/dist/actions/list-dnc-domains.d.cts.map +1 -1
  47. package/dist/actions/list-dnc-domains.d.mts +3 -1
  48. package/dist/actions/list-dnc-domains.d.mts.map +1 -1
  49. package/dist/actions/list-dnc-domains.mjs +1 -0
  50. package/dist/actions/list-dnc-domains.mjs.map +1 -1
  51. package/dist/actions/list-events.cjs +1 -0
  52. package/dist/actions/list-events.cjs.map +1 -1
  53. package/dist/actions/list-events.d.cts +3 -10
  54. package/dist/actions/list-events.d.cts.map +1 -1
  55. package/dist/actions/list-events.d.mts +3 -10
  56. package/dist/actions/list-events.d.mts.map +1 -1
  57. package/dist/actions/list-events.mjs +1 -0
  58. package/dist/actions/list-events.mjs.map +1 -1
  59. package/dist/actions/list-lead-fields.cjs +1 -0
  60. package/dist/actions/list-lead-fields.cjs.map +1 -1
  61. package/dist/actions/list-lead-fields.d.cts +3 -1
  62. package/dist/actions/list-lead-fields.d.cts.map +1 -1
  63. package/dist/actions/list-lead-fields.d.mts +3 -1
  64. package/dist/actions/list-lead-fields.d.mts.map +1 -1
  65. package/dist/actions/list-lead-fields.mjs +1 -0
  66. package/dist/actions/list-lead-fields.mjs.map +1 -1
  67. package/dist/actions/list-lead-statuses.cjs +1 -0
  68. package/dist/actions/list-lead-statuses.cjs.map +1 -1
  69. package/dist/actions/list-lead-statuses.d.cts +3 -1
  70. package/dist/actions/list-lead-statuses.d.cts.map +1 -1
  71. package/dist/actions/list-lead-statuses.d.mts +3 -1
  72. package/dist/actions/list-lead-statuses.d.mts.map +1 -1
  73. package/dist/actions/list-lead-statuses.mjs +1 -0
  74. package/dist/actions/list-lead-statuses.mjs.map +1 -1
  75. package/dist/actions/list-leads.cjs +1 -0
  76. package/dist/actions/list-leads.cjs.map +1 -1
  77. package/dist/actions/list-leads.d.cts +3 -6
  78. package/dist/actions/list-leads.d.cts.map +1 -1
  79. package/dist/actions/list-leads.d.mts +3 -6
  80. package/dist/actions/list-leads.d.mts.map +1 -1
  81. package/dist/actions/list-leads.mjs +1 -0
  82. package/dist/actions/list-leads.mjs.map +1 -1
  83. package/dist/actions/list-users.cjs +1 -0
  84. package/dist/actions/list-users.cjs.map +1 -1
  85. package/dist/actions/list-users.d.cts +3 -1
  86. package/dist/actions/list-users.d.cts.map +1 -1
  87. package/dist/actions/list-users.d.mts +3 -1
  88. package/dist/actions/list-users.d.mts.map +1 -1
  89. package/dist/actions/list-users.mjs +1 -0
  90. package/dist/actions/list-users.mjs.map +1 -1
  91. package/dist/actions/remove-lead-from-campaign.cjs +1 -0
  92. package/dist/actions/remove-lead-from-campaign.cjs.map +1 -1
  93. package/dist/actions/remove-lead-from-campaign.d.cts +3 -4
  94. package/dist/actions/remove-lead-from-campaign.d.cts.map +1 -1
  95. package/dist/actions/remove-lead-from-campaign.d.mts +3 -4
  96. package/dist/actions/remove-lead-from-campaign.d.mts.map +1 -1
  97. package/dist/actions/remove-lead-from-campaign.mjs +1 -0
  98. package/dist/actions/remove-lead-from-campaign.mjs.map +1 -1
  99. package/dist/actions/update-lead.cjs +1 -0
  100. package/dist/actions/update-lead.cjs.map +1 -1
  101. package/dist/actions/update-lead.d.cts +3 -9
  102. package/dist/actions/update-lead.d.cts.map +1 -1
  103. package/dist/actions/update-lead.d.mts +3 -9
  104. package/dist/actions/update-lead.d.mts.map +1 -1
  105. package/dist/actions/update-lead.mjs +1 -0
  106. package/dist/actions/update-lead.mjs.map +1 -1
  107. package/dist/actions/view-lead.cjs +1 -0
  108. package/dist/actions/view-lead.cjs.map +1 -1
  109. package/dist/actions/view-lead.d.cts +3 -3
  110. package/dist/actions/view-lead.d.cts.map +1 -1
  111. package/dist/actions/view-lead.d.mts +3 -3
  112. package/dist/actions/view-lead.d.mts.map +1 -1
  113. package/dist/actions/view-lead.mjs +1 -0
  114. package/dist/actions/view-lead.mjs.map +1 -1
  115. package/dist/app.cjs +5 -2
  116. package/dist/app.cjs.map +1 -1
  117. package/dist/app.d.cts +7 -1
  118. package/dist/app.d.cts.map +1 -1
  119. package/dist/app.d.mts +7 -1
  120. package/dist/app.d.mts.map +1 -1
  121. package/dist/app.mjs +3 -2
  122. package/dist/app.mjs.map +1 -1
  123. package/dist/index.d.cts +1 -1
  124. package/dist/index.d.mts +1 -1
  125. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"list-leads.mjs","names":[],"sources":["../../src/actions/list-leads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListLeadsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve.\").optional(),\n limit: z.number().int().default(25).describe(\"Max number of leads per page (1-100).\").optional(),\n status: z.enum([\"active\", \"archived\"]).describe(\"Filter leads by status; valid values are 'active' or 'archived'.\").optional(),\n updated_after: z.string().describe(\"Return leads updated after this datetime (ISO 8601).\").optional(),\n}).describe(\"Request model for listing leads in PersistIQ.\");\nconst PersistiqListLeads_LeadDataSchema = z.object({\n city: z.string().describe(\"Lead's city.\").nullable().optional(),\n email: z.string().describe(\"Lead's email address.\").nullable().optional(),\n phone: z.string().describe(\"Lead's phone number.\").nullable().optional(),\n state: z.string().describe(\"Lead's state.\").nullable().optional(),\n title: z.string().describe(\"Lead's job title.\").nullable().optional(),\n source: z.string().describe(\"Lead source.\").nullable().optional(),\n address: z.string().describe(\"Lead's address.\").nullable().optional(),\n country: z.string().describe(\"Lead's country.\").nullable().optional(),\n twitter: z.string().describe(\"Lead's Twitter profile.\").nullable().optional(),\n website: z.string().describe(\"Lead's website.\").nullable().optional(),\n facebook: z.string().describe(\"Lead's Facebook profile.\").nullable().optional(),\n industry: z.string().describe(\"Lead's industry.\").nullable().optional(),\n linkedin: z.string().describe(\"Lead's LinkedIn profile.\").nullable().optional(),\n last_name: z.string().describe(\"Lead's last name.\").nullable().optional(),\n first_name: z.string().describe(\"Lead's first name.\").nullable().optional(),\n company_name: z.string().describe(\"Lead's company name.\").nullable().optional(),\n}).passthrough().describe(\"Nested data object containing lead details.\");\nconst PersistiqListLeads_LeadSchema = z.object({\n id: z.string().describe(\"The unique identifier for the lead.\").nullable(),\n data: PersistiqListLeads_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"The status of the lead.\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether the lead's email bounced.\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead opted out.\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the lead owner.\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead.\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to the lead.\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of the last email sent.\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from the lead.\").nullable().optional(),\n}).passthrough();\nexport const PersistiqListLeadsOutput = z.object({\n leads: z.array(PersistiqListLeads_LeadSchema).describe(\"List of lead objects.\"),\n errors: z.array(z.string()).describe(\"List of errors if any.\").nullable().optional(),\n status: z.string().describe(\"Status of the API response.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more pages of results.\").nullable(),\n next_page: z.string().describe(\"URL or cursor for the next page.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing leads in PersistIQ.\");\n\nexport const persistiqListLeads = action(\"PERSISTIQ_LIST_LEADS\", {\n slug: \"persistiq-list-leads\",\n name: \"List Leads\",\n description: \"Tool to list leads from PersistIQ. Use when you need to fetch a paginated list of leads, optionally filtering by status or updated_after.\",\n input: PersistiqListLeadsInput,\n output: PersistiqListLeadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAA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CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,uBAAuB;EAC9E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-leads.mjs","names":[],"sources":["../../src/actions/list-leads.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqListLeadsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve.\").optional(),\n limit: z.number().int().default(25).describe(\"Max number of leads per page (1-100).\").optional(),\n status: z.enum([\"active\", \"archived\"]).describe(\"Filter leads by status; valid values are 'active' or 'archived'.\").optional(),\n updated_after: z.string().describe(\"Return leads updated after this datetime (ISO 8601).\").optional(),\n}).describe(\"Request model for listing leads in PersistIQ.\");\nconst PersistiqListLeads_LeadDataSchema = z.object({\n city: z.string().describe(\"Lead's city.\").nullable().optional(),\n email: z.string().describe(\"Lead's email address.\").nullable().optional(),\n phone: z.string().describe(\"Lead's phone number.\").nullable().optional(),\n state: z.string().describe(\"Lead's state.\").nullable().optional(),\n title: z.string().describe(\"Lead's job title.\").nullable().optional(),\n source: z.string().describe(\"Lead source.\").nullable().optional(),\n address: z.string().describe(\"Lead's address.\").nullable().optional(),\n country: z.string().describe(\"Lead's country.\").nullable().optional(),\n twitter: z.string().describe(\"Lead's Twitter profile.\").nullable().optional(),\n website: z.string().describe(\"Lead's website.\").nullable().optional(),\n facebook: z.string().describe(\"Lead's Facebook profile.\").nullable().optional(),\n industry: z.string().describe(\"Lead's industry.\").nullable().optional(),\n linkedin: z.string().describe(\"Lead's LinkedIn profile.\").nullable().optional(),\n last_name: z.string().describe(\"Lead's last name.\").nullable().optional(),\n first_name: z.string().describe(\"Lead's first name.\").nullable().optional(),\n company_name: z.string().describe(\"Lead's company name.\").nullable().optional(),\n}).passthrough().describe(\"Nested data object containing lead details.\");\nconst PersistiqListLeads_LeadSchema = z.object({\n id: z.string().describe(\"The unique identifier for the lead.\").nullable(),\n data: PersistiqListLeads_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"The status of the lead.\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether the lead's email bounced.\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead opted out.\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the lead owner.\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead.\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to the lead.\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of the last email sent.\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from the lead.\").nullable().optional(),\n}).passthrough();\nexport const PersistiqListLeadsOutput = z.object({\n leads: z.array(PersistiqListLeads_LeadSchema).describe(\"List of lead objects.\"),\n errors: z.array(z.string()).describe(\"List of errors if any.\").nullable().optional(),\n status: z.string().describe(\"Status of the API response.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether there are more pages of results.\").nullable(),\n next_page: z.string().describe(\"URL or cursor for the next page.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing leads in PersistIQ.\");\n\nexport const persistiqListLeads: AppAction<\n typeof PersistiqListLeadsInput,\n typeof PersistiqListLeadsOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_LIST_LEADS\", {\n slug: \"persistiq-list-leads\",\n name: \"List Leads\",\n description: \"Tool to list leads from PersistIQ. Use when you need to fetch a paginated list of leads, optionally filtering by status or updated_after.\",\n input: PersistiqListLeadsInput,\n output: PersistiqListLeadsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAA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AAa;CACb,OAAO;CACP,QAjBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,uBAAuB;EAC9E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-users.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).passthrough().describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name, email, activated status, default_mailbox_id, and salesforce_id.\",\n input: PersistiqListUsersInput,\n output: PersistiqListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,mCAAmC;CAC1F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).passthrough().describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers: AppAction<\n typeof PersistiqListUsersInput,\n typeof PersistiqListUsersOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name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eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-users.d.ts
@@ -14,7 +16,7 @@ declare const PersistiqListUsersOutput: z.ZodObject<{
14
16
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
15
17
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const persistiqListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ declare const persistiqListUsers: AppAction<typeof PersistiqListUsersInput, typeof PersistiqListUsersOutput, typeof persistiq.credential>;
18
20
  //#endregion
19
21
  export { persistiqListUsers };
20
22
  //# sourceMappingURL=list-users.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-users.d.ts
@@ -14,7 +16,7 @@ declare const PersistiqListUsersOutput: z.ZodObject<{
14
16
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
15
17
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const persistiqListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ declare const persistiqListUsers: AppAction<typeof PersistiqListUsersInput, typeof PersistiqListUsersOutput, typeof persistiq.credential>;
18
20
  //#endregion
19
21
  export { persistiqListUsers };
20
22
  //# sourceMappingURL=list-users.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-users.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).passthrough().describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name, email, activated status, default_mailbox_id, and salesforce_id.\",\n input: PersistiqListUsersInput,\n output: PersistiqListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAOtE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,mCAAmC;EAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqListUsersInput = z.object({}).describe(\"Request model for listing users in PersistIQ.\\nThis endpoint does not require any parameters.\");\nconst PersistiqListUsers_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n name: z.string().describe(\"Name of the user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n activated: z.boolean().describe(\"Whether the user account is activated\").nullable().optional(),\n salesforce_id: z.string().describe(\"Associated Salesforce ID for the user\").nullable().optional(),\n default_mailbox_id: z.string().describe(\"ID of the user's default mailbox\").nullable().optional(),\n}).passthrough().describe(\"User object representing a PersistIQ user.\");\nexport const PersistiqListUsersOutput = z.object({\n users: z.array(PersistiqListUsers_UserSchema).describe(\"List of non-archived user objects\"),\n errors: z.array(z.string()).describe(\"List of errors if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users in PersistIQ.\");\n\nexport const persistiqListUsers: AppAction<\n typeof PersistiqListUsersInput,\n typeof PersistiqListUsersOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_LIST_USERS\", {\n slug: \"persistiq-list-users\",\n name: \"List Users\",\n description: \"Tool to list all non-archived users in your company. Use when you need to retrieve user information including id, name, email, activated status, default_mailbox_id, and salesforce_id.\",\n input: PersistiqListUsersInput,\n output: PersistiqListUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAOtE,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,mCAAmC;EAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/remove-lead-from-campaign.ts
@@ -1 +1 @@
1
- {"version":3,"file":"remove-lead-from-campaign.cjs","names":["z","action"],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n}).passthrough();\n\nexport const persistiqRemoveLeadFromCampaign = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;AAC/G,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"remove-lead-from-campaign.cjs","names":["z","action"],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n}).passthrough();\n\nexport const persistiqRemoveLeadFromCampaign: AppAction<\n typeof PersistiqRemoveLeadFromCampaignInput,\n typeof PersistiqRemoveLeadFromCampaignOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;AAC/G,CAAC;AACD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/remove-lead-from-campaign.d.ts
@@ -9,10 +11,7 @@ declare const PersistiqRemoveLeadFromCampaignOutput: z.ZodObject<{
9
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  status_code: z.ZodNullable<z.ZodNumber>;
11
13
  }, z.core.$loose>;
12
- declare const persistiqRemoveLeadFromCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- lead_id: string;
14
- campaign_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const persistiqRemoveLeadFromCampaign: AppAction<typeof PersistiqRemoveLeadFromCampaignInput, typeof PersistiqRemoveLeadFromCampaignOutput, typeof persistiq.credential>;
16
15
  //#endregion
17
16
  export { persistiqRemoveLeadFromCampaign };
18
17
  //# sourceMappingURL=remove-lead-from-campaign.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-lead-from-campaign.d.cts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"remove-lead-from-campaign.d.cts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/remove-lead-from-campaign.d.ts
@@ -9,10 +11,7 @@ declare const PersistiqRemoveLeadFromCampaignOutput: z.ZodObject<{
9
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  status_code: z.ZodNullable<z.ZodNumber>;
11
13
  }, z.core.$loose>;
12
- declare const persistiqRemoveLeadFromCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- lead_id: string;
14
- campaign_id: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const persistiqRemoveLeadFromCampaign: AppAction<typeof PersistiqRemoveLeadFromCampaignInput, typeof PersistiqRemoveLeadFromCampaignOutput, typeof persistiq.credential>;
16
15
  //#endregion
17
16
  export { persistiqRemoveLeadFromCampaign };
18
17
  //# sourceMappingURL=remove-lead-from-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-lead-from-campaign.d.mts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"remove-lead-from-campaign.d.mts","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAIpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const persistiqRemoveLeadFromCampaign = action("PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN", {
@@ -1 +1 @@
1
- {"version":3,"file":"remove-lead-from-campaign.mjs","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n}).passthrough();\n\nexport const persistiqRemoveLeadFromCampaign = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;AAaA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkD,EAAE,OAAO;EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC/G,CAUS;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"remove-lead-from-campaign.mjs","names":[],"sources":["../../src/actions/remove-lead-from-campaign.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqRemoveLeadFromCampaignInput = z.object({\n lead_id: z.string().describe(\"The unique identifier of the lead to be removed from the campaign.\"),\n campaign_id: z.string().describe(\"The unique identifier of the campaign from which the lead will be removed.\"),\n});\nexport const PersistiqRemoveLeadFromCampaignOutput = z.object({\n message: z.string().describe(\"Optional message returned by the API.\").nullable().optional(),\n status_code: z.number().int().describe(\"HTTP status code returned by the API.\").nullable(),\n}).passthrough();\n\nexport const persistiqRemoveLeadFromCampaign: AppAction<\n typeof PersistiqRemoveLeadFromCampaignInput,\n typeof PersistiqRemoveLeadFromCampaignOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_REMOVE_LEAD_FROM_CAMPAIGN\", {\n slug: \"persistiq-remove-lead-from-campaign\",\n name: \"Remove Lead From Campaign\",\n description: \"Tool to remove a lead from a specified campaign. Use when you need to detach a lead from an existing campaign after confirming both IDs.\",\n input: PersistiqRemoveLeadFromCampaignInput,\n output: PersistiqRemoveLeadFromCampaignOutput,\n});\n"],"mappings":";;;AAeA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBkD,EAAE,OAAO;EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC/G,CAcS;CACP,QAdmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-lead.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-lead.cjs","names":["z","action"],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").optional(),\n first_name: z.string().describe(\"Lead's first name\").optional(),\n company_name: z.string().describe(\"Lead's company name\").optional(),\n}).describe(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAA2I;AAErK,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-lead.cjs","names":["z","action"],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").optional(),\n first_name: z.string().describe(\"Lead's first name\").optional(),\n company_name: z.string().describe(\"Lead's company name\").optional(),\n}).describe(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead: AppAction<\n typeof PersistiqUpdateLeadInput,\n typeof PersistiqUpdateLeadOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAA2I;AAErK,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-lead.d.ts
@@ -15,15 +17,7 @@ declare const PersistiqUpdateLeadOutput: z.ZodObject<{
15
17
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
19
  }, z.core.$loose>;
18
- declare const persistiqUpdateLead: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- lead_id: string;
20
- email?: string | undefined;
21
- phone?: string | undefined;
22
- title?: string | undefined;
23
- last_name?: string | undefined;
24
- first_name?: string | undefined;
25
- company_name?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const persistiqUpdateLead: AppAction<typeof PersistiqUpdateLeadInput, typeof PersistiqUpdateLeadOutput, typeof persistiq.credential>;
27
21
  //#endregion
28
22
  export { persistiqUpdateLead };
29
23
  //# sourceMappingURL=update-lead.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-lead.d.cts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-lead.d.cts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-lead.d.ts
@@ -15,15 +17,7 @@ declare const PersistiqUpdateLeadOutput: z.ZodObject<{
15
17
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  successfull: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
19
  }, z.core.$loose>;
18
- declare const persistiqUpdateLead: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- lead_id: string;
20
- email?: string | undefined;
21
- phone?: string | undefined;
22
- title?: string | undefined;
23
- last_name?: string | undefined;
24
- first_name?: string | undefined;
25
- company_name?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const persistiqUpdateLead: AppAction<typeof PersistiqUpdateLeadInput, typeof PersistiqUpdateLeadOutput, typeof persistiq.credential>;
27
21
  //#endregion
28
22
  export { persistiqUpdateLead };
29
23
  //# sourceMappingURL=update-lead.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-lead.d.mts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-lead.d.mts","names":[],"sources":["../../src/actions/update-lead.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const persistiqUpdateLead = action("PERSISTIQ_UPDATE_LEAD", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-lead.mjs","names":[],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").optional(),\n first_name: z.string().describe(\"Lead's first name\").optional(),\n company_name: z.string().describe(\"Lead's company name\").optional(),\n}).describe(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,mDAWH;CACP,QAXuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-lead.mjs","names":[],"sources":["../../src/actions/update-lead.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqUpdateLeadInput = z.object({\n email: z.string().describe(\"Lead's email address\").optional(),\n phone: z.string().describe(\"Lead's phone number\").optional(),\n title: z.string().describe(\"Lead's job title\").optional(),\n lead_id: z.string().describe(\"ID of the lead to update\"),\n last_name: z.string().describe(\"Lead's last name\").optional(),\n first_name: z.string().describe(\"Lead's first name\").optional(),\n company_name: z.string().describe(\"Lead's company name\").optional(),\n}).describe(\"Request parameters for updating a PersistIQ lead.\");\nexport const PersistiqUpdateLeadOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Response data wrapper containing status, error, and lead\").nullable().optional(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n successfull: z.boolean().describe(\"Whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated PersistIQ lead.\\nThe API returns: {\\\"data\\\": {\\\"status\\\": \\\"success\\\", \\\"error\\\": null, \\\"lead\\\": {...}}, ...}\");\n\nexport const persistiqUpdateLead: AppAction<\n typeof PersistiqUpdateLeadInput,\n typeof PersistiqUpdateLeadOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_UPDATE_LEAD\", {\n slug: \"persistiq-update-lead\",\n name: \"Update Lead\",\n description: \"Tool to update a lead's information. Use when you need to modify fields (status, tags, or custom attributes) of an existing lead. Call after confirming the lead_id.\",\n input: PersistiqUpdateLeadInput,\n output: PersistiqUpdateLeadOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,mDAeH;CACP,QAfuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2IAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/view-lead.ts
@@ -1 +1 @@
1
- {"version":3,"file":"view-lead.cjs","names":["z","action"],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqViewLeadInput = z.object({\n lead_id: z.string().describe(\"Unique identifier of the lead to retrieve\"),\n}).describe(\"Request parameters for retrieving a single PersistIQ lead by ID.\");\nconst PersistiqViewLead_LeadDataSchema = z.object({\n city: z.string().describe(\"City of the lead\").nullable().optional(),\n email: z.string().describe(\"Email address of the lead\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the lead\").nullable().optional(),\n state: z.string().describe(\"State of the lead\").nullable().optional(),\n title: z.string().describe(\"Job title of the lead\").nullable().optional(),\n source: z.string().describe(\"Source of the lead\").nullable().optional(),\n address: z.string().describe(\"Address of the lead\").nullable().optional(),\n country: z.string().describe(\"Country of the lead\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the lead\").nullable().optional(),\n website: z.string().describe(\"Website of the lead\").nullable().optional(),\n facebook: z.string().describe(\"Facebook URL of the lead\").nullable().optional(),\n industry: z.string().describe(\"Industry of the lead\").nullable().optional(),\n linkedin: z.string().describe(\"LinkedIn URL of the lead\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the lead\").nullable().optional(),\n first_name: z.string().describe(\"First name of the lead\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the lead\").nullable().optional(),\n}).passthrough().describe(\"Nested data fields for a lead.\");\nconst PersistiqViewLead_LeadSchema = z.object({\n id: z.string().describe(\"Unique identifier of the lead\").nullable(),\n data: PersistiqViewLead_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the lead (e.g., 'open')\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether emails to this lead have bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the user who owns the lead\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to this lead\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of last email sent\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from this lead\").nullable().optional(),\n}).passthrough().describe(\"Lead object returned by the PersistIQ API.\");\nexport const PersistiqViewLeadOutput = z.object({\n lead: PersistiqViewLead_LeadSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable(),\n}).passthrough().describe(\"Response for viewing a single PersistIQ lead.\");\n\nexport const persistiqViewLead = action(\"PERSISTIQ_VIEW_LEAD\", {\n slug: \"persistiq-view-lead\",\n name: \"View Lead\",\n description: \"Tool to retrieve a lead by its ID. Use when you have the lead ID and need its detailed information.\",\n input: PersistiqViewLeadInput,\n output: PersistiqViewLeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC1E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,C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AAS,4CAA4C;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,6BAA6B,SAAS;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"view-lead.cjs","names":["z","action"],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqViewLeadInput = z.object({\n lead_id: z.string().describe(\"Unique identifier of the lead to retrieve\"),\n}).describe(\"Request parameters for retrieving a single PersistIQ lead by ID.\");\nconst PersistiqViewLead_LeadDataSchema = z.object({\n city: z.string().describe(\"City of the lead\").nullable().optional(),\n email: z.string().describe(\"Email address of the lead\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the lead\").nullable().optional(),\n state: z.string().describe(\"State of the lead\").nullable().optional(),\n title: z.string().describe(\"Job title of the lead\").nullable().optional(),\n source: z.string().describe(\"Source of the lead\").nullable().optional(),\n address: z.string().describe(\"Address of the lead\").nullable().optional(),\n country: z.string().describe(\"Country of the lead\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the lead\").nullable().optional(),\n website: z.string().describe(\"Website of the lead\").nullable().optional(),\n facebook: z.string().describe(\"Facebook URL of the lead\").nullable().optional(),\n industry: z.string().describe(\"Industry of the lead\").nullable().optional(),\n linkedin: z.string().describe(\"LinkedIn URL of the lead\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the lead\").nullable().optional(),\n first_name: z.string().describe(\"First name of the lead\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the lead\").nullable().optional(),\n}).passthrough().describe(\"Nested data fields for a lead.\");\nconst PersistiqViewLead_LeadSchema = z.object({\n id: z.string().describe(\"Unique identifier of the lead\").nullable(),\n data: PersistiqViewLead_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the lead (e.g., 'open')\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether emails to this lead have bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the user who owns the lead\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to this lead\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of last email sent\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from this lead\").nullable().optional(),\n}).passthrough().describe(\"Lead object returned by the PersistIQ API.\");\nexport const PersistiqViewLeadOutput = z.object({\n lead: PersistiqViewLead_LeadSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable(),\n}).passthrough().describe(\"Response for viewing a single PersistIQ lead.\");\n\nexport const persistiqViewLead: AppAction<\n typeof PersistiqViewLeadInput,\n typeof PersistiqViewLeadOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_VIEW_LEAD\", {\n slug: \"persistiq-view-lead\",\n name: \"View Lead\",\n description: \"Tool to retrieve a lead by its ID. Use when you have the lead ID and need its detailed information.\",\n input: PersistiqViewLeadInput,\n output: PersistiqViewLeadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC1E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,mCAAmC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eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,6BAA6B,SAAS;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/view-lead.d.ts
@@ -37,9 +39,7 @@ declare const PersistiqViewLeadOutput: z.ZodObject<{
37
39
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
40
  status: z.ZodNullable<z.ZodString>;
39
41
  }, z.core.$loose>;
40
- declare const persistiqViewLead: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- lead_id: string;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ declare const persistiqViewLead: AppAction<typeof PersistiqViewLeadInput, typeof PersistiqViewLeadOutput, typeof persistiq.credential>;
43
43
  //#endregion
44
44
  export { persistiqViewLead };
45
45
  //# sourceMappingURL=view-lead.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-lead.d.cts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"view-lead.d.cts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { persistiq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/view-lead.d.ts
@@ -37,9 +39,7 @@ declare const PersistiqViewLeadOutput: z.ZodObject<{
37
39
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
40
  status: z.ZodNullable<z.ZodString>;
39
41
  }, z.core.$loose>;
40
- declare const persistiqViewLead: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- lead_id: string;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ declare const persistiqViewLead: AppAction<typeof PersistiqViewLeadInput, typeof PersistiqViewLeadOutput, typeof persistiq.credential>;
43
43
  //#endregion
44
44
  export { persistiqViewLead };
45
45
  //# sourceMappingURL=view-lead.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-lead.d.mts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"view-lead.d.mts","names":[],"sources":["../../src/actions/view-lead.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAiCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/view-lead.ts
@@ -1 +1 @@
1
- {"version":3,"file":"view-lead.mjs","names":[],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersistiqViewLeadInput = z.object({\n lead_id: z.string().describe(\"Unique identifier of the lead to retrieve\"),\n}).describe(\"Request parameters for retrieving a single PersistIQ lead by ID.\");\nconst PersistiqViewLead_LeadDataSchema = z.object({\n city: z.string().describe(\"City of the lead\").nullable().optional(),\n email: z.string().describe(\"Email address of the lead\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the lead\").nullable().optional(),\n state: z.string().describe(\"State of the lead\").nullable().optional(),\n title: z.string().describe(\"Job title of the lead\").nullable().optional(),\n source: z.string().describe(\"Source of the lead\").nullable().optional(),\n address: z.string().describe(\"Address of the lead\").nullable().optional(),\n country: z.string().describe(\"Country of the lead\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the lead\").nullable().optional(),\n website: z.string().describe(\"Website of the lead\").nullable().optional(),\n facebook: z.string().describe(\"Facebook URL of the lead\").nullable().optional(),\n industry: z.string().describe(\"Industry of the lead\").nullable().optional(),\n linkedin: z.string().describe(\"LinkedIn URL of the lead\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the lead\").nullable().optional(),\n first_name: z.string().describe(\"First name of the lead\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the lead\").nullable().optional(),\n}).passthrough().describe(\"Nested data fields for a lead.\");\nconst PersistiqViewLead_LeadSchema = z.object({\n id: z.string().describe(\"Unique identifier of the lead\").nullable(),\n data: PersistiqViewLead_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the lead (e.g., 'open')\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether emails to this lead have bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the user who owns the lead\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to this lead\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of last email sent\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from this lead\").nullable().optional(),\n}).passthrough().describe(\"Lead object returned by the PersistIQ API.\");\nexport const PersistiqViewLeadOutput = z.object({\n lead: PersistiqViewLead_LeadSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable(),\n}).passthrough().describe(\"Response for viewing a single PersistIQ lead.\");\n\nexport const persistiqViewLead = action(\"PERSISTIQ_VIEW_LEAD\", {\n slug: \"persistiq-view-lead\",\n name: \"View Lead\",\n description: \"Tool to retrieve a lead by its ID. Use when you have the lead ID and need its detailed information.\",\n input: PersistiqViewLeadInput,\n output: PersistiqViewLeadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC1E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CA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,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"view-lead.mjs","names":[],"sources":["../../src/actions/view-lead.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persistiq } from \"../app\";\n\nexport const PersistiqViewLeadInput = z.object({\n lead_id: z.string().describe(\"Unique identifier of the lead to retrieve\"),\n}).describe(\"Request parameters for retrieving a single PersistIQ lead by ID.\");\nconst PersistiqViewLead_LeadDataSchema = z.object({\n city: z.string().describe(\"City of the lead\").nullable().optional(),\n email: z.string().describe(\"Email address of the lead\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the lead\").nullable().optional(),\n state: z.string().describe(\"State of the lead\").nullable().optional(),\n title: z.string().describe(\"Job title of the lead\").nullable().optional(),\n source: z.string().describe(\"Source of the lead\").nullable().optional(),\n address: z.string().describe(\"Address of the lead\").nullable().optional(),\n country: z.string().describe(\"Country of the lead\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the lead\").nullable().optional(),\n website: z.string().describe(\"Website of the lead\").nullable().optional(),\n facebook: z.string().describe(\"Facebook URL of the lead\").nullable().optional(),\n industry: z.string().describe(\"Industry of the lead\").nullable().optional(),\n linkedin: z.string().describe(\"LinkedIn URL of the lead\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the lead\").nullable().optional(),\n first_name: z.string().describe(\"First name of the lead\").nullable().optional(),\n company_name: z.string().describe(\"Company name of the lead\").nullable().optional(),\n}).passthrough().describe(\"Nested data fields for a lead.\");\nconst PersistiqViewLead_LeadSchema = z.object({\n id: z.string().describe(\"Unique identifier of the lead\").nullable(),\n data: PersistiqViewLead_LeadDataSchema.nullable().optional(),\n status: z.string().describe(\"Current status of the lead (e.g., 'open')\").nullable().optional(),\n bounced: z.boolean().describe(\"Whether emails to this lead have bounced\").nullable().optional(),\n optedout: z.boolean().describe(\"Whether the lead has opted out\").nullable().optional(),\n owner_id: z.string().describe(\"ID of the user who owns the lead\").nullable().optional(),\n creator_id: z.string().describe(\"ID of the user who created the lead\").nullable().optional(),\n sent_count: z.number().int().describe(\"Number of emails sent to this lead\").nullable().optional(),\n last_sent_at: z.string().describe(\"Timestamp of last email sent\").nullable().optional(),\n replied_count: z.number().int().describe(\"Number of replies from this lead\").nullable().optional(),\n}).passthrough().describe(\"Lead object returned by the PersistIQ API.\");\nexport const PersistiqViewLeadOutput = z.object({\n lead: PersistiqViewLead_LeadSchema.nullable(),\n error: z.string().describe(\"Error message if any\").nullable().optional(),\n status: z.string().describe(\"Status of the API response\").nullable(),\n}).passthrough().describe(\"Response for viewing a single PersistIQ lead.\");\n\nexport const persistiqViewLead: AppAction<\n typeof PersistiqViewLeadInput,\n typeof PersistiqViewLeadOutput,\n typeof persistiq.credential\n> = action(\"PERSISTIQ_VIEW_LEAD\", {\n slug: \"persistiq-view-lead\",\n name: \"View Lead\",\n description: \"Tool to retrieve a lead by its ID. Use when you have the lead ID and need its detailed information.\",\n input: PersistiqViewLeadInput,\n output: PersistiqViewLeadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC1E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,m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GED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const persistiq = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const persistiq = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "persistiq",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.persistiq = persistiq;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const persistiq = defineApp({\n slug: \"persistiq\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const persistiq: KeystrokeApp<\"persistiq\", typeof credential> = defineApp({\n slug: \"persistiq\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const persistiq: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const persistiq: KeystrokeApp<"persistiq", typeof credential>;
3
9
  //#endregion
4
10
  export { persistiq };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const persistiq: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const persistiq: KeystrokeApp<"persistiq", typeof credential>;
3
9
  //#endregion
4
10
  export { persistiq };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const persistiq = defineApp({
4
4
  slug: "persistiq",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { persistiq };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const persistiq = defineApp({\n slug: \"persistiq\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const persistiq: KeystrokeApp<\"persistiq\", typeof credential> = defineApp({\n slug: \"persistiq\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,YAA0D,UAAU;CAC/E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { persistiq } from "./app.cjs";
1
2
  import { persistiqAddLeadToCampaign } from "./actions/add-lead-to-campaign.cjs";
2
3
  import { persistiqCreateCampaign } from "./actions/create-campaign.cjs";
3
4
  import { persistiqCreateDncDomain } from "./actions/create-dnc-domain.cjs";
@@ -12,6 +13,5 @@ import { persistiqListUsers } from "./actions/list-users.cjs";
12
13
  import { persistiqRemoveLeadFromCampaign } from "./actions/remove-lead-from-campaign.cjs";
13
14
  import { persistiqUpdateLead } from "./actions/update-lead.cjs";
14
15
  import { persistiqViewLead } from "./actions/view-lead.cjs";
15
- import { persistiq } from "./app.cjs";
16
16
  import { persistiqCatalog } from "./catalog.cjs";
17
17
  export { persistiq, persistiqAddLeadToCampaign, persistiqCatalog, persistiqCreateCampaign, persistiqCreateDncDomain, persistiqCreateLeads, persistiqListCampaigns, persistiqListDncDomains, persistiqListEvents, persistiqListLeadFields, persistiqListLeadStatuses, persistiqListLeads, persistiqListUsers, persistiqRemoveLeadFromCampaign, persistiqUpdateLead, persistiqViewLead };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { persistiq } from "./app.mjs";
1
2
  import { persistiqAddLeadToCampaign } from "./actions/add-lead-to-campaign.mjs";
2
3
  import { persistiqCreateCampaign } from "./actions/create-campaign.mjs";
3
4
  import { persistiqCreateDncDomain } from "./actions/create-dnc-domain.mjs";
@@ -12,6 +13,5 @@ import { persistiqListUsers } from "./actions/list-users.mjs";
12
13
  import { persistiqRemoveLeadFromCampaign } from "./actions/remove-lead-from-campaign.mjs";
13
14
  import { persistiqUpdateLead } from "./actions/update-lead.mjs";
14
15
  import { persistiqViewLead } from "./actions/view-lead.mjs";
15
- import { persistiq } from "./app.mjs";
16
16
  import { persistiqCatalog } from "./catalog.mjs";
17
17
  export { persistiq, persistiqAddLeadToCampaign, persistiqCatalog, persistiqCreateCampaign, persistiqCreateDncDomain, persistiqCreateLeads, persistiqListCampaigns, persistiqListDncDomains, persistiqListEvents, persistiqListLeadFields, persistiqListLeadStatuses, persistiqListLeads, persistiqListUsers, persistiqRemoveLeadFromCampaign, persistiqUpdateLead, persistiqViewLead };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/persistiq",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {