@keystrokehq/salesforce_service_cloud 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs +1 -0
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +3 -8
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +3 -8
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs +1 -0
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +1 -0
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +3 -9
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +3 -9
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +1 -0
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +1 -0
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +3 -11
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +3 -11
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +1 -0
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +1 -0
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +3 -10
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +3 -10
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +1 -0
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +1 -0
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +3 -9
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +3 -9
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +1 -0
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs +1 -0
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +3 -3
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +3 -3
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs +1 -0
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +1 -0
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +3 -3
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +3 -3
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +1 -0
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -0
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +3 -1
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +3 -1
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -0
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +3 -8
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +3 -8
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +1 -0
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +3 -4
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +3 -4
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +1 -0
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +1 -0
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +3 -6
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +3 -6
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +1 -0
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +1 -0
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +3 -1
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +3 -1
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +1 -0
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +1 -0
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +3 -1
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +3 -1
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +1 -0
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +1 -0
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +3 -3
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +3 -3
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +1 -0
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +1 -0
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +3 -3
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +3 -3
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +1 -0
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -0
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +3 -6
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +3 -6
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +1 -0
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -0
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +3 -7
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +3 -7
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -0
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -0
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +3 -1
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +3 -1
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -0
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -0
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +3 -8
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +3 -8
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -0
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs +1 -0
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +3 -7
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +3 -7
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs +1 -0
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +1 -0
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +3 -7
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +3 -7
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +1 -0
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +3 -11
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +3 -11
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -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/get-chat-messages.d.ts
|
|
@@ -14,12 +16,7 @@ declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodObject<{
|
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const salesforceServiceCloudGetChatMessages:
|
|
18
|
-
affinity: string;
|
|
19
|
-
api_version: string;
|
|
20
|
-
session_key: string;
|
|
21
|
-
ack?: number | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const salesforceServiceCloudGetChatMessages: AppAction<typeof SalesforceServiceCloudGetChatMessagesInput, typeof SalesforceServiceCloudGetChatMessagesOutput, typeof salesforceServiceCloud.credential>;
|
|
23
20
|
//#endregion
|
|
24
21
|
export { salesforceServiceCloudGetChatMessages };
|
|
25
22
|
//# sourceMappingURL=get-chat-messages.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.d.cts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.cts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAU1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;cAK3C,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/get-chat-messages.d.ts
|
|
@@ -14,12 +16,7 @@ declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodObject<{
|
|
|
14
16
|
}, z.core.$loose>>;
|
|
15
17
|
sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const salesforceServiceCloudGetChatMessages:
|
|
18
|
-
affinity: string;
|
|
19
|
-
api_version: string;
|
|
20
|
-
session_key: string;
|
|
21
|
-
ack?: number | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const salesforceServiceCloudGetChatMessages: AppAction<typeof SalesforceServiceCloudGetChatMessagesInput, typeof SalesforceServiceCloudGetChatMessagesOutput, typeof salesforceServiceCloud.credential>;
|
|
23
20
|
//#endregion
|
|
24
21
|
export { salesforceServiceCloudGetChatMessages };
|
|
25
22
|
//# sourceMappingURL=get-chat-messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.d.mts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.mts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAU1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;cAK3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.mjs","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetChatMessagesInput = z.object({\n ack: z.number().int().default(-1).describe(\"Sequencing token for polling; use -1 for the first request\").optional(),\n affinity: z.string().describe(\"Affinity token identifying the session on Chat servers\"),\n api_version: z.string().describe(\"Salesforce API version for the request, e.g., '61.0'\"),\n session_key: z.string().describe(\"Unique Chat session key\"),\n}).describe(\"Request model for GetChatMessages.\");\nconst SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\").nullable(),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).passthrough().describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput = z.object({\n messages: z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe(\"Array of chat events/messages for the session\"),\n sequence: z.number().int().describe(\"Server-assigned sequence number for ordering; returned when new messages are available\").nullable().optional(),\n}).passthrough().describe(\"Response model for GetChatMessages.\");\n\nexport const salesforceServiceCloudGetChatMessages = action(\"SALESFORCE_SERVICE_CLOUD_GET_CHAT_MESSAGES\", {\n slug: \"salesforce_service_cloud-get-chat-messages\",\n name: \"Get Chat Messages\",\n description: \"Tool to long-poll for chat messages/events. Use after CreateChatSession to retrieve incoming chat events. Returns empty messages list when no new messages (HTTP 204). Call with ack from prior response to maintain sequence.\",\n input: SalesforceServiceCloudGetChatMessagesInput,\n output: SalesforceServiceCloudGetChatMessagesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-chat-messages.mjs","names":[],"sources":["../../src/actions/get-chat-messages.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 SalesforceServiceCloudGetChatMessagesInput = z.object({\n ack: z.number().int().default(-1).describe(\"Sequencing token for polling; use -1 for the first request\").optional(),\n affinity: z.string().describe(\"Affinity token identifying the session on Chat servers\"),\n api_version: z.string().describe(\"Salesforce API version for the request, e.g., '61.0'\"),\n session_key: z.string().describe(\"Unique Chat session key\"),\n}).describe(\"Request model for GetChatMessages.\");\nconst SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\").nullable(),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).passthrough().describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput = z.object({\n messages: z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe(\"Array of chat events/messages for the session\"),\n sequence: z.number().int().describe(\"Server-assigned sequence number for ordering; returned when new messages are available\").nullable().optional(),\n}).passthrough().describe(\"Response model for GetChatMessages.\");\n\nexport const salesforceServiceCloudGetChatMessages: AppAction<\n typeof SalesforceServiceCloudGetChatMessagesInput,\n typeof SalesforceServiceCloudGetChatMessagesOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_GET_CHAT_MESSAGES\", {\n slug: \"salesforce_service_cloud-get-chat-messages\",\n name: \"Get Chat Messages\",\n description: \"Tool to long-poll for chat messages/events. Use after CreateChatSession to retrieve incoming chat events. Returns empty messages list when no new messages (HTTP 204). Call with ack from prior response to maintain sequence.\",\n input: SalesforceServiceCloudGetChatMessagesInput,\n output: SalesforceServiceCloudGetChatMessagesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,wCAIT,OAAO,8CAA8C;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyD,EAAE,OAAO;EAClE,UAAU,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,+CAA+C;EACnI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.cjs","names":["z","action"],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).passthrough().describe(\"Response model for the current Live Agent API version.\");\n\nexport const salesforceServiceCloudGetLiveAgentApiVersion = action(\"SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION\", {\n slug: \"salesforce_service_cloud-get-live-agent-api-version\",\n name: \"Get Live Agent API Version\",\n description: \"Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.\",\n input: SalesforceServiceCloudGetLiveAgentApiVersionInput,\n output: SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.cjs","names":["z","action"],"sources":["../../src/actions/get-live-agent-api-version.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 SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).passthrough().describe(\"Response model for the current Live Agent API version.\");\n\nexport const salesforceServiceCloudGetLiveAgentApiVersion: AppAction<\n typeof SalesforceServiceCloudGetLiveAgentApiVersionInput,\n typeof SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION\", {\n slug: \"salesforce_service_cloud-get-live-agent-api-version\",\n name: \"Get Live Agent API Version\",\n description: \"Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.\",\n input: SalesforceServiceCloudGetLiveAgentApiVersionInput,\n output: SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oDAAoDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AACzJ,MAAa,qDAAqDA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,+CAITC,eAAAA,OAAO,uDAAuD;CAChE,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/get-live-agent-api-version.d.ts
|
|
@@ -6,7 +8,7 @@ declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodObject<{
|
|
|
6
8
|
url: z.ZodNullable<z.ZodString>;
|
|
7
9
|
version: z.ZodNullable<z.ZodString>;
|
|
8
10
|
}, z.core.$loose>;
|
|
9
|
-
declare const salesforceServiceCloudGetLiveAgentApiVersion:
|
|
11
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: AppAction<typeof SalesforceServiceCloudGetLiveAgentApiVersionInput, typeof SalesforceServiceCloudGetLiveAgentApiVersionOutput, typeof salesforceServiceCloud.credential>;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
12
14
|
//# sourceMappingURL=get-live-agent-api-version.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.d.cts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.cts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;;;cAMa,iDAAA,EAAiD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjD,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;cAKlD,4CAAA,EAA8C,SAAA,QAClD,iDAAA,SACA,kDAAA,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/get-live-agent-api-version.d.ts
|
|
@@ -6,7 +8,7 @@ declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodObject<{
|
|
|
6
8
|
url: z.ZodNullable<z.ZodString>;
|
|
7
9
|
version: z.ZodNullable<z.ZodString>;
|
|
8
10
|
}, z.core.$loose>;
|
|
9
|
-
declare const salesforceServiceCloudGetLiveAgentApiVersion:
|
|
11
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: AppAction<typeof SalesforceServiceCloudGetLiveAgentApiVersionInput, typeof SalesforceServiceCloudGetLiveAgentApiVersionOutput, typeof salesforceServiceCloud.credential>;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
12
14
|
//# sourceMappingURL=get-live-agent-api-version.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.d.mts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.mts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;;;cAMa,iDAAA,EAAiD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjD,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;cAKlD,4CAAA,EAA8C,SAAA,QAClD,iDAAA,SACA,kDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.mjs","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).passthrough().describe(\"Response model for the current Live Agent API version.\");\n\nexport const salesforceServiceCloudGetLiveAgentApiVersion = action(\"SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION\", {\n slug: \"salesforce_service_cloud-get-live-agent-api-version\",\n name: \"Get Live Agent API Version\",\n description: \"Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.\",\n input: SalesforceServiceCloudGetLiveAgentApiVersionInput,\n output: SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.mjs","names":[],"sources":["../../src/actions/get-live-agent-api-version.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 SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).passthrough().describe(\"Response model for the current Live Agent API version.\");\n\nexport const salesforceServiceCloudGetLiveAgentApiVersion: AppAction<\n typeof SalesforceServiceCloudGetLiveAgentApiVersionInput,\n typeof SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION\", {\n slug: \"salesforce_service_cloud-get-live-agent-api-version\",\n name: \"Get Live Agent API Version\",\n description: \"Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.\",\n input: SalesforceServiceCloudGetLiveAgentApiVersionInput,\n output: SalesforceServiceCloudGetLiveAgentApiVersionOutput,\n});\n"],"mappings":";;;AAYA,MAAa,+CAIT,OAAO,uDAAuD;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAc9E;CACP,QAdgE,EAAE,OAAO;EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACjH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-einstein-bots.cjs","names":["z","action"],"sources":["../../src/actions/list-einstein-bots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudListEinsteinBotsInput = z.object({}).describe(\"Request model for listing Einstein Bots.\\n\\nThis action retrieves all Einstein Bot definitions from the Salesforce org\\nby querying the BotDefinition object via the Tooling API.\\nNo parameters are required.\");\nconst SalesforceServiceCloudListEinsteinBots_BotInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\").nullable(),\n label: z.string().describe(\"Display label of the Einstein Bot.\").nullable(),\n active: z.boolean().describe(\"Whether the bot is currently active/enabled.\").nullable().optional(),\n developerName: z.string().describe(\"API name of the Einstein Bot.\").nullable(),\n defaultLanguage: z.string().describe(\"Default language locale (e.g., en_US, fr_FR).\").nullable().optional(),\n lastModifiedDate: z.string().describe(\"ISO 8601 timestamp of the last modification.\").nullable().optional(),\n publishedVersion: z.number().int().describe(\"Published version number of the bot.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for an Einstein Bot.\");\nexport const SalesforceServiceCloudListEinsteinBotsOutput = z.object({\n items: z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe(\"List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information.\"),\n totalSize: z.number().int().describe(\"Total number of Einstein Bots returned in this response.\").nullable(),\n nextPageUrl: z.string().describe(\"URL to fetch the next page of results. Currently always null as pagination is not implemented for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Einstein Bots.\\n\\nContains a list of Einstein Bot definitions with their metadata.\");\n\nexport const salesforceServiceCloudListEinsteinBots = action(\"SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS\", {\n slug: \"salesforce_service_cloud-list-einstein-bots\",\n name: \"List Einstein Bots\",\n description: \"Lists all Einstein Bot definitions in the Salesforce organization. This action queries the BotDefinition object using the Salesforce Tooling API to retrieve metadata about all Einstein Bots, including their IDs, labels, developer names, and language settings. Use this action when you need to: - Get a list of available Einstein Bots in the org - Find valid bot IDs for use with other Einstein Bots API operations - Retrieve bot metadata such as names and language settings Returns an empty list if no bots exist or if Tooling API access is unavailable.\",\n input: SalesforceServiceCloudListEinsteinBotsInput,\n output: SalesforceServiceCloudListEinsteinBotsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.cjs","names":["z","action"],"sources":["../../src/actions/list-einstein-bots.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 SalesforceServiceCloudListEinsteinBotsInput = z.object({}).describe(\"Request model for listing Einstein Bots.\\n\\nThis action retrieves all Einstein Bot definitions from the Salesforce org\\nby querying the BotDefinition object via the Tooling API.\\nNo parameters are required.\");\nconst SalesforceServiceCloudListEinsteinBots_BotInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\").nullable(),\n label: z.string().describe(\"Display label of the Einstein Bot.\").nullable(),\n active: z.boolean().describe(\"Whether the bot is currently active/enabled.\").nullable().optional(),\n developerName: z.string().describe(\"API name of the Einstein Bot.\").nullable(),\n defaultLanguage: z.string().describe(\"Default language locale (e.g., en_US, fr_FR).\").nullable().optional(),\n lastModifiedDate: z.string().describe(\"ISO 8601 timestamp of the last modification.\").nullable().optional(),\n publishedVersion: z.number().int().describe(\"Published version number of the bot.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for an Einstein Bot.\");\nexport const SalesforceServiceCloudListEinsteinBotsOutput = z.object({\n items: z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe(\"List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information.\"),\n totalSize: z.number().int().describe(\"Total number of Einstein Bots returned in this response.\").nullable(),\n nextPageUrl: z.string().describe(\"URL to fetch the next page of results. Currently always null as pagination is not implemented for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Einstein Bots.\\n\\nContains a list of Einstein Bot definitions with their metadata.\");\n\nexport const salesforceServiceCloudListEinsteinBots: AppAction<\n typeof SalesforceServiceCloudListEinsteinBotsInput,\n typeof SalesforceServiceCloudListEinsteinBotsOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS\", {\n slug: \"salesforce_service_cloud-list-einstein-bots\",\n name: \"List Einstein Bots\",\n description: \"Lists all Einstein Bot definitions in the Salesforce organization. This action queries the BotDefinition object using the Salesforce Tooling API to retrieve metadata about all Einstein Bots, including their IDs, labels, developer names, and language settings. Use this action when you need to: - Get a list of available Einstein Bots in the org - Find valid bot IDs for use with other Einstein Bots API operations - Retrieve bot metadata such as names and language settings Returns an empty list if no bots exist or if Tooling API access is unavailable.\",\n input: SalesforceServiceCloudListEinsteinBotsInput,\n output: SalesforceServiceCloudListEinsteinBotsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gNAAgN;AACjS,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,OAAOA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,oHAAoH;CAClM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+GAA+G;AAEzI,MAAa,yCAITC,eAAAA,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-einstein-bots.d.ts
|
|
@@ -15,7 +17,7 @@ declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextPageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudListEinsteinBots:
|
|
20
|
+
declare const salesforceServiceCloudListEinsteinBots: AppAction<typeof SalesforceServiceCloudListEinsteinBotsInput, typeof SalesforceServiceCloudListEinsteinBotsOutput, typeof salesforceServiceCloud.credential>;
|
|
19
21
|
//#endregion
|
|
20
22
|
export { salesforceServiceCloudListEinsteinBots };
|
|
21
23
|
//# sourceMappingURL=list-einstein-bots.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-einstein-bots.d.cts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.cts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-einstein-bots.d.ts
|
|
@@ -15,7 +17,7 @@ declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextPageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudListEinsteinBots:
|
|
20
|
+
declare const salesforceServiceCloudListEinsteinBots: AppAction<typeof SalesforceServiceCloudListEinsteinBotsInput, typeof SalesforceServiceCloudListEinsteinBotsOutput, typeof salesforceServiceCloud.credential>;
|
|
19
21
|
//#endregion
|
|
20
22
|
export { salesforceServiceCloudListEinsteinBots };
|
|
21
23
|
//# sourceMappingURL=list-einstein-bots.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-einstein-bots.d.mts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.mts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-einstein-bots.mjs","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudListEinsteinBotsInput = z.object({}).describe(\"Request model for listing Einstein Bots.\\n\\nThis action retrieves all Einstein Bot definitions from the Salesforce org\\nby querying the BotDefinition object via the Tooling API.\\nNo parameters are required.\");\nconst SalesforceServiceCloudListEinsteinBots_BotInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\").nullable(),\n label: z.string().describe(\"Display label of the Einstein Bot.\").nullable(),\n active: z.boolean().describe(\"Whether the bot is currently active/enabled.\").nullable().optional(),\n developerName: z.string().describe(\"API name of the Einstein Bot.\").nullable(),\n defaultLanguage: z.string().describe(\"Default language locale (e.g., en_US, fr_FR).\").nullable().optional(),\n lastModifiedDate: z.string().describe(\"ISO 8601 timestamp of the last modification.\").nullable().optional(),\n publishedVersion: z.number().int().describe(\"Published version number of the bot.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for an Einstein Bot.\");\nexport const SalesforceServiceCloudListEinsteinBotsOutput = z.object({\n items: z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe(\"List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information.\"),\n totalSize: z.number().int().describe(\"Total number of Einstein Bots returned in this response.\").nullable(),\n nextPageUrl: z.string().describe(\"URL to fetch the next page of results. Currently always null as pagination is not implemented for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Einstein Bots.\\n\\nContains a list of Einstein Bot definitions with their metadata.\");\n\nexport const salesforceServiceCloudListEinsteinBots = action(\"SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS\", {\n slug: \"salesforce_service_cloud-list-einstein-bots\",\n name: \"List Einstein Bots\",\n description: \"Lists all Einstein Bot definitions in the Salesforce organization. This action queries the BotDefinition object using the Salesforce Tooling API to retrieve metadata about all Einstein Bots, including their IDs, labels, developer names, and language settings. Use this action when you need to: - Get a list of available Einstein Bots in the org - Find valid bot IDs for use with other Einstein Bots API operations - Retrieve bot metadata such as names and language settings Returns an empty list if no bots exist or if Tooling API access is unavailable.\",\n input: SalesforceServiceCloudListEinsteinBotsInput,\n output: SalesforceServiceCloudListEinsteinBotsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.mjs","names":[],"sources":["../../src/actions/list-einstein-bots.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 SalesforceServiceCloudListEinsteinBotsInput = z.object({}).describe(\"Request model for listing Einstein Bots.\\n\\nThis action retrieves all Einstein Bot definitions from the Salesforce org\\nby querying the BotDefinition object via the Tooling API.\\nNo parameters are required.\");\nconst SalesforceServiceCloudListEinsteinBots_BotInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\").nullable(),\n label: z.string().describe(\"Display label of the Einstein Bot.\").nullable(),\n active: z.boolean().describe(\"Whether the bot is currently active/enabled.\").nullable().optional(),\n developerName: z.string().describe(\"API name of the Einstein Bot.\").nullable(),\n defaultLanguage: z.string().describe(\"Default language locale (e.g., en_US, fr_FR).\").nullable().optional(),\n lastModifiedDate: z.string().describe(\"ISO 8601 timestamp of the last modification.\").nullable().optional(),\n publishedVersion: z.number().int().describe(\"Published version number of the bot.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for an Einstein Bot.\");\nexport const SalesforceServiceCloudListEinsteinBotsOutput = z.object({\n items: z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe(\"List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information.\"),\n totalSize: z.number().int().describe(\"Total number of Einstein Bots returned in this response.\").nullable(),\n nextPageUrl: z.string().describe(\"URL to fetch the next page of results. Currently always null as pagination is not implemented for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing Einstein Bots.\\n\\nContains a list of Einstein Bot definitions with their metadata.\");\n\nexport const salesforceServiceCloudListEinsteinBots: AppAction<\n typeof SalesforceServiceCloudListEinsteinBotsInput,\n typeof SalesforceServiceCloudListEinsteinBotsOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS\", {\n slug: \"salesforce_service_cloud-list-einstein-bots\",\n name: \"List Einstein Bots\",\n description: \"Lists all Einstein Bot definitions in the Salesforce organization. This action queries the BotDefinition object using the Salesforce Tooling API to retrieve metadata about all Einstein Bots, including their IDs, labels, developer names, and language settings. Use this action when you need to: - Get a list of available Einstein Bots in the org - Find valid bot IDs for use with other Einstein Bots API operations - Retrieve bot metadata such as names and language settings Returns an empty list if no bots exist or if Tooling API access is unavailable.\",\n input: SalesforceServiceCloudListEinsteinBotsInput,\n output: SalesforceServiceCloudListEinsteinBotsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8CAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gNAAgN;AACjS,MAAM,uDAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAOzD,MAAa,yCAIT,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0D,EAAE,OAAO;EACnE,OAAO,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,oHAAoH;EAClM,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+GAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-all-soql.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 SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql: AppAction<\n typeof SalesforceServiceCloudQueryAllSoqlInput,\n typeof SalesforceServiceCloudQueryAllSoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;CACxH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,qCAITC,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/query-all-soql.d.ts
|
|
@@ -15,9 +17,7 @@ declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudQueryAllSoql:
|
|
19
|
-
q: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const salesforceServiceCloudQueryAllSoql: AppAction<typeof SalesforceServiceCloudQueryAllSoqlInput, typeof SalesforceServiceCloudQueryAllSoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
23
23
|
//# sourceMappingURL=query-all-soql.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,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/query-all-soql.d.ts
|
|
@@ -15,9 +17,7 @@ declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudQueryAllSoql:
|
|
19
|
-
q: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const salesforceServiceCloudQueryAllSoql: AppAction<typeof SalesforceServiceCloudQueryAllSoqlInput, typeof SalesforceServiceCloudQueryAllSoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
23
23
|
//# sourceMappingURL=query-all-soql.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.mjs","names":[],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.mjs","names":[],"sources":["../../src/actions/query-all-soql.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 SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql: AppAction<\n typeof SalesforceServiceCloudQueryAllSoqlInput,\n typeof SalesforceServiceCloudQueryAllSoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,sDAAsD,EAAE,OAAO,EACnE,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAQzE,MAAa,qCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsD,EAAE,OAAO;EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;EACxH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC9F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-soql.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 SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql: AppAction<\n typeof SalesforceServiceCloudQuerySoqlInput,\n typeof SalesforceServiceCloudQuerySoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACpH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,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/query-soql.d.ts
|
|
@@ -10,9 +12,7 @@ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
|
10
12
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesforceServiceCloudQuerySoql:
|
|
14
|
-
soql_query: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const salesforceServiceCloudQuerySoql: AppAction<typeof SalesforceServiceCloudQuerySoqlInput, typeof SalesforceServiceCloudQuerySoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { salesforceServiceCloudQuerySoql };
|
|
18
18
|
//# sourceMappingURL=query-soql.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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/query-soql.d.ts
|
|
@@ -10,9 +12,7 @@ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
|
10
12
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesforceServiceCloudQuerySoql:
|
|
14
|
-
soql_query: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const salesforceServiceCloudQuerySoql: AppAction<typeof SalesforceServiceCloudQuerySoqlInput, typeof SalesforceServiceCloudQuerySoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { salesforceServiceCloudQuerySoql };
|
|
18
18
|
//# sourceMappingURL=query-soql.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.mjs","names":[],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.mjs","names":[],"sources":["../../src/actions/query-soql.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 SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql: AppAction<\n typeof SalesforceServiceCloudQuerySoqlInput,\n typeof SalesforceServiceCloudQuerySoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBkD,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAgBH;CACP,QAhBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACpH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.cjs","names":["z","action"],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.cjs","names":["z","action"],"sources":["../../src/actions/reconnect-chat-session.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 SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession: AppAction<\n typeof SalesforceServiceCloudReconnectChatSessionInput,\n typeof SalesforceServiceCloudReconnectChatSessionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CACrN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CAC5K,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qHAAqH;AACjI,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAA0J;AAEpL,MAAa,6CAITC,eAAAA,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
@@ -11,12 +13,7 @@ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudReconnectChatSession:
|
|
15
|
-
affinity: string;
|
|
16
|
-
session_key: string;
|
|
17
|
-
api_version?: string | undefined;
|
|
18
|
-
"X-LIVEAGENT-SEQUENCE"?: string | number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const salesforceServiceCloudReconnectChatSession: AppAction<typeof SalesforceServiceCloudReconnectChatSessionInput, typeof SalesforceServiceCloudReconnectChatSessionOutput, typeof salesforceServiceCloud.credential>;
|
|
20
17
|
//#endregion
|
|
21
18
|
export { salesforceServiceCloudReconnectChatSession };
|
|
22
19
|
//# sourceMappingURL=reconnect-chat-session.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
@@ -11,12 +13,7 @@ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudReconnectChatSession:
|
|
15
|
-
affinity: string;
|
|
16
|
-
session_key: string;
|
|
17
|
-
api_version?: string | undefined;
|
|
18
|
-
"X-LIVEAGENT-SEQUENCE"?: string | number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const salesforceServiceCloudReconnectChatSession: AppAction<typeof SalesforceServiceCloudReconnectChatSessionInput, typeof SalesforceServiceCloudReconnectChatSessionOutput, typeof salesforceServiceCloud.credential>;
|
|
20
17
|
//#endregion
|
|
21
18
|
export { salesforceServiceCloudReconnectChatSession };
|
|
22
19
|
//# sourceMappingURL=reconnect-chat-session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.mjs","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.mjs","names":[],"sources":["../../src/actions/reconnect-chat-session.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 SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession: AppAction<\n typeof SalesforceServiceCloudReconnectChatSessionInput,\n typeof SalesforceServiceCloudReconnectChatSessionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,6CAIT,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6D,EAAE,OAAO;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;EACrN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EAC5K,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,qHAcH;CACP,QAd8D,EAAE,OAAO;EACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.cjs","names":["z","action"],"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":"
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.cjs","names":["z","action"],"sources":["../../src/actions/resync-chasitor-state.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 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: AppAction<\n typeof SalesforceServiceCloudResyncChasitorStateInput,\n typeof SalesforceServiceCloudResyncChasitorStateOutput,\n typeof salesforceServiceCloud.credential\n> = 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":";;;;AAMA,MAAa,iDAAiDA,IAAAA,EAAE,OAAO;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACvM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CAChM,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC5J,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,uSAAuS;AACnT,MAAa,kDAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,EACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0KAA0K;AAEpM,MAAa,4CAITC,eAAAA,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|