@keystrokehq/salesforce_service_cloud 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/chasitor-sneak-peek.cjs +26 -0
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -0
- package/dist/actions/chasitor-sneak-peek.d.cts +9 -0
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -0
- package/dist/actions/chasitor-sneak-peek.d.mts +9 -0
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -0
- package/dist/actions/chasitor-sneak-peek.mjs +23 -0
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -0
- package/dist/actions/composite-batch.cjs +38 -0
- package/dist/actions/composite-batch.cjs.map +1 -0
- package/dist/actions/composite-batch.d.cts +9 -0
- package/dist/actions/composite-batch.d.cts.map +1 -0
- package/dist/actions/composite-batch.d.mts +9 -0
- package/dist/actions/composite-batch.d.mts.map +1 -0
- package/dist/actions/composite-batch.mjs +37 -0
- package/dist/actions/composite-batch.mjs.map +1 -0
- package/dist/actions/composite-request.cjs +36 -0
- package/dist/actions/composite-request.cjs.map +1 -0
- package/dist/actions/composite-request.d.cts +9 -0
- package/dist/actions/composite-request.d.cts.map +1 -0
- package/dist/actions/composite-request.d.mts +9 -0
- package/dist/actions/composite-request.d.mts.map +1 -0
- package/dist/actions/composite-request.mjs +35 -0
- package/dist/actions/composite-request.mjs.map +1 -0
- package/dist/actions/composite-sobject-tree.cjs +35 -0
- package/dist/actions/composite-sobject-tree.cjs.map +1 -0
- package/dist/actions/composite-sobject-tree.d.cts +9 -0
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -0
- package/dist/actions/composite-sobject-tree.d.mts +9 -0
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -0
- package/dist/actions/composite-sobject-tree.mjs +34 -0
- package/dist/actions/composite-sobject-tree.mjs.map +1 -0
- package/dist/actions/create-case-record.cjs +33 -0
- package/dist/actions/create-case-record.cjs.map +1 -0
- package/dist/actions/create-case-record.d.cts +9 -0
- package/dist/actions/create-case-record.d.cts.map +1 -0
- package/dist/actions/create-case-record.d.mts +9 -0
- package/dist/actions/create-case-record.d.mts.map +1 -0
- package/dist/actions/create-case-record.mjs +32 -0
- package/dist/actions/create-case-record.mjs.map +1 -0
- package/dist/actions/delete-case-record.cjs +16 -0
- package/dist/actions/delete-case-record.cjs.map +1 -0
- package/dist/actions/delete-case-record.d.cts +9 -0
- package/dist/actions/delete-case-record.d.cts.map +1 -0
- package/dist/actions/delete-case-record.d.mts +9 -0
- package/dist/actions/delete-case-record.d.mts.map +1 -0
- package/dist/actions/delete-case-record.mjs +13 -0
- package/dist/actions/delete-case-record.mjs.map +1 -0
- package/dist/actions/describe-s-object.cjs +30 -0
- package/dist/actions/describe-s-object.cjs.map +1 -0
- package/dist/actions/describe-s-object.d.cts +9 -0
- package/dist/actions/describe-s-object.d.cts.map +1 -0
- package/dist/actions/describe-s-object.d.mts +9 -0
- package/dist/actions/describe-s-object.d.mts.map +1 -0
- package/dist/actions/describe-s-object.mjs +27 -0
- package/dist/actions/describe-s-object.mjs.map +1 -0
- package/dist/actions/generate-request-id.cjs +16 -0
- package/dist/actions/generate-request-id.cjs.map +1 -0
- package/dist/actions/generate-request-id.d.cts +9 -0
- package/dist/actions/generate-request-id.d.cts.map +1 -0
- package/dist/actions/generate-request-id.d.mts +9 -0
- package/dist/actions/generate-request-id.d.mts.map +1 -0
- package/dist/actions/generate-request-id.mjs +13 -0
- package/dist/actions/generate-request-id.mjs.map +1 -0
- package/dist/actions/generate-signed-jwt-assertion.cjs +23 -0
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -0
- package/dist/actions/generate-signed-jwt-assertion.d.cts +9 -0
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -0
- package/dist/actions/generate-signed-jwt-assertion.d.mts +9 -0
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -0
- package/dist/actions/generate-signed-jwt-assertion.mjs +20 -0
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -0
- package/dist/actions/get-case-record.cjs +44 -0
- package/dist/actions/get-case-record.cjs.map +1 -0
- package/dist/actions/get-case-record.d.cts +9 -0
- package/dist/actions/get-case-record.d.cts.map +1 -0
- package/dist/actions/get-case-record.d.mts +9 -0
- package/dist/actions/get-case-record.d.mts.map +1 -0
- package/dist/actions/get-case-record.mjs +43 -0
- package/dist/actions/get-case-record.mjs.map +1 -0
- package/dist/actions/get-chat-messages.cjs +28 -0
- package/dist/actions/get-chat-messages.cjs.map +1 -0
- package/dist/actions/get-chat-messages.d.cts +9 -0
- package/dist/actions/get-chat-messages.d.cts.map +1 -0
- package/dist/actions/get-chat-messages.d.mts +9 -0
- package/dist/actions/get-chat-messages.d.mts.map +1 -0
- package/dist/actions/get-chat-messages.mjs +27 -0
- package/dist/actions/get-chat-messages.mjs.map +1 -0
- package/dist/actions/get-live-agent-api-version.cjs +19 -0
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -0
- package/dist/actions/get-live-agent-api-version.d.cts +9 -0
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -0
- package/dist/actions/get-live-agent-api-version.d.mts +9 -0
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -0
- package/dist/actions/get-live-agent-api-version.mjs +16 -0
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -0
- package/dist/actions/index.cjs +45 -0
- package/dist/actions/index.d.cts +23 -0
- package/dist/actions/index.d.mts +23 -0
- package/dist/actions/index.mjs +23 -0
- package/dist/actions/list-einstein-bots.cjs +29 -0
- package/dist/actions/list-einstein-bots.cjs.map +1 -0
- package/dist/actions/list-einstein-bots.d.cts +9 -0
- package/dist/actions/list-einstein-bots.d.cts.map +1 -0
- package/dist/actions/list-einstein-bots.d.mts +9 -0
- package/dist/actions/list-einstein-bots.d.mts.map +1 -0
- package/dist/actions/list-einstein-bots.mjs +28 -0
- package/dist/actions/list-einstein-bots.mjs.map +1 -0
- package/dist/actions/query-all-soql.cjs +26 -0
- package/dist/actions/query-all-soql.cjs.map +1 -0
- package/dist/actions/query-all-soql.d.cts +9 -0
- package/dist/actions/query-all-soql.d.cts.map +1 -0
- package/dist/actions/query-all-soql.d.mts +9 -0
- package/dist/actions/query-all-soql.d.mts.map +1 -0
- package/dist/actions/query-all-soql.mjs +25 -0
- package/dist/actions/query-all-soql.mjs.map +1 -0
- package/dist/actions/query-soql.cjs +21 -0
- package/dist/actions/query-soql.cjs.map +1 -0
- package/dist/actions/query-soql.d.cts +9 -0
- package/dist/actions/query-soql.d.cts.map +1 -0
- package/dist/actions/query-soql.d.mts +9 -0
- package/dist/actions/query-soql.d.mts.map +1 -0
- package/dist/actions/query-soql.mjs +18 -0
- package/dist/actions/query-soql.mjs.map +1 -0
- package/dist/actions/reconnect-chat-session.cjs +24 -0
- package/dist/actions/reconnect-chat-session.cjs.map +1 -0
- package/dist/actions/reconnect-chat-session.d.cts +9 -0
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -0
- package/dist/actions/reconnect-chat-session.d.mts +9 -0
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -0
- package/dist/actions/reconnect-chat-session.mjs +21 -0
- package/dist/actions/reconnect-chat-session.mjs.map +1 -0
- package/dist/actions/resync-chasitor-state.cjs +22 -0
- package/dist/actions/resync-chasitor-state.cjs.map +1 -0
- package/dist/actions/resync-chasitor-state.d.cts +9 -0
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -0
- package/dist/actions/resync-chasitor-state.d.mts +9 -0
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -0
- package/dist/actions/resync-chasitor-state.mjs +19 -0
- package/dist/actions/resync-chasitor-state.mjs.map +1 -0
- package/dist/actions/retrieve-salesforce-username.cjs +16 -0
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -0
- package/dist/actions/retrieve-salesforce-username.d.cts +9 -0
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -0
- package/dist/actions/retrieve-salesforce-username.d.mts +9 -0
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -0
- package/dist/actions/retrieve-salesforce-username.mjs +13 -0
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -0
- package/dist/actions/send-custom-event.cjs +23 -0
- package/dist/actions/send-custom-event.cjs.map +1 -0
- package/dist/actions/send-custom-event.d.cts +9 -0
- package/dist/actions/send-custom-event.d.cts.map +1 -0
- package/dist/actions/send-custom-event.d.mts +9 -0
- package/dist/actions/send-custom-event.d.mts.map +1 -0
- package/dist/actions/send-custom-event.mjs +20 -0
- package/dist/actions/send-custom-event.mjs.map +1 -0
- package/dist/actions/set-breadcrumb.cjs +22 -0
- package/dist/actions/set-breadcrumb.cjs.map +1 -0
- package/dist/actions/set-breadcrumb.d.cts +9 -0
- package/dist/actions/set-breadcrumb.d.cts.map +1 -0
- package/dist/actions/set-breadcrumb.d.mts +9 -0
- package/dist/actions/set-breadcrumb.d.mts.map +1 -0
- package/dist/actions/set-breadcrumb.mjs +19 -0
- package/dist/actions/set-breadcrumb.mjs.map +1 -0
- package/dist/actions/upload-file-to-s3.cjs +25 -0
- package/dist/actions/upload-file-to-s3.cjs.map +1 -0
- package/dist/actions/upload-file-to-s3.d.cts +9 -0
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -0
- package/dist/actions/upload-file-to-s3.d.mts +9 -0
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -0
- package/dist/actions/upload-file-to-s3.mjs +22 -0
- package/dist/actions/upload-file-to-s3.mjs.map +1 -0
- package/dist/actions/visitor-sensitive-data-rule.cjs +25 -0
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -0
- package/dist/actions/visitor-sensitive-data-rule.d.cts +9 -0
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -0
- package/dist/actions/visitor-sensitive-data-rule.d.mts +9 -0
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -0
- package/dist/actions/visitor-sensitive-data-rule.mjs +22 -0
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +50 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.mts +25 -0
- package/dist/index.mjs +26 -0
- package/package.json +49 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-case-record.ts
|
|
4
|
+
const SalesforceServiceCloudGetCaseRecordInput = z.object({
|
|
5
|
+
fields: z.string().describe("Comma-separated list of Case field API names to retrieve. If omitted, returns all accessible fields.").optional(),
|
|
6
|
+
case_id: z.string().describe("ID of the Case record to retrieve (15- or 18-character Salesforce ID)")
|
|
7
|
+
}).describe("Request model for GetCaseRecord.");
|
|
8
|
+
const SalesforceServiceCloudGetCaseRecord_CaseAttributesSchema = z.object({
|
|
9
|
+
url: z.string().describe("URL to retrieve this Case instance"),
|
|
10
|
+
type: z.string().describe("SObject type, e.g., 'Case'")
|
|
11
|
+
}).describe("Metadata for Salesforce sObject returned in the response.");
|
|
12
|
+
const salesforceServiceCloudGetCaseRecord = action("SALESFORCE_SERVICE_CLOUD_GET_CASE_RECORD", {
|
|
13
|
+
slug: "salesforce_service_cloud-get-case-record",
|
|
14
|
+
name: "Get Case Record",
|
|
15
|
+
description: "Retrieve a Salesforce Case record by its ID. Returns Case details including status, priority, subject, description, owner, and timestamps. Useful for: - Looking up Case details by ID - Checking Case status and priority - Getting customer issue information - Retrieving Case metadata and relationships Requires a valid 15 or 18-character Salesforce Case ID. Optionally specify which fields to retrieve using the fields parameter; otherwise all accessible fields are returned.",
|
|
16
|
+
input: SalesforceServiceCloudGetCaseRecordInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
Id: z.string().describe("Unique 18-character Salesforce ID of the Case record").nullable().optional(),
|
|
19
|
+
Type: z.string().describe("Type or category of the Case (e.g., Problem, Feature Request, Question)").nullable().optional(),
|
|
20
|
+
Origin: z.string().describe("Source channel of the Case (e.g., Phone, Email, Web, Chat)").nullable().optional(),
|
|
21
|
+
Reason: z.string().describe("Reason or subcategory for the Case").nullable().optional(),
|
|
22
|
+
Status: z.string().describe("Current status of the Case (e.g., New, Working, Escalated, Closed)").nullable().optional(),
|
|
23
|
+
OwnerId: z.string().describe("ID of the User or Queue that owns this Case").nullable().optional(),
|
|
24
|
+
Subject: z.string().describe("Brief description or title of the Case").nullable().optional(),
|
|
25
|
+
IsClosed: z.boolean().describe("Whether the Case is currently closed").nullable().optional(),
|
|
26
|
+
Priority: z.string().describe("Priority level of the Case (e.g., Low, Medium, High, Critical)").nullable().optional(),
|
|
27
|
+
AccountId: z.string().describe("ID of the related Account if Case is associated with one").nullable().optional(),
|
|
28
|
+
ContactId: z.string().describe("ID of the related Contact if Case is associated with one").nullable().optional(),
|
|
29
|
+
IsDeleted: z.boolean().describe("Whether the Case has been deleted (soft delete)").nullable().optional(),
|
|
30
|
+
CaseNumber: z.string().describe("Auto-generated Case number (e.g., 00001234)").nullable().optional(),
|
|
31
|
+
ClosedDate: z.string().describe("ISO 8601 timestamp when the Case was closed").nullable().optional(),
|
|
32
|
+
attributes: SalesforceServiceCloudGetCaseRecord_CaseAttributesSchema.nullable(),
|
|
33
|
+
CreatedById: z.string().describe("ID of the User who created the Case").nullable().optional(),
|
|
34
|
+
CreatedDate: z.string().describe("ISO 8601 timestamp when the Case was created").nullable().optional(),
|
|
35
|
+
Description: z.string().describe("Detailed description of the customer issue or problem").nullable().optional(),
|
|
36
|
+
LastModifiedById: z.string().describe("ID of the User who last modified the Case").nullable().optional(),
|
|
37
|
+
LastModifiedDate: z.string().describe("ISO 8601 timestamp when the Case was last modified").nullable().optional()
|
|
38
|
+
}).passthrough().describe("Response model for GetCaseRecord. Contains sObject metadata and all Case fields.\n\nCommon Case fields include: Id, CaseNumber, Subject, Description, Status, Priority,\nOrigin, Type, Reason, AccountId, ContactId, OwnerId, CreatedDate, LastModifiedDate,\nIsClosed, IsDeleted, etc. The actual fields returned depend on what's requested via\nthe fields parameter and what's accessible based on permissions.")
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { salesforceServiceCloudGetCaseRecord };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=get-case-record.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-case-record.mjs","names":[],"sources":["../../src/actions/get-case-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetCaseRecordInput: z.ZodTypeAny = z.object({\n fields: z.string().describe(\"Comma-separated list of Case field API names to retrieve. If omitted, returns all accessible fields.\").optional(),\n case_id: z.string().describe(\"ID of the Case record to retrieve (15- or 18-character Salesforce ID)\"),\n}).describe(\"Request model for GetCaseRecord.\");\nconst SalesforceServiceCloudGetCaseRecord_CaseAttributesSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to retrieve this Case instance\"),\n type: z.string().describe(\"SObject type, e.g., 'Case'\"),\n}).describe(\"Metadata for Salesforce sObject returned in the response.\");\nexport const SalesforceServiceCloudGetCaseRecordOutput: z.ZodTypeAny = z.object({\n Id: z.string().describe(\"Unique 18-character Salesforce ID of the Case record\").nullable().optional(),\n Type: z.string().describe(\"Type or category of the Case (e.g., Problem, Feature Request, Question)\").nullable().optional(),\n Origin: z.string().describe(\"Source channel of the Case (e.g., Phone, Email, Web, Chat)\").nullable().optional(),\n Reason: z.string().describe(\"Reason or subcategory for the Case\").nullable().optional(),\n Status: z.string().describe(\"Current status of the Case (e.g., New, Working, Escalated, Closed)\").nullable().optional(),\n OwnerId: z.string().describe(\"ID of the User or Queue that owns this Case\").nullable().optional(),\n Subject: z.string().describe(\"Brief description or title of the Case\").nullable().optional(),\n IsClosed: z.boolean().describe(\"Whether the Case is currently closed\").nullable().optional(),\n Priority: z.string().describe(\"Priority level of the Case (e.g., Low, Medium, High, Critical)\").nullable().optional(),\n AccountId: z.string().describe(\"ID of the related Account if Case is associated with one\").nullable().optional(),\n ContactId: z.string().describe(\"ID of the related Contact if Case is associated with one\").nullable().optional(),\n IsDeleted: z.boolean().describe(\"Whether the Case has been deleted (soft delete)\").nullable().optional(),\n CaseNumber: z.string().describe(\"Auto-generated Case number (e.g., 00001234)\").nullable().optional(),\n ClosedDate: z.string().describe(\"ISO 8601 timestamp when the Case was closed\").nullable().optional(),\n attributes: SalesforceServiceCloudGetCaseRecord_CaseAttributesSchema.nullable(),\n CreatedById: z.string().describe(\"ID of the User who created the Case\").nullable().optional(),\n CreatedDate: z.string().describe(\"ISO 8601 timestamp when the Case was created\").nullable().optional(),\n Description: z.string().describe(\"Detailed description of the customer issue or problem\").nullable().optional(),\n LastModifiedById: z.string().describe(\"ID of the User who last modified the Case\").nullable().optional(),\n LastModifiedDate: z.string().describe(\"ISO 8601 timestamp when the Case was last modified\").nullable().optional(),\n}).passthrough().describe(\"Response model for GetCaseRecord. Contains sObject metadata and all Case fields.\\n\\nCommon Case fields include: Id, CaseNumber, Subject, Description, Status, Priority,\\nOrigin, Type, Reason, AccountId, ContactId, OwnerId, CreatedDate, LastModifiedDate,\\nIsClosed, IsDeleted, etc. The actual fields returned depend on what's requested via\\nthe fields parameter and what's accessible based on permissions.\");\n\nexport const salesforceServiceCloudGetCaseRecord = action(\"SALESFORCE_SERVICE_CLOUD_GET_CASE_RECORD\", {\n slug: \"salesforce_service_cloud-get-case-record\",\n name: \"Get Case Record\",\n description: \"Retrieve a Salesforce Case record by its ID. Returns Case details including status, priority, subject, description, owner, and timestamps. Useful for: - Looking up Case details by ID - Checking Case status and priority - Getting customer issue information - Retrieving Case metadata and relationships Requires a valid 15 or 18-character Salesforce Case ID. Optionally specify which fields to retrieve using the fields parameter; otherwise all accessible fields are returned.\",\n input: SalesforceServiceCloudGetCaseRecordInput,\n output: SalesforceServiceCloudGetCaseRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AACtG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,2DAAyE,EAAE,OAAO;CACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACxD,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAwBvE,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QA5BqE,EAAE,OAAO;EAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,YAAY,yDAAyD,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qZAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-chat-messages.ts
|
|
4
|
+
const SalesforceServiceCloudGetChatMessagesInput = zod.z.object({
|
|
5
|
+
ack: zod.z.number().int().default(-1).describe("Sequencing token for polling; use -1 for the first request").optional(),
|
|
6
|
+
affinity: zod.z.string().describe("Affinity token identifying the session on Chat servers"),
|
|
7
|
+
api_version: zod.z.string().describe("Salesforce API version for the request, e.g., '61.0'"),
|
|
8
|
+
session_key: zod.z.string().describe("Unique Chat session key")
|
|
9
|
+
}).describe("Request model for GetChatMessages.");
|
|
10
|
+
const SalesforceServiceCloudGetChatMessages_ChatMessageSchema = zod.z.object({
|
|
11
|
+
type: zod.z.string().describe("The message/event type (e.g., ChatMessage)"),
|
|
12
|
+
message: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Payload for the specific message/event type")
|
|
13
|
+
}).describe("Individual chat event/message item.");
|
|
14
|
+
const SalesforceServiceCloudGetChatMessagesOutput = zod.z.object({
|
|
15
|
+
messages: zod.z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe("Array of chat events/messages for the session"),
|
|
16
|
+
sequence: zod.z.number().int().describe("Server-assigned sequence number for ordering; returned when new messages are available").nullable().optional()
|
|
17
|
+
}).describe("Response model for GetChatMessages.");
|
|
18
|
+
const salesforceServiceCloudGetChatMessages = require_action.action("SALESFORCE_SERVICE_CLOUD_GET_CHAT_MESSAGES", {
|
|
19
|
+
slug: "salesforce_service_cloud-get-chat-messages",
|
|
20
|
+
name: "Get Chat Messages",
|
|
21
|
+
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.",
|
|
22
|
+
input: SalesforceServiceCloudGetChatMessagesInput,
|
|
23
|
+
output: SalesforceServiceCloudGetChatMessagesOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.salesforceServiceCloudGetChatMessages = salesforceServiceCloudGetChatMessages;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-chat-messages.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-chat-messages.cjs","names":["z","action"],"sources":["../../src/actions/get-chat-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetChatMessagesInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\"),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,UAAUA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,+CAA+C;CACnI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-chat-messages.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudGetChatMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudGetChatMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudGetChatMessages };
|
|
9
|
+
//# sourceMappingURL=get-chat-messages.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.cts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAKV;AAAA,cAKpC,2CAAA,EAA6C,CAAA,CAAE,UAGV;AAAA,cAErC,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-chat-messages.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudGetChatMessagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudGetChatMessages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudGetChatMessages };
|
|
9
|
+
//# sourceMappingURL=get-chat-messages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.mts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAKV;AAAA,cAKpC,2CAAA,EAA6C,CAAA,CAAE,UAGV;AAAA,cAErC,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-chat-messages.ts
|
|
4
|
+
const SalesforceServiceCloudGetChatMessagesInput = z.object({
|
|
5
|
+
ack: z.number().int().default(-1).describe("Sequencing token for polling; use -1 for the first request").optional(),
|
|
6
|
+
affinity: z.string().describe("Affinity token identifying the session on Chat servers"),
|
|
7
|
+
api_version: z.string().describe("Salesforce API version for the request, e.g., '61.0'"),
|
|
8
|
+
session_key: z.string().describe("Unique Chat session key")
|
|
9
|
+
}).describe("Request model for GetChatMessages.");
|
|
10
|
+
const SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({
|
|
11
|
+
type: z.string().describe("The message/event type (e.g., ChatMessage)"),
|
|
12
|
+
message: z.record(z.string(), z.unknown()).describe("Payload for the specific message/event type")
|
|
13
|
+
}).describe("Individual chat event/message item.");
|
|
14
|
+
const salesforceServiceCloudGetChatMessages = action("SALESFORCE_SERVICE_CLOUD_GET_CHAT_MESSAGES", {
|
|
15
|
+
slug: "salesforce_service_cloud-get-chat-messages",
|
|
16
|
+
name: "Get Chat Messages",
|
|
17
|
+
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.",
|
|
18
|
+
input: SalesforceServiceCloudGetChatMessagesInput,
|
|
19
|
+
output: z.object({
|
|
20
|
+
messages: z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe("Array of chat events/messages for the session"),
|
|
21
|
+
sequence: z.number().int().describe("Server-assigned sequence number for ordering; returned when new messages are available").nullable().optional()
|
|
22
|
+
}).describe("Response model for GetChatMessages.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { salesforceServiceCloudGetChatMessages };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=get-chat-messages.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\"),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput: z.ZodTypeAny = 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}).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":";;;AAIA,MAAa,6CAA2D,EAAE,OAAO;CAC/E,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,0DAAwE,EAAE,OAAO;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAMjD,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuE,EAAE,OAAO;EAChF,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,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-live-agent-api-version.ts
|
|
4
|
+
const SalesforceServiceCloudGetLiveAgentApiVersionInput = zod.z.object({}).describe("Request model for retrieving the current Live Agent API version.");
|
|
5
|
+
const SalesforceServiceCloudGetLiveAgentApiVersionOutput = zod.z.object({
|
|
6
|
+
url: zod.z.string().describe("Root URI for the latest API version (use this as base for versioned calls)."),
|
|
7
|
+
version: zod.z.string().describe("The latest supported Live Agent API version identifier (e.g., '61.0').")
|
|
8
|
+
}).describe("Response model for the current Live Agent API version.");
|
|
9
|
+
const salesforceServiceCloudGetLiveAgentApiVersion = require_action.action("SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION", {
|
|
10
|
+
slug: "salesforce_service_cloud-get-live-agent-api-version",
|
|
11
|
+
name: "Get Live Agent API Version",
|
|
12
|
+
description: "Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.",
|
|
13
|
+
input: SalesforceServiceCloudGetLiveAgentApiVersionInput,
|
|
14
|
+
output: SalesforceServiceCloudGetLiveAgentApiVersionOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.salesforceServiceCloudGetLiveAgentApiVersion = salesforceServiceCloudGetLiveAgentApiVersion;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-live-agent-api-version.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\"),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\"),\n}).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":";;;AAIA,MAAa,oDAAkEA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AACvK,MAAa,qDAAmEA,IAAAA,EAAE,OAAO;CACvF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AACvG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,+CAA+CC,eAAAA,OAAO,uDAAuD;CACxH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-live-agent-api-version.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
9
|
+
//# sourceMappingURL=get-live-agent-api-version.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.cts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,EAAmD,CAAA,CAAE,UAAsG;AAAA,cAC3J,kDAAA,EAAoD,CAAA,CAAE,UAGE;AAAA,cAExD,4CAAA,gCAA4C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-live-agent-api-version.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
9
|
+
//# sourceMappingURL=get-live-agent-api-version.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.mts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,EAAmD,CAAA,CAAE,UAAsG;AAAA,cAC3J,kDAAA,EAAoD,CAAA,CAAE,UAGE;AAAA,cAExD,4CAAA,gCAA4C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const salesforceServiceCloudGetLiveAgentApiVersion = action("SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION", {
|
|
4
|
+
slug: "salesforce_service_cloud-get-live-agent-api-version",
|
|
5
|
+
name: "Get Live Agent API Version",
|
|
6
|
+
description: "Tool to retrieve current Live Agent API version. Use when initializing chat sessions to ensure subsequent calls target the correct REST API version.",
|
|
7
|
+
input: z.object({}).describe("Request model for retrieving the current Live Agent API version."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
url: z.string().describe("Root URI for the latest API version (use this as base for versioned calls)."),
|
|
10
|
+
version: z.string().describe("The latest supported Live Agent API version identifier (e.g., '61.0').")
|
|
11
|
+
}).describe("Response model for the current Live Agent API version.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-live-agent-api-version.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\"),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\"),\n}).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":";;AAUA,MAAa,+CAA+C,OAAO,uDAAuD;CACxH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV6E,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAU5F;CACP,QAV8E,EAAE,OAAO;EACvF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EACtG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACvG,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chasitor_sneak_peek = require("./chasitor-sneak-peek.cjs");
|
|
3
|
+
const require_composite_batch = require("./composite-batch.cjs");
|
|
4
|
+
const require_composite_request = require("./composite-request.cjs");
|
|
5
|
+
const require_composite_sobject_tree = require("./composite-sobject-tree.cjs");
|
|
6
|
+
const require_create_case_record = require("./create-case-record.cjs");
|
|
7
|
+
const require_delete_case_record = require("./delete-case-record.cjs");
|
|
8
|
+
const require_describe_s_object = require("./describe-s-object.cjs");
|
|
9
|
+
const require_generate_request_id = require("./generate-request-id.cjs");
|
|
10
|
+
const require_generate_signed_jwt_assertion = require("./generate-signed-jwt-assertion.cjs");
|
|
11
|
+
const require_get_case_record = require("./get-case-record.cjs");
|
|
12
|
+
const require_get_chat_messages = require("./get-chat-messages.cjs");
|
|
13
|
+
const require_get_live_agent_api_version = require("./get-live-agent-api-version.cjs");
|
|
14
|
+
const require_list_einstein_bots = require("./list-einstein-bots.cjs");
|
|
15
|
+
const require_query_all_soql = require("./query-all-soql.cjs");
|
|
16
|
+
const require_query_soql = require("./query-soql.cjs");
|
|
17
|
+
const require_reconnect_chat_session = require("./reconnect-chat-session.cjs");
|
|
18
|
+
const require_resync_chasitor_state = require("./resync-chasitor-state.cjs");
|
|
19
|
+
const require_retrieve_salesforce_username = require("./retrieve-salesforce-username.cjs");
|
|
20
|
+
const require_send_custom_event = require("./send-custom-event.cjs");
|
|
21
|
+
const require_set_breadcrumb = require("./set-breadcrumb.cjs");
|
|
22
|
+
const require_upload_file_to_s3 = require("./upload-file-to-s3.cjs");
|
|
23
|
+
const require_visitor_sensitive_data_rule = require("./visitor-sensitive-data-rule.cjs");
|
|
24
|
+
exports.salesforceServiceCloudChasitorSneakPeek = require_chasitor_sneak_peek.salesforceServiceCloudChasitorSneakPeek;
|
|
25
|
+
exports.salesforceServiceCloudCompositeBatch = require_composite_batch.salesforceServiceCloudCompositeBatch;
|
|
26
|
+
exports.salesforceServiceCloudCompositeRequest = require_composite_request.salesforceServiceCloudCompositeRequest;
|
|
27
|
+
exports.salesforceServiceCloudCompositeSobjectTree = require_composite_sobject_tree.salesforceServiceCloudCompositeSobjectTree;
|
|
28
|
+
exports.salesforceServiceCloudCreateCaseRecord = require_create_case_record.salesforceServiceCloudCreateCaseRecord;
|
|
29
|
+
exports.salesforceServiceCloudDeleteCaseRecord = require_delete_case_record.salesforceServiceCloudDeleteCaseRecord;
|
|
30
|
+
exports.salesforceServiceCloudDescribeSObject = require_describe_s_object.salesforceServiceCloudDescribeSObject;
|
|
31
|
+
exports.salesforceServiceCloudGenerateRequestId = require_generate_request_id.salesforceServiceCloudGenerateRequestId;
|
|
32
|
+
exports.salesforceServiceCloudGenerateSignedJwtAssertion = require_generate_signed_jwt_assertion.salesforceServiceCloudGenerateSignedJwtAssertion;
|
|
33
|
+
exports.salesforceServiceCloudGetCaseRecord = require_get_case_record.salesforceServiceCloudGetCaseRecord;
|
|
34
|
+
exports.salesforceServiceCloudGetChatMessages = require_get_chat_messages.salesforceServiceCloudGetChatMessages;
|
|
35
|
+
exports.salesforceServiceCloudGetLiveAgentApiVersion = require_get_live_agent_api_version.salesforceServiceCloudGetLiveAgentApiVersion;
|
|
36
|
+
exports.salesforceServiceCloudListEinsteinBots = require_list_einstein_bots.salesforceServiceCloudListEinsteinBots;
|
|
37
|
+
exports.salesforceServiceCloudQueryAllSoql = require_query_all_soql.salesforceServiceCloudQueryAllSoql;
|
|
38
|
+
exports.salesforceServiceCloudQuerySoql = require_query_soql.salesforceServiceCloudQuerySoql;
|
|
39
|
+
exports.salesforceServiceCloudReconnectChatSession = require_reconnect_chat_session.salesforceServiceCloudReconnectChatSession;
|
|
40
|
+
exports.salesforceServiceCloudResyncChasitorState = require_resync_chasitor_state.salesforceServiceCloudResyncChasitorState;
|
|
41
|
+
exports.salesforceServiceCloudRetrieveSalesforceUsername = require_retrieve_salesforce_username.salesforceServiceCloudRetrieveSalesforceUsername;
|
|
42
|
+
exports.salesforceServiceCloudSendCustomEvent = require_send_custom_event.salesforceServiceCloudSendCustomEvent;
|
|
43
|
+
exports.salesforceServiceCloudSetBreadcrumb = require_set_breadcrumb.salesforceServiceCloudSetBreadcrumb;
|
|
44
|
+
exports.salesforceServiceCloudUploadFileToS3 = require_upload_file_to_s3.salesforceServiceCloudUploadFileToS3;
|
|
45
|
+
exports.salesforceServiceCloudVisitorSensitiveDataRule = require_visitor_sensitive_data_rule.salesforceServiceCloudVisitorSensitiveDataRule;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { salesforceServiceCloudChasitorSneakPeek } from "./chasitor-sneak-peek.cjs";
|
|
2
|
+
import { salesforceServiceCloudCompositeBatch } from "./composite-batch.cjs";
|
|
3
|
+
import { salesforceServiceCloudCompositeRequest } from "./composite-request.cjs";
|
|
4
|
+
import { salesforceServiceCloudCompositeSobjectTree } from "./composite-sobject-tree.cjs";
|
|
5
|
+
import { salesforceServiceCloudCreateCaseRecord } from "./create-case-record.cjs";
|
|
6
|
+
import { salesforceServiceCloudDeleteCaseRecord } from "./delete-case-record.cjs";
|
|
7
|
+
import { salesforceServiceCloudDescribeSObject } from "./describe-s-object.cjs";
|
|
8
|
+
import { salesforceServiceCloudGenerateRequestId } from "./generate-request-id.cjs";
|
|
9
|
+
import { salesforceServiceCloudGenerateSignedJwtAssertion } from "./generate-signed-jwt-assertion.cjs";
|
|
10
|
+
import { salesforceServiceCloudGetCaseRecord } from "./get-case-record.cjs";
|
|
11
|
+
import { salesforceServiceCloudGetChatMessages } from "./get-chat-messages.cjs";
|
|
12
|
+
import { salesforceServiceCloudGetLiveAgentApiVersion } from "./get-live-agent-api-version.cjs";
|
|
13
|
+
import { salesforceServiceCloudListEinsteinBots } from "./list-einstein-bots.cjs";
|
|
14
|
+
import { salesforceServiceCloudQueryAllSoql } from "./query-all-soql.cjs";
|
|
15
|
+
import { salesforceServiceCloudQuerySoql } from "./query-soql.cjs";
|
|
16
|
+
import { salesforceServiceCloudReconnectChatSession } from "./reconnect-chat-session.cjs";
|
|
17
|
+
import { salesforceServiceCloudResyncChasitorState } from "./resync-chasitor-state.cjs";
|
|
18
|
+
import { salesforceServiceCloudRetrieveSalesforceUsername } from "./retrieve-salesforce-username.cjs";
|
|
19
|
+
import { salesforceServiceCloudSendCustomEvent } from "./send-custom-event.cjs";
|
|
20
|
+
import { salesforceServiceCloudSetBreadcrumb } from "./set-breadcrumb.cjs";
|
|
21
|
+
import { salesforceServiceCloudUploadFileToS3 } from "./upload-file-to-s3.cjs";
|
|
22
|
+
import { salesforceServiceCloudVisitorSensitiveDataRule } from "./visitor-sensitive-data-rule.cjs";
|
|
23
|
+
export { salesforceServiceCloudChasitorSneakPeek, salesforceServiceCloudCompositeBatch, salesforceServiceCloudCompositeRequest, salesforceServiceCloudCompositeSobjectTree, salesforceServiceCloudCreateCaseRecord, salesforceServiceCloudDeleteCaseRecord, salesforceServiceCloudDescribeSObject, salesforceServiceCloudGenerateRequestId, salesforceServiceCloudGenerateSignedJwtAssertion, salesforceServiceCloudGetCaseRecord, salesforceServiceCloudGetChatMessages, salesforceServiceCloudGetLiveAgentApiVersion, salesforceServiceCloudListEinsteinBots, salesforceServiceCloudQueryAllSoql, salesforceServiceCloudQuerySoql, salesforceServiceCloudReconnectChatSession, salesforceServiceCloudResyncChasitorState, salesforceServiceCloudRetrieveSalesforceUsername, salesforceServiceCloudSendCustomEvent, salesforceServiceCloudSetBreadcrumb, salesforceServiceCloudUploadFileToS3, salesforceServiceCloudVisitorSensitiveDataRule };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { salesforceServiceCloudChasitorSneakPeek } from "./chasitor-sneak-peek.mjs";
|
|
2
|
+
import { salesforceServiceCloudCompositeBatch } from "./composite-batch.mjs";
|
|
3
|
+
import { salesforceServiceCloudCompositeRequest } from "./composite-request.mjs";
|
|
4
|
+
import { salesforceServiceCloudCompositeSobjectTree } from "./composite-sobject-tree.mjs";
|
|
5
|
+
import { salesforceServiceCloudCreateCaseRecord } from "./create-case-record.mjs";
|
|
6
|
+
import { salesforceServiceCloudDeleteCaseRecord } from "./delete-case-record.mjs";
|
|
7
|
+
import { salesforceServiceCloudDescribeSObject } from "./describe-s-object.mjs";
|
|
8
|
+
import { salesforceServiceCloudGenerateRequestId } from "./generate-request-id.mjs";
|
|
9
|
+
import { salesforceServiceCloudGenerateSignedJwtAssertion } from "./generate-signed-jwt-assertion.mjs";
|
|
10
|
+
import { salesforceServiceCloudGetCaseRecord } from "./get-case-record.mjs";
|
|
11
|
+
import { salesforceServiceCloudGetChatMessages } from "./get-chat-messages.mjs";
|
|
12
|
+
import { salesforceServiceCloudGetLiveAgentApiVersion } from "./get-live-agent-api-version.mjs";
|
|
13
|
+
import { salesforceServiceCloudListEinsteinBots } from "./list-einstein-bots.mjs";
|
|
14
|
+
import { salesforceServiceCloudQueryAllSoql } from "./query-all-soql.mjs";
|
|
15
|
+
import { salesforceServiceCloudQuerySoql } from "./query-soql.mjs";
|
|
16
|
+
import { salesforceServiceCloudReconnectChatSession } from "./reconnect-chat-session.mjs";
|
|
17
|
+
import { salesforceServiceCloudResyncChasitorState } from "./resync-chasitor-state.mjs";
|
|
18
|
+
import { salesforceServiceCloudRetrieveSalesforceUsername } from "./retrieve-salesforce-username.mjs";
|
|
19
|
+
import { salesforceServiceCloudSendCustomEvent } from "./send-custom-event.mjs";
|
|
20
|
+
import { salesforceServiceCloudSetBreadcrumb } from "./set-breadcrumb.mjs";
|
|
21
|
+
import { salesforceServiceCloudUploadFileToS3 } from "./upload-file-to-s3.mjs";
|
|
22
|
+
import { salesforceServiceCloudVisitorSensitiveDataRule } from "./visitor-sensitive-data-rule.mjs";
|
|
23
|
+
export { salesforceServiceCloudChasitorSneakPeek, salesforceServiceCloudCompositeBatch, salesforceServiceCloudCompositeRequest, salesforceServiceCloudCompositeSobjectTree, salesforceServiceCloudCreateCaseRecord, salesforceServiceCloudDeleteCaseRecord, salesforceServiceCloudDescribeSObject, salesforceServiceCloudGenerateRequestId, salesforceServiceCloudGenerateSignedJwtAssertion, salesforceServiceCloudGetCaseRecord, salesforceServiceCloudGetChatMessages, salesforceServiceCloudGetLiveAgentApiVersion, salesforceServiceCloudListEinsteinBots, salesforceServiceCloudQueryAllSoql, salesforceServiceCloudQuerySoql, salesforceServiceCloudReconnectChatSession, salesforceServiceCloudResyncChasitorState, salesforceServiceCloudRetrieveSalesforceUsername, salesforceServiceCloudSendCustomEvent, salesforceServiceCloudSetBreadcrumb, salesforceServiceCloudUploadFileToS3, salesforceServiceCloudVisitorSensitiveDataRule };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { salesforceServiceCloudChasitorSneakPeek } from "./chasitor-sneak-peek.mjs";
|
|
2
|
+
import { salesforceServiceCloudCompositeBatch } from "./composite-batch.mjs";
|
|
3
|
+
import { salesforceServiceCloudCompositeRequest } from "./composite-request.mjs";
|
|
4
|
+
import { salesforceServiceCloudCompositeSobjectTree } from "./composite-sobject-tree.mjs";
|
|
5
|
+
import { salesforceServiceCloudCreateCaseRecord } from "./create-case-record.mjs";
|
|
6
|
+
import { salesforceServiceCloudDeleteCaseRecord } from "./delete-case-record.mjs";
|
|
7
|
+
import { salesforceServiceCloudDescribeSObject } from "./describe-s-object.mjs";
|
|
8
|
+
import { salesforceServiceCloudGenerateRequestId } from "./generate-request-id.mjs";
|
|
9
|
+
import { salesforceServiceCloudGenerateSignedJwtAssertion } from "./generate-signed-jwt-assertion.mjs";
|
|
10
|
+
import { salesforceServiceCloudGetCaseRecord } from "./get-case-record.mjs";
|
|
11
|
+
import { salesforceServiceCloudGetChatMessages } from "./get-chat-messages.mjs";
|
|
12
|
+
import { salesforceServiceCloudGetLiveAgentApiVersion } from "./get-live-agent-api-version.mjs";
|
|
13
|
+
import { salesforceServiceCloudListEinsteinBots } from "./list-einstein-bots.mjs";
|
|
14
|
+
import { salesforceServiceCloudQueryAllSoql } from "./query-all-soql.mjs";
|
|
15
|
+
import { salesforceServiceCloudQuerySoql } from "./query-soql.mjs";
|
|
16
|
+
import { salesforceServiceCloudReconnectChatSession } from "./reconnect-chat-session.mjs";
|
|
17
|
+
import { salesforceServiceCloudResyncChasitorState } from "./resync-chasitor-state.mjs";
|
|
18
|
+
import { salesforceServiceCloudRetrieveSalesforceUsername } from "./retrieve-salesforce-username.mjs";
|
|
19
|
+
import { salesforceServiceCloudSendCustomEvent } from "./send-custom-event.mjs";
|
|
20
|
+
import { salesforceServiceCloudSetBreadcrumb } from "./set-breadcrumb.mjs";
|
|
21
|
+
import { salesforceServiceCloudUploadFileToS3 } from "./upload-file-to-s3.mjs";
|
|
22
|
+
import { salesforceServiceCloudVisitorSensitiveDataRule } from "./visitor-sensitive-data-rule.mjs";
|
|
23
|
+
export { salesforceServiceCloudChasitorSneakPeek, salesforceServiceCloudCompositeBatch, salesforceServiceCloudCompositeRequest, salesforceServiceCloudCompositeSobjectTree, salesforceServiceCloudCreateCaseRecord, salesforceServiceCloudDeleteCaseRecord, salesforceServiceCloudDescribeSObject, salesforceServiceCloudGenerateRequestId, salesforceServiceCloudGenerateSignedJwtAssertion, salesforceServiceCloudGetCaseRecord, salesforceServiceCloudGetChatMessages, salesforceServiceCloudGetLiveAgentApiVersion, salesforceServiceCloudListEinsteinBots, salesforceServiceCloudQueryAllSoql, salesforceServiceCloudQuerySoql, salesforceServiceCloudReconnectChatSession, salesforceServiceCloudResyncChasitorState, salesforceServiceCloudRetrieveSalesforceUsername, salesforceServiceCloudSendCustomEvent, salesforceServiceCloudSetBreadcrumb, salesforceServiceCloudUploadFileToS3, salesforceServiceCloudVisitorSensitiveDataRule };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-einstein-bots.ts
|
|
4
|
+
const SalesforceServiceCloudListEinsteinBotsInput = zod.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
|
+
const SalesforceServiceCloudListEinsteinBots_BotInfoSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the Einstein Bot."),
|
|
7
|
+
label: zod.z.string().describe("Display label of the Einstein Bot."),
|
|
8
|
+
active: zod.z.boolean().describe("Whether the bot is currently active/enabled.").nullable().optional(),
|
|
9
|
+
developerName: zod.z.string().describe("API name of the Einstein Bot."),
|
|
10
|
+
defaultLanguage: zod.z.string().describe("Default language locale (e.g., en_US, fr_FR).").nullable().optional(),
|
|
11
|
+
lastModifiedDate: zod.z.string().describe("ISO 8601 timestamp of the last modification.").nullable().optional(),
|
|
12
|
+
publishedVersion: zod.z.number().int().describe("Published version number of the bot.").nullable().optional()
|
|
13
|
+
}).describe("Metadata for an Einstein Bot.");
|
|
14
|
+
const SalesforceServiceCloudListEinsteinBotsOutput = zod.z.object({
|
|
15
|
+
items: zod.z.array(SalesforceServiceCloudListEinsteinBots_BotInfoSchema).describe("List of Einstein Bot metadata objects. Each item contains bot ID, label, developer name, and language information."),
|
|
16
|
+
totalSize: zod.z.number().int().describe("Total number of Einstein Bots returned in this response."),
|
|
17
|
+
nextPageUrl: zod.z.string().describe("URL to fetch the next page of results. Currently always null as pagination is not implemented for this endpoint.").nullable().optional()
|
|
18
|
+
}).describe("Response model for listing Einstein Bots.\n\nContains a list of Einstein Bot definitions with their metadata.");
|
|
19
|
+
const salesforceServiceCloudListEinsteinBots = require_action.action("SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS", {
|
|
20
|
+
slug: "salesforce_service_cloud-list-einstein-bots",
|
|
21
|
+
name: "List Einstein Bots",
|
|
22
|
+
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.",
|
|
23
|
+
input: SalesforceServiceCloudListEinsteinBotsInput,
|
|
24
|
+
output: SalesforceServiceCloudListEinsteinBotsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.salesforceServiceCloudListEinsteinBots = salesforceServiceCloudListEinsteinBots;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=list-einstein-bots.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\"),\n label: z.string().describe(\"Display label of the Einstein Bot.\"),\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.\"),\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.ZodTypeAny = 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.\"),\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,8CAA4DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gNAAgN;AAC/S,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAClE,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,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,OAAOA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,oHAAoH;CAClM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC/F,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-einstein-bots.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudListEinsteinBotsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudListEinsteinBots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudListEinsteinBots };
|
|
9
|
+
//# sourceMappingURL=list-einstein-bots.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.cts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAAoP;AAAA,cAUnS,4CAAA,EAA8C,CAAA,CAAE,UAI+D;AAAA,cAE/G,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-einstein-bots.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudListEinsteinBotsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudListEinsteinBotsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudListEinsteinBots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudListEinsteinBots };
|
|
9
|
+
//# sourceMappingURL=list-einstein-bots.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-einstein-bots.d.mts","names":[],"sources":["../../src/actions/list-einstein-bots.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAAoP;AAAA,cAUnS,4CAAA,EAA8C,CAAA,CAAE,UAI+D;AAAA,cAE/G,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-einstein-bots.ts
|
|
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
|
+
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."),
|
|
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."),
|
|
10
|
+
defaultLanguage: z.string().describe("Default language locale (e.g., en_US, fr_FR).").nullable().optional(),
|
|
11
|
+
lastModifiedDate: z.string().describe("ISO 8601 timestamp of the last modification.").nullable().optional(),
|
|
12
|
+
publishedVersion: z.number().int().describe("Published version number of the bot.").nullable().optional()
|
|
13
|
+
}).describe("Metadata for an Einstein Bot.");
|
|
14
|
+
const salesforceServiceCloudListEinsteinBots = action("SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS", {
|
|
15
|
+
slug: "salesforce_service_cloud-list-einstein-bots",
|
|
16
|
+
name: "List Einstein Bots",
|
|
17
|
+
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.",
|
|
18
|
+
input: SalesforceServiceCloudListEinsteinBotsInput,
|
|
19
|
+
output: z.object({
|
|
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."),
|
|
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
|
+
}).describe("Response model for listing Einstein Bots.\n\nContains a list of Einstein Bot definitions with their metadata.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { salesforceServiceCloudListEinsteinBots };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=list-einstein-bots.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the Einstein Bot.\"),\n label: z.string().describe(\"Display label of the Einstein Bot.\"),\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.\"),\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.ZodTypeAny = 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.\"),\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,8CAA4D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gNAAgN;AAC/S,MAAM,uDAAqE,EAAE,OAAO;CAClF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAClE,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,QAXwE,EAAE,OAAO;EACjF,OAAO,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,oHAAoH;EAClM,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,SAAS,+GAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/query-all-soql.ts
|
|
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
|
+
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")
|
|
8
|
+
}).describe("Metadata about the SObject record.");
|
|
9
|
+
const SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = zod.z.object({ attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable() }).passthrough().describe("Individual record returned by the SOQL query.");
|
|
10
|
+
const SalesforceServiceCloudQueryAllSoqlOutput = zod.z.object({
|
|
11
|
+
done: zod.z.boolean().describe("True if all records have been returned in this batch"),
|
|
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"),
|
|
14
|
+
nextRecordsUrl: zod.z.string().describe("URL to retrieve the next batch of records if done is false").nullable().optional()
|
|
15
|
+
}).describe("Response model for QueryAllSoql.");
|
|
16
|
+
const salesforceServiceCloudQueryAllSoql = require_action.action("SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL", {
|
|
17
|
+
slug: "salesforce_service_cloud-query-all-soql",
|
|
18
|
+
name: "Query All SOQL",
|
|
19
|
+
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.",
|
|
20
|
+
input: SalesforceServiceCloudQueryAllSoqlInput,
|
|
21
|
+
output: SalesforceServiceCloudQueryAllSoqlOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.salesforceServiceCloudQueryAllSoql = salesforceServiceCloudQueryAllSoql;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=query-all-soql.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n url: z.string().describe(\"URL for the record resource\"),\n type: z.string().describe(\"SObject type of the record\"),\n}).describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema: z.ZodTypeAny = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodTypeAny = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\"),\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\"),\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,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACxD,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sDAAoEA,IAAAA,EAAE,OAAO,EACjF,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CACjF,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;CACxH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACnF,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/query-all-soql.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudQueryAllSoqlInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudQueryAllSoql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudQueryAllSoql };
|
|
9
|
+
//# sourceMappingURL=query-all-soql.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAE6D;AAAA,cAQxG,wCAAA,EAA0C,CAAA,CAAE,UAKV;AAAA,cAElC,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/query-all-soql.d.ts
|
|
4
|
+
declare const SalesforceServiceCloudQueryAllSoqlInput: z.ZodTypeAny;
|
|
5
|
+
declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const salesforceServiceCloudQueryAllSoql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesforceServiceCloudQueryAllSoql };
|
|
9
|
+
//# sourceMappingURL=query-all-soql.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAE6D;AAAA,cAQxG,wCAAA,EAA0C,CAAA,CAAE,UAKV;AAAA,cAElC,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/query-all-soql.ts
|
|
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
|
+
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")
|
|
8
|
+
}).describe("Metadata about the SObject record.");
|
|
9
|
+
const SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({ attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable() }).passthrough().describe("Individual record returned by the SOQL query.");
|
|
10
|
+
const salesforceServiceCloudQueryAllSoql = action("SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL", {
|
|
11
|
+
slug: "salesforce_service_cloud-query-all-soql",
|
|
12
|
+
name: "Query All SOQL",
|
|
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
|
+
input: SalesforceServiceCloudQueryAllSoqlInput,
|
|
15
|
+
output: z.object({
|
|
16
|
+
done: z.boolean().describe("True if all records have been returned in this batch"),
|
|
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"),
|
|
19
|
+
nextRecordsUrl: z.string().describe("URL to retrieve the next batch of records if done is false").nullable().optional()
|
|
20
|
+
}).describe("Response model for QueryAllSoql.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { salesforceServiceCloudQueryAllSoql };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=query-all-soql.mjs.map
|