@keystrokehq/salesforce_service_cloud 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +5 -5
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +32 -3
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +32 -3
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +5 -5
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +6 -6
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +34 -3
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +34 -3
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +6 -6
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +6 -6
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +31 -3
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +31 -3
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +6 -6
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +5 -5
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +30 -3
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +30 -3
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +5 -5
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs +1 -1
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +9 -3
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +9 -3
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs +1 -1
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +4 -4
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +21 -3
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +21 -3
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +4 -4
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -1
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +5 -3
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +5 -3
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -1
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +3 -3
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +33 -3
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +33 -3
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +3 -3
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +3 -3
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +19 -3
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +19 -3
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +3 -3
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +3 -3
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +6 -3
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +6 -3
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +3 -3
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +6 -6
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +15 -3
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +15 -3
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +6 -6
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +6 -6
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +17 -3
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +17 -3
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +6 -6
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +3 -3
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +12 -3
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +12 -3
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +3 -3
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +2 -2
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +16 -3
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +16 -3
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +2 -2
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -1
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +17 -3
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +17 -3
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -1
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -1
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +19 -3
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +19 -3
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -1
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs +1 -1
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +17 -3
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +17 -3
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs +1 -1
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +5 -5
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +20 -3
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +20 -3
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +5 -5
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs +2 -2
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +22 -3
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +22 -3
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs +2 -2
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return salesforceServiceCloud.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return salesforceServiceCloud.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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"}
|
|
@@ -12,7 +12,7 @@ const SalesforceServiceCloudChasitorSneakPeekInput = zod.z.object({
|
|
|
12
12
|
const SalesforceServiceCloudChasitorSneakPeekOutput = zod.z.object({
|
|
13
13
|
message: zod.z.string().describe("Optional message about the submission status").nullable().optional(),
|
|
14
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).");
|
|
15
|
+
}).passthrough().describe("Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).");
|
|
16
16
|
const salesforceServiceCloudChasitorSneakPeek = require_action.action("SALESFORCE_SERVICE_CLOUD_CHASITOR_SNEAK_PEEK", {
|
|
17
17
|
slug: "salesforce_service_cloud-chasitor-sneak-peek",
|
|
18
18
|
name: "Chasitor Sneak Peek",
|
|
@@ -1 +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
|
|
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.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.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}).passthrough().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,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,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,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,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,YAAY,CAAC,CAAC,SAAS,kGAAkG;AAE5H,MAAa,0CAA0CC,eAAAA,OAAO,gDAAgD;CAC5G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/chasitor-sneak-peek.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudChasitorSneakPeekInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodObject<{
|
|
5
|
+
text: z.ZodString;
|
|
6
|
+
affinity: z.ZodString;
|
|
7
|
+
position: z.ZodNumber;
|
|
8
|
+
sequence: z.ZodNumber;
|
|
9
|
+
api_version: z.ZodString;
|
|
10
|
+
session_key: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodObject<{
|
|
13
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const salesforceServiceCloudChasitorSneakPeek: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
text: string;
|
|
18
|
+
affinity: string;
|
|
19
|
+
position: number;
|
|
20
|
+
sequence: number;
|
|
21
|
+
api_version: string;
|
|
22
|
+
session_key: string;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { salesforceServiceCloudChasitorSneakPeek };
|
|
9
26
|
//# sourceMappingURL=chasitor-sneak-peek.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chasitor-sneak-peek.d.cts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.d.cts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAQ5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;cAK7C,uCAAA,gCAAuC,wBAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/chasitor-sneak-peek.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudChasitorSneakPeekInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudChasitorSneakPeekInput: z.ZodObject<{
|
|
5
|
+
text: z.ZodString;
|
|
6
|
+
affinity: z.ZodString;
|
|
7
|
+
position: z.ZodNumber;
|
|
8
|
+
sequence: z.ZodNumber;
|
|
9
|
+
api_version: z.ZodString;
|
|
10
|
+
session_key: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodObject<{
|
|
13
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const salesforceServiceCloudChasitorSneakPeek: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
text: string;
|
|
18
|
+
affinity: string;
|
|
19
|
+
position: number;
|
|
20
|
+
sequence: number;
|
|
21
|
+
api_version: string;
|
|
22
|
+
session_key: string;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { salesforceServiceCloudChasitorSneakPeek };
|
|
9
26
|
//# sourceMappingURL=chasitor-sneak-peek.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chasitor-sneak-peek.d.mts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.d.mts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;cAIa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAQ5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;cAK7C,uCAAA,gCAAuC,wBAAA"}
|
|
@@ -15,7 +15,7 @@ const salesforceServiceCloudChasitorSneakPeek = action("SALESFORCE_SERVICE_CLOUD
|
|
|
15
15
|
output: z.object({
|
|
16
16
|
message: z.string().describe("Optional message about the submission status").nullable().optional(),
|
|
17
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).")
|
|
18
|
+
}).passthrough().describe("Response model for sneak peek submission. The endpoint returns no content on success (HTTP 204).")
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { salesforceServiceCloudChasitorSneakPeek };
|
|
@@ -1 +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
|
|
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.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.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}).passthrough().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,OAjB0D,EAAE,OAAO;EACnE,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,QAV2D,EAAE,OAAO;EACpE,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,YAAY,CAAC,CAAC,SAAS,kGAOhB;AACV,CAAC"}
|
|
@@ -15,16 +15,16 @@ const SalesforceServiceCloudCompositeBatchInput = zod.z.object({
|
|
|
15
15
|
"OPTIONS"
|
|
16
16
|
]).describe("HTTP method for the subrequest."),
|
|
17
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.")
|
|
18
|
+
}).passthrough().describe("Model for a single subrequest in a composite batch.")).describe("Array of up to 25 independent subrequests to execute in one call.")
|
|
19
19
|
}).describe("Request model for Composite Batch.");
|
|
20
20
|
const SalesforceServiceCloudCompositeBatch_ResultItemSchema = zod.z.object({
|
|
21
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.");
|
|
22
|
+
statusCode: zod.z.number().int().describe("HTTP status code returned by the subrequest.").nullable()
|
|
23
|
+
}).passthrough().describe("Model for individual subrequest response in composite batch.");
|
|
24
24
|
const SalesforceServiceCloudCompositeBatchOutput = zod.z.object({
|
|
25
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.");
|
|
26
|
+
hasErrors: zod.z.boolean().describe("True if any subrequest returned an HTTP 4xx/5xx status.").nullable()
|
|
27
|
+
}).passthrough().describe("Response model for Composite Batch.");
|
|
28
28
|
const salesforceServiceCloudCompositeBatch = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH", {
|
|
29
29
|
slug: "salesforce_service_cloud-composite-batch",
|
|
30
30
|
name: "Composite Batch",
|
|
@@ -1 +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
|
|
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.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}).passthrough().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.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.\").nullable(),\n}).passthrough().describe(\"Model for individual subrequest response in composite batch.\");\nexport const SalesforceServiceCloudCompositeBatchOutput = 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.\").nullable(),\n}).passthrough().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,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,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,YAAY,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC9J,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,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,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gEAAgE;CACjJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/composite-batch.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudCompositeBatchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudCompositeBatchInput: z.ZodObject<{
|
|
5
|
+
haltOnError: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
batchRequests: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
method: z.ZodEnum<{
|
|
9
|
+
GET: "GET";
|
|
10
|
+
POST: "POST";
|
|
11
|
+
PATCH: "PATCH";
|
|
12
|
+
PUT: "PUT";
|
|
13
|
+
DELETE: "DELETE";
|
|
14
|
+
HEAD: "HEAD";
|
|
15
|
+
OPTIONS: "OPTIONS";
|
|
16
|
+
}>;
|
|
17
|
+
richInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodObject<{
|
|
21
|
+
results: z.ZodArray<z.ZodObject<{
|
|
22
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
statusCode: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
batchRequests: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
url: string;
|
|
31
|
+
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
|
|
32
|
+
richInput?: Record<string, unknown> | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
haltOnError?: boolean | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { salesforceServiceCloudCompositeBatch };
|
|
9
38
|
//# sourceMappingURL=composite-batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-batch.d.cts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"composite-batch.d.cts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA;;;;;gBAM/C,MAAA;EAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/composite-batch.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudCompositeBatchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudCompositeBatchInput: z.ZodObject<{
|
|
5
|
+
haltOnError: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
batchRequests: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
method: z.ZodEnum<{
|
|
9
|
+
GET: "GET";
|
|
10
|
+
POST: "POST";
|
|
11
|
+
PATCH: "PATCH";
|
|
12
|
+
PUT: "PUT";
|
|
13
|
+
DELETE: "DELETE";
|
|
14
|
+
HEAD: "HEAD";
|
|
15
|
+
OPTIONS: "OPTIONS";
|
|
16
|
+
}>;
|
|
17
|
+
richInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodObject<{
|
|
21
|
+
results: z.ZodArray<z.ZodObject<{
|
|
22
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
statusCode: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
batchRequests: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
url: string;
|
|
31
|
+
method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS";
|
|
32
|
+
richInput?: Record<string, unknown> | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
haltOnError?: boolean | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { salesforceServiceCloudCompositeBatch };
|
|
9
38
|
//# sourceMappingURL=composite-batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-batch.d.mts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"composite-batch.d.mts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA;;;;;gBAM/C,MAAA;EAAA"}
|
|
@@ -15,12 +15,12 @@ const SalesforceServiceCloudCompositeBatchInput = z.object({
|
|
|
15
15
|
"OPTIONS"
|
|
16
16
|
]).describe("HTTP method for the subrequest."),
|
|
17
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.")
|
|
18
|
+
}).passthrough().describe("Model for a single subrequest in a composite batch.")).describe("Array of up to 25 independent subrequests to execute in one call.")
|
|
19
19
|
}).describe("Request model for Composite Batch.");
|
|
20
20
|
const SalesforceServiceCloudCompositeBatch_ResultItemSchema = z.object({
|
|
21
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.");
|
|
22
|
+
statusCode: z.number().int().describe("HTTP status code returned by the subrequest.").nullable()
|
|
23
|
+
}).passthrough().describe("Model for individual subrequest response in composite batch.");
|
|
24
24
|
const salesforceServiceCloudCompositeBatch = action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_BATCH", {
|
|
25
25
|
slug: "salesforce_service_cloud-composite-batch",
|
|
26
26
|
name: "Composite Batch",
|
|
@@ -28,8 +28,8 @@ const salesforceServiceCloudCompositeBatch = action("SALESFORCE_SERVICE_CLOUD_CO
|
|
|
28
28
|
input: SalesforceServiceCloudCompositeBatchInput,
|
|
29
29
|
output: z.object({
|
|
30
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.")
|
|
31
|
+
hasErrors: z.boolean().describe("True if any subrequest returned an HTTP 4xx/5xx status.").nullable()
|
|
32
|
+
}).passthrough().describe("Response model for Composite Batch.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { salesforceServiceCloudCompositeBatch };
|
|
@@ -1 +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
|
|
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.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}).passthrough().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.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.\").nullable(),\n}).passthrough().describe(\"Model for individual subrequest response in composite batch.\");\nexport const SalesforceServiceCloudCompositeBatchOutput = 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.\").nullable(),\n}).passthrough().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,4CAA4C,EAAE,OAAO;CAChE,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,YAAY,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC9J,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,wDAAwD,EAAE,OAAO;CACrE,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,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AAMxF,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,SAAS,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gEAAgE;EACjJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
|
|
@@ -12,17 +12,17 @@ const SalesforceServiceCloudCompositeRequestInput = zod.z.object({
|
|
|
12
12
|
"PATCH",
|
|
13
13
|
"DELETE"
|
|
14
14
|
]).describe("HTTP method for this subrequest"),
|
|
15
|
-
httpHeaders: zod.z.
|
|
15
|
+
httpHeaders: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional per-subrequest HTTP headers (only allowed by Composite API)").optional(),
|
|
16
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.")
|
|
17
|
+
}).passthrough().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
18
|
}).describe("Request body for executing multiple dependent subrequests via Salesforce Composite API.");
|
|
19
19
|
const SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema = zod.z.object({
|
|
20
20
|
body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON response body of the subrequest"),
|
|
21
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.");
|
|
22
|
+
referenceId: zod.z.string().describe("Identifier matching the subrequest referenceId").nullable(),
|
|
23
|
+
httpStatusCode: zod.z.number().int().describe("HTTP status code returned for the subrequest").nullable()
|
|
24
|
+
}).passthrough().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") }).passthrough().describe("Top-level response for the Salesforce Composite API call.");
|
|
26
26
|
const salesforceServiceCloudCompositeRequest = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST", {
|
|
27
27
|
slug: "salesforce_service_cloud-composite-request",
|
|
28
28
|
name: "Composite Request",
|
|
@@ -1 +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
|
|
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.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.record(z.string(), z.unknown()).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}).passthrough().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.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\").nullable(),\n httpStatusCode: z.number().int().describe(\"HTTP status code returned for the subrequest\").nullable(),\n}).passthrough().describe(\"Represents an individual subrequest response in the Composite API result.\");\nexport const SalesforceServiceCloudCompositeRequestOutput = z.object({\n compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe(\"Array of subrequest results in request order\"),\n}).passthrough().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,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,gJAAgJ;AACjQ,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,oEAAoEA,IAAAA,EAAE,OAAO;CACjF,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,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AACrG,MAAa,+CAA+CA,IAAAA,EAAE,OAAO,EACnE,mBAAmBA,IAAAA,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,8CAA8C,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,yCAAyCC,eAAAA,OAAO,8CAA8C;CACzG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/composite-request.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudCompositeRequestInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudCompositeRequestInput: z.ZodObject<{
|
|
5
|
+
allOrNone: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
compositeRequest: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
method: z.ZodEnum<{
|
|
10
|
+
GET: "GET";
|
|
11
|
+
POST: "POST";
|
|
12
|
+
PATCH: "PATCH";
|
|
13
|
+
DELETE: "DELETE";
|
|
14
|
+
}>;
|
|
15
|
+
httpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
referenceId: z.ZodString;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodObject<{
|
|
20
|
+
compositeResponse: z.ZodArray<z.ZodObject<{
|
|
21
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
22
|
+
httpHeaders: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
referenceId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
compositeRequest: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
url: string;
|
|
31
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
32
|
+
referenceId: string;
|
|
33
|
+
body?: Record<string, unknown> | undefined;
|
|
34
|
+
httpHeaders?: Record<string, unknown> | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
allOrNone?: boolean | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { salesforceServiceCloudCompositeRequest };
|
|
9
40
|
//# sourceMappingURL=composite-request.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-request.d.cts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"composite-request.d.cts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAI5C,sCAAA,gCAAsC,wBAAA;;;;;;WAMjD,MAAA;kBAAA,MAAA;EAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/composite-request.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudCompositeRequestInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudCompositeRequestInput: z.ZodObject<{
|
|
5
|
+
allOrNone: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
compositeRequest: z.ZodArray<z.ZodObject<{
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
method: z.ZodEnum<{
|
|
10
|
+
GET: "GET";
|
|
11
|
+
POST: "POST";
|
|
12
|
+
PATCH: "PATCH";
|
|
13
|
+
DELETE: "DELETE";
|
|
14
|
+
}>;
|
|
15
|
+
httpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
referenceId: z.ZodString;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodObject<{
|
|
20
|
+
compositeResponse: z.ZodArray<z.ZodObject<{
|
|
21
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
22
|
+
httpHeaders: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
referenceId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
compositeRequest: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
url: string;
|
|
31
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
32
|
+
referenceId: string;
|
|
33
|
+
body?: Record<string, unknown> | undefined;
|
|
34
|
+
httpHeaders?: Record<string, unknown> | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
allOrNone?: boolean | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { salesforceServiceCloudCompositeRequest };
|
|
9
40
|
//# sourceMappingURL=composite-request.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-request.d.mts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"composite-request.d.mts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAI5C,sCAAA,gCAAsC,wBAAA;;;;;;WAMjD,MAAA;kBAAA,MAAA;EAAA"}
|
|
@@ -12,22 +12,22 @@ const SalesforceServiceCloudCompositeRequestInput = z.object({
|
|
|
12
12
|
"PATCH",
|
|
13
13
|
"DELETE"
|
|
14
14
|
]).describe("HTTP method for this subrequest"),
|
|
15
|
-
httpHeaders: z.
|
|
15
|
+
httpHeaders: z.record(z.string(), z.unknown()).describe("Optional per-subrequest HTTP headers (only allowed by Composite API)").optional(),
|
|
16
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.")
|
|
17
|
+
}).passthrough().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
18
|
}).describe("Request body for executing multiple dependent subrequests via Salesforce Composite API.");
|
|
19
19
|
const SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema = z.object({
|
|
20
20
|
body: z.record(z.string(), z.unknown()).describe("JSON response body of the subrequest"),
|
|
21
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.");
|
|
22
|
+
referenceId: z.string().describe("Identifier matching the subrequest referenceId").nullable(),
|
|
23
|
+
httpStatusCode: z.number().int().describe("HTTP status code returned for the subrequest").nullable()
|
|
24
|
+
}).passthrough().describe("Represents an individual subrequest response in the Composite API result.");
|
|
25
25
|
const salesforceServiceCloudCompositeRequest = action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_REQUEST", {
|
|
26
26
|
slug: "salesforce_service_cloud-composite-request",
|
|
27
27
|
name: "Composite Request",
|
|
28
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
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.")
|
|
30
|
+
output: z.object({ compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe("Array of subrequest results in request order") }).passthrough().describe("Top-level response for the Salesforce Composite API call.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { salesforceServiceCloudCompositeRequest };
|
|
@@ -1 +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
|
|
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.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.record(z.string(), z.unknown()).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}).passthrough().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.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\").nullable(),\n httpStatusCode: z.number().int().describe(\"HTTP status code returned for the subrequest\").nullable(),\n}).passthrough().describe(\"Represents an individual subrequest response in the Composite API result.\");\nexport const SalesforceServiceCloudCompositeRequestOutput = z.object({\n compositeResponse: z.array(SalesforceServiceCloudCompositeRequest_CompositeSubresponseSchema).describe(\"Array of subrequest results in request order\"),\n}).passthrough().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,8CAA8C,EAAE,OAAO;CAClE,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,gJAAgJ;AACjQ,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,oEAAoE,EAAE,OAAO;CACjF,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,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAKrG,MAAa,yCAAyC,OAAO,8CAA8C;CACzG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,mBAAmB,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,8CAA8C,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
|
|
@@ -10,18 +10,18 @@ const SalesforceServiceCloudCompositeSobjectTreeInput = zod.z.object({
|
|
|
10
10
|
}).describe("Request model for Composite SObject Tree endpoint.");
|
|
11
11
|
const SalesforceServiceCloudCompositeSobjectTree_ErrorDetailSchema = zod.z.object({
|
|
12
12
|
fields: zod.z.array(zod.z.string()).describe("Fields involved in the error").nullable().optional(),
|
|
13
|
-
message: zod.z.string().describe("Error message"),
|
|
13
|
+
message: zod.z.string().describe("Error message").nullable(),
|
|
14
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.");
|
|
15
|
+
}).passthrough().describe("Error detail for a failed record in the response.");
|
|
16
16
|
const SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = zod.z.object({
|
|
17
17
|
id: zod.z.string().describe("Salesforce ID of the created record").nullable().optional(),
|
|
18
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.");
|
|
19
|
+
referenceId: zod.z.string().describe("Echo of the client-defined referenceId").nullable()
|
|
20
|
+
}).passthrough().describe("Result for an individual record in the composite tree response.");
|
|
21
21
|
const SalesforceServiceCloudCompositeSobjectTreeOutput = zod.z.object({
|
|
22
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.");
|
|
23
|
+
hasErrors: zod.z.boolean().describe("Indicates if any record failed to create").nullable()
|
|
24
|
+
}).passthrough().describe("Response model for Composite SObject Tree endpoint.");
|
|
25
25
|
const salesforceServiceCloudCompositeSobjectTree = require_action.action("SALESFORCE_SERVICE_CLOUD_COMPOSITE_SOBJECT_TREE", {
|
|
26
26
|
slug: "salesforce_service_cloud-composite-sobject-tree",
|
|
27
27
|
name: "Composite SObject Tree",
|