@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":"action.cjs","names":["plain","executePlainTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plain } from \"./app\";\nimport { executePlainTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return plain.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlainTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["plain","executePlainTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plain } from \"./app\";\nimport { executePlainTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plain.credential> {\n return plain.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlainTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plain } from \"./app\";\nimport { executePlainTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return plain.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlainTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { plain } from \"./app\";\nimport { executePlainTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof plain.credential> {\n return plain.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlainTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -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/add-customer-to-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-customer-to-group.cjs","names":["z","action"],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroup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CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,eAAe,4CAA4C,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACvE,0BAA0BA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-customer-to-group.cjs","names":["z","action"],"sources":["../../src/actions/add-customer-to-group.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 PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup: AppAction<\n typeof PlainAddCustomerToGroupInput,\n typeof PlainAddCustomerToGroupOutput,\n typeof plain.credential\n> = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACtG,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA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f,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/add-customer-to-group.d.ts
@@ -40,15 +42,7 @@ declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
40
42
  }, z.core.$loose>>;
41
43
  }, z.core.$loose>>>>;
42
44
  }, z.core.$loose>;
43
- declare const plainAddCustomerToGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
44
- customerId: string;
45
- customerGroupIdentifiers: {
46
- [x: string]: unknown;
47
- externalId?: string | undefined;
48
- customerGroupId?: string | undefined;
49
- customerGroupKey?: string | undefined;
50
- }[];
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ declare const plainAddCustomerToGroup: AppAction<typeof PlainAddCustomerToGroupInput, typeof PlainAddCustomerToGroupOutput, typeof plain.credential>;
52
46
  //#endregion
53
47
  export { plainAddCustomerToGroup };
54
48
  //# sourceMappingURL=add-customer-to-group.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-customer-to-group.d.cts","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"add-customer-to-group.d.cts","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,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/add-customer-to-group.d.ts
@@ -40,15 +42,7 @@ declare const PlainAddCustomerToGroupOutput: z.ZodObject<{
40
42
  }, z.core.$loose>>;
41
43
  }, z.core.$loose>>>>;
42
44
  }, z.core.$loose>;
43
- declare const plainAddCustomerToGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
44
- customerId: string;
45
- customerGroupIdentifiers: {
46
- [x: string]: unknown;
47
- externalId?: string | undefined;
48
- customerGroupId?: string | undefined;
49
- customerGroupKey?: string | undefined;
50
- }[];
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ declare const plainAddCustomerToGroup: AppAction<typeof PlainAddCustomerToGroupInput, typeof PlainAddCustomerToGroupOutput, typeof plain.credential>;
52
46
  //#endregion
53
47
  export { plainAddCustomerToGroup };
54
48
  //# sourceMappingURL=add-customer-to-group.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-customer-to-group.d.mts","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"add-customer-to-group.d.mts","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,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/add-customer-to-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-customer-to-group.mjs","names":[],"sources":["../../src/actions/add-customer-to-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0B,EAAE,MAAM,EAAE,OAAO;EAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACtG,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,KAAK;EAAC;EAAc;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC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CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACvE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"add-customer-to-group.mjs","names":[],"sources":["../../src/actions/add-customer-to-group.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 PlainAddCustomerToGroupInput = z.object({\n customerId: z.string().describe(\"ID of the customer to add to groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n externalId: z.string().describe(\"Your external ID for the customer group. NOTE: The Plain API does not support this field for adding customers to groups - use customerGroupId or customerGroupKey instead.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group. Use this or customerGroupKey (not externalId).\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group. Use this or customerGroupId (not externalId).\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers. Must contain at least one identifier.\"),\n});\nconst PlainAddCustomerToGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainAddCustomerToGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupSchema = z.object({\n id: z.string().describe(\"ID of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n}).passthrough();\nconst PlainAddCustomerToGroup_CustomerGroupMembershipSchema = z.object({\n createdAt: PlainAddCustomerToGroup_CreatedAtSchema.nullable(),\n customerId: z.string().describe(\"ID of the customer.\").nullable(),\n customerGroup: PlainAddCustomerToGroup_CustomerGroupSchema.nullable(),\n}).passthrough();\nexport const PlainAddCustomerToGroupOutput = z.object({\n error: PlainAddCustomerToGroup_MutationErrorSchema.nullable().optional(),\n customerGroupMemberships: z.array(PlainAddCustomerToGroup_CustomerGroupMembershipSchema).nullable().optional(),\n}).passthrough();\n\nexport const plainAddCustomerToGroup: AppAction<\n typeof PlainAddCustomerToGroupInput,\n typeof PlainAddCustomerToGroupOutput,\n typeof plain.credential\n> = action(\"PLAIN_ADD_CUSTOMER_TO_GROUP\", {\n slug: \"plain-add-customer-to-group\",\n name: \"Add Customer To Group\",\n description: \"Tool to add a customer to one or more customer groups. Use when you have a customer and groups ready.\",\n input: PlainAddCustomerToGroupInput,\n output: PlainAddCustomerToGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACtE,0BAA0B,EAAE,MAAM,EAAE,OAAO;EAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EACvN,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACzI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACtG,CAAC;AACD,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AA4C,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,0BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACvE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,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/create-customer-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CA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;CACjE,WAAW,6CAA6C,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-customer-group.cjs","names":["z","action"],"sources":["../../src/actions/create-customer-group.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 PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup: AppAction<\n typeof PlainCreateCustomerGroupInput,\n typeof PlainCreateCustomerGroupOutput,\n typeof plain.credential\n> = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAOA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AAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,WAAW,6CAA6C,SAAS;CACjE,WAAW,6CAA6C,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAITC,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/create-customer-group.d.ts
@@ -32,12 +34,7 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
32
34
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>>>;
34
36
  }, z.core.$loose>;
35
- declare const plainCreateCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- key: string;
37
- name: string;
38
- color: string;
39
- externalId?: string | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const plainCreateCustomerGroup: AppAction<typeof PlainCreateCustomerGroupInput, typeof PlainCreateCustomerGroupOutput, typeof plain.credential>;
41
38
  //#endregion
42
39
  export { plainCreateCustomerGroup };
43
40
  //# sourceMappingURL=create-customer-group.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-customer-group.d.cts","names":[],"sources":["../../src/actions/create-customer-group.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"create-customer-group.d.cts","names":[],"sources":["../../src/actions/create-customer-group.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/create-customer-group.d.ts
@@ -32,12 +34,7 @@ declare const PlainCreateCustomerGroupOutput: z.ZodObject<{
32
34
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>>>;
34
36
  }, z.core.$loose>;
35
- declare const plainCreateCustomerGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- key: string;
37
- name: string;
38
- color: string;
39
- externalId?: string | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const plainCreateCustomerGroup: AppAction<typeof PlainCreateCustomerGroupInput, typeof PlainCreateCustomerGroupOutput, typeof plain.credential>;
41
38
  //#endregion
42
39
  export { plainCreateCustomerGroup };
43
40
  //# sourceMappingURL=create-customer-group.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-customer-group.d.mts","names":[],"sources":["../../src/actions/create-customer-group.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"create-customer-group.d.mts","names":[],"sources":["../../src/actions/create-customer-group.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA6B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/create-customer-group.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-customer-group.mjs","names":[],"sources":["../../src/actions/create-customer-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,C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AS;AAC3F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-customer-group.mjs","names":[],"sources":["../../src/actions/create-customer-group.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 PlainCreateCustomerGroupInput = z.object({\n key: z.string().describe(\"Unique identifier key for the customer group. Must be unique across all customer groups in your workspace. Use lowercase with underscores (e.g., 'vip_customers').\"),\n name: z.string().describe(\"Display name of the customer group (e.g., 'VIP Customers', 'Free Tier'). Used for organization and display purposes.\"),\n color: z.string().describe(\"Hex color code for the group (e.g., #FF5733). Must be a valid 6-digit hex color starting with #.\"),\n externalId: z.string().describe(\"Optional external ID to link this customer group with an identifier from your system (e.g., Stripe plan ID, internal database ID).\").optional(),\n});\nconst PlainCreateCustomerGroup_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"Field with validation error\").nullable(),\n message: z.string().describe(\"Technical error message for the field error\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION, FORBIDDEN\").nullable(),\n fields: z.array(PlainCreateCustomerGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors if any\").nullable().optional(),\n message: z.string().describe(\"Technical error message for the mutation failure\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"Date and time in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateCustomerGroup_CustomerGroupModelSchema = z.object({\n id: z.string().describe(\"ID of the created customer group\").nullable(),\n key: z.string().describe(\"Unique key for the customer group\").nullable(),\n name: z.string().describe(\"Name of the customer group\").nullable(),\n color: z.string().describe(\"Hex color code for the group\").nullable(),\n createdAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n updatedAt: PlainCreateCustomerGroup_DateTimeModelSchema.nullable(),\n externalId: z.string().describe(\"Optional external ID of the group\").nullable().optional(),\n}).passthrough();\nexport const PlainCreateCustomerGroupOutput = z.object({\n error: PlainCreateCustomerGroup_MutationErrorSchema.nullable().optional(),\n customerGroup: PlainCreateCustomerGroup_CustomerGroupModelSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainCreateCustomerGroup: AppAction<\n typeof PlainCreateCustomerGroupInput,\n typeof PlainCreateCustomerGroupOutput,\n typeof plain.credential\n> = action(\"PLAIN_CREATE_CUSTOMER_GROUP\", {\n slug: \"plain-create-customer-group\",\n name: \"Create Customer Group\",\n description: \"Creates a new customer group in Plain for organizing and segmenting customers. Customer groups allow you to categorize customers (e.g., by pricing tier, feature access, or support level) and manage them more effectively in your support workflow. Each group has a unique key, display name, and visual color for easy identification. Use this when you need to create a new customer segment for organization or filtering purposes.\",\n input: PlainCreateCustomerGroupInput,\n output: PlainCreateCustomerGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAChJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;AACjL,CAAC;AACD,MAAM,oDAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAA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AM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;CACvF,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/create-thread.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,eAAeA,I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AC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.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 PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread: AppAction<\n typeof PlainCreateThreadInput,\n typeof PlainCreateThreadOutput,\n typeof plain.credential\n> = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAYA,IAAAA,EAAE,OAAO,EACrB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,eAAeA,IAAAA,EAAE,OAAO,EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,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2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-thread.d.ts
@@ -47,24 +49,7 @@ declare const PlainCreateThreadOutput: z.ZodObject<{
47
49
  }, z.core.$loose>>;
48
50
  }, z.core.$loose>>;
49
51
  }, z.core.$loose>;
50
- declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- title: string;
52
- customerIdentifier: {
53
- customerId?: string | undefined;
54
- externalId?: string | undefined;
55
- emailAddress?: string | undefined;
56
- };
57
- assignedTo?: {
58
- userId: string;
59
- } | undefined;
60
- components?: {
61
- [x: string]: unknown;
62
- componentText?: {
63
- text: string;
64
- } | undefined;
65
- }[] | undefined;
66
- labelTypeIds?: string[] | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const plainCreateThread: AppAction<typeof PlainCreateThreadInput, typeof PlainCreateThreadOutput, typeof plain.credential>;
68
53
  //#endregion
69
54
  export { plainCreateThread };
70
55
  //# sourceMappingURL=create-thread.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.d.cts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"create-thread.d.cts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { plain } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-thread.d.ts
@@ -47,24 +49,7 @@ declare const PlainCreateThreadOutput: z.ZodObject<{
47
49
  }, z.core.$loose>>;
48
50
  }, z.core.$loose>>;
49
51
  }, z.core.$loose>;
50
- declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- title: string;
52
- customerIdentifier: {
53
- customerId?: string | undefined;
54
- externalId?: string | undefined;
55
- emailAddress?: string | undefined;
56
- };
57
- assignedTo?: {
58
- userId: string;
59
- } | undefined;
60
- components?: {
61
- [x: string]: unknown;
62
- componentText?: {
63
- text: string;
64
- } | undefined;
65
- }[] | undefined;
66
- labelTypeIds?: string[] | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const plainCreateThread: AppAction<typeof PlainCreateThreadInput, typeof PlainCreateThreadOutput, typeof plain.credential>;
68
53
  //#endregion
69
54
  export { plainCreateThread };
70
55
  //# sourceMappingURL=create-thread.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.d.mts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"create-thread.d.mts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-thread.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.mjs","names":[],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,oDAAoD,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Y;AACf,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+BAA+B;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,UAAU,iCAAiC,SAAS;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,iBAAiB,wCAAwC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO,EACxD,QAAQ,+BAA+B,SAAS,CAAC,CAAC,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO,EAC3D,cAAc,yCAAyC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-thread.mjs","names":[],"sources":["../../src/actions/create-thread.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 PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread: AppAction<\n typeof PlainCreateThreadInput,\n typeof PlainCreateThreadOutput,\n typeof plain.credential\n> = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACxF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,oBAAoB,EAAE,OAAO;EAC7B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI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B,wCAAwC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO,EACxD,QAAQ,+BAA+B,SAAS,CAAC,CAAC,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO,EAC3D,cAAc,yCAAyC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,MAAM,4CAA4C,SAAS,EAC7D,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/delete-customer.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = 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 PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.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 PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = 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 PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer: AppAction<\n typeof PlainDeleteCustomerInput,\n typeof PlainDeleteCustomerOutput,\n typeof plain.credential\n> = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/delete-customer.d.ts
@@ -16,9 +18,7 @@ declare const PlainDeleteCustomerOutput: z.ZodObject<{
16
18
  message: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- customer_id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const plainDeleteCustomer: AppAction<typeof PlainDeleteCustomerInput, typeof PlainDeleteCustomerOutput, typeof plain.credential>;
22
22
  //#endregion
23
23
  export { plainDeleteCustomer };
24
24
  //# sourceMappingURL=delete-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/delete-customer.d.ts
@@ -16,9 +18,7 @@ declare const PlainDeleteCustomerOutput: z.ZodObject<{
16
18
  message: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- customer_id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const plainDeleteCustomer: AppAction<typeof PlainDeleteCustomerInput, typeof PlainDeleteCustomerOutput, typeof plain.credential>;
22
22
  //#endregion
23
23
  export { plainDeleteCustomer };
24
24
  //# sourceMappingURL=delete-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/delete-customer.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = 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 PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqD,EAAE,OAAO;CAClE,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,gDAAgD,EAAE,OAAO;CAC7D,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,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.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 PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = 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 PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer: AppAction<\n typeof PlainDeleteCustomerInput,\n typeof PlainDeleteCustomerOutput,\n typeof plain.credential\n> = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqD,EAAE,OAAO;CAClE,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,gDAAgD,EAAE,OAAO;CAC7D,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,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,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/delete-user.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.cjs","names":["z","action"],"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,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.cjs","names":["z","action"],"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,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,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/delete-user.d.ts
@@ -16,9 +18,7 @@ declare const PlainDeleteUserOutput: z.ZodObject<{
16
18
  message: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- user_id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const plainDeleteUser: AppAction<typeof PlainDeleteUserInput, typeof PlainDeleteUserOutput, typeof plain.credential>;
22
22
  //#endregion
23
23
  export { plainDeleteUser };
24
24
  //# sourceMappingURL=delete-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}
1
+ {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,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/delete-user.d.ts
@@ -16,9 +18,7 @@ declare const PlainDeleteUserOutput: z.ZodObject<{
16
18
  message: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- user_id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const plainDeleteUser: AppAction<typeof PlainDeleteUserInput, typeof PlainDeleteUserOutput, typeof plain.credential>;
22
22
  //#endregion
23
23
  export { plainDeleteUser };
24
24
  //# sourceMappingURL=delete-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}
1
+ {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,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/delete-user.ts