@keystrokehq/spondyr 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/conditions-list.cjs +1 -0
  4. package/dist/actions/conditions-list.cjs.map +1 -1
  5. package/dist/actions/conditions-list.d.cts +3 -3
  6. package/dist/actions/conditions-list.d.cts.map +1 -1
  7. package/dist/actions/conditions-list.d.mts +3 -3
  8. package/dist/actions/conditions-list.d.mts.map +1 -1
  9. package/dist/actions/conditions-list.mjs +1 -0
  10. package/dist/actions/conditions-list.mjs.map +1 -1
  11. package/dist/actions/create-condition.cjs +1 -0
  12. package/dist/actions/create-condition.cjs.map +1 -1
  13. package/dist/actions/create-condition.d.cts +3 -6
  14. package/dist/actions/create-condition.d.cts.map +1 -1
  15. package/dist/actions/create-condition.d.mts +3 -6
  16. package/dist/actions/create-condition.d.mts.map +1 -1
  17. package/dist/actions/create-condition.mjs +1 -0
  18. package/dist/actions/create-condition.mjs.map +1 -1
  19. package/dist/actions/create-transaction-type.cjs +1 -0
  20. package/dist/actions/create-transaction-type.cjs.map +1 -1
  21. package/dist/actions/create-transaction-type.d.cts +3 -4
  22. package/dist/actions/create-transaction-type.d.cts.map +1 -1
  23. package/dist/actions/create-transaction-type.d.mts +3 -4
  24. package/dist/actions/create-transaction-type.d.mts.map +1 -1
  25. package/dist/actions/create-transaction-type.mjs +1 -0
  26. package/dist/actions/create-transaction-type.mjs.map +1 -1
  27. package/dist/actions/deliver-spondyr.cjs +1 -0
  28. package/dist/actions/deliver-spondyr.cjs.map +1 -1
  29. package/dist/actions/deliver-spondyr.d.cts +3 -21
  30. package/dist/actions/deliver-spondyr.d.cts.map +1 -1
  31. package/dist/actions/deliver-spondyr.d.mts +3 -21
  32. package/dist/actions/deliver-spondyr.d.mts.map +1 -1
  33. package/dist/actions/deliver-spondyr.mjs +1 -0
  34. package/dist/actions/deliver-spondyr.mjs.map +1 -1
  35. package/dist/actions/event-type-update.cjs +1 -0
  36. package/dist/actions/event-type-update.cjs.map +1 -1
  37. package/dist/actions/event-type-update.d.cts +3 -5
  38. package/dist/actions/event-type-update.d.cts.map +1 -1
  39. package/dist/actions/event-type-update.d.mts +3 -5
  40. package/dist/actions/event-type-update.d.mts.map +1 -1
  41. package/dist/actions/event-type-update.mjs +1 -0
  42. package/dist/actions/event-type-update.mjs.map +1 -1
  43. package/dist/actions/get-event-types.cjs +1 -0
  44. package/dist/actions/get-event-types.cjs.map +1 -1
  45. package/dist/actions/get-event-types.d.cts +3 -3
  46. package/dist/actions/get-event-types.d.cts.map +1 -1
  47. package/dist/actions/get-event-types.d.mts +3 -3
  48. package/dist/actions/get-event-types.d.mts.map +1 -1
  49. package/dist/actions/get-event-types.mjs +1 -0
  50. package/dist/actions/get-event-types.mjs.map +1 -1
  51. package/dist/actions/get-spondyr-status.cjs +1 -0
  52. package/dist/actions/get-spondyr-status.cjs.map +1 -1
  53. package/dist/actions/get-spondyr-status.d.cts +3 -7
  54. package/dist/actions/get-spondyr-status.d.cts.map +1 -1
  55. package/dist/actions/get-spondyr-status.d.mts +3 -7
  56. package/dist/actions/get-spondyr-status.d.mts.map +1 -1
  57. package/dist/actions/get-spondyr-status.mjs +1 -0
  58. package/dist/actions/get-spondyr-status.mjs.map +1 -1
  59. package/dist/actions/get-transaction-types.cjs +1 -0
  60. package/dist/actions/get-transaction-types.cjs.map +1 -1
  61. package/dist/actions/get-transaction-types.d.cts +3 -1
  62. package/dist/actions/get-transaction-types.d.cts.map +1 -1
  63. package/dist/actions/get-transaction-types.d.mts +3 -1
  64. package/dist/actions/get-transaction-types.d.mts.map +1 -1
  65. package/dist/actions/get-transaction-types.mjs +1 -0
  66. package/dist/actions/get-transaction-types.mjs.map +1 -1
  67. package/dist/actions/recipient-delete.cjs +1 -0
  68. package/dist/actions/recipient-delete.cjs.map +1 -1
  69. package/dist/actions/recipient-delete.d.cts +3 -4
  70. package/dist/actions/recipient-delete.d.cts.map +1 -1
  71. package/dist/actions/recipient-delete.d.mts +3 -4
  72. package/dist/actions/recipient-delete.d.mts.map +1 -1
  73. package/dist/actions/recipient-delete.mjs +1 -0
  74. package/dist/actions/recipient-delete.mjs.map +1 -1
  75. package/dist/actions/recipient-get.cjs +1 -0
  76. package/dist/actions/recipient-get.cjs.map +1 -1
  77. package/dist/actions/recipient-get.d.cts +3 -4
  78. package/dist/actions/recipient-get.d.cts.map +1 -1
  79. package/dist/actions/recipient-get.d.mts +3 -4
  80. package/dist/actions/recipient-get.d.mts.map +1 -1
  81. package/dist/actions/recipient-get.mjs +1 -0
  82. package/dist/actions/recipient-get.mjs.map +1 -1
  83. package/dist/actions/recipients-list.cjs +1 -0
  84. package/dist/actions/recipients-list.cjs.map +1 -1
  85. package/dist/actions/recipients-list.d.cts +3 -3
  86. package/dist/actions/recipients-list.d.cts.map +1 -1
  87. package/dist/actions/recipients-list.d.mts +3 -3
  88. package/dist/actions/recipients-list.d.mts.map +1 -1
  89. package/dist/actions/recipients-list.mjs +1 -0
  90. package/dist/actions/recipients-list.mjs.map +1 -1
  91. package/dist/actions/search-filter-create.cjs +1 -0
  92. package/dist/actions/search-filter-create.cjs.map +1 -1
  93. package/dist/actions/search-filter-create.d.cts +3 -5
  94. package/dist/actions/search-filter-create.d.cts.map +1 -1
  95. package/dist/actions/search-filter-create.d.mts +3 -5
  96. package/dist/actions/search-filter-create.d.mts.map +1 -1
  97. package/dist/actions/search-filter-create.mjs +1 -0
  98. package/dist/actions/search-filter-create.mjs.map +1 -1
  99. package/dist/actions/search-filter-delete.cjs +1 -0
  100. package/dist/actions/search-filter-delete.cjs.map +1 -1
  101. package/dist/actions/search-filter-delete.d.cts +3 -4
  102. package/dist/actions/search-filter-delete.d.cts.map +1 -1
  103. package/dist/actions/search-filter-delete.d.mts +3 -4
  104. package/dist/actions/search-filter-delete.d.mts.map +1 -1
  105. package/dist/actions/search-filter-delete.mjs +1 -0
  106. package/dist/actions/search-filter-delete.mjs.map +1 -1
  107. package/dist/actions/search-filter-get.cjs +1 -0
  108. package/dist/actions/search-filter-get.cjs.map +1 -1
  109. package/dist/actions/search-filter-get.d.cts +3 -4
  110. package/dist/actions/search-filter-get.d.cts.map +1 -1
  111. package/dist/actions/search-filter-get.d.mts +3 -4
  112. package/dist/actions/search-filter-get.d.mts.map +1 -1
  113. package/dist/actions/search-filter-get.mjs +1 -0
  114. package/dist/actions/search-filter-get.mjs.map +1 -1
  115. package/dist/actions/search-filters-list.cjs +1 -0
  116. package/dist/actions/search-filters-list.cjs.map +1 -1
  117. package/dist/actions/search-filters-list.d.cts +3 -3
  118. package/dist/actions/search-filters-list.d.cts.map +1 -1
  119. package/dist/actions/search-filters-list.d.mts +3 -3
  120. package/dist/actions/search-filters-list.d.mts.map +1 -1
  121. package/dist/actions/search-filters-list.mjs +1 -0
  122. package/dist/actions/search-filters-list.mjs.map +1 -1
  123. package/dist/actions/search-spondyrs.cjs +1 -0
  124. package/dist/actions/search-spondyrs.cjs.map +1 -1
  125. package/dist/actions/search-spondyrs.d.cts +3 -10
  126. package/dist/actions/search-spondyrs.d.cts.map +1 -1
  127. package/dist/actions/search-spondyrs.d.mts +3 -10
  128. package/dist/actions/search-spondyrs.d.mts.map +1 -1
  129. package/dist/actions/search-spondyrs.mjs +1 -0
  130. package/dist/actions/search-spondyrs.mjs.map +1 -1
  131. package/dist/actions/sso-stub.cjs +1 -0
  132. package/dist/actions/sso-stub.cjs.map +1 -1
  133. package/dist/actions/sso-stub.d.cts +3 -8
  134. package/dist/actions/sso-stub.d.cts.map +1 -1
  135. package/dist/actions/sso-stub.d.mts +3 -8
  136. package/dist/actions/sso-stub.d.mts.map +1 -1
  137. package/dist/actions/sso-stub.mjs +1 -0
  138. package/dist/actions/sso-stub.mjs.map +1 -1
  139. package/dist/actions/template-get.cjs +1 -0
  140. package/dist/actions/template-get.cjs.map +1 -1
  141. package/dist/actions/template-get.d.cts +3 -4
  142. package/dist/actions/template-get.d.cts.map +1 -1
  143. package/dist/actions/template-get.d.mts +3 -4
  144. package/dist/actions/template-get.d.mts.map +1 -1
  145. package/dist/actions/template-get.mjs +1 -0
  146. package/dist/actions/template-get.mjs.map +1 -1
  147. package/dist/actions/templates-list.cjs +1 -0
  148. package/dist/actions/templates-list.cjs.map +1 -1
  149. package/dist/actions/templates-list.d.cts +3 -3
  150. package/dist/actions/templates-list.d.cts.map +1 -1
  151. package/dist/actions/templates-list.d.mts +3 -3
  152. package/dist/actions/templates-list.d.mts.map +1 -1
  153. package/dist/actions/templates-list.mjs +1 -0
  154. package/dist/actions/templates-list.mjs.map +1 -1
  155. package/dist/actions/transaction-type-get.cjs +1 -0
  156. package/dist/actions/transaction-type-get.cjs.map +1 -1
  157. package/dist/actions/transaction-type-get.d.cts +3 -3
  158. package/dist/actions/transaction-type-get.d.cts.map +1 -1
  159. package/dist/actions/transaction-type-get.d.mts +3 -3
  160. package/dist/actions/transaction-type-get.d.mts.map +1 -1
  161. package/dist/actions/transaction-type-get.mjs +1 -0
  162. package/dist/actions/transaction-type-get.mjs.map +1 -1
  163. package/dist/actions/transaction-type-update.cjs +1 -0
  164. package/dist/actions/transaction-type-update.cjs.map +1 -1
  165. package/dist/actions/transaction-type-update.d.cts +3 -5
  166. package/dist/actions/transaction-type-update.d.cts.map +1 -1
  167. package/dist/actions/transaction-type-update.d.mts +3 -5
  168. package/dist/actions/transaction-type-update.d.mts.map +1 -1
  169. package/dist/actions/transaction-type-update.mjs +1 -0
  170. package/dist/actions/transaction-type-update.mjs.map +1 -1
  171. package/dist/app.cjs +9 -2
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +8 -1
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +8 -1
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +6 -2
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["spondyr","executeSpondyrTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["spondyr","executeSpondyrTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof spondyr.credential> {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof spondyr.credential> {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/conditions-list.ts
@@ -1 +1 @@
1
- {"version":3,"file":"conditions-list.cjs","names":["z","action"],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrConditionsListInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\").nullable(),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\").nullable(),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\").nullable(),\n}).passthrough().describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AACnL,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"conditions-list.cjs","names":["z","action"],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrConditionsListInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\").nullable(),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\").nullable(),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\").nullable(),\n}).passthrough().describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList: AppAction<\n typeof SpondyrConditionsListInput,\n typeof SpondyrConditionsListOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AACnL,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/conditions-list.d.ts
@@ -17,9 +19,7 @@ declare const SpondyrConditionsListOutput: z.ZodObject<{
17
19
  }>>;
18
20
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, z.core.$loose>;
20
- declare const spondyrConditionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- TransactionType: string;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const spondyrConditionsList: AppAction<typeof SpondyrConditionsListInput, typeof SpondyrConditionsListOutput, typeof spondyr.credential>;
23
23
  //#endregion
24
24
  export { spondyrConditionsList };
25
25
  //# sourceMappingURL=conditions-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conditions-list.d.cts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"conditions-list.d.cts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/conditions-list.d.ts
@@ -17,9 +19,7 @@ declare const SpondyrConditionsListOutput: z.ZodObject<{
17
19
  }>>;
18
20
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  }, z.core.$loose>;
20
- declare const spondyrConditionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- TransactionType: string;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const spondyrConditionsList: AppAction<typeof SpondyrConditionsListInput, typeof SpondyrConditionsListOutput, typeof spondyr.credential>;
23
23
  //#endregion
24
24
  export { spondyrConditionsList };
25
25
  //# sourceMappingURL=conditions-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conditions-list.d.mts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"conditions-list.d.mts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/conditions-list.ts
@@ -1 +1 @@
1
- {"version":3,"file":"conditions-list.mjs","names":[],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrConditionsListInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\").nullable(),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\").nullable(),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\").nullable(),\n}).passthrough().describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AAOnL,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9L,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"conditions-list.mjs","names":[],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrConditionsListInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\").nullable(),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\").nullable(),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\").nullable(),\n}).passthrough().describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList: AppAction<\n typeof SpondyrConditionsListInput,\n typeof SpondyrConditionsListOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,EACjD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AAOnL,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9L,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-condition.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-condition.cjs","names":["z","action"],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateConditionInput = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\").nullable(),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\").nullable(),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACzJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;CACjM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACjO,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;AACpL,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-condition.cjs","names":["z","action"],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrCreateConditionInput = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\").nullable(),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\").nullable(),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition: AppAction<\n typeof SpondyrCreateConditionInput,\n typeof SpondyrCreateConditionOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACzJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;CACjM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACjO,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;AACpL,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-condition.d.ts
@@ -15,12 +17,7 @@ declare const SpondyrCreateConditionOutput: z.ZodObject<{
15
17
  ReferenceID: z.ZodNullable<z.ZodString>;
16
18
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>;
18
- declare const spondyrCreateCondition: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- Name: string;
20
- FieldName: string;
21
- TransactionType: string;
22
- PossibleValues?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const spondyrCreateCondition: AppAction<typeof SpondyrCreateConditionInput, typeof SpondyrCreateConditionOutput, typeof spondyr.credential>;
24
21
  //#endregion
25
22
  export { spondyrCreateCondition };
26
23
  //# sourceMappingURL=create-condition.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-condition.d.cts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-condition.d.cts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-condition.d.ts
@@ -15,12 +17,7 @@ declare const SpondyrCreateConditionOutput: z.ZodObject<{
15
17
  ReferenceID: z.ZodNullable<z.ZodString>;
16
18
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>;
18
- declare const spondyrCreateCondition: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- Name: string;
20
- FieldName: string;
21
- TransactionType: string;
22
- PossibleValues?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const spondyrCreateCondition: AppAction<typeof SpondyrCreateConditionInput, typeof SpondyrCreateConditionOutput, typeof spondyr.credential>;
24
21
  //#endregion
25
22
  export { spondyrCreateCondition };
26
23
  //# sourceMappingURL=create-condition.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-condition.d.mts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-condition.d.mts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const spondyrCreateCondition = action("SPONDYR_CREATE_CONDITION", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-condition.mjs","names":[],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateConditionInput = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\").nullable(),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\").nullable(),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;AAgBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACzJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EACjM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EACjO,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;CACpL,CAAC,CAAC,CAAC,SAAS,wDAWH;CACP,QAX0C,EAAE,OAAO;EACnD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-condition.mjs","names":[],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrCreateConditionInput = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\").nullable(),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\").nullable(),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition: AppAction<\n typeof SpondyrCreateConditionInput,\n typeof SpondyrCreateConditionOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACzJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EACjM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EACjO,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;CACpL,CAAC,CAAC,CAAC,SAAS,wDAeH;CACP,QAf0C,EAAE,OAAO;EACnD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-transaction-type.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-transaction-type.cjs","names":["z","action"],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateTransactionTypeInput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\").nullable(),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrCreateTransactionType = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;AAClH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-transaction-type.cjs","names":["z","action"],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrCreateTransactionTypeInput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\").nullable(),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrCreateTransactionType: AppAction<\n typeof SpondyrCreateTransactionTypeInput,\n typeof SpondyrCreateTransactionTypeOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;AAClH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-transaction-type.d.ts
@@ -13,10 +15,7 @@ declare const SpondyrCreateTransactionTypeOutput: z.ZodObject<{
13
15
  ReferenceID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const spondyrCreateTransactionType: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- Name: string;
18
- TemplateJSON: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const spondyrCreateTransactionType: AppAction<typeof SpondyrCreateTransactionTypeInput, typeof SpondyrCreateTransactionTypeOutput, typeof spondyr.credential>;
20
19
  //#endregion
21
20
  export { spondyrCreateTransactionType };
22
21
  //# sourceMappingURL=create-transaction-type.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-transaction-type.d.cts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-transaction-type.d.cts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-transaction-type.d.ts
@@ -13,10 +15,7 @@ declare const SpondyrCreateTransactionTypeOutput: z.ZodObject<{
13
15
  ReferenceID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  }, z.core.$loose>;
16
- declare const spondyrCreateTransactionType: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- Name: string;
18
- TemplateJSON: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const spondyrCreateTransactionType: AppAction<typeof SpondyrCreateTransactionTypeInput, typeof SpondyrCreateTransactionTypeOutput, typeof spondyr.credential>;
20
19
  //#endregion
21
20
  export { spondyrCreateTransactionType };
22
21
  //# sourceMappingURL=create-transaction-type.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-transaction-type.d.mts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"create-transaction-type.d.mts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const spondyrCreateTransactionType = action("SPONDYR_CREATE_TRANSACTION_TYPE", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-transaction-type.mjs","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateTransactionTypeInput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\").nullable(),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrCreateTransactionType = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAClH,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAXgD,EAAE,OAAO;EACzD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-transaction-type.mjs","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrCreateTransactionTypeInput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\").nullable(),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrCreateTransactionType: AppAction<\n typeof SpondyrCreateTransactionTypeInput,\n typeof SpondyrCreateTransactionTypeOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAClH,CAAC,CAAC,CAAC,SAAS,+DAeH;CACP,QAfgD,EAAE,OAAO;EACzD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/deliver-spondyr.ts
@@ -1 +1 @@
1
- {"version":3,"file":"deliver-spondyr.cjs","names":["z","action"],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrDeliverSpondyrInput = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).passthrough().describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CACzK,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAChC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAClF,wBAAwBA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAO;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrL,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAChK,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"deliver-spondyr.cjs","names":["z","action"],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrDeliverSpondyrInput = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).passthrough().describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr: AppAction<\n typeof SpondyrDeliverSpondyrInput,\n typeof SpondyrDeliverSpondyrOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CACzK,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAChC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAClF,wBAAwBA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAO;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrL,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAChK,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/deliver-spondyr.d.ts
@@ -34,27 +36,7 @@ declare const SpondyrDeliverSpondyrOutput: z.ZodObject<{
34
36
  ReferenceID: z.ZodNullable<z.ZodString>;
35
37
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
38
  }, z.core.$loose>;
37
- declare const spondyrDeliverSpondyr: import("@keystrokehq/action").WorkflowActionDefinition<{
38
- ReferenceID: string;
39
- Template?: string | undefined;
40
- NewRecipients?: {
41
- [x: string]: unknown;
42
- Fax?: string | undefined;
43
- Zip?: string | undefined;
44
- City?: string | undefined;
45
- Email?: string | undefined;
46
- State?: string | undefined;
47
- Address1?: string | undefined;
48
- Address2?: string | undefined;
49
- LastName?: string | undefined;
50
- RemoteID?: string | undefined;
51
- Template?: string | undefined;
52
- FirstName?: string | undefined;
53
- MobilePhone?: string | undefined;
54
- TargetedDeliveryMethod?: "Fax" | "Email" | "Mail" | "Text" | undefined;
55
- }[] | undefined;
56
- OriginalRecipients?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ declare const spondyrDeliverSpondyr: AppAction<typeof SpondyrDeliverSpondyrInput, typeof SpondyrDeliverSpondyrOutput, typeof spondyr.credential>;
58
40
  //#endregion
59
41
  export { spondyrDeliverSpondyr };
60
42
  //# sourceMappingURL=deliver-spondyr.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deliver-spondyr.d.cts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"deliver-spondyr.d.cts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/deliver-spondyr.d.ts
@@ -34,27 +36,7 @@ declare const SpondyrDeliverSpondyrOutput: z.ZodObject<{
34
36
  ReferenceID: z.ZodNullable<z.ZodString>;
35
37
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
38
  }, z.core.$loose>;
37
- declare const spondyrDeliverSpondyr: import("@keystrokehq/action").WorkflowActionDefinition<{
38
- ReferenceID: string;
39
- Template?: string | undefined;
40
- NewRecipients?: {
41
- [x: string]: unknown;
42
- Fax?: string | undefined;
43
- Zip?: string | undefined;
44
- City?: string | undefined;
45
- Email?: string | undefined;
46
- State?: string | undefined;
47
- Address1?: string | undefined;
48
- Address2?: string | undefined;
49
- LastName?: string | undefined;
50
- RemoteID?: string | undefined;
51
- Template?: string | undefined;
52
- FirstName?: string | undefined;
53
- MobilePhone?: string | undefined;
54
- TargetedDeliveryMethod?: "Fax" | "Email" | "Mail" | "Text" | undefined;
55
- }[] | undefined;
56
- OriginalRecipients?: string | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ declare const spondyrDeliverSpondyr: AppAction<typeof SpondyrDeliverSpondyrInput, typeof SpondyrDeliverSpondyrOutput, typeof spondyr.credential>;
58
40
  //#endregion
59
41
  export { spondyrDeliverSpondyr };
60
42
  //# sourceMappingURL=deliver-spondyr.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deliver-spondyr.d.mts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAM3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"deliver-spondyr.d.mts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAM3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const spondyrDeliverSpondyr = action("SPONDYR_DELIVER_SPONDYR", {
@@ -1 +1 @@
1
- {"version":3,"file":"deliver-spondyr.mjs","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrDeliverSpondyrInput = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).passthrough().describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EACzK,eAAe,EAAE,MAAM,EAAE,OAAO;GAChC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;GAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAClF,wBAAwB,EAAE,KAAK;IAAC;IAAS;IAAO;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACrL,oBAAoB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAChK,CAAC,CAAC,CAAC,SAAS,+EAWH;CACP,QAXyC,EAAE,OAAO;EAClD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"deliver-spondyr.mjs","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrDeliverSpondyrInput = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).passthrough().describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr: AppAction<\n typeof SpondyrDeliverSpondyrInput,\n typeof SpondyrDeliverSpondyrOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;;AAgCA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwC,EAAE,OAAO;EACjD,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EACzK,eAAe,EAAE,MAAM,EAAE,OAAO;GAChC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;GAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAClF,wBAAwB,EAAE,KAAK;IAAC;IAAS;IAAO;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACrL,oBAAoB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAChK,CAAC,CAAC,CAAC,SAAS,+EAeH;CACP,QAfyC,EAAE,OAAO;EAClD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/event-type-update.ts
@@ -1 +1 @@
1
- {"version":3,"file":"event-type-update.cjs","names":["z","action"],"sources":["../../src/actions/event-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrEventTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new name for the Event Type.\"),\n EventType: z.string().describe(\"The name of the existing Event Type to update.\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type belongs to.\"),\n});\nexport const SpondyrEventTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if the update failed.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrEventTypeUpdate = action(\"SPONDYR_EVENT_TYPE_UPDATE\", {\n slug: \"spondyr-event-type-update\",\n name: \"Update Event Type\",\n description: \"Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.\",\n input: SpondyrEventTypeUpdateInput,\n output: SpondyrEventTypeUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"event-type-update.cjs","names":["z","action"],"sources":["../../src/actions/event-type-update.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrEventTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new name for the Event Type.\"),\n EventType: z.string().describe(\"The name of the existing Event Type to update.\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type belongs to.\"),\n});\nexport const SpondyrEventTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if the update failed.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrEventTypeUpdate: AppAction<\n typeof SpondyrEventTypeUpdateInput,\n typeof SpondyrEventTypeUpdateOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_EVENT_TYPE_UPDATE\", {\n slug: \"spondyr-event-type-update\",\n name: \"Update Event Type\",\n description: \"Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.\",\n input: SpondyrEventTypeUpdateInput,\n output: SpondyrEventTypeUpdateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/event-type-update.d.ts
@@ -14,11 +16,7 @@ declare const SpondyrEventTypeUpdateOutput: z.ZodObject<{
14
16
  ReferenceID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const spondyrEventTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- Name: string;
19
- EventType: string;
20
- TransactionType: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ declare const spondyrEventTypeUpdate: AppAction<typeof SpondyrEventTypeUpdateInput, typeof SpondyrEventTypeUpdateOutput, typeof spondyr.credential>;
22
20
  //#endregion
23
21
  export { spondyrEventTypeUpdate };
24
22
  //# sourceMappingURL=event-type-update.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-type-update.d.cts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"event-type-update.d.cts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spondyr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/event-type-update.d.ts
@@ -14,11 +16,7 @@ declare const SpondyrEventTypeUpdateOutput: z.ZodObject<{
14
16
  ReferenceID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
17
  ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>;
17
- declare const spondyrEventTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
18
- Name: string;
19
- EventType: string;
20
- TransactionType: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
19
+ declare const spondyrEventTypeUpdate: AppAction<typeof SpondyrEventTypeUpdateInput, typeof SpondyrEventTypeUpdateOutput, typeof spondyr.credential>;
22
20
  //#endregion
23
21
  export { spondyrEventTypeUpdate };
24
22
  //# sourceMappingURL=event-type-update.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-type-update.d.mts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"event-type-update.d.mts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const spondyrEventTypeUpdate = action("SPONDYR_EVENT_TYPE_UPDATE", {
@@ -1 +1 @@
1
- {"version":3,"file":"event-type-update.mjs","names":[],"sources":["../../src/actions/event-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrEventTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new name for the Event Type.\"),\n EventType: z.string().describe(\"The name of the existing Event Type to update.\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type belongs to.\"),\n});\nexport const SpondyrEventTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if the update failed.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrEventTypeUpdate = action(\"SPONDYR_EVENT_TYPE_UPDATE\", {\n slug: \"spondyr-event-type-update\",\n name: \"Update Event Type\",\n description: \"Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.\",\n input: SpondyrEventTypeUpdateInput,\n output: SpondyrEventTypeUpdateOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC9F,CAWS;CACP,QAX0C,EAAE,OAAO;EACnD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"event-type-update.mjs","names":[],"sources":["../../src/actions/event-type-update.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrEventTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new name for the Event Type.\"),\n EventType: z.string().describe(\"The name of the existing Event Type to update.\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type belongs to.\"),\n});\nexport const SpondyrEventTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n ReferenceID: z.string().describe(\"Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if the update failed.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrEventTypeUpdate: AppAction<\n typeof SpondyrEventTypeUpdateInput,\n typeof SpondyrEventTypeUpdateOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_EVENT_TYPE_UPDATE\", {\n slug: \"spondyr-event-type-update\",\n name: \"Update Event Type\",\n description: \"Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.\",\n input: SpondyrEventTypeUpdateInput,\n output: SpondyrEventTypeUpdateOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC9F,CAeS;CACP,QAf0C,EAAE,OAAO;EACnD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-event-types.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-event-types.cjs","names":["z","action"],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrGetEventTypesInput = z.object({\n TransactionType: z.string().describe(\"The exact name of the Transaction Type whose event types are to be listed. Must match an existing transaction type name (case-sensitive).\"),\n}).describe(\"Request model for listing event types associated with a transaction type.\");\nconst SpondyrGetEventTypes_EventTypeItemSchema = z.object({\n Name: z.string().describe(\"The name of the Event Type\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type is for\").nullable(),\n}).passthrough();\nexport const SpondyrGetEventTypesOutput = z.object({\n Data: z.array(SpondyrGetEventTypes_EventTypeItemSchema).describe(\"List of event types for the specified transaction type. Empty list if no event types are configured.\").nullable().optional(),\n APIStatus: z.string().describe(\"API status: 'OK' if successful, 'ERROR' if failed\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is 'ERROR', null otherwise\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrGetEventTypes = action(\"SPONDYR_GET_EVENT_TYPES\", {\n slug: \"spondyr-get-event-types\",\n name: \"List Event Types for Transaction Type\",\n description: \"Retrieves all event types associated with a specific transaction type in Spondyr. Event types define the kinds of events that can occur for a transaction type (e.g., \\\"Created\\\", \\\"Updated\\\", \\\"Cancelled\\\" events for an \\\"Order\\\" transaction type). Use this action after retrieving transaction types to discover what event types are available for a given transaction type. This is essential for understanding the event-driven workflows and setting up event-based automation in Spondyr. Returns an empty list if the transaction type exists but has no event types configured.\",\n input: SpondyrGetEventTypesInput,\n output: SpondyrGetEventTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EAClL,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-event-types.cjs","names":["z","action"],"sources":["../../src/actions/get-event-types.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spondyr } from \"../app\";\n\nexport const SpondyrGetEventTypesInput = z.object({\n TransactionType: z.string().describe(\"The exact name of the Transaction Type whose event types are to be listed. Must match an existing transaction type name (case-sensitive).\"),\n}).describe(\"Request model for listing event types associated with a transaction type.\");\nconst SpondyrGetEventTypes_EventTypeItemSchema = z.object({\n Name: z.string().describe(\"The name of the Event Type\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type is for\").nullable(),\n}).passthrough();\nexport const SpondyrGetEventTypesOutput = z.object({\n Data: z.array(SpondyrGetEventTypes_EventTypeItemSchema).describe(\"List of event types for the specified transaction type. Empty list if no event types are configured.\").nullable().optional(),\n APIStatus: z.string().describe(\"API status: 'OK' if successful, 'ERROR' if failed\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is 'ERROR', null otherwise\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrGetEventTypes: AppAction<\n typeof SpondyrGetEventTypesInput,\n typeof SpondyrGetEventTypesOutput,\n typeof spondyr.credential\n> = action(\"SPONDYR_GET_EVENT_TYPES\", {\n slug: \"spondyr-get-event-types\",\n name: \"List Event Types for Transaction Type\",\n description: \"Retrieves all event types associated with a specific transaction type in Spondyr. Event types define the kinds of events that can occur for a transaction type (e.g., \\\"Created\\\", \\\"Updated\\\", \\\"Cancelled\\\" events for an \\\"Order\\\" transaction type). Use this action after retrieving transaction types to discover what event types are available for a given transaction type. This is essential for understanding the event-driven workflows and setting up event-based automation in Spondyr. Returns an empty list if the transaction type exists but has no event types configured.\",\n input: SpondyrGetEventTypesInput,\n output: SpondyrGetEventTypesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EAClL,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}