@keystrokehq/salesforce_service_cloud 0.1.0

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 (210) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/chasitor-sneak-peek.cjs +26 -0
  7. package/dist/actions/chasitor-sneak-peek.cjs.map +1 -0
  8. package/dist/actions/chasitor-sneak-peek.d.cts +9 -0
  9. package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -0
  10. package/dist/actions/chasitor-sneak-peek.d.mts +9 -0
  11. package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -0
  12. package/dist/actions/chasitor-sneak-peek.mjs +23 -0
  13. package/dist/actions/chasitor-sneak-peek.mjs.map +1 -0
  14. package/dist/actions/composite-batch.cjs +38 -0
  15. package/dist/actions/composite-batch.cjs.map +1 -0
  16. package/dist/actions/composite-batch.d.cts +9 -0
  17. package/dist/actions/composite-batch.d.cts.map +1 -0
  18. package/dist/actions/composite-batch.d.mts +9 -0
  19. package/dist/actions/composite-batch.d.mts.map +1 -0
  20. package/dist/actions/composite-batch.mjs +37 -0
  21. package/dist/actions/composite-batch.mjs.map +1 -0
  22. package/dist/actions/composite-request.cjs +36 -0
  23. package/dist/actions/composite-request.cjs.map +1 -0
  24. package/dist/actions/composite-request.d.cts +9 -0
  25. package/dist/actions/composite-request.d.cts.map +1 -0
  26. package/dist/actions/composite-request.d.mts +9 -0
  27. package/dist/actions/composite-request.d.mts.map +1 -0
  28. package/dist/actions/composite-request.mjs +35 -0
  29. package/dist/actions/composite-request.mjs.map +1 -0
  30. package/dist/actions/composite-sobject-tree.cjs +35 -0
  31. package/dist/actions/composite-sobject-tree.cjs.map +1 -0
  32. package/dist/actions/composite-sobject-tree.d.cts +9 -0
  33. package/dist/actions/composite-sobject-tree.d.cts.map +1 -0
  34. package/dist/actions/composite-sobject-tree.d.mts +9 -0
  35. package/dist/actions/composite-sobject-tree.d.mts.map +1 -0
  36. package/dist/actions/composite-sobject-tree.mjs +34 -0
  37. package/dist/actions/composite-sobject-tree.mjs.map +1 -0
  38. package/dist/actions/create-case-record.cjs +33 -0
  39. package/dist/actions/create-case-record.cjs.map +1 -0
  40. package/dist/actions/create-case-record.d.cts +9 -0
  41. package/dist/actions/create-case-record.d.cts.map +1 -0
  42. package/dist/actions/create-case-record.d.mts +9 -0
  43. package/dist/actions/create-case-record.d.mts.map +1 -0
  44. package/dist/actions/create-case-record.mjs +32 -0
  45. package/dist/actions/create-case-record.mjs.map +1 -0
  46. package/dist/actions/delete-case-record.cjs +16 -0
  47. package/dist/actions/delete-case-record.cjs.map +1 -0
  48. package/dist/actions/delete-case-record.d.cts +9 -0
  49. package/dist/actions/delete-case-record.d.cts.map +1 -0
  50. package/dist/actions/delete-case-record.d.mts +9 -0
  51. package/dist/actions/delete-case-record.d.mts.map +1 -0
  52. package/dist/actions/delete-case-record.mjs +13 -0
  53. package/dist/actions/delete-case-record.mjs.map +1 -0
  54. package/dist/actions/describe-s-object.cjs +30 -0
  55. package/dist/actions/describe-s-object.cjs.map +1 -0
  56. package/dist/actions/describe-s-object.d.cts +9 -0
  57. package/dist/actions/describe-s-object.d.cts.map +1 -0
  58. package/dist/actions/describe-s-object.d.mts +9 -0
  59. package/dist/actions/describe-s-object.d.mts.map +1 -0
  60. package/dist/actions/describe-s-object.mjs +27 -0
  61. package/dist/actions/describe-s-object.mjs.map +1 -0
  62. package/dist/actions/generate-request-id.cjs +16 -0
  63. package/dist/actions/generate-request-id.cjs.map +1 -0
  64. package/dist/actions/generate-request-id.d.cts +9 -0
  65. package/dist/actions/generate-request-id.d.cts.map +1 -0
  66. package/dist/actions/generate-request-id.d.mts +9 -0
  67. package/dist/actions/generate-request-id.d.mts.map +1 -0
  68. package/dist/actions/generate-request-id.mjs +13 -0
  69. package/dist/actions/generate-request-id.mjs.map +1 -0
  70. package/dist/actions/generate-signed-jwt-assertion.cjs +23 -0
  71. package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -0
  72. package/dist/actions/generate-signed-jwt-assertion.d.cts +9 -0
  73. package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -0
  74. package/dist/actions/generate-signed-jwt-assertion.d.mts +9 -0
  75. package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -0
  76. package/dist/actions/generate-signed-jwt-assertion.mjs +20 -0
  77. package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -0
  78. package/dist/actions/get-case-record.cjs +44 -0
  79. package/dist/actions/get-case-record.cjs.map +1 -0
  80. package/dist/actions/get-case-record.d.cts +9 -0
  81. package/dist/actions/get-case-record.d.cts.map +1 -0
  82. package/dist/actions/get-case-record.d.mts +9 -0
  83. package/dist/actions/get-case-record.d.mts.map +1 -0
  84. package/dist/actions/get-case-record.mjs +43 -0
  85. package/dist/actions/get-case-record.mjs.map +1 -0
  86. package/dist/actions/get-chat-messages.cjs +28 -0
  87. package/dist/actions/get-chat-messages.cjs.map +1 -0
  88. package/dist/actions/get-chat-messages.d.cts +9 -0
  89. package/dist/actions/get-chat-messages.d.cts.map +1 -0
  90. package/dist/actions/get-chat-messages.d.mts +9 -0
  91. package/dist/actions/get-chat-messages.d.mts.map +1 -0
  92. package/dist/actions/get-chat-messages.mjs +27 -0
  93. package/dist/actions/get-chat-messages.mjs.map +1 -0
  94. package/dist/actions/get-live-agent-api-version.cjs +19 -0
  95. package/dist/actions/get-live-agent-api-version.cjs.map +1 -0
  96. package/dist/actions/get-live-agent-api-version.d.cts +9 -0
  97. package/dist/actions/get-live-agent-api-version.d.cts.map +1 -0
  98. package/dist/actions/get-live-agent-api-version.d.mts +9 -0
  99. package/dist/actions/get-live-agent-api-version.d.mts.map +1 -0
  100. package/dist/actions/get-live-agent-api-version.mjs +16 -0
  101. package/dist/actions/get-live-agent-api-version.mjs.map +1 -0
  102. package/dist/actions/index.cjs +45 -0
  103. package/dist/actions/index.d.cts +23 -0
  104. package/dist/actions/index.d.mts +23 -0
  105. package/dist/actions/index.mjs +23 -0
  106. package/dist/actions/list-einstein-bots.cjs +29 -0
  107. package/dist/actions/list-einstein-bots.cjs.map +1 -0
  108. package/dist/actions/list-einstein-bots.d.cts +9 -0
  109. package/dist/actions/list-einstein-bots.d.cts.map +1 -0
  110. package/dist/actions/list-einstein-bots.d.mts +9 -0
  111. package/dist/actions/list-einstein-bots.d.mts.map +1 -0
  112. package/dist/actions/list-einstein-bots.mjs +28 -0
  113. package/dist/actions/list-einstein-bots.mjs.map +1 -0
  114. package/dist/actions/query-all-soql.cjs +26 -0
  115. package/dist/actions/query-all-soql.cjs.map +1 -0
  116. package/dist/actions/query-all-soql.d.cts +9 -0
  117. package/dist/actions/query-all-soql.d.cts.map +1 -0
  118. package/dist/actions/query-all-soql.d.mts +9 -0
  119. package/dist/actions/query-all-soql.d.mts.map +1 -0
  120. package/dist/actions/query-all-soql.mjs +25 -0
  121. package/dist/actions/query-all-soql.mjs.map +1 -0
  122. package/dist/actions/query-soql.cjs +21 -0
  123. package/dist/actions/query-soql.cjs.map +1 -0
  124. package/dist/actions/query-soql.d.cts +9 -0
  125. package/dist/actions/query-soql.d.cts.map +1 -0
  126. package/dist/actions/query-soql.d.mts +9 -0
  127. package/dist/actions/query-soql.d.mts.map +1 -0
  128. package/dist/actions/query-soql.mjs +18 -0
  129. package/dist/actions/query-soql.mjs.map +1 -0
  130. package/dist/actions/reconnect-chat-session.cjs +24 -0
  131. package/dist/actions/reconnect-chat-session.cjs.map +1 -0
  132. package/dist/actions/reconnect-chat-session.d.cts +9 -0
  133. package/dist/actions/reconnect-chat-session.d.cts.map +1 -0
  134. package/dist/actions/reconnect-chat-session.d.mts +9 -0
  135. package/dist/actions/reconnect-chat-session.d.mts.map +1 -0
  136. package/dist/actions/reconnect-chat-session.mjs +21 -0
  137. package/dist/actions/reconnect-chat-session.mjs.map +1 -0
  138. package/dist/actions/resync-chasitor-state.cjs +22 -0
  139. package/dist/actions/resync-chasitor-state.cjs.map +1 -0
  140. package/dist/actions/resync-chasitor-state.d.cts +9 -0
  141. package/dist/actions/resync-chasitor-state.d.cts.map +1 -0
  142. package/dist/actions/resync-chasitor-state.d.mts +9 -0
  143. package/dist/actions/resync-chasitor-state.d.mts.map +1 -0
  144. package/dist/actions/resync-chasitor-state.mjs +19 -0
  145. package/dist/actions/resync-chasitor-state.mjs.map +1 -0
  146. package/dist/actions/retrieve-salesforce-username.cjs +16 -0
  147. package/dist/actions/retrieve-salesforce-username.cjs.map +1 -0
  148. package/dist/actions/retrieve-salesforce-username.d.cts +9 -0
  149. package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -0
  150. package/dist/actions/retrieve-salesforce-username.d.mts +9 -0
  151. package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -0
  152. package/dist/actions/retrieve-salesforce-username.mjs +13 -0
  153. package/dist/actions/retrieve-salesforce-username.mjs.map +1 -0
  154. package/dist/actions/send-custom-event.cjs +23 -0
  155. package/dist/actions/send-custom-event.cjs.map +1 -0
  156. package/dist/actions/send-custom-event.d.cts +9 -0
  157. package/dist/actions/send-custom-event.d.cts.map +1 -0
  158. package/dist/actions/send-custom-event.d.mts +9 -0
  159. package/dist/actions/send-custom-event.d.mts.map +1 -0
  160. package/dist/actions/send-custom-event.mjs +20 -0
  161. package/dist/actions/send-custom-event.mjs.map +1 -0
  162. package/dist/actions/set-breadcrumb.cjs +22 -0
  163. package/dist/actions/set-breadcrumb.cjs.map +1 -0
  164. package/dist/actions/set-breadcrumb.d.cts +9 -0
  165. package/dist/actions/set-breadcrumb.d.cts.map +1 -0
  166. package/dist/actions/set-breadcrumb.d.mts +9 -0
  167. package/dist/actions/set-breadcrumb.d.mts.map +1 -0
  168. package/dist/actions/set-breadcrumb.mjs +19 -0
  169. package/dist/actions/set-breadcrumb.mjs.map +1 -0
  170. package/dist/actions/upload-file-to-s3.cjs +25 -0
  171. package/dist/actions/upload-file-to-s3.cjs.map +1 -0
  172. package/dist/actions/upload-file-to-s3.d.cts +9 -0
  173. package/dist/actions/upload-file-to-s3.d.cts.map +1 -0
  174. package/dist/actions/upload-file-to-s3.d.mts +9 -0
  175. package/dist/actions/upload-file-to-s3.d.mts.map +1 -0
  176. package/dist/actions/upload-file-to-s3.mjs +22 -0
  177. package/dist/actions/upload-file-to-s3.mjs.map +1 -0
  178. package/dist/actions/visitor-sensitive-data-rule.cjs +25 -0
  179. package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -0
  180. package/dist/actions/visitor-sensitive-data-rule.d.cts +9 -0
  181. package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -0
  182. package/dist/actions/visitor-sensitive-data-rule.d.mts +9 -0
  183. package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -0
  184. package/dist/actions/visitor-sensitive-data-rule.mjs +22 -0
  185. package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -0
  186. package/dist/app.cjs +9 -0
  187. package/dist/app.cjs.map +1 -0
  188. package/dist/app.d.cts +5 -0
  189. package/dist/app.d.cts.map +1 -0
  190. package/dist/app.d.mts +5 -0
  191. package/dist/app.d.mts.map +1 -0
  192. package/dist/app.mjs +10 -0
  193. package/dist/app.mjs.map +1 -0
  194. package/dist/catalog.cjs +15 -0
  195. package/dist/catalog.cjs.map +1 -0
  196. package/dist/catalog.d.cts +14 -0
  197. package/dist/catalog.d.cts.map +1 -0
  198. package/dist/catalog.d.mts +14 -0
  199. package/dist/catalog.d.mts.map +1 -0
  200. package/dist/catalog.mjs +15 -0
  201. package/dist/catalog.mjs.map +1 -0
  202. package/dist/execute.cjs +18 -0
  203. package/dist/execute.cjs.map +1 -0
  204. package/dist/execute.mjs +18 -0
  205. package/dist/execute.mjs.map +1 -0
  206. package/dist/index.cjs +50 -0
  207. package/dist/index.d.cts +25 -0
  208. package/dist/index.d.mts +25 -0
  209. package/dist/index.mjs +26 -0
  210. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-all-soql.mjs","names":[],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL for the record resource\"),\n type: z.string().describe(\"SObject type of the record\"),\n}).describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema: z.ZodTypeAny = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodTypeAny = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\"),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\"),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO,EAC5E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAoE,EAAE,OAAO;CACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACxD,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sDAAoE,EAAE,OAAO,EACjF,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAQzE,MAAa,qCAAqC,OAAO,2CAA2C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoE,EAAE,OAAO;EAC7E,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;EACjF,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;EACxH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;EACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/query-soql.ts
4
+ const SalesforceServiceCloudQuerySoqlInput = zod.z.object({ soql_query: zod.z.string().describe("SOQL query string to execute.") }).describe("Request model for executing a SOQL query.");
5
+ const SalesforceServiceCloudQuerySoqlOutput = zod.z.object({
6
+ done: zod.z.boolean().describe("True if all records have been returned; false if more records are available."),
7
+ records: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of records returned in this batch."),
8
+ totalSize: zod.z.number().int().describe("Total number of records matched by the query."),
9
+ nextRecordsUrl: zod.z.string().describe("URL to retrieve the next batch of records when done is false.").nullable().optional()
10
+ }).describe("Response model for a SOQL query result.");
11
+ const salesforceServiceCloudQuerySoql = require_action.action("SALESFORCE_SERVICE_CLOUD_QUERY_SOQL", {
12
+ slug: "salesforce_service_cloud-query-soql",
13
+ name: "Query SOQL",
14
+ description: "Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.",
15
+ input: SalesforceServiceCloudQuerySoqlInput,
16
+ output: SalesforceServiceCloudQuerySoqlOutput
17
+ });
18
+ //#endregion
19
+ exports.salesforceServiceCloudQuerySoql = salesforceServiceCloudQuerySoql;
20
+
21
+ //# sourceMappingURL=query-soql.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput: z.ZodTypeAny = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput: z.ZodTypeAny = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\"),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\"),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E;CACzG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-soql.d.ts
4
+ declare const SalesforceServiceCloudQuerySoqlInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudQuerySoql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudQuerySoql };
9
+ //# sourceMappingURL=query-soql.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEG;AAAA,cAC3C,qCAAA,EAAuC,CAAA,CAAE,UAKA;AAAA,cAEzC,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/query-soql.d.ts
4
+ declare const SalesforceServiceCloudQuerySoqlInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudQuerySoql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudQuerySoql };
9
+ //# sourceMappingURL=query-soql.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEG;AAAA,cAC3C,qCAAA,EAAuC,CAAA,CAAE,UAKA;AAAA,cAEzC,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,18 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudQuerySoql = action("SALESFORCE_SERVICE_CLOUD_QUERY_SOQL", {
4
+ slug: "salesforce_service_cloud-query-soql",
5
+ name: "Query SOQL",
6
+ description: "Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.",
7
+ input: z.object({ soql_query: z.string().describe("SOQL query string to execute.") }).describe("Request model for executing a SOQL query."),
8
+ output: z.object({
9
+ done: z.boolean().describe("True if all records have been returned; false if more records are available."),
10
+ records: z.array(z.record(z.string(), z.unknown())).describe("List of records returned in this batch."),
11
+ totalSize: z.number().int().describe("Total number of records matched by the query."),
12
+ nextRecordsUrl: z.string().describe("URL to retrieve the next batch of records when done is false.").nullable().optional()
13
+ }).describe("Response model for a SOQL query result.")
14
+ });
15
+ //#endregion
16
+ export { salesforceServiceCloudQuerySoql };
17
+
18
+ //# sourceMappingURL=query-soql.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-soql.mjs","names":[],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput: z.ZodTypeAny = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput: z.ZodTypeAny = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\"),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\"),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;AAcA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgE,EAAE,OAAO,EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAYH;CACP,QAZiE,EAAE,OAAO;EAC1E,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E;EACzG,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/reconnect-chat-session.ts
4
+ const SalesforceServiceCloudReconnectChatSessionInput = zod.z.object({
5
+ affinity: zod.z.string().describe("Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header."),
6
+ api_version: zod.z.string().describe("Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.").optional(),
7
+ session_key: zod.z.string().describe("Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header."),
8
+ "X-LIVEAGENT-SEQUENCE": zod.z.union([zod.z.number().int(), zod.z.string()]).optional()
9
+ }).describe("Request model for ReconnectChatSession.\nThe Live Agent ReconnectSession endpoint expects headers only and no body.");
10
+ const SalesforceServiceCloudReconnectChatSessionOutput = zod.z.object({
11
+ success: zod.z.boolean().describe("True if reconnect was acknowledged as successful"),
12
+ response_text: zod.z.string().describe("Raw response body from Salesforce, often 'OK' on success").nullable().optional()
13
+ }).describe("Response model for ReconnectChatSession.\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.");
14
+ const salesforceServiceCloudReconnectChatSession = require_action.action("SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION", {
15
+ slug: "salesforce_service_cloud-reconnect-chat-session",
16
+ name: "Reconnect Chat Session",
17
+ description: "Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.",
18
+ input: SalesforceServiceCloudReconnectChatSessionInput,
19
+ output: SalesforceServiceCloudReconnectChatSessionOutput
20
+ });
21
+ //#endregion
22
+ exports.salesforceServiceCloudReconnectChatSession = salesforceServiceCloudReconnectChatSession;
23
+
24
+ //# sourceMappingURL=reconnect-chat-session.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconnect-chat-session.cjs","names":["z","action"],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput: z.ZodTypeAny = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\"),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CACrN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CAC5K,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qHAAqH;AACjI,MAAa,mDAAiEA,IAAAA,EAAE,OAAO;CACrF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,0JAA0J;AAEtK,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/reconnect-chat-session.d.ts
4
+ declare const SalesforceServiceCloudReconnectChatSessionInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudReconnectChatSession: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudReconnectChatSession };
9
+ //# sourceMappingURL=reconnect-chat-session.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAKkE;AAAA,cACrH,gDAAA,EAAkD,CAAA,CAAE,UAGsG;AAAA,cAE1J,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/reconnect-chat-session.d.ts
4
+ declare const SalesforceServiceCloudReconnectChatSessionInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudReconnectChatSession: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudReconnectChatSession };
9
+ //# sourceMappingURL=reconnect-chat-session.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAKkE;AAAA,cACrH,gDAAA,EAAkD,CAAA,CAAE,UAGsG;AAAA,cAE1J,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,21 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudReconnectChatSession = action("SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION", {
4
+ slug: "salesforce_service_cloud-reconnect-chat-session",
5
+ name: "Reconnect Chat Session",
6
+ description: "Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.",
7
+ input: z.object({
8
+ affinity: z.string().describe("Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header."),
9
+ api_version: z.string().describe("Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.").optional(),
10
+ session_key: z.string().describe("Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header."),
11
+ "X-LIVEAGENT-SEQUENCE": z.union([z.number().int(), z.string()]).optional()
12
+ }).describe("Request model for ReconnectChatSession.\nThe Live Agent ReconnectSession endpoint expects headers only and no body."),
13
+ output: z.object({
14
+ success: z.boolean().describe("True if reconnect was acknowledged as successful"),
15
+ response_text: z.string().describe("Raw response body from Salesforce, often 'OK' on success").nullable().optional()
16
+ }).describe("Response model for ReconnectChatSession.\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.")
17
+ });
18
+ //#endregion
19
+ export { salesforceServiceCloudReconnectChatSession };
20
+
21
+ //# sourceMappingURL=reconnect-chat-session.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconnect-chat-session.mjs","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput: z.ZodTypeAny = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\"),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;AAeA,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2E,EAAE,OAAO;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;EACrN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EAC5K,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,qHAUH;CACP,QAV4E,EAAE,OAAO;EACrF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,0JAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/resync-chasitor-state.ts
4
+ const SalesforceServiceCloudResyncChasitorStateInput = zod.z.object({
5
+ api_version: zod.z.string().describe("Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.").optional(),
6
+ session_key: zod.z.string().describe("Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios."),
7
+ affinity_token: zod.z.string().describe("Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained."),
8
+ organization_id: zod.z.string().describe("Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).").optional(),
9
+ "X-LIVEAGENT-SEQUENCE": zod.z.union([zod.z.number().int(), zod.z.string()]).optional()
10
+ }).describe("Request parameters to reestablish a chat visitor's state after a reconnect session.\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\nand no request body. We still accept organization_id for backwards compatibility,\nbut it is not sent in the request body.");
11
+ const SalesforceServiceCloudResyncChasitorStateOutput = zod.z.object({ success: zod.z.boolean().describe("True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.") }).describe("Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\non success (HTTP 200), so this response model simply indicates success status.");
12
+ const salesforceServiceCloudResyncChasitorState = require_action.action("SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE", {
13
+ slug: "salesforce_service_cloud-resync-chasitor-state",
14
+ name: "Resync Chasitor State",
15
+ description: "Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.",
16
+ input: SalesforceServiceCloudResyncChasitorStateInput,
17
+ output: SalesforceServiceCloudResyncChasitorStateOutput
18
+ });
19
+ //#endregion
20
+ exports.salesforceServiceCloudResyncChasitorState = salesforceServiceCloudResyncChasitorState;
21
+
22
+ //# sourceMappingURL=resync-chasitor-state.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resync-chasitor-state.cjs","names":["z","action"],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput: z.ZodTypeAny = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\"),\n}).describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iDAA+DA,IAAAA,EAAE,OAAO;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACvM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CAChM,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC5J,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,uSAAuS;AACnT,MAAa,kDAAgEA,IAAAA,EAAE,OAAO,EACpF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,EACxM,CAAC,CAAC,CAAC,SAAS,0KAA0K;AAEtL,MAAa,4CAA4CC,eAAAA,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/resync-chasitor-state.d.ts
4
+ declare const SalesforceServiceCloudResyncChasitorStateInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudResyncChasitorState: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudResyncChasitorState };
9
+ //# sourceMappingURL=resync-chasitor-state.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resync-chasitor-state.d.cts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":";;;cAIa,8CAAA,EAAgD,CAAA,CAAE,UAMqP;AAAA,cACvS,+CAAA,EAAiD,CAAA,CAAE,UAEuH;AAAA,cAE1K,yCAAA,gCAAyC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/resync-chasitor-state.d.ts
4
+ declare const SalesforceServiceCloudResyncChasitorStateInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudResyncChasitorState: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudResyncChasitorState };
9
+ //# sourceMappingURL=resync-chasitor-state.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resync-chasitor-state.d.mts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":";;;cAIa,8CAAA,EAAgD,CAAA,CAAE,UAMqP;AAAA,cACvS,+CAAA,EAAiD,CAAA,CAAE,UAEuH;AAAA,cAE1K,yCAAA,gCAAyC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudResyncChasitorState = action("SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE", {
4
+ slug: "salesforce_service_cloud-resync-chasitor-state",
5
+ name: "Resync Chasitor State",
6
+ description: "Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.",
7
+ input: z.object({
8
+ api_version: z.string().describe("Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.").optional(),
9
+ session_key: z.string().describe("Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios."),
10
+ affinity_token: z.string().describe("Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained."),
11
+ organization_id: z.string().describe("Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).").optional(),
12
+ "X-LIVEAGENT-SEQUENCE": z.union([z.number().int(), z.string()]).optional()
13
+ }).describe("Request parameters to reestablish a chat visitor's state after a reconnect session.\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\nand no request body. We still accept organization_id for backwards compatibility,\nbut it is not sent in the request body."),
14
+ output: z.object({ success: z.boolean().describe("True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.") }).describe("Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\non success (HTTP 200), so this response model simply indicates success status.")
15
+ });
16
+ //#endregion
17
+ export { salesforceServiceCloudResyncChasitorState };
18
+
19
+ //# sourceMappingURL=resync-chasitor-state.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resync-chasitor-state.mjs","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput: z.ZodTypeAny = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\"),\n}).describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;AAeA,MAAa,4CAA4C,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf0E,EAAE,OAAO;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EACvM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EAChM,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;EAC5J,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,uSASH;CACP,QAT2E,EAAE,OAAO,EACpF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,EACxM,CAAC,CAAC,CAAC,SAAS,0KAOF;AACV,CAAC"}
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/retrieve-salesforce-username.ts
4
+ const SalesforceServiceCloudRetrieveSalesforceUsernameInput = zod.z.object({}).describe("Request model for RetrieveSalesforceUsername. No parameters required.");
5
+ const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = zod.z.object({ username: zod.z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user") }).describe("Response model for RetrieveSalesforceUsername.");
6
+ const salesforceServiceCloudRetrieveSalesforceUsername = require_action.action("SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME", {
7
+ slug: "salesforce_service_cloud-retrieve-salesforce-username",
8
+ name: "Retrieve Salesforce Username",
9
+ description: "Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.",
10
+ input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,
11
+ output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput
12
+ });
13
+ //#endregion
14
+ exports.salesforceServiceCloudRetrieveSalesforceUsername = salesforceServiceCloudRetrieveSalesforceUsername;
15
+
16
+ //# sourceMappingURL=retrieve-salesforce-username.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-salesforce-username.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodTypeAny = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\"),\n}).describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAsEA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAChL,MAAa,yDAAuEA,IAAAA,EAAE,OAAO,EAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EAC7H,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,mDAAmDC,eAAAA,OAAO,yDAAyD;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-salesforce-username.d.ts
4
+ declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudRetrieveSalesforceUsername };
9
+ //# sourceMappingURL=retrieve-salesforce-username.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-salesforce-username.d.cts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAA2G;AAAA,cACpK,sDAAA,EAAwD,CAAA,CAAE,UAEV;AAAA,cAEhD,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/retrieve-salesforce-username.d.ts
4
+ declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudRetrieveSalesforceUsername };
9
+ //# sourceMappingURL=retrieve-salesforce-username.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-salesforce-username.d.mts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAA2G;AAAA,cACpK,sDAAA,EAAwD,CAAA,CAAE,UAEV;AAAA,cAEhD,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudRetrieveSalesforceUsername = action("SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME", {
4
+ slug: "salesforce_service_cloud-retrieve-salesforce-username",
5
+ name: "Retrieve Salesforce Username",
6
+ description: "Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.",
7
+ input: z.object({}).describe("Request model for RetrieveSalesforceUsername. No parameters required."),
8
+ output: z.object({ username: z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user") }).describe("Response model for RetrieveSalesforceUsername.")
9
+ });
10
+ //#endregion
11
+ export { salesforceServiceCloudRetrieveSalesforceUsername };
12
+
13
+ //# sourceMappingURL=retrieve-salesforce-username.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-salesforce-username.mjs","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodTypeAny = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\"),\n}).describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;AASA,MAAa,mDAAmD,OAAO,yDAAyD;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATiF,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAShG;CACP,QATkF,EAAE,OAAO,EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,EAC7H,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,23 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/send-custom-event.ts
4
+ const SalesforceServiceCloudSendCustomEventInput = zod.z.object({
5
+ data: zod.z.string().describe("Custom event payload data as a string. Can be JSON-encoded for complex data structures."),
6
+ type: zod.z.string().describe("Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name."),
7
+ sequence: zod.z.number().int().describe("Sequence number for this Live Agent request. Must be incremented with each API call in the session."),
8
+ api_version: zod.z.string().describe("Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.").optional(),
9
+ session_key: zod.z.string().describe("Session key from an active Live Agent chat session (obtained during session initialization)."),
10
+ affinity_token: zod.z.string().describe("Affinity token from an active Live Agent chat session (obtained during session initialization).")
11
+ }).describe("Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.");
12
+ const SalesforceServiceCloudSendCustomEventOutput = zod.z.object({ success: zod.z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.") }).describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.");
13
+ const salesforceServiceCloudSendCustomEvent = require_action.action("SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT", {
14
+ slug: "salesforce_service_cloud-send-custom-event",
15
+ name: "Send Custom Event",
16
+ description: "Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.",
17
+ input: SalesforceServiceCloudSendCustomEventInput,
18
+ output: SalesforceServiceCloudSendCustomEventOutput
19
+ });
20
+ //#endregion
21
+ exports.salesforceServiceCloudSendCustomEvent = salesforceServiceCloudSendCustomEvent;
22
+
23
+ //# sourceMappingURL=send-custom-event.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-custom-event.cjs","names":["z","action"],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\"),\n}).describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACzI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CAC/H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AACvI,CAAC,CAAC,CAAC,SAAS,6GAA6G;AACzH,MAAa,8CAA4DA,IAAAA,EAAE,OAAO,EAChF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,EAC7H,CAAC,CAAC,CAAC,SAAS,4KAA4K;AAExL,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/send-custom-event.d.ts
4
+ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudSendCustomEvent };
9
+ //# sourceMappingURL=send-custom-event.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-custom-event.d.cts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAO+D;AAAA,cAC7G,2CAAA,EAA6C,CAAA,CAAE,UAE6H;AAAA,cAE5K,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/send-custom-event.d.ts
4
+ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudSendCustomEvent };
9
+ //# sourceMappingURL=send-custom-event.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-custom-event.d.mts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAO+D;AAAA,cAC7G,2CAAA,EAA6C,CAAA,CAAE,UAE6H;AAAA,cAE5K,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudSendCustomEvent = action("SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT", {
4
+ slug: "salesforce_service_cloud-send-custom-event",
5
+ name: "Send Custom Event",
6
+ description: "Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.",
7
+ input: z.object({
8
+ data: z.string().describe("Custom event payload data as a string. Can be JSON-encoded for complex data structures."),
9
+ type: z.string().describe("Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name."),
10
+ sequence: z.number().int().describe("Sequence number for this Live Agent request. Must be incremented with each API call in the session."),
11
+ api_version: z.string().describe("Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.").optional(),
12
+ session_key: z.string().describe("Session key from an active Live Agent chat session (obtained during session initialization)."),
13
+ affinity_token: z.string().describe("Affinity token from an active Live Agent chat session (obtained during session initialization).")
14
+ }).describe("Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session."),
15
+ output: z.object({ success: z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.") }).describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.")
16
+ });
17
+ //#endregion
18
+ export { salesforceServiceCloudSendCustomEvent };
19
+
20
+ //# sourceMappingURL=send-custom-event.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-custom-event.mjs","names":[],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\"),\n}).describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;AAgBA,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsE,EAAE,OAAO;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACzI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EAC/H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACvI,CAAC,CAAC,CAAC,SAAS,6GASH;CACP,QATuE,EAAE,OAAO,EAChF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,EAC7H,CAAC,CAAC,CAAC,SAAS,4KAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/set-breadcrumb.ts
4
+ const SalesforceServiceCloudSetBreadcrumbInput = zod.z.object({
5
+ org_id: zod.z.string().describe("Salesforce organization ID (15 or 18 character ID)"),
6
+ location: zod.z.string().describe("The current location or URL of the visitor."),
7
+ session_id: zod.z.string().describe("Live Agent session ID (sid) from an active chat session"),
8
+ api_version: zod.z.string().describe("LiveAgent Chat API version header, e.g., '61.0'"),
9
+ deployment_id: zod.z.string().describe("Live Agent deployment ID")
10
+ }).describe("Request model to set a breadcrumb URL for the visitor.");
11
+ const SalesforceServiceCloudSetBreadcrumbOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).describe("Empty response model for SetBreadcrumb. No content returned on success.");
12
+ const salesforceServiceCloudSetBreadcrumb = require_action.action("SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB", {
13
+ slug: "salesforce_service_cloud-set-breadcrumb",
14
+ name: "Set Breadcrumb",
15
+ description: "Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.",
16
+ input: SalesforceServiceCloudSetBreadcrumbInput,
17
+ output: SalesforceServiceCloudSetBreadcrumbOutput
18
+ });
19
+ //#endregion
20
+ exports.salesforceServiceCloudSetBreadcrumb = salesforceServiceCloudSetBreadcrumb;
21
+
22
+ //# sourceMappingURL=set-breadcrumb.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-breadcrumb.cjs","names":["z","action"],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput: z.ZodTypeAny = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC/D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-breadcrumb.d.ts
4
+ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudSetBreadcrumb: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudSetBreadcrumb };
9
+ //# sourceMappingURL=set-breadcrumb.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-breadcrumb.d.cts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAMY;AAAA,cACxD,yCAAA,EAA2C,CAAA,CAAE,UAE4B;AAAA,cAEzE,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-breadcrumb.d.ts
4
+ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudSetBreadcrumb: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudSetBreadcrumb };
9
+ //# sourceMappingURL=set-breadcrumb.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-breadcrumb.d.mts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAMY;AAAA,cACxD,yCAAA,EAA2C,CAAA,CAAE,UAE4B;AAAA,cAEzE,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudSetBreadcrumb = action("SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB", {
4
+ slug: "salesforce_service_cloud-set-breadcrumb",
5
+ name: "Set Breadcrumb",
6
+ description: "Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.",
7
+ input: z.object({
8
+ org_id: z.string().describe("Salesforce organization ID (15 or 18 character ID)"),
9
+ location: z.string().describe("The current location or URL of the visitor."),
10
+ session_id: z.string().describe("Live Agent session ID (sid) from an active chat session"),
11
+ api_version: z.string().describe("LiveAgent Chat API version header, e.g., '61.0'"),
12
+ deployment_id: z.string().describe("Live Agent deployment ID")
13
+ }).describe("Request model to set a breadcrumb URL for the visitor."),
14
+ output: z.object({ success: z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).describe("Empty response model for SetBreadcrumb. No content returned on success.")
15
+ });
16
+ //#endregion
17
+ export { salesforceServiceCloudSetBreadcrumb };
18
+
19
+ //# sourceMappingURL=set-breadcrumb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-breadcrumb.mjs","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput: z.ZodTypeAny = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;AAeA,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfoE,EAAE,OAAO;EAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC/D,CAAC,CAAC,CAAC,SAAS,wDASH;CACP,QATqE,EAAE,OAAO,EAC9E,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}