@keystrokehq/mx_technologies 0.1.2 → 0.1.4

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 (219) hide show
  1. package/dist/actions/cancel-partner-account.cjs +1 -1
  2. package/dist/actions/cancel-partner-account.cjs.map +1 -1
  3. package/dist/actions/cancel-partner-account.d.cts +16 -2
  4. package/dist/actions/cancel-partner-account.d.mts +16 -2
  5. package/dist/actions/cancel-partner-account.mjs +1 -1
  6. package/dist/actions/cancel-partner-account.mjs.map +1 -1
  7. package/dist/actions/create-account.cjs +2 -2
  8. package/dist/actions/create-account.cjs.map +1 -1
  9. package/dist/actions/create-account.d.cts +17 -3
  10. package/dist/actions/create-account.d.mts +17 -3
  11. package/dist/actions/create-account.mjs +2 -2
  12. package/dist/actions/create-account.mjs.map +1 -1
  13. package/dist/actions/create-audience-api-credentials.cjs +1 -1
  14. package/dist/actions/create-audience-api-credentials.cjs.map +1 -1
  15. package/dist/actions/create-audience-api-credentials.d.cts +16 -2
  16. package/dist/actions/create-audience-api-credentials.d.mts +16 -2
  17. package/dist/actions/create-audience-api-credentials.mjs +1 -1
  18. package/dist/actions/create-audience-api-credentials.mjs.map +1 -1
  19. package/dist/actions/create-member.cjs +3 -3
  20. package/dist/actions/create-member.cjs.map +1 -1
  21. package/dist/actions/create-member.d.cts +19 -4
  22. package/dist/actions/create-member.d.mts +19 -4
  23. package/dist/actions/create-member.mjs +3 -3
  24. package/dist/actions/create-member.mjs.map +1 -1
  25. package/dist/actions/create-partner-account.cjs +2 -2
  26. package/dist/actions/create-partner-account.cjs.map +1 -1
  27. package/dist/actions/create-partner-account.d.cts +17 -3
  28. package/dist/actions/create-partner-account.d.mts +17 -3
  29. package/dist/actions/create-partner-account.mjs +2 -2
  30. package/dist/actions/create-partner-account.mjs.map +1 -1
  31. package/dist/actions/fetch-rewards.cjs +2 -2
  32. package/dist/actions/fetch-rewards.cjs.map +1 -1
  33. package/dist/actions/fetch-rewards.d.cts +17 -3
  34. package/dist/actions/fetch-rewards.d.mts +17 -3
  35. package/dist/actions/fetch-rewards.mjs +2 -2
  36. package/dist/actions/fetch-rewards.mjs.map +1 -1
  37. package/dist/actions/get-configurable-widget-url.cjs +1 -1
  38. package/dist/actions/get-configurable-widget-url.cjs.map +1 -1
  39. package/dist/actions/get-configurable-widget-url.d.cts +16 -2
  40. package/dist/actions/get-configurable-widget-url.d.cts.map +1 -1
  41. package/dist/actions/get-configurable-widget-url.d.mts +16 -2
  42. package/dist/actions/get-configurable-widget-url.d.mts.map +1 -1
  43. package/dist/actions/get-configurable-widget-url.mjs +1 -1
  44. package/dist/actions/get-configurable-widget-url.mjs.map +1 -1
  45. package/dist/actions/list-account-numbers-by-member.cjs +3 -3
  46. package/dist/actions/list-account-numbers-by-member.cjs.map +1 -1
  47. package/dist/actions/list-account-numbers-by-member.d.cts +18 -4
  48. package/dist/actions/list-account-numbers-by-member.d.mts +18 -4
  49. package/dist/actions/list-account-numbers-by-member.mjs +3 -3
  50. package/dist/actions/list-account-numbers-by-member.mjs.map +1 -1
  51. package/dist/actions/list-account-owners.cjs +3 -3
  52. package/dist/actions/list-account-owners.cjs.map +1 -1
  53. package/dist/actions/list-account-owners.d.cts +18 -4
  54. package/dist/actions/list-account-owners.d.mts +18 -4
  55. package/dist/actions/list-account-owners.mjs +3 -3
  56. package/dist/actions/list-account-owners.mjs.map +1 -1
  57. package/dist/actions/list-accounts.cjs +3 -3
  58. package/dist/actions/list-accounts.cjs.map +1 -1
  59. package/dist/actions/list-accounts.d.cts +18 -4
  60. package/dist/actions/list-accounts.d.mts +18 -4
  61. package/dist/actions/list-accounts.mjs +3 -3
  62. package/dist/actions/list-accounts.mjs.map +1 -1
  63. package/dist/actions/list-budgets.cjs +3 -3
  64. package/dist/actions/list-budgets.cjs.map +1 -1
  65. package/dist/actions/list-budgets.d.cts +18 -4
  66. package/dist/actions/list-budgets.d.mts +18 -4
  67. package/dist/actions/list-budgets.mjs +3 -3
  68. package/dist/actions/list-budgets.mjs.map +1 -1
  69. package/dist/actions/list-categories.cjs +3 -3
  70. package/dist/actions/list-categories.cjs.map +1 -1
  71. package/dist/actions/list-categories.d.cts +18 -4
  72. package/dist/actions/list-categories.d.mts +18 -4
  73. package/dist/actions/list-categories.mjs +3 -3
  74. package/dist/actions/list-categories.mjs.map +1 -1
  75. package/dist/actions/list-challenges.cjs +2 -2
  76. package/dist/actions/list-challenges.cjs.map +1 -1
  77. package/dist/actions/list-challenges.d.cts +17 -3
  78. package/dist/actions/list-challenges.d.mts +17 -3
  79. package/dist/actions/list-challenges.mjs +2 -2
  80. package/dist/actions/list-challenges.mjs.map +1 -1
  81. package/dist/actions/list-favorite-institutions.cjs +2 -2
  82. package/dist/actions/list-favorite-institutions.cjs.map +1 -1
  83. package/dist/actions/list-favorite-institutions.d.cts +17 -3
  84. package/dist/actions/list-favorite-institutions.d.mts +17 -3
  85. package/dist/actions/list-favorite-institutions.mjs +2 -2
  86. package/dist/actions/list-favorite-institutions.mjs.map +1 -1
  87. package/dist/actions/list-goals.cjs +2 -2
  88. package/dist/actions/list-goals.cjs.map +1 -1
  89. package/dist/actions/list-goals.d.cts +17 -3
  90. package/dist/actions/list-goals.d.mts +17 -3
  91. package/dist/actions/list-goals.mjs +2 -2
  92. package/dist/actions/list-goals.mjs.map +1 -1
  93. package/dist/actions/list-institution-credentials.cjs +3 -3
  94. package/dist/actions/list-institution-credentials.cjs.map +1 -1
  95. package/dist/actions/list-institution-credentials.d.cts +18 -4
  96. package/dist/actions/list-institution-credentials.d.mts +18 -4
  97. package/dist/actions/list-institution-credentials.mjs +3 -3
  98. package/dist/actions/list-institution-credentials.mjs.map +1 -1
  99. package/dist/actions/list-institutions.cjs +3 -3
  100. package/dist/actions/list-institutions.cjs.map +1 -1
  101. package/dist/actions/list-institutions.d.cts +18 -4
  102. package/dist/actions/list-institutions.d.mts +18 -4
  103. package/dist/actions/list-institutions.mjs +3 -3
  104. package/dist/actions/list-institutions.mjs.map +1 -1
  105. package/dist/actions/list-member-accounts.cjs +3 -3
  106. package/dist/actions/list-member-accounts.cjs.map +1 -1
  107. package/dist/actions/list-member-accounts.d.cts +18 -4
  108. package/dist/actions/list-member-accounts.d.mts +18 -4
  109. package/dist/actions/list-member-accounts.mjs +3 -3
  110. package/dist/actions/list-member-accounts.mjs.map +1 -1
  111. package/dist/actions/list-members.cjs +3 -3
  112. package/dist/actions/list-members.cjs.map +1 -1
  113. package/dist/actions/list-members.d.cts +18 -4
  114. package/dist/actions/list-members.d.mts +18 -4
  115. package/dist/actions/list-members.mjs +3 -3
  116. package/dist/actions/list-members.mjs.map +1 -1
  117. package/dist/actions/list-rewards.cjs +3 -3
  118. package/dist/actions/list-rewards.cjs.map +1 -1
  119. package/dist/actions/list-rewards.d.cts +18 -4
  120. package/dist/actions/list-rewards.d.mts +18 -4
  121. package/dist/actions/list-rewards.mjs +3 -3
  122. package/dist/actions/list-rewards.mjs.map +1 -1
  123. package/dist/actions/list-statements-by-member.cjs +3 -3
  124. package/dist/actions/list-statements-by-member.cjs.map +1 -1
  125. package/dist/actions/list-statements-by-member.d.cts +18 -4
  126. package/dist/actions/list-statements-by-member.d.mts +18 -4
  127. package/dist/actions/list-statements-by-member.mjs +3 -3
  128. package/dist/actions/list-statements-by-member.mjs.map +1 -1
  129. package/dist/actions/list-taggings.cjs +2 -2
  130. package/dist/actions/list-taggings.cjs.map +1 -1
  131. package/dist/actions/list-taggings.d.cts +17 -3
  132. package/dist/actions/list-taggings.d.mts +17 -3
  133. package/dist/actions/list-taggings.mjs +2 -2
  134. package/dist/actions/list-taggings.mjs.map +1 -1
  135. package/dist/actions/list-tags.d.cts +15 -1
  136. package/dist/actions/list-tags.d.mts +15 -1
  137. package/dist/actions/list-transactions-by-member.cjs +7 -7
  138. package/dist/actions/list-transactions-by-member.cjs.map +1 -1
  139. package/dist/actions/list-transactions-by-member.d.cts +22 -8
  140. package/dist/actions/list-transactions-by-member.d.mts +22 -8
  141. package/dist/actions/list-transactions-by-member.mjs +7 -7
  142. package/dist/actions/list-transactions-by-member.mjs.map +1 -1
  143. package/dist/actions/list-transactions.cjs +7 -7
  144. package/dist/actions/list-transactions.cjs.map +1 -1
  145. package/dist/actions/list-transactions.d.cts +22 -8
  146. package/dist/actions/list-transactions.d.mts +22 -8
  147. package/dist/actions/list-transactions.mjs +7 -7
  148. package/dist/actions/list-transactions.mjs.map +1 -1
  149. package/dist/actions/list-users.cjs +3 -3
  150. package/dist/actions/list-users.cjs.map +1 -1
  151. package/dist/actions/list-users.d.cts +18 -4
  152. package/dist/actions/list-users.d.mts +18 -4
  153. package/dist/actions/list-users.mjs +3 -3
  154. package/dist/actions/list-users.mjs.map +1 -1
  155. package/dist/actions/read-account.cjs +1 -1
  156. package/dist/actions/read-account.cjs.map +1 -1
  157. package/dist/actions/read-account.d.cts +16 -2
  158. package/dist/actions/read-account.d.mts +16 -2
  159. package/dist/actions/read-account.mjs +1 -1
  160. package/dist/actions/read-account.mjs.map +1 -1
  161. package/dist/actions/read-category.cjs +1 -1
  162. package/dist/actions/read-category.cjs.map +1 -1
  163. package/dist/actions/read-category.d.cts +16 -2
  164. package/dist/actions/read-category.d.mts +16 -2
  165. package/dist/actions/read-category.mjs +1 -1
  166. package/dist/actions/read-category.mjs.map +1 -1
  167. package/dist/actions/read-fdx-account.d.cts +15 -1
  168. package/dist/actions/read-fdx-account.d.mts +15 -1
  169. package/dist/actions/read-institution.cjs +1 -1
  170. package/dist/actions/read-institution.cjs.map +1 -1
  171. package/dist/actions/read-institution.d.cts +16 -2
  172. package/dist/actions/read-institution.d.mts +16 -2
  173. package/dist/actions/read-institution.mjs +1 -1
  174. package/dist/actions/read-institution.mjs.map +1 -1
  175. package/dist/actions/read-transaction-by-account.cjs +7 -7
  176. package/dist/actions/read-transaction-by-account.cjs.map +1 -1
  177. package/dist/actions/read-transaction-by-account.d.cts +22 -8
  178. package/dist/actions/read-transaction-by-account.d.mts +22 -8
  179. package/dist/actions/read-transaction-by-account.mjs +7 -7
  180. package/dist/actions/read-transaction-by-account.mjs.map +1 -1
  181. package/dist/actions/read-transaction-rule.cjs +2 -2
  182. package/dist/actions/read-transaction-rule.cjs.map +1 -1
  183. package/dist/actions/read-transaction-rule.d.cts +17 -3
  184. package/dist/actions/read-transaction-rule.d.mts +17 -3
  185. package/dist/actions/read-transaction-rule.mjs +2 -2
  186. package/dist/actions/read-transaction-rule.mjs.map +1 -1
  187. package/dist/actions/read-transaction.cjs +1 -1
  188. package/dist/actions/read-transaction.cjs.map +1 -1
  189. package/dist/actions/read-transaction.d.cts +16 -2
  190. package/dist/actions/read-transaction.d.mts +16 -2
  191. package/dist/actions/read-transaction.mjs +1 -1
  192. package/dist/actions/read-transaction.mjs.map +1 -1
  193. package/dist/actions/update-transaction-rules.cjs +2 -2
  194. package/dist/actions/update-transaction-rules.cjs.map +1 -1
  195. package/dist/actions/update-transaction-rules.d.cts +17 -3
  196. package/dist/actions/update-transaction-rules.d.mts +17 -3
  197. package/dist/actions/update-transaction-rules.mjs +2 -2
  198. package/dist/actions/update-transaction-rules.mjs.map +1 -1
  199. package/dist/actions/update-transaction.cjs +2 -2
  200. package/dist/actions/update-transaction.cjs.map +1 -1
  201. package/dist/actions/update-transaction.d.cts +17 -3
  202. package/dist/actions/update-transaction.d.mts +17 -3
  203. package/dist/actions/update-transaction.mjs +2 -2
  204. package/dist/actions/update-transaction.mjs.map +1 -1
  205. package/dist/actions/update-users-taggings.cjs +1 -1
  206. package/dist/actions/update-users-taggings.cjs.map +1 -1
  207. package/dist/actions/update-users-taggings.d.cts +16 -2
  208. package/dist/actions/update-users-taggings.d.mts +16 -2
  209. package/dist/actions/update-users-taggings.mjs +1 -1
  210. package/dist/actions/update-users-taggings.mjs.map +1 -1
  211. package/dist/app.cjs +8 -2
  212. package/dist/app.cjs.map +1 -1
  213. package/dist/app.d.cts +10 -1
  214. package/dist/app.d.cts.map +1 -1
  215. package/dist/app.d.mts +10 -1
  216. package/dist/app.d.mts.map +1 -1
  217. package/dist/app.mjs +6 -1
  218. package/dist/app.mjs.map +1 -1
  219. package/package.json +1 -1
@@ -11,7 +11,7 @@ const MxTechnologiesCancelPartnerAccountOutput = zod.z.object({
11
11
  is_disabled: zod.z.boolean().describe("Indicates the user is now disabled. Always true on successful cancellation.").nullable(),
12
12
  effective_date: zod.z.string().describe("Date/time the user was disabled (ISO 8601).").nullable(),
13
13
  cancellation_reason: zod.z.string().describe("The cancellation reason provided, if any.").nullable().optional()
14
- }).describe("Response model for disabling an MX user account.");
14
+ }).passthrough().describe("Response model for disabling an MX user account.");
15
15
  const mxTechnologiesCancelPartnerAccount = require_action.action("MX_TECHNOLOGIES_CANCEL_PARTNER_ACCOUNT", {
16
16
  slug: "mx_technologies-cancel-partner-account",
17
17
  name: "Disable MX User Account",
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-partner-account.cjs","names":["z","action"],"sources":["../../src/actions/cancel-partner-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCancelPartnerAccountInput = z.object({\n effective_date: z.string().describe(\"Optional timestamp in ISO 8601 format to record when the cancellation takes effect. Stored in metadata for auditability. Defaults to current time if not provided.\").optional(),\n encoded_account_id: z.string().describe(\"The MX user GUID to disable. Format: USR-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),\n cancellation_reason: z.string().describe(\"Optional free-text reason for the cancellation. Stored in the user's metadata field for auditability.\").optional(),\n}).describe(\"Request model for disabling an MX user account.\\nDisabling a user prevents their accounts and transactions from being updated\\nand restricts access to their data until re-enabled.\");\nexport const MxTechnologiesCancelPartnerAccountOutput = z.object({\n user_guid: z.string().describe(\"The unique MX GUID of the disabled user.\").nullable(),\n is_disabled: z.boolean().describe(\"Indicates the user is now disabled. Always true on successful cancellation.\").nullable(),\n effective_date: z.string().describe(\"Date/time the user was disabled (ISO 8601).\").nullable(),\n cancellation_reason: z.string().describe(\"The cancellation reason provided, if any.\").nullable().optional(),\n}).describe(\"Response model for disabling an MX user account.\");\n\nexport const mxTechnologiesCancelPartnerAccount = action(\"MX_TECHNOLOGIES_CANCEL_PARTNER_ACCOUNT\", {\n slug: \"mx_technologies-cancel-partner-account\",\n name: \"Disable MX User Account\",\n description: \"Disables an MX user account, preventing background updates to accounts and transactions and restricting data access. The user can be re-enabled later via the update user endpoint. Uses MX Platform API: PUT /users/{user_guid} with is_disabled=true.\",\n input: MxTechnologiesCancelPartnerAccountInput,\n output: MxTechnologiesCancelPartnerAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CACnN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACvH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,qLAAqL;AACjM,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC1H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-partner-account.cjs","names":["z","action"],"sources":["../../src/actions/cancel-partner-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCancelPartnerAccountInput = z.object({\n effective_date: z.string().describe(\"Optional timestamp in ISO 8601 format to record when the cancellation takes effect. Stored in metadata for auditability. Defaults to current time if not provided.\").optional(),\n encoded_account_id: z.string().describe(\"The MX user GUID to disable. Format: USR-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),\n cancellation_reason: z.string().describe(\"Optional free-text reason for the cancellation. Stored in the user's metadata field for auditability.\").optional(),\n}).describe(\"Request model for disabling an MX user account.\\nDisabling a user prevents their accounts and transactions from being updated\\nand restricts access to their data until re-enabled.\");\nexport const MxTechnologiesCancelPartnerAccountOutput = z.object({\n user_guid: z.string().describe(\"The unique MX GUID of the disabled user.\").nullable(),\n is_disabled: z.boolean().describe(\"Indicates the user is now disabled. Always true on successful cancellation.\").nullable(),\n effective_date: z.string().describe(\"Date/time the user was disabled (ISO 8601).\").nullable(),\n cancellation_reason: z.string().describe(\"The cancellation reason provided, if any.\").nullable().optional(),\n}).passthrough().describe(\"Response model for disabling an MX user account.\");\n\nexport const mxTechnologiesCancelPartnerAccount = action(\"MX_TECHNOLOGIES_CANCEL_PARTNER_ACCOUNT\", {\n slug: \"mx_technologies-cancel-partner-account\",\n name: \"Disable MX User Account\",\n description: \"Disables an MX user account, preventing background updates to accounts and transactions and restricting data access. The user can be re-enabled later via the update user endpoint. Uses MX Platform API: PUT /users/{user_guid} with is_disabled=true.\",\n input: MxTechnologiesCancelPartnerAccountInput,\n output: MxTechnologiesCancelPartnerAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CACnN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACvH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,qLAAqL;AACjM,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC1H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,12 +11,26 @@ declare const MxTechnologiesCancelPartnerAccountOutput: z.ZodObject<{
11
11
  is_disabled: z.ZodNullable<z.ZodBoolean>;
12
12
  effective_date: z.ZodNullable<z.ZodString>;
13
13
  cancellation_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const mxTechnologiesCancelPartnerAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  encoded_account_id: string;
17
17
  effective_date?: string | undefined;
18
18
  cancellation_reason?: string | undefined;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
20
+ connectionId: z.ZodString;
21
+ entityId: z.ZodString;
22
+ instanceId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ username: z.ZodString;
25
+ password: z.ZodString;
26
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ username: z.ZodString;
32
+ password: z.ZodString;
33
+ }, z.core.$strip>>]>;
20
34
  //#endregion
21
35
  export { mxTechnologiesCancelPartnerAccount };
22
36
  //# sourceMappingURL=cancel-partner-account.d.cts.map
@@ -11,12 +11,26 @@ declare const MxTechnologiesCancelPartnerAccountOutput: z.ZodObject<{
11
11
  is_disabled: z.ZodNullable<z.ZodBoolean>;
12
12
  effective_date: z.ZodNullable<z.ZodString>;
13
13
  cancellation_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const mxTechnologiesCancelPartnerAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  encoded_account_id: string;
17
17
  effective_date?: string | undefined;
18
18
  cancellation_reason?: string | undefined;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
20
+ connectionId: z.ZodString;
21
+ entityId: z.ZodString;
22
+ instanceId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ username: z.ZodString;
25
+ password: z.ZodString;
26
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ username: z.ZodString;
32
+ password: z.ZodString;
33
+ }, z.core.$strip>>]>;
20
34
  //#endregion
21
35
  export { mxTechnologiesCancelPartnerAccount };
22
36
  //# sourceMappingURL=cancel-partner-account.d.mts.map
@@ -14,7 +14,7 @@ const mxTechnologiesCancelPartnerAccount = action("MX_TECHNOLOGIES_CANCEL_PARTNE
14
14
  is_disabled: z.boolean().describe("Indicates the user is now disabled. Always true on successful cancellation.").nullable(),
15
15
  effective_date: z.string().describe("Date/time the user was disabled (ISO 8601).").nullable(),
16
16
  cancellation_reason: z.string().describe("The cancellation reason provided, if any.").nullable().optional()
17
- }).describe("Response model for disabling an MX user account.")
17
+ }).passthrough().describe("Response model for disabling an MX user account.")
18
18
  });
19
19
  //#endregion
20
20
  export { mxTechnologiesCancelPartnerAccount };
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-partner-account.mjs","names":[],"sources":["../../src/actions/cancel-partner-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCancelPartnerAccountInput = z.object({\n effective_date: z.string().describe(\"Optional timestamp in ISO 8601 format to record when the cancellation takes effect. Stored in metadata for auditability. Defaults to current time if not provided.\").optional(),\n encoded_account_id: z.string().describe(\"The MX user GUID to disable. Format: USR-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),\n cancellation_reason: z.string().describe(\"Optional free-text reason for the cancellation. Stored in the user's metadata field for auditability.\").optional(),\n}).describe(\"Request model for disabling an MX user account.\\nDisabling a user prevents their accounts and transactions from being updated\\nand restricts access to their data until re-enabled.\");\nexport const MxTechnologiesCancelPartnerAccountOutput = z.object({\n user_guid: z.string().describe(\"The unique MX GUID of the disabled user.\").nullable(),\n is_disabled: z.boolean().describe(\"Indicates the user is now disabled. Always true on successful cancellation.\").nullable(),\n effective_date: z.string().describe(\"Date/time the user was disabled (ISO 8601).\").nullable(),\n cancellation_reason: z.string().describe(\"The cancellation reason provided, if any.\").nullable().optional(),\n}).describe(\"Response model for disabling an MX user account.\");\n\nexport const mxTechnologiesCancelPartnerAccount = action(\"MX_TECHNOLOGIES_CANCEL_PARTNER_ACCOUNT\", {\n slug: \"mx_technologies-cancel-partner-account\",\n name: \"Disable MX User Account\",\n description: \"Disables an MX user account, preventing background updates to accounts and transactions and restricting data access. The user can be re-enabled later via the update user endpoint. Uses MX Platform API: PUT /users/{user_guid} with is_disabled=true.\",\n input: MxTechnologiesCancelPartnerAccountInput,\n output: MxTechnologiesCancelPartnerAccountOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqD,EAAE,OAAO;EAC9D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EACnN,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACvH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,qLAYH;CACP,QAZsD,EAAE,OAAO;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC1H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-partner-account.mjs","names":[],"sources":["../../src/actions/cancel-partner-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCancelPartnerAccountInput = z.object({\n effective_date: z.string().describe(\"Optional timestamp in ISO 8601 format to record when the cancellation takes effect. Stored in metadata for auditability. Defaults to current time if not provided.\").optional(),\n encoded_account_id: z.string().describe(\"The MX user GUID to disable. Format: USR-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"),\n cancellation_reason: z.string().describe(\"Optional free-text reason for the cancellation. Stored in the user's metadata field for auditability.\").optional(),\n}).describe(\"Request model for disabling an MX user account.\\nDisabling a user prevents their accounts and transactions from being updated\\nand restricts access to their data until re-enabled.\");\nexport const MxTechnologiesCancelPartnerAccountOutput = z.object({\n user_guid: z.string().describe(\"The unique MX GUID of the disabled user.\").nullable(),\n is_disabled: z.boolean().describe(\"Indicates the user is now disabled. Always true on successful cancellation.\").nullable(),\n effective_date: z.string().describe(\"Date/time the user was disabled (ISO 8601).\").nullable(),\n cancellation_reason: z.string().describe(\"The cancellation reason provided, if any.\").nullable().optional(),\n}).passthrough().describe(\"Response model for disabling an MX user account.\");\n\nexport const mxTechnologiesCancelPartnerAccount = action(\"MX_TECHNOLOGIES_CANCEL_PARTNER_ACCOUNT\", {\n slug: \"mx_technologies-cancel-partner-account\",\n name: \"Disable MX User Account\",\n description: \"Disables an MX user account, preventing background updates to accounts and transactions and restricting data access. The user can be re-enabled later via the update user endpoint. Uses MX Platform API: PUT /users/{user_guid} with is_disabled=true.\",\n input: MxTechnologiesCancelPartnerAccountInput,\n output: MxTechnologiesCancelPartnerAccountOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqD,EAAE,OAAO;EAC9D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EACnN,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACvH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,qLAYH;CACP,QAZsD,EAAE,OAAO;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAC1H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -52,8 +52,8 @@ const MxTechnologiesCreateAccount_AccountDetailSchema = zod.z.object({
52
52
  institution_guid: zod.z.string().describe("MX institution GUID, if linked by aggregation").nullable().optional(),
53
53
  available_balance: zod.z.number().describe("Available funds for use, excludes holds").nullable().optional(),
54
54
  day_payment_is_due: zod.z.number().int().describe("Day of month when payment is due (1-31)").nullable().optional()
55
- }).describe("Detailed account information returned by the MX API.\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.");
56
- const MxTechnologiesCreateAccountOutput = zod.z.object({ account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable() }).describe("Response schema for a newly created account.");
55
+ }).passthrough().describe("Detailed account information returned by the MX API.\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.");
56
+ const MxTechnologiesCreateAccountOutput = zod.z.object({ account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable() }).passthrough().describe("Response schema for a newly created account.");
57
57
  const mxTechnologiesCreateAccount = require_action.action("MX_TECHNOLOGIES_CREATE_ACCOUNT", {
58
58
  slug: "mx_technologies-create-account",
59
59
  name: "Create account",
@@ -1 +1 @@
1
- {"version":3,"file":"create-account.cjs","names":["z","action"],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAccountInput = z.object({\n account: z.object({\n name: z.string().describe(\"Required. Human-readable name for the account (e.g., 'My Savings Account', 'Chase Checking')\"),\n type: z.enum([\"CHECKING\", \"SAVINGS\", \"CREDIT_CARD\", \"LOAN\", \"INVESTMENT\"]).describe(\"Account type. One of: CHECKING, SAVINGS, CREDIT_CARD, LOAN, INVESTMENT. Optional for manual accounts.\").optional(),\n balance: z.number().describe(\"Current ledger balance in the account's currency. Must be >= 0.\").optional(),\n subtype: z.string().describe(\"Further subdivision of type (e.g., 'PERSONAL_CHECKING', 'MONEY_MARKET'). May not be supported in all environments.\").optional(),\n metadata: z.string().describe(\"Freeform metadata field for storing custom data (e.g., JSON string).\").optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). Must be exactly 3 characters.\").optional(),\n account_number: z.string().describe(\"Account number (can be full or masked, e.g., '****1234'). May not be supported in all environments.\").optional(),\n routing_number: z.string().describe(\"Bank routing number (9 digits for US banks). May not be supported in all environments.\").optional(),\n available_balance: z.number().describe(\"Available funds for use (excludes pending transactions/holds). Must be >= 0.\").optional(),\n}).describe(\"Fields for creating a manual account. Only 'name' is required; all other fields are optional.\"),\n user_guid: z.string().describe(\"GUID of the user under which to create the account, must start with 'USR-'\"),\n}).describe(\"Request schema to create a manual account under a specified user.\");\nconst MxTechnologiesCreateAccount_AccountDetailSchema = z.object({\n id: z.string().describe(\"Partner-defined identifier for the account\").nullable().optional(),\n apr: z.number().describe(\"Annual percentage rate associated with the account\").nullable().optional(),\n apy: z.number().describe(\"Annual percentage yield associated with the account\").nullable().optional(),\n guid: z.string().describe(\"MX-defined unique account identifier (e.g., 'ACT-abc123')\").nullable().optional(),\n name: z.string().describe(\"Human-readable account name\").nullable().optional(),\n type: z.string().describe(\"High-level account type (e.g., 'CHECKING', 'SAVINGS', 'CREDIT_CARD', 'LOAN', 'INVESTMENT')\").nullable().optional(),\n balance: z.number().describe(\"Current ledger balance\").nullable().optional(),\n subtype: z.string().describe(\"Account subtype (e.g., 'PERSONAL_CHECKING')\").nullable().optional(),\n metadata: z.string().describe(\"Freeform metadata field\").nullable().optional(),\n nickname: z.string().describe(\"User-defined nickname for the account\").nullable().optional(),\n is_closed: z.boolean().describe(\"Whether the account is closed\").nullable().optional(),\n is_hidden: z.boolean().describe(\"Whether the account is hidden from views\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether this is a manual (non-aggregated) account\").nullable().optional(),\n user_guid: z.string().describe(\"MX-defined user GUID for this account\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when account was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when account was last updated\").nullable().optional(),\n member_guid: z.string().describe(\"MX member GUID, if linked by aggregation\").nullable().optional(),\n credit_limit: z.number().describe(\"Credit limit for credit accounts\").nullable().optional(),\n last_payment: z.number().describe(\"Amount of the last payment\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable().optional(),\n interest_rate: z.number().describe(\"Interest rate associated with the account\").nullable().optional(),\n account_number: z.string().describe(\"Account number (may be masked)\").nullable().optional(),\n payment_due_at: z.string().describe(\"ISO 8601 timestamp when payment is due\").nullable().optional(),\n routing_number: z.string().describe(\"Bank routing number\").nullable().optional(),\n last_payment_at: z.string().describe(\"ISO 8601 timestamp of last payment\").nullable().optional(),\n minimum_payment: z.number().describe(\"Minimum payment amount due\").nullable().optional(),\n available_credit: z.number().describe(\"Available credit for credit accounts\").nullable().optional(),\n institution_guid: z.string().describe(\"MX institution GUID, if linked by aggregation\").nullable().optional(),\n available_balance: z.number().describe(\"Available funds for use, excludes holds\").nullable().optional(),\n day_payment_is_due: z.number().int().describe(\"Day of month when payment is due (1-31)\").nullable().optional(),\n}).describe(\"Detailed account information returned by the MX API.\\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.\");\nexport const MxTechnologiesCreateAccountOutput = z.object({\n account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable(),\n}).describe(\"Response schema for a newly created account.\");\n\nexport const mxTechnologiesCreateAccount = action(\"MX_TECHNOLOGIES_CREATE_ACCOUNT\", {\n slug: \"mx_technologies-create-account\",\n name: \"Create account\",\n description: \"Creates a manual account for a specified user in MX Platform. Use this tool when you need to: - Add an external/off-platform account that isn't aggregated through MX - Create a test account for development purposes - Track accounts from institutions not supported by MX aggregation Note: Manual accounts do not aggregate data from financial institutions. They are created under the special 'Manual Institution' member and require manual updates for balance and transaction information. Requires: A valid user_guid (obtained from List Users or Create User).\",\n input: MxTechnologiesCreateAccountInput,\n output: MxTechnologiesCreateAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EACxH,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAY;GAAW;GAAe;GAAQ;EAAY,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACtM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC5J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACjI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACpJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACvI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,+FAA+F;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;AAC7G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,kDAAkDA,IAAAA,EAAE,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BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,uJAAuJ;AACnK,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAAS,gDAAgD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-account.cjs","names":["z","action"],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAccountInput = z.object({\n account: z.object({\n name: z.string().describe(\"Required. Human-readable name for the account (e.g., 'My Savings Account', 'Chase Checking')\"),\n type: z.enum([\"CHECKING\", \"SAVINGS\", \"CREDIT_CARD\", \"LOAN\", \"INVESTMENT\"]).describe(\"Account type. One of: CHECKING, SAVINGS, CREDIT_CARD, LOAN, INVESTMENT. Optional for manual accounts.\").optional(),\n balance: z.number().describe(\"Current ledger balance in the account's currency. Must be >= 0.\").optional(),\n subtype: z.string().describe(\"Further subdivision of type (e.g., 'PERSONAL_CHECKING', 'MONEY_MARKET'). May not be supported in all environments.\").optional(),\n metadata: z.string().describe(\"Freeform metadata field for storing custom data (e.g., JSON string).\").optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). Must be exactly 3 characters.\").optional(),\n account_number: z.string().describe(\"Account number (can be full or masked, e.g., '****1234'). May not be supported in all environments.\").optional(),\n routing_number: z.string().describe(\"Bank routing number (9 digits for US banks). May not be supported in all environments.\").optional(),\n available_balance: z.number().describe(\"Available funds for use (excludes pending transactions/holds). Must be >= 0.\").optional(),\n}).describe(\"Fields for creating a manual account. Only 'name' is required; all other fields are optional.\"),\n user_guid: z.string().describe(\"GUID of the user under which to create the account, must start with 'USR-'\"),\n}).describe(\"Request schema to create a manual account under a specified user.\");\nconst MxTechnologiesCreateAccount_AccountDetailSchema = z.object({\n id: z.string().describe(\"Partner-defined identifier for the account\").nullable().optional(),\n apr: z.number().describe(\"Annual percentage rate associated with the account\").nullable().optional(),\n apy: z.number().describe(\"Annual percentage yield associated with the account\").nullable().optional(),\n guid: z.string().describe(\"MX-defined unique account identifier (e.g., 'ACT-abc123')\").nullable().optional(),\n name: z.string().describe(\"Human-readable account name\").nullable().optional(),\n type: z.string().describe(\"High-level account type (e.g., 'CHECKING', 'SAVINGS', 'CREDIT_CARD', 'LOAN', 'INVESTMENT')\").nullable().optional(),\n balance: z.number().describe(\"Current ledger balance\").nullable().optional(),\n subtype: z.string().describe(\"Account subtype (e.g., 'PERSONAL_CHECKING')\").nullable().optional(),\n metadata: z.string().describe(\"Freeform metadata field\").nullable().optional(),\n nickname: z.string().describe(\"User-defined nickname for the account\").nullable().optional(),\n is_closed: z.boolean().describe(\"Whether the account is closed\").nullable().optional(),\n is_hidden: z.boolean().describe(\"Whether the account is hidden from views\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether this is a manual (non-aggregated) account\").nullable().optional(),\n user_guid: z.string().describe(\"MX-defined user GUID for this account\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when account was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when account was last updated\").nullable().optional(),\n member_guid: z.string().describe(\"MX member GUID, if linked by aggregation\").nullable().optional(),\n credit_limit: z.number().describe(\"Credit limit for credit accounts\").nullable().optional(),\n last_payment: z.number().describe(\"Amount of the last payment\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable().optional(),\n interest_rate: z.number().describe(\"Interest rate associated with the account\").nullable().optional(),\n account_number: z.string().describe(\"Account number (may be masked)\").nullable().optional(),\n payment_due_at: z.string().describe(\"ISO 8601 timestamp when payment is due\").nullable().optional(),\n routing_number: z.string().describe(\"Bank routing number\").nullable().optional(),\n last_payment_at: z.string().describe(\"ISO 8601 timestamp of last payment\").nullable().optional(),\n minimum_payment: z.number().describe(\"Minimum payment amount due\").nullable().optional(),\n available_credit: z.number().describe(\"Available credit for credit accounts\").nullable().optional(),\n institution_guid: z.string().describe(\"MX institution GUID, if linked by aggregation\").nullable().optional(),\n available_balance: z.number().describe(\"Available funds for use, excludes holds\").nullable().optional(),\n day_payment_is_due: z.number().int().describe(\"Day of month when payment is due (1-31)\").nullable().optional(),\n}).passthrough().describe(\"Detailed account information returned by the MX API.\\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.\");\nexport const MxTechnologiesCreateAccountOutput = z.object({\n account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable(),\n}).passthrough().describe(\"Response schema for a newly created account.\");\n\nexport const mxTechnologiesCreateAccount = action(\"MX_TECHNOLOGIES_CREATE_ACCOUNT\", {\n slug: \"mx_technologies-create-account\",\n name: \"Create account\",\n description: \"Creates a manual account for a specified user in MX Platform. Use this tool when you need to: - Add an external/off-platform account that isn't aggregated through MX - Create a test account for development purposes - Track accounts from institutions not supported by MX aggregation Note: Manual accounts do not aggregate data from financial institutions. They are created under the special 'Manual Institution' member and require manual updates for balance and transaction information. Requires: A valid user_guid (obtained from List Users or Create User).\",\n input: MxTechnologiesCreateAccountInput,\n output: MxTechnologiesCreateAccountOutput,\n});\n"],"m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A,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uJAAuJ;AACjL,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAAS,gDAAgD,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -53,8 +53,8 @@ declare const MxTechnologiesCreateAccountOutput: z.ZodObject<{
53
53
  institution_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  available_balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  day_payment_is_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- }, z.core.$strip>>;
57
- }, z.core.$strip>;
56
+ }, z.core.$loose>>;
57
+ }, z.core.$loose>;
58
58
  declare const mxTechnologiesCreateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  account: {
60
60
  name: string;
@@ -68,7 +68,21 @@ declare const mxTechnologiesCreateAccount: import("@keystrokehq/action").Workflo
68
68
  available_balance?: number | undefined;
69
69
  };
70
70
  user_guid: string;
71
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
71
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
72
+ connectionId: z.ZodString;
73
+ entityId: z.ZodString;
74
+ instanceId: z.ZodString;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ username: z.ZodString;
77
+ password: z.ZodString;
78
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
79
+ connectionId: z.ZodString;
80
+ entityId: z.ZodString;
81
+ instanceId: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ username: z.ZodString;
84
+ password: z.ZodString;
85
+ }, z.core.$strip>>]>;
72
86
  //#endregion
73
87
  export { mxTechnologiesCreateAccount };
74
88
  //# sourceMappingURL=create-account.d.cts.map
@@ -53,8 +53,8 @@ declare const MxTechnologiesCreateAccountOutput: z.ZodObject<{
53
53
  institution_guid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  available_balance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  day_payment_is_due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- }, z.core.$strip>>;
57
- }, z.core.$strip>;
56
+ }, z.core.$loose>>;
57
+ }, z.core.$loose>;
58
58
  declare const mxTechnologiesCreateAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
59
59
  account: {
60
60
  name: string;
@@ -68,7 +68,21 @@ declare const mxTechnologiesCreateAccount: import("@keystrokehq/action").Workflo
68
68
  available_balance?: number | undefined;
69
69
  };
70
70
  user_guid: string;
71
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
71
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
72
+ connectionId: z.ZodString;
73
+ entityId: z.ZodString;
74
+ instanceId: z.ZodString;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ username: z.ZodString;
77
+ password: z.ZodString;
78
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
79
+ connectionId: z.ZodString;
80
+ entityId: z.ZodString;
81
+ instanceId: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ username: z.ZodString;
84
+ password: z.ZodString;
85
+ }, z.core.$strip>>]>;
72
86
  //#endregion
73
87
  export { mxTechnologiesCreateAccount };
74
88
  //# sourceMappingURL=create-account.d.mts.map
@@ -52,13 +52,13 @@ const MxTechnologiesCreateAccount_AccountDetailSchema = z.object({
52
52
  institution_guid: z.string().describe("MX institution GUID, if linked by aggregation").nullable().optional(),
53
53
  available_balance: z.number().describe("Available funds for use, excludes holds").nullable().optional(),
54
54
  day_payment_is_due: z.number().int().describe("Day of month when payment is due (1-31)").nullable().optional()
55
- }).describe("Detailed account information returned by the MX API.\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.");
55
+ }).passthrough().describe("Detailed account information returned by the MX API.\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.");
56
56
  const mxTechnologiesCreateAccount = action("MX_TECHNOLOGIES_CREATE_ACCOUNT", {
57
57
  slug: "mx_technologies-create-account",
58
58
  name: "Create account",
59
59
  description: "Creates a manual account for a specified user in MX Platform. Use this tool when you need to: - Add an external/off-platform account that isn't aggregated through MX - Create a test account for development purposes - Track accounts from institutions not supported by MX aggregation Note: Manual accounts do not aggregate data from financial institutions. They are created under the special 'Manual Institution' member and require manual updates for balance and transaction information. Requires: A valid user_guid (obtained from List Users or Create User).",
60
60
  input: MxTechnologiesCreateAccountInput,
61
- output: z.object({ account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable() }).describe("Response schema for a newly created account.")
61
+ output: z.object({ account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable() }).passthrough().describe("Response schema for a newly created account.")
62
62
  });
63
63
  //#endregion
64
64
  export { mxTechnologiesCreateAccount };
@@ -1 +1 @@
1
- {"version":3,"file":"create-account.mjs","names":[],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAccountInput = z.object({\n account: z.object({\n name: z.string().describe(\"Required. Human-readable name for the account (e.g., 'My Savings Account', 'Chase Checking')\"),\n type: z.enum([\"CHECKING\", \"SAVINGS\", \"CREDIT_CARD\", \"LOAN\", \"INVESTMENT\"]).describe(\"Account type. One of: CHECKING, SAVINGS, CREDIT_CARD, LOAN, INVESTMENT. Optional for manual accounts.\").optional(),\n balance: z.number().describe(\"Current ledger balance in the account's currency. Must be >= 0.\").optional(),\n subtype: z.string().describe(\"Further subdivision of type (e.g., 'PERSONAL_CHECKING', 'MONEY_MARKET'). May not be supported in all environments.\").optional(),\n metadata: z.string().describe(\"Freeform metadata field for storing custom data (e.g., JSON string).\").optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). Must be exactly 3 characters.\").optional(),\n account_number: z.string().describe(\"Account number (can be full or masked, e.g., '****1234'). May not be supported in all environments.\").optional(),\n routing_number: z.string().describe(\"Bank routing number (9 digits for US banks). May not be supported in all environments.\").optional(),\n available_balance: z.number().describe(\"Available funds for use (excludes pending transactions/holds). Must be >= 0.\").optional(),\n}).describe(\"Fields for creating a manual account. Only 'name' is required; all other fields are optional.\"),\n user_guid: z.string().describe(\"GUID of the user under which to create the account, must start with 'USR-'\"),\n}).describe(\"Request schema to create a manual account under a specified user.\");\nconst MxTechnologiesCreateAccount_AccountDetailSchema = z.object({\n id: z.string().describe(\"Partner-defined identifier for the account\").nullable().optional(),\n apr: z.number().describe(\"Annual percentage rate associated with the account\").nullable().optional(),\n apy: z.number().describe(\"Annual percentage yield associated with the account\").nullable().optional(),\n guid: z.string().describe(\"MX-defined unique account identifier (e.g., 'ACT-abc123')\").nullable().optional(),\n name: z.string().describe(\"Human-readable account name\").nullable().optional(),\n type: z.string().describe(\"High-level account type (e.g., 'CHECKING', 'SAVINGS', 'CREDIT_CARD', 'LOAN', 'INVESTMENT')\").nullable().optional(),\n balance: z.number().describe(\"Current ledger balance\").nullable().optional(),\n subtype: z.string().describe(\"Account subtype (e.g., 'PERSONAL_CHECKING')\").nullable().optional(),\n metadata: z.string().describe(\"Freeform metadata field\").nullable().optional(),\n nickname: z.string().describe(\"User-defined nickname for the account\").nullable().optional(),\n is_closed: z.boolean().describe(\"Whether the account is closed\").nullable().optional(),\n is_hidden: z.boolean().describe(\"Whether the account is hidden from views\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether this is a manual (non-aggregated) account\").nullable().optional(),\n user_guid: z.string().describe(\"MX-defined user GUID for this account\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when account was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when account was last updated\").nullable().optional(),\n member_guid: z.string().describe(\"MX member GUID, if linked by aggregation\").nullable().optional(),\n credit_limit: z.number().describe(\"Credit limit for credit accounts\").nullable().optional(),\n last_payment: z.number().describe(\"Amount of the last payment\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable().optional(),\n interest_rate: z.number().describe(\"Interest rate associated with the account\").nullable().optional(),\n account_number: z.string().describe(\"Account number (may be masked)\").nullable().optional(),\n payment_due_at: z.string().describe(\"ISO 8601 timestamp when payment is due\").nullable().optional(),\n routing_number: z.string().describe(\"Bank routing number\").nullable().optional(),\n last_payment_at: z.string().describe(\"ISO 8601 timestamp of last payment\").nullable().optional(),\n minimum_payment: z.number().describe(\"Minimum payment amount due\").nullable().optional(),\n available_credit: z.number().describe(\"Available credit for credit accounts\").nullable().optional(),\n institution_guid: z.string().describe(\"MX institution GUID, if linked by aggregation\").nullable().optional(),\n available_balance: z.number().describe(\"Available funds for use, excludes holds\").nullable().optional(),\n day_payment_is_due: z.number().int().describe(\"Day of month when payment is due (1-31)\").nullable().optional(),\n}).describe(\"Detailed account information returned by the MX API.\\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.\");\nexport const MxTechnologiesCreateAccountOutput = z.object({\n account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable(),\n}).describe(\"Response schema for a newly created account.\");\n\nexport const mxTechnologiesCreateAccount = action(\"MX_TECHNOLOGIES_CREATE_ACCOUNT\", {\n slug: \"mx_technologies-create-account\",\n name: \"Create account\",\n description: \"Creates a manual account for a specified user in MX Platform. Use this tool when you need to: - Add an external/off-platform account that isn't aggregated through MX - Create a test account for development purposes - Track accounts from institutions not supported by MX aggregation Note: Manual accounts do not aggregate data from financial institutions. They are created under the special 'Manual Institution' member and require manual updates for balance and transaction information. Requires: A valid user_guid (obtained from List Users or Create User).\",\n input: MxTechnologiesCreateAccountInput,\n output: MxTechnologiesCreateAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EACxH,MAAM,EAAE,KAAK;GAAC;GAAY;GAAW;GAAe;GAAQ;EAAY,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACtM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC5J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACjI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACpJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACvI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,+FAA+F;CACzG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;AAC7G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE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E,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,uJAAuJ;AAKnK,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,gDAAgD,SAAS,EACpE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-account.mjs","names":[],"sources":["../../src/actions/create-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAccountInput = z.object({\n account: z.object({\n name: z.string().describe(\"Required. Human-readable name for the account (e.g., 'My Savings Account', 'Chase Checking')\"),\n type: z.enum([\"CHECKING\", \"SAVINGS\", \"CREDIT_CARD\", \"LOAN\", \"INVESTMENT\"]).describe(\"Account type. One of: CHECKING, SAVINGS, CREDIT_CARD, LOAN, INVESTMENT. Optional for manual accounts.\").optional(),\n balance: z.number().describe(\"Current ledger balance in the account's currency. Must be >= 0.\").optional(),\n subtype: z.string().describe(\"Further subdivision of type (e.g., 'PERSONAL_CHECKING', 'MONEY_MARKET'). May not be supported in all environments.\").optional(),\n metadata: z.string().describe(\"Freeform metadata field for storing custom data (e.g., JSON string).\").optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). Must be exactly 3 characters.\").optional(),\n account_number: z.string().describe(\"Account number (can be full or masked, e.g., '****1234'). May not be supported in all environments.\").optional(),\n routing_number: z.string().describe(\"Bank routing number (9 digits for US banks). May not be supported in all environments.\").optional(),\n available_balance: z.number().describe(\"Available funds for use (excludes pending transactions/holds). Must be >= 0.\").optional(),\n}).describe(\"Fields for creating a manual account. Only 'name' is required; all other fields are optional.\"),\n user_guid: z.string().describe(\"GUID of the user under which to create the account, must start with 'USR-'\"),\n}).describe(\"Request schema to create a manual account under a specified user.\");\nconst MxTechnologiesCreateAccount_AccountDetailSchema = z.object({\n id: z.string().describe(\"Partner-defined identifier for the account\").nullable().optional(),\n apr: z.number().describe(\"Annual percentage rate associated with the account\").nullable().optional(),\n apy: z.number().describe(\"Annual percentage yield associated with the account\").nullable().optional(),\n guid: z.string().describe(\"MX-defined unique account identifier (e.g., 'ACT-abc123')\").nullable().optional(),\n name: z.string().describe(\"Human-readable account name\").nullable().optional(),\n type: z.string().describe(\"High-level account type (e.g., 'CHECKING', 'SAVINGS', 'CREDIT_CARD', 'LOAN', 'INVESTMENT')\").nullable().optional(),\n balance: z.number().describe(\"Current ledger balance\").nullable().optional(),\n subtype: z.string().describe(\"Account subtype (e.g., 'PERSONAL_CHECKING')\").nullable().optional(),\n metadata: z.string().describe(\"Freeform metadata field\").nullable().optional(),\n nickname: z.string().describe(\"User-defined nickname for the account\").nullable().optional(),\n is_closed: z.boolean().describe(\"Whether the account is closed\").nullable().optional(),\n is_hidden: z.boolean().describe(\"Whether the account is hidden from views\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether this is a manual (non-aggregated) account\").nullable().optional(),\n user_guid: z.string().describe(\"MX-defined user GUID for this account\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when account was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when account was last updated\").nullable().optional(),\n member_guid: z.string().describe(\"MX member GUID, if linked by aggregation\").nullable().optional(),\n credit_limit: z.number().describe(\"Credit limit for credit accounts\").nullable().optional(),\n last_payment: z.number().describe(\"Amount of the last payment\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable().optional(),\n interest_rate: z.number().describe(\"Interest rate associated with the account\").nullable().optional(),\n account_number: z.string().describe(\"Account number (may be masked)\").nullable().optional(),\n payment_due_at: z.string().describe(\"ISO 8601 timestamp when payment is due\").nullable().optional(),\n routing_number: z.string().describe(\"Bank routing number\").nullable().optional(),\n last_payment_at: z.string().describe(\"ISO 8601 timestamp of last payment\").nullable().optional(),\n minimum_payment: z.number().describe(\"Minimum payment amount due\").nullable().optional(),\n available_credit: z.number().describe(\"Available credit for credit accounts\").nullable().optional(),\n institution_guid: z.string().describe(\"MX institution GUID, if linked by aggregation\").nullable().optional(),\n available_balance: z.number().describe(\"Available funds for use, excludes holds\").nullable().optional(),\n day_payment_is_due: z.number().int().describe(\"Day of month when payment is due (1-31)\").nullable().optional(),\n}).passthrough().describe(\"Detailed account information returned by the MX API.\\nNote: Many fields may be null for manual accounts since they only apply to aggregated accounts.\");\nexport const MxTechnologiesCreateAccountOutput = z.object({\n account: MxTechnologiesCreateAccount_AccountDetailSchema.nullable(),\n}).passthrough().describe(\"Response schema for a newly created account.\");\n\nexport const mxTechnologiesCreateAccount = action(\"MX_TECHNOLOGIES_CREATE_ACCOUNT\", {\n slug: \"mx_technologies-create-account\",\n name: \"Create account\",\n description: \"Creates a manual account for a specified user in MX Platform. Use this tool when you need to: - Add an external/off-platform account that isn't aggregated through MX - Create a test account for development purposes - Track accounts from institutions not supported by MX aggregation Note: Manual accounts do not aggregate data from financial institutions. They are created under the special 'Manual Institution' member and require manual updates for balance and transaction information. Requires: A valid user_guid (obtained from List Users or Create User).\",\n input: MxTechnologiesCreateAccountInput,\n output: MxTechnologiesCreateAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EACxH,MAAM,EAAE,KAAK;GAAC;GAAY;GAAW;GAAe;GAAQ;EAAY,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACtM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO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AAS,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uJAAuJ;AAKjL,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,gDAAgD,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const MxTechnologiesCreateAudienceApiCredentialsInput = zod.z.object({
8
8
  const MxTechnologiesCreateAudienceApiCredentialsOutput = zod.z.object({
9
9
  client_id: zod.z.string().describe("Audience API credential client ID").nullable(),
10
10
  client_secret: zod.z.string().describe("Audience API credential client secret").nullable()
11
- }).describe("Response model with Audience API client credentials.");
11
+ }).passthrough().describe("Response model with Audience API client credentials.");
12
12
  const mxTechnologiesCreateAudienceApiCredentials = require_action.action("MX_TECHNOLOGIES_CREATE_AUDIENCE_API_CREDENTIALS", {
13
13
  slug: "mx_technologies-create-audience-api-credentials",
14
14
  name: "Retrieve Audience API Credentials",
@@ -1 +1 @@
1
- {"version":3,"file":"create-audience-api-credentials.cjs","names":["z","action"],"sources":["../../src/actions/create-audience-api-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAudienceApiCredentialsInput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID (optional; falls back to env)\").optional(),\n client_secret: z.string().describe(\"Audience API credential client secret (optional; falls back to env)\").optional(),\n}).describe(\"Request model for retrieving Audience API credentials.\\n\\nThis tool first attempts to use the provided client_id and client_secret.\\nIf they are not provided, it falls back to environment variables:\\nMX_AUDIENCE_CLIENT_ID and MX_AUDIENCE_CLIENT_SECRET.\\nAs a final fallback, it will also look in metadata extras (if present).\");\nexport const MxTechnologiesCreateAudienceApiCredentialsOutput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID\").nullable(),\n client_secret: z.string().describe(\"Audience API credential client secret\").nullable(),\n}).describe(\"Response model with Audience API client credentials.\");\n\nexport const mxTechnologiesCreateAudienceApiCredentials = action(\"MX_TECHNOLOGIES_CREATE_AUDIENCE_API_CREDENTIALS\", {\n slug: \"mx_technologies-create-audience-api-credentials\",\n name: \"Retrieve Audience API Credentials\",\n description: \"Tool to retrieve Audience API credentials. Use when obtaining client_id and client_secret for Audience Service authentication before generating an access token. Credentials must be created in the Partner Dashboard (Partner Administrator → Authentication → Audience API Key). The tool prefers explicitly provided values, then falls back to environment variables.\",\n input: MxTechnologiesCreateAudienceApiCredentialsInput,\n output: MxTechnologiesCreateAudienceApiCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,uUAAuU;AACnV,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-audience-api-credentials.cjs","names":["z","action"],"sources":["../../src/actions/create-audience-api-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAudienceApiCredentialsInput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID (optional; falls back to env)\").optional(),\n client_secret: z.string().describe(\"Audience API credential client secret (optional; falls back to env)\").optional(),\n}).describe(\"Request model for retrieving Audience API credentials.\\n\\nThis tool first attempts to use the provided client_id and client_secret.\\nIf they are not provided, it falls back to environment variables:\\nMX_AUDIENCE_CLIENT_ID and MX_AUDIENCE_CLIENT_SECRET.\\nAs a final fallback, it will also look in metadata extras (if present).\");\nexport const MxTechnologiesCreateAudienceApiCredentialsOutput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID\").nullable(),\n client_secret: z.string().describe(\"Audience API credential client secret\").nullable(),\n}).passthrough().describe(\"Response model with Audience API client credentials.\");\n\nexport const mxTechnologiesCreateAudienceApiCredentials = action(\"MX_TECHNOLOGIES_CREATE_AUDIENCE_API_CREDENTIALS\", {\n slug: \"mx_technologies-create-audience-api-credentials\",\n name: \"Retrieve Audience API Credentials\",\n description: \"Tool to retrieve Audience API credentials. Use when obtaining client_id and client_secret for Audience Service authentication before generating an access token. Credentials must be created in the Partner Dashboard (Partner Administrator → Authentication → Audience API Key). The tool prefers explicitly provided values, then falls back to environment variables.\",\n input: MxTechnologiesCreateAudienceApiCredentialsInput,\n output: MxTechnologiesCreateAudienceApiCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,uUAAuU;AACnV,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,11 +8,25 @@ declare const MxTechnologiesCreateAudienceApiCredentialsInput: z.ZodObject<{
8
8
  declare const MxTechnologiesCreateAudienceApiCredentialsOutput: z.ZodObject<{
9
9
  client_id: z.ZodNullable<z.ZodString>;
10
10
  client_secret: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const mxTechnologiesCreateAudienceApiCredentials: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  client_id?: string | undefined;
14
14
  client_secret?: string | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ username: z.ZodString;
21
+ password: z.ZodString;
22
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
23
+ connectionId: z.ZodString;
24
+ entityId: z.ZodString;
25
+ instanceId: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ username: z.ZodString;
28
+ password: z.ZodString;
29
+ }, z.core.$strip>>]>;
16
30
  //#endregion
17
31
  export { mxTechnologiesCreateAudienceApiCredentials };
18
32
  //# sourceMappingURL=create-audience-api-credentials.d.cts.map
@@ -8,11 +8,25 @@ declare const MxTechnologiesCreateAudienceApiCredentialsInput: z.ZodObject<{
8
8
  declare const MxTechnologiesCreateAudienceApiCredentialsOutput: z.ZodObject<{
9
9
  client_id: z.ZodNullable<z.ZodString>;
10
10
  client_secret: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const mxTechnologiesCreateAudienceApiCredentials: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  client_id?: string | undefined;
14
14
  client_secret?: string | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ username: z.ZodString;
21
+ password: z.ZodString;
22
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
23
+ connectionId: z.ZodString;
24
+ entityId: z.ZodString;
25
+ instanceId: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ username: z.ZodString;
28
+ password: z.ZodString;
29
+ }, z.core.$strip>>]>;
16
30
  //#endregion
17
31
  export { mxTechnologiesCreateAudienceApiCredentials };
18
32
  //# sourceMappingURL=create-audience-api-credentials.d.mts.map
@@ -11,7 +11,7 @@ const mxTechnologiesCreateAudienceApiCredentials = action("MX_TECHNOLOGIES_CREAT
11
11
  output: z.object({
12
12
  client_id: z.string().describe("Audience API credential client ID").nullable(),
13
13
  client_secret: z.string().describe("Audience API credential client secret").nullable()
14
- }).describe("Response model with Audience API client credentials.")
14
+ }).passthrough().describe("Response model with Audience API client credentials.")
15
15
  });
16
16
  //#endregion
17
17
  export { mxTechnologiesCreateAudienceApiCredentials };
@@ -1 +1 @@
1
- {"version":3,"file":"create-audience-api-credentials.mjs","names":[],"sources":["../../src/actions/create-audience-api-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAudienceApiCredentialsInput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID (optional; falls back to env)\").optional(),\n client_secret: z.string().describe(\"Audience API credential client secret (optional; falls back to env)\").optional(),\n}).describe(\"Request model for retrieving Audience API credentials.\\n\\nThis tool first attempts to use the provided client_id and client_secret.\\nIf they are not provided, it falls back to environment variables:\\nMX_AUDIENCE_CLIENT_ID and MX_AUDIENCE_CLIENT_SECRET.\\nAs a final fallback, it will also look in metadata extras (if present).\");\nexport const MxTechnologiesCreateAudienceApiCredentialsOutput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID\").nullable(),\n client_secret: z.string().describe(\"Audience API credential client secret\").nullable(),\n}).describe(\"Response model with Audience API client credentials.\");\n\nexport const mxTechnologiesCreateAudienceApiCredentials = action(\"MX_TECHNOLOGIES_CREATE_AUDIENCE_API_CREDENTIALS\", {\n slug: \"mx_technologies-create-audience-api-credentials\",\n name: \"Retrieve Audience API Credentials\",\n description: \"Tool to retrieve Audience API credentials. Use when obtaining client_id and client_secret for Audience Service authentication before generating an access token. Credentials must be created in the Partner Dashboard (Partner Administrator → Authentication → Audience API Key). The tool prefers explicitly provided values, then falls back to environment variables.\",\n input: MxTechnologiesCreateAudienceApiCredentialsInput,\n output: MxTechnologiesCreateAudienceApiCredentialsOutput,\n});\n"],"mappings":";;AAaA,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6D,EAAE,OAAO;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,uUAUH;CACP,QAV8D,EAAE,OAAO;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-audience-api-credentials.mjs","names":[],"sources":["../../src/actions/create-audience-api-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateAudienceApiCredentialsInput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID (optional; falls back to env)\").optional(),\n client_secret: z.string().describe(\"Audience API credential client secret (optional; falls back to env)\").optional(),\n}).describe(\"Request model for retrieving Audience API credentials.\\n\\nThis tool first attempts to use the provided client_id and client_secret.\\nIf they are not provided, it falls back to environment variables:\\nMX_AUDIENCE_CLIENT_ID and MX_AUDIENCE_CLIENT_SECRET.\\nAs a final fallback, it will also look in metadata extras (if present).\");\nexport const MxTechnologiesCreateAudienceApiCredentialsOutput = z.object({\n client_id: z.string().describe(\"Audience API credential client ID\").nullable(),\n client_secret: z.string().describe(\"Audience API credential client secret\").nullable(),\n}).passthrough().describe(\"Response model with Audience API client credentials.\");\n\nexport const mxTechnologiesCreateAudienceApiCredentials = action(\"MX_TECHNOLOGIES_CREATE_AUDIENCE_API_CREDENTIALS\", {\n slug: \"mx_technologies-create-audience-api-credentials\",\n name: \"Retrieve Audience API Credentials\",\n description: \"Tool to retrieve Audience API credentials. Use when obtaining client_id and client_secret for Audience Service authentication before generating an access token. Credentials must be created in the Partner Dashboard (Partner Administrator → Authentication → Audience API Key). The tool prefers explicitly provided values, then falls back to environment variables.\",\n input: MxTechnologiesCreateAudienceApiCredentialsInput,\n output: MxTechnologiesCreateAudienceApiCredentialsOutput,\n});\n"],"mappings":";;AAaA,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6D,EAAE,OAAO;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,uUAUH;CACP,QAV8D,EAAE,OAAO;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const MxTechnologiesCreateMemberInput = zod.z.object({
9
9
  credentials: zod.z.array(zod.z.object({
10
10
  guid: zod.z.string().describe("Credential GUID obtained from the List Institution Credentials endpoint (e.g., 'CRD-1ec152cd-e628-ac04-c4f0-f09a32b7c982')."),
11
11
  value: zod.z.string().describe("End-user's credential value (e.g., username or password). For MX Bank test institution, use 'mxuser' for LOGIN and 'password' for PASSWORD.")
12
- }).describe("Institution credential for non-OAuth member connections.")).describe("List of credential objects for non-OAuth members. Each credential has a 'guid' (from List Institution Credentials) and 'value' (user input). Required unless is_oauth=true.").optional(),
12
+ }).passthrough().describe("Institution credential for non-OAuth member connections.")).describe("List of credential objects for non-OAuth members. Each credential has a 'guid' (from List Institution Credentials) and 'value' (user input). Required unless is_oauth=true.").optional(),
13
13
  institution_code: zod.z.string().describe("MX institution code identifying the financial institution (e.g., 'mxbank' for test, or real codes like 'chase', 'wells_fargo'). Obtain from List Institutions endpoint."),
14
14
  skip_aggregation: zod.z.boolean().describe("If true, skip the automatic aggregation that normally starts when member is created.").optional(),
15
15
  background_aggregation_is_disabled: zod.z.boolean().describe("If true, disable background aggregation for this member.").optional()
@@ -35,8 +35,8 @@ const MxTechnologiesCreateMember_MemberResponseSchema = zod.z.object({
35
35
  is_being_aggregated: zod.z.boolean().describe("Whether the member is currently being aggregated.").nullable().optional(),
36
36
  successfully_aggregated_at: zod.z.string().describe("ISO 8601 timestamp of last successful aggregation.").nullable().optional(),
37
37
  background_aggregation_is_disabled: zod.z.boolean().describe("Whether background aggregation is disabled for this member.").nullable().optional()
38
- }).describe("Response schema for a member object returned by the MX API.");
39
- const MxTechnologiesCreateMemberOutput = zod.z.object({ member: MxTechnologiesCreateMember_MemberResponseSchema.nullable() }).describe("Response schema for CREATE_MEMBER action containing the newly created member.");
38
+ }).passthrough().describe("Response schema for a member object returned by the MX API.");
39
+ const MxTechnologiesCreateMemberOutput = zod.z.object({ member: MxTechnologiesCreateMember_MemberResponseSchema.nullable() }).passthrough().describe("Response schema for CREATE_MEMBER action containing the newly created member.");
40
40
  const mxTechnologiesCreateMember = require_action.action("MX_TECHNOLOGIES_CREATE_MEMBER", {
41
41
  slug: "mx_technologies-create-member",
42
42
  name: "Create member",
@@ -1 +1 @@
1
- {"version":3,"file":"create-member.cjs","names":["z","action"],"sources":["../../src/actions/create-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateMemberInput = z.object({\n member: z.object({\n id: z.string().describe(\"Partner-defined unique identifier for the member. If not provided, MX generates one.\").optional(),\n is_oauth: z.boolean().describe(\"Set to true for OAuth-based connections. When true, credentials are not required and oauth_window_uri will be returned.\").optional(),\n metadata: z.string().describe(\"Free-form string metadata to store with the member (max 256 characters).\").optional(),\n credentials: z.array(z.object({\n guid: z.string().describe(\"Credential GUID obtained from the List Institution Credentials endpoint (e.g., 'CRD-1ec152cd-e628-ac04-c4f0-f09a32b7c982').\"),\n value: z.string().describe(\"End-user's credential value (e.g., username or password). For MX Bank test institution, use 'mxuser' for LOGIN and 'password' for PASSWORD.\"),\n}).describe(\"Institution credential for non-OAuth member connections.\")).describe(\"List of credential objects for non-OAuth members. Each credential has a 'guid' (from List Institution Credentials) and 'value' (user input). Required unless is_oauth=true.\").optional(),\n institution_code: z.string().describe(\"MX institution code identifying the financial institution (e.g., 'mxbank' for test, or real codes like 'chase', 'wells_fargo'). Obtain from List Institutions endpoint.\"),\n skip_aggregation: z.boolean().describe(\"If true, skip the automatic aggregation that normally starts when member is created.\").optional(),\n background_aggregation_is_disabled: z.boolean().describe(\"If true, disable background aggregation for this member.\").optional(),\n}).describe(\"Member creation payload containing institution_code and credentials (for non-OAuth) or is_oauth flag (for OAuth flows).\"),\n user_guid: z.string().describe(\"The MX user GUID prefixed with 'USR-' (e.g., 'USR-fa7537f3-48aa-a683-a02a-b18940482f54'). Obtain from List Users or Create User endpoints.\"),\n x_callback_payload: z.string().describe(\"Base64-encoded payload to echo in member webhooks (max 1024 characters). Sent as X-CALLBACK-PAYLOAD header.\").optional(),\n client_redirect_url: z.string().describe(\"URL for OAuth redirect after authentication completes. Required for OAuth members.\").optional(),\n}).describe(\"Request schema for creating a member (connection between user and financial institution).\");\nconst MxTechnologiesCreateMember_MemberResponseSchema = z.object({\n id: z.string().describe(\"Partner-defined member identifier, if provided during creation.\").nullable().optional(),\n guid: z.string().describe(\"MX-generated unique identifier for the member (e.g., 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b').\").nullable(),\n name: z.string().describe(\"Name of the member/institution connection.\").nullable().optional(),\n user_id: z.string().describe(\"Partner-defined user ID, if available.\").nullable().optional(),\n is_oauth: z.boolean().describe(\"Whether this is an OAuth-based connection.\").nullable().optional(),\n metadata: z.string().describe(\"Free-form metadata stored with the member.\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether the member was manually created.\").nullable().optional(),\n user_guid: z.string().describe(\"GUID of the user this member belongs to.\").nullable(),\n aggregated_at: z.string().describe(\"ISO 8601 timestamp of last aggregation attempt.\").nullable().optional(),\n institution_code: z.string().describe(\"Code of the connected financial institution.\").nullable(),\n oauth_window_uri: z.string().describe(\"URI for OAuth authentication window. Present only for OAuth members.\").nullable().optional(),\n connection_status: z.string().describe(\"Current connection status code (e.g., 'CONNECTED', 'CHALLENGED', 'DENIED').\").nullable().optional(),\n is_managed_by_user: z.boolean().describe(\"Whether the member is managed by the user.\").nullable().optional(),\n is_being_aggregated: z.boolean().describe(\"Whether the member is currently being aggregated.\").nullable().optional(),\n successfully_aggregated_at: z.string().describe(\"ISO 8601 timestamp of last successful aggregation.\").nullable().optional(),\n background_aggregation_is_disabled: z.boolean().describe(\"Whether background aggregation is disabled for this member.\").nullable().optional(),\n}).describe(\"Response schema for a member object returned by the MX API.\");\nexport const MxTechnologiesCreateMemberOutput = z.object({\n member: MxTechnologiesCreateMember_MemberResponseSchema.nullable(),\n}).describe(\"Response schema for CREATE_MEMBER action containing the newly created member.\");\n\nexport const mxTechnologiesCreateMember = action(\"MX_TECHNOLOGIES_CREATE_MEMBER\", {\n slug: \"mx_technologies-create-member\",\n name: \"Create member\",\n description: \"Create a member to connect a user to a financial institution. A member represents the relationship between an MX user and a financial institution. For non-OAuth institutions, provide credentials obtained from List Institution Credentials. For OAuth institutions, set is_oauth=true and use the returned oauth_window_uri. Prerequisites: - user_guid from List Users or Create User - institution_code from List Institutions - credentials from List Institution Credentials (for non-OAuth) Test credentials for MX Bank (mxbank): username='mxuser', password='password'\",\n input: MxTechnologiesCreateMemberInput,\n output: MxTechnologiesCreateMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO;EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACzH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EACnK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACnH,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC9B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;GACvJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;EAC1K,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EACxQ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK;EAC/M,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACxI,oCAAoCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,yHAAyH;CACnI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC3K,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAChK,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAM,kDAAkD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BAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oCAAoCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQ,gDAAgD,SAAS,EACnE,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAE3F,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-member.cjs","names":["z","action"],"sources":["../../src/actions/create-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxTechnologiesCreateMemberInput = z.object({\n member: z.object({\n id: z.string().describe(\"Partner-defined unique identifier for the member. If not provided, MX generates one.\").optional(),\n is_oauth: z.boolean().describe(\"Set to true for OAuth-based connections. When true, credentials are not required and oauth_window_uri will be returned.\").optional(),\n metadata: z.string().describe(\"Free-form string metadata to store with the member (max 256 characters).\").optional(),\n credentials: z.array(z.object({\n guid: z.string().describe(\"Credential GUID obtained from the List Institution Credentials endpoint (e.g., 'CRD-1ec152cd-e628-ac04-c4f0-f09a32b7c982').\"),\n value: z.string().describe(\"End-user's credential value (e.g., username or password). For MX Bank test institution, use 'mxuser' for LOGIN and 'password' for PASSWORD.\"),\n}).passthrough().describe(\"Institution credential for non-OAuth member connections.\")).describe(\"List of credential objects for non-OAuth members. Each credential has a 'guid' (from List Institution Credentials) and 'value' (user input). Required unless is_oauth=true.\").optional(),\n institution_code: z.string().describe(\"MX institution code identifying the financial institution (e.g., 'mxbank' for test, or real codes like 'chase', 'wells_fargo'). Obtain from List Institutions endpoint.\"),\n skip_aggregation: z.boolean().describe(\"If true, skip the automatic aggregation that normally starts when member is created.\").optional(),\n background_aggregation_is_disabled: z.boolean().describe(\"If true, disable background aggregation for this member.\").optional(),\n}).describe(\"Member creation payload containing institution_code and credentials (for non-OAuth) or is_oauth flag (for OAuth flows).\"),\n user_guid: z.string().describe(\"The MX user GUID prefixed with 'USR-' (e.g., 'USR-fa7537f3-48aa-a683-a02a-b18940482f54'). Obtain from List Users or Create User endpoints.\"),\n x_callback_payload: z.string().describe(\"Base64-encoded payload to echo in member webhooks (max 1024 characters). Sent as X-CALLBACK-PAYLOAD header.\").optional(),\n client_redirect_url: z.string().describe(\"URL for OAuth redirect after authentication completes. Required for OAuth members.\").optional(),\n}).describe(\"Request schema for creating a member (connection between user and financial institution).\");\nconst MxTechnologiesCreateMember_MemberResponseSchema = z.object({\n id: z.string().describe(\"Partner-defined member identifier, if provided during creation.\").nullable().optional(),\n guid: z.string().describe(\"MX-generated unique identifier for the member (e.g., 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b').\").nullable(),\n name: z.string().describe(\"Name of the member/institution connection.\").nullable().optional(),\n user_id: z.string().describe(\"Partner-defined user ID, if available.\").nullable().optional(),\n is_oauth: z.boolean().describe(\"Whether this is an OAuth-based connection.\").nullable().optional(),\n metadata: z.string().describe(\"Free-form metadata stored with the member.\").nullable().optional(),\n is_manual: z.boolean().describe(\"Whether the member was manually created.\").nullable().optional(),\n user_guid: z.string().describe(\"GUID of the user this member belongs to.\").nullable(),\n aggregated_at: z.string().describe(\"ISO 8601 timestamp of last aggregation attempt.\").nullable().optional(),\n institution_code: z.string().describe(\"Code of the connected financial institution.\").nullable(),\n oauth_window_uri: z.string().describe(\"URI for OAuth authentication window. Present only for OAuth members.\").nullable().optional(),\n connection_status: z.string().describe(\"Current connection status code (e.g., 'CONNECTED', 'CHALLENGED', 'DENIED').\").nullable().optional(),\n is_managed_by_user: z.boolean().describe(\"Whether the member is managed by the user.\").nullable().optional(),\n is_being_aggregated: z.boolean().describe(\"Whether the member is currently being aggregated.\").nullable().optional(),\n successfully_aggregated_at: z.string().describe(\"ISO 8601 timestamp of last successful aggregation.\").nullable().optional(),\n background_aggregation_is_disabled: z.boolean().describe(\"Whether background aggregation is disabled for this member.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a member object returned by the MX API.\");\nexport const MxTechnologiesCreateMemberOutput = z.object({\n member: MxTechnologiesCreateMember_MemberResponseSchema.nullable(),\n}).passthrough().describe(\"Response schema for CREATE_MEMBER action containing the newly created member.\");\n\nexport const mxTechnologiesCreateMember = action(\"MX_TECHNOLOGIES_CREATE_MEMBER\", {\n slug: \"mx_technologies-create-member\",\n name: \"Create member\",\n description: \"Create a member to connect a user to a financial institution. A member represents the relationship between an MX user and a financial institution. For non-OAuth institutions, provide credentials obtained from List Institution Credentials. For OAuth institutions, set is_oauth=true and use the returned oauth_window_uri. Prerequisites: - user_guid from List Users or Create User - institution_code from List Institutions - credentials from List Institution Credentials (for non-OAuth) Test credentials for MX Bank (mxbank): username='mxuser', password='password'\",\n input: MxTechnologiesCreateMemberInput,\n output: MxTechnologiesCreateMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO;EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACzH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EACnK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACnH,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC9B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;GACvJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,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P,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const MxTechnologiesCreateMemberInput: z.ZodObject<{
9
9
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
10
  guid: z.ZodString;
11
11
  value: z.ZodString;
12
- }, z.core.$strip>>>;
12
+ }, z.core.$loose>>>;
13
13
  institution_code: z.ZodString;
14
14
  skip_aggregation: z.ZodOptional<z.ZodBoolean>;
15
15
  background_aggregation_is_disabled: z.ZodOptional<z.ZodBoolean>;
@@ -36,8 +36,8 @@ declare const MxTechnologiesCreateMemberOutput: z.ZodObject<{
36
36
  is_being_aggregated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
37
  successfully_aggregated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  background_aggregation_is_disabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const mxTechnologiesCreateMember: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  member: {
43
43
  institution_code: string;
@@ -45,6 +45,7 @@ declare const mxTechnologiesCreateMember: import("@keystrokehq/action").Workflow
45
45
  is_oauth?: boolean | undefined;
46
46
  metadata?: string | undefined;
47
47
  credentials?: {
48
+ [x: string]: unknown;
48
49
  guid: string;
49
50
  value: string;
50
51
  }[] | undefined;
@@ -54,7 +55,21 @@ declare const mxTechnologiesCreateMember: import("@keystrokehq/action").Workflow
54
55
  user_guid: string;
55
56
  x_callback_payload?: string | undefined;
56
57
  client_redirect_url?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
59
+ connectionId: z.ZodString;
60
+ entityId: z.ZodString;
61
+ instanceId: z.ZodString;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ username: z.ZodString;
64
+ password: z.ZodString;
65
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
66
+ connectionId: z.ZodString;
67
+ entityId: z.ZodString;
68
+ instanceId: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ username: z.ZodString;
71
+ password: z.ZodString;
72
+ }, z.core.$strip>>]>;
58
73
  //#endregion
59
74
  export { mxTechnologiesCreateMember };
60
75
  //# sourceMappingURL=create-member.d.cts.map
@@ -9,7 +9,7 @@ declare const MxTechnologiesCreateMemberInput: z.ZodObject<{
9
9
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
10
  guid: z.ZodString;
11
11
  value: z.ZodString;
12
- }, z.core.$strip>>>;
12
+ }, z.core.$loose>>>;
13
13
  institution_code: z.ZodString;
14
14
  skip_aggregation: z.ZodOptional<z.ZodBoolean>;
15
15
  background_aggregation_is_disabled: z.ZodOptional<z.ZodBoolean>;
@@ -36,8 +36,8 @@ declare const MxTechnologiesCreateMemberOutput: z.ZodObject<{
36
36
  is_being_aggregated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
37
  successfully_aggregated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  background_aggregation_is_disabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const mxTechnologiesCreateMember: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  member: {
43
43
  institution_code: string;
@@ -45,6 +45,7 @@ declare const mxTechnologiesCreateMember: import("@keystrokehq/action").Workflow
45
45
  is_oauth?: boolean | undefined;
46
46
  metadata?: string | undefined;
47
47
  credentials?: {
48
+ [x: string]: unknown;
48
49
  guid: string;
49
50
  value: string;
50
51
  }[] | undefined;
@@ -54,7 +55,21 @@ declare const mxTechnologiesCreateMember: import("@keystrokehq/action").Workflow
54
55
  user_guid: string;
55
56
  x_callback_payload?: string | undefined;
56
57
  client_redirect_url?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
59
+ connectionId: z.ZodString;
60
+ entityId: z.ZodString;
61
+ instanceId: z.ZodString;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ username: z.ZodString;
64
+ password: z.ZodString;
65
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mx_technologies", z.ZodObject<{
66
+ connectionId: z.ZodString;
67
+ entityId: z.ZodString;
68
+ instanceId: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ username: z.ZodString;
71
+ password: z.ZodString;
72
+ }, z.core.$strip>>]>;
58
73
  //#endregion
59
74
  export { mxTechnologiesCreateMember };
60
75
  //# sourceMappingURL=create-member.d.mts.map