@keystrokehq/salesforce_service_cloud 0.1.3 → 0.1.5
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 -0
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +3 -8
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +3 -8
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs +1 -0
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +1 -0
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +3 -9
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +3 -9
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +1 -0
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +1 -0
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +3 -11
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +3 -11
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +1 -0
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +1 -0
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +3 -10
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +3 -10
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +1 -0
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +1 -0
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +3 -9
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +3 -9
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +1 -0
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs +1 -0
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +3 -3
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +3 -3
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs +1 -0
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +1 -0
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +3 -3
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +3 -3
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +1 -0
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -0
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +3 -1
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +3 -1
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -0
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +3 -8
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +3 -8
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +1 -0
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +3 -4
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +3 -4
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +1 -0
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +1 -0
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +3 -6
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +3 -6
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +1 -0
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +1 -0
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +3 -1
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +3 -1
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +1 -0
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +1 -0
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +3 -1
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +3 -1
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +1 -0
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +1 -0
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +3 -3
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +3 -3
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +1 -0
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +1 -0
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +3 -3
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +3 -3
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +1 -0
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -0
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +3 -6
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +3 -6
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +1 -0
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -0
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +3 -7
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +3 -7
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -0
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -0
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +3 -1
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +3 -1
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -0
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -0
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +3 -8
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +3 -8
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -0
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs +1 -0
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +3 -7
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +3 -7
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs +1 -0
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +1 -0
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +3 -7
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +3 -7
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +1 -0
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +3 -11
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +3 -11
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["salesforceServiceCloud","executeSalesforceServiceCloudTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof salesforceServiceCloud.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOsE;CACtE,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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof salesforceServiceCloud.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOsE;CACtE,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"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.cjs","names":["z","action"],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudChasitorSneakPeekInput,\n typeof SalesforceServiceCloudChasitorSneakPeekOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,0CAITC,eAAAA,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/chasitor-sneak-peek.d.ts
|
|
@@ -13,14 +15,7 @@ declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodObject<{
|
|
|
13
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const salesforceServiceCloudChasitorSneakPeek:
|
|
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]>;
|
|
18
|
+
declare const salesforceServiceCloudChasitorSneakPeek: AppAction<typeof SalesforceServiceCloudChasitorSneakPeekInput, typeof SalesforceServiceCloudChasitorSneakPeekOutput, typeof salesforceServiceCloud.credential>;
|
|
24
19
|
//#endregion
|
|
25
20
|
export { salesforceServiceCloudChasitorSneakPeek };
|
|
26
21
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.d.cts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAQ5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;cAK7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/chasitor-sneak-peek.d.ts
|
|
@@ -13,14 +15,7 @@ declare const SalesforceServiceCloudChasitorSneakPeekOutput: z.ZodObject<{
|
|
|
13
15
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const salesforceServiceCloudChasitorSneakPeek:
|
|
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]>;
|
|
18
|
+
declare const salesforceServiceCloudChasitorSneakPeek: AppAction<typeof SalesforceServiceCloudChasitorSneakPeekInput, typeof SalesforceServiceCloudChasitorSneakPeekOutput, typeof salesforceServiceCloud.credential>;
|
|
24
19
|
//#endregion
|
|
25
20
|
export { salesforceServiceCloudChasitorSneakPeek };
|
|
26
21
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.d.mts","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAQ5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;cAK7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"chasitor-sneak-peek.mjs","names":[],"sources":["../../src/actions/chasitor-sneak-peek.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudChasitorSneakPeekInput,\n typeof SalesforceServiceCloudChasitorSneakPeekOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;AAmBA,MAAa,0CAIT,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB0D,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,uEAcH;CACP,QAd2D,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,kGAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"composite-batch.cjs","names":["z","action"],"sources":["../../src/actions/composite-batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudCompositeBatchInput,\n typeof SalesforceServiceCloudCompositeBatchOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,uCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-batch.d.ts
|
|
@@ -24,15 +26,7 @@ declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const salesforceServiceCloudCompositeBatch:
|
|
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]>;
|
|
29
|
+
declare const salesforceServiceCloudCompositeBatch: AppAction<typeof SalesforceServiceCloudCompositeBatchInput, typeof SalesforceServiceCloudCompositeBatchOutput, typeof salesforceServiceCloud.credential>;
|
|
36
30
|
//#endregion
|
|
37
31
|
export { salesforceServiceCloudCompositeBatch };
|
|
38
32
|
//# sourceMappingURL=composite-batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-batch.d.cts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-batch.d.cts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-batch.d.ts
|
|
@@ -24,15 +26,7 @@ declare const SalesforceServiceCloudCompositeBatchOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const salesforceServiceCloudCompositeBatch:
|
|
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]>;
|
|
29
|
+
declare const salesforceServiceCloudCompositeBatch: AppAction<typeof SalesforceServiceCloudCompositeBatchInput, typeof SalesforceServiceCloudCompositeBatchOutput, typeof salesforceServiceCloud.credential>;
|
|
36
30
|
//#endregion
|
|
37
31
|
export { salesforceServiceCloudCompositeBatch };
|
|
38
32
|
//# sourceMappingURL=composite-batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-batch.d.mts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-batch.d.mts","names":[],"sources":["../../src/actions/composite-batch.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"composite-batch.mjs","names":[],"sources":["../../src/actions/composite-batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudCompositeBatchInput,\n typeof SalesforceServiceCloudCompositeBatchOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,uCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwD,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,qCAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"composite-request.cjs","names":["z","action"],"sources":["../../src/actions/composite-request.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudCompositeRequestInput,\n typeof SalesforceServiceCloudCompositeRequestOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,yCAITC,eAAAA,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-request.d.ts
|
|
@@ -24,17 +26,7 @@ declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodObject<{
|
|
|
24
26
|
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const salesforceServiceCloudCompositeRequest:
|
|
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]>;
|
|
29
|
+
declare const salesforceServiceCloudCompositeRequest: AppAction<typeof SalesforceServiceCloudCompositeRequestInput, typeof SalesforceServiceCloudCompositeRequestOutput, typeof salesforceServiceCloud.credential>;
|
|
38
30
|
//#endregion
|
|
39
31
|
export { salesforceServiceCloudCompositeRequest };
|
|
40
32
|
//# sourceMappingURL=composite-request.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-request.d.cts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-request.d.cts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAI5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-request.d.ts
|
|
@@ -24,17 +26,7 @@ declare const SalesforceServiceCloudCompositeRequestOutput: z.ZodObject<{
|
|
|
24
26
|
httpStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const salesforceServiceCloudCompositeRequest:
|
|
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]>;
|
|
29
|
+
declare const salesforceServiceCloudCompositeRequest: AppAction<typeof SalesforceServiceCloudCompositeRequestInput, typeof SalesforceServiceCloudCompositeRequestOutput, typeof salesforceServiceCloud.credential>;
|
|
38
30
|
//#endregion
|
|
39
31
|
export { salesforceServiceCloudCompositeRequest };
|
|
40
32
|
//# sourceMappingURL=composite-request.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-request.d.mts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-request.d.mts","names":[],"sources":["../../src/actions/composite-request.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;cAI5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"composite-request.mjs","names":[],"sources":["../../src/actions/composite-request.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\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: AppAction<\n typeof SalesforceServiceCloudCompositeRequestInput,\n typeof SalesforceServiceCloudCompositeRequestOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,yCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0D,EAAE,OAAO,EACnE,mBAAmB,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,8CAA8C,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).passthrough().describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = 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\").nullable(),\n}).passthrough().describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput = 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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"composite-sobject-tree.cjs","names":["z","action"],"sources":["../../src/actions/composite-sobject-tree.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudCompositeSobjectTreeInput = 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.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).passthrough().describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = 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\").nullable(),\n}).passthrough().describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput = 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\").nullable(),\n}).passthrough().describe(\"Response model for Composite SObject Tree endpoint.\");\n\nexport const salesforceServiceCloudCompositeSobjectTree: AppAction<\n typeof SalesforceServiceCloudCompositeSobjectTreeInput,\n typeof SalesforceServiceCloudCompositeSobjectTreeOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,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,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,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,CAAC,CAAC,SAAS;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,oFAAoFA,IAAAA,EAAE,OAAO;CACjG,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,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,MAAM,iFAAiF,CAAC,CAAC,SAAS,gDAAgD;CAC7J,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,6CAITC,eAAAA,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-sobject-tree.d.ts
|
|
@@ -22,16 +24,7 @@ declare const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const salesforceServiceCloudCompositeSobjectTree:
|
|
26
|
-
records: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
attributes: {
|
|
29
|
-
type: string;
|
|
30
|
-
referenceId: string;
|
|
31
|
-
};
|
|
32
|
-
}[];
|
|
33
|
-
objectApiName: string;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeSobjectTree: AppAction<typeof SalesforceServiceCloudCompositeSobjectTreeInput, typeof SalesforceServiceCloudCompositeSobjectTreeOutput, typeof salesforceServiceCloud.credential>;
|
|
35
28
|
//#endregion
|
|
36
29
|
export { salesforceServiceCloudCompositeSobjectTree };
|
|
37
30
|
//# sourceMappingURL=composite-sobject-tree.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-sobject-tree.d.cts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-sobject-tree.d.cts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;cAmB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/composite-sobject-tree.d.ts
|
|
@@ -22,16 +24,7 @@ declare const SalesforceServiceCloudCompositeSobjectTreeOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>;
|
|
23
25
|
hasErrors: z.ZodNullable<z.ZodBoolean>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const salesforceServiceCloudCompositeSobjectTree:
|
|
26
|
-
records: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
attributes: {
|
|
29
|
-
type: string;
|
|
30
|
-
referenceId: string;
|
|
31
|
-
};
|
|
32
|
-
}[];
|
|
33
|
-
objectApiName: string;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const salesforceServiceCloudCompositeSobjectTree: AppAction<typeof SalesforceServiceCloudCompositeSobjectTreeInput, typeof SalesforceServiceCloudCompositeSobjectTreeOutput, typeof salesforceServiceCloud.credential>;
|
|
35
28
|
//#endregion
|
|
36
29
|
export { salesforceServiceCloudCompositeSobjectTree };
|
|
37
30
|
//# sourceMappingURL=composite-sobject-tree.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-sobject-tree.d.mts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composite-sobject-tree.d.mts","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;cAmB/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +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.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.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).passthrough().describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = 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\").nullable(),\n}).passthrough().describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput = 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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"composite-sobject-tree.mjs","names":[],"sources":["../../src/actions/composite-sobject-tree.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudCompositeSobjectTreeInput = 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.object({\n fields: z.array(z.string()).describe(\"Fields involved in the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n errorCode: z.string().describe(\"Error code for the failed record\").nullable().optional(),\n}).passthrough().describe(\"Error detail for a failed record in the response.\");\nconst SalesforceServiceCloudCompositeSobjectTree_CompositeSobjectTreeRecordResultSchema = 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\").nullable(),\n}).passthrough().describe(\"Result for an individual record in the composite tree response.\");\nexport const SalesforceServiceCloudCompositeSobjectTreeOutput = 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\").nullable(),\n}).passthrough().describe(\"Response model for Composite SObject Tree endpoint.\");\n\nexport const salesforceServiceCloudCompositeSobjectTree: AppAction<\n typeof SalesforceServiceCloudCompositeSobjectTreeInput,\n typeof SalesforceServiceCloudCompositeSobjectTreeOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,MAAa,kDAAkD,EAAE,OAAO;CACtE,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,+DAA+D,EAAE,OAAO;CAC5E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,oFAAoF,EAAE,OAAO;CACjG,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,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAM3F,MAAa,6CAIT,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd8D,EAAE,OAAO;EACvE,SAAS,EAAE,MAAM,iFAAiF,CAAC,CAAC,SAAS,gDAAgD;EAC7J,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-case-record.cjs","names":["z","action"],"sources":["../../src/actions/create-case-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudCreateCaseRecordInput = z.object({\n accept: z.enum([\"application/json\", \"application/xml\"]).describe(\"Desired response format; defaults to application/json\").optional(),\n case_fields: z.record(z.string(), z.unknown()).describe(\"Map of Case field API names to values (e.g., Subject, Status, Origin)\"),\n x_pretty_print: z.string().describe(\"Set to '1' to pretty-print the response\").optional(),\n external_id_field: z.string().describe(\"API name of external ID field for upsert; provide with external_id_value\").optional(),\n external_id_value: z.string().describe(\"Value of external ID for upsert; provide with external_id_field\").optional(),\n sforce_auto_assign: z.boolean().describe(\"Set to True to apply active assignment rules on Case creation or upsert\").optional(),\n sforce_call_options: z.string().describe(\"Client and defaultNamespace options in format 'client=<name>[, defaultNamespace=<ns>]'\").optional(),\n});\nconst SalesforceServiceCloudCreateCaseRecord_ErrorObjectSchema = z.object({\n message: z.string().describe(\"Error message returned by Salesforce\").nullable(),\n errorCode: z.string().describe(\"Error code returned by Salesforce\").nullable(),\n}).passthrough();\nexport const SalesforceServiceCloudCreateCaseRecordOutput = z.object({\n id: z.string().describe(\"ID of the created Case record; not returned when updated\").nullable().optional(),\n errors: z.array(SalesforceServiceCloudCreateCaseRecord_ErrorObjectSchema).describe(\"List of errors (empty if success)\"),\n success: z.boolean().describe(\"True if the operation succeeded\").nullable(),\n updated: z.boolean().default(false).describe(\"True if an existing record was updated via upsert\").nullable().optional(),\n}).passthrough();\n\nexport const salesforceServiceCloudCreateCaseRecord = action(\"SALESFORCE_SERVICE_CLOUD_CREATE_CASE_RECORD\", {\n slug: \"salesforce_service_cloud-create-case-record\",\n name: \"Create Case Record\",\n description: \"Tool to create or upsert a Salesforce Case record. Use when you need to add a new Case or update via external ID.\",\n input: SalesforceServiceCloudCreateCaseRecordInput,\n output: SalesforceServiceCloudCreateCaseRecordOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-case-record.cjs","names":["z","action"],"sources":["../../src/actions/create-case-record.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudCreateCaseRecordInput = z.object({\n accept: z.enum([\"application/json\", \"application/xml\"]).describe(\"Desired response format; defaults to application/json\").optional(),\n case_fields: z.record(z.string(), z.unknown()).describe(\"Map of Case field API names to values (e.g., Subject, Status, Origin)\"),\n x_pretty_print: z.string().describe(\"Set to '1' to pretty-print the response\").optional(),\n external_id_field: z.string().describe(\"API name of external ID field for upsert; provide with external_id_value\").optional(),\n external_id_value: z.string().describe(\"Value of external ID for upsert; provide with external_id_field\").optional(),\n sforce_auto_assign: z.boolean().describe(\"Set to True to apply active assignment rules on Case creation or upsert\").optional(),\n sforce_call_options: z.string().describe(\"Client and defaultNamespace options in format 'client=<name>[, defaultNamespace=<ns>]'\").optional(),\n});\nconst SalesforceServiceCloudCreateCaseRecord_ErrorObjectSchema = z.object({\n message: z.string().describe(\"Error message returned by Salesforce\").nullable(),\n errorCode: z.string().describe(\"Error code returned by Salesforce\").nullable(),\n}).passthrough();\nexport const SalesforceServiceCloudCreateCaseRecordOutput = z.object({\n id: z.string().describe(\"ID of the created Case record; not returned when updated\").nullable().optional(),\n errors: z.array(SalesforceServiceCloudCreateCaseRecord_ErrorObjectSchema).describe(\"List of errors (empty if success)\"),\n success: z.boolean().describe(\"True if the operation succeeded\").nullable(),\n updated: z.boolean().default(false).describe(\"True if an existing record was updated via upsert\").nullable().optional(),\n}).passthrough();\n\nexport const salesforceServiceCloudCreateCaseRecord: AppAction<\n typeof SalesforceServiceCloudCreateCaseRecordInput,\n typeof SalesforceServiceCloudCreateCaseRecordOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_CREATE_CASE_RECORD\", {\n slug: \"salesforce_service_cloud-create-case-record\",\n name: \"Create Case Record\",\n description: \"Tool to create or upsert a Salesforce Case record. Use when you need to add a new Case or update via external ID.\",\n input: SalesforceServiceCloudCreateCaseRecordInput,\n output: SalesforceServiceCloudCreateCaseRecordOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,KAAK,CAAC,oBAAoB,iBAAiB,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE;CAC/H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACxF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC5H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACnH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC7H,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,mCAAmC;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yCAITC,eAAAA,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-case-record.d.ts
|
|
@@ -22,15 +24,7 @@ declare const SalesforceServiceCloudCreateCaseRecordOutput: z.ZodObject<{
|
|
|
22
24
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
updated: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const salesforceServiceCloudCreateCaseRecord:
|
|
26
|
-
case_fields: Record<string, unknown>;
|
|
27
|
-
accept?: "application/json" | "application/xml" | undefined;
|
|
28
|
-
x_pretty_print?: string | undefined;
|
|
29
|
-
external_id_field?: string | undefined;
|
|
30
|
-
external_id_value?: string | undefined;
|
|
31
|
-
sforce_auto_assign?: boolean | undefined;
|
|
32
|
-
sforce_call_options?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const salesforceServiceCloudCreateCaseRecord: AppAction<typeof SalesforceServiceCloudCreateCaseRecordInput, typeof SalesforceServiceCloudCreateCaseRecordOutput, typeof salesforceServiceCloud.credential>;
|
|
34
28
|
//#endregion
|
|
35
29
|
export { salesforceServiceCloudCreateCaseRecord };
|
|
36
30
|
//# sourceMappingURL=create-case-record.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-case-record.d.cts","names":[],"sources":["../../src/actions/create-case-record.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-case-record.d.cts","names":[],"sources":["../../src/actions/create-case-record.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;cAO5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-case-record.d.ts
|
|
@@ -22,15 +24,7 @@ declare const SalesforceServiceCloudCreateCaseRecordOutput: z.ZodObject<{
|
|
|
22
24
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
23
25
|
updated: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const salesforceServiceCloudCreateCaseRecord:
|
|
26
|
-
case_fields: Record<string, unknown>;
|
|
27
|
-
accept?: "application/json" | "application/xml" | undefined;
|
|
28
|
-
x_pretty_print?: string | undefined;
|
|
29
|
-
external_id_field?: string | undefined;
|
|
30
|
-
external_id_value?: string | undefined;
|
|
31
|
-
sforce_auto_assign?: boolean | undefined;
|
|
32
|
-
sforce_call_options?: string | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const salesforceServiceCloudCreateCaseRecord: AppAction<typeof SalesforceServiceCloudCreateCaseRecordInput, typeof SalesforceServiceCloudCreateCaseRecordOutput, typeof salesforceServiceCloud.credential>;
|
|
34
28
|
//#endregion
|
|
35
29
|
export { salesforceServiceCloudCreateCaseRecord };
|
|
36
30
|
//# sourceMappingURL=create-case-record.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-case-record.d.mts","names":[],"sources":["../../src/actions/create-case-record.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-case-record.d.mts","names":[],"sources":["../../src/actions/create-case-record.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;cAO5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|