@keystrokehq/salesforce_service_cloud 0.1.0 → 0.1.2
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.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +2 -2
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +31 -3
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +31 -3
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +2 -2
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +2 -2
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +33 -3
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +33 -3
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +2 -2
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +3 -3
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +31 -3
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +31 -3
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +3 -3
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +3 -3
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +30 -3
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +30 -3
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +3 -3
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +9 -3
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +9 -3
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +2 -2
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +21 -3
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +21 -3
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +2 -2
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -1
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +5 -3
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +5 -3
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -1
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +2 -2
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +33 -3
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +33 -3
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +2 -2
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +1 -1
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +19 -3
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +19 -3
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +1 -1
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +2 -2
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +6 -3
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +6 -3
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +2 -2
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +4 -4
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +15 -3
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +15 -3
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +4 -4
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +4 -4
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +17 -3
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +17 -3
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +4 -4
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +2 -2
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +12 -3
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +12 -3
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +2 -2
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -1
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +16 -3
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +16 -3
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +1 -1
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -1
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +17 -3
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +17 -3
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -1
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -1
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +19 -3
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +19 -3
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -1
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +17 -3
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +17 -3
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +4 -4
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +20 -3
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +20 -3
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +4 -4
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +21 -3
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +21 -3
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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}).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}).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":";;;AAIA,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,SAAS,+BAA+B;AAC3C,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,SAAS,+GAA+G;AAE3H,MAAa,yCAAyCC,eAAAA,OAAO,+CAA+C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-einstein-bots.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudListEinsteinBotsInput: z.
|
|
5
|
-
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudListEinsteinBotsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodObject<{
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
label: z.ZodNullable<z.ZodString>;
|
|
9
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
developerName: z.ZodNullable<z.ZodString>;
|
|
11
|
+
defaultLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
lastModifiedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
publishedVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
nextPageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const salesforceServiceCloudListEinsteinBots: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { salesforceServiceCloudListEinsteinBots };
|
|
9
21
|
//# 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":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.cts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM5C,sCAAA,gCAAsC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-einstein-bots.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudListEinsteinBotsInput: z.
|
|
5
|
-
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudListEinsteinBotsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodObject<{
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
label: z.ZodNullable<z.ZodString>;
|
|
9
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
|
+
developerName: z.ZodNullable<z.ZodString>;
|
|
11
|
+
defaultLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
lastModifiedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
publishedVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
nextPageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const salesforceServiceCloudListEinsteinBots: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { salesforceServiceCloudListEinsteinBots };
|
|
9
21
|
//# 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":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.mts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM5C,sCAAA,gCAAsC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,10 +3,10 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-einstein-bots.ts
|
|
4
4
|
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.");
|
|
5
5
|
const SalesforceServiceCloudListEinsteinBots_BotInfoSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the Einstein Bot."),
|
|
7
|
-
label: z.string().describe("Display label of the Einstein Bot."),
|
|
6
|
+
id: z.string().describe("Unique identifier for the Einstein Bot.").nullable(),
|
|
7
|
+
label: z.string().describe("Display label of the Einstein Bot.").nullable(),
|
|
8
8
|
active: z.boolean().describe("Whether the bot is currently active/enabled.").nullable().optional(),
|
|
9
|
-
developerName: z.string().describe("API name of the Einstein Bot."),
|
|
9
|
+
developerName: z.string().describe("API name of the Einstein Bot.").nullable(),
|
|
10
10
|
defaultLanguage: z.string().describe("Default language locale (e.g., en_US, fr_FR).").nullable().optional(),
|
|
11
11
|
lastModifiedDate: z.string().describe("ISO 8601 timestamp of the last modification.").nullable().optional(),
|
|
12
12
|
publishedVersion: z.number().int().describe("Published version number of the bot.").nullable().optional()
|
|
@@ -18,7 +18,7 @@ const salesforceServiceCloudListEinsteinBots = action("SALESFORCE_SERVICE_CLOUD_
|
|
|
18
18
|
input: SalesforceServiceCloudListEinsteinBotsInput,
|
|
19
19
|
output: z.object({
|
|
20
20
|
items: z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe("List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information."),
|
|
21
|
-
totalSize: z.number().int().describe("Total number of Einstein Bots returned in this response."),
|
|
21
|
+
totalSize: z.number().int().describe("Total number of Einstein Bots returned in this response.").nullable(),
|
|
22
22
|
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()
|
|
23
23
|
}).describe("Response model for listing Einstein Bots.\n\nContains a list of Einstein Bot definitions with their metadata.")
|
|
24
24
|
});
|
|
@@ -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
|
|
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}).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}).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":";;;AAIA,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,SAAS,+BAA+B;AAO3C,MAAa,yCAAyC,OAAO,+CAA+C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,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,SAAS,+GAOF;AACV,CAAC"}
|
|
@@ -3,14 +3,14 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/query-all-soql.ts
|
|
4
4
|
const SalesforceServiceCloudQueryAllSoqlInput = zod.z.object({ q: zod.z.string().describe("SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.") }).describe("Request model for QueryAllSoql. Use \"ALL ROWS\" in your SOQL to include deleted and archived records.");
|
|
5
5
|
const SalesforceServiceCloudQueryAllSoql_AttributesSchema = zod.z.object({
|
|
6
|
-
url: zod.z.string().describe("URL for the record resource"),
|
|
7
|
-
type: zod.z.string().describe("SObject type of the record")
|
|
6
|
+
url: zod.z.string().describe("URL for the record resource").nullable(),
|
|
7
|
+
type: zod.z.string().describe("SObject type of the record").nullable()
|
|
8
8
|
}).describe("Metadata about the SObject record.");
|
|
9
9
|
const SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = zod.z.object({ attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable() }).passthrough().describe("Individual record returned by the SOQL query.");
|
|
10
10
|
const SalesforceServiceCloudQueryAllSoqlOutput = zod.z.object({
|
|
11
|
-
done: zod.z.boolean().describe("True if all records have been returned in this batch"),
|
|
11
|
+
done: zod.z.boolean().describe("True if all records have been returned in this batch").nullable(),
|
|
12
12
|
records: zod.z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe("List of returned records for this batch"),
|
|
13
|
-
totalSize: zod.z.number().int().describe("Total number of records that match the query"),
|
|
13
|
+
totalSize: zod.z.number().int().describe("Total number of records that match the query").nullable(),
|
|
14
14
|
nextRecordsUrl: zod.z.string().describe("URL to retrieve the next batch of records if done is false").nullable().optional()
|
|
15
15
|
}).describe("Response model for QueryAllSoql.");
|
|
16
16
|
const salesforceServiceCloudQueryAllSoql = require_action.action("SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL", {
|
|
@@ -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
|
|
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}).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}).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":";;;AAIA,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,SAAS,oCAAoC;AAChD,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,SAAS,kCAAkC;AAE9C,MAAa,qCAAqCC,eAAAA,OAAO,2CAA2C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-all-soql.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudQueryAllSoqlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudQueryAllSoqlInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
8
|
+
done: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
records: z.ZodArray<z.ZodObject<{
|
|
10
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
url: z.ZodNullable<z.ZodString>;
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const salesforceServiceCloudQueryAllSoql: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
q: string;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
9
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":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-all-soql.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudQueryAllSoqlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudQueryAllSoqlInput: z.ZodObject<{
|
|
5
|
+
q: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
8
|
+
done: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
records: z.ZodArray<z.ZodObject<{
|
|
10
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
url: z.ZodNullable<z.ZodString>;
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const salesforceServiceCloudQueryAllSoql: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
q: string;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
9
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":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/query-all-soql.ts
|
|
4
4
|
const SalesforceServiceCloudQueryAllSoqlInput = z.object({ q: z.string().describe("SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.") }).describe("Request model for QueryAllSoql. Use \"ALL ROWS\" in your SOQL to include deleted and archived records.");
|
|
5
5
|
const SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({
|
|
6
|
-
url: z.string().describe("URL for the record resource"),
|
|
7
|
-
type: z.string().describe("SObject type of the record")
|
|
6
|
+
url: z.string().describe("URL for the record resource").nullable(),
|
|
7
|
+
type: z.string().describe("SObject type of the record").nullable()
|
|
8
8
|
}).describe("Metadata about the SObject record.");
|
|
9
9
|
const SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({ attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable() }).passthrough().describe("Individual record returned by the SOQL query.");
|
|
10
10
|
const salesforceServiceCloudQueryAllSoql = action("SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL", {
|
|
@@ -13,9 +13,9 @@ const salesforceServiceCloudQueryAllSoql = action("SALESFORCE_SERVICE_CLOUD_QUER
|
|
|
13
13
|
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.",
|
|
14
14
|
input: SalesforceServiceCloudQueryAllSoqlInput,
|
|
15
15
|
output: z.object({
|
|
16
|
-
done: z.boolean().describe("True if all records have been returned in this batch"),
|
|
16
|
+
done: z.boolean().describe("True if all records have been returned in this batch").nullable(),
|
|
17
17
|
records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe("List of returned records for this batch"),
|
|
18
|
-
totalSize: z.number().int().describe("Total number of records that match the query"),
|
|
18
|
+
totalSize: z.number().int().describe("Total number of records that match the query").nullable(),
|
|
19
19
|
nextRecordsUrl: z.string().describe("URL to retrieve the next batch of records if done is false").nullable().optional()
|
|
20
20
|
}).describe("Response model for QueryAllSoql.")
|
|
21
21
|
});
|
|
@@ -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
|
|
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}).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}).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":";;;AAIA,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,SAAS,oCAAoC;AAChD,MAAM,sDAAsD,EAAE,OAAO,EACnE,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAQzE,MAAa,qCAAqC,OAAO,2CAA2C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsD,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,SAAS,kCAOF;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/query-soql.ts
|
|
4
4
|
const SalesforceServiceCloudQuerySoqlInput = zod.z.object({ soql_query: zod.z.string().describe("SOQL query string to execute.") }).describe("Request model for executing a SOQL query.");
|
|
5
5
|
const SalesforceServiceCloudQuerySoqlOutput = zod.z.object({
|
|
6
|
-
done: zod.z.boolean().describe("True if all records have been returned; false if more records are available."),
|
|
6
|
+
done: zod.z.boolean().describe("True if all records have been returned; false if more records are available.").nullable(),
|
|
7
7
|
records: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of records returned in this batch."),
|
|
8
|
-
totalSize: zod.z.number().int().describe("Total number of records matched by the query."),
|
|
8
|
+
totalSize: zod.z.number().int().describe("Total number of records matched by the query.").nullable(),
|
|
9
9
|
nextRecordsUrl: zod.z.string().describe("URL to retrieve the next batch of records when done is false.").nullable().optional()
|
|
10
10
|
}).describe("Response model for a SOQL query result.");
|
|
11
11
|
const salesforceServiceCloudQuerySoql = require_action.action("SALESFORCE_SERVICE_CLOUD_QUERY_SOQL", {
|
|
@@ -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
|
|
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}).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":";;;AAIA,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,SAAS,yCAAyC;AAErD,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-soql.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudQuerySoqlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudQuerySoqlInput: z.ZodObject<{
|
|
5
|
+
soql_query: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
8
|
+
done: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const salesforceServiceCloudQuerySoql: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
soql_query: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { salesforceServiceCloudQuerySoql };
|
|
9
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":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-soql.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudQuerySoqlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudQuerySoqlInput: z.ZodObject<{
|
|
5
|
+
soql_query: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
8
|
+
done: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
+
records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const salesforceServiceCloudQuerySoql: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
soql_query: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { salesforceServiceCloudQuerySoql };
|
|
9
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":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const salesforceServiceCloudQuerySoql = action("SALESFORCE_SERVICE_CLOUD_QUERY_S
|
|
|
6
6
|
description: "Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.",
|
|
7
7
|
input: z.object({ soql_query: z.string().describe("SOQL query string to execute.") }).describe("Request model for executing a SOQL query."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
done: z.boolean().describe("True if all records have been returned; false if more records are available."),
|
|
9
|
+
done: z.boolean().describe("True if all records have been returned; false if more records are available.").nullable(),
|
|
10
10
|
records: z.array(z.record(z.string(), z.unknown())).describe("List of records returned in this batch."),
|
|
11
|
-
totalSize: z.number().int().describe("Total number of records matched by the query."),
|
|
11
|
+
totalSize: z.number().int().describe("Total number of records matched by the query.").nullable(),
|
|
12
12
|
nextRecordsUrl: z.string().describe("URL to retrieve the next batch of records when done is false.").nullable().optional()
|
|
13
13
|
}).describe("Response model for a SOQL query result.")
|
|
14
14
|
});
|
|
@@ -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
|
|
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}).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":";;AAcA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdkD,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAYH;CACP,QAZmD,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,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const SalesforceServiceCloudReconnectChatSessionInput = zod.z.object({
|
|
|
8
8
|
"X-LIVEAGENT-SEQUENCE": zod.z.union([zod.z.number().int(), zod.z.string()]).optional()
|
|
9
9
|
}).describe("Request model for ReconnectChatSession.\nThe Live Agent ReconnectSession endpoint expects headers only and no body.");
|
|
10
10
|
const SalesforceServiceCloudReconnectChatSessionOutput = zod.z.object({
|
|
11
|
-
success: zod.z.boolean().describe("True if reconnect was acknowledged as successful"),
|
|
11
|
+
success: zod.z.boolean().describe("True if reconnect was acknowledged as successful").nullable(),
|
|
12
12
|
response_text: zod.z.string().describe("Raw response body from Salesforce, often 'OK' on success").nullable().optional()
|
|
13
13
|
}).describe("Response model for ReconnectChatSession.\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.");
|
|
14
14
|
const salesforceServiceCloudReconnectChatSession = require_action.action("SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION", {
|
|
@@ -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
|
|
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}).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":";;;AAIA,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,SAAS,0JAA0J;AAEtK,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudReconnectChatSessionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudReconnectChatSessionInput: z.ZodObject<{
|
|
5
|
+
affinity: z.ZodString;
|
|
6
|
+
api_version: z.ZodOptional<z.ZodString>;
|
|
7
|
+
session_key: z.ZodString;
|
|
8
|
+
"X-LIVEAGENT-SEQUENCE": z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
11
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const salesforceServiceCloudReconnectChatSession: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { salesforceServiceCloudReconnectChatSession };
|
|
9
22
|
//# 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":";;;cAIa,+CAAA,
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,gCAA0C,wBAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudReconnectChatSessionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudReconnectChatSessionInput: z.ZodObject<{
|
|
5
|
+
affinity: z.ZodString;
|
|
6
|
+
api_version: z.ZodOptional<z.ZodString>;
|
|
7
|
+
session_key: z.ZodString;
|
|
8
|
+
"X-LIVEAGENT-SEQUENCE": z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
11
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const salesforceServiceCloudReconnectChatSession: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { salesforceServiceCloudReconnectChatSession };
|
|
9
22
|
//# 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":";;;cAIa,+CAAA,
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,gCAA0C,wBAAA"}
|
|
@@ -11,7 +11,7 @@ const salesforceServiceCloudReconnectChatSession = action("SALESFORCE_SERVICE_CL
|
|
|
11
11
|
"X-LIVEAGENT-SEQUENCE": z.union([z.number().int(), z.string()]).optional()
|
|
12
12
|
}).describe("Request model for ReconnectChatSession.\nThe Live Agent ReconnectSession endpoint expects headers only and no body."),
|
|
13
13
|
output: z.object({
|
|
14
|
-
success: z.boolean().describe("True if reconnect was acknowledged as successful"),
|
|
14
|
+
success: z.boolean().describe("True if reconnect was acknowledged as successful").nullable(),
|
|
15
15
|
response_text: z.string().describe("Raw response body from Salesforce, often 'OK' on success").nullable().optional()
|
|
16
16
|
}).describe("Response model for ReconnectChatSession.\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.")
|
|
17
17
|
});
|
|
@@ -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
|
|
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}).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":";;AAeA,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6D,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,qHAUH;CACP,QAV8D,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,SAAS,0JAOF;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const SalesforceServiceCloudResyncChasitorStateInput = zod.z.object({
|
|
|
8
8
|
organization_id: zod.z.string().describe("Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).").optional(),
|
|
9
9
|
"X-LIVEAGENT-SEQUENCE": zod.z.union([zod.z.number().int(), zod.z.string()]).optional()
|
|
10
10
|
}).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.");
|
|
11
|
-
const SalesforceServiceCloudResyncChasitorStateOutput = zod.z.object({ success: zod.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.") }).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.");
|
|
11
|
+
const SalesforceServiceCloudResyncChasitorStateOutput = zod.z.object({ success: zod.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() }).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.");
|
|
12
12
|
const salesforceServiceCloudResyncChasitorState = require_action.action("SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE", {
|
|
13
13
|
slug: "salesforce_service_cloud-resync-chasitor-state",
|
|
14
14
|
name: "Resync Chasitor State",
|
|
@@ -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
|
|
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}).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":";;;AAIA,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,SAAS,0KAA0K;AAEtL,MAAa,4CAA4CC,eAAAA,OAAO,kDAAkD;CAChH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/resync-chasitor-state.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudResyncChasitorStateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudResyncChasitorStateInput: z.ZodObject<{
|
|
5
|
+
api_version: z.ZodOptional<z.ZodString>;
|
|
6
|
+
session_key: z.ZodString;
|
|
7
|
+
affinity_token: z.ZodString;
|
|
8
|
+
organization_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
"X-LIVEAGENT-SEQUENCE": z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodObject<{
|
|
12
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const salesforceServiceCloudResyncChasitorState: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
session_key: string;
|
|
16
|
+
affinity_token: string;
|
|
17
|
+
api_version?: string | undefined;
|
|
18
|
+
organization_id?: string | undefined;
|
|
19
|
+
"X-LIVEAGENT-SEQUENCE"?: string | number | undefined;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { salesforceServiceCloudResyncChasitorState };
|
|
9
23
|
//# sourceMappingURL=resync-chasitor-state.d.cts.map
|