@keystrokehq/superchat 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 (170) 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/create-contact.cjs +55 -0
  7. package/dist/actions/create-contact.cjs.map +1 -0
  8. package/dist/actions/create-contact.d.cts +9 -0
  9. package/dist/actions/create-contact.d.cts.map +1 -0
  10. package/dist/actions/create-contact.d.mts +9 -0
  11. package/dist/actions/create-contact.d.mts.map +1 -0
  12. package/dist/actions/create-contact.mjs +54 -0
  13. package/dist/actions/create-contact.mjs.map +1 -0
  14. package/dist/actions/create-template-folder.cjs +20 -0
  15. package/dist/actions/create-template-folder.cjs.map +1 -0
  16. package/dist/actions/create-template-folder.d.cts +9 -0
  17. package/dist/actions/create-template-folder.d.cts.map +1 -0
  18. package/dist/actions/create-template-folder.d.mts +9 -0
  19. package/dist/actions/create-template-folder.d.mts.map +1 -0
  20. package/dist/actions/create-template-folder.mjs +17 -0
  21. package/dist/actions/create-template-folder.mjs.map +1 -0
  22. package/dist/actions/delete-webhook.cjs +16 -0
  23. package/dist/actions/delete-webhook.cjs.map +1 -0
  24. package/dist/actions/delete-webhook.d.cts +9 -0
  25. package/dist/actions/delete-webhook.d.cts.map +1 -0
  26. package/dist/actions/delete-webhook.d.mts +9 -0
  27. package/dist/actions/delete-webhook.d.mts.map +1 -0
  28. package/dist/actions/delete-webhook.mjs +13 -0
  29. package/dist/actions/delete-webhook.mjs.map +1 -0
  30. package/dist/actions/get-contact.cjs +39 -0
  31. package/dist/actions/get-contact.cjs.map +1 -0
  32. package/dist/actions/get-contact.d.cts +9 -0
  33. package/dist/actions/get-contact.d.cts.map +1 -0
  34. package/dist/actions/get-contact.d.mts +9 -0
  35. package/dist/actions/get-contact.d.mts.map +1 -0
  36. package/dist/actions/get-contact.mjs +38 -0
  37. package/dist/actions/get-contact.mjs.map +1 -0
  38. package/dist/actions/get-file.cjs +26 -0
  39. package/dist/actions/get-file.cjs.map +1 -0
  40. package/dist/actions/get-file.d.cts +9 -0
  41. package/dist/actions/get-file.d.cts.map +1 -0
  42. package/dist/actions/get-file.d.mts +9 -0
  43. package/dist/actions/get-file.d.mts.map +1 -0
  44. package/dist/actions/get-file.mjs +25 -0
  45. package/dist/actions/get-file.mjs.map +1 -0
  46. package/dist/actions/get-user.cjs +25 -0
  47. package/dist/actions/get-user.cjs.map +1 -0
  48. package/dist/actions/get-user.d.cts +9 -0
  49. package/dist/actions/get-user.d.cts.map +1 -0
  50. package/dist/actions/get-user.d.mts +9 -0
  51. package/dist/actions/get-user.d.mts.map +1 -0
  52. package/dist/actions/get-user.mjs +22 -0
  53. package/dist/actions/get-user.mjs.map +1 -0
  54. package/dist/actions/index.cjs +35 -0
  55. package/dist/actions/index.d.cts +18 -0
  56. package/dist/actions/index.d.mts +18 -0
  57. package/dist/actions/index.mjs +18 -0
  58. package/dist/actions/list-channels.cjs +37 -0
  59. package/dist/actions/list-channels.cjs.map +1 -0
  60. package/dist/actions/list-channels.d.cts +9 -0
  61. package/dist/actions/list-channels.d.cts.map +1 -0
  62. package/dist/actions/list-channels.d.mts +9 -0
  63. package/dist/actions/list-channels.d.mts.map +1 -0
  64. package/dist/actions/list-channels.mjs +36 -0
  65. package/dist/actions/list-channels.mjs.map +1 -0
  66. package/dist/actions/list-contacts.cjs +63 -0
  67. package/dist/actions/list-contacts.cjs.map +1 -0
  68. package/dist/actions/list-contacts.d.cts +9 -0
  69. package/dist/actions/list-contacts.d.cts.map +1 -0
  70. package/dist/actions/list-contacts.d.mts +9 -0
  71. package/dist/actions/list-contacts.d.mts.map +1 -0
  72. package/dist/actions/list-contacts.mjs +62 -0
  73. package/dist/actions/list-contacts.mjs.map +1 -0
  74. package/dist/actions/list-conversations.cjs +70 -0
  75. package/dist/actions/list-conversations.cjs.map +1 -0
  76. package/dist/actions/list-conversations.d.cts +9 -0
  77. package/dist/actions/list-conversations.d.cts.map +1 -0
  78. package/dist/actions/list-conversations.d.mts +9 -0
  79. package/dist/actions/list-conversations.d.mts.map +1 -0
  80. package/dist/actions/list-conversations.mjs +69 -0
  81. package/dist/actions/list-conversations.mjs.map +1 -0
  82. package/dist/actions/list-custom-attributes.cjs +37 -0
  83. package/dist/actions/list-custom-attributes.cjs.map +1 -0
  84. package/dist/actions/list-custom-attributes.d.cts +9 -0
  85. package/dist/actions/list-custom-attributes.d.cts.map +1 -0
  86. package/dist/actions/list-custom-attributes.d.mts +9 -0
  87. package/dist/actions/list-custom-attributes.d.mts.map +1 -0
  88. package/dist/actions/list-custom-attributes.mjs +36 -0
  89. package/dist/actions/list-custom-attributes.mjs.map +1 -0
  90. package/dist/actions/list-inboxes.cjs +41 -0
  91. package/dist/actions/list-inboxes.cjs.map +1 -0
  92. package/dist/actions/list-inboxes.d.cts +9 -0
  93. package/dist/actions/list-inboxes.d.cts.map +1 -0
  94. package/dist/actions/list-inboxes.d.mts +9 -0
  95. package/dist/actions/list-inboxes.d.mts.map +1 -0
  96. package/dist/actions/list-inboxes.mjs +40 -0
  97. package/dist/actions/list-inboxes.mjs.map +1 -0
  98. package/dist/actions/list-labels.cjs +37 -0
  99. package/dist/actions/list-labels.cjs.map +1 -0
  100. package/dist/actions/list-labels.d.cts +9 -0
  101. package/dist/actions/list-labels.d.cts.map +1 -0
  102. package/dist/actions/list-labels.d.mts +9 -0
  103. package/dist/actions/list-labels.d.mts.map +1 -0
  104. package/dist/actions/list-labels.mjs +36 -0
  105. package/dist/actions/list-labels.mjs.map +1 -0
  106. package/dist/actions/list-templates.cjs +38 -0
  107. package/dist/actions/list-templates.cjs.map +1 -0
  108. package/dist/actions/list-templates.d.cts +9 -0
  109. package/dist/actions/list-templates.d.cts.map +1 -0
  110. package/dist/actions/list-templates.d.mts +9 -0
  111. package/dist/actions/list-templates.d.mts.map +1 -0
  112. package/dist/actions/list-templates.mjs +37 -0
  113. package/dist/actions/list-templates.mjs.map +1 -0
  114. package/dist/actions/list-users.cjs +40 -0
  115. package/dist/actions/list-users.cjs.map +1 -0
  116. package/dist/actions/list-users.d.cts +9 -0
  117. package/dist/actions/list-users.d.cts.map +1 -0
  118. package/dist/actions/list-users.d.mts +9 -0
  119. package/dist/actions/list-users.d.mts.map +1 -0
  120. package/dist/actions/list-users.mjs +39 -0
  121. package/dist/actions/list-users.mjs.map +1 -0
  122. package/dist/actions/list-webhooks.cjs +47 -0
  123. package/dist/actions/list-webhooks.cjs.map +1 -0
  124. package/dist/actions/list-webhooks.d.cts +9 -0
  125. package/dist/actions/list-webhooks.d.cts.map +1 -0
  126. package/dist/actions/list-webhooks.d.mts +9 -0
  127. package/dist/actions/list-webhooks.d.mts.map +1 -0
  128. package/dist/actions/list-webhooks.mjs +46 -0
  129. package/dist/actions/list-webhooks.mjs.map +1 -0
  130. package/dist/actions/update-contact.cjs +68 -0
  131. package/dist/actions/update-contact.cjs.map +1 -0
  132. package/dist/actions/update-contact.d.cts +9 -0
  133. package/dist/actions/update-contact.d.cts.map +1 -0
  134. package/dist/actions/update-contact.d.mts +9 -0
  135. package/dist/actions/update-contact.d.mts.map +1 -0
  136. package/dist/actions/update-contact.mjs +67 -0
  137. package/dist/actions/update-contact.mjs.map +1 -0
  138. package/dist/actions/update-webhook.cjs +27 -0
  139. package/dist/actions/update-webhook.cjs.map +1 -0
  140. package/dist/actions/update-webhook.d.cts +9 -0
  141. package/dist/actions/update-webhook.d.cts.map +1 -0
  142. package/dist/actions/update-webhook.d.mts +9 -0
  143. package/dist/actions/update-webhook.d.mts.map +1 -0
  144. package/dist/actions/update-webhook.mjs +24 -0
  145. package/dist/actions/update-webhook.mjs.map +1 -0
  146. package/dist/app.cjs +9 -0
  147. package/dist/app.cjs.map +1 -0
  148. package/dist/app.d.cts +5 -0
  149. package/dist/app.d.cts.map +1 -0
  150. package/dist/app.d.mts +5 -0
  151. package/dist/app.d.mts.map +1 -0
  152. package/dist/app.mjs +10 -0
  153. package/dist/app.mjs.map +1 -0
  154. package/dist/catalog.cjs +15 -0
  155. package/dist/catalog.cjs.map +1 -0
  156. package/dist/catalog.d.cts +14 -0
  157. package/dist/catalog.d.cts.map +1 -0
  158. package/dist/catalog.d.mts +14 -0
  159. package/dist/catalog.d.mts.map +1 -0
  160. package/dist/catalog.mjs +15 -0
  161. package/dist/catalog.mjs.map +1 -0
  162. package/dist/execute.cjs +18 -0
  163. package/dist/execute.cjs.map +1 -0
  164. package/dist/execute.mjs +18 -0
  165. package/dist/execute.mjs.map +1 -0
  166. package/dist/index.cjs +40 -0
  167. package/dist/index.d.cts +20 -0
  168. package/dist/index.d.mts +20 -0
  169. package/dist/index.mjs +21 -0
  170. package/package.json +49 -0
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-labels.ts
4
+ const SuperchatListLabelsInput = z.object({
5
+ after: z.string().describe("Cursor for pagination. Returns labels after this cursor position. Use the 'next_cursor' from a previous response.").optional(),
6
+ limit: z.number().int().default(50).describe("Number of labels to return per page (1-100). Defaults to 50.").optional(),
7
+ before: z.string().describe("Cursor for pagination. Returns labels before this cursor position. Use the 'previous_cursor' from a previous response. Cannot be used together with 'after'.").optional()
8
+ }).describe("Request model for listing labels in Superchat.\nLabels are used to categorize and organize conversations in a workspace.");
9
+ const SuperchatListLabels_LabelSummarySchema = z.object({
10
+ id: z.string().describe("Unique identifier of the label."),
11
+ name: z.string().describe("Display name of the label."),
12
+ color: z.string().describe("Hex color code of the label (if set).").nullable().optional(),
13
+ created_at: z.string().describe("ISO 8601 timestamp when the label was created.").nullable().optional(),
14
+ updated_at: z.string().describe("ISO 8601 timestamp when the label was last updated.").nullable().optional()
15
+ }).describe("Summary of a single label resource.\nLabels are used to categorize conversations in Superchat.");
16
+ const SuperchatListLabels_PaginationSchema = z.object({
17
+ next_url: z.string().describe("URL to retrieve the next page of results.").nullable().optional(),
18
+ next_cursor: z.string().describe("Cursor for the next page of results.").nullable().optional(),
19
+ previous_url: z.string().describe("URL to retrieve the previous page of results.").nullable().optional(),
20
+ previous_cursor: z.string().describe("Cursor for the previous page of results.").nullable().optional()
21
+ }).describe("Pagination details for list responses.");
22
+ const superchatListLabels = action("SUPERCHAT_LIST_LABELS", {
23
+ slug: "superchat-list-labels",
24
+ name: "List Labels",
25
+ description: "List all labels in the Superchat workspace. Labels are used to categorize and organize conversations. Use this tool to retrieve available labels and their IDs, which can then be used to assign labels to conversations via the update conversation endpoint. Supports cursor-based pagination for workspaces with many labels.",
26
+ input: SuperchatListLabelsInput,
27
+ output: z.object({
28
+ url: z.string().describe("Endpoint URL for the labels resource."),
29
+ results: z.array(SuperchatListLabels_LabelSummarySchema).describe("List of label summaries."),
30
+ pagination: SuperchatListLabels_PaginationSchema.nullable()
31
+ }).describe("Response model for ListLabels action.")
32
+ });
33
+ //#endregion
34
+ export { superchatListLabels };
35
+
36
+ //# sourceMappingURL=list-labels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-labels.mjs","names":[],"sources":["../../src/actions/list-labels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListLabelsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination. Returns labels after this cursor position. Use the 'next_cursor' from a previous response.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of labels to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Cursor for pagination. Returns labels before this cursor position. Use the 'previous_cursor' from a previous response. Cannot be used together with 'after'.\").optional(),\n}).describe(\"Request model for listing labels in Superchat.\\nLabels are used to categorize and organize conversations in a workspace.\");\nconst SuperchatListLabels_LabelSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the label.\"),\n name: z.string().describe(\"Display name of the label.\"),\n color: z.string().describe(\"Hex color code of the label (if set).\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the label was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the label was last updated.\").nullable().optional(),\n}).describe(\"Summary of a single label resource.\\nLabels are used to categorize conversations in Superchat.\");\nconst SuperchatListLabels_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListLabelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Endpoint URL for the labels resource.\"),\n results: z.array(SuperchatListLabels_LabelSummarySchema).describe(\"List of label summaries.\"),\n pagination: SuperchatListLabels_PaginationSchema.nullable(),\n}).describe(\"Response model for ListLabels action.\");\n\nexport const superchatListLabels = action(\"SUPERCHAT_LIST_LABELS\", {\n slug: \"superchat-list-labels\",\n name: \"List Labels\",\n description: \"List all labels in the Superchat workspace. Labels are used to categorize and organize conversations. Use this tool to retrieve available labels and their IDs, which can then be used to assign labels to conversations via the update conversation endpoint. Supports cursor-based pagination for workspaces with many labels.\",\n input: SuperchatListLabelsInput,\n output: SuperchatListLabelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACzJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACtI,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAC5G,MAAM,uCAAqD,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqD,EAAE,OAAO;EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,SAAS,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0BAA0B;EAC5F,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-templates.ts
4
+ const SuperchatListTemplatesInput = zod.z.object({
5
+ after: zod.z.string().describe("Cursor for pagination. Returns templates after this cursor position.").optional(),
6
+ limit: zod.z.number().int().default(50).describe("Number of templates to return per page (1-100). Defaults to 50.").optional(),
7
+ before: zod.z.string().describe("Cursor for pagination. Returns templates before this cursor position.").optional()
8
+ }).describe("Request model for ListTemplates action. Supports pagination parameters.");
9
+ const SuperchatListTemplates_TemplateSummarySchema = zod.z.object({
10
+ id: zod.z.string().describe("Unique identifier of the template."),
11
+ name: zod.z.string().describe("Name of the template."),
12
+ status: zod.z.string().describe("Current status of the template (e.g., 'approved', 'pending')."),
13
+ category: zod.z.string().describe("Category of the template (e.g., 'marketing', 'utility')."),
14
+ language: zod.z.string().describe("Language code of the template."),
15
+ components: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of components in the template such as headers, bodies, and footers.")
16
+ }).describe("Summary of a single message template resource.");
17
+ const SuperchatListTemplates_PaginationSchema = zod.z.object({
18
+ next_url: zod.z.string().describe("URL to retrieve the next page of results.").nullable().optional(),
19
+ next_cursor: zod.z.string().describe("Cursor for the next page of results.").nullable().optional(),
20
+ previous_url: zod.z.string().describe("URL to retrieve the previous page of results.").nullable().optional(),
21
+ previous_cursor: zod.z.string().describe("Cursor for the previous page of results.").nullable().optional()
22
+ }).describe("Pagination details for list responses.");
23
+ const SuperchatListTemplatesOutput = zod.z.object({
24
+ url: zod.z.string().describe("URL of the template resources."),
25
+ results: zod.z.array(SuperchatListTemplates_TemplateSummarySchema).describe("List of template summaries."),
26
+ pagination: SuperchatListTemplates_PaginationSchema.nullable()
27
+ }).describe("Response model for ListTemplates action.");
28
+ const superchatListTemplates = require_action.action("SUPERCHAT_LIST_TEMPLATES", {
29
+ slug: "superchat-list-templates",
30
+ name: "List Templates",
31
+ description: "Tool to list all message templates. Use when you need to fetch available message templates.",
32
+ input: SuperchatListTemplatesInput,
33
+ output: SuperchatListTemplatesOutput
34
+ });
35
+ //#endregion
36
+ exports.superchatListTemplates = superchatListTemplates;
37
+
38
+ //# sourceMappingURL=list-templates.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListTemplatesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination. Returns templates after this cursor position.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of templates to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Cursor for pagination. Returns templates before this cursor position.\").optional(),\n}).describe(\"Request model for ListTemplates action. Supports pagination parameters.\");\nconst SuperchatListTemplates_TemplateSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the template.\"),\n name: z.string().describe(\"Name of the template.\"),\n status: z.string().describe(\"Current status of the template (e.g., 'approved', 'pending').\"),\n category: z.string().describe(\"Category of the template (e.g., 'marketing', 'utility').\"),\n language: z.string().describe(\"Language code of the template.\"),\n components: z.array(z.record(z.string(), z.unknown())).describe(\"List of components in the template such as headers, bodies, and footers.\"),\n}).describe(\"Summary of a single message template resource.\");\nconst SuperchatListTemplates_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListTemplatesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the template resources.\"),\n results: z.array(SuperchatListTemplates_TemplateSummarySchema).describe(\"List of template summaries.\"),\n pagination: SuperchatListTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for ListTemplates action.\");\n\nexport const superchatListTemplates = action(\"SUPERCHAT_LIST_TEMPLATES\", {\n slug: \"superchat-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all message templates. Use when you need to fetch available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AA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,6BAA6B;CACrG,YAAY,wCAAwC,SAAS;AAC/D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-templates.d.ts
4
+ declare const SuperchatListTemplatesInput: z.ZodTypeAny;
5
+ declare const SuperchatListTemplatesOutput: z.ZodTypeAny;
6
+ declare const superchatListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListTemplates };
9
+ //# sourceMappingURL=list-templates.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI0C;AAAA,cAezE,4BAAA,EAA8B,CAAA,CAAE,UAIU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-templates.d.ts
4
+ declare const SuperchatListTemplatesInput: z.ZodTypeAny;
5
+ declare const SuperchatListTemplatesOutput: z.ZodTypeAny;
6
+ declare const superchatListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListTemplates };
9
+ //# sourceMappingURL=list-templates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI0C;AAAA,cAezE,4BAAA,EAA8B,CAAA,CAAE,UAIU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-templates.ts
4
+ const SuperchatListTemplatesInput = z.object({
5
+ after: z.string().describe("Cursor for pagination. Returns templates after this cursor position.").optional(),
6
+ limit: z.number().int().default(50).describe("Number of templates to return per page (1-100). Defaults to 50.").optional(),
7
+ before: z.string().describe("Cursor for pagination. Returns templates before this cursor position.").optional()
8
+ }).describe("Request model for ListTemplates action. Supports pagination parameters.");
9
+ const SuperchatListTemplates_TemplateSummarySchema = z.object({
10
+ id: z.string().describe("Unique identifier of the template."),
11
+ name: z.string().describe("Name of the template."),
12
+ status: z.string().describe("Current status of the template (e.g., 'approved', 'pending')."),
13
+ category: z.string().describe("Category of the template (e.g., 'marketing', 'utility')."),
14
+ language: z.string().describe("Language code of the template."),
15
+ components: z.array(z.record(z.string(), z.unknown())).describe("List of components in the template such as headers, bodies, and footers.")
16
+ }).describe("Summary of a single message template resource.");
17
+ const SuperchatListTemplates_PaginationSchema = z.object({
18
+ next_url: z.string().describe("URL to retrieve the next page of results.").nullable().optional(),
19
+ next_cursor: z.string().describe("Cursor for the next page of results.").nullable().optional(),
20
+ previous_url: z.string().describe("URL to retrieve the previous page of results.").nullable().optional(),
21
+ previous_cursor: z.string().describe("Cursor for the previous page of results.").nullable().optional()
22
+ }).describe("Pagination details for list responses.");
23
+ const superchatListTemplates = action("SUPERCHAT_LIST_TEMPLATES", {
24
+ slug: "superchat-list-templates",
25
+ name: "List Templates",
26
+ description: "Tool to list all message templates. Use when you need to fetch available message templates.",
27
+ input: SuperchatListTemplatesInput,
28
+ output: z.object({
29
+ url: z.string().describe("URL of the template resources."),
30
+ results: z.array(SuperchatListTemplates_TemplateSummarySchema).describe("List of template summaries."),
31
+ pagination: SuperchatListTemplates_PaginationSchema.nullable()
32
+ }).describe("Response model for ListTemplates action.")
33
+ });
34
+ //#endregion
35
+ export { superchatListTemplates };
36
+
37
+ //# sourceMappingURL=list-templates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListTemplatesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination. Returns templates after this cursor position.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of templates to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Cursor for pagination. Returns templates before this cursor position.\").optional(),\n}).describe(\"Request model for ListTemplates action. Supports pagination parameters.\");\nconst SuperchatListTemplates_TemplateSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the template.\"),\n name: z.string().describe(\"Name of the template.\"),\n status: z.string().describe(\"Current status of the template (e.g., 'approved', 'pending').\"),\n category: z.string().describe(\"Category of the template (e.g., 'marketing', 'utility').\"),\n language: z.string().describe(\"Language code of the template.\"),\n components: z.array(z.record(z.string(), z.unknown())).describe(\"List of components in the template such as headers, bodies, and footers.\"),\n}).describe(\"Summary of a single message template resource.\");\nconst SuperchatListTemplates_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListTemplatesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the template resources.\"),\n results: z.array(SuperchatListTemplates_TemplateSummarySchema).describe(\"List of template summaries.\"),\n pagination: SuperchatListTemplates_PaginationSchema.nullable(),\n}).describe(\"Response model for ListTemplates action.\");\n\nexport const superchatListTemplates = action(\"SUPERCHAT_LIST_TEMPLATES\", {\n slug: \"superchat-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all message templates. Use when you need to fetch available message templates.\",\n input: SuperchatListTemplatesInput,\n output: SuperchatListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC9D,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC5I,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,0CAAwD,EAAE,OAAO;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwD,EAAE,OAAO;EACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACzD,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,6BAA6B;EACrG,YAAY,wCAAwC,SAAS;CAC/D,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -0,0 +1,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-users.ts
4
+ const SuperchatListUsersInput = zod.z.object({
5
+ after: zod.z.string().describe("Cursor for pagination - user ID after which to return results.").optional(),
6
+ limit: zod.z.number().int().describe("Number of users to return per page (1-100). Defaults to 50 if not specified.").optional(),
7
+ before: zod.z.string().describe("Cursor for pagination - user ID before which to return results.").optional()
8
+ }).describe("Request model for listing workspace users.\nAll parameters are optional - the API returns all users by default.");
9
+ const SuperchatListUsers_UserSummarySchema = zod.z.object({
10
+ id: zod.z.string().describe("Unique identifier of the user."),
11
+ url: zod.z.string().describe("API URL for this user resource.").nullable().optional(),
12
+ name: zod.z.string().describe("Full display name of the user (may be deprecated, use first_name/last_name).").nullable().optional(),
13
+ role: zod.z.string().describe("Role of the user (e.g., 'admin', 'member').").nullable().optional(),
14
+ email: zod.z.string().describe("Email address of the user.").nullable().optional(),
15
+ phone: zod.z.string().describe("Phone number of the user.").nullable().optional(),
16
+ last_name: zod.z.string().describe("Last name of the user.").nullable().optional(),
17
+ first_name: zod.z.string().describe("First name of the user.").nullable().optional()
18
+ }).describe("Summary of a single user in the workspace.");
19
+ const SuperchatListUsers_PaginationSchema = zod.z.object({
20
+ next_url: zod.z.string().describe("Full URL to fetch the next page of results.").nullable().optional(),
21
+ next_cursor: zod.z.string().describe("Cursor to use in 'after' parameter for next page.").nullable().optional(),
22
+ previous_url: zod.z.string().describe("Full URL to fetch the previous page of results.").nullable().optional(),
23
+ previous_cursor: zod.z.string().describe("Cursor to use in 'before' parameter for previous page.").nullable().optional()
24
+ }).describe("Pagination metadata for navigating through user list results.");
25
+ const SuperchatListUsersOutput = zod.z.object({
26
+ url: zod.z.string().describe("API endpoint URL for the users resource.").nullable().optional(),
27
+ results: zod.z.array(SuperchatListUsers_UserSummarySchema).describe("List of user objects in this page.").nullable().optional(),
28
+ pagination: SuperchatListUsers_PaginationSchema.nullable().optional()
29
+ }).describe("Response containing a list of workspace users with pagination.");
30
+ const superchatListUsers = require_action.action("SUPERCHAT_LIST_USERS", {
31
+ slug: "superchat-list-users",
32
+ name: "List Users",
33
+ description: "Retrieve all users in the workspace. Returns user profiles including names, emails, roles, and contact info. Supports pagination for large workspaces. Use cases: - Get a directory of all workspace members - Find user IDs for other API operations - Audit user roles and permissions",
34
+ input: SuperchatListUsersInput,
35
+ output: SuperchatListUsersOutput
36
+ });
37
+ //#endregion
38
+ exports.superchatListUsers = superchatListUsers;
39
+
40
+ //# sourceMappingURL=list-users.cjs.map
@@ -0,0 +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 SuperchatListUsersInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination - user ID after which to return results.\").optional(),\n limit: z.number().int().describe(\"Number of users to return per page (1-100). Defaults to 50 if not specified.\").optional(),\n before: z.string().describe(\"Cursor for pagination - user ID before which to return results.\").optional(),\n}).describe(\"Request model for listing workspace users.\\nAll parameters are optional - the API returns all users by default.\");\nconst SuperchatListUsers_UserSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\"),\n url: z.string().describe(\"API URL for this user resource.\").nullable().optional(),\n name: z.string().describe(\"Full display name of the user (may be deprecated, use first_name/last_name).\").nullable().optional(),\n role: z.string().describe(\"Role of the user (e.g., 'admin', 'member').\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user.\").nullable().optional(),\n}).describe(\"Summary of a single user in the workspace.\");\nconst SuperchatListUsers_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to fetch the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to use in 'after' parameter for next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to fetch the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor to use in 'before' parameter for previous page.\").nullable().optional(),\n}).describe(\"Pagination metadata for navigating through user list results.\");\nexport const SuperchatListUsersOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"API endpoint URL for the users resource.\").nullable().optional(),\n results: z.array(SuperchatListUsers_UserSummarySchema).describe(\"List of user objects in this page.\").nullable().optional(),\n pagination: SuperchatListUsers_PaginationSchema.nullable().optional(),\n}).describe(\"Response containing a list of workspace users with pagination.\");\n\nexport const superchatListUsers = action(\"SUPERCHAT_LIST_USERS\", {\n slug: \"superchat-list-users\",\n name: \"List Users\",\n description: \"Retrieve all users in the workspace. Returns user profiles including names, emails, roles, and contact info. Supports pagination for large workspaces. Use cases: - Get a directory of all workspace members - Find user IDs for other API operations - Audit user roles and permissions\",\n input: SuperchatListUsersInput,\n output: SuperchatListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iHAAiH;AAC7H,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAY,oCAAoC,SAAS,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-users.d.ts
4
+ declare const SuperchatListUsersInput: z.ZodTypeAny;
5
+ declare const SuperchatListUsersOutput: z.ZodTypeAny;
6
+ declare const superchatListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListUsers };
9
+ //# sourceMappingURL=list-users.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIsF;AAAA,cAiBjH,wBAAA,EAA0B,CAAA,CAAE,UAIoC;AAAA,cAEhE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-users.d.ts
4
+ declare const SuperchatListUsersInput: z.ZodTypeAny;
5
+ declare const SuperchatListUsersOutput: z.ZodTypeAny;
6
+ declare const superchatListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListUsers };
9
+ //# sourceMappingURL=list-users.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIsF;AAAA,cAiBjH,wBAAA,EAA0B,CAAA,CAAE,UAIoC;AAAA,cAEhE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-users.ts
4
+ const SuperchatListUsersInput = z.object({
5
+ after: z.string().describe("Cursor for pagination - user ID after which to return results.").optional(),
6
+ limit: z.number().int().describe("Number of users to return per page (1-100). Defaults to 50 if not specified.").optional(),
7
+ before: z.string().describe("Cursor for pagination - user ID before which to return results.").optional()
8
+ }).describe("Request model for listing workspace users.\nAll parameters are optional - the API returns all users by default.");
9
+ const SuperchatListUsers_UserSummarySchema = z.object({
10
+ id: z.string().describe("Unique identifier of the user."),
11
+ url: z.string().describe("API URL for this user resource.").nullable().optional(),
12
+ name: z.string().describe("Full display name of the user (may be deprecated, use first_name/last_name).").nullable().optional(),
13
+ role: z.string().describe("Role of the user (e.g., 'admin', 'member').").nullable().optional(),
14
+ email: z.string().describe("Email address of the user.").nullable().optional(),
15
+ phone: z.string().describe("Phone number of the user.").nullable().optional(),
16
+ last_name: z.string().describe("Last name of the user.").nullable().optional(),
17
+ first_name: z.string().describe("First name of the user.").nullable().optional()
18
+ }).describe("Summary of a single user in the workspace.");
19
+ const SuperchatListUsers_PaginationSchema = z.object({
20
+ next_url: z.string().describe("Full URL to fetch the next page of results.").nullable().optional(),
21
+ next_cursor: z.string().describe("Cursor to use in 'after' parameter for next page.").nullable().optional(),
22
+ previous_url: z.string().describe("Full URL to fetch the previous page of results.").nullable().optional(),
23
+ previous_cursor: z.string().describe("Cursor to use in 'before' parameter for previous page.").nullable().optional()
24
+ }).describe("Pagination metadata for navigating through user list results.");
25
+ const superchatListUsers = action("SUPERCHAT_LIST_USERS", {
26
+ slug: "superchat-list-users",
27
+ name: "List Users",
28
+ description: "Retrieve all users in the workspace. Returns user profiles including names, emails, roles, and contact info. Supports pagination for large workspaces. Use cases: - Get a directory of all workspace members - Find user IDs for other API operations - Audit user roles and permissions",
29
+ input: SuperchatListUsersInput,
30
+ output: z.object({
31
+ url: z.string().describe("API endpoint URL for the users resource.").nullable().optional(),
32
+ results: z.array(SuperchatListUsers_UserSummarySchema).describe("List of user objects in this page.").nullable().optional(),
33
+ pagination: SuperchatListUsers_PaginationSchema.nullable().optional()
34
+ }).describe("Response containing a list of workspace users with pagination.")
35
+ });
36
+ //#endregion
37
+ export { superchatListUsers };
38
+
39
+ //# sourceMappingURL=list-users.mjs.map
@@ -0,0 +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 SuperchatListUsersInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination - user ID after which to return results.\").optional(),\n limit: z.number().int().describe(\"Number of users to return per page (1-100). Defaults to 50 if not specified.\").optional(),\n before: z.string().describe(\"Cursor for pagination - user ID before which to return results.\").optional(),\n}).describe(\"Request model for listing workspace users.\\nAll parameters are optional - the API returns all users by default.\");\nconst SuperchatListUsers_UserSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\"),\n url: z.string().describe(\"API URL for this user resource.\").nullable().optional(),\n name: z.string().describe(\"Full display name of the user (may be deprecated, use first_name/last_name).\").nullable().optional(),\n role: z.string().describe(\"Role of the user (e.g., 'admin', 'member').\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user.\").nullable().optional(),\n}).describe(\"Summary of a single user in the workspace.\");\nconst SuperchatListUsers_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to fetch the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to use in 'after' parameter for next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to fetch the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor to use in 'before' parameter for previous page.\").nullable().optional(),\n}).describe(\"Pagination metadata for navigating through user list results.\");\nexport const SuperchatListUsersOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"API endpoint URL for the users resource.\").nullable().optional(),\n results: z.array(SuperchatListUsers_UserSummarySchema).describe(\"List of user objects in this page.\").nullable().optional(),\n pagination: SuperchatListUsers_PaginationSchema.nullable().optional(),\n}).describe(\"Response containing a list of workspace users with pagination.\");\n\nexport const superchatListUsers = action(\"SUPERCHAT_LIST_USERS\", {\n slug: \"superchat-list-users\",\n name: \"List Users\",\n description: \"Retrieve all users in the workspace. Returns user profiles including names, emails, roles, and contact info. Supports pagination for large workspaces. Use cases: - Get a directory of all workspace members - Find user IDs for other API operations - Audit user roles and permissions\",\n input: SuperchatListUsersInput,\n output: SuperchatListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iHAAiH;AAC7H,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,sCAAoD,EAAE,OAAO;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAO3E,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -0,0 +1,47 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-webhooks.ts
4
+ const SuperchatListWebhooksInput = zod.z.object({
5
+ after: zod.z.string().describe("Pagination cursor for older webhooks. Provide a webhook ID to retrieve the next page of results (webhooks created before this ID in chronological order). Results are sorted newest-first, so 'after' moves forward through older records. Cannot be used with 'before'.").optional(),
6
+ limit: zod.z.number().int().default(50).describe("Number of webhooks to return per page (1-100). Defaults to 50.").optional(),
7
+ before: zod.z.string().describe("Pagination cursor for newer webhooks. Provide a webhook ID to retrieve the previous page of results (webhooks created after this ID in chronological order). Results are sorted newest-first, so 'before' moves backward through newer records. Cannot be used with 'after'.").optional()
8
+ }).describe("Request model for listing webhooks with optional pagination parameters.");
9
+ const SuperchatListWebhooks_WebhookEventFilterSchema = zod.z.object({
10
+ ids: zod.z.array(zod.z.string()).describe("List of IDs to filter on (e.g., channel IDs, inbox IDs).").nullable().optional(),
11
+ type: zod.z.string().describe("Filter type (e.g., 'channel', 'inbox', 'custom_attribute', 'handle').").nullable().optional()
12
+ }).describe("Filter applied to a webhook event subscription.");
13
+ const SuperchatListWebhooks_WebhookEventSchema = zod.z.object({
14
+ type: zod.z.string().describe("Event type (e.g., 'message_inbound', 'contact_updated', 'conversation_created')."),
15
+ filters: SuperchatListWebhooks_WebhookEventFilterSchema.nullable().optional()
16
+ }).describe("A single event subscription for a webhook.");
17
+ const SuperchatListWebhooks_WebhookSummarySchema = zod.z.object({
18
+ id: zod.z.string().describe("Unique identifier of the webhook (e.g., 'wk_abc123')."),
19
+ url: zod.z.string().describe("Resource URL path for this webhook."),
20
+ events: zod.z.array(SuperchatListWebhooks_WebhookEventSchema).describe("List of event subscriptions for this webhook."),
21
+ status: zod.z.string().describe("Current status of the webhook: 'ACTIVE' or 'PAUSED'. Webhooks are paused after 7 days of consistent delivery failures."),
22
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the webhook was created."),
23
+ target_url: zod.z.string().describe("Target URL where webhook events are delivered."),
24
+ updated_at: zod.z.string().describe("ISO 8601 timestamp when the webhook was last updated.")
25
+ }).describe("Summary of a single webhook resource.");
26
+ const SuperchatListWebhooks_PaginationSchema = zod.z.object({
27
+ next_url: zod.z.string().describe("Full URL to retrieve the next page of results.").nullable().optional(),
28
+ next_cursor: zod.z.string().describe("Cursor for the next page of results. Pass this to 'after' parameter.").nullable().optional(),
29
+ previous_url: zod.z.string().describe("Full URL to retrieve the previous page of results.").nullable().optional(),
30
+ previous_cursor: zod.z.string().describe("Cursor for the previous page of results. Pass this to 'before' parameter.").nullable().optional()
31
+ }).describe("Pagination cursors and URLs for navigating webhook list results.");
32
+ const SuperchatListWebhooksOutput = zod.z.object({
33
+ url: zod.z.string().describe("Resource URL path for the webhooks collection."),
34
+ results: zod.z.array(SuperchatListWebhooks_WebhookSummarySchema).describe("List of webhook objects matching the query."),
35
+ pagination: SuperchatListWebhooks_PaginationSchema.nullable()
36
+ }).describe("Response model for listing webhooks.");
37
+ const superchatListWebhooks = require_action.action("SUPERCHAT_LIST_WEBHOOKS", {
38
+ slug: "superchat-list-webhooks",
39
+ name: "List Webhooks",
40
+ description: "Tool to list all webhooks configured in the workspace. Use this tool to: - Retrieve all active and paused webhooks - Get webhook IDs for use with update or delete operations - Check webhook status and event subscriptions Supports pagination via 'limit', 'after', and 'before' parameters.",
41
+ input: SuperchatListWebhooksInput,
42
+ output: SuperchatListWebhooksOutput
43
+ });
44
+ //#endregion
45
+ exports.superchatListWebhooks = superchatListWebhooks;
46
+
47
+ //# sourceMappingURL=list-webhooks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListWebhooksInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor for older webhooks. Provide a webhook ID to retrieve the next page of results (webhooks created before this ID in chronological order). Results are sorted newest-first, so 'after' moves forward through older records. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of webhooks to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Pagination cursor for newer webhooks. Provide a webhook ID to retrieve the previous page of results (webhooks created after this ID in chronological order). Results are sorted newest-first, so 'before' moves backward through newer records. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for listing webhooks with optional pagination parameters.\");\nconst SuperchatListWebhooks_WebhookEventFilterSchema: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"List of IDs to filter on (e.g., channel IDs, inbox IDs).\").nullable().optional(),\n type: z.string().describe(\"Filter type (e.g., 'channel', 'inbox', 'custom_attribute', 'handle').\").nullable().optional(),\n}).describe(\"Filter applied to a webhook event subscription.\");\nconst SuperchatListWebhooks_WebhookEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type (e.g., 'message_inbound', 'contact_updated', 'conversation_created').\"),\n filters: SuperchatListWebhooks_WebhookEventFilterSchema.nullable().optional(),\n}).describe(\"A single event subscription for a webhook.\");\nconst SuperchatListWebhooks_WebhookSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the webhook (e.g., 'wk_abc123').\"),\n url: z.string().describe(\"Resource URL path for this webhook.\"),\n events: z.array(SuperchatListWebhooks_WebhookEventSchema).describe(\"List of event subscriptions for this webhook.\"),\n status: z.string().describe(\"Current status of the webhook: 'ACTIVE' or 'PAUSED'. Webhooks are paused after 7 days of consistent delivery failures.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the webhook was created.\"),\n target_url: z.string().describe(\"Target URL where webhook events are delivered.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the webhook was last updated.\"),\n}).describe(\"Summary of a single webhook resource.\");\nconst SuperchatListWebhooks_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Pass this to 'after' parameter.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Pass this to 'before' parameter.\").nullable().optional(),\n}).describe(\"Pagination cursors and URLs for navigating webhook list results.\");\nexport const SuperchatListWebhooksOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Resource URL path for the webhooks collection.\"),\n results: z.array(SuperchatListWebhooks_WebhookSummarySchema).describe(\"List of webhook objects matching the query.\"),\n pagination: SuperchatListWebhooks_PaginationSchema.nullable(),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const superchatListWebhooks = action(\"SUPERCHAT_LIST_WEBHOOKS\", {\n slug: \"superchat-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list all webhooks configured in the workspace. Use this tool to: - Retrieve all active and paused webhooks - Get webhook IDs for use with update or delete operations - Check webhook status and event subscriptions Supports pagination via 'limit', 'after', and 'before' parameters.\",\n input: SuperchatListWebhooksInput,\n output: SuperchatListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAChT,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC5G,SAAS,+CAA+C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/E,KAAKA,IAAAA,EAAE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+ //#region src/actions/list-webhooks.d.ts
4
+ declare const SuperchatListWebhooksInput: z.ZodTypeAny;
5
+ declare const SuperchatListWebhooksOutput: z.ZodTypeAny;
6
+ declare const superchatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListWebhooks };
9
+ //# sourceMappingURL=list-webhooks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhooks.d.cts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAwBzE,2BAAA,EAA6B,CAAA,CAAE,UAIO;AAAA,cAEtC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-webhooks.d.ts
4
+ declare const SuperchatListWebhooksInput: z.ZodTypeAny;
5
+ declare const SuperchatListWebhooksOutput: z.ZodTypeAny;
6
+ declare const superchatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatListWebhooks };
9
+ //# sourceMappingURL=list-webhooks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhooks.d.mts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAwBzE,2BAAA,EAA6B,CAAA,CAAE,UAIO;AAAA,cAEtC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,46 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-webhooks.ts
4
+ const SuperchatListWebhooksInput = z.object({
5
+ after: z.string().describe("Pagination cursor for older webhooks. Provide a webhook ID to retrieve the next page of results (webhooks created before this ID in chronological order). Results are sorted newest-first, so 'after' moves forward through older records. Cannot be used with 'before'.").optional(),
6
+ limit: z.number().int().default(50).describe("Number of webhooks to return per page (1-100). Defaults to 50.").optional(),
7
+ before: z.string().describe("Pagination cursor for newer webhooks. Provide a webhook ID to retrieve the previous page of results (webhooks created after this ID in chronological order). Results are sorted newest-first, so 'before' moves backward through newer records. Cannot be used with 'after'.").optional()
8
+ }).describe("Request model for listing webhooks with optional pagination parameters.");
9
+ const SuperchatListWebhooks_WebhookEventFilterSchema = z.object({
10
+ ids: z.array(z.string()).describe("List of IDs to filter on (e.g., channel IDs, inbox IDs).").nullable().optional(),
11
+ type: z.string().describe("Filter type (e.g., 'channel', 'inbox', 'custom_attribute', 'handle').").nullable().optional()
12
+ }).describe("Filter applied to a webhook event subscription.");
13
+ const SuperchatListWebhooks_WebhookEventSchema = z.object({
14
+ type: z.string().describe("Event type (e.g., 'message_inbound', 'contact_updated', 'conversation_created')."),
15
+ filters: SuperchatListWebhooks_WebhookEventFilterSchema.nullable().optional()
16
+ }).describe("A single event subscription for a webhook.");
17
+ const SuperchatListWebhooks_WebhookSummarySchema = z.object({
18
+ id: z.string().describe("Unique identifier of the webhook (e.g., 'wk_abc123')."),
19
+ url: z.string().describe("Resource URL path for this webhook."),
20
+ events: z.array(SuperchatListWebhooks_WebhookEventSchema).describe("List of event subscriptions for this webhook."),
21
+ status: z.string().describe("Current status of the webhook: 'ACTIVE' or 'PAUSED'. Webhooks are paused after 7 days of consistent delivery failures."),
22
+ created_at: z.string().describe("ISO 8601 timestamp when the webhook was created."),
23
+ target_url: z.string().describe("Target URL where webhook events are delivered."),
24
+ updated_at: z.string().describe("ISO 8601 timestamp when the webhook was last updated.")
25
+ }).describe("Summary of a single webhook resource.");
26
+ const SuperchatListWebhooks_PaginationSchema = z.object({
27
+ next_url: z.string().describe("Full URL to retrieve the next page of results.").nullable().optional(),
28
+ next_cursor: z.string().describe("Cursor for the next page of results. Pass this to 'after' parameter.").nullable().optional(),
29
+ previous_url: z.string().describe("Full URL to retrieve the previous page of results.").nullable().optional(),
30
+ previous_cursor: z.string().describe("Cursor for the previous page of results. Pass this to 'before' parameter.").nullable().optional()
31
+ }).describe("Pagination cursors and URLs for navigating webhook list results.");
32
+ const superchatListWebhooks = action("SUPERCHAT_LIST_WEBHOOKS", {
33
+ slug: "superchat-list-webhooks",
34
+ name: "List Webhooks",
35
+ description: "Tool to list all webhooks configured in the workspace. Use this tool to: - Retrieve all active and paused webhooks - Get webhook IDs for use with update or delete operations - Check webhook status and event subscriptions Supports pagination via 'limit', 'after', and 'before' parameters.",
36
+ input: SuperchatListWebhooksInput,
37
+ output: z.object({
38
+ url: z.string().describe("Resource URL path for the webhooks collection."),
39
+ results: z.array(SuperchatListWebhooks_WebhookSummarySchema).describe("List of webhook objects matching the query."),
40
+ pagination: SuperchatListWebhooks_PaginationSchema.nullable()
41
+ }).describe("Response model for listing webhooks.")
42
+ });
43
+ //#endregion
44
+ export { superchatListWebhooks };
45
+
46
+ //# sourceMappingURL=list-webhooks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListWebhooksInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor for older webhooks. Provide a webhook ID to retrieve the next page of results (webhooks created before this ID in chronological order). Results are sorted newest-first, so 'after' moves forward through older records. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of webhooks to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Pagination cursor for newer webhooks. Provide a webhook ID to retrieve the previous page of results (webhooks created after this ID in chronological order). Results are sorted newest-first, so 'before' moves backward through newer records. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for listing webhooks with optional pagination parameters.\");\nconst SuperchatListWebhooks_WebhookEventFilterSchema: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"List of IDs to filter on (e.g., channel IDs, inbox IDs).\").nullable().optional(),\n type: z.string().describe(\"Filter type (e.g., 'channel', 'inbox', 'custom_attribute', 'handle').\").nullable().optional(),\n}).describe(\"Filter applied to a webhook event subscription.\");\nconst SuperchatListWebhooks_WebhookEventSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Event type (e.g., 'message_inbound', 'contact_updated', 'conversation_created').\"),\n filters: SuperchatListWebhooks_WebhookEventFilterSchema.nullable().optional(),\n}).describe(\"A single event subscription for a webhook.\");\nconst SuperchatListWebhooks_WebhookSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the webhook (e.g., 'wk_abc123').\"),\n url: z.string().describe(\"Resource URL path for this webhook.\"),\n events: z.array(SuperchatListWebhooks_WebhookEventSchema).describe(\"List of event subscriptions for this webhook.\"),\n status: z.string().describe(\"Current status of the webhook: 'ACTIVE' or 'PAUSED'. Webhooks are paused after 7 days of consistent delivery failures.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the webhook was created.\"),\n target_url: z.string().describe(\"Target URL where webhook events are delivered.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the webhook was last updated.\"),\n}).describe(\"Summary of a single webhook resource.\");\nconst SuperchatListWebhooks_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Pass this to 'after' parameter.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Pass this to 'before' parameter.\").nullable().optional(),\n}).describe(\"Pagination cursors and URLs for navigating webhook list results.\");\nexport const SuperchatListWebhooksOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Resource URL path for the webhooks collection.\"),\n results: z.array(SuperchatListWebhooks_WebhookSummarySchema).describe(\"List of webhook objects matching the query.\"),\n pagination: SuperchatListWebhooks_PaginationSchema.nullable(),\n}).describe(\"Response model for listing webhooks.\");\n\nexport const superchatListWebhooks = action(\"SUPERCHAT_LIST_WEBHOOKS\", {\n slug: \"superchat-list-webhooks\",\n name: \"List Webhooks\",\n description: \"Tool to list all webhooks configured in the workspace. Use this tool to: - Retrieve all active and paused webhooks - Get webhook IDs for use with update or delete operations - Check webhook status and event subscriptions Supports pagination via 'limit', 'after', and 'before' parameters.\",\n input: SuperchatListWebhooksInput,\n output: SuperchatListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAChT,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8QAA8Q,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,iDAA+D,EAAE,OAAO;CAC5E,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC5G,SAAS,+CAA+C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD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4
+ const SuperchatUpdateContactInput = zod.z.object({
5
+ gender: zod.z.enum([
6
+ "female",
7
+ "male",
8
+ "diverse"
9
+ ]).describe("Gender of the contact.").optional(),
10
+ handles: zod.z.array(zod.z.object({
11
+ id: zod.z.string().describe("Optional contact_handle_id to update an existing handle. If not provided, a new handle is created.").optional(),
12
+ type: zod.z.enum(["phone", "mail"]).describe("Handle type. Only 'phone' and 'mail' are supported for updates."),
13
+ value: zod.z.string().describe("The handle value (phone number or email address).")
14
+ }).describe("Contact handle for update request. Only phone and email handles are supported.")).describe("List of contact handles to update. Only phone and email handles are supported. Include 'id' to update existing handles.").optional(),
15
+ last_name: zod.z.string().describe("Last name of the contact.").optional(),
16
+ contact_id: zod.z.string().describe("Unique identifier of the contact to update, prefixed with 'ct_'. Example: 'ct_abc123'."),
17
+ first_name: zod.z.string().describe("First name of the contact.").optional(),
18
+ custom_attributes: zod.z.array(zod.z.object({
19
+ id: zod.z.string().describe("Identifier of the custom attribute to update."),
20
+ value: zod.z.union([
21
+ zod.z.string(),
22
+ zod.z.number().int(),
23
+ zod.z.number(),
24
+ zod.z.array(zod.z.string())
25
+ ])
26
+ }).describe("Custom attribute update object.")).describe("List of custom attributes to update. Each attribute needs an 'id' and 'value'.").optional()
27
+ }).describe("Request model for UpdateContact action.");
28
+ const SuperchatUpdateContact_ContactHandleResponseSchema = zod.z.object({
29
+ id: zod.z.string().describe("Unique identifier of the contact handle."),
30
+ type: zod.z.string().describe("Handle type (phone, mail, instagram, etc.)."),
31
+ value: zod.z.string().describe("The handle value.")
32
+ }).describe("Contact handle object returned in response.");
33
+ const SuperchatUpdateContact_CustomAttributeResponseSchema = zod.z.object({
34
+ id: zod.z.string().describe("Identifier of the custom attribute."),
35
+ name: zod.z.string().describe("Name/key of the custom attribute.").nullable().optional(),
36
+ value: zod.z.union([
37
+ zod.z.string(),
38
+ zod.z.number().int(),
39
+ zod.z.number(),
40
+ zod.z.array(zod.z.string())
41
+ ])
42
+ }).describe("Custom attribute object returned in response.");
43
+ const SuperchatUpdateContactOutput = zod.z.object({
44
+ id: zod.z.string().describe("Unique identifier for the contact (prefixed with 'ct_')."),
45
+ url: zod.z.string().describe("Resource URL of the contact.").nullable().optional(),
46
+ gender: zod.z.enum([
47
+ "female",
48
+ "male",
49
+ "diverse"
50
+ ]).describe("Gender of the contact.").nullable().optional(),
51
+ handles: zod.z.array(SuperchatUpdateContact_ContactHandleResponseSchema).describe("List of contact handles associated with this contact.").nullable().optional(),
52
+ last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
53
+ created_at: zod.z.string().describe("UTC datetime when the contact was created.").nullable().optional(),
54
+ first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
55
+ updated_at: zod.z.string().describe("UTC datetime when the contact was last updated.").nullable().optional(),
56
+ custom_attributes: zod.z.array(SuperchatUpdateContact_CustomAttributeResponseSchema).describe("Custom attributes associated with the contact.").nullable().optional()
57
+ }).describe("Response model for UpdateContact action.");
58
+ const superchatUpdateContact = require_action.action("SUPERCHAT_UPDATE_CONTACT", {
59
+ slug: "superchat-update-contact",
60
+ name: "Update Contact",
61
+ description: "Update information for a specific contact in Superchat. Use this tool to modify a contact's name, gender, handles (phone/email), or custom attributes. Requires the contact_id (prefixed with 'ct_') which can be obtained from List Contacts or Create Contact. Examples: - Update first name: {\"contact_id\": \"ct_abc123\", \"first_name\": \"Jane\"} - Update gender: {\"contact_id\": \"ct_abc123\", \"gender\": \"female\"} - Update phone handle: {\"contact_id\": \"ct_abc123\", \"handles\": [{\"type\": \"phone\", \"value\": \"+1234567890\"}]}",
62
+ input: SuperchatUpdateContactInput,
63
+ output: SuperchatUpdateContactOutput
64
+ });
65
+ //#endregion
66
+ exports.superchatUpdateContact = superchatUpdateContact;
67
+
68
+ //# sourceMappingURL=update-contact.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatUpdateContactInput: z.ZodTypeAny = z.object({\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").optional(),\n handles: z.array(z.object({\n id: z.string().describe(\"Optional contact_handle_id to update an existing handle. If not provided, a new handle is created.\").optional(),\n type: z.enum([\"phone\", \"mail\"]).describe(\"Handle type. Only 'phone' and 'mail' are supported for updates.\"),\n value: z.string().describe(\"The handle value (phone number or email address).\"),\n}).describe(\"Contact handle for update request. Only phone and email handles are supported.\")).describe(\"List of contact handles to update. Only phone and email handles are supported. Include 'id' to update existing handles.\").optional(),\n last_name: z.string().describe(\"Last name of the contact.\").optional(),\n contact_id: z.string().describe(\"Unique identifier of the contact to update, prefixed with 'ct_'. Example: 'ct_abc123'.\"),\n first_name: z.string().describe(\"First name of the contact.\").optional(),\n custom_attributes: z.array(z.object({\n id: z.string().describe(\"Identifier of the custom attribute to update.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.array(z.string())]),\n}).describe(\"Custom attribute update object.\")).describe(\"List of custom attributes to update. Each attribute needs an 'id' and 'value'.\").optional(),\n}).describe(\"Request model for UpdateContact action.\");\nconst SuperchatUpdateContact_ContactHandleResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact handle.\"),\n type: z.string().describe(\"Handle type (phone, mail, instagram, etc.).\"),\n value: z.string().describe(\"The handle value.\"),\n}).describe(\"Contact handle object returned in response.\");\nconst SuperchatUpdateContact_CustomAttributeResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier of the custom attribute.\"),\n name: z.string().describe(\"Name/key of the custom attribute.\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.array(z.string())]),\n}).describe(\"Custom attribute object returned in response.\");\nexport const SuperchatUpdateContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact (prefixed with 'ct_').\"),\n url: z.string().describe(\"Resource URL of the contact.\").nullable().optional(),\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").nullable().optional(),\n handles: z.array(SuperchatUpdateContact_ContactHandleResponseSchema).describe(\"List of contact handles associated with this contact.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"UTC datetime when the contact was created.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n updated_at: z.string().describe(\"UTC datetime when the contact was last updated.\").nullable().optional(),\n custom_attributes: z.array(SuperchatUpdateContact_CustomAttributeResponseSchema).describe(\"Custom attributes associated with the contact.\").nullable().optional(),\n}).describe(\"Response model for UpdateContact action.\");\n\nexport const superchatUpdateContact = action(\"SUPERCHAT_UPDATE_CONTACT\", {\n slug: \"superchat-update-contact\",\n name: \"Update Contact\",\n description: \"Update information for a specific contact in Superchat. Use this tool to modify a contact's name, gender, handles (phone/email), or custom attributes. Requires the contact_id (prefixed with 'ct_') which can be obtained from List Contacts or Create Contact. Examples: - Update first name: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"first_name\\\": \\\"Jane\\\"} - Update gender: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"gender\\\": \\\"female\\\"} - Update phone handle: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"handles\\\": [{\\\"type\\\": \\\"phone\\\", \\\"value\\\": \\\"+1234567890\\\"}]}\",\n input: SuperchatUpdateContactInput,\n output: SuperchatUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACvI,MAAMA,IAAAA,EAAE,KAAK,CAAC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AC,SAAS,0CAA0C;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,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/update-contact.d.ts
4
+ declare const SuperchatUpdateContactInput: z.ZodTypeAny;
5
+ declare const SuperchatUpdateContactOutput: z.ZodTypeAny;
6
+ declare const superchatUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatUpdateContact };
9
+ //# sourceMappingURL=update-contact.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAcU;AAAA,cAWzC,4BAAA,EAA8B,CAAA,CAAE,UAUU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-contact.d.ts
4
+ declare const SuperchatUpdateContactInput: z.ZodTypeAny;
5
+ declare const SuperchatUpdateContactOutput: z.ZodTypeAny;
6
+ declare const superchatUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { superchatUpdateContact };
9
+ //# sourceMappingURL=update-contact.d.mts.map