@keystrokehq/salesforce_service_cloud 0.1.4 → 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 -20
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +3 -20
- 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 +4 -22
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +4 -22
- 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 -23
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +3 -23
- 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 -22
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +3 -22
- 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 -21
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +3 -21
- 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 -15
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +3 -15
- 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 -15
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +3 -15
- 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 -13
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +3 -13
- 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 -20
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +3 -20
- 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 -16
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +3 -16
- 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 -18
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +3 -18
- 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 -13
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +3 -13
- 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 -13
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +3 -13
- 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 -15
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +3 -15
- 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 -15
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +3 -15
- 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 -18
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +3 -18
- 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 -19
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +3 -19
- 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 -13
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +3 -13
- 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 -20
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +3 -20
- 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 -19
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +3 -19
- 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 -19
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +3 -19
- 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 -23
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +3 -23
- 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 +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- 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
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"send-custom-event.cjs","names":["z","action"],"sources":["../../src/actions/send-custom-event.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 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: AppAction<\n typeof SalesforceServiceCloudSendCustomEventInput,\n typeof SalesforceServiceCloudSendCustomEventOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,wCAITC,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/send-custom-event.d.ts
|
|
@@ -12,26 +14,7 @@ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodObject<{
|
|
|
12
14
|
declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodObject<{
|
|
13
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const salesforceServiceCloudSendCustomEvent:
|
|
16
|
-
data: string;
|
|
17
|
-
type: string;
|
|
18
|
-
sequence: number;
|
|
19
|
-
session_key: string;
|
|
20
|
-
affinity_token: string;
|
|
21
|
-
api_version?: string | undefined;
|
|
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>>]>;
|
|
17
|
+
declare const salesforceServiceCloudSendCustomEvent: AppAction<typeof SalesforceServiceCloudSendCustomEventInput, typeof SalesforceServiceCloudSendCustomEventOutput, typeof salesforceServiceCloud.credential>;
|
|
35
18
|
//#endregion
|
|
36
19
|
export { salesforceServiceCloudSendCustomEvent };
|
|
37
20
|
//# sourceMappingURL=send-custom-event.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-custom-event.d.cts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"send-custom-event.d.cts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAQ1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,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/send-custom-event.d.ts
|
|
@@ -12,26 +14,7 @@ declare const SalesforceServiceCloudSendCustomEventInput: z.ZodObject<{
|
|
|
12
14
|
declare const SalesforceServiceCloudSendCustomEventOutput: z.ZodObject<{
|
|
13
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const salesforceServiceCloudSendCustomEvent:
|
|
16
|
-
data: string;
|
|
17
|
-
type: string;
|
|
18
|
-
sequence: number;
|
|
19
|
-
session_key: string;
|
|
20
|
-
affinity_token: string;
|
|
21
|
-
api_version?: string | undefined;
|
|
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>>]>;
|
|
17
|
+
declare const salesforceServiceCloudSendCustomEvent: AppAction<typeof SalesforceServiceCloudSendCustomEventInput, typeof SalesforceServiceCloudSendCustomEventOutput, typeof salesforceServiceCloud.credential>;
|
|
35
18
|
//#endregion
|
|
36
19
|
export { salesforceServiceCloudSendCustomEvent };
|
|
37
20
|
//# sourceMappingURL=send-custom-event.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-custom-event.d.mts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"send-custom-event.d.mts","names":[],"sources":["../../src/actions/send-custom-event.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAQ1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"send-custom-event.mjs","names":[],"sources":["../../src/actions/send-custom-event.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 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: AppAction<\n typeof SalesforceServiceCloudSendCustomEventInput,\n typeof SalesforceServiceCloudSendCustomEventOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;AAkBA,MAAa,wCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwD,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,6GAaH;CACP,QAbyD,EAAE,OAAO,EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4KAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.cjs","names":["z","action"],"sources":["../../src/actions/set-breadcrumb.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 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: AppAction<\n typeof SalesforceServiceCloudSetBreadcrumbInput,\n typeof SalesforceServiceCloudSetBreadcrumbOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,sCAITC,eAAAA,OAAO,2CAA2C;CACpD,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/set-breadcrumb.d.ts
|
|
@@ -11,25 +13,7 @@ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodObject<{
|
|
|
11
13
|
declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodObject<{
|
|
12
14
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudSetBreadcrumb:
|
|
15
|
-
org_id: string;
|
|
16
|
-
location: string;
|
|
17
|
-
session_id: string;
|
|
18
|
-
api_version: string;
|
|
19
|
-
deployment_id: string;
|
|
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>>]>;
|
|
16
|
+
declare const salesforceServiceCloudSetBreadcrumb: AppAction<typeof SalesforceServiceCloudSetBreadcrumbInput, typeof SalesforceServiceCloudSetBreadcrumbOutput, typeof salesforceServiceCloud.credential>;
|
|
33
17
|
//#endregion
|
|
34
18
|
export { salesforceServiceCloudSetBreadcrumb };
|
|
35
19
|
//# sourceMappingURL=set-breadcrumb.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-breadcrumb.d.cts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.d.cts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;cAOxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;cAIzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,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/set-breadcrumb.d.ts
|
|
@@ -11,25 +13,7 @@ declare const SalesforceServiceCloudSetBreadcrumbInput: z.ZodObject<{
|
|
|
11
13
|
declare const SalesforceServiceCloudSetBreadcrumbOutput: z.ZodObject<{
|
|
12
14
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudSetBreadcrumb:
|
|
15
|
-
org_id: string;
|
|
16
|
-
location: string;
|
|
17
|
-
session_id: string;
|
|
18
|
-
api_version: string;
|
|
19
|
-
deployment_id: string;
|
|
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>>]>;
|
|
16
|
+
declare const salesforceServiceCloudSetBreadcrumb: AppAction<typeof SalesforceServiceCloudSetBreadcrumbInput, typeof SalesforceServiceCloudSetBreadcrumbOutput, typeof salesforceServiceCloud.credential>;
|
|
33
17
|
//#endregion
|
|
34
18
|
export { salesforceServiceCloudSetBreadcrumb };
|
|
35
19
|
//# sourceMappingURL=set-breadcrumb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-breadcrumb.d.mts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.d.mts","names":[],"sources":["../../src/actions/set-breadcrumb.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;cAOxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;cAIzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"set-breadcrumb.mjs","names":[],"sources":["../../src/actions/set-breadcrumb.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 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: AppAction<\n typeof SalesforceServiceCloudSetBreadcrumbInput,\n typeof SalesforceServiceCloudSetBreadcrumbOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;AAiBA,MAAa,sCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsD,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,wDAaH;CACP,QAbuD,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,yEAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.cjs","names":["z","action"],"sources":["../../src/actions/upload-file-to-s3.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 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: AppAction<\n typeof SalesforceServiceCloudUploadFileToS3Input,\n typeof SalesforceServiceCloudUploadFileToS3Output,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,uCAITC,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/upload-file-to-s3.d.ts
|
|
@@ -14,25 +16,7 @@ declare const SalesforceServiceCloudUploadFileToS3Output: z.ZodObject<{
|
|
|
14
16
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
17
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const salesforceServiceCloudUploadFileToS3:
|
|
18
|
-
file: {
|
|
19
|
-
name: string;
|
|
20
|
-
s3key: string;
|
|
21
|
-
mimetype: string;
|
|
22
|
-
};
|
|
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>>]>;
|
|
19
|
+
declare const salesforceServiceCloudUploadFileToS3: AppAction<typeof SalesforceServiceCloudUploadFileToS3Input, typeof SalesforceServiceCloudUploadFileToS3Output, typeof salesforceServiceCloud.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { salesforceServiceCloudUploadFileToS3 };
|
|
38
22
|
//# sourceMappingURL=upload-file-to-s3.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file-to-s3.d.cts","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.d.cts","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAO1C,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/upload-file-to-s3.d.ts
|
|
@@ -14,25 +16,7 @@ declare const SalesforceServiceCloudUploadFileToS3Output: z.ZodObject<{
|
|
|
14
16
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
17
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const salesforceServiceCloudUploadFileToS3:
|
|
18
|
-
file: {
|
|
19
|
-
name: string;
|
|
20
|
-
s3key: string;
|
|
21
|
-
mimetype: string;
|
|
22
|
-
};
|
|
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>>]>;
|
|
19
|
+
declare const salesforceServiceCloudUploadFileToS3: AppAction<typeof SalesforceServiceCloudUploadFileToS3Input, typeof SalesforceServiceCloudUploadFileToS3Output, typeof salesforceServiceCloud.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { salesforceServiceCloudUploadFileToS3 };
|
|
38
22
|
//# sourceMappingURL=upload-file-to-s3.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file-to-s3.d.mts","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.d.mts","names":[],"sources":["../../src/actions/upload-file-to-s3.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAO1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"upload-file-to-s3.mjs","names":[],"sources":["../../src/actions/upload-file-to-s3.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 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: AppAction<\n typeof SalesforceServiceCloudUploadFileToS3Input,\n typeof SalesforceServiceCloudUploadFileToS3Output,\n typeof salesforceServiceCloud.credential\n> = 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":";;;AAoBA,MAAa,uCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBuD,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,iDAgBH;CACP,QAhBwD,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,wDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.cjs","names":["z","action"],"sources":["../../src/actions/visitor-sensitive-data-rule.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 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: AppAction<\n typeof SalesforceServiceCloudVisitorSensitiveDataRuleInput,\n typeof SalesforceServiceCloudVisitorSensitiveDataRuleOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,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,iDAITC,eAAAA,OAAO,wDAAwD;CACjE,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/visitor-sensitive-data-rule.d.ts
|
|
@@ -12,29 +14,7 @@ declare const SalesforceServiceCloudVisitorSensitiveDataRuleInput: z.ZodObject<{
|
|
|
12
14
|
session_key: z.ZodString;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const salesforceServiceCloudVisitorSensitiveDataRule:
|
|
16
|
-
rules: {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
name: string;
|
|
19
|
-
id?: string | undefined;
|
|
20
|
-
}[];
|
|
21
|
-
affinity: string;
|
|
22
|
-
sequence: number;
|
|
23
|
-
api_version: string;
|
|
24
|
-
session_key: string;
|
|
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>>]>;
|
|
17
|
+
declare const salesforceServiceCloudVisitorSensitiveDataRule: AppAction<typeof SalesforceServiceCloudVisitorSensitiveDataRuleInput, typeof SalesforceServiceCloudVisitorSensitiveDataRuleOutput, typeof salesforceServiceCloud.credential>;
|
|
38
18
|
//#endregion
|
|
39
19
|
export { salesforceServiceCloudVisitorSensitiveDataRule };
|
|
40
20
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.d.cts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;;;cAMa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEpD,8CAAA,EAAgD,SAAA,QACpD,mDAAA,SACA,oDAAA,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/visitor-sensitive-data-rule.d.ts
|
|
@@ -12,29 +14,7 @@ declare const SalesforceServiceCloudVisitorSensitiveDataRuleInput: z.ZodObject<{
|
|
|
12
14
|
session_key: z.ZodString;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const SalesforceServiceCloudVisitorSensitiveDataRuleOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
-
declare const salesforceServiceCloudVisitorSensitiveDataRule:
|
|
16
|
-
rules: {
|
|
17
|
-
[x: string]: unknown;
|
|
18
|
-
name: string;
|
|
19
|
-
id?: string | undefined;
|
|
20
|
-
}[];
|
|
21
|
-
affinity: string;
|
|
22
|
-
sequence: number;
|
|
23
|
-
api_version: string;
|
|
24
|
-
session_key: string;
|
|
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>>]>;
|
|
17
|
+
declare const salesforceServiceCloudVisitorSensitiveDataRule: AppAction<typeof SalesforceServiceCloudVisitorSensitiveDataRuleInput, typeof SalesforceServiceCloudVisitorSensitiveDataRuleOutput, typeof salesforceServiceCloud.credential>;
|
|
38
18
|
//#endregion
|
|
39
19
|
export { salesforceServiceCloudVisitorSensitiveDataRule };
|
|
40
20
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.d.mts","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.ts"],"mappings":";;;;;cAMa,mDAAA,EAAmD,CAAA,CAAA,SAAA;;;;;;;;;;cAUnD,oDAAA,EAAoD,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEpD,8CAAA,EAAgD,SAAA,QACpD,mDAAA,SACA,oDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor-sensitive-data-rule.mjs","names":[],"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":"
|
|
1
|
+
{"version":3,"file":"visitor-sensitive-data-rule.mjs","names":[],"sources":["../../src/actions/visitor-sensitive-data-rule.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 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: AppAction<\n typeof SalesforceServiceCloudVisitorSensitiveDataRuleInput,\n typeof SalesforceServiceCloudVisitorSensitiveDataRuleOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;AAkBA,MAAa,iDAIT,OAAO,wDAAwD;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBiE,EAAE,OAAO;EAC1E,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;GAC3F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,2DAA2D;EAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E;EAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACjF,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXkE,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAWrG;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { accessToken: require("zod").z.string() };
|
|
4
4
|
const salesforceServiceCloud = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "salesforce_service_cloud",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.salesforceServiceCloud = salesforceServiceCloud;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const salesforceServiceCloud = defineApp({\n slug: \"salesforce_service_cloud\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n accessToken: z.string(),\n};\n\nexport const salesforceServiceCloud: KeystrokeApp<\"salesforce_service_cloud\", typeof credential> = defineApp({\n slug: \"salesforce_service_cloud\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,0BAAaA,CAAAA,CAAAA,EAAE,OAAO,EACxB;AAEA,MAAa,0BAAA,GAAA,2BAAA,UAAA,CAAgG;CAC3G,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
accessToken: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const salesforceServiceCloud: KeystrokeApp<"salesforce_service_cloud", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { salesforceServiceCloud };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,sBAAA,EAAwB,YAAY,oCAAoC,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
accessToken: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const salesforceServiceCloud: KeystrokeApp<"salesforce_service_cloud", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { salesforceServiceCloud };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,sBAAA,EAAwB,YAAY,oCAAoC,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const salesforceServiceCloud = defineApp({\n slug: \"salesforce_service_cloud\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n accessToken: z.string(),\n};\n\nexport const salesforceServiceCloud: KeystrokeApp<\"salesforce_service_cloud\", typeof credential> = defineApp({\n slug: \"salesforce_service_cloud\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,yBAAsF,UAAU;CAC3G,MAAM;CACN,MAAM;CACN,cANA,aAAa,EAAE,OAAO,EAMtB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "./app.cjs";
|
|
1
2
|
import { salesforceServiceCloudChasitorSneakPeek } from "./actions/chasitor-sneak-peek.cjs";
|
|
2
3
|
import { salesforceServiceCloudCompositeBatch } from "./actions/composite-batch.cjs";
|
|
3
4
|
import { salesforceServiceCloudCompositeRequest } from "./actions/composite-request.cjs";
|
|
@@ -20,6 +21,5 @@ import { salesforceServiceCloudSendCustomEvent } from "./actions/send-custom-eve
|
|
|
20
21
|
import { salesforceServiceCloudSetBreadcrumb } from "./actions/set-breadcrumb.cjs";
|
|
21
22
|
import { salesforceServiceCloudUploadFileToS3 } from "./actions/upload-file-to-s3.cjs";
|
|
22
23
|
import { salesforceServiceCloudVisitorSensitiveDataRule } from "./actions/visitor-sensitive-data-rule.cjs";
|
|
23
|
-
import { salesforceServiceCloud } from "./app.cjs";
|
|
24
24
|
import { salesforceServiceCloudCatalog } from "./catalog.cjs";
|
|
25
25
|
export { salesforceServiceCloud, salesforceServiceCloudCatalog, salesforceServiceCloudChasitorSneakPeek, salesforceServiceCloudCompositeBatch, salesforceServiceCloudCompositeRequest, salesforceServiceCloudCompositeSobjectTree, salesforceServiceCloudCreateCaseRecord, salesforceServiceCloudDeleteCaseRecord, salesforceServiceCloudDescribeSObject, salesforceServiceCloudGenerateRequestId, salesforceServiceCloudGenerateSignedJwtAssertion, salesforceServiceCloudGetCaseRecord, salesforceServiceCloudGetChatMessages, salesforceServiceCloudGetLiveAgentApiVersion, salesforceServiceCloudListEinsteinBots, salesforceServiceCloudQueryAllSoql, salesforceServiceCloudQuerySoql, salesforceServiceCloudReconnectChatSession, salesforceServiceCloudResyncChasitorState, salesforceServiceCloudRetrieveSalesforceUsername, salesforceServiceCloudSendCustomEvent, salesforceServiceCloudSetBreadcrumb, salesforceServiceCloudUploadFileToS3, salesforceServiceCloudVisitorSensitiveDataRule };
|