@keystrokehq/plain 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -9
  6. package/dist/actions/add-customer-to-group.d.cts.map +1 -1
  7. package/dist/actions/add-customer-to-group.d.mts +3 -9
  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 -6
  14. package/dist/actions/create-customer-group.d.cts.map +1 -1
  15. package/dist/actions/create-customer-group.d.mts +3 -6
  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 -18
  22. package/dist/actions/create-thread.d.cts.map +1 -1
  23. package/dist/actions/create-thread.d.mts +3 -18
  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 -3
  30. package/dist/actions/delete-customer.d.cts.map +1 -1
  31. package/dist/actions/delete-customer.d.mts +3 -3
  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 -3
  38. package/dist/actions/delete-user.d.cts.map +1 -1
  39. package/dist/actions/delete-user.d.mts +3 -3
  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 -3
  46. package/dist/actions/fetch-company.d.cts.map +1 -1
  47. package/dist/actions/fetch-company.d.mts +3 -3
  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 -5
  54. package/dist/actions/fetch-issues.d.cts.map +1 -1
  55. package/dist/actions/fetch-issues.d.mts +3 -5
  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 -3
  62. package/dist/actions/fetch-tier.d.cts.map +1 -1
  63. package/dist/actions/fetch-tier.d.mts +3 -3
  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 -3
  70. package/dist/actions/get-customer-by-email.d.cts.map +1 -1
  71. package/dist/actions/get-customer-by-email.d.mts +3 -3
  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 -3
  78. package/dist/actions/get-customer-by-id.d.cts.map +1 -1
  79. package/dist/actions/get-customer-by-id.d.mts +3 -3
  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 -15
  86. package/dist/actions/get-customers.d.cts.map +1 -1
  87. package/dist/actions/get-customers.d.mts +3 -15
  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 -3
  94. package/dist/actions/get-thread-by-id.d.cts.map +1 -1
  95. package/dist/actions/get-thread-by-id.d.mts +3 -3
  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 -3
  102. package/dist/actions/get-user-by-id.d.cts.map +1 -1
  103. package/dist/actions/get-user-by-id.d.mts +3 -3
  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 -9
  110. package/dist/actions/list-customer-groups.d.cts.map +1 -1
  111. package/dist/actions/list-customer-groups.d.mts +3 -9
  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 -6
  118. package/dist/actions/list-tiers.d.cts.map +1 -1
  119. package/dist/actions/list-tiers.d.mts +3 -6
  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 -4
  126. package/dist/actions/query-threads.d.cts.map +1 -1
  127. package/dist/actions/query-threads.d.mts +3 -4
  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 -8
  134. package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
  135. package/dist/actions/remove-customer-from-group.d.mts +3 -8
  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 -4
  142. package/dist/actions/run-graphql-query.d.cts.map +1 -1
  143. package/dist/actions/run-graphql-query.d.mts +3 -4
  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 -28
  150. package/dist/actions/send-message.d.cts.map +1 -1
  151. package/dist/actions/send-message.d.mts +3 -28
  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 -8
  158. package/dist/actions/update-company.d.cts.map +1 -1
  159. package/dist/actions/update-company.d.mts +3 -8
  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 -4
  166. package/dist/actions/update-thread.d.cts.map +1 -1
  167. package/dist/actions/update-thread.d.mts +3 -4
  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 -42
  174. package/dist/actions/upsert-customer.d.cts.map +1 -1
  175. package/dist/actions/upsert-customer.d.mts +3 -42
  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 +5 -2
  180. package/dist/app.cjs.map +1 -1
  181. package/dist/app.d.cts +7 -1
  182. package/dist/app.d.cts.map +1 -1
  183. package/dist/app.d.mts +7 -1
  184. package/dist/app.d.mts.map +1 -1
  185. package/dist/app.mjs +3 -2
  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":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteUser_DeleteUserErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteUserOutput = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteUser = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmC,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.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 PlainDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteUser_DeleteUserErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteUserOutput = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteUser: AppAction<\n typeof PlainDeleteUserInput,\n typeof PlainDeleteUserOutput,\n typeof plain.credential\n> = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbmC,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,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/fetch-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.cjs","names":["z","action"],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-company.cjs","names":["z","action"],"sources":["../../src/actions/fetch-company.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 PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany: AppAction<\n typeof PlainFetchCompanyInput,\n typeof PlainFetchCompanyOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,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/fetch-company.d.ts
@@ -24,9 +26,7 @@ declare const PlainFetchCompanyOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>>;
25
27
  contractValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
28
  }, z.core.$loose>;
27
- declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- company_id: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const plainFetchCompany: AppAction<typeof PlainFetchCompanyInput, typeof PlainFetchCompanyOutput, typeof plain.credential>;
30
30
  //#endregion
31
31
  export { plainFetchCompany };
32
32
  //# sourceMappingURL=fetch-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,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/fetch-company.d.ts
@@ -24,9 +26,7 @@ declare const PlainFetchCompanyOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>>;
25
27
  contractValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
28
  }, z.core.$loose>;
27
- declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- company_id: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const plainFetchCompany: AppAction<typeof PlainFetchCompanyInput, typeof PlainFetchCompanyOutput, typeof plain.credential>;
30
30
  //#endregion
31
31
  export { plainFetchCompany };
32
32
  //# sourceMappingURL=fetch-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,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/fetch-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AAaf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,wCAAwC,SAAS;EAC5D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,wCAAwC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.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 PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany: AppAction<\n typeof PlainFetchCompanyInput,\n typeof PlainFetchCompanyOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,M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C"}
@@ -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/fetch-issues.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.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 PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues: AppAction<\n typeof PlainFetchIssuesInput,\n typeof PlainFetchIssuesOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FA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OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,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/fetch-issues.d.ts
@@ -20,11 +22,7 @@ declare const PlainFetchIssuesOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  totalCount: z.ZodNullable<z.ZodNumber>;
22
24
  }, z.core.$loose>;
23
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- customerId: string;
25
- linkFirst?: number | undefined;
26
- threadFirst?: number | undefined;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const plainFetchIssues: AppAction<typeof PlainFetchIssuesInput, typeof PlainFetchIssuesOutput, typeof plain.credential>;
28
26
  //#endregion
29
27
  export { plainFetchIssues };
30
28
  //# sourceMappingURL=fetch-issues.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,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/fetch-issues.d.ts
@@ -20,11 +22,7 @@ declare const PlainFetchIssuesOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  totalCount: z.ZodNullable<z.ZodNumber>;
22
24
  }, z.core.$loose>;
23
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- customerId: string;
25
- linkFirst?: number | undefined;
26
- threadFirst?: number | undefined;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ declare const plainFetchIssues: AppAction<typeof PlainFetchIssuesInput, typeof PlainFetchIssuesOutput, typeof plain.credential>;
28
26
  //#endregion
29
27
  export { plainFetchIssues };
30
28
  //# sourceMappingURL=fetch-issues.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,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/fetch-issues.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAM/F,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.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 PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues: AppAction<\n typeof PlainFetchIssuesInput,\n typeof PlainFetchIssuesOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAM/F,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;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/fetch-tier.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/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AAC"}
1
+ {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.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 PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier: AppAction<\n typeof PlainFetchTierInput,\n typeof PlainFetchTierOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetch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,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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/fetch-tier.d.ts
@@ -23,9 +25,7 @@ declare const PlainFetchTierOutput: z.ZodObject<{
23
25
  defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>;
26
- declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- tier_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const plainFetchTier: AppAction<typeof PlainFetchTierInput, typeof PlainFetchTierOutput, typeof plain.credential>;
29
29
  //#endregion
30
30
  export { plainFetchTier };
31
31
  //# sourceMappingURL=fetch-tier.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/fetch-tier.d.ts
@@ -23,9 +25,7 @@ declare const PlainFetchTierOutput: z.ZodObject<{
23
25
  defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>;
26
- declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- tier_id: string;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const plainFetchTier: AppAction<typeof PlainFetchTierInput, typeof PlainFetchTierOutput, typeof plain.credential>;
29
29
  //#endregion
30
30
  export { plainFetchTier };
31
31
  //# sourceMappingURL=fetch-tier.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.d.mts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"fetch-tier.d.mts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/fetch-tier.ts
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.mjs","names":[],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAAgC,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,4BAA4B,EAAE,OAAO;CACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,WAAW,8BAA8B,SAAS;CAClD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,WAAW,8BAA8B,SAAS;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-tier.mjs","names":[],"sources":["../../src/actions/fetch-tier.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 PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier: AppAction<\n typeof PlainFetchTierInput,\n typeof PlainFetchTierOutput,\n typeof plain.credential\n> = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAAgC,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,4BAA4B,EAAE,OAAO;CACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,WAAW,8BAA8B,SAAS;CAClD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,WAAW,8BAA8B,SAAS;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkC,EAAE,OAAO,EAC3C,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,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-customer-by-email.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.cjs","names":["z","action"],"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,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AAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-email.cjs","names":["z","action"],"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+BA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,wCAAwC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,uDAAuDA,IAAAA,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAITC,eAAAA,OAAO,+BAA+B;CACxC,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-email.d.ts
@@ -24,9 +26,7 @@ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>>;
26
28
  }, z.core.$loose>;
27
- declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- email: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const plainGetCustomerByEmail: AppAction<typeof PlainGetCustomerByEmailInput, typeof PlainGetCustomerByEmailOutput, typeof plain.credential>;
30
30
  //#endregion
31
31
  export { plainGetCustomerByEmail };
32
32
  //# sourceMappingURL=get-customer-by-email.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.d.cts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAsB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-customer-by-email.d.cts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAsB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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-email.d.ts
@@ -24,9 +26,7 @@ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>>;
25
27
  }, z.core.$loose>>;
26
28
  }, z.core.$loose>;
27
- declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- email: string;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const plainGetCustomerByEmail: AppAction<typeof PlainGetCustomerByEmailInput, typeof PlainGetCustomerByEmailOutput, typeof plain.credential>;
30
30
  //#endregion
31
31
  export { plainGetCustomerByEmail };
32
32
  //# sourceMappingURL=get-customer-by-email.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.d.mts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAsB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-customer-by-email.d.mts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAsB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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-customer-by-email.ts
@@ -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,9 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const plainGetCustomerById: AppAction<typeof PlainGetCustomerByIdInput, typeof PlainGetCustomerByIdOutput, typeof plain.credential>;
17
17
  //#endregion
18
18
  export { plainGetCustomerById };
19
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,9 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const plainGetCustomerById: AppAction<typeof PlainGetCustomerByIdInput, typeof PlainGetCustomerByIdOutput, typeof plain.credential>;
17
17
  //#endregion
18
18
  export { plainGetCustomerById };
19
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: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,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,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,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,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,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,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO;EAClB,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,C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BA,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,21 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
50
+ declare const plainGetCustomers: AppAction<typeof PlainGetCustomersInput, typeof PlainGetCustomersOutput, typeof plain.credential>;
63
51
  //#endregion
64
52
  export { plainGetCustomers };
65
53
  //# sourceMappingURL=get-customers.d.cts.map