@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
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/salesforce_service_cloud
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `salesforce_service_cloud`
6
+ **Version:** `20260616_00`
7
+ **Actions:** 22
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { salesforceServiceCloudChasitorSneakPeek } from "@keystrokehq/salesforce_service_cloud/actions";
12
+
13
+ export default defineAgent({
14
+ key: "salesforce_service_cloud-agent",
15
+ tools: [salesforceServiceCloudChasitorSneakPeek],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.salesforceServiceCloud.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeSalesforceServiceCloudTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["salesforceServiceCloud","executeSalesforceServiceCloudTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesforceServiceCloud } from \"./app\";\nimport { executeSalesforceServiceCloudTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return salesforceServiceCloud.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSalesforceServiceCloudTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,uBAAuB,OAAO;EACnC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kCAAkC,MAAM,KAAgC,CAAC;EACzG;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { salesforceServiceCloud } from "./app.mjs";
2
+ import { executeSalesforceServiceCloudTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return salesforceServiceCloud.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeSalesforceServiceCloudTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesforceServiceCloud } from \"./app\";\nimport { executeSalesforceServiceCloudTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return salesforceServiceCloud.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSalesforceServiceCloudTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,uBAAuB,OAAO;EACnC,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kCAAkC,MAAM,KAAgC,CAAC;EACzG;CACF,CAAC;AACH"}
@@ -0,0 +1,26 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/chasitor-sneak-peek.ts
4
+ const SalesforceServiceCloudChasitorSneakPeekInput = zod.z.object({
5
+ text: zod.z.string().describe("The current in-progress message text that the visitor is typing. Send empty string when typing is cleared"),
6
+ affinity: zod.z.string().describe("Affinity token received from chat session initialization, used to route requests to the correct Live Agent server (X-LIVEAGENT-AFFINITY)"),
7
+ position: zod.z.number().int().describe("Character position/cursor location in the message being typed. Typically starts at 0 for new message"),
8
+ sequence: zod.z.number().int().describe("Incrementing sequence number for this request (X-LIVEAGENT-SEQUENCE). Must increment with each API call in the session, starting from 1"),
9
+ api_version: zod.z.string().describe("Salesforce API version header (X-LIVEAGENT-API-VERSION)"),
10
+ session_key: zod.z.string().describe("Unique session key for the active chat session (X-LIVEAGENT-SESSION-KEY)")
11
+ }).describe("Request model for sending live typing (sneak peek) updates to agents.");
12
+ const SalesforceServiceCloudChasitorSneakPeekOutput = zod.z.object({
13
+ message: zod.z.string().describe("Optional message about the submission status").nullable().optional(),
14
+ success: zod.z.boolean().default(true).describe("Indicates if the sneak peek was successfully sent to the agent").nullable().optional()
15
+ }).describe("Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).");
16
+ const salesforceServiceCloudChasitorSneakPeek = require_action.action("SALESFORCE_SERVICE_CLOUD_CHASITOR_SNEAK_PEEK", {
17
+ slug: "salesforce_service_cloud-chasitor-sneak-peek",
18
+ name: "Chasitor Sneak Peek",
19
+ description: "Send real-time typing indicator (sneak peek) to Live Agent during active chat session. Allows agents to see what visitors are typing before the message is sent. Requires an active Live Agent chat session with valid session_key and affinity token. The sequence number must increment with each request.",
20
+ input: SalesforceServiceCloudChasitorSneakPeekInput,
21
+ output: SalesforceServiceCloudChasitorSneakPeekOutput
22
+ });
23
+ //#endregion
24
+ exports.salesforceServiceCloudChasitorSneakPeek = salesforceServiceCloudChasitorSneakPeek;
25
+
26
+ //# sourceMappingURL=chasitor-sneak-peek.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chasitor-sneak-peek.cjs","names":["z","action"],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The current in-progress message text that the visitor is typing. Send empty string when typing is cleared\"),\n affinity: z.string().describe(\"Affinity token received from chat session initialization, used to route requests to the correct Live Agent server (X-LIVEAGENT-AFFINITY)\"),\n position: z.number().int().describe(\"Character position/cursor location in the message being typed. Typically starts at 0 for new message\"),\n sequence: z.number().int().describe(\"Incrementing sequence number for this request (X-LIVEAGENT-SEQUENCE). Must increment with each API call in the session, starting from 1\"),\n api_version: z.string().describe(\"Salesforce API version header (X-LIVEAGENT-API-VERSION)\"),\n session_key: z.string().describe(\"Unique session key for the active chat session (X-LIVEAGENT-SESSION-KEY)\"),\n}).describe(\"Request model for sending live typing (sneak peek) updates to agents.\");\nexport const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message about the submission status\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates if the sneak peek was successfully sent to the agent\").nullable().optional(),\n}).describe(\"Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).\");\n\nexport const salesforceServiceCloudChasitorSneakPeek = action(\"SALESFORCE_SERVICE_CLOUD_CHASITOR_SNEAK_PEEK\", {\n slug: \"salesforce_service_cloud-chasitor-sneak-peek\",\n name: \"Chasitor Sneak Peek\",\n description: \"Send real-time typing indicator (sneak peek) to Live Agent during active chat session. Allows agents to see what visitors are typing before the message is sent. Requires an active Live Agent chat session with valid session_key and affinity token. The sequence number must increment with each request.\",\n input: SalesforceServiceCloudChasitorSneakPeekInput,\n output: SalesforceServiceCloudChasitorSneakPeekOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CACrI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CACxK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yIAAyI;CAC7K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC7G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,kGAAkG;AAE9G,MAAa,0CAA0CC,eAAAA,OAAO,gDAAgD;CAC5G,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/chasitor-sneak-peek.d.ts
4
+ declare const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudChasitorSneakPeek: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudChasitorSneakPeek };
9
+ //# sourceMappingURL=chasitor-sneak-peek.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chasitor-sneak-peek.d.cts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAOuB;AAAA,cACvE,6CAAA,EAA+C,CAAA,CAAE,UAGiD;AAAA,cAElG,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/chasitor-sneak-peek.d.ts
4
+ declare const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudChasitorSneakPeek: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudChasitorSneakPeek };
9
+ //# sourceMappingURL=chasitor-sneak-peek.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chasitor-sneak-peek.d.mts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAOuB;AAAA,cACvE,6CAAA,EAA+C,CAAA,CAAE,UAGiD;AAAA,cAElG,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,23 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceServiceCloudChasitorSneakPeek = action("SALESFORCE_SERVICE_CLOUD_CHASITOR_SNEAK_PEEK", {
4
+ slug: "salesforce_service_cloud-chasitor-sneak-peek",
5
+ name: "Chasitor Sneak Peek",
6
+ description: "Send real-time typing indicator (sneak peek) to Live Agent during active chat session. Allows agents to see what visitors are typing before the message is sent. Requires an active Live Agent chat session with valid session_key and affinity token. The sequence number must increment with each request.",
7
+ input: z.object({
8
+ text: z.string().describe("The current in-progress message text that the visitor is typing. Send empty string when typing is cleared"),
9
+ affinity: z.string().describe("Affinity token received from chat session initialization, used to route requests to the correct Live Agent server (X-LIVEAGENT-AFFINITY)"),
10
+ position: z.number().int().describe("Character position/cursor location in the message being typed. Typically starts at 0 for new message"),
11
+ sequence: z.number().int().describe("Incrementing sequence number for this request (X-LIVEAGENT-SEQUENCE). Must increment with each API call in the session, starting from 1"),
12
+ api_version: z.string().describe("Salesforce API version header (X-LIVEAGENT-API-VERSION)"),
13
+ session_key: z.string().describe("Unique session key for the active chat session (X-LIVEAGENT-SESSION-KEY)")
14
+ }).describe("Request model for sending live typing (sneak peek) updates to agents."),
15
+ output: z.object({
16
+ message: z.string().describe("Optional message about the submission status").nullable().optional(),
17
+ success: z.boolean().default(true).describe("Indicates if the sneak peek was successfully sent to the agent").nullable().optional()
18
+ }).describe("Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).")
19
+ });
20
+ //#endregion
21
+ export { salesforceServiceCloudChasitorSneakPeek };
22
+
23
+ //# sourceMappingURL=chasitor-sneak-peek.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chasitor-sneak-peek.mjs","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The current in-progress message text that the visitor is typing. Send empty string when typing is cleared\"),\n affinity: z.string().describe(\"Affinity token received from chat session initialization, used to route requests to the correct Live Agent server (X-LIVEAGENT-AFFINITY)\"),\n position: z.number().int().describe(\"Character position/cursor location in the message being typed. Typically starts at 0 for new message\"),\n sequence: z.number().int().describe(\"Incrementing sequence number for this request (X-LIVEAGENT-SEQUENCE). Must increment with each API call in the session, starting from 1\"),\n api_version: z.string().describe(\"Salesforce API version header (X-LIVEAGENT-API-VERSION)\"),\n session_key: z.string().describe(\"Unique session key for the active chat session (X-LIVEAGENT-SESSION-KEY)\"),\n}).describe(\"Request model for sending live typing (sneak peek) updates to agents.\");\nexport const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Optional message about the submission status\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates if the sneak peek was successfully sent to the agent\").nullable().optional(),\n}).describe(\"Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).\");\n\nexport const salesforceServiceCloudChasitorSneakPeek = action(\"SALESFORCE_SERVICE_CLOUD_CHASITOR_SNEAK_PEEK\", {\n slug: \"salesforce_service_cloud-chasitor-sneak-peek\",\n name: \"Chasitor Sneak Peek\",\n description: \"Send real-time typing indicator (sneak peek) to Live Agent during active chat session. Allows agents to see what visitors are typing before the message is sent. Requires an active Live Agent chat session with valid session_key and affinity token. The sequence number must increment with each request.\",\n input: SalesforceServiceCloudChasitorSneakPeekInput,\n output: SalesforceServiceCloudChasitorSneakPeekOutput,\n});\n"],"mappings":";;AAiBA,MAAa,0CAA0C,OAAO,gDAAgD;CAC5G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBwE,EAAE,OAAO;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EACrI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;EACxK,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG;EAC1I,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yIAAyI;EAC7K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC7G,CAAC,CAAC,CAAC,SAAS,uEAUH;CACP,QAVyE,EAAE,OAAO;EAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,SAAS,kGAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/composite-batch.ts
4
+ const SalesforceServiceCloudCompositeBatchInput = zod.z.object({
5
+ haltOnError: zod.z.boolean().describe("If true, stops processing on first subrequest error; subsequent subrequests return HTTP 412. Default false.").optional(),
6
+ batchRequests: zod.z.array(zod.z.object({
7
+ url: zod.z.string().describe("Relative REST resource path for the subrequest (include API version, e.g., 'v61.0/sobjects/Account/001xxx')."),
8
+ method: zod.z.enum([
9
+ "GET",
10
+ "POST",
11
+ "PATCH",
12
+ "PUT",
13
+ "DELETE",
14
+ "HEAD",
15
+ "OPTIONS"
16
+ ]).describe("HTTP method for the subrequest."),
17
+ richInput: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON payload for subrequests that send a body (e.g., POST or PATCH).").optional()
18
+ }).describe("Model for a single subrequest in a composite batch.")).describe("Array of up to 25 independent subrequests to execute in one call.")
19
+ }).describe("Request model for Composite Batch.");
20
+ const SalesforceServiceCloudCompositeBatch_ResultItemSchema = zod.z.object({
21
+ result: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response body of the subrequest; structure varies by operation or null for 204 No Content.").nullable().optional(),
22
+ statusCode: zod.z.number().int().describe("HTTP status code returned by the subrequest.")
23
+ }).describe("Model for individual subrequest response in composite batch.");
24
+ const SalesforceServiceCloudCompositeBatchOutput = zod.z.object({
25
+ results: zod.z.array(SalesforceServiceCloudCompositeBatch_ResultItemSchema).describe("Ordered list of subrequest results matching the request order."),
26
+ hasErrors: zod.z.boolean().describe("True if any subrequest returned an HTTP 4xx/5xx status.")
27
+ }).describe("Response model for Composite Batch.");
28
+ const salesforceServiceCloudCompositeBatch = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH", {
29
+ slug: "salesforce_service_cloud-composite-batch",
30
+ name: "Composite Batch",
31
+ description: "Tool to execute multiple independent REST subrequests in one batch call. Use when bundling up to 25 independent operations to minimize round trips. Subrequests cannot reference each other.",
32
+ input: SalesforceServiceCloudCompositeBatchInput,
33
+ output: SalesforceServiceCloudCompositeBatchOutput
34
+ });
35
+ //#endregion
36
+ exports.salesforceServiceCloudCompositeBatch = salesforceServiceCloudCompositeBatch;
37
+
38
+ //# sourceMappingURL=composite-batch.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-batch.cjs","names":["z","action"],"sources":["../../src/actions/composite-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeBatchInput: z.ZodTypeAny = z.object({\n haltOnError: z.boolean().describe(\"If true, stops processing on first subrequest error; subsequent subrequests return HTTP 412. Default false.\").optional(),\n batchRequests: z.array(z.object({\n url: z.string().describe(\"Relative REST resource path for the subrequest (include API version, e.g., 'v61.0/sobjects/Account/001xxx').\"),\n method: z.enum([\"GET\", \"POST\", \"PATCH\", \"PUT\", \"DELETE\", \"HEAD\", \"OPTIONS\"]).describe(\"HTTP method for the subrequest.\"),\n richInput: z.record(z.string(), z.unknown()).describe(\"JSON payload for subrequests that send a body (e.g., POST or PATCH).\").optional(),\n}).describe(\"Model for a single subrequest in a composite batch.\")).describe(\"Array of up to 25 independent subrequests to execute in one call.\"),\n}).describe(\"Request model for Composite Batch.\");\nconst SalesforceServiceCloudCompositeBatch_ResultItemSchema: z.ZodTypeAny = z.object({\n result: z.record(z.string(), z.unknown()).describe(\"Response body of the subrequest; structure varies by operation or null for 204 No Content.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code returned by the subrequest.\"),\n}).describe(\"Model for individual subrequest response in composite batch.\");\nexport const SalesforceServiceCloudCompositeBatchOutput: z.ZodTypeAny = z.object({\n results: z.array(SalesforceServiceCloudCompositeBatch_ResultItemSchema).describe(\"Ordered list of subrequest results matching the request order.\"),\n hasErrors: z.boolean().describe(\"True if any subrequest returned an HTTP 4xx/5xx status.\"),\n}).describe(\"Response model for Composite Batch.\");\n\nexport const salesforceServiceCloudCompositeBatch = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH\", {\n slug: \"salesforce_service_cloud-composite-batch\",\n name: \"Composite Batch\",\n description: \"Tool to execute multiple independent REST subrequests in one batch call. Use when bundling up to 25 independent operations to minimize round trips. Subrequests cannot reference each other.\",\n input: SalesforceServiceCloudCompositeBatchInput,\n output: SalesforceServiceCloudCompositeBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAChC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;EACvI,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAS;GAAO;GAAU;GAAQ;EAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC;EACvH,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACtF,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,SAASA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gEAAgE;CACjJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;AAC3F,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,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/composite-batch.d.ts
4
+ declare const SalesforceServiceCloudCompositeBatchInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeBatch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeBatch };
9
+ //# sourceMappingURL=composite-batch.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-batch.d.cts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAOT;AAAA,cAKpC,0CAAA,EAA4C,CAAA,CAAE,UAGT;AAAA,cAErC,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/composite-batch.d.ts
4
+ declare const SalesforceServiceCloudCompositeBatchInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeBatch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeBatch };
9
+ //# sourceMappingURL=composite-batch.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-batch.d.mts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAOT;AAAA,cAKpC,0CAAA,EAA4C,CAAA,CAAE,UAGT;AAAA,cAErC,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/composite-batch.ts
4
+ const SalesforceServiceCloudCompositeBatchInput = z.object({
5
+ haltOnError: z.boolean().describe("If true, stops processing on first subrequest error; subsequent subrequests return HTTP 412. Default false.").optional(),
6
+ batchRequests: z.array(z.object({
7
+ url: z.string().describe("Relative REST resource path for the subrequest (include API version, e.g., 'v61.0/sobjects/Account/001xxx')."),
8
+ method: z.enum([
9
+ "GET",
10
+ "POST",
11
+ "PATCH",
12
+ "PUT",
13
+ "DELETE",
14
+ "HEAD",
15
+ "OPTIONS"
16
+ ]).describe("HTTP method for the subrequest."),
17
+ richInput: z.record(z.string(), z.unknown()).describe("JSON payload for subrequests that send a body (e.g., POST or PATCH).").optional()
18
+ }).describe("Model for a single subrequest in a composite batch.")).describe("Array of up to 25 independent subrequests to execute in one call.")
19
+ }).describe("Request model for Composite Batch.");
20
+ const SalesforceServiceCloudCompositeBatch_ResultItemSchema = z.object({
21
+ result: z.record(z.string(), z.unknown()).describe("Response body of the subrequest; structure varies by operation or null for 204 No Content.").nullable().optional(),
22
+ statusCode: z.number().int().describe("HTTP status code returned by the subrequest.")
23
+ }).describe("Model for individual subrequest response in composite batch.");
24
+ const salesforceServiceCloudCompositeBatch = action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH", {
25
+ slug: "salesforce_service_cloud-composite-batch",
26
+ name: "Composite Batch",
27
+ description: "Tool to execute multiple independent REST subrequests in one batch call. Use when bundling up to 25 independent operations to minimize round trips. Subrequests cannot reference each other.",
28
+ input: SalesforceServiceCloudCompositeBatchInput,
29
+ output: z.object({
30
+ results: z.array(SalesforceServiceCloudCompositeBatch_ResultItemSchema).describe("Ordered list of subrequest results matching the request order."),
31
+ hasErrors: z.boolean().describe("True if any subrequest returned an HTTP 4xx/5xx status.")
32
+ }).describe("Response model for Composite Batch.")
33
+ });
34
+ //#endregion
35
+ export { salesforceServiceCloudCompositeBatch };
36
+
37
+ //# sourceMappingURL=composite-batch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-batch.mjs","names":[],"sources":["../../src/actions/composite-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeBatchInput: z.ZodTypeAny = z.object({\n haltOnError: z.boolean().describe(\"If true, stops processing on first subrequest error; subsequent subrequests return HTTP 412. Default false.\").optional(),\n batchRequests: z.array(z.object({\n url: z.string().describe(\"Relative REST resource path for the subrequest (include API version, e.g., 'v61.0/sobjects/Account/001xxx').\"),\n method: z.enum([\"GET\", \"POST\", \"PATCH\", \"PUT\", \"DELETE\", \"HEAD\", \"OPTIONS\"]).describe(\"HTTP method for the subrequest.\"),\n richInput: z.record(z.string(), z.unknown()).describe(\"JSON payload for subrequests that send a body (e.g., POST or PATCH).\").optional(),\n}).describe(\"Model for a single subrequest in a composite batch.\")).describe(\"Array of up to 25 independent subrequests to execute in one call.\"),\n}).describe(\"Request model for Composite Batch.\");\nconst SalesforceServiceCloudCompositeBatch_ResultItemSchema: z.ZodTypeAny = z.object({\n result: z.record(z.string(), z.unknown()).describe(\"Response body of the subrequest; structure varies by operation or null for 204 No Content.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code returned by the subrequest.\"),\n}).describe(\"Model for individual subrequest response in composite batch.\");\nexport const SalesforceServiceCloudCompositeBatchOutput: z.ZodTypeAny = z.object({\n results: z.array(SalesforceServiceCloudCompositeBatch_ResultItemSchema).describe(\"Ordered list of subrequest results matching the request order.\"),\n hasErrors: z.boolean().describe(\"True if any subrequest returned an HTTP 4xx/5xx status.\"),\n}).describe(\"Response model for Composite Batch.\");\n\nexport const salesforceServiceCloudCompositeBatch = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH\", {\n slug: \"salesforce_service_cloud-composite-batch\",\n name: \"Composite Batch\",\n description: \"Tool to execute multiple independent REST subrequests in one batch call. Use when bundling up to 25 independent operations to minimize round trips. Subrequests cannot reference each other.\",\n input: SalesforceServiceCloudCompositeBatchInput,\n output: SalesforceServiceCloudCompositeBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC1J,eAAe,EAAE,MAAM,EAAE,OAAO;EAChC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;EACvI,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAS;GAAO;GAAU;GAAQ;EAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC;EACvH,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,wDAAsE,EAAE,OAAO;CACnF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACtF,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAM1E,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsE,EAAE,OAAO;EAC/E,SAAS,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gEAAgE;EACjJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;CAC3F,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
@@ -0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/composite-request.ts
4
+ const SalesforceServiceCloudCompositeRequestInput = zod.z.object({
5
+ allOrNone: zod.z.boolean().default(false).describe("If true, treat all subrequests as a single transaction; on first error roll back all prior successes").optional(),
6
+ compositeRequest: zod.z.array(zod.z.object({
7
+ url: zod.z.string().describe("Relative REST resource path for the subrequest, starting with '/services/data/vXX.X/' (e.g., '/services/data/v61.0/sobjects/Account'). Can reference prior subrequest responses using '@{referenceId.fieldName}' syntax (e.g., '/services/data/v61.0/sobjects/Contact/@{refAccount.id}')."),
8
+ body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON payload for subrequests that accept a body (POST, PATCH)").optional(),
9
+ method: zod.z.enum([
10
+ "GET",
11
+ "POST",
12
+ "PATCH",
13
+ "DELETE"
14
+ ]).describe("HTTP method for this subrequest"),
15
+ httpHeaders: zod.z.object({}).describe("Optional per-subrequest HTTP headers (only allowed by Composite API)").optional(),
16
+ referenceId: zod.z.string().describe("Unique identifier for this subrequest; used to reference its result in later subrequests")
17
+ }).describe("Represents a single dependent subrequest in the Salesforce Composite API.")).describe("Ordered list of up to 25 subrequests to execute in sequence. Later requests can reference earlier results using '@{referenceId.field}' syntax.")
18
+ }).describe("Request body for executing multiple dependent subrequests via Salesforce Composite API.");
19
+ const SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema = zod.z.object({
20
+ body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON response body of the subrequest"),
21
+ httpHeaders: zod.z.record(zod.z.string(), zod.z.unknown()).describe("HTTP headers returned by the subrequest"),
22
+ referenceId: zod.z.string().describe("Identifier matching the subrequest referenceId"),
23
+ httpStatusCode: zod.z.number().int().describe("HTTP status code returned for the subrequest")
24
+ }).describe("Represents an individual subrequest response in the Composite API result.");
25
+ const SalesforceServiceCloudCompositeRequestOutput = zod.z.object({ compositeResponse: zod.z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe("Array of subrequest results in request order") }).describe("Top-level response for the Salesforce Composite API call.");
26
+ const salesforceServiceCloudCompositeRequest = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST", {
27
+ slug: "salesforce_service_cloud-composite-request",
28
+ name: "Composite Request",
29
+ description: "Execute up to 25 dependent Salesforce REST subrequests in a single API call. Subrequests execute sequentially and can reference results from earlier requests using '@{referenceId.field}' syntax. Use this when operations depend on each other (e.g., create Account then create related Contact). For independent operations, use Composite Batch instead.",
30
+ input: SalesforceServiceCloudCompositeRequestInput,
31
+ output: SalesforceServiceCloudCompositeRequestOutput
32
+ });
33
+ //#endregion
34
+ exports.salesforceServiceCloudCompositeRequest = salesforceServiceCloudCompositeRequest;
35
+
36
+ //# sourceMappingURL=composite-request.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-request.cjs","names":["z","action"],"sources":["../../src/actions/composite-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeRequestInput: z.ZodTypeAny = z.object({\n allOrNone: z.boolean().default(false).describe(\"If true, treat all subrequests as a single transaction; on first error roll back all prior successes\").optional(),\n compositeRequest: z.array(z.object({\n url: z.string().describe(\"Relative REST resource path for the subrequest, starting with '/services/data/vXX.X/' (e.g., '/services/data/v61.0/sobjects/Account'). Can reference prior subrequest responses using '@{referenceId.fieldName}' syntax (e.g., '/services/data/v61.0/sobjects/Contact/@{refAccount.id}').\"),\n body: z.record(z.string(), z.unknown()).describe(\"JSON payload for subrequests that accept a body (POST, PATCH)\").optional(),\n method: z.enum([\"GET\", \"POST\", \"PATCH\", \"DELETE\"]).describe(\"HTTP method for this subrequest\"),\n httpHeaders: z.object({}).describe(\"Optional per-subrequest HTTP headers (only allowed by Composite API)\").optional(),\n referenceId: z.string().describe(\"Unique identifier for this subrequest; used to reference its result in later subrequests\"),\n}).describe(\"Represents a single dependent subrequest in the Salesforce Composite API.\")).describe(\"Ordered list of up to 25 subrequests to execute in sequence. Later requests can reference earlier results using '@{referenceId.field}' syntax.\"),\n}).describe(\"Request body for executing multiple dependent subrequests via Salesforce Composite API.\");\nconst SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema: z.ZodTypeAny = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"JSON response body of the subrequest\"),\n httpHeaders: z.record(z.string(), z.unknown()).describe(\"HTTP headers returned by the subrequest\"),\n referenceId: z.string().describe(\"Identifier matching the subrequest referenceId\"),\n httpStatusCode: z.number().int().describe(\"HTTP status code returned for the subrequest\"),\n}).describe(\"Represents an individual subrequest response in the Composite API result.\");\nexport const SalesforceServiceCloudCompositeRequestOutput: z.ZodTypeAny = z.object({\n compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe(\"Array of subrequest results in request order\"),\n}).describe(\"Top-level response for the Salesforce Composite API call.\");\n\nexport const salesforceServiceCloudCompositeRequest = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST\", {\n slug: \"salesforce_service_cloud-composite-request\",\n name: \"Composite Request\",\n description: \"Execute up to 25 dependent Salesforce REST subrequests in a single API call. Subrequests execute sequentially and can reference results from earlier requests using '@{referenceId.field}' syntax. Use this when operations depend on each other (e.g., create Account then create related Contact). For independent operations, use Composite Batch instead.\",\n input: SalesforceServiceCloudCompositeRequestInput,\n output: SalesforceServiceCloudCompositeRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChK,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACnC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R;EACpT,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC3H,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAS;EAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC;EAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CAC7H,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,gJAAgJ;AACnP,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,oEAAkFA,IAAAA,EAAE,OAAO;CAC/F,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACvF,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AAC1F,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAa,+CAA6DA,IAAAA,EAAE,OAAO,EACjF,mBAAmBA,IAAAA,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,8CAA8C,EACvJ,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,yCAAyCC,eAAAA,OAAO,8CAA8C;CACzG,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/composite-request.d.ts
4
+ declare const SalesforceServiceCloudCompositeRequestInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeRequest: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeRequest };
9
+ //# sourceMappingURL=composite-request.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-request.d.cts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAS0C;AAAA,cAOzF,4CAAA,EAA8C,CAAA,CAAE,UAEW;AAAA,cAE3D,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/composite-request.d.ts
4
+ declare const SalesforceServiceCloudCompositeRequestInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeRequest: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeRequest };
9
+ //# sourceMappingURL=composite-request.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-request.d.mts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAS0C;AAAA,cAOzF,4CAAA,EAA8C,CAAA,CAAE,UAEW;AAAA,cAE3D,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/composite-request.ts
4
+ const SalesforceServiceCloudCompositeRequestInput = z.object({
5
+ allOrNone: z.boolean().default(false).describe("If true, treat all subrequests as a single transaction; on first error roll back all prior successes").optional(),
6
+ compositeRequest: z.array(z.object({
7
+ url: z.string().describe("Relative REST resource path for the subrequest, starting with '/services/data/vXX.X/' (e.g., '/services/data/v61.0/sobjects/Account'). Can reference prior subrequest responses using '@{referenceId.fieldName}' syntax (e.g., '/services/data/v61.0/sobjects/Contact/@{refAccount.id}')."),
8
+ body: z.record(z.string(), z.unknown()).describe("JSON payload for subrequests that accept a body (POST, PATCH)").optional(),
9
+ method: z.enum([
10
+ "GET",
11
+ "POST",
12
+ "PATCH",
13
+ "DELETE"
14
+ ]).describe("HTTP method for this subrequest"),
15
+ httpHeaders: z.object({}).describe("Optional per-subrequest HTTP headers (only allowed by Composite API)").optional(),
16
+ referenceId: z.string().describe("Unique identifier for this subrequest; used to reference its result in later subrequests")
17
+ }).describe("Represents a single dependent subrequest in the Salesforce Composite API.")).describe("Ordered list of up to 25 subrequests to execute in sequence. Later requests can reference earlier results using '@{referenceId.field}' syntax.")
18
+ }).describe("Request body for executing multiple dependent subrequests via Salesforce Composite API.");
19
+ const SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema = z.object({
20
+ body: z.record(z.string(), z.unknown()).describe("JSON response body of the subrequest"),
21
+ httpHeaders: z.record(z.string(), z.unknown()).describe("HTTP headers returned by the subrequest"),
22
+ referenceId: z.string().describe("Identifier matching the subrequest referenceId"),
23
+ httpStatusCode: z.number().int().describe("HTTP status code returned for the subrequest")
24
+ }).describe("Represents an individual subrequest response in the Composite API result.");
25
+ const salesforceServiceCloudCompositeRequest = action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST", {
26
+ slug: "salesforce_service_cloud-composite-request",
27
+ name: "Composite Request",
28
+ description: "Execute up to 25 dependent Salesforce REST subrequests in a single API call. Subrequests execute sequentially and can reference results from earlier requests using '@{referenceId.field}' syntax. Use this when operations depend on each other (e.g., create Account then create related Contact). For independent operations, use Composite Batch instead.",
29
+ input: SalesforceServiceCloudCompositeRequestInput,
30
+ output: z.object({ compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe("Array of subrequest results in request order") }).describe("Top-level response for the Salesforce Composite API call.")
31
+ });
32
+ //#endregion
33
+ export { salesforceServiceCloudCompositeRequest };
34
+
35
+ //# sourceMappingURL=composite-request.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-request.mjs","names":[],"sources":["../../src/actions/composite-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeRequestInput: z.ZodTypeAny = z.object({\n allOrNone: z.boolean().default(false).describe(\"If true, treat all subrequests as a single transaction; on first error roll back all prior successes\").optional(),\n compositeRequest: z.array(z.object({\n url: z.string().describe(\"Relative REST resource path for the subrequest, starting with '/services/data/vXX.X/' (e.g., '/services/data/v61.0/sobjects/Account'). Can reference prior subrequest responses using '@{referenceId.fieldName}' syntax (e.g., '/services/data/v61.0/sobjects/Contact/@{refAccount.id}').\"),\n body: z.record(z.string(), z.unknown()).describe(\"JSON payload for subrequests that accept a body (POST, PATCH)\").optional(),\n method: z.enum([\"GET\", \"POST\", \"PATCH\", \"DELETE\"]).describe(\"HTTP method for this subrequest\"),\n httpHeaders: z.object({}).describe(\"Optional per-subrequest HTTP headers (only allowed by Composite API)\").optional(),\n referenceId: z.string().describe(\"Unique identifier for this subrequest; used to reference its result in later subrequests\"),\n}).describe(\"Represents a single dependent subrequest in the Salesforce Composite API.\")).describe(\"Ordered list of up to 25 subrequests to execute in sequence. Later requests can reference earlier results using '@{referenceId.field}' syntax.\"),\n}).describe(\"Request body for executing multiple dependent subrequests via Salesforce Composite API.\");\nconst SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema: z.ZodTypeAny = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"JSON response body of the subrequest\"),\n httpHeaders: z.record(z.string(), z.unknown()).describe(\"HTTP headers returned by the subrequest\"),\n referenceId: z.string().describe(\"Identifier matching the subrequest referenceId\"),\n httpStatusCode: z.number().int().describe(\"HTTP status code returned for the subrequest\"),\n}).describe(\"Represents an individual subrequest response in the Composite API result.\");\nexport const SalesforceServiceCloudCompositeRequestOutput: z.ZodTypeAny = z.object({\n compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe(\"Array of subrequest results in request order\"),\n}).describe(\"Top-level response for the Salesforce Composite API call.\");\n\nexport const salesforceServiceCloudCompositeRequest = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST\", {\n slug: \"salesforce_service_cloud-composite-request\",\n name: \"Composite Request\",\n description: \"Execute up to 25 dependent Salesforce REST subrequests in a single API call. Subrequests execute sequentially and can reference results from earlier requests using '@{referenceId.field}' syntax. Use this when operations depend on each other (e.g., create Account then create related Contact). For independent operations, use Composite Batch instead.\",\n input: SalesforceServiceCloudCompositeRequestInput,\n output: SalesforceServiceCloudCompositeRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4D,EAAE,OAAO;CAChF,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChK,kBAAkB,EAAE,MAAM,EAAE,OAAO;EACnC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2RAA2R;EACpT,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAS;EAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CAC7H,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,gJAAgJ;AACnP,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,oEAAkF,EAAE,OAAO;CAC/F,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACvF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AAC1F,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAKvF,MAAa,yCAAyC,OAAO,8CAA8C;CACzG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwE,EAAE,OAAO,EACjF,mBAAmB,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,8CAA8C,EACvJ,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/composite-sobject-tree.ts
4
+ const SalesforceServiceCloudCompositeSobjectTreeInput = zod.z.object({
5
+ records: zod.z.array(zod.z.object({ attributes: zod.z.object({
6
+ type: zod.z.string().describe("sObject API name for this record (e.g., 'Account', 'Contact')"),
7
+ referenceId: zod.z.string().describe("Unique client-defined reference ID (e.g., 'ref1', 'accountRef001') used to correlate request records with response results")
8
+ }).describe("Metadata for the sObject record including type and referenceId") }).passthrough().describe("A record tree for composite insert, allowing nested child records.")).describe("List of sObject tree records to create. Each record must have 'attributes' (with 'type' and 'referenceId') and field values. Child records are specified using relationship name as key (e.g., 'Contacts'). Maximum 200 total records across all trees, up to 5 levels deep."),
9
+ objectApiName: zod.z.string().describe("Root sObject API name (e.g., 'Account', 'Contact', 'Case'). All root records in the request must be of this type.")
10
+ }).describe("Request model for Composite SObject Tree endpoint.");
11
+ const SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema = zod.z.object({
12
+ fields: zod.z.array(zod.z.string()).describe("Fields involved in the error").nullable().optional(),
13
+ message: zod.z.string().describe("Error message"),
14
+ errorCode: zod.z.string().describe("Error code for the failed record").nullable().optional()
15
+ }).describe("Error detail for a failed record in the response.");
16
+ const SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = zod.z.object({
17
+ id: zod.z.string().describe("Salesforce ID of the created record").nullable().optional(),
18
+ errors: zod.z.array(SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema).describe("Error details if this record creation failed").nullable().optional(),
19
+ referenceId: zod.z.string().describe("Echo of the client-defined referenceId")
20
+ }).describe("Result for an individual record in the composite tree response.");
21
+ const SalesforceServiceCloudCompositeSobjectTreeOutput = zod.z.object({
22
+ results: zod.z.array(SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema).describe("List of results matching each submitted record"),
23
+ hasErrors: zod.z.boolean().describe("Indicates if any record failed to create")
24
+ }).describe("Response model for Composite SObject Tree endpoint.");
25
+ const salesforceServiceCloudCompositeSobjectTree = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_SOBJECT_TREE", {
26
+ slug: "salesforce_service_cloud-composite-sobject-tree",
27
+ name: "Composite SObject Tree",
28
+ description: "Create one or more nested sObject record trees in a single API call. Supports parent-child relationships up to 5 levels deep, with a maximum of 200 total records across all trees. Use this for bulk insertion of related records (e.g., Account with Contacts, or Orders with Line Items). Relationships must be Master-Detail or Lookup. Only supports INSERT operations, not upserts.",
29
+ input: SalesforceServiceCloudCompositeSobjectTreeInput,
30
+ output: SalesforceServiceCloudCompositeSobjectTreeOutput
31
+ });
32
+ //#endregion
33
+ exports.salesforceServiceCloudCompositeSobjectTree = salesforceServiceCloudCompositeSobjectTree;
34
+
35
+ //# sourceMappingURL=composite-sobject-tree.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sobject-tree.cjs","names":["z","action"],"sources":["../../src/actions/composite-sobject-tree.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeSobjectTreeInput: z.ZodTypeAny = z.object({\n records: z.array(z.object({\n attributes: z.object({\n type: z.string().describe(\"sObject API name for this record (e.g., 'Account', 'Contact')\"),\n referenceId: z.string().describe(\"Unique client-defined reference ID (e.g., 'ref1', 'accountRef001') used to correlate request records with response results\"),\n}).describe(\"Metadata for the sObject record including type and referenceId\"),\n}).passthrough().describe(\"A record tree for composite insert, allowing nested child records.\")).describe(\"List of sObject tree records to create. Each record must have 'attributes' (with 'type' and 'referenceId') and field values. Child records are specified using relationship name as key (e.g., 'Contacts'). Maximum 200 total records across all trees, up to 5 levels deep.\"),\n objectApiName: z.string().describe(\"Root sObject API name (e.g., 'Account', 'Contact', 'Case'). All root records in the request must be of this type.\"),\n}).describe(\"Request model for Composite SObject Tree endpoint.\");\nconst SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\"),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Salesforce ID of the created record\").nullable().optional(),\n errors: z.array(SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema).describe(\"Error details if this record creation failed\").nullable().optional(),\n referenceId: z.string().describe(\"Echo of the client-defined referenceId\"),\n}).describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodTypeAny = z.object({\n results: z.array(SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema).describe(\"List of results matching each submitted record\"),\n hasErrors: z.boolean().describe(\"Indicates if any record failed to create\"),\n}).describe(\"Response model for Composite SObject Tree endpoint.\");\n\nexport const salesforceServiceCloudCompositeSobjectTree = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_SOBJECT_TREE\", {\n slug: \"salesforce_service_cloud-composite-sobject-tree\",\n name: \"Composite SObject Tree\",\n description: \"Create one or more nested sObject record trees in a single API call. Supports parent-child relationships up to 5 levels deep, with a maximum of 200 total records across all trees. Use this for bulk insertion of related records (e.g., Account with Contacts, or Orders with Line Items). Relationships must be Master-Detail or Lookup. Only supports INSERT operations, not upserts.\",\n input: SalesforceServiceCloudCompositeSobjectTreeInput,\n output: SalesforceServiceCloudCompositeSobjectTreeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC1B,YAAYA,IAAAA,EAAE,OAAO;EACrB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;CAC/J,CAAC,CAAC,CAAC,SAAS,gEAAgE,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8QAA8Q;CACtX,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;AACxJ,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,+DAA6EA,IAAAA,EAAE,OAAO;CAC1F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oFAAkGA,IAAAA,EAAE,OAAO;CAC/G,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,mDAAiEA,IAAAA,EAAE,OAAO;CACrF,SAASA,IAAAA,EAAE,MAAM,iFAAiF,CAAC,CAAC,SAAS,gDAAgD;CAC7J,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AAC5E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,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/composite-sobject-tree.d.ts
4
+ declare const SalesforceServiceCloudCompositeSobjectTreeInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeSobjectTree: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeSobjectTree };
9
+ //# sourceMappingURL=composite-sobject-tree.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sobject-tree.d.cts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAQC;AAAA,cAWpD,gDAAA,EAAkD,CAAA,CAAE,UAGC;AAAA,cAErD,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/composite-sobject-tree.d.ts
4
+ declare const SalesforceServiceCloudCompositeSobjectTreeInput: z.ZodTypeAny;
5
+ declare const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodTypeAny;
6
+ declare const salesforceServiceCloudCompositeSobjectTree: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { salesforceServiceCloudCompositeSobjectTree };
9
+ //# sourceMappingURL=composite-sobject-tree.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sobject-tree.d.mts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAQC;AAAA,cAWpD,gDAAA,EAAkD,CAAA,CAAE,UAGC;AAAA,cAErD,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/composite-sobject-tree.ts
4
+ const SalesforceServiceCloudCompositeSobjectTreeInput = z.object({
5
+ records: z.array(z.object({ attributes: z.object({
6
+ type: z.string().describe("sObject API name for this record (e.g., 'Account', 'Contact')"),
7
+ referenceId: z.string().describe("Unique client-defined reference ID (e.g., 'ref1', 'accountRef001') used to correlate request records with response results")
8
+ }).describe("Metadata for the sObject record including type and referenceId") }).passthrough().describe("A record tree for composite insert, allowing nested child records.")).describe("List of sObject tree records to create. Each record must have 'attributes' (with 'type' and 'referenceId') and field values. Child records are specified using relationship name as key (e.g., 'Contacts'). Maximum 200 total records across all trees, up to 5 levels deep."),
9
+ objectApiName: z.string().describe("Root sObject API name (e.g., 'Account', 'Contact', 'Case'). All root records in the request must be of this type.")
10
+ }).describe("Request model for Composite SObject Tree endpoint.");
11
+ const SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema = z.object({
12
+ fields: z.array(z.string()).describe("Fields involved in the error").nullable().optional(),
13
+ message: z.string().describe("Error message"),
14
+ errorCode: z.string().describe("Error code for the failed record").nullable().optional()
15
+ }).describe("Error detail for a failed record in the response.");
16
+ const SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = z.object({
17
+ id: z.string().describe("Salesforce ID of the created record").nullable().optional(),
18
+ errors: z.array(SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema).describe("Error details if this record creation failed").nullable().optional(),
19
+ referenceId: z.string().describe("Echo of the client-defined referenceId")
20
+ }).describe("Result for an individual record in the composite tree response.");
21
+ const salesforceServiceCloudCompositeSobjectTree = action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_SOBJECT_TREE", {
22
+ slug: "salesforce_service_cloud-composite-sobject-tree",
23
+ name: "Composite SObject Tree",
24
+ description: "Create one or more nested sObject record trees in a single API call. Supports parent-child relationships up to 5 levels deep, with a maximum of 200 total records across all trees. Use this for bulk insertion of related records (e.g., Account with Contacts, or Orders with Line Items). Relationships must be Master-Detail or Lookup. Only supports INSERT operations, not upserts.",
25
+ input: SalesforceServiceCloudCompositeSobjectTreeInput,
26
+ output: z.object({
27
+ results: z.array(SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema).describe("List of results matching each submitted record"),
28
+ hasErrors: z.boolean().describe("Indicates if any record failed to create")
29
+ }).describe("Response model for Composite SObject Tree endpoint.")
30
+ });
31
+ //#endregion
32
+ export { salesforceServiceCloudCompositeSobjectTree };
33
+
34
+ //# sourceMappingURL=composite-sobject-tree.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sobject-tree.mjs","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCompositeSobjectTreeInput: z.ZodTypeAny = z.object({\n records: z.array(z.object({\n attributes: z.object({\n type: z.string().describe(\"sObject API name for this record (e.g., 'Account', 'Contact')\"),\n referenceId: z.string().describe(\"Unique client-defined reference ID (e.g., 'ref1', 'accountRef001') used to correlate request records with response results\"),\n}).describe(\"Metadata for the sObject record including type and referenceId\"),\n}).passthrough().describe(\"A record tree for composite insert, allowing nested child records.\")).describe(\"List of sObject tree records to create. Each record must have 'attributes' (with 'type' and 'referenceId') and field values. Child records are specified using relationship name as key (e.g., 'Contacts'). Maximum 200 total records across all trees, up to 5 levels deep.\"),\n objectApiName: z.string().describe(\"Root sObject API name (e.g., 'Account', 'Contact', 'Case'). All root records in the request must be of this type.\"),\n}).describe(\"Request model for Composite SObject Tree endpoint.\");\nconst SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema: z.ZodTypeAny = z.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\"),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Salesforce ID of the created record\").nullable().optional(),\n errors: z.array(SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema).describe(\"Error details if this record creation failed\").nullable().optional(),\n referenceId: z.string().describe(\"Echo of the client-defined referenceId\"),\n}).describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodTypeAny = z.object({\n results: z.array(SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema).describe(\"List of results matching each submitted record\"),\n hasErrors: z.boolean().describe(\"Indicates if any record failed to create\"),\n}).describe(\"Response model for Composite SObject Tree endpoint.\");\n\nexport const salesforceServiceCloudCompositeSobjectTree = action(\"SALESFORCE_SERVICE_CLOUD_COMPOSITE_SOBJECT_TREE\", {\n slug: \"salesforce_service_cloud-composite-sobject-tree\",\n name: \"Composite SObject Tree\",\n description: \"Create one or more nested sObject record trees in a single API call. Supports parent-child relationships up to 5 levels deep, with a maximum of 200 total records across all trees. Use this for bulk insertion of related records (e.g., Account with Contacts, or Orders with Line Items). Relationships must be Master-Detail or Lookup. Only supports INSERT operations, not upserts.\",\n input: SalesforceServiceCloudCompositeSobjectTreeInput,\n output: SalesforceServiceCloudCompositeSobjectTreeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,SAAS,EAAE,MAAM,EAAE,OAAO,EAC1B,YAAY,EAAE,OAAO;EACrB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;CAC/J,CAAC,CAAC,CAAC,SAAS,gEAAgE,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,CAAC,SAAS,8QAA8Q;CACtX,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;AACxJ,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,+DAA6E,EAAE,OAAO;CAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oFAAkG,EAAE,OAAO;CAC/G,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAM7E,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4E,EAAE,OAAO;EACrF,SAAS,EAAE,MAAM,iFAAiF,CAAC,CAAC,SAAS,gDAAgD;EAC7J,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC5E,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}