@keystrokehq/salesforce_service_cloud 0.1.2 → 0.1.4
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/actions/chasitor-sneak-peek.cjs +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +14 -2
- package/dist/actions/chasitor-sneak-peek.d.mts +14 -2
- package/dist/actions/chasitor-sneak-peek.mjs +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +3 -3
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +19 -6
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +19 -6
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +3 -3
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +4 -4
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +19 -6
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +19 -6
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +4 -4
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +3 -3
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +16 -4
- package/dist/actions/composite-sobject-tree.d.mts +16 -4
- package/dist/actions/composite-sobject-tree.mjs +3 -3
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +2 -2
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +15 -3
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +15 -3
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +2 -2
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs +1 -1
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +14 -2
- package/dist/actions/delete-case-record.d.mts +14 -2
- package/dist/actions/delete-case-record.mjs +1 -1
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +2 -2
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +15 -3
- package/dist/actions/describe-s-object.d.mts +15 -3
- package/dist/actions/describe-s-object.mjs +2 -2
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -1
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +14 -2
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +14 -2
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -1
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +14 -2
- package/dist/actions/generate-signed-jwt-assertion.d.mts +14 -2
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +1 -1
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +14 -2
- package/dist/actions/get-case-record.d.mts +14 -2
- package/dist/actions/get-case-record.mjs +1 -1
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +2 -2
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +15 -3
- package/dist/actions/get-chat-messages.d.mts +15 -3
- package/dist/actions/get-chat-messages.mjs +2 -2
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +1 -1
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +14 -2
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +14 -2
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +1 -1
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +2 -2
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +15 -3
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +15 -3
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +2 -2
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +2 -2
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +15 -3
- package/dist/actions/query-all-soql.d.mts +15 -3
- package/dist/actions/query-all-soql.mjs +2 -2
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +1 -1
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +14 -2
- package/dist/actions/query-soql.d.mts +14 -2
- package/dist/actions/query-soql.mjs +1 -1
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -1
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +14 -2
- package/dist/actions/reconnect-chat-session.d.mts +14 -2
- package/dist/actions/reconnect-chat-session.mjs +1 -1
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -1
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +14 -2
- package/dist/actions/resync-chasitor-state.d.mts +14 -2
- package/dist/actions/resync-chasitor-state.mjs +1 -1
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +14 -2
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +14 -2
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -1
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +14 -2
- package/dist/actions/send-custom-event.d.mts +14 -2
- package/dist/actions/send-custom-event.mjs +1 -1
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs +1 -1
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +14 -2
- package/dist/actions/set-breadcrumb.d.mts +14 -2
- package/dist/actions/set-breadcrumb.mjs +1 -1
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +1 -1
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +14 -2
- package/dist/actions/upload-file-to-s3.d.mts +14 -2
- package/dist/actions/upload-file-to-s3.mjs +1 -1
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs +2 -2
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +16 -3
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +16 -3
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs +2 -2
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.mjs","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;AAeA,MAAa,4CAA4C,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4D,EAAE,OAAO;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EACvM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EAChM,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;EAC5J,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,uSASH;CACP,QAT6D,EAAE,OAAO,EACtE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,EACnN,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.mjs","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).passthrough().describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;AAeA,MAAa,4CAA4C,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4D,EAAE,OAAO;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EACvM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EAChM,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;EAC5J,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,uSASH;CACP,QAT6D,EAAE,OAAO,EACtE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,EACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0KAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/retrieve-salesforce-username.ts
|
|
4
4
|
const SalesforceServiceCloudRetrieveSalesforceUsernameInput = zod.z.object({}).describe("Request model for RetrieveSalesforceUsername. No parameters required.");
|
|
5
|
-
const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = zod.z.object({ username: zod.z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user").nullable() }).describe("Response model for RetrieveSalesforceUsername.");
|
|
5
|
+
const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = zod.z.object({ username: zod.z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user").nullable() }).passthrough().describe("Response model for RetrieveSalesforceUsername.");
|
|
6
6
|
const salesforceServiceCloudRetrieveSalesforceUsername = require_action.action("SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME", {
|
|
7
7
|
slug: "salesforce_service_cloud-retrieve-salesforce-username",
|
|
8
8
|
name: "Retrieve Salesforce Username",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAClK,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAClK,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,mDAAmDC,eAAAA,OAAO,yDAAyD;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,8 +4,20 @@ import { z } from "zod";
|
|
|
4
4
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodObject<{
|
|
6
6
|
username: z.ZodNullable<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
8
|
-
declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
9
|
+
connectionId: z.ZodString;
|
|
10
|
+
entityId: z.ZodString;
|
|
11
|
+
instanceId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
accessToken: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>;
|
|
9
21
|
//#endregion
|
|
10
22
|
export { salesforceServiceCloudRetrieveSalesforceUsername };
|
|
11
23
|
//# sourceMappingURL=retrieve-salesforce-username.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.d.cts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.d.cts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,6BAAA,CAAA,CAAA,SAAA"}
|
|
@@ -4,8 +4,20 @@ import { z } from "zod";
|
|
|
4
4
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodObject<{
|
|
6
6
|
username: z.ZodNullable<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
8
|
-
declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const salesforceServiceCloudRetrieveSalesforceUsername: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
9
|
+
connectionId: z.ZodString;
|
|
10
|
+
entityId: z.ZodString;
|
|
11
|
+
instanceId: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
accessToken: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>;
|
|
9
21
|
//#endregion
|
|
10
22
|
export { salesforceServiceCloudRetrieveSalesforceUsername };
|
|
11
23
|
//# sourceMappingURL=retrieve-salesforce-username.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.d.mts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.d.mts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,6BAAA,CAAA,CAAA,SAAA"}
|
|
@@ -5,7 +5,7 @@ const salesforceServiceCloudRetrieveSalesforceUsername = action("SALESFORCE_SERV
|
|
|
5
5
|
name: "Retrieve Salesforce Username",
|
|
6
6
|
description: "Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.",
|
|
7
7
|
input: z.object({}).describe("Request model for RetrieveSalesforceUsername. No parameters required."),
|
|
8
|
-
output: z.object({ username: z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user").nullable() }).describe("Response model for RetrieveSalesforceUsername.")
|
|
8
|
+
output: z.object({ username: z.string().describe("The Salesforce username (the 'preferred_username' claim) for the current authenticated user").nullable() }).passthrough().describe("Response model for RetrieveSalesforceUsername.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { salesforceServiceCloudRetrieveSalesforceUsername };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.mjs","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;AASA,MAAa,mDAAmD,OAAO,yDAAyD;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATmE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEASlF;CACP,QAToE,EAAE,OAAO,EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.mjs","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;AASA,MAAa,mDAAmD,OAAO,yDAAyD;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATmE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEASlF;CACP,QAToE,EAAE,OAAO,EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const SalesforceServiceCloudSendCustomEventInput = zod.z.object({
|
|
|
9
9
|
session_key: zod.z.string().describe("Session key from an active Live Agent chat session (obtained during session initialization)."),
|
|
10
10
|
affinity_token: zod.z.string().describe("Affinity token from an active Live Agent chat session (obtained during session initialization).")
|
|
11
11
|
}).describe("Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.");
|
|
12
|
-
const SalesforceServiceCloudSendCustomEventOutput = zod.z.object({ success: zod.z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.").nullable() }).describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.");
|
|
12
|
+
const SalesforceServiceCloudSendCustomEventOutput = zod.z.object({ success: zod.z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.").nullable() }).passthrough().describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.");
|
|
13
13
|
const salesforceServiceCloudSendCustomEvent = require_action.action("SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT", {
|
|
14
14
|
slug: "salesforce_service_cloud-send-custom-event",
|
|
15
15
|
name: "Send Custom Event",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-custom-event.cjs","names":["z","action"],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\").nullable(),\n}).describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACzI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CAC/H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AACvI,CAAC,CAAC,CAAC,SAAS,6GAA6G;AACzH,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,SAAS,4KAA4K;
|
|
1
|
+
{"version":3,"file":"send-custom-event.cjs","names":["z","action"],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\").nullable(),\n}).passthrough().describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACzI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CAC/H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;AACvI,CAAC,CAAC,CAAC,SAAS,6GAA6G;AACzH,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAA4K;AAEtM,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodObject<{
|
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodObject<{
|
|
13
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
data: string;
|
|
17
17
|
type: string;
|
|
@@ -19,7 +19,19 @@ declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action
|
|
|
19
19
|
session_key: string;
|
|
20
20
|
affinity_token: string;
|
|
21
21
|
api_version?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
accessToken: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
entityId: z.ZodString;
|
|
31
|
+
instanceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
accessToken: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>]>;
|
|
23
35
|
//#endregion
|
|
24
36
|
export { salesforceServiceCloudSendCustomEvent };
|
|
25
37
|
//# sourceMappingURL=send-custom-event.d.cts.map
|
|
@@ -11,7 +11,7 @@ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodObject<{
|
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodObject<{
|
|
13
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
data: string;
|
|
17
17
|
type: string;
|
|
@@ -19,7 +19,19 @@ declare const salesforceServiceCloudSendCustomEvent: import("@keystrokehq/action
|
|
|
19
19
|
session_key: string;
|
|
20
20
|
affinity_token: string;
|
|
21
21
|
api_version?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
23
|
+
connectionId: z.ZodString;
|
|
24
|
+
entityId: z.ZodString;
|
|
25
|
+
instanceId: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
accessToken: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
entityId: z.ZodString;
|
|
31
|
+
instanceId: z.ZodString;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
accessToken: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>]>;
|
|
23
35
|
//#endregion
|
|
24
36
|
export { salesforceServiceCloudSendCustomEvent };
|
|
25
37
|
//# sourceMappingURL=send-custom-event.d.mts.map
|
|
@@ -12,7 +12,7 @@ const salesforceServiceCloudSendCustomEvent = action("SALESFORCE_SERVICE_CLOUD_S
|
|
|
12
12
|
session_key: z.string().describe("Session key from an active Live Agent chat session (obtained during session initialization)."),
|
|
13
13
|
affinity_token: z.string().describe("Affinity token from an active Live Agent chat session (obtained during session initialization).")
|
|
14
14
|
}).describe("Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session."),
|
|
15
|
-
output: z.object({ success: z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.").nullable() }).describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.")
|
|
15
|
+
output: z.object({ success: z.boolean().describe("True if the custom event was successfully sent to the agent during the active chat session.").nullable() }).passthrough().describe("Response indicating whether the custom event was successfully sent to the Live Agent session.\nThe Live Agent CustomEvent API typically returns 204 No Content on success.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { salesforceServiceCloudSendCustomEvent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-custom-event.mjs","names":[],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\").nullable(),\n}).describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;AAgBA,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACzI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EAC/H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACvI,CAAC,CAAC,CAAC,SAAS,6GASH;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"send-custom-event.mjs","names":[],"sources":["../../src/actions/send-custom-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSendCustomEventInput = z.object({\n data: z.string().describe(\"Custom event payload data as a string. Can be JSON-encoded for complex data structures.\"),\n type: z.string().describe(\"Custom event type identifier used to match event listeners on the agent's side. Should be a descriptive name.\"),\n sequence: z.number().int().describe(\"Sequence number for this Live Agent request. Must be incremented with each API call in the session.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not specified, automatically extracted from base_url.\").optional(),\n session_key: z.string().describe(\"Session key from an active Live Agent chat session (obtained during session initialization).\"),\n affinity_token: z.string().describe(\"Affinity token from an active Live Agent chat session (obtained during session initialization).\"),\n}).describe(\"Request parameters for sending a custom event from a chat visitor during an active Live Agent chat session.\");\nexport const SalesforceServiceCloudSendCustomEventOutput = z.object({\n success: z.boolean().describe(\"True if the custom event was successfully sent to the agent during the active chat session.\").nullable(),\n}).passthrough().describe(\"Response indicating whether the custom event was successfully sent to the Live Agent session.\\nThe Live Agent CustomEvent API typically returns 204 No Content on success.\");\n\nexport const salesforceServiceCloudSendCustomEvent = action(\"SALESFORCE_SERVICE_CLOUD_SEND_CUSTOM_EVENT\", {\n slug: \"salesforce_service_cloud-send-custom-event\",\n name: \"Send Custom Event\",\n description: \"Send a custom event from a chat visitor to a Live Agent during an active chat session. Use this tool to trigger custom event handlers on the agent's side, enabling custom interactions beyond standard chat messages. Custom events can be used for actions like form submissions, button clicks, page navigation, or any application-specific events that need to be communicated to the agent. Prerequisites: - An active Live Agent chat session must be established - Live Agent REST API must be configured and enabled in your Salesforce org - Valid session_key and affinity_token from session initialization Note: This endpoint requires Live Agent to be properly configured. The API typically returns 204 No Content on success.\",\n input: SalesforceServiceCloudSendCustomEventInput,\n output: SalesforceServiceCloudSendCustomEventOutput,\n});\n"],"mappings":";;AAgBA,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACzI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;EAC/H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACvI,CAAC,CAAC,CAAC,SAAS,6GASH;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const SalesforceServiceCloudSetBreadcrumbInput = zod.z.object({
|
|
|
8
8
|
api_version: zod.z.string().describe("LiveAgent Chat API version header, e.g., '61.0'"),
|
|
9
9
|
deployment_id: zod.z.string().describe("Live Agent deployment ID")
|
|
10
10
|
}).describe("Request model to set a breadcrumb URL for the visitor.");
|
|
11
|
-
const SalesforceServiceCloudSetBreadcrumbOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).describe("Empty response model for SetBreadcrumb. No content returned on success.");
|
|
11
|
+
const SalesforceServiceCloudSetBreadcrumbOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).passthrough().describe("Empty response model for SetBreadcrumb. No content returned on success.");
|
|
12
12
|
const salesforceServiceCloudSetBreadcrumb = require_action.action("SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB", {
|
|
13
13
|
slug: "salesforce_service_cloud-set-breadcrumb",
|
|
14
14
|
name: "Set Breadcrumb",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-breadcrumb.cjs","names":["z","action"],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC/D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.cjs","names":["z","action"],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).passthrough().describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC/D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAEnG,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,14 +10,26 @@ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodObject<{
|
|
12
12
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const salesforceServiceCloudSetBreadcrumb: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
org_id: string;
|
|
16
16
|
location: string;
|
|
17
17
|
session_id: string;
|
|
18
18
|
api_version: string;
|
|
19
19
|
deployment_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
accessToken: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { salesforceServiceCloudSetBreadcrumb };
|
|
23
35
|
//# sourceMappingURL=set-breadcrumb.d.cts.map
|
|
@@ -10,14 +10,26 @@ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodObject<{
|
|
12
12
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const salesforceServiceCloudSetBreadcrumb: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
org_id: string;
|
|
16
16
|
location: string;
|
|
17
17
|
session_id: string;
|
|
18
18
|
api_version: string;
|
|
19
19
|
deployment_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
accessToken: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>;
|
|
21
33
|
//#endregion
|
|
22
34
|
export { salesforceServiceCloudSetBreadcrumb };
|
|
23
35
|
//# sourceMappingURL=set-breadcrumb.d.mts.map
|
|
@@ -11,7 +11,7 @@ const salesforceServiceCloudSetBreadcrumb = action("SALESFORCE_SERVICE_CLOUD_SET
|
|
|
11
11
|
api_version: z.string().describe("LiveAgent Chat API version header, e.g., '61.0'"),
|
|
12
12
|
deployment_id: z.string().describe("Live Agent deployment ID")
|
|
13
13
|
}).describe("Request model to set a breadcrumb URL for the visitor."),
|
|
14
|
-
output: z.object({ success: z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).describe("Empty response model for SetBreadcrumb. No content returned on success.")
|
|
14
|
+
output: z.object({ success: z.boolean().default(true).describe("True if the breadcrumb was accepted").nullable().optional() }).passthrough().describe("Empty response model for SetBreadcrumb. No content returned on success.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { salesforceServiceCloudSetBreadcrumb };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-breadcrumb.mjs","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;AAeA,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC/D,CAAC,CAAC,CAAC,SAAS,wDASH;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.mjs","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudSetBreadcrumbInput = z.object({\n org_id: z.string().describe(\"Salesforce organization ID (15 or 18 character ID)\"),\n location: z.string().describe(\"The current location or URL of the visitor.\"),\n session_id: z.string().describe(\"Live Agent session ID (sid) from an active chat session\"),\n api_version: z.string().describe(\"LiveAgent Chat API version header, e.g., '61.0'\"),\n deployment_id: z.string().describe(\"Live Agent deployment ID\"),\n}).describe(\"Request model to set a breadcrumb URL for the visitor.\");\nexport const SalesforceServiceCloudSetBreadcrumbOutput = z.object({\n success: z.boolean().default(true).describe(\"True if the breadcrumb was accepted\").nullable().optional(),\n}).passthrough().describe(\"Empty response model for SetBreadcrumb. No content returned on success.\");\n\nexport const salesforceServiceCloudSetBreadcrumb = action(\"SALESFORCE_SERVICE_CLOUD_SET_BREADCRUMB\", {\n slug: \"salesforce_service_cloud-set-breadcrumb\",\n name: \"Set Breadcrumb\",\n description: \"Tool to set a breadcrumb URL for the visitor's current page. Use after a visitor navigates to a new page during an active chat session.\",\n input: SalesforceServiceCloudSetBreadcrumbInput,\n output: SalesforceServiceCloudSetBreadcrumbOutput,\n});\n"],"mappings":";;AAeA,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC/D,CAAC,CAAC,CAAC,SAAS,wDASH;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const SalesforceServiceCloudUploadFileToS3Output = zod.z.object({
|
|
|
11
11
|
s3key: zod.z.string().describe("Key of the file in S3.").nullable(),
|
|
12
12
|
success: zod.z.boolean().describe("True if the upload succeeded.").nullable(),
|
|
13
13
|
mimetype: zod.z.string().describe("MIME type of the uploaded file.").nullable()
|
|
14
|
-
}).describe("Response after uploading a file to managed S3 storage.");
|
|
14
|
+
}).passthrough().describe("Response after uploading a file to managed S3 storage.");
|
|
15
15
|
const salesforceServiceCloudUploadFileToS3 = require_action.action("SALESFORCE_SERVICE_CLOUD_UPLOAD_FILE_TO_S3", {
|
|
16
16
|
slug: "salesforce_service_cloud-upload-file-to-s3",
|
|
17
17
|
name: "Upload File to S3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file-to-s3.cjs","names":["z","action"],"sources":["../../src/actions/upload-file-to-s3.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudUploadFileToS3Input = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n}).describe(\"Request to upload a file to managed S3 storage.\");\nexport const SalesforceServiceCloudUploadFileToS3Output = z.object({\n name: z.string().describe(\"Original name of the uploaded file.\").nullable(),\n s3key: z.string().describe(\"Key of the file in S3.\").nullable(),\n success: z.boolean().describe(\"True if the upload succeeded.\").nullable(),\n mimetype: z.string().describe(\"MIME type of the uploaded file.\").nullable(),\n}).describe(\"Response after uploading a file to managed S3 storage.\");\n\nexport const salesforceServiceCloudUploadFileToS3 = action(\"SALESFORCE_SERVICE_CLOUD_UPLOAD_FILE_TO_S3\", {\n slug: \"salesforce_service_cloud-upload-file-to-s3\",\n name: \"Upload File to S3\",\n description: \"Tool to upload a file to managed S3 storage. Use when you need to persist files externally.\",\n input: SalesforceServiceCloudUploadFileToS3Input,\n output: SalesforceServiceCloudUploadFileToS3Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAO;CACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB,EAC7B,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.cjs","names":["z","action"],"sources":["../../src/actions/upload-file-to-s3.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudUploadFileToS3Input = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n}).describe(\"Request to upload a file to managed S3 storage.\");\nexport const SalesforceServiceCloudUploadFileToS3Output = z.object({\n name: z.string().describe(\"Original name of the uploaded file.\").nullable(),\n s3key: z.string().describe(\"Key of the file in S3.\").nullable(),\n success: z.boolean().describe(\"True if the upload succeeded.\").nullable(),\n mimetype: z.string().describe(\"MIME type of the uploaded file.\").nullable(),\n}).passthrough().describe(\"Response after uploading a file to managed S3 storage.\");\n\nexport const salesforceServiceCloudUploadFileToS3 = action(\"SALESFORCE_SERVICE_CLOUD_UPLOAD_FILE_TO_S3\", {\n slug: \"salesforce_service_cloud-upload-file-to-s3\",\n name: \"Upload File to S3\",\n description: \"Tool to upload a file to managed S3 storage. Use when you need to persist files externally.\",\n input: SalesforceServiceCloudUploadFileToS3Input,\n output: SalesforceServiceCloudUploadFileToS3Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAO;CACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB,EAC7B,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,uCAAuCC,eAAAA,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,14 +13,26 @@ declare const SalesforceServiceCloudUploadFileToS3Output: z.ZodObject<{
|
|
|
13
13
|
s3key: z.ZodNullable<z.ZodString>;
|
|
14
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
15
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const salesforceServiceCloudUploadFileToS3: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
file: {
|
|
19
19
|
name: string;
|
|
20
20
|
s3key: string;
|
|
21
21
|
mimetype: string;
|
|
22
22
|
};
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
24
|
+
connectionId: z.ZodString;
|
|
25
|
+
entityId: z.ZodString;
|
|
26
|
+
instanceId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
accessToken: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
accessToken: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>;
|
|
24
36
|
//#endregion
|
|
25
37
|
export { salesforceServiceCloudUploadFileToS3 };
|
|
26
38
|
//# sourceMappingURL=upload-file-to-s3.d.cts.map
|
|
@@ -13,14 +13,26 @@ declare const SalesforceServiceCloudUploadFileToS3Output: z.ZodObject<{
|
|
|
13
13
|
s3key: z.ZodNullable<z.ZodString>;
|
|
14
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
15
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const salesforceServiceCloudUploadFileToS3: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
file: {
|
|
19
19
|
name: string;
|
|
20
20
|
s3key: string;
|
|
21
21
|
mimetype: string;
|
|
22
22
|
};
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
24
|
+
connectionId: z.ZodString;
|
|
25
|
+
entityId: z.ZodString;
|
|
26
|
+
instanceId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
accessToken: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
accessToken: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>;
|
|
24
36
|
//#endregion
|
|
25
37
|
export { salesforceServiceCloudUploadFileToS3 };
|
|
26
38
|
//# sourceMappingURL=upload-file-to-s3.d.mts.map
|
|
@@ -14,7 +14,7 @@ const salesforceServiceCloudUploadFileToS3 = action("SALESFORCE_SERVICE_CLOUD_UP
|
|
|
14
14
|
s3key: z.string().describe("Key of the file in S3.").nullable(),
|
|
15
15
|
success: z.boolean().describe("True if the upload succeeded.").nullable(),
|
|
16
16
|
mimetype: z.string().describe("MIME type of the uploaded file.").nullable()
|
|
17
|
-
}).describe("Response after uploading a file to managed S3 storage.")
|
|
17
|
+
}).passthrough().describe("Response after uploading a file to managed S3 storage.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { salesforceServiceCloudUploadFileToS3 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file-to-s3.mjs","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudUploadFileToS3Input = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n}).describe(\"Request to upload a file to managed S3 storage.\");\nexport const SalesforceServiceCloudUploadFileToS3Output = z.object({\n name: z.string().describe(\"Original name of the uploaded file.\").nullable(),\n s3key: z.string().describe(\"Key of the file in S3.\").nullable(),\n success: z.boolean().describe(\"True if the upload succeeded.\").nullable(),\n mimetype: z.string().describe(\"MIME type of the uploaded file.\").nullable(),\n}).describe(\"Response after uploading a file to managed S3 storage.\");\n\nexport const salesforceServiceCloudUploadFileToS3 = action(\"SALESFORCE_SERVICE_CLOUD_UPLOAD_FILE_TO_S3\", {\n slug: \"salesforce_service_cloud-upload-file-to-s3\",\n name: \"Upload File to S3\",\n description: \"Tool to upload a file to managed S3 storage. Use when you need to persist files externally.\",\n input: SalesforceServiceCloudUploadFileToS3Input,\n output: SalesforceServiceCloudUploadFileToS3Output,\n});\n"],"mappings":";;AAkBA,MAAa,uCAAuC,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuD,EAAE,OAAO,EAChE,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB,EAC7B,CAAC,CAAC,CAAC,SAAS,iDAYH;CACP,QAZwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.mjs","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudUploadFileToS3Input = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n}).describe(\"Request to upload a file to managed S3 storage.\");\nexport const SalesforceServiceCloudUploadFileToS3Output = z.object({\n name: z.string().describe(\"Original name of the uploaded file.\").nullable(),\n s3key: z.string().describe(\"Key of the file in S3.\").nullable(),\n success: z.boolean().describe(\"True if the upload succeeded.\").nullable(),\n mimetype: z.string().describe(\"MIME type of the uploaded file.\").nullable(),\n}).passthrough().describe(\"Response after uploading a file to managed S3 storage.\");\n\nexport const salesforceServiceCloudUploadFileToS3 = action(\"SALESFORCE_SERVICE_CLOUD_UPLOAD_FILE_TO_S3\", {\n slug: \"salesforce_service_cloud-upload-file-to-s3\",\n name: \"Upload File to S3\",\n description: \"Tool to upload a file to managed S3 storage. Use when you need to persist files externally.\",\n input: SalesforceServiceCloudUploadFileToS3Input,\n output: SalesforceServiceCloudUploadFileToS3Output,\n});\n"],"mappings":";;AAkBA,MAAa,uCAAuC,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuD,EAAE,OAAO,EAChE,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB,EAC7B,CAAC,CAAC,CAAC,SAAS,iDAYH;CACP,QAZwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -5,13 +5,13 @@ const SalesforceServiceCloudVisitorSensitiveDataRuleInput = zod.z.object({
|
|
|
5
5
|
rules: zod.z.array(zod.z.object({
|
|
6
6
|
id: zod.z.string().describe("Sensitive data rule ID (optional for Chasitor variant)").optional(),
|
|
7
7
|
name: zod.z.string().describe("Rule name to apply to the chat session")
|
|
8
|
-
}).describe("Sensitive data rule object for Chat REST API.")).describe("List of sensitive data rules to apply (at least one rule)"),
|
|
8
|
+
}).passthrough().describe("Sensitive data rule object for Chat REST API.")).describe("List of sensitive data rules to apply (at least one rule)"),
|
|
9
9
|
affinity: zod.z.string().describe("Affinity token header (X-LIVEAGENT-AFFINITY)"),
|
|
10
10
|
sequence: zod.z.number().int().describe("Sequence number header (X-LIVEAGENT-SEQUENCE), increments with each call"),
|
|
11
11
|
api_version: zod.z.string().describe("Live Agent API version header (X-LIVEAGENT-API-VERSION)"),
|
|
12
12
|
session_key: zod.z.string().describe("Session key header (X-LIVEAGENT-SESSION-KEY)")
|
|
13
13
|
}).describe("Request model for triggering sensitive data rules for a chat visitor.");
|
|
14
|
-
const SalesforceServiceCloudVisitorSensitiveDataRuleOutput = zod.z.
|
|
14
|
+
const SalesforceServiceCloudVisitorSensitiveDataRuleOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response for sensitive data rule trigger; no content returned.");
|
|
15
15
|
const salesforceServiceCloudVisitorSensitiveDataRule = require_action.action("SALESFORCE_SERVICE_CLOUD_VISITOR_SENSITIVE_DATA_RULE", {
|
|
16
16
|
slug: "salesforce_service_cloud-visitor-sensitive-data-rule",
|
|
17
17
|
name: "Visitor Sensitive Data Rule Triggered",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor-sensitive-data-rule.cjs","names":["z","action"],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudVisitorSensitiveDataRuleInput = z.object({\n rules: z.array(z.object({\n id: z.string().describe(\"Sensitive data rule ID (optional for Chasitor variant)\").optional(),\n name: z.string().describe(\"Rule name to apply to the chat session\"),\n}).describe(\"Sensitive data rule object for Chat REST API.\")).describe(\"List of sensitive data rules to apply (at least one rule)\"),\n affinity: z.string().describe(\"Affinity token header (X-LIVEAGENT-AFFINITY)\"),\n sequence: z.number().int().describe(\"Sequence number header (X-LIVEAGENT-SEQUENCE), increments with each call\"),\n api_version: z.string().describe(\"Live Agent API version header (X-LIVEAGENT-API-VERSION)\"),\n session_key: z.string().describe(\"Session key header (X-LIVEAGENT-SESSION-KEY)\"),\n}).describe(\"Request model for triggering sensitive data rules for a chat visitor.\");\nexport const SalesforceServiceCloudVisitorSensitiveDataRuleOutput = z.
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.cjs","names":["z","action"],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudVisitorSensitiveDataRuleInput = z.object({\n rules: z.array(z.object({\n id: z.string().describe(\"Sensitive data rule ID (optional for Chasitor variant)\").optional(),\n name: z.string().describe(\"Rule name to apply to the chat session\"),\n}).passthrough().describe(\"Sensitive data rule object for Chat REST API.\")).describe(\"List of sensitive data rules to apply (at least one rule)\"),\n affinity: z.string().describe(\"Affinity token header (X-LIVEAGENT-AFFINITY)\"),\n sequence: z.number().int().describe(\"Sequence number header (X-LIVEAGENT-SEQUENCE), increments with each call\"),\n api_version: z.string().describe(\"Live Agent API version header (X-LIVEAGENT-API-VERSION)\"),\n session_key: z.string().describe(\"Session key header (X-LIVEAGENT-SESSION-KEY)\"),\n}).describe(\"Request model for triggering sensitive data rules for a chat visitor.\");\nexport const SalesforceServiceCloudVisitorSensitiveDataRuleOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for sensitive data rule trigger; no content returned.\");\n\nexport const salesforceServiceCloudVisitorSensitiveDataRule = action(\"SALESFORCE_SERVICE_CLOUD_VISITOR_SENSITIVE_DATA_RULE\", {\n slug: \"salesforce_service_cloud-visitor-sensitive-data-rule\",\n name: \"Visitor Sensitive Data Rule Triggered\",\n description: \"Tool to trigger sensitive data rules for the chat visitor. Use after detecting sensitive content to apply visitor masking or handling rules.\",\n input: SalesforceServiceCloudVisitorSensitiveDataRuleInput,\n output: SalesforceServiceCloudVisitorSensitiveDataRuleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sDAAsDA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,uDAAuDA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAErL,MAAa,iDAAiDC,eAAAA,OAAO,wDAAwD;CAC3H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,15 +5,16 @@ declare const SalesforceServiceCloudVisitorSensitiveDataRuleInput: z.ZodObject<{
|
|
|
5
5
|
rules: z.ZodArray<z.ZodObject<{
|
|
6
6
|
id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodString;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
9
|
affinity: z.ZodString;
|
|
10
10
|
sequence: z.ZodNumber;
|
|
11
11
|
api_version: z.ZodString;
|
|
12
12
|
session_key: z.ZodString;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.
|
|
14
|
+
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const salesforceServiceCloudVisitorSensitiveDataRule: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
rules: {
|
|
17
|
+
[x: string]: unknown;
|
|
17
18
|
name: string;
|
|
18
19
|
id?: string | undefined;
|
|
19
20
|
}[];
|
|
@@ -21,7 +22,19 @@ declare const salesforceServiceCloudVisitorSensitiveDataRule: import("@keystroke
|
|
|
21
22
|
sequence: number;
|
|
22
23
|
api_version: string;
|
|
23
24
|
session_key: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
accessToken: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
32
|
+
connectionId: z.ZodString;
|
|
33
|
+
entityId: z.ZodString;
|
|
34
|
+
instanceId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
accessToken: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>]>;
|
|
25
38
|
//#endregion
|
|
26
39
|
export { salesforceServiceCloudVisitorSensitiveDataRule };
|
|
27
40
|
//# sourceMappingURL=visitor-sensitive-data-rule.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor-sensitive-data-rule.d.cts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;cAIa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.d.cts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;cAIa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEpD,8CAAA,gCAA8C,wBAAA"}
|
|
@@ -5,15 +5,16 @@ declare const SalesforceServiceCloudVisitorSensitiveDataRuleInput: z.ZodObject<{
|
|
|
5
5
|
rules: z.ZodArray<z.ZodObject<{
|
|
6
6
|
id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodString;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
9
|
affinity: z.ZodString;
|
|
10
10
|
sequence: z.ZodNumber;
|
|
11
11
|
api_version: z.ZodString;
|
|
12
12
|
session_key: z.ZodString;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.
|
|
14
|
+
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
15
|
declare const salesforceServiceCloudVisitorSensitiveDataRule: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
rules: {
|
|
17
|
+
[x: string]: unknown;
|
|
17
18
|
name: string;
|
|
18
19
|
id?: string | undefined;
|
|
19
20
|
}[];
|
|
@@ -21,7 +22,19 @@ declare const salesforceServiceCloudVisitorSensitiveDataRule: import("@keystroke
|
|
|
21
22
|
sequence: number;
|
|
22
23
|
api_version: string;
|
|
23
24
|
session_key: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
accessToken: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
32
|
+
connectionId: z.ZodString;
|
|
33
|
+
entityId: z.ZodString;
|
|
34
|
+
instanceId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
accessToken: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>]>;
|
|
25
38
|
//#endregion
|
|
26
39
|
export { salesforceServiceCloudVisitorSensitiveDataRule };
|
|
27
40
|
//# sourceMappingURL=visitor-sensitive-data-rule.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor-sensitive-data-rule.d.mts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;cAIa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.d.mts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;cAIa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEpD,8CAAA,gCAA8C,wBAAA"}
|