@keystrokehq/spondyr 0.1.0 → 0.1.3

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 (177) 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 +6 -6
  4. package/dist/actions/conditions-list.cjs.map +1 -1
  5. package/dist/actions/conditions-list.d.cts +19 -3
  6. package/dist/actions/conditions-list.d.cts.map +1 -1
  7. package/dist/actions/conditions-list.d.mts +19 -3
  8. package/dist/actions/conditions-list.d.mts.map +1 -1
  9. package/dist/actions/conditions-list.mjs +6 -6
  10. package/dist/actions/conditions-list.mjs.map +1 -1
  11. package/dist/actions/create-condition.cjs +3 -3
  12. package/dist/actions/create-condition.cjs.map +1 -1
  13. package/dist/actions/create-condition.d.cts +20 -3
  14. package/dist/actions/create-condition.d.cts.map +1 -1
  15. package/dist/actions/create-condition.d.mts +20 -3
  16. package/dist/actions/create-condition.d.mts.map +1 -1
  17. package/dist/actions/create-condition.mjs +3 -3
  18. package/dist/actions/create-condition.mjs.map +1 -1
  19. package/dist/actions/create-transaction-type.cjs +2 -2
  20. package/dist/actions/create-transaction-type.cjs.map +1 -1
  21. package/dist/actions/create-transaction-type.d.cts +16 -3
  22. package/dist/actions/create-transaction-type.d.cts.map +1 -1
  23. package/dist/actions/create-transaction-type.d.mts +16 -3
  24. package/dist/actions/create-transaction-type.d.mts.map +1 -1
  25. package/dist/actions/create-transaction-type.mjs +2 -2
  26. package/dist/actions/create-transaction-type.mjs.map +1 -1
  27. package/dist/actions/deliver-spondyr.cjs +4 -4
  28. package/dist/actions/deliver-spondyr.cjs.map +1 -1
  29. package/dist/actions/deliver-spondyr.d.cts +54 -3
  30. package/dist/actions/deliver-spondyr.d.cts.map +1 -1
  31. package/dist/actions/deliver-spondyr.d.mts +54 -3
  32. package/dist/actions/deliver-spondyr.d.mts.map +1 -1
  33. package/dist/actions/deliver-spondyr.mjs +4 -4
  34. package/dist/actions/deliver-spondyr.mjs.map +1 -1
  35. package/dist/actions/event-type-update.cjs +2 -2
  36. package/dist/actions/event-type-update.cjs.map +1 -1
  37. package/dist/actions/event-type-update.d.cts +18 -3
  38. package/dist/actions/event-type-update.d.cts.map +1 -1
  39. package/dist/actions/event-type-update.d.mts +18 -3
  40. package/dist/actions/event-type-update.d.mts.map +1 -1
  41. package/dist/actions/event-type-update.mjs +2 -2
  42. package/dist/actions/event-type-update.mjs.map +1 -1
  43. package/dist/actions/get-event-types.cjs +5 -5
  44. package/dist/actions/get-event-types.cjs.map +1 -1
  45. package/dist/actions/get-event-types.d.cts +14 -3
  46. package/dist/actions/get-event-types.d.cts.map +1 -1
  47. package/dist/actions/get-event-types.d.mts +14 -3
  48. package/dist/actions/get-event-types.d.mts.map +1 -1
  49. package/dist/actions/get-event-types.mjs +5 -5
  50. package/dist/actions/get-event-types.mjs.map +1 -1
  51. package/dist/actions/get-spondyr-status.cjs +18 -18
  52. package/dist/actions/get-spondyr-status.cjs.map +1 -1
  53. package/dist/actions/get-spondyr-status.d.cts +59 -3
  54. package/dist/actions/get-spondyr-status.d.cts.map +1 -1
  55. package/dist/actions/get-spondyr-status.d.mts +59 -3
  56. package/dist/actions/get-spondyr-status.d.mts.map +1 -1
  57. package/dist/actions/get-spondyr-status.mjs +18 -18
  58. package/dist/actions/get-spondyr-status.mjs.map +1 -1
  59. package/dist/actions/get-transaction-types.cjs +6 -6
  60. package/dist/actions/get-transaction-types.cjs.map +1 -1
  61. package/dist/actions/get-transaction-types.d.cts +11 -3
  62. package/dist/actions/get-transaction-types.d.cts.map +1 -1
  63. package/dist/actions/get-transaction-types.d.mts +11 -3
  64. package/dist/actions/get-transaction-types.d.mts.map +1 -1
  65. package/dist/actions/get-transaction-types.mjs +6 -6
  66. package/dist/actions/get-transaction-types.mjs.map +1 -1
  67. package/dist/actions/recipient-delete.cjs +2 -2
  68. package/dist/actions/recipient-delete.cjs.map +1 -1
  69. package/dist/actions/recipient-delete.d.cts +15 -3
  70. package/dist/actions/recipient-delete.d.cts.map +1 -1
  71. package/dist/actions/recipient-delete.d.mts +15 -3
  72. package/dist/actions/recipient-delete.d.mts.map +1 -1
  73. package/dist/actions/recipient-delete.mjs +2 -2
  74. package/dist/actions/recipient-delete.mjs.map +1 -1
  75. package/dist/actions/recipient-get.cjs +4 -4
  76. package/dist/actions/recipient-get.cjs.map +1 -1
  77. package/dist/actions/recipient-get.d.cts +28 -3
  78. package/dist/actions/recipient-get.d.cts.map +1 -1
  79. package/dist/actions/recipient-get.d.mts +28 -3
  80. package/dist/actions/recipient-get.d.mts.map +1 -1
  81. package/dist/actions/recipient-get.mjs +4 -4
  82. package/dist/actions/recipient-get.mjs.map +1 -1
  83. package/dist/actions/recipients-list.cjs +5 -5
  84. package/dist/actions/recipients-list.cjs.map +1 -1
  85. package/dist/actions/recipients-list.d.cts +25 -3
  86. package/dist/actions/recipients-list.d.cts.map +1 -1
  87. package/dist/actions/recipients-list.d.mts +25 -3
  88. package/dist/actions/recipients-list.d.mts.map +1 -1
  89. package/dist/actions/recipients-list.mjs +5 -5
  90. package/dist/actions/recipients-list.mjs.map +1 -1
  91. package/dist/actions/search-filter-create.cjs +2 -2
  92. package/dist/actions/search-filter-create.cjs.map +1 -1
  93. package/dist/actions/search-filter-create.d.cts +18 -3
  94. package/dist/actions/search-filter-create.d.cts.map +1 -1
  95. package/dist/actions/search-filter-create.d.mts +18 -3
  96. package/dist/actions/search-filter-create.d.mts.map +1 -1
  97. package/dist/actions/search-filter-create.mjs +2 -2
  98. package/dist/actions/search-filter-create.mjs.map +1 -1
  99. package/dist/actions/search-filter-delete.cjs +2 -2
  100. package/dist/actions/search-filter-delete.cjs.map +1 -1
  101. package/dist/actions/search-filter-delete.d.cts +15 -3
  102. package/dist/actions/search-filter-delete.d.cts.map +1 -1
  103. package/dist/actions/search-filter-delete.d.mts +15 -3
  104. package/dist/actions/search-filter-delete.d.mts.map +1 -1
  105. package/dist/actions/search-filter-delete.mjs +2 -2
  106. package/dist/actions/search-filter-delete.mjs.map +1 -1
  107. package/dist/actions/search-filter-get.cjs +2 -2
  108. package/dist/actions/search-filter-get.cjs.map +1 -1
  109. package/dist/actions/search-filter-get.d.cts +18 -3
  110. package/dist/actions/search-filter-get.d.cts.map +1 -1
  111. package/dist/actions/search-filter-get.d.mts +18 -3
  112. package/dist/actions/search-filter-get.d.mts.map +1 -1
  113. package/dist/actions/search-filter-get.mjs +2 -2
  114. package/dist/actions/search-filter-get.mjs.map +1 -1
  115. package/dist/actions/search-filters-list.cjs +6 -6
  116. package/dist/actions/search-filters-list.cjs.map +1 -1
  117. package/dist/actions/search-filters-list.d.cts +18 -3
  118. package/dist/actions/search-filters-list.d.cts.map +1 -1
  119. package/dist/actions/search-filters-list.d.mts +18 -3
  120. package/dist/actions/search-filters-list.d.mts.map +1 -1
  121. package/dist/actions/search-filters-list.mjs +6 -6
  122. package/dist/actions/search-filters-list.mjs.map +1 -1
  123. package/dist/actions/search-spondyrs.cjs +29 -29
  124. package/dist/actions/search-spondyrs.cjs.map +1 -1
  125. package/dist/actions/search-spondyrs.d.cts +61 -3
  126. package/dist/actions/search-spondyrs.d.cts.map +1 -1
  127. package/dist/actions/search-spondyrs.d.mts +61 -3
  128. package/dist/actions/search-spondyrs.d.mts.map +1 -1
  129. package/dist/actions/search-spondyrs.mjs +29 -29
  130. package/dist/actions/search-spondyrs.mjs.map +1 -1
  131. package/dist/actions/sso-stub.cjs +3 -3
  132. package/dist/actions/sso-stub.cjs.map +1 -1
  133. package/dist/actions/sso-stub.d.cts +29 -3
  134. package/dist/actions/sso-stub.d.cts.map +1 -1
  135. package/dist/actions/sso-stub.d.mts +29 -3
  136. package/dist/actions/sso-stub.d.mts.map +1 -1
  137. package/dist/actions/sso-stub.mjs +3 -3
  138. package/dist/actions/sso-stub.mjs.map +1 -1
  139. package/dist/actions/template-get.cjs +20 -20
  140. package/dist/actions/template-get.cjs.map +1 -1
  141. package/dist/actions/template-get.d.cts +71 -3
  142. package/dist/actions/template-get.d.cts.map +1 -1
  143. package/dist/actions/template-get.d.mts +71 -3
  144. package/dist/actions/template-get.d.mts.map +1 -1
  145. package/dist/actions/template-get.mjs +20 -20
  146. package/dist/actions/template-get.mjs.map +1 -1
  147. package/dist/actions/templates-list.cjs +16 -16
  148. package/dist/actions/templates-list.cjs.map +1 -1
  149. package/dist/actions/templates-list.d.cts +46 -3
  150. package/dist/actions/templates-list.d.cts.map +1 -1
  151. package/dist/actions/templates-list.d.mts +46 -3
  152. package/dist/actions/templates-list.d.mts.map +1 -1
  153. package/dist/actions/templates-list.mjs +16 -16
  154. package/dist/actions/templates-list.mjs.map +1 -1
  155. package/dist/actions/transaction-type-get.cjs +2 -2
  156. package/dist/actions/transaction-type-get.cjs.map +1 -1
  157. package/dist/actions/transaction-type-get.d.cts +16 -3
  158. package/dist/actions/transaction-type-get.d.cts.map +1 -1
  159. package/dist/actions/transaction-type-get.d.mts +16 -3
  160. package/dist/actions/transaction-type-get.d.mts.map +1 -1
  161. package/dist/actions/transaction-type-get.mjs +2 -2
  162. package/dist/actions/transaction-type-get.mjs.map +1 -1
  163. package/dist/actions/transaction-type-update.cjs +3 -3
  164. package/dist/actions/transaction-type-update.cjs.map +1 -1
  165. package/dist/actions/transaction-type-update.d.cts +18 -3
  166. package/dist/actions/transaction-type-update.d.cts.map +1 -1
  167. package/dist/actions/transaction-type-update.d.mts +18 -3
  168. package/dist/actions/transaction-type-update.d.mts.map +1 -1
  169. package/dist/actions/transaction-type-update.mjs +3 -3
  170. package/dist/actions/transaction-type-update.mjs.map +1 -1
  171. package/dist/catalog.cjs +14 -1
  172. package/dist/catalog.cjs.map +1 -1
  173. package/dist/catalog.d.cts +13 -0
  174. package/dist/catalog.d.mts +13 -0
  175. package/dist/catalog.mjs +14 -1
  176. package/dist/catalog.mjs.map +1 -1
  177. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"sso-stub.cjs","names":["z","action"],"sources":["../../src/actions/sso-stub.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrSsoStubInput: z.ZodTypeAny = z.object({\n Role: z.enum([\"Owner\", \"Integrator\", \"Editor\", \"Tenant User\"]).describe(\"Stub user's permissions. One of: Owner, Integrator, Editor, Tenant User.\"),\n LastName: z.string().describe(\"SSO user's last name (URL-encoded).\"),\n TimeZone: z.string().describe(\"Display timezone (IANA/Windows name). Defaults to UTC if omitted or invalid.\").optional(),\n FirstName: z.string().describe(\"SSO user's first name (URL-encoded).\"),\n TenantToken: z.string().describe(\"Tenant token for multi-tenant applications.\").optional(),\n ApplicationUserID: z.string().describe(\"Your system's user identifier for the SSO user (URL-encoded).\"),\n}).describe(\"Request parameters for creating a one-time SSO user stub in Spondyr.\");\nexport const SpondyrSsoStubOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\"),\n UserToken: z.string().describe(\"One-time token for redirecting or embedding the user into Spondyr.\"),\n ErrorMessage: z.string().describe(\"Error detail if APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response schema for creating a one-time SSO user stub.\");\n\nexport const spondyrSsoStub = action(\"SPONDYR_SSO_STUB\", {\n slug: \"spondyr-sso-stub\",\n name: \"Create Spondyr SSO stub\",\n description: \"Tool to create a one-time SSO user stub in Spondyr. Use after application authentication to generate a temporary SSO token for embedding or redirecting users.\",\n input: SpondyrSsoStubInput,\n output: SpondyrSsoStubOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;CAAa,CAAC,CAAC,CAAC,SAAS,0EAA0E;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AACxG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"sso-stub.cjs","names":["z","action"],"sources":["../../src/actions/sso-stub.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrSsoStubInput = z.object({\n Role: z.enum([\"Owner\", \"Integrator\", \"Editor\", \"Tenant User\"]).describe(\"Stub user's permissions. One of: Owner, Integrator, Editor, Tenant User.\"),\n LastName: z.string().describe(\"SSO user's last name (URL-encoded).\"),\n TimeZone: z.string().describe(\"Display timezone (IANA/Windows name). Defaults to UTC if omitted or invalid.\").optional(),\n FirstName: z.string().describe(\"SSO user's first name (URL-encoded).\"),\n TenantToken: z.string().describe(\"Tenant token for multi-tenant applications.\").optional(),\n ApplicationUserID: z.string().describe(\"Your system's user identifier for the SSO user (URL-encoded).\"),\n}).describe(\"Request parameters for creating a one-time SSO user stub in Spondyr.\");\nexport const SpondyrSsoStubOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n UserToken: z.string().describe(\"One-time token for redirecting or embedding the user into Spondyr.\").nullable(),\n ErrorMessage: z.string().describe(\"Error detail if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a one-time SSO user stub.\");\n\nexport const spondyrSsoStub = action(\"SPONDYR_SSO_STUB\", {\n slug: \"spondyr-sso-stub\",\n name: \"Create Spondyr SSO stub\",\n description: \"Tool to create a one-time SSO user stub in Spondyr. Use after application authentication to generate a temporary SSO token for embedding or redirecting users.\",\n input: SpondyrSsoStubInput,\n output: SpondyrSsoStubOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;CAAa,CAAC,CAAC,CAAC,SAAS,0EAA0E;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AACxG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC9G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sso-stub.d.ts
4
- declare const SpondyrSsoStubInput: z.ZodTypeAny;
5
- declare const SpondyrSsoStubOutput: z.ZodTypeAny;
6
- declare const spondyrSsoStub: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpondyrSsoStubInput: z.ZodObject<{
5
+ Role: z.ZodEnum<{
6
+ Owner: "Owner";
7
+ Integrator: "Integrator";
8
+ Editor: "Editor";
9
+ "Tenant User": "Tenant User";
10
+ }>;
11
+ LastName: z.ZodString;
12
+ TimeZone: z.ZodOptional<z.ZodString>;
13
+ FirstName: z.ZodString;
14
+ TenantToken: z.ZodOptional<z.ZodString>;
15
+ ApplicationUserID: z.ZodString;
16
+ }, z.core.$strip>;
17
+ declare const SpondyrSsoStubOutput: z.ZodObject<{
18
+ APIStatus: z.ZodNullable<z.ZodEnum<{
19
+ OK: "OK";
20
+ ERROR: "ERROR";
21
+ }>>;
22
+ UserToken: z.ZodNullable<z.ZodString>;
23
+ ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>;
25
+ declare const spondyrSsoStub: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ Role: "Owner" | "Integrator" | "Editor" | "Tenant User";
27
+ LastName: string;
28
+ FirstName: string;
29
+ ApplicationUserID: string;
30
+ TimeZone?: string | undefined;
31
+ TenantToken?: string | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { spondyrSsoStub };
9
35
  //# sourceMappingURL=sso-stub.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sso-stub.d.cts","names":[],"sources":["../../src/actions/sso-stub.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAO+C;AAAA,cACtE,oBAAA,EAAsB,CAAA,CAAE,UAIgC;AAAA,cAExD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sso-stub.d.cts","names":[],"sources":["../../src/actions/sso-stub.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/sso-stub.d.ts
4
- declare const SpondyrSsoStubInput: z.ZodTypeAny;
5
- declare const SpondyrSsoStubOutput: z.ZodTypeAny;
6
- declare const spondyrSsoStub: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpondyrSsoStubInput: z.ZodObject<{
5
+ Role: z.ZodEnum<{
6
+ Owner: "Owner";
7
+ Integrator: "Integrator";
8
+ Editor: "Editor";
9
+ "Tenant User": "Tenant User";
10
+ }>;
11
+ LastName: z.ZodString;
12
+ TimeZone: z.ZodOptional<z.ZodString>;
13
+ FirstName: z.ZodString;
14
+ TenantToken: z.ZodOptional<z.ZodString>;
15
+ ApplicationUserID: z.ZodString;
16
+ }, z.core.$strip>;
17
+ declare const SpondyrSsoStubOutput: z.ZodObject<{
18
+ APIStatus: z.ZodNullable<z.ZodEnum<{
19
+ OK: "OK";
20
+ ERROR: "ERROR";
21
+ }>>;
22
+ UserToken: z.ZodNullable<z.ZodString>;
23
+ ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>;
25
+ declare const spondyrSsoStub: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ Role: "Owner" | "Integrator" | "Editor" | "Tenant User";
27
+ LastName: string;
28
+ FirstName: string;
29
+ ApplicationUserID: string;
30
+ TimeZone?: string | undefined;
31
+ TenantToken?: string | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { spondyrSsoStub };
9
35
  //# sourceMappingURL=sso-stub.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sso-stub.d.mts","names":[],"sources":["../../src/actions/sso-stub.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAO+C;AAAA,cACtE,oBAAA,EAAsB,CAAA,CAAE,UAIgC;AAAA,cAExD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"sso-stub.d.mts","names":[],"sources":["../../src/actions/sso-stub.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA"}
@@ -18,10 +18,10 @@ const spondyrSsoStub = action("SPONDYR_SSO_STUB", {
18
18
  ApplicationUserID: z.string().describe("Your system's user identifier for the SSO user (URL-encoded).")
19
19
  }).describe("Request parameters for creating a one-time SSO user stub in Spondyr."),
20
20
  output: z.object({
21
- APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
22
- UserToken: z.string().describe("One-time token for redirecting or embedding the user into Spondyr."),
21
+ APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
22
+ UserToken: z.string().describe("One-time token for redirecting or embedding the user into Spondyr.").nullable(),
23
23
  ErrorMessage: z.string().describe("Error detail if APIStatus is ERROR.").nullable().optional()
24
- }).describe("Response schema for creating a one-time SSO user stub.")
24
+ }).passthrough().describe("Response schema for creating a one-time SSO user stub.")
25
25
  });
26
26
  //#endregion
27
27
  export { spondyrSsoStub };
@@ -1 +1 @@
1
- {"version":3,"file":"sso-stub.mjs","names":[],"sources":["../../src/actions/sso-stub.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrSsoStubInput: z.ZodTypeAny = z.object({\n Role: z.enum([\"Owner\", \"Integrator\", \"Editor\", \"Tenant User\"]).describe(\"Stub user's permissions. One of: Owner, Integrator, Editor, Tenant User.\"),\n LastName: z.string().describe(\"SSO user's last name (URL-encoded).\"),\n TimeZone: z.string().describe(\"Display timezone (IANA/Windows name). Defaults to UTC if omitted or invalid.\").optional(),\n FirstName: z.string().describe(\"SSO user's first name (URL-encoded).\"),\n TenantToken: z.string().describe(\"Tenant token for multi-tenant applications.\").optional(),\n ApplicationUserID: z.string().describe(\"Your system's user identifier for the SSO user (URL-encoded).\"),\n}).describe(\"Request parameters for creating a one-time SSO user stub in Spondyr.\");\nexport const SpondyrSsoStubOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\"),\n UserToken: z.string().describe(\"One-time token for redirecting or embedding the user into Spondyr.\"),\n ErrorMessage: z.string().describe(\"Error detail if APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response schema for creating a one-time SSO user stub.\");\n\nexport const spondyrSsoStub = action(\"SPONDYR_SSO_STUB\", {\n slug: \"spondyr-sso-stub\",\n name: \"Create Spondyr SSO stub\",\n description: \"Tool to create a one-time SSO user stub in Spondyr. Use after application authentication to generate a temporary SSO token for embedding or redirecting users.\",\n input: SpondyrSsoStubInput,\n output: SpondyrSsoStubOutput,\n});\n"],"mappings":";;AAkBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO;EACxD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;EAAa,CAAC,CAAC,CAAC,SAAS,0EAA0E;EAClJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACzF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACxG,CAAC,CAAC,CAAC,SAAS,sEAWH;CACP,QAXgD,EAAE,OAAO;EACzD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"sso-stub.mjs","names":[],"sources":["../../src/actions/sso-stub.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrSsoStubInput = z.object({\n Role: z.enum([\"Owner\", \"Integrator\", \"Editor\", \"Tenant User\"]).describe(\"Stub user's permissions. One of: Owner, Integrator, Editor, Tenant User.\"),\n LastName: z.string().describe(\"SSO user's last name (URL-encoded).\"),\n TimeZone: z.string().describe(\"Display timezone (IANA/Windows name). Defaults to UTC if omitted or invalid.\").optional(),\n FirstName: z.string().describe(\"SSO user's first name (URL-encoded).\"),\n TenantToken: z.string().describe(\"Tenant token for multi-tenant applications.\").optional(),\n ApplicationUserID: z.string().describe(\"Your system's user identifier for the SSO user (URL-encoded).\"),\n}).describe(\"Request parameters for creating a one-time SSO user stub in Spondyr.\");\nexport const SpondyrSsoStubOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n UserToken: z.string().describe(\"One-time token for redirecting or embedding the user into Spondyr.\").nullable(),\n ErrorMessage: z.string().describe(\"Error detail if APIStatus is ERROR.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a one-time SSO user stub.\");\n\nexport const spondyrSsoStub = action(\"SPONDYR_SSO_STUB\", {\n slug: \"spondyr-sso-stub\",\n name: \"Create Spondyr SSO stub\",\n description: \"Tool to create a one-time SSO user stub in Spondyr. Use after application authentication to generate a temporary SSO token for embedding or redirecting users.\",\n input: SpondyrSsoStubInput,\n output: SpondyrSsoStubOutput,\n});\n"],"mappings":";;AAkBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBiC,EAAE,OAAO;EAC1C,MAAM,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;EAAa,CAAC,CAAC,CAAC,SAAS,0EAA0E;EAClJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACzF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACxG,CAAC,CAAC,CAAC,SAAS,sEAWH;CACP,QAXkC,EAAE,OAAO;EAC3C,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -6,8 +6,8 @@ const SpondyrTemplateGetInput = zod.z.object({
6
6
  TransactionType: zod.z.string().describe("The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.")
7
7
  }).describe("Request model for retrieving a specific template.");
8
8
  const SpondyrTemplateGet_TemplateGetResponseConditionSchema = zod.z.object({
9
- Name: zod.z.string().describe("The name of the condition."),
10
- CompareValue: zod.z.string().describe("The value(s) for the condition, newline delimited if multiple."),
9
+ Name: zod.z.string().describe("The name of the condition.").nullable(),
10
+ CompareValue: zod.z.string().describe("The value(s) for the condition, newline delimited if multiple.").nullable(),
11
11
  CompareOperator: zod.z.enum([
12
12
  "=",
13
13
  ">",
@@ -15,11 +15,11 @@ const SpondyrTemplateGet_TemplateGetResponseConditionSchema = zod.z.object({
15
15
  ">=",
16
16
  "<=",
17
17
  "<>"
18
- ]).describe("Comparison operator for the condition."),
19
- LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator for the condition.")
20
- });
18
+ ]).describe("Comparison operator for the condition.").nullable(),
19
+ LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator for the condition.").nullable()
20
+ }).passthrough();
21
21
  const SpondyrTemplateGet_TemplateGetResponseSignerSchema = zod.z.object({
22
- Name: zod.z.string().describe("The name of the signer."),
22
+ Name: zod.z.string().describe("The name of the signer.").nullable(),
23
23
  Role: zod.z.enum([
24
24
  "Signer",
25
25
  "Agent",
@@ -28,11 +28,11 @@ const SpondyrTemplateGet_TemplateGetResponseSignerSchema = zod.z.object({
28
28
  "Editor",
29
29
  "In Person Signer",
30
30
  "Intermediary"
31
- ]).describe("The role of the signer."),
32
- Email: zod.z.string().describe("The email address of the signer.")
33
- });
31
+ ]).describe("The role of the signer.").nullable(),
32
+ Email: zod.z.string().describe("The email address of the signer.").nullable()
33
+ }).passthrough();
34
34
  const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = zod.z.object({
35
- Name: zod.z.string().describe("The recipient's name."),
35
+ Name: zod.z.string().describe("The recipient's name.").nullable(),
36
36
  Signers: zod.z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe("Optional list of signers when delivery method is DocuSign.").nullable().optional(),
37
37
  TextBody: zod.z.string().describe("Optional text message body when delivery method is Text.").nullable().optional(),
38
38
  EmailBody: zod.z.string().describe("Optional email body when delivery method is Email.").nullable().optional(),
@@ -41,17 +41,17 @@ const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = zod.z.object({
41
41
  MailFromCity: zod.z.string().describe("Optional mail from city when delivery method is Mail.").nullable().optional(),
42
42
  MailFromName: zod.z.string().describe("Optional mail from name when delivery method is Mail.").nullable().optional(),
43
43
  MailFromState: zod.z.string().describe("Optional mail from state when delivery method is Mail.").nullable().optional(),
44
- DeliveryMethod: zod.z.string().describe("The delivery method for the recipient."),
44
+ DeliveryMethod: zod.z.string().describe("The delivery method for the recipient.").nullable(),
45
45
  EmailFromAddress: zod.z.string().describe("Optional from email address when delivery method is Email.").nullable().optional(),
46
46
  MailFromAddress1: zod.z.string().describe("Optional mail from address1 when delivery method is Mail.").nullable().optional(),
47
47
  MailFromAddress2: zod.z.string().describe("Optional mail from address2 when delivery method is Mail.").nullable().optional(),
48
48
  DestinationFolder: zod.z.string().describe("Optional destination folder for destination recipients.").nullable().optional()
49
- });
49
+ }).passthrough();
50
50
  const SpondyrTemplateGetOutput = zod.z.object({
51
- Name: zod.z.string().describe("The name of the Template."),
51
+ Name: zod.z.string().describe("The name of the Template.").nullable(),
52
52
  Searches: zod.z.array(zod.z.string()).describe("Names of search filters associated with this template for document retrieval and organization."),
53
- APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
54
- EventType: zod.z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete')."),
53
+ APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
54
+ EventType: zod.z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').").nullable(),
55
55
  Conditions: zod.z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe("Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data."),
56
56
  Recipients: zod.z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe("List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination)."),
57
57
  ContentType: zod.z.enum([
@@ -59,12 +59,12 @@ const SpondyrTemplateGetOutput = zod.z.object({
59
59
  "DOC",
60
60
  "HTML",
61
61
  "TEXT"
62
- ]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT)."),
62
+ ]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT).").nullable(),
63
63
  ErrorMessage: zod.z.string().describe("Error message if retrieval failed.").nullable().optional(),
64
- TemplateContent: zod.z.string().describe("Base64-encoded template content (the actual document/file content)."),
65
- TransactionType: zod.z.string().describe("The Transaction Type name this Template is for."),
66
- TemplateContentReferenceID: zod.z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.")
67
- });
64
+ TemplateContent: zod.z.string().describe("Base64-encoded template content (the actual document/file content).").nullable(),
65
+ TransactionType: zod.z.string().describe("The Transaction Type name this Template is for.").nullable(),
66
+ TemplateContentReferenceID: zod.z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.").nullable()
67
+ }).passthrough();
68
68
  const spondyrTemplateGet = require_action.action("SPONDYR_TEMPLATE_GET", {
69
69
  slug: "spondyr-template-get",
70
70
  name: "Get Template",
@@ -1 +1 @@
1
- {"version":3,"file":"template-get.cjs","names":["z","action"],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput: z.ZodTypeAny = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the condition.\"),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\"),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\"),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\"),\n});\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the signer.\"),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\"),\n Email: z.string().describe(\"The email address of the signer.\"),\n});\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The recipient's name.\"),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\"),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n});\nexport const SpondyrTemplateGetOutput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the Template.\"),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\"),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\"),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\"),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\"),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\"),\n});\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAClG,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAC5G,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACvF,CAAC;AACD,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAS;EAAM;EAAsB;EAAU;EAAoB;CAAc,CAAC,CAAC,CAAC,SAAS,yBAAyB;CAC9I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AAC/D,CAAC;AACD,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,SA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D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG;CACvI,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,uIAAuI;CAC3N,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,iIAAiI;CACrN,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,wEAAwE;CACrI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAC1G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACtF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;AAC3J,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"template-get.cjs","names":["z","action"],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({\n Name: z.string().describe(\"The name of the condition.\").nullable(),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\").nullable(),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\").nullable(),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\").nullable(),\n}).passthrough();\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({\n Name: z.string().describe(\"The name of the signer.\").nullable(),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\").nullable(),\n Email: z.string().describe(\"The email address of the signer.\").nullable(),\n}).passthrough();\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({\n Name: z.string().describe(\"The recipient's name.\").nullable(),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\").nullable(),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n}).passthrough();\nexport const SpondyrTemplateGetOutput = z.object({\n Name: z.string().describe(\"The name of the Template.\").nullable(),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\").nullable(),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\").nullable(),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\").nullable(),\n}).passthrough();\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvH,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAS;EAAM;EAAsB;EAAU;EAAoB;CAAc,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,C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template-get.d.ts
4
- declare const SpondyrTemplateGetInput: z.ZodTypeAny;
5
- declare const SpondyrTemplateGetOutput: z.ZodTypeAny;
6
- declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpondyrTemplateGetInput: z.ZodObject<{
5
+ Template: z.ZodString;
6
+ TransactionType: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SpondyrTemplateGetOutput: z.ZodObject<{
9
+ Name: z.ZodNullable<z.ZodString>;
10
+ Searches: z.ZodArray<z.ZodString>;
11
+ APIStatus: z.ZodNullable<z.ZodEnum<{
12
+ OK: "OK";
13
+ ERROR: "ERROR";
14
+ }>>;
15
+ EventType: z.ZodNullable<z.ZodString>;
16
+ Conditions: z.ZodArray<z.ZodObject<{
17
+ Name: z.ZodNullable<z.ZodString>;
18
+ CompareValue: z.ZodNullable<z.ZodString>;
19
+ CompareOperator: z.ZodNullable<z.ZodEnum<{
20
+ "=": "=";
21
+ ">": ">";
22
+ "<": "<";
23
+ ">=": ">=";
24
+ "<=": "<=";
25
+ "<>": "<>";
26
+ }>>;
27
+ LogicalOperator: z.ZodNullable<z.ZodEnum<{
28
+ AND: "AND";
29
+ OR: "OR";
30
+ }>>;
31
+ }, z.core.$loose>>;
32
+ Recipients: z.ZodArray<z.ZodObject<{
33
+ Name: z.ZodNullable<z.ZodString>;
34
+ Signers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
35
+ Name: z.ZodNullable<z.ZodString>;
36
+ Role: z.ZodNullable<z.ZodEnum<{
37
+ Editor: "Editor";
38
+ Signer: "Signer";
39
+ Agent: "Agent";
40
+ CC: "CC";
41
+ "Certified Delivery": "Certified Delivery";
42
+ "In Person Signer": "In Person Signer";
43
+ Intermediary: "Intermediary";
44
+ }>>;
45
+ Email: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>>;
47
+ TextBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ EmailBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ MailFromZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ EmailSubject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ MailFromCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ MailFromName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ MailFromState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ DeliveryMethod: z.ZodNullable<z.ZodString>;
55
+ EmailFromAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ MailFromAddress1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ MailFromAddress2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ DestinationFolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$loose>>;
60
+ ContentType: z.ZodNullable<z.ZodEnum<{
61
+ PDF: "PDF";
62
+ DOC: "DOC";
63
+ HTML: "HTML";
64
+ TEXT: "TEXT";
65
+ }>>;
66
+ ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ TemplateContent: z.ZodNullable<z.ZodString>;
68
+ TransactionType: z.ZodNullable<z.ZodString>;
69
+ TemplateContentReferenceID: z.ZodNullable<z.ZodString>;
70
+ }, z.core.$loose>;
71
+ declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<{
72
+ Template: string;
73
+ TransactionType: string;
74
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
75
  //#endregion
8
76
  export { spondyrTemplateGet };
9
77
  //# sourceMappingURL=template-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-get.d.cts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGwB;AAAA,cA4BnD,wBAAA,EAA0B,CAAA,CAAE,UAYvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"template-get.d.cts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cA+BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,77 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/template-get.d.ts
4
- declare const SpondyrTemplateGetInput: z.ZodTypeAny;
5
- declare const SpondyrTemplateGetOutput: z.ZodTypeAny;
6
- declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SpondyrTemplateGetInput: z.ZodObject<{
5
+ Template: z.ZodString;
6
+ TransactionType: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SpondyrTemplateGetOutput: z.ZodObject<{
9
+ Name: z.ZodNullable<z.ZodString>;
10
+ Searches: z.ZodArray<z.ZodString>;
11
+ APIStatus: z.ZodNullable<z.ZodEnum<{
12
+ OK: "OK";
13
+ ERROR: "ERROR";
14
+ }>>;
15
+ EventType: z.ZodNullable<z.ZodString>;
16
+ Conditions: z.ZodArray<z.ZodObject<{
17
+ Name: z.ZodNullable<z.ZodString>;
18
+ CompareValue: z.ZodNullable<z.ZodString>;
19
+ CompareOperator: z.ZodNullable<z.ZodEnum<{
20
+ "=": "=";
21
+ ">": ">";
22
+ "<": "<";
23
+ ">=": ">=";
24
+ "<=": "<=";
25
+ "<>": "<>";
26
+ }>>;
27
+ LogicalOperator: z.ZodNullable<z.ZodEnum<{
28
+ AND: "AND";
29
+ OR: "OR";
30
+ }>>;
31
+ }, z.core.$loose>>;
32
+ Recipients: z.ZodArray<z.ZodObject<{
33
+ Name: z.ZodNullable<z.ZodString>;
34
+ Signers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
35
+ Name: z.ZodNullable<z.ZodString>;
36
+ Role: z.ZodNullable<z.ZodEnum<{
37
+ Editor: "Editor";
38
+ Signer: "Signer";
39
+ Agent: "Agent";
40
+ CC: "CC";
41
+ "Certified Delivery": "Certified Delivery";
42
+ "In Person Signer": "In Person Signer";
43
+ Intermediary: "Intermediary";
44
+ }>>;
45
+ Email: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>>;
47
+ TextBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ EmailBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ MailFromZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ EmailSubject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ MailFromCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ MailFromName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ MailFromState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ DeliveryMethod: z.ZodNullable<z.ZodString>;
55
+ EmailFromAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ MailFromAddress1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ MailFromAddress2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ DestinationFolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$loose>>;
60
+ ContentType: z.ZodNullable<z.ZodEnum<{
61
+ PDF: "PDF";
62
+ DOC: "DOC";
63
+ HTML: "HTML";
64
+ TEXT: "TEXT";
65
+ }>>;
66
+ ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ TemplateContent: z.ZodNullable<z.ZodString>;
68
+ TransactionType: z.ZodNullable<z.ZodString>;
69
+ TemplateContentReferenceID: z.ZodNullable<z.ZodString>;
70
+ }, z.core.$loose>;
71
+ declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<{
72
+ Template: string;
73
+ TransactionType: string;
74
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
75
  //#endregion
8
76
  export { spondyrTemplateGet };
9
77
  //# sourceMappingURL=template-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-get.d.mts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGwB;AAAA,cA4BnD,wBAAA,EAA0B,CAAA,CAAE,UAYvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"template-get.d.mts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cA+BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
@@ -6,8 +6,8 @@ const SpondyrTemplateGetInput = z.object({
6
6
  TransactionType: z.string().describe("The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.")
7
7
  }).describe("Request model for retrieving a specific template.");
8
8
  const SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({
9
- Name: z.string().describe("The name of the condition."),
10
- CompareValue: z.string().describe("The value(s) for the condition, newline delimited if multiple."),
9
+ Name: z.string().describe("The name of the condition.").nullable(),
10
+ CompareValue: z.string().describe("The value(s) for the condition, newline delimited if multiple.").nullable(),
11
11
  CompareOperator: z.enum([
12
12
  "=",
13
13
  ">",
@@ -15,11 +15,11 @@ const SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({
15
15
  ">=",
16
16
  "<=",
17
17
  "<>"
18
- ]).describe("Comparison operator for the condition."),
19
- LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator for the condition.")
20
- });
18
+ ]).describe("Comparison operator for the condition.").nullable(),
19
+ LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator for the condition.").nullable()
20
+ }).passthrough();
21
21
  const SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({
22
- Name: z.string().describe("The name of the signer."),
22
+ Name: z.string().describe("The name of the signer.").nullable(),
23
23
  Role: z.enum([
24
24
  "Signer",
25
25
  "Agent",
@@ -28,11 +28,11 @@ const SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({
28
28
  "Editor",
29
29
  "In Person Signer",
30
30
  "Intermediary"
31
- ]).describe("The role of the signer."),
32
- Email: z.string().describe("The email address of the signer.")
33
- });
31
+ ]).describe("The role of the signer.").nullable(),
32
+ Email: z.string().describe("The email address of the signer.").nullable()
33
+ }).passthrough();
34
34
  const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({
35
- Name: z.string().describe("The recipient's name."),
35
+ Name: z.string().describe("The recipient's name.").nullable(),
36
36
  Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe("Optional list of signers when delivery method is DocuSign.").nullable().optional(),
37
37
  TextBody: z.string().describe("Optional text message body when delivery method is Text.").nullable().optional(),
38
38
  EmailBody: z.string().describe("Optional email body when delivery method is Email.").nullable().optional(),
@@ -41,22 +41,22 @@ const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({
41
41
  MailFromCity: z.string().describe("Optional mail from city when delivery method is Mail.").nullable().optional(),
42
42
  MailFromName: z.string().describe("Optional mail from name when delivery method is Mail.").nullable().optional(),
43
43
  MailFromState: z.string().describe("Optional mail from state when delivery method is Mail.").nullable().optional(),
44
- DeliveryMethod: z.string().describe("The delivery method for the recipient."),
44
+ DeliveryMethod: z.string().describe("The delivery method for the recipient.").nullable(),
45
45
  EmailFromAddress: z.string().describe("Optional from email address when delivery method is Email.").nullable().optional(),
46
46
  MailFromAddress1: z.string().describe("Optional mail from address1 when delivery method is Mail.").nullable().optional(),
47
47
  MailFromAddress2: z.string().describe("Optional mail from address2 when delivery method is Mail.").nullable().optional(),
48
48
  DestinationFolder: z.string().describe("Optional destination folder for destination recipients.").nullable().optional()
49
- });
49
+ }).passthrough();
50
50
  const spondyrTemplateGet = action("SPONDYR_TEMPLATE_GET", {
51
51
  slug: "spondyr-template-get",
52
52
  name: "Get Template",
53
53
  description: "Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.",
54
54
  input: SpondyrTemplateGetInput,
55
55
  output: z.object({
56
- Name: z.string().describe("The name of the Template."),
56
+ Name: z.string().describe("The name of the Template.").nullable(),
57
57
  Searches: z.array(z.string()).describe("Names of search filters associated with this template for document retrieval and organization."),
58
- APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
59
- EventType: z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete')."),
58
+ APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
59
+ EventType: z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').").nullable(),
60
60
  Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe("Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data."),
61
61
  Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe("List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination)."),
62
62
  ContentType: z.enum([
@@ -64,12 +64,12 @@ const spondyrTemplateGet = action("SPONDYR_TEMPLATE_GET", {
64
64
  "DOC",
65
65
  "HTML",
66
66
  "TEXT"
67
- ]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT)."),
67
+ ]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT).").nullable(),
68
68
  ErrorMessage: z.string().describe("Error message if retrieval failed.").nullable().optional(),
69
- TemplateContent: z.string().describe("Base64-encoded template content (the actual document/file content)."),
70
- TransactionType: z.string().describe("The Transaction Type name this Template is for."),
71
- TemplateContentReferenceID: z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.")
72
- })
69
+ TemplateContent: z.string().describe("Base64-encoded template content (the actual document/file content).").nullable(),
70
+ TransactionType: z.string().describe("The Transaction Type name this Template is for.").nullable(),
71
+ TemplateContentReferenceID: z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.").nullable()
72
+ }).passthrough()
73
73
  });
74
74
  //#endregion
75
75
  export { spondyrTemplateGet };
@@ -1 +1 @@
1
- {"version":3,"file":"template-get.mjs","names":[],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput: z.ZodTypeAny = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the condition.\"),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\"),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\"),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\"),\n});\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the signer.\"),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\"),\n Email: z.string().describe(\"The email address of the signer.\"),\n});\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The recipient's name.\"),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\"),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n});\nexport const SpondyrTemplateGetOutput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the Template.\"),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\"),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\"),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\"),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\"),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\"),\n});\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAA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AAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACtF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CAC3J,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"template-get.mjs","names":[],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({\n Name: z.string().describe(\"The name of the condition.\").nullable(),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\").nullable(),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\").nullable(),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\").nullable(),\n}).passthrough();\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({\n Name: z.string().describe(\"The name of the signer.\").nullable(),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\").nullable(),\n Email: z.string().describe(\"The email address of the signer.\").nullable(),\n}).passthrough();\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({\n Name: z.string().describe(\"The recipient's name.\").nullable(),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\").nullable(),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n}).passthrough();\nexport const SpondyrTemplateGetOutput = z.object({\n Name: z.string().describe(\"The name of the Template.\").nullable(),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\").nullable(),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\").nullable(),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\").nullable(),\n}).passthrough();\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,wDAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7G,iBAAiB,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvH,iBAAiB,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,S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