@keystrokehq/salesforce_service_cloud 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs +1 -0
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +3 -20
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +3 -20
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs +1 -0
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +1 -0
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +4 -22
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +4 -22
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +1 -0
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +1 -0
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +3 -23
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +3 -23
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +1 -0
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +1 -0
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +3 -22
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +3 -22
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +1 -0
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +1 -0
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +3 -21
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +3 -21
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +1 -0
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs +1 -0
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +3 -15
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +3 -15
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs +1 -0
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +1 -0
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +3 -15
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +3 -15
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +1 -0
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -0
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +3 -13
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +3 -13
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -0
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +3 -20
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +3 -20
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -0
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +1 -0
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +3 -16
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +3 -16
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +1 -0
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +1 -0
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +3 -18
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +3 -18
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +1 -0
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +1 -0
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +3 -13
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +3 -13
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +1 -0
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +1 -0
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +3 -13
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +3 -13
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +1 -0
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +1 -0
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +3 -15
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +3 -15
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +1 -0
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +1 -0
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +3 -15
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +3 -15
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +1 -0
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -0
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +3 -18
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +3 -18
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +1 -0
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -0
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +3 -19
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +3 -19
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -0
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -0
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +3 -13
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +3 -13
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -0
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -0
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +3 -20
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +3 -20
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -0
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs +1 -0
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +3 -19
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +3 -19
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs +1 -0
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +1 -0
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +3 -19
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +3 -19
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +1 -0
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +3 -23
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +3 -23
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs +1 -0
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql: AppAction<\n typeof SalesforceServiceCloudQueryAllSoqlInput,\n typeof SalesforceServiceCloudQueryAllSoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;CACxH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,qCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-all-soql.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudQueryAllSoql:
|
|
19
|
-
q: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
accessToken: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const salesforceServiceCloudQueryAllSoql: AppAction<typeof SalesforceServiceCloudQueryAllSoqlInput, typeof SalesforceServiceCloudQueryAllSoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
35
23
|
//# sourceMappingURL=query-all-soql.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.cts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-all-soql.d.ts
|
|
@@ -15,21 +17,7 @@ declare const SalesforceServiceCloudQueryAllSoqlOutput: z.ZodObject<{
|
|
|
15
17
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
16
18
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const salesforceServiceCloudQueryAllSoql:
|
|
19
|
-
q: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
accessToken: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const salesforceServiceCloudQueryAllSoql: AppAction<typeof SalesforceServiceCloudQueryAllSoqlInput, typeof SalesforceServiceCloudQueryAllSoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { salesforceServiceCloudQueryAllSoql };
|
|
35
23
|
//# sourceMappingURL=query-all-soql.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.d.mts","names":[],"sources":["../../src/actions/query-all-soql.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-soql.mjs","names":[],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-soql.mjs","names":[],"sources":["../../src/actions/query-all-soql.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudQueryAllSoqlInput = z.object({\n q: z.string().describe(\"SOQL query string to execute, must end with 'ALL ROWS' to include deleted and archived records.\"),\n}).describe(\"Request model for QueryAllSoql. Use \\\"ALL ROWS\\\" in your SOQL to include deleted and archived records.\");\nconst SalesforceServiceCloudQueryAllSoql_AttributesSchema = z.object({\n url: z.string().describe(\"URL for the record resource\").nullable(),\n type: z.string().describe(\"SObject type of the record\").nullable(),\n}).passthrough().describe(\"Metadata about the SObject record.\");\nconst SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema = z.object({\n attributes: SalesforceServiceCloudQueryAllSoql_AttributesSchema.nullable(),\n}).passthrough().describe(\"Individual record returned by the SOQL query.\");\nexport const SalesforceServiceCloudQueryAllSoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned in this batch\").nullable(),\n records: z.array(SalesforceServiceCloudQueryAllSoql_SoqlRecordSchema).describe(\"List of returned records for this batch\"),\n totalSize: z.number().int().describe(\"Total number of records that match the query\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records if done is false\").nullable().optional(),\n}).passthrough().describe(\"Response model for QueryAllSoql.\");\n\nexport const salesforceServiceCloudQueryAllSoql: AppAction<\n typeof SalesforceServiceCloudQueryAllSoqlInput,\n typeof SalesforceServiceCloudQueryAllSoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_ALL_SOQL\", {\n slug: \"salesforce_service_cloud-query-all-soql\",\n name: \"Query All SOQL\",\n description: \"Tool to execute a SOQL query including deleted and archived records. Use when you need to fetch all rows including soft-deleted data in Salesforce.\",\n input: SalesforceServiceCloudQueryAllSoqlInput,\n output: SalesforceServiceCloudQueryAllSoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,EAC1H,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAM,sDAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAM,sDAAsD,EAAE,OAAO,EACnE,YAAY,oDAAoD,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAQzE,MAAa,qCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsD,EAAE,OAAO;EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC;EACxH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC9F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.cjs","names":["z","action"],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql: AppAction<\n typeof SalesforceServiceCloudQuerySoqlInput,\n typeof SalesforceServiceCloudQuerySoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACpH,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-soql.d.ts
|
|
@@ -10,21 +12,7 @@ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
|
10
12
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesforceServiceCloudQuerySoql:
|
|
14
|
-
soql_query: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
accessToken: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
accessToken: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const salesforceServiceCloudQuerySoql: AppAction<typeof SalesforceServiceCloudQuerySoqlInput, typeof SalesforceServiceCloudQuerySoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { salesforceServiceCloudQuerySoql };
|
|
30
18
|
//# sourceMappingURL=query-soql.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.d.cts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-soql.d.ts
|
|
@@ -10,21 +12,7 @@ declare const SalesforceServiceCloudQuerySoqlOutput: z.ZodObject<{
|
|
|
10
12
|
totalSize: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
nextRecordsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const salesforceServiceCloudQuerySoql:
|
|
14
|
-
soql_query: string;
|
|
15
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
16
|
-
connectionId: z.ZodString;
|
|
17
|
-
entityId: z.ZodString;
|
|
18
|
-
instanceId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
accessToken: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
accessToken: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const salesforceServiceCloudQuerySoql: AppAction<typeof SalesforceServiceCloudQuerySoqlInput, typeof SalesforceServiceCloudQuerySoqlOutput, typeof salesforceServiceCloud.credential>;
|
|
28
16
|
//#endregion
|
|
29
17
|
export { salesforceServiceCloudQuerySoql };
|
|
30
18
|
//# sourceMappingURL=query-soql.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.d.mts","names":[],"sources":["../../src/actions/query-soql.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;cAOrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-soql.mjs","names":[],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-soql.mjs","names":[],"sources":["../../src/actions/query-soql.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudQuerySoqlInput = z.object({\n soql_query: z.string().describe(\"SOQL query string to execute.\"),\n}).describe(\"Request model for executing a SOQL query.\");\nexport const SalesforceServiceCloudQuerySoqlOutput = z.object({\n done: z.boolean().describe(\"True if all records have been returned; false if more records are available.\").nullable(),\n records: z.array(z.record(z.string(), z.unknown())).describe(\"List of records returned in this batch.\"),\n totalSize: z.number().int().describe(\"Total number of records matched by the query.\").nullable(),\n nextRecordsUrl: z.string().describe(\"URL to retrieve the next batch of records when done is false.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a SOQL query result.\");\n\nexport const salesforceServiceCloudQuerySoql: AppAction<\n typeof SalesforceServiceCloudQuerySoqlInput,\n typeof SalesforceServiceCloudQuerySoqlOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_QUERY_SOQL\", {\n slug: \"salesforce_service_cloud-query-soql\",\n name: \"Query SOQL\",\n description: \"Tool to execute a SOQL query. Use when you need to retrieve records from Salesforce via SOQL.\",\n input: SalesforceServiceCloudQuerySoqlInput,\n output: SalesforceServiceCloudQuerySoqlOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBkD,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EACjE,CAAC,CAAC,CAAC,SAAS,2CAgBH;CACP,QAhBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACpH,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.cjs","names":["z","action"],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.cjs","names":["z","action"],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession: AppAction<\n typeof SalesforceServiceCloudReconnectChatSessionInput,\n typeof SalesforceServiceCloudReconnectChatSessionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;CACrN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CAC5K,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qHAAqH;AACjI,MAAa,mDAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAA0J;AAEpL,MAAa,6CAITC,eAAAA,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
@@ -11,24 +13,7 @@ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudReconnectChatSession:
|
|
15
|
-
affinity: string;
|
|
16
|
-
session_key: string;
|
|
17
|
-
api_version?: string | undefined;
|
|
18
|
-
"X-LIVEAGENT-SEQUENCE"?: string | number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
accessToken: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
accessToken: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const salesforceServiceCloudReconnectChatSession: AppAction<typeof SalesforceServiceCloudReconnectChatSessionInput, typeof SalesforceServiceCloudReconnectChatSessionOutput, typeof salesforceServiceCloud.credential>;
|
|
32
17
|
//#endregion
|
|
33
18
|
export { salesforceServiceCloudReconnectChatSession };
|
|
34
19
|
//# sourceMappingURL=reconnect-chat-session.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.cts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/reconnect-chat-session.d.ts
|
|
@@ -11,24 +13,7 @@ declare const SalesforceServiceCloudReconnectChatSessionOutput: z.ZodObject<{
|
|
|
11
13
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
12
14
|
response_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudReconnectChatSession:
|
|
15
|
-
affinity: string;
|
|
16
|
-
session_key: string;
|
|
17
|
-
api_version?: string | undefined;
|
|
18
|
-
"X-LIVEAGENT-SEQUENCE"?: string | number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
accessToken: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
accessToken: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const salesforceServiceCloudReconnectChatSession: AppAction<typeof SalesforceServiceCloudReconnectChatSessionInput, typeof SalesforceServiceCloudReconnectChatSessionOutput, typeof salesforceServiceCloud.credential>;
|
|
32
17
|
//#endregion
|
|
33
18
|
export { salesforceServiceCloudReconnectChatSession };
|
|
34
19
|
//# sourceMappingURL=reconnect-chat-session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.d.mts","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAM/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;cAKhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconnect-chat-session.mjs","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconnect-chat-session.mjs","names":[],"sources":["../../src/actions/reconnect-chat-session.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudReconnectChatSessionInput = z.object({\n affinity: z.string().describe(\"Affinity token from the chat session that identifies the server instance. Obtained from the initial chat session creation or SessionId response. Sent in X-LIVEAGENT-AFFINITY header.\"),\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically derived from base_url.\").optional(),\n session_key: z.string().describe(\"Unique session key identifying the chat session. Obtained from the initial chat session creation. Sent in X-LIVEAGENT-SESSION-KEY header.\"),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for ReconnectChatSession.\\nThe Live Agent ReconnectSession endpoint expects headers only and no body.\");\nexport const SalesforceServiceCloudReconnectChatSessionOutput = z.object({\n success: z.boolean().describe(\"True if reconnect was acknowledged as successful\").nullable(),\n response_text: z.string().describe(\"Raw response body from Salesforce, often 'OK' on success\").nullable().optional(),\n}).passthrough().describe(\"Response model for ReconnectChatSession.\\nThe success response body is typically plain text 'OK'. We return success flag and response text if available.\");\n\nexport const salesforceServiceCloudReconnectChatSession: AppAction<\n typeof SalesforceServiceCloudReconnectChatSessionInput,\n typeof SalesforceServiceCloudReconnectChatSessionOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RECONNECT_CHAT_SESSION\", {\n slug: \"salesforce_service_cloud-reconnect-chat-session\",\n name: \"Reconnect Chat Session\",\n description: \"Tool to reconnect a Live Agent chat session after the affinity token changes. Use this when you receive a 503 (Service Unavailable) response during chat operations, indicating the affinity token has changed and the session needs to be reestablished on a new server. After reconnecting, you must call ResyncChasitorState to restore the visitor's chat context. Note: Requires valid session_key and affinity tokens from an active Live Agent chat session.\",\n input: SalesforceServiceCloudReconnectChatSessionInput,\n output: SalesforceServiceCloudReconnectChatSessionOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,6CAIT,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6D,EAAE,OAAO;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL;EACrN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EAC5K,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,qHAcH;CACP,QAd8D,EAAE,OAAO;EACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0JAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.cjs","names":["z","action"],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).passthrough().describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.cjs","names":["z","action"],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).passthrough().describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState: AppAction<\n typeof SalesforceServiceCloudResyncChasitorStateInput,\n typeof SalesforceServiceCloudResyncChasitorStateOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iDAAiDA,IAAAA,EAAE,OAAO;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACvM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CAChM,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAC5J,wBAAwBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,uSAAuS;AACnT,MAAa,kDAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,EACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0KAA0K;AAEpM,MAAa,4CAITC,eAAAA,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/resync-chasitor-state.d.ts
|
|
@@ -11,25 +13,7 @@ declare const SalesforceServiceCloudResyncChasitorStateInput: z.ZodObject<{
|
|
|
11
13
|
declare const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodObject<{
|
|
12
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudResyncChasitorState:
|
|
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<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
accessToken: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const salesforceServiceCloudResyncChasitorState: AppAction<typeof SalesforceServiceCloudResyncChasitorStateInput, typeof SalesforceServiceCloudResyncChasitorStateOutput, typeof salesforceServiceCloud.credential>;
|
|
33
17
|
//#endregion
|
|
34
18
|
export { salesforceServiceCloudResyncChasitorState };
|
|
35
19
|
//# sourceMappingURL=resync-chasitor-state.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.d.cts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.d.cts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":";;;;;cAMa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;cAO9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,EAA2C,SAAA,QAC/C,8CAAA,SACA,+CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/resync-chasitor-state.d.ts
|
|
@@ -11,25 +13,7 @@ declare const SalesforceServiceCloudResyncChasitorStateInput: z.ZodObject<{
|
|
|
11
13
|
declare const SalesforceServiceCloudResyncChasitorStateOutput: z.ZodObject<{
|
|
12
14
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const salesforceServiceCloudResyncChasitorState:
|
|
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<"salesforce_service_cloud", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
accessToken: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
accessToken: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const salesforceServiceCloudResyncChasitorState: AppAction<typeof SalesforceServiceCloudResyncChasitorStateInput, typeof SalesforceServiceCloudResyncChasitorStateOutput, typeof salesforceServiceCloud.credential>;
|
|
33
17
|
//#endregion
|
|
34
18
|
export { salesforceServiceCloudResyncChasitorState };
|
|
35
19
|
//# sourceMappingURL=resync-chasitor-state.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.d.mts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.d.mts","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"mappings":";;;;;cAMa,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;cAO9C,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;cAI/C,yCAAA,EAA2C,SAAA,QAC/C,8CAAA,SACA,+CAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resync-chasitor-state.mjs","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).passthrough().describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resync-chasitor-state.mjs","names":[],"sources":["../../src/actions/resync-chasitor-state.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudResyncChasitorStateInput = z.object({\n api_version: z.string().describe(\"Live Agent API version (e.g., '61.0'). If not provided, automatically extracted from the base_url.\").optional(),\n session_key: z.string().describe(\"Session key obtained from an active Live Agent chat session. This value is returned when initiating a chat session and must be preserved for reconnection scenarios.\"),\n affinity_token: z.string().describe(\"Affinity token obtained from an active Live Agent chat session. This token routes the request to the correct server where the session state is maintained.\"),\n organization_id: z.string().describe(\"Salesforce organization ID of the chat visitor (not required by API; ignored for backwards compatibility).\").optional(),\n \"X-LIVEAGENT-SEQUENCE\": z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request parameters to reestablish a chat visitor's state after a reconnect session.\\nAccording to Salesforce Live Agent REST API, this endpoint requires specific headers\\nand no request body. We still accept organization_id for backwards compatibility,\\nbut it is not sent in the request body.\");\nexport const SalesforceServiceCloudResyncChasitorStateOutput = z.object({\n success: z.boolean().describe(\"True if the visitor state was successfully resynchronized. A successful response means the chat session state has been restored and the visitor can continue chatting.\").nullable(),\n}).passthrough().describe(\"Response from the ChasitorResyncState API endpoint. The endpoint returns no body content\\non success (HTTP 200), so this response model simply indicates success status.\");\n\nexport const salesforceServiceCloudResyncChasitorState: AppAction<\n typeof SalesforceServiceCloudResyncChasitorStateInput,\n typeof SalesforceServiceCloudResyncChasitorStateOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RESYNC_CHASITOR_STATE\", {\n slug: \"salesforce_service_cloud-resync-chasitor-state\",\n name: \"Resync Chasitor State\",\n description: \"Resynchronizes the chat visitor's state after a session reconnection. This action is part of the Salesforce Live Agent chat session recovery workflow: 1. First, call ReconnectChatSession with the session_key and affinity_token 2. Then, call this action to restore the visitor's chat state 3. Finally, resume normal chat operations (sending messages, getting messages, etc.) Prerequisites: - An active or recently disconnected Live Agent chat session - Valid session_key and affinity_token from the original session - Live Agent must be properly configured in the Salesforce org Note: The legacy Live Agent product is being phased out in favor of Messaging for In-App and Web. This action sends a POST request to /chat/rest/Chasitor/ChasitorResyncState with required Live Agent headers but no request body.\",\n input: SalesforceServiceCloudResyncChasitorStateInput,\n output: SalesforceServiceCloudResyncChasitorStateOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,4CAIT,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4D,EAAE,OAAO;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;EACvM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EAChM,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;EAC5J,wBAAwB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,uSAaH;CACP,QAb6D,EAAE,OAAO,EACtE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS,EACnN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0KAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername: AppAction<\n typeof SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n typeof SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAClK,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,mDAITC,eAAAA,OAAO,yDAAyD;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-salesforce-username.d.ts
|
|
@@ -5,19 +7,7 @@ declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodObject
|
|
|
5
7
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodObject<{
|
|
6
8
|
username: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const salesforceServiceCloudRetrieveSalesforceUsername:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
accessToken: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const salesforceServiceCloudRetrieveSalesforceUsername: AppAction<typeof SalesforceServiceCloudRetrieveSalesforceUsernameInput, typeof SalesforceServiceCloudRetrieveSalesforceUsernameOutput, typeof salesforceServiceCloud.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { salesforceServiceCloudRetrieveSalesforceUsername };
|
|
23
13
|
//# sourceMappingURL=retrieve-salesforce-username.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.d.cts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.d.cts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { salesforceServiceCloud } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-salesforce-username.d.ts
|
|
@@ -5,19 +7,7 @@ declare const SalesforceServiceCloudRetrieveSalesforceUsernameInput: z.ZodObject
|
|
|
5
7
|
declare const SalesforceServiceCloudRetrieveSalesforceUsernameOutput: z.ZodObject<{
|
|
6
8
|
username: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const salesforceServiceCloudRetrieveSalesforceUsername:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
accessToken: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"salesforce_service_cloud", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const salesforceServiceCloudRetrieveSalesforceUsername: AppAction<typeof SalesforceServiceCloudRetrieveSalesforceUsernameInput, typeof SalesforceServiceCloudRetrieveSalesforceUsernameOutput, typeof salesforceServiceCloud.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { salesforceServiceCloudRetrieveSalesforceUsername };
|
|
23
13
|
//# sourceMappingURL=retrieve-salesforce-username.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.d.mts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.d.mts","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,sBAAA,CAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-salesforce-username.mjs","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-salesforce-username.mjs","names":[],"sources":["../../src/actions/retrieve-salesforce-username.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { salesforceServiceCloud } from \"../app\";\n\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameInput = z.object({}).describe(\"Request model for RetrieveSalesforceUsername. No parameters required.\");\nexport const SalesforceServiceCloudRetrieveSalesforceUsernameOutput = z.object({\n username: z.string().describe(\"The Salesforce username (the 'preferred_username' claim) for the current authenticated user\").nullable(),\n}).passthrough().describe(\"Response model for RetrieveSalesforceUsername.\");\n\nexport const salesforceServiceCloudRetrieveSalesforceUsername: AppAction<\n typeof SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n typeof SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n typeof salesforceServiceCloud.credential\n> = action(\"SALESFORCE_SERVICE_CLOUD_RETRIEVE_SALESFORCE_USERNAME\", {\n slug: \"salesforce_service_cloud-retrieve-salesforce-username\",\n name: \"Retrieve Salesforce Username\",\n description: \"Tool to retrieve the Salesforce username. Use when you need the current authenticated user's username. Use after completing OAuth2 authentication.\",\n input: SalesforceServiceCloudRetrieveSalesforceUsernameInput,\n output: SalesforceServiceCloudRetrieveSalesforceUsernameOutput,\n});\n"],"mappings":";;;AAWA,MAAa,mDAIT,OAAO,yDAAyD;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbmE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uEAalF;CACP,QAboE,EAAE,OAAO,EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|