@keystrokehq/plain 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-customer-to-group.cjs +1 -0
  4. package/dist/actions/add-customer-to-group.cjs.map +1 -1
  5. package/dist/actions/add-customer-to-group.d.cts +3 -21
  6. package/dist/actions/add-customer-to-group.d.cts.map +1 -1
  7. package/dist/actions/add-customer-to-group.d.mts +3 -21
  8. package/dist/actions/add-customer-to-group.d.mts.map +1 -1
  9. package/dist/actions/add-customer-to-group.mjs +1 -0
  10. package/dist/actions/add-customer-to-group.mjs.map +1 -1
  11. package/dist/actions/create-customer-group.cjs +1 -0
  12. package/dist/actions/create-customer-group.cjs.map +1 -1
  13. package/dist/actions/create-customer-group.d.cts +3 -18
  14. package/dist/actions/create-customer-group.d.cts.map +1 -1
  15. package/dist/actions/create-customer-group.d.mts +3 -18
  16. package/dist/actions/create-customer-group.d.mts.map +1 -1
  17. package/dist/actions/create-customer-group.mjs +1 -0
  18. package/dist/actions/create-customer-group.mjs.map +1 -1
  19. package/dist/actions/create-thread.cjs +1 -0
  20. package/dist/actions/create-thread.cjs.map +1 -1
  21. package/dist/actions/create-thread.d.cts +3 -30
  22. package/dist/actions/create-thread.d.cts.map +1 -1
  23. package/dist/actions/create-thread.d.mts +3 -30
  24. package/dist/actions/create-thread.d.mts.map +1 -1
  25. package/dist/actions/create-thread.mjs +1 -0
  26. package/dist/actions/create-thread.mjs.map +1 -1
  27. package/dist/actions/delete-customer.cjs +1 -0
  28. package/dist/actions/delete-customer.cjs.map +1 -1
  29. package/dist/actions/delete-customer.d.cts +3 -15
  30. package/dist/actions/delete-customer.d.cts.map +1 -1
  31. package/dist/actions/delete-customer.d.mts +3 -15
  32. package/dist/actions/delete-customer.d.mts.map +1 -1
  33. package/dist/actions/delete-customer.mjs +1 -0
  34. package/dist/actions/delete-customer.mjs.map +1 -1
  35. package/dist/actions/delete-user.cjs +1 -0
  36. package/dist/actions/delete-user.cjs.map +1 -1
  37. package/dist/actions/delete-user.d.cts +3 -15
  38. package/dist/actions/delete-user.d.cts.map +1 -1
  39. package/dist/actions/delete-user.d.mts +3 -15
  40. package/dist/actions/delete-user.d.mts.map +1 -1
  41. package/dist/actions/delete-user.mjs +1 -0
  42. package/dist/actions/delete-user.mjs.map +1 -1
  43. package/dist/actions/fetch-company.cjs +1 -0
  44. package/dist/actions/fetch-company.cjs.map +1 -1
  45. package/dist/actions/fetch-company.d.cts +3 -15
  46. package/dist/actions/fetch-company.d.cts.map +1 -1
  47. package/dist/actions/fetch-company.d.mts +3 -15
  48. package/dist/actions/fetch-company.d.mts.map +1 -1
  49. package/dist/actions/fetch-company.mjs +1 -0
  50. package/dist/actions/fetch-company.mjs.map +1 -1
  51. package/dist/actions/fetch-issues.cjs +1 -0
  52. package/dist/actions/fetch-issues.cjs.map +1 -1
  53. package/dist/actions/fetch-issues.d.cts +3 -17
  54. package/dist/actions/fetch-issues.d.cts.map +1 -1
  55. package/dist/actions/fetch-issues.d.mts +3 -17
  56. package/dist/actions/fetch-issues.d.mts.map +1 -1
  57. package/dist/actions/fetch-issues.mjs +1 -0
  58. package/dist/actions/fetch-issues.mjs.map +1 -1
  59. package/dist/actions/fetch-tier.cjs +1 -0
  60. package/dist/actions/fetch-tier.cjs.map +1 -1
  61. package/dist/actions/fetch-tier.d.cts +3 -15
  62. package/dist/actions/fetch-tier.d.cts.map +1 -1
  63. package/dist/actions/fetch-tier.d.mts +3 -15
  64. package/dist/actions/fetch-tier.d.mts.map +1 -1
  65. package/dist/actions/fetch-tier.mjs +1 -0
  66. package/dist/actions/fetch-tier.mjs.map +1 -1
  67. package/dist/actions/get-customer-by-email.cjs +1 -0
  68. package/dist/actions/get-customer-by-email.cjs.map +1 -1
  69. package/dist/actions/get-customer-by-email.d.cts +3 -15
  70. package/dist/actions/get-customer-by-email.d.cts.map +1 -1
  71. package/dist/actions/get-customer-by-email.d.mts +3 -15
  72. package/dist/actions/get-customer-by-email.d.mts.map +1 -1
  73. package/dist/actions/get-customer-by-email.mjs +1 -0
  74. package/dist/actions/get-customer-by-email.mjs.map +1 -1
  75. package/dist/actions/get-customer-by-id.cjs +1 -0
  76. package/dist/actions/get-customer-by-id.cjs.map +1 -1
  77. package/dist/actions/get-customer-by-id.d.cts +3 -15
  78. package/dist/actions/get-customer-by-id.d.cts.map +1 -1
  79. package/dist/actions/get-customer-by-id.d.mts +3 -15
  80. package/dist/actions/get-customer-by-id.d.mts.map +1 -1
  81. package/dist/actions/get-customer-by-id.mjs +1 -0
  82. package/dist/actions/get-customer-by-id.mjs.map +1 -1
  83. package/dist/actions/get-customers.cjs +1 -0
  84. package/dist/actions/get-customers.cjs.map +1 -1
  85. package/dist/actions/get-customers.d.cts +3 -27
  86. package/dist/actions/get-customers.d.cts.map +1 -1
  87. package/dist/actions/get-customers.d.mts +3 -27
  88. package/dist/actions/get-customers.d.mts.map +1 -1
  89. package/dist/actions/get-customers.mjs +1 -0
  90. package/dist/actions/get-customers.mjs.map +1 -1
  91. package/dist/actions/get-thread-by-id.cjs +1 -0
  92. package/dist/actions/get-thread-by-id.cjs.map +1 -1
  93. package/dist/actions/get-thread-by-id.d.cts +3 -15
  94. package/dist/actions/get-thread-by-id.d.cts.map +1 -1
  95. package/dist/actions/get-thread-by-id.d.mts +3 -15
  96. package/dist/actions/get-thread-by-id.d.mts.map +1 -1
  97. package/dist/actions/get-thread-by-id.mjs +1 -0
  98. package/dist/actions/get-thread-by-id.mjs.map +1 -1
  99. package/dist/actions/get-user-by-id.cjs +1 -0
  100. package/dist/actions/get-user-by-id.cjs.map +1 -1
  101. package/dist/actions/get-user-by-id.d.cts +3 -15
  102. package/dist/actions/get-user-by-id.d.cts.map +1 -1
  103. package/dist/actions/get-user-by-id.d.mts +3 -15
  104. package/dist/actions/get-user-by-id.d.mts.map +1 -1
  105. package/dist/actions/get-user-by-id.mjs +1 -0
  106. package/dist/actions/get-user-by-id.mjs.map +1 -1
  107. package/dist/actions/list-customer-groups.cjs +1 -0
  108. package/dist/actions/list-customer-groups.cjs.map +1 -1
  109. package/dist/actions/list-customer-groups.d.cts +3 -21
  110. package/dist/actions/list-customer-groups.d.cts.map +1 -1
  111. package/dist/actions/list-customer-groups.d.mts +3 -21
  112. package/dist/actions/list-customer-groups.d.mts.map +1 -1
  113. package/dist/actions/list-customer-groups.mjs +1 -0
  114. package/dist/actions/list-customer-groups.mjs.map +1 -1
  115. package/dist/actions/list-tiers.cjs +1 -0
  116. package/dist/actions/list-tiers.cjs.map +1 -1
  117. package/dist/actions/list-tiers.d.cts +3 -18
  118. package/dist/actions/list-tiers.d.cts.map +1 -1
  119. package/dist/actions/list-tiers.d.mts +3 -18
  120. package/dist/actions/list-tiers.d.mts.map +1 -1
  121. package/dist/actions/list-tiers.mjs +1 -0
  122. package/dist/actions/list-tiers.mjs.map +1 -1
  123. package/dist/actions/query-threads.cjs +1 -0
  124. package/dist/actions/query-threads.cjs.map +1 -1
  125. package/dist/actions/query-threads.d.cts +3 -16
  126. package/dist/actions/query-threads.d.cts.map +1 -1
  127. package/dist/actions/query-threads.d.mts +3 -16
  128. package/dist/actions/query-threads.d.mts.map +1 -1
  129. package/dist/actions/query-threads.mjs +1 -0
  130. package/dist/actions/query-threads.mjs.map +1 -1
  131. package/dist/actions/remove-customer-from-group.cjs +1 -0
  132. package/dist/actions/remove-customer-from-group.cjs.map +1 -1
  133. package/dist/actions/remove-customer-from-group.d.cts +3 -20
  134. package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
  135. package/dist/actions/remove-customer-from-group.d.mts +3 -20
  136. package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
  137. package/dist/actions/remove-customer-from-group.mjs +1 -0
  138. package/dist/actions/remove-customer-from-group.mjs.map +1 -1
  139. package/dist/actions/run-graphql-query.cjs +1 -0
  140. package/dist/actions/run-graphql-query.cjs.map +1 -1
  141. package/dist/actions/run-graphql-query.d.cts +3 -16
  142. package/dist/actions/run-graphql-query.d.cts.map +1 -1
  143. package/dist/actions/run-graphql-query.d.mts +3 -16
  144. package/dist/actions/run-graphql-query.d.mts.map +1 -1
  145. package/dist/actions/run-graphql-query.mjs +1 -0
  146. package/dist/actions/run-graphql-query.mjs.map +1 -1
  147. package/dist/actions/send-message.cjs +1 -0
  148. package/dist/actions/send-message.cjs.map +1 -1
  149. package/dist/actions/send-message.d.cts +3 -40
  150. package/dist/actions/send-message.d.cts.map +1 -1
  151. package/dist/actions/send-message.d.mts +3 -40
  152. package/dist/actions/send-message.d.mts.map +1 -1
  153. package/dist/actions/send-message.mjs +1 -0
  154. package/dist/actions/send-message.mjs.map +1 -1
  155. package/dist/actions/update-company.cjs +1 -0
  156. package/dist/actions/update-company.cjs.map +1 -1
  157. package/dist/actions/update-company.d.cts +3 -20
  158. package/dist/actions/update-company.d.cts.map +1 -1
  159. package/dist/actions/update-company.d.mts +3 -20
  160. package/dist/actions/update-company.d.mts.map +1 -1
  161. package/dist/actions/update-company.mjs +1 -0
  162. package/dist/actions/update-company.mjs.map +1 -1
  163. package/dist/actions/update-thread.cjs +1 -0
  164. package/dist/actions/update-thread.cjs.map +1 -1
  165. package/dist/actions/update-thread.d.cts +3 -16
  166. package/dist/actions/update-thread.d.cts.map +1 -1
  167. package/dist/actions/update-thread.d.mts +3 -16
  168. package/dist/actions/update-thread.d.mts.map +1 -1
  169. package/dist/actions/update-thread.mjs +1 -0
  170. package/dist/actions/update-thread.mjs.map +1 -1
  171. package/dist/actions/upsert-customer.cjs +1 -0
  172. package/dist/actions/upsert-customer.cjs.map +1 -1
  173. package/dist/actions/upsert-customer.d.cts +3 -54
  174. package/dist/actions/upsert-customer.d.cts.map +1 -1
  175. package/dist/actions/upsert-customer.d.mts +3 -54
  176. package/dist/actions/upsert-customer.d.mts.map +1 -1
  177. package/dist/actions/upsert-customer.mjs +1 -0
  178. package/dist/actions/upsert-customer.mjs.map +1 -1
  179. package/dist/app.cjs +2 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +4 -6
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +4 -6
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +0 -1
  186. package/dist/app.mjs.map +1 -1
  187. package/dist/index.d.cts +1 -1
  188. package/dist/index.d.mts +1 -1
  189. package/package.json +2 -2
@@ -1 +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.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.object({\n email: z.string().describe(\"Email address\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n}).passthrough();\nconst PlainGetCustomerByEmail_TimestampSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough().describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetCustomerByEmailOutput = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).passthrough().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,+BAA+B,EAAE,OAAO,EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,wCAAwC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,uDAAuD,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-email.mjs","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomerByEmailInput = 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.object({\n email: z.string().describe(\"Email address\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n}).passthrough();\nconst PlainGetCustomerByEmail_TimestampSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough().describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetCustomerByEmailOutput = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing customer details from Plain.\");\n\nexport const plainGetCustomerByEmail: AppAction<\n typeof PlainGetCustomerByEmailInput,\n typeof PlainGetCustomerByEmailOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,wCAAwC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,uDAAuD,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,0BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-customer-by-id.ts
@@ -1 +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.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.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().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,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomerByIdInput = 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.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById: AppAction<\n typeof PlainGetCustomerByIdInput,\n typeof PlainGetCustomerByIdOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer-by-id.d.ts
@@ -11,21 +13,7 @@ declare const PlainGetCustomerByIdOutput: z.ZodObject<{
11
13
  created_at: z.ZodNullable<z.ZodString>;
12
14
  updated_at: z.ZodNullable<z.ZodString>;
13
15
  }, z.core.$loose>;
14
- declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- id: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
16
+ declare const plainGetCustomerById: AppAction<typeof PlainGetCustomerByIdInput, typeof PlainGetCustomerByIdOutput, typeof plain.credential>;
29
17
  //#endregion
30
18
  export { plainGetCustomerById };
31
19
  //# sourceMappingURL=get-customer-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-id.d.cts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAQ1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-customer-by-id.d.cts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAQ1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer-by-id.d.ts
@@ -11,21 +13,7 @@ declare const PlainGetCustomerByIdOutput: z.ZodObject<{
11
13
  created_at: z.ZodNullable<z.ZodString>;
12
14
  updated_at: z.ZodNullable<z.ZodString>;
13
15
  }, z.core.$loose>;
14
- declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- id: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
16
+ declare const plainGetCustomerById: AppAction<typeof PlainGetCustomerByIdInput, typeof PlainGetCustomerByIdOutput, typeof plain.credential>;
29
17
  //#endregion
30
18
  export { plainGetCustomerById };
31
19
  //# sourceMappingURL=get-customer-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-id.d.mts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAQ1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-customer-by-id.d.mts","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAQ1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const plainGetCustomerById = action("PLAIN_GET_CUSTOMER_BY_ID", {
@@ -1 +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.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.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().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,OAfuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-id.mjs","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomerByIdInput = 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.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById: AppAction<\n typeof PlainGetCustomerByIdInput,\n typeof PlainGetCustomerByIdOutput,\n typeof plain.credential\n> = 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":";;;AAiBA,MAAa,uBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAiBH;CACP,QAjBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-customers.ts
@@ -1 +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.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.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\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: PlainGet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IAAAA,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customers.cjs","names":["z","action"],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomersInput = 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.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers: AppAction<\n typeof PlainGetCustomersInput,\n typeof PlainGetCustomersOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,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,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qE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AsC,SAAS;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,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,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO,EACrD,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customers.d.ts
@@ -45,33 +47,7 @@ declare const PlainGetCustomersOutput: z.ZodObject<{
45
47
  totalCount: z.ZodNullable<z.ZodNumber>;
46
48
  }, z.core.$loose>>;
47
49
  }, z.core.$loose>;
48
- declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
49
- last?: number | undefined;
50
- after?: string | undefined;
51
- first?: number | undefined;
52
- before?: string | undefined;
53
- sortBy?: {
54
- field: string;
55
- direction: "ASC" | "DESC";
56
- } | undefined;
57
- filters?: {
58
- isMarkedAsSpam?: boolean | undefined;
59
- customerGroupIds?: string[] | undefined;
60
- customerGroupKeys?: string[] | undefined;
61
- } | undefined;
62
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- generic_api_key: z.ZodString;
68
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- generic_api_key: z.ZodString;
74
- }, z.core.$strip>>]>;
50
+ declare const plainGetCustomers: AppAction<typeof PlainGetCustomersInput, typeof PlainGetCustomersOutput, typeof plain.credential>;
75
51
  //#endregion
76
52
  export { plainGetCustomers };
77
53
  //# sourceMappingURL=get-customers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.d.cts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"get-customers.d.cts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customers.d.ts
@@ -45,33 +47,7 @@ declare const PlainGetCustomersOutput: z.ZodObject<{
45
47
  totalCount: z.ZodNullable<z.ZodNumber>;
46
48
  }, z.core.$loose>>;
47
49
  }, z.core.$loose>;
48
- declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
49
- last?: number | undefined;
50
- after?: string | undefined;
51
- first?: number | undefined;
52
- before?: string | undefined;
53
- sortBy?: {
54
- field: string;
55
- direction: "ASC" | "DESC";
56
- } | undefined;
57
- filters?: {
58
- isMarkedAsSpam?: boolean | undefined;
59
- customerGroupIds?: string[] | undefined;
60
- customerGroupKeys?: string[] | undefined;
61
- } | undefined;
62
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- generic_api_key: z.ZodString;
68
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
69
- connectionId: z.ZodString;
70
- entityId: z.ZodString;
71
- instanceId: z.ZodString;
72
- }, z.core.$strip>, z.ZodObject<{
73
- generic_api_key: z.ZodString;
74
- }, z.core.$strip>>]>;
50
+ declare const plainGetCustomers: AppAction<typeof PlainGetCustomersInput, typeof PlainGetCustomersOutput, typeof plain.credential>;
75
51
  //#endregion
76
52
  export { plainGetCustomers };
77
53
  //# sourceMappingURL=get-customers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-customers.ts
@@ -1 +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.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.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\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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type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomersInput = 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.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers: AppAction<\n typeof PlainGetCustomersInput,\n typeof PlainGetCustomersOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,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,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAA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1C,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-thread-by-id.ts
@@ -1 +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.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.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\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\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().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,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D,WAAW,mCAAmC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE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sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetThreadByIdInput = 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.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\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\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById: AppAction<\n typeof PlainGetThreadByIdInput,\n typeof PlainGetThreadByIdOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA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AAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-thread-by-id.d.ts
@@ -61,21 +63,7 @@ declare const PlainGetThreadByIdOutput: z.ZodObject<{
61
63
  }, z.core.$loose>>>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- id: string;
66
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
67
- connectionId: z.ZodString;
68
- entityId: z.ZodString;
69
- instanceId: z.ZodString;
70
- }, z.core.$strip>, z.ZodObject<{
71
- generic_api_key: z.ZodString;
72
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
73
- connectionId: z.ZodString;
74
- entityId: z.ZodString;
75
- instanceId: z.ZodString;
76
- }, z.core.$strip>, z.ZodObject<{
77
- generic_api_key: z.ZodString;
78
- }, z.core.$strip>>]>;
66
+ declare const plainGetThreadById: AppAction<typeof PlainGetThreadByIdInput, typeof PlainGetThreadByIdOutput, typeof plain.credential>;
79
67
  //#endregion
80
68
  export { plainGetThreadById };
81
69
  //# sourceMappingURL=get-thread-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-thread-by-id.d.ts
@@ -61,21 +63,7 @@ declare const PlainGetThreadByIdOutput: z.ZodObject<{
61
63
  }, z.core.$loose>>>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- id: string;
66
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
67
- connectionId: z.ZodString;
68
- entityId: z.ZodString;
69
- instanceId: z.ZodString;
70
- }, z.core.$strip>, z.ZodObject<{
71
- generic_api_key: z.ZodString;
72
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
73
- connectionId: z.ZodString;
74
- entityId: z.ZodString;
75
- instanceId: z.ZodString;
76
- }, z.core.$strip>, z.ZodObject<{
77
- generic_api_key: z.ZodString;
78
- }, z.core.$strip>>]>;
66
+ declare const plainGetThreadById: AppAction<typeof PlainGetThreadByIdInput, typeof PlainGetThreadByIdOutput, typeof plain.credential>;
79
67
  //#endregion
80
68
  export { plainGetThreadById };
81
69
  //# sourceMappingURL=get-thread-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-thread-by-id.ts
@@ -1 +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.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.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\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\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().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,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D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,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetThreadByIdInput = 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.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\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\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\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}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById: AppAction<\n typeof PlainGetThreadByIdInput,\n typeof PlainGetThreadByIdOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,S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S;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,qBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-user-by-id.ts
@@ -1 +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.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.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\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\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().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,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,mBAAmBC,eAAAA,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetUserByIdInput = 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.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\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\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById: AppAction<\n typeof PlainGetUserByIdInput,\n typeof PlainGetUserByIdOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,mBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-by-id.d.ts
@@ -19,21 +21,7 @@ declare const PlainGetUserByIdOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>>;
20
22
  }, z.core.$loose>>;
21
23
  }, z.core.$loose>;
22
- declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- user_id: string;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>;
24
+ declare const plainGetUserById: AppAction<typeof PlainGetUserByIdInput, typeof PlainGetUserByIdOutput, typeof plain.credential>;
37
25
  //#endregion
38
26
  export { plainGetUserById };
39
27
  //# sourceMappingURL=get-user-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-by-id.d.ts
@@ -19,21 +21,7 @@ declare const PlainGetUserByIdOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>>;
20
22
  }, z.core.$loose>>;
21
23
  }, z.core.$loose>;
22
- declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- user_id: string;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"plain", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>;
24
+ declare const plainGetUserById: AppAction<typeof PlainGetUserByIdInput, typeof PlainGetUserByIdOutput, typeof plain.credential>;
37
25
  //#endregion
38
26
  export { plainGetUserById };
39
27
  //# sourceMappingURL=get-user-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-user-by-id.ts
@@ -1 +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.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.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\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\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().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,wBAAwB,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyC,EAAE,OAAO,EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyC,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetUserByIdInput = 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.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\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\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById: AppAction<\n typeof PlainGetUserByIdInput,\n typeof PlainGetUserByIdOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyC,EAAE,OAAO,EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyC,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-customer-groups.ts