@keystrokehq/plain 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 (210) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-customer-to-group.cjs +56 -0
  7. package/dist/actions/add-customer-to-group.cjs.map +1 -0
  8. package/dist/actions/add-customer-to-group.d.cts +9 -0
  9. package/dist/actions/add-customer-to-group.d.cts.map +1 -0
  10. package/dist/actions/add-customer-to-group.d.mts +9 -0
  11. package/dist/actions/add-customer-to-group.d.mts.map +1 -0
  12. package/dist/actions/add-customer-to-group.mjs +55 -0
  13. package/dist/actions/add-customer-to-group.mjs.map +1 -0
  14. package/dist/actions/create-customer-group.cjs +45 -0
  15. package/dist/actions/create-customer-group.cjs.map +1 -0
  16. package/dist/actions/create-customer-group.d.cts +9 -0
  17. package/dist/actions/create-customer-group.d.cts.map +1 -0
  18. package/dist/actions/create-customer-group.d.mts +9 -0
  19. package/dist/actions/create-customer-group.d.mts.map +1 -0
  20. package/dist/actions/create-customer-group.mjs +44 -0
  21. package/dist/actions/create-customer-group.mjs.map +1 -0
  22. package/dist/actions/create-thread.cjs +52 -0
  23. package/dist/actions/create-thread.cjs.map +1 -0
  24. package/dist/actions/create-thread.d.cts +9 -0
  25. package/dist/actions/create-thread.d.cts.map +1 -0
  26. package/dist/actions/create-thread.d.mts +9 -0
  27. package/dist/actions/create-thread.d.mts.map +1 -0
  28. package/dist/actions/create-thread.mjs +51 -0
  29. package/dist/actions/create-thread.mjs.map +1 -0
  30. package/dist/actions/delete-customer.cjs +27 -0
  31. package/dist/actions/delete-customer.cjs.map +1 -0
  32. package/dist/actions/delete-customer.d.cts +9 -0
  33. package/dist/actions/delete-customer.d.cts.map +1 -0
  34. package/dist/actions/delete-customer.d.mts +9 -0
  35. package/dist/actions/delete-customer.d.mts.map +1 -0
  36. package/dist/actions/delete-customer.mjs +26 -0
  37. package/dist/actions/delete-customer.mjs.map +1 -0
  38. package/dist/actions/delete-user.cjs +27 -0
  39. package/dist/actions/delete-user.cjs.map +1 -0
  40. package/dist/actions/delete-user.d.cts +9 -0
  41. package/dist/actions/delete-user.d.cts.map +1 -0
  42. package/dist/actions/delete-user.d.mts +9 -0
  43. package/dist/actions/delete-user.d.mts.map +1 -0
  44. package/dist/actions/delete-user.mjs +26 -0
  45. package/dist/actions/delete-user.mjs.map +1 -0
  46. package/dist/actions/fetch-company.cjs +33 -0
  47. package/dist/actions/fetch-company.cjs.map +1 -0
  48. package/dist/actions/fetch-company.d.cts +9 -0
  49. package/dist/actions/fetch-company.d.cts.map +1 -0
  50. package/dist/actions/fetch-company.d.mts +9 -0
  51. package/dist/actions/fetch-company.d.mts.map +1 -0
  52. package/dist/actions/fetch-company.mjs +32 -0
  53. package/dist/actions/fetch-company.mjs.map +1 -0
  54. package/dist/actions/fetch-issues.cjs +34 -0
  55. package/dist/actions/fetch-issues.cjs.map +1 -0
  56. package/dist/actions/fetch-issues.d.cts +9 -0
  57. package/dist/actions/fetch-issues.d.cts.map +1 -0
  58. package/dist/actions/fetch-issues.d.mts +9 -0
  59. package/dist/actions/fetch-issues.d.mts.map +1 -0
  60. package/dist/actions/fetch-issues.mjs +33 -0
  61. package/dist/actions/fetch-issues.mjs.map +1 -0
  62. package/dist/actions/fetch-tier.cjs +31 -0
  63. package/dist/actions/fetch-tier.cjs.map +1 -0
  64. package/dist/actions/fetch-tier.d.cts +9 -0
  65. package/dist/actions/fetch-tier.d.cts.map +1 -0
  66. package/dist/actions/fetch-tier.d.mts +9 -0
  67. package/dist/actions/fetch-tier.d.mts.map +1 -0
  68. package/dist/actions/fetch-tier.mjs +30 -0
  69. package/dist/actions/fetch-tier.mjs.map +1 -0
  70. package/dist/actions/get-customer-by-email.cjs +31 -0
  71. package/dist/actions/get-customer-by-email.cjs.map +1 -0
  72. package/dist/actions/get-customer-by-email.d.cts +9 -0
  73. package/dist/actions/get-customer-by-email.d.cts.map +1 -0
  74. package/dist/actions/get-customer-by-email.d.mts +9 -0
  75. package/dist/actions/get-customer-by-email.d.mts.map +1 -0
  76. package/dist/actions/get-customer-by-email.mjs +30 -0
  77. package/dist/actions/get-customer-by-email.mjs.map +1 -0
  78. package/dist/actions/get-customer-by-id.cjs +22 -0
  79. package/dist/actions/get-customer-by-id.cjs.map +1 -0
  80. package/dist/actions/get-customer-by-id.d.cts +9 -0
  81. package/dist/actions/get-customer-by-id.d.cts.map +1 -0
  82. package/dist/actions/get-customer-by-id.d.mts +9 -0
  83. package/dist/actions/get-customer-by-id.d.mts.map +1 -0
  84. package/dist/actions/get-customer-by-id.mjs +19 -0
  85. package/dist/actions/get-customer-by-id.mjs.map +1 -0
  86. package/dist/actions/get-customers.cjs +55 -0
  87. package/dist/actions/get-customers.cjs.map +1 -0
  88. package/dist/actions/get-customers.d.cts +9 -0
  89. package/dist/actions/get-customers.d.cts.map +1 -0
  90. package/dist/actions/get-customers.d.mts +9 -0
  91. package/dist/actions/get-customers.d.mts.map +1 -0
  92. package/dist/actions/get-customers.mjs +54 -0
  93. package/dist/actions/get-customers.mjs.map +1 -0
  94. package/dist/actions/get-thread-by-id.cjs +62 -0
  95. package/dist/actions/get-thread-by-id.cjs.map +1 -0
  96. package/dist/actions/get-thread-by-id.d.cts +9 -0
  97. package/dist/actions/get-thread-by-id.d.cts.map +1 -0
  98. package/dist/actions/get-thread-by-id.d.mts +9 -0
  99. package/dist/actions/get-thread-by-id.d.mts.map +1 -0
  100. package/dist/actions/get-thread-by-id.mjs +61 -0
  101. package/dist/actions/get-thread-by-id.mjs.map +1 -0
  102. package/dist/actions/get-user-by-id.cjs +27 -0
  103. package/dist/actions/get-user-by-id.cjs.map +1 -0
  104. package/dist/actions/get-user-by-id.d.cts +9 -0
  105. package/dist/actions/get-user-by-id.d.cts.map +1 -0
  106. package/dist/actions/get-user-by-id.d.mts +9 -0
  107. package/dist/actions/get-user-by-id.d.mts.map +1 -0
  108. package/dist/actions/get-user-by-id.mjs +26 -0
  109. package/dist/actions/get-user-by-id.mjs.map +1 -0
  110. package/dist/actions/index.cjs +45 -0
  111. package/dist/actions/index.d.cts +23 -0
  112. package/dist/actions/index.d.mts +23 -0
  113. package/dist/actions/index.mjs +23 -0
  114. package/dist/actions/list-customer-groups.cjs +45 -0
  115. package/dist/actions/list-customer-groups.cjs.map +1 -0
  116. package/dist/actions/list-customer-groups.d.cts +9 -0
  117. package/dist/actions/list-customer-groups.d.cts.map +1 -0
  118. package/dist/actions/list-customer-groups.d.mts +9 -0
  119. package/dist/actions/list-customer-groups.d.mts.map +1 -0
  120. package/dist/actions/list-customer-groups.mjs +44 -0
  121. package/dist/actions/list-customer-groups.mjs.map +1 -0
  122. package/dist/actions/list-tiers.cjs +41 -0
  123. package/dist/actions/list-tiers.cjs.map +1 -0
  124. package/dist/actions/list-tiers.d.cts +9 -0
  125. package/dist/actions/list-tiers.d.cts.map +1 -0
  126. package/dist/actions/list-tiers.d.mts +9 -0
  127. package/dist/actions/list-tiers.d.mts.map +1 -0
  128. package/dist/actions/list-tiers.mjs +40 -0
  129. package/dist/actions/list-tiers.mjs.map +1 -0
  130. package/dist/actions/query-threads.cjs +43 -0
  131. package/dist/actions/query-threads.cjs.map +1 -0
  132. package/dist/actions/query-threads.d.cts +9 -0
  133. package/dist/actions/query-threads.d.cts.map +1 -0
  134. package/dist/actions/query-threads.d.mts +9 -0
  135. package/dist/actions/query-threads.d.mts.map +1 -0
  136. package/dist/actions/query-threads.mjs +42 -0
  137. package/dist/actions/query-threads.mjs.map +1 -0
  138. package/dist/actions/remove-customer-from-group.cjs +41 -0
  139. package/dist/actions/remove-customer-from-group.cjs.map +1 -0
  140. package/dist/actions/remove-customer-from-group.d.cts +9 -0
  141. package/dist/actions/remove-customer-from-group.d.cts.map +1 -0
  142. package/dist/actions/remove-customer-from-group.d.mts +9 -0
  143. package/dist/actions/remove-customer-from-group.d.mts.map +1 -0
  144. package/dist/actions/remove-customer-from-group.mjs +40 -0
  145. package/dist/actions/remove-customer-from-group.mjs.map +1 -0
  146. package/dist/actions/run-graphql-query.cjs +34 -0
  147. package/dist/actions/run-graphql-query.cjs.map +1 -0
  148. package/dist/actions/run-graphql-query.d.cts +9 -0
  149. package/dist/actions/run-graphql-query.d.cts.map +1 -0
  150. package/dist/actions/run-graphql-query.d.mts +9 -0
  151. package/dist/actions/run-graphql-query.d.mts.map +1 -0
  152. package/dist/actions/run-graphql-query.mjs +33 -0
  153. package/dist/actions/run-graphql-query.mjs.map +1 -0
  154. package/dist/actions/send-message.cjs +37 -0
  155. package/dist/actions/send-message.cjs.map +1 -0
  156. package/dist/actions/send-message.d.cts +9 -0
  157. package/dist/actions/send-message.d.cts.map +1 -0
  158. package/dist/actions/send-message.d.mts +9 -0
  159. package/dist/actions/send-message.d.mts.map +1 -0
  160. package/dist/actions/send-message.mjs +36 -0
  161. package/dist/actions/send-message.mjs.map +1 -0
  162. package/dist/actions/update-company.cjs +45 -0
  163. package/dist/actions/update-company.cjs.map +1 -0
  164. package/dist/actions/update-company.d.cts +9 -0
  165. package/dist/actions/update-company.d.cts.map +1 -0
  166. package/dist/actions/update-company.d.mts +9 -0
  167. package/dist/actions/update-company.d.mts.map +1 -0
  168. package/dist/actions/update-company.mjs +44 -0
  169. package/dist/actions/update-company.mjs.map +1 -0
  170. package/dist/actions/update-thread.cjs +39 -0
  171. package/dist/actions/update-thread.cjs.map +1 -0
  172. package/dist/actions/update-thread.d.cts +9 -0
  173. package/dist/actions/update-thread.d.cts.map +1 -0
  174. package/dist/actions/update-thread.d.mts +9 -0
  175. package/dist/actions/update-thread.d.mts.map +1 -0
  176. package/dist/actions/update-thread.mjs +38 -0
  177. package/dist/actions/update-thread.mjs.map +1 -0
  178. package/dist/actions/upsert-customer.cjs +82 -0
  179. package/dist/actions/upsert-customer.cjs.map +1 -0
  180. package/dist/actions/upsert-customer.d.cts +9 -0
  181. package/dist/actions/upsert-customer.d.cts.map +1 -0
  182. package/dist/actions/upsert-customer.d.mts +9 -0
  183. package/dist/actions/upsert-customer.d.mts.map +1 -0
  184. package/dist/actions/upsert-customer.mjs +81 -0
  185. package/dist/actions/upsert-customer.mjs.map +1 -0
  186. package/dist/app.cjs +9 -0
  187. package/dist/app.cjs.map +1 -0
  188. package/dist/app.d.cts +5 -0
  189. package/dist/app.d.cts.map +1 -0
  190. package/dist/app.d.mts +5 -0
  191. package/dist/app.d.mts.map +1 -0
  192. package/dist/app.mjs +10 -0
  193. package/dist/app.mjs.map +1 -0
  194. package/dist/catalog.cjs +15 -0
  195. package/dist/catalog.cjs.map +1 -0
  196. package/dist/catalog.d.cts +14 -0
  197. package/dist/catalog.d.cts.map +1 -0
  198. package/dist/catalog.d.mts +14 -0
  199. package/dist/catalog.d.mts.map +1 -0
  200. package/dist/catalog.mjs +15 -0
  201. package/dist/catalog.mjs.map +1 -0
  202. package/dist/execute.cjs +18 -0
  203. package/dist/execute.cjs.map +1 -0
  204. package/dist/execute.mjs +18 -0
  205. package/dist/execute.mjs.map +1 -0
  206. package/dist/index.cjs +50 -0
  207. package/dist/index.d.cts +25 -0
  208. package/dist/index.d.mts +25 -0
  209. package/dist/index.mjs +26 -0
  210. package/package.json +49 -0
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-customer-by-email.ts
4
+ const PlainGetCustomerByEmailInput = z.object({ email: z.string().describe("Email address of the customer to fetch") }).describe("Request input for fetching a customer by email in Plain.");
5
+ const PlainGetCustomerByEmail_EmailInfoSchema = z.object({
6
+ email: z.string().describe("Email address"),
7
+ isVerified: z.boolean().describe("Whether the email is verified")
8
+ });
9
+ const PlainGetCustomerByEmail_TimestampSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format") });
10
+ const PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({
11
+ id: z.string().describe("Unique identifier of the customer"),
12
+ email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),
13
+ fullName: z.string().describe("Full name of the customer"),
14
+ createdAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
15
+ shortName: z.string().describe("Short name (typically first name)").nullable().optional(),
16
+ updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
17
+ externalId: z.string().describe("External identifier from your system").nullable().optional()
18
+ }).describe("Customer details returned by customerByEmail query.");
19
+ const PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({ customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional() });
20
+ const plainGetCustomerByEmail = action("PLAIN_GET_CUSTOMER_BY_EMAIL", {
21
+ slug: "plain-get-customer-by-email",
22
+ name: "Get Customer By Email",
23
+ description: "Fetch customer details by email address. Returns customer information if found, or null if no customer exists with that email.",
24
+ input: PlainGetCustomerByEmailInput,
25
+ output: z.object({ data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable() }).describe("Response output containing customer details from Plain.")
26
+ });
27
+ //#endregion
28
+ export { plainGetCustomerByEmail };
29
+
30
+ //# sourceMappingURL=get-customer-by-email.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customer-by-email.mjs","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByEmailInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer to fetch\"),\n}).describe(\"Request input for fetching a customer by email in Plain.\");\nconst PlainGetCustomerByEmail_EmailInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n});\nconst PlainGetCustomerByEmail_TimestampSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\"),\n});\nconst PlainGetCustomerByEmail_CustomerByEmailSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer\"),\n email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n shortName: z.string().describe(\"Short name (typically first name)\").nullable().optional(),\n updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n externalId: z.string().describe(\"External identifier from your system\").nullable().optional(),\n}).describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema: z.ZodTypeAny = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n});\nexport const PlainGetCustomerByEmailOutput: z.ZodTypeAny = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).describe(\"Response output containing customer details from Plain.\");\n\nexport const plainGetCustomerByEmail = action(\"PLAIN_GET_CUSTOMER_BY_EMAIL\", {\n slug: \"plain-get-customer-by-email\",\n name: \"Get Customer By Email\",\n description: \"Fetch customer details by email address. Returns customer information if found, or null if no customer exists with that email.\",\n input: PlainGetCustomerByEmailInput,\n output: PlainGetCustomerByEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAAwD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;AAClE,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC7D,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,OAAO,wCAAwC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACzD,WAAW,wCAAwC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,wCAAwC,SAAS;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uDAAqE,EAAE,OAAO,EAClF,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC;AAKD,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-customer-by-id.ts
4
+ const PlainGetCustomerByIdInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the customer to retrieve.") }).describe("Request input for fetching a customer by their ID.");
5
+ const PlainGetCustomerByIdOutput = zod.z.object({
6
+ id: zod.z.string().describe("Plain's internal customer ID."),
7
+ email: zod.z.string().describe("The email address of the customer."),
8
+ full_name: zod.z.string().describe("The full name of the customer."),
9
+ created_at: zod.z.string().describe("ISO-8601 timestamp when the customer was created."),
10
+ updated_at: zod.z.string().describe("ISO-8601 timestamp when the customer was last updated.")
11
+ }).describe("Response schema for customer details.");
12
+ const plainGetCustomerById = require_action.action("PLAIN_GET_CUSTOMER_BY_ID", {
13
+ slug: "plain-get-customer-by-id",
14
+ name: "Get Customer By ID",
15
+ description: "Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.",
16
+ input: PlainGetCustomerByIdInput,
17
+ output: PlainGetCustomerByIdOutput
18
+ });
19
+ //#endregion
20
+ exports.plainGetCustomerById = plainGetCustomerById;
21
+
22
+ //# sourceMappingURL=get-customer-by-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customer-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\"),\n email: z.string().describe(\"The email address of the customer.\"),\n full_name: z.string().describe(\"The full name of the customer.\"),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\"),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\"),\n}).describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC1F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-customer-by-id.d.ts
4
+ declare const PlainGetCustomerByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetCustomerByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetCustomerById };
9
+ //# sourceMappingURL=get-customer-by-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customer-by-id.d.cts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cACpD,0BAAA,EAA4B,CAAA,CAAE,UAMS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-customer-by-id.d.ts
4
+ declare const PlainGetCustomerByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetCustomerByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetCustomerById };
9
+ //# sourceMappingURL=get-customer-by-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customer-by-id.d.mts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cACpD,0BAAA,EAA4B,CAAA,CAAE,UAMS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const plainGetCustomerById = action("PLAIN_GET_CUSTOMER_BY_ID", {
4
+ slug: "plain-get-customer-by-id",
5
+ name: "Get Customer By ID",
6
+ description: "Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.",
7
+ input: z.object({ id: z.string().describe("The unique identifier of the customer to retrieve.") }).describe("Request input for fetching a customer by their ID."),
8
+ output: z.object({
9
+ id: z.string().describe("Plain's internal customer ID."),
10
+ email: z.string().describe("The email address of the customer."),
11
+ full_name: z.string().describe("The full name of the customer."),
12
+ created_at: z.string().describe("ISO-8601 timestamp when the customer was created."),
13
+ updated_at: z.string().describe("ISO-8601 timestamp when the customer was last updated.")
14
+ }).describe("Response schema for customer details.")
15
+ });
16
+ //#endregion
17
+ export { plainGetCustomerById };
18
+
19
+ //# sourceMappingURL=get-customer-by-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customer-by-id.mjs","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\"),\n email: z.string().describe(\"The email address of the customer.\"),\n full_name: z.string().describe(\"The full name of the customer.\"),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\"),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\"),\n}).describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfqD,EAAE,OAAO,EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC1F,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -0,0 +1,55 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-customers.ts
4
+ const PlainGetCustomersInput = zod.z.object({
5
+ last: zod.z.number().int().describe("Number of customers to fetch before the 'before' cursor. Must be ≥ 1.").optional(),
6
+ after: zod.z.string().describe("Cursor for forward pagination. Use with 'first'.").optional(),
7
+ first: zod.z.number().int().describe("Number of customers to fetch after the 'after' cursor. Must be ≥ 1.").optional(),
8
+ before: zod.z.string().describe("Cursor for backward pagination. Use with 'last'.").optional(),
9
+ sortBy: zod.z.object({
10
+ field: zod.z.string().describe("Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT')."),
11
+ direction: zod.z.enum(["ASC", "DESC"]).describe("Sort order: ASC for ascending, DESC for descending.")
12
+ }).describe("Sorting instructions for the customers list.").optional(),
13
+ filters: zod.z.object({
14
+ isMarkedAsSpam: zod.z.boolean().describe("If set, only returns customers whose spam status matches this flag.").optional(),
15
+ customerGroupIds: zod.z.array(zod.z.string()).describe("Filters customers to those with at least one of the given customer group IDs.").optional(),
16
+ customerGroupKeys: zod.z.array(zod.z.string()).describe("Filters customers to those with at least one of the given customer group keys.").optional()
17
+ }).describe("Filters to apply when fetching customers.").optional()
18
+ }).describe("Request parameters for fetching a paginated, filtered, and sorted list of customers.");
19
+ const PlainGetCustomers_CustomerEmailSchema = zod.z.object({
20
+ email: zod.z.string().describe("Customer's email address."),
21
+ isVerified: zod.z.boolean().describe("Whether the email is verified.")
22
+ });
23
+ const PlainGetCustomers_MarkedAsSpamAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp when the customer was marked as spam.") });
24
+ const PlainGetCustomers_CustomerNodeSchema = zod.z.object({
25
+ id: zod.z.string(),
26
+ email: PlainGetCustomers_CustomerEmailSchema.nullable(),
27
+ fullName: zod.z.string(),
28
+ shortName: zod.z.string().nullable().optional(),
29
+ externalId: zod.z.string().nullable().optional(),
30
+ markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional()
31
+ });
32
+ const PlainGetCustomers_CustomersEdgeSchema = zod.z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() });
33
+ const PlainGetCustomers_PageInfoSchema = zod.z.object({
34
+ endCursor: zod.z.string().nullable().optional(),
35
+ hasNextPage: zod.z.boolean(),
36
+ startCursor: zod.z.string().nullable().optional(),
37
+ hasPreviousPage: zod.z.boolean()
38
+ });
39
+ const PlainGetCustomers_CustomersConnectionSchema = zod.z.object({
40
+ edges: zod.z.array(PlainGetCustomers_CustomersEdgeSchema),
41
+ pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),
42
+ totalCount: zod.z.number().int()
43
+ });
44
+ const PlainGetCustomersOutput = zod.z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() });
45
+ const plainGetCustomers = require_action.action("PLAIN_GET_CUSTOMERS", {
46
+ slug: "plain-get-customers",
47
+ name: "Get Customers",
48
+ description: "Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.",
49
+ input: PlainGetCustomersInput,
50
+ output: PlainGetCustomersOutput
51
+ });
52
+ //#endregion
53
+ exports.plainGetCustomers = plainGetCustomers;
54
+
55
+ //# sourceMappingURL=get-customers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customers.cjs","names":["z","action"],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email is verified.\"),\n});\nconst PlainGetCustomers_MarkedAsSpamAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\"),\n});\nconst PlainGetCustomers_CustomerNodeSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n});\nconst PlainGetCustomers_CustomersEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n});\nconst PlainGetCustomers_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean(),\n});\nconst PlainGetCustomers_CustomersConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int(),\n});\nexport const PlainGetCustomersOutput: z.ZodTypeAny = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n});\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAA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WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,gBAAgB,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO,EACnE,MAAM,qCAAqC,SAAS,EACtD,CAAC;AACD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,aAAaA,IAAAA,EAAE,QAAQ;CACvB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiBA,IAAAA,EAAE,QAAQ;AAC7B,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;AAC7B,CAAC;AACD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,WAAW,4CAA4C,SAAS,EAClE,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-customers.d.ts
4
+ declare const PlainGetCustomersInput: z.ZodTypeAny;
5
+ declare const PlainGetCustomersOutput: z.ZodTypeAny;
6
+ declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetCustomers };
9
+ //# sourceMappingURL=get-customers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customers.d.cts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAc4D;AAAA,cA8BtF,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-customers.d.ts
4
+ declare const PlainGetCustomersInput: z.ZodTypeAny;
5
+ declare const PlainGetCustomersOutput: z.ZodTypeAny;
6
+ declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetCustomers };
9
+ //# sourceMappingURL=get-customers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAc4D;AAAA,cA8BtF,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,54 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-customers.ts
4
+ const PlainGetCustomersInput = z.object({
5
+ last: z.number().int().describe("Number of customers to fetch before the 'before' cursor. Must be ≥ 1.").optional(),
6
+ after: z.string().describe("Cursor for forward pagination. Use with 'first'.").optional(),
7
+ first: z.number().int().describe("Number of customers to fetch after the 'after' cursor. Must be ≥ 1.").optional(),
8
+ before: z.string().describe("Cursor for backward pagination. Use with 'last'.").optional(),
9
+ sortBy: z.object({
10
+ field: z.string().describe("Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT')."),
11
+ direction: z.enum(["ASC", "DESC"]).describe("Sort order: ASC for ascending, DESC for descending.")
12
+ }).describe("Sorting instructions for the customers list.").optional(),
13
+ filters: z.object({
14
+ isMarkedAsSpam: z.boolean().describe("If set, only returns customers whose spam status matches this flag.").optional(),
15
+ customerGroupIds: z.array(z.string()).describe("Filters customers to those with at least one of the given customer group IDs.").optional(),
16
+ customerGroupKeys: z.array(z.string()).describe("Filters customers to those with at least one of the given customer group keys.").optional()
17
+ }).describe("Filters to apply when fetching customers.").optional()
18
+ }).describe("Request parameters for fetching a paginated, filtered, and sorted list of customers.");
19
+ const PlainGetCustomers_CustomerEmailSchema = z.object({
20
+ email: z.string().describe("Customer's email address."),
21
+ isVerified: z.boolean().describe("Whether the email is verified.")
22
+ });
23
+ const PlainGetCustomers_MarkedAsSpamAtSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp when the customer was marked as spam.") });
24
+ const PlainGetCustomers_CustomerNodeSchema = z.object({
25
+ id: z.string(),
26
+ email: PlainGetCustomers_CustomerEmailSchema.nullable(),
27
+ fullName: z.string(),
28
+ shortName: z.string().nullable().optional(),
29
+ externalId: z.string().nullable().optional(),
30
+ markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional()
31
+ });
32
+ const PlainGetCustomers_CustomersEdgeSchema = z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() });
33
+ const PlainGetCustomers_PageInfoSchema = z.object({
34
+ endCursor: z.string().nullable().optional(),
35
+ hasNextPage: z.boolean(),
36
+ startCursor: z.string().nullable().optional(),
37
+ hasPreviousPage: z.boolean()
38
+ });
39
+ const PlainGetCustomers_CustomersConnectionSchema = z.object({
40
+ edges: z.array(PlainGetCustomers_CustomersEdgeSchema),
41
+ pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),
42
+ totalCount: z.number().int()
43
+ });
44
+ const plainGetCustomers = action("PLAIN_GET_CUSTOMERS", {
45
+ slug: "plain-get-customers",
46
+ name: "Get Customers",
47
+ description: "Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.",
48
+ input: PlainGetCustomersInput,
49
+ output: z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() })
50
+ });
51
+ //#endregion
52
+ export { plainGetCustomers };
53
+
54
+ //# sourceMappingURL=get-customers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email is verified.\"),\n});\nconst PlainGetCustomers_MarkedAsSpamAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\"),\n});\nconst PlainGetCustomers_CustomerNodeSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n});\nconst PlainGetCustomers_CustomersEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n});\nconst PlainGetCustomers_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean(),\n});\nconst PlainGetCustomers_CustomersConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int(),\n});\nexport const PlainGetCustomersOutput: z.ZodTypeAny = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n});\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CA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AAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,aAAa,EAAE,QAAQ;CACvB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiB,EAAE,QAAQ;AAC7B,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,OAAO,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI;AAC7B,CAAC;AAKD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,WAAW,4CAA4C,SAAS,EAClE,CAOU;AACV,CAAC"}
@@ -0,0 +1,62 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-thread-by-id.ts
4
+ const PlainGetThreadByIdInput = zod.z.object({ id: zod.z.string().describe("Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.") }).describe("Request model for fetching a thread by its ID.");
5
+ const PlainGetThreadById_LabelTypeSchema = zod.z.object({
6
+ id: zod.z.string().describe("Label type unique identifier"),
7
+ name: zod.z.string().describe("Label type name")
8
+ });
9
+ const PlainGetThreadById_LabelSchema = zod.z.object({
10
+ id: zod.z.string().describe("Label unique identifier"),
11
+ labelType: PlainGetThreadById_LabelTypeSchema.nullable()
12
+ });
13
+ const PlainGetThreadById_DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp") });
14
+ const PlainGetThreadById_CustomerEmailSchema = zod.z.object({
15
+ email: zod.z.string().describe("Email address of the customer"),
16
+ isVerified: zod.z.boolean().describe("Whether the email is verified"),
17
+ verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional()
18
+ });
19
+ const PlainGetThreadById_CustomerSchema = zod.z.object({
20
+ id: zod.z.string().describe("Customer unique identifier"),
21
+ email: PlainGetThreadById_CustomerEmailSchema.nullable(),
22
+ status: zod.z.string().describe("Customer status"),
23
+ fullName: zod.z.string().describe("Full name of the customer"),
24
+ createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
25
+ shortName: zod.z.string().describe("Short/display name of the customer").nullable().optional(),
26
+ updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
27
+ externalId: zod.z.string().describe("External identifier for the customer").nullable().optional()
28
+ });
29
+ const PlainGetThreadById_UserSchema = zod.z.object({
30
+ id: zod.z.string().describe("User unique identifier"),
31
+ email: zod.z.string().describe("Email address of the user").nullable().optional(),
32
+ fullName: zod.z.string().describe("Full name of the user").nullable().optional()
33
+ });
34
+ const PlainGetThreadById_ThreadSchema = zod.z.object({
35
+ id: zod.z.string().describe("Thread unique identifier"),
36
+ ref: zod.z.string().describe("Human-readable thread reference"),
37
+ title: zod.z.string().describe("Title of the thread").nullable().optional(),
38
+ labels: zod.z.array(PlainGetThreadById_LabelSchema).describe("Labels assigned to the thread").nullable().optional(),
39
+ status: zod.z.string().describe("Current status of the thread"),
40
+ customer: PlainGetThreadById_CustomerSchema.nullable(),
41
+ priority: zod.z.number().int().describe("Priority level of the thread"),
42
+ createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
43
+ updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
44
+ assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),
45
+ assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),
46
+ externalId: zod.z.string().describe("External identifier for the thread").nullable().optional(),
47
+ previewText: zod.z.string().describe("Preview text of the thread").nullable().optional(),
48
+ statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable()
49
+ });
50
+ const PlainGetThreadById_GetThreadByIdDataSchema = zod.z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() });
51
+ const PlainGetThreadByIdOutput = zod.z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).describe("Response model for fetching a thread by ID.");
52
+ const plainGetThreadById = require_action.action("PLAIN_GET_THREAD_BY_ID", {
53
+ slug: "plain-get-thread-by-id",
54
+ name: "Get Thread By ID",
55
+ description: "Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.",
56
+ input: PlainGetThreadByIdInput,
57
+ output: PlainGetThreadByIdOutput
58
+ });
59
+ //#endregion
60
+ exports.plainGetThreadById = plainGetThreadById;
61
+
62
+ //# sourceMappingURL=get-thread-by-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label type unique identifier\"),\n name: z.string().describe(\"Label type name\"),\n});\nconst PlainGetThreadById_LabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n});\nconst PlainGetThreadById_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\"),\n});\nconst PlainGetThreadById_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n});\nconst PlainGetThreadById_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\"),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n});\nconst PlainGetThreadById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User unique identifier\"),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n});\nconst PlainGetThreadById_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n ref: z.string().describe(\"Human-readable thread reference\"),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n});\nconst PlainGetThreadById_GetThreadByIdDataSchema: z.ZodTypeAny = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n});\nexport const PlainGetThreadByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if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SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-thread-by-id.d.ts
4
+ declare const PlainGetThreadByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetThreadByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetThreadById };
9
+ //# sourceMappingURL=get-thread-by-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEqB;AAAA,cAmDhD,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-thread-by-id.d.ts
4
+ declare const PlainGetThreadByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetThreadByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetThreadById };
9
+ //# sourceMappingURL=get-thread-by-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEqB;AAAA,cAmDhD,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,61 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-thread-by-id.ts
4
+ const PlainGetThreadByIdInput = z.object({ id: z.string().describe("Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.") }).describe("Request model for fetching a thread by its ID.");
5
+ const PlainGetThreadById_LabelTypeSchema = z.object({
6
+ id: z.string().describe("Label type unique identifier"),
7
+ name: z.string().describe("Label type name")
8
+ });
9
+ const PlainGetThreadById_LabelSchema = z.object({
10
+ id: z.string().describe("Label unique identifier"),
11
+ labelType: PlainGetThreadById_LabelTypeSchema.nullable()
12
+ });
13
+ const PlainGetThreadById_DateTimeSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp") });
14
+ const PlainGetThreadById_CustomerEmailSchema = z.object({
15
+ email: z.string().describe("Email address of the customer"),
16
+ isVerified: z.boolean().describe("Whether the email is verified"),
17
+ verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional()
18
+ });
19
+ const PlainGetThreadById_CustomerSchema = z.object({
20
+ id: z.string().describe("Customer unique identifier"),
21
+ email: PlainGetThreadById_CustomerEmailSchema.nullable(),
22
+ status: z.string().describe("Customer status"),
23
+ fullName: z.string().describe("Full name of the customer"),
24
+ createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
25
+ shortName: z.string().describe("Short/display name of the customer").nullable().optional(),
26
+ updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
27
+ externalId: z.string().describe("External identifier for the customer").nullable().optional()
28
+ });
29
+ const PlainGetThreadById_UserSchema = z.object({
30
+ id: z.string().describe("User unique identifier"),
31
+ email: z.string().describe("Email address of the user").nullable().optional(),
32
+ fullName: z.string().describe("Full name of the user").nullable().optional()
33
+ });
34
+ const PlainGetThreadById_ThreadSchema = z.object({
35
+ id: z.string().describe("Thread unique identifier"),
36
+ ref: z.string().describe("Human-readable thread reference"),
37
+ title: z.string().describe("Title of the thread").nullable().optional(),
38
+ labels: z.array(PlainGetThreadById_LabelSchema).describe("Labels assigned to the thread").nullable().optional(),
39
+ status: z.string().describe("Current status of the thread"),
40
+ customer: PlainGetThreadById_CustomerSchema.nullable(),
41
+ priority: z.number().int().describe("Priority level of the thread"),
42
+ createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
43
+ updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
44
+ assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),
45
+ assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),
46
+ externalId: z.string().describe("External identifier for the thread").nullable().optional(),
47
+ previewText: z.string().describe("Preview text of the thread").nullable().optional(),
48
+ statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable()
49
+ });
50
+ const PlainGetThreadById_GetThreadByIdDataSchema = z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() });
51
+ const plainGetThreadById = action("PLAIN_GET_THREAD_BY_ID", {
52
+ slug: "plain-get-thread-by-id",
53
+ name: "Get Thread By ID",
54
+ description: "Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.",
55
+ input: PlainGetThreadByIdInput,
56
+ output: z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).describe("Response model for fetching a thread by ID.")
57
+ });
58
+ //#endregion
59
+ export { plainGetThreadById };
60
+
61
+ //# sourceMappingURL=get-thread-by-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label type unique identifier\"),\n name: z.string().describe(\"Label type name\"),\n});\nconst PlainGetThreadById_LabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n});\nconst PlainGetThreadById_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\"),\n});\nconst PlainGetThreadById_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n});\nconst PlainGetThreadById_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\"),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n});\nconst PlainGetThreadById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User unique identifier\"),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n});\nconst PlainGetThreadById_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n ref: z.string().describe(\"Human-readable thread reference\"),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n});\nconst PlainGetThreadById_GetThreadByIdDataSchema: z.ZodTypeAny = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n});\nexport const PlainGetThreadByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAmD,EAAE,OAAO;C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AC7E,CAAC;AACD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,UAAU,kCAAkC,SAAS;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAClE,WAAW,kCAAkC,SAAS;CACtD,WAAW,kCAAkC,SAAS;CACtD,YAAY,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,8BAA8B,SAAS,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO,EACxE,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC;AAKD,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-user-by-id.ts
4
+ const PlainGetUserByIdInput = zod.z.object({ user_id: zod.z.string().describe("Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)") }).describe("Request input for fetching a user by their unique identifier.");
5
+ const PlainGetUserById_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp when the user's status last changed in ISO 8601 format") });
6
+ const PlainGetUserById_UserSchema = zod.z.object({
7
+ id: zod.z.string().describe("Unique identifier of the user"),
8
+ email: zod.z.string().describe("Email address of the user"),
9
+ status: zod.z.string().describe("Current status of the user"),
10
+ fullName: zod.z.string().describe("Full name of the user"),
11
+ avatarUrl: zod.z.string().describe("Avatar URL of the user, if available").nullable().optional(),
12
+ publicName: zod.z.string().describe("Display name or short name of the user"),
13
+ statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable()
14
+ }).describe("User details returned by the getUser query.");
15
+ const PlainGetUserById_GetUserByIdDataSchema = zod.z.object({ user: PlainGetUserById_UserSchema.nullable().optional() });
16
+ const PlainGetUserByIdOutput = zod.z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).describe("Response output containing user details from Plain.");
17
+ const plainGetUserById = require_action.action("PLAIN_GET_USER_BY_ID", {
18
+ slug: "plain-get-user-by-id",
19
+ name: "Get User By ID",
20
+ description: "Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.",
21
+ input: PlainGetUserByIdInput,
22
+ output: PlainGetUserByIdOutput
23
+ });
24
+ //#endregion
25
+ exports.plainGetUserById = plainGetUserById;
26
+
27
+ //# sourceMappingURL=get-user-by-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\"),\n});\nconst PlainGetUserById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\"),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema: z.ZodTypeAny = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n});\nexport const PlainGetUserByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAuDA,IAAAA,EAAE,OAAO,EACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACjG,CAAC;AACD,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO,EACpE,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,mBAAmBC,eAAAA,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-by-id.d.ts
4
+ declare const PlainGetUserByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetUserByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetUserById };
9
+ //# sourceMappingURL=get-user-by-id.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEsC;AAAA,cAgB/D,sBAAA,EAAwB,CAAA,CAAE,UAE2B;AAAA,cAErD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-by-id.d.ts
4
+ declare const PlainGetUserByIdInput: z.ZodTypeAny;
5
+ declare const PlainGetUserByIdOutput: z.ZodTypeAny;
6
+ declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plainGetUserById };
9
+ //# sourceMappingURL=get-user-by-id.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEsC;AAAA,cAgB/D,sBAAA,EAAwB,CAAA,CAAE,UAE2B;AAAA,cAErD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-user-by-id.ts
4
+ const PlainGetUserByIdInput = z.object({ user_id: z.string().describe("Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)") }).describe("Request input for fetching a user by their unique identifier.");
5
+ const PlainGetUserById_StatusChangedAtSchema = z.object({ iso8601: z.string().describe("Timestamp when the user's status last changed in ISO 8601 format") });
6
+ const PlainGetUserById_UserSchema = z.object({
7
+ id: z.string().describe("Unique identifier of the user"),
8
+ email: z.string().describe("Email address of the user"),
9
+ status: z.string().describe("Current status of the user"),
10
+ fullName: z.string().describe("Full name of the user"),
11
+ avatarUrl: z.string().describe("Avatar URL of the user, if available").nullable().optional(),
12
+ publicName: z.string().describe("Display name or short name of the user"),
13
+ statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable()
14
+ }).describe("User details returned by the getUser query.");
15
+ const PlainGetUserById_GetUserByIdDataSchema = z.object({ user: PlainGetUserById_UserSchema.nullable().optional() });
16
+ const plainGetUserById = action("PLAIN_GET_USER_BY_ID", {
17
+ slug: "plain-get-user-by-id",
18
+ name: "Get User By ID",
19
+ description: "Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.",
20
+ input: PlainGetUserByIdInput,
21
+ output: z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).describe("Response output containing user details from Plain.")
22
+ });
23
+ //#endregion
24
+ export { plainGetUserById };
25
+
26
+ //# sourceMappingURL=get-user-by-id.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\"),\n});\nconst PlainGetUserById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\"),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema: z.ZodTypeAny = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n});\nexport const PlainGetUserByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAuD,EAAE,OAAO,EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACjG,CAAC;AACD,MAAM,8BAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,yCAAuD,EAAE,OAAO,EACpE,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC;AAKD,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}