@keystrokehq/salesforce_service_cloud 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.cjs.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.cts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.cts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.d.mts +20 -3
- package/dist/actions/chasitor-sneak-peek.d.mts.map +1 -1
- package/dist/actions/chasitor-sneak-peek.mjs.map +1 -1
- package/dist/actions/composite-batch.cjs +2 -2
- package/dist/actions/composite-batch.cjs.map +1 -1
- package/dist/actions/composite-batch.d.cts +31 -3
- package/dist/actions/composite-batch.d.cts.map +1 -1
- package/dist/actions/composite-batch.d.mts +31 -3
- package/dist/actions/composite-batch.d.mts.map +1 -1
- package/dist/actions/composite-batch.mjs +2 -2
- package/dist/actions/composite-batch.mjs.map +1 -1
- package/dist/actions/composite-request.cjs +2 -2
- package/dist/actions/composite-request.cjs.map +1 -1
- package/dist/actions/composite-request.d.cts +33 -3
- package/dist/actions/composite-request.d.cts.map +1 -1
- package/dist/actions/composite-request.d.mts +33 -3
- package/dist/actions/composite-request.d.mts.map +1 -1
- package/dist/actions/composite-request.mjs +2 -2
- package/dist/actions/composite-request.mjs.map +1 -1
- package/dist/actions/composite-sobject-tree.cjs +3 -3
- package/dist/actions/composite-sobject-tree.cjs.map +1 -1
- package/dist/actions/composite-sobject-tree.d.cts +31 -3
- package/dist/actions/composite-sobject-tree.d.cts.map +1 -1
- package/dist/actions/composite-sobject-tree.d.mts +31 -3
- package/dist/actions/composite-sobject-tree.d.mts.map +1 -1
- package/dist/actions/composite-sobject-tree.mjs +3 -3
- package/dist/actions/composite-sobject-tree.mjs.map +1 -1
- package/dist/actions/create-case-record.cjs +3 -3
- package/dist/actions/create-case-record.cjs.map +1 -1
- package/dist/actions/create-case-record.d.cts +30 -3
- package/dist/actions/create-case-record.d.cts.map +1 -1
- package/dist/actions/create-case-record.d.mts +30 -3
- package/dist/actions/create-case-record.d.mts.map +1 -1
- package/dist/actions/create-case-record.mjs +3 -3
- package/dist/actions/create-case-record.mjs.map +1 -1
- package/dist/actions/delete-case-record.cjs.map +1 -1
- package/dist/actions/delete-case-record.d.cts +9 -3
- package/dist/actions/delete-case-record.d.cts.map +1 -1
- package/dist/actions/delete-case-record.d.mts +9 -3
- package/dist/actions/delete-case-record.d.mts.map +1 -1
- package/dist/actions/delete-case-record.mjs.map +1 -1
- package/dist/actions/describe-s-object.cjs +2 -2
- package/dist/actions/describe-s-object.cjs.map +1 -1
- package/dist/actions/describe-s-object.d.cts +21 -3
- package/dist/actions/describe-s-object.d.cts.map +1 -1
- package/dist/actions/describe-s-object.d.mts +21 -3
- package/dist/actions/describe-s-object.d.mts.map +1 -1
- package/dist/actions/describe-s-object.mjs +2 -2
- package/dist/actions/describe-s-object.mjs.map +1 -1
- package/dist/actions/generate-request-id.cjs +1 -1
- package/dist/actions/generate-request-id.cjs.map +1 -1
- package/dist/actions/generate-request-id.d.cts +5 -3
- package/dist/actions/generate-request-id.d.cts.map +1 -1
- package/dist/actions/generate-request-id.d.mts +5 -3
- package/dist/actions/generate-request-id.d.mts.map +1 -1
- package/dist/actions/generate-request-id.mjs +1 -1
- package/dist/actions/generate-request-id.mjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.cjs.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.cts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.cts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.d.mts +19 -3
- package/dist/actions/generate-signed-jwt-assertion.d.mts.map +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs +1 -1
- package/dist/actions/generate-signed-jwt-assertion.mjs.map +1 -1
- package/dist/actions/get-case-record.cjs +2 -2
- package/dist/actions/get-case-record.cjs.map +1 -1
- package/dist/actions/get-case-record.d.cts +33 -3
- package/dist/actions/get-case-record.d.cts.map +1 -1
- package/dist/actions/get-case-record.d.mts +33 -3
- package/dist/actions/get-case-record.d.mts.map +1 -1
- package/dist/actions/get-case-record.mjs +2 -2
- package/dist/actions/get-case-record.mjs.map +1 -1
- package/dist/actions/get-chat-messages.cjs +1 -1
- package/dist/actions/get-chat-messages.cjs.map +1 -1
- package/dist/actions/get-chat-messages.d.cts +19 -3
- package/dist/actions/get-chat-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-messages.d.mts +19 -3
- package/dist/actions/get-chat-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-messages.mjs +1 -1
- package/dist/actions/get-chat-messages.mjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.cjs +2 -2
- package/dist/actions/get-live-agent-api-version.cjs.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.cts +6 -3
- package/dist/actions/get-live-agent-api-version.d.cts.map +1 -1
- package/dist/actions/get-live-agent-api-version.d.mts +6 -3
- package/dist/actions/get-live-agent-api-version.d.mts.map +1 -1
- package/dist/actions/get-live-agent-api-version.mjs +2 -2
- package/dist/actions/get-live-agent-api-version.mjs.map +1 -1
- package/dist/actions/list-einstein-bots.cjs +4 -4
- package/dist/actions/list-einstein-bots.cjs.map +1 -1
- package/dist/actions/list-einstein-bots.d.cts +15 -3
- package/dist/actions/list-einstein-bots.d.cts.map +1 -1
- package/dist/actions/list-einstein-bots.d.mts +15 -3
- package/dist/actions/list-einstein-bots.d.mts.map +1 -1
- package/dist/actions/list-einstein-bots.mjs +4 -4
- package/dist/actions/list-einstein-bots.mjs.map +1 -1
- package/dist/actions/query-all-soql.cjs +4 -4
- package/dist/actions/query-all-soql.cjs.map +1 -1
- package/dist/actions/query-all-soql.d.cts +17 -3
- package/dist/actions/query-all-soql.d.cts.map +1 -1
- package/dist/actions/query-all-soql.d.mts +17 -3
- package/dist/actions/query-all-soql.d.mts.map +1 -1
- package/dist/actions/query-all-soql.mjs +4 -4
- package/dist/actions/query-all-soql.mjs.map +1 -1
- package/dist/actions/query-soql.cjs +2 -2
- package/dist/actions/query-soql.cjs.map +1 -1
- package/dist/actions/query-soql.d.cts +12 -3
- package/dist/actions/query-soql.d.cts.map +1 -1
- package/dist/actions/query-soql.d.mts +12 -3
- package/dist/actions/query-soql.d.mts.map +1 -1
- package/dist/actions/query-soql.mjs +2 -2
- package/dist/actions/query-soql.mjs.map +1 -1
- package/dist/actions/reconnect-chat-session.cjs +1 -1
- package/dist/actions/reconnect-chat-session.cjs.map +1 -1
- package/dist/actions/reconnect-chat-session.d.cts +16 -3
- package/dist/actions/reconnect-chat-session.d.cts.map +1 -1
- package/dist/actions/reconnect-chat-session.d.mts +16 -3
- package/dist/actions/reconnect-chat-session.d.mts.map +1 -1
- package/dist/actions/reconnect-chat-session.mjs +1 -1
- package/dist/actions/reconnect-chat-session.mjs.map +1 -1
- package/dist/actions/resync-chasitor-state.cjs +1 -1
- package/dist/actions/resync-chasitor-state.cjs.map +1 -1
- package/dist/actions/resync-chasitor-state.d.cts +17 -3
- package/dist/actions/resync-chasitor-state.d.cts.map +1 -1
- package/dist/actions/resync-chasitor-state.d.mts +17 -3
- package/dist/actions/resync-chasitor-state.d.mts.map +1 -1
- package/dist/actions/resync-chasitor-state.mjs +1 -1
- package/dist/actions/resync-chasitor-state.mjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs +1 -1
- package/dist/actions/retrieve-salesforce-username.cjs.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.cts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.cts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.d.mts +5 -3
- package/dist/actions/retrieve-salesforce-username.d.mts.map +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs +1 -1
- package/dist/actions/retrieve-salesforce-username.mjs.map +1 -1
- package/dist/actions/send-custom-event.cjs +1 -1
- package/dist/actions/send-custom-event.cjs.map +1 -1
- package/dist/actions/send-custom-event.d.cts +19 -3
- package/dist/actions/send-custom-event.d.cts.map +1 -1
- package/dist/actions/send-custom-event.d.mts +19 -3
- package/dist/actions/send-custom-event.d.mts.map +1 -1
- package/dist/actions/send-custom-event.mjs +1 -1
- package/dist/actions/send-custom-event.mjs.map +1 -1
- package/dist/actions/set-breadcrumb.cjs.map +1 -1
- package/dist/actions/set-breadcrumb.d.cts +17 -3
- package/dist/actions/set-breadcrumb.d.cts.map +1 -1
- package/dist/actions/set-breadcrumb.d.mts +17 -3
- package/dist/actions/set-breadcrumb.d.mts.map +1 -1
- package/dist/actions/set-breadcrumb.mjs.map +1 -1
- package/dist/actions/upload-file-to-s3.cjs +4 -4
- package/dist/actions/upload-file-to-s3.cjs.map +1 -1
- package/dist/actions/upload-file-to-s3.d.cts +20 -3
- package/dist/actions/upload-file-to-s3.d.cts.map +1 -1
- package/dist/actions/upload-file-to-s3.d.mts +20 -3
- package/dist/actions/upload-file-to-s3.d.mts.map +1 -1
- package/dist/actions/upload-file-to-s3.mjs +4 -4
- package/dist/actions/upload-file-to-s3.mjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.cjs.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.cts +21 -3
- package/dist/actions/visitor-sensitive-data-rule.d.cts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.d.mts +21 -3
- package/dist/actions/visitor-sensitive-data-rule.d.mts.map +1 -1
- package/dist/actions/visitor-sensitive-data-rule.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-request-id.mjs","names":[],"sources":["../../src/actions/generate-request-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateRequestIdInput
|
|
1
|
+
{"version":3,"file":"generate-request-id.mjs","names":[],"sources":["../../src/actions/generate-request-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateRequestIdInput = z.object({}).describe(\"Request model for GenerateRequestId. No parameters are required to generate a UUIDv4.\");\nexport const SalesforceServiceCloudGenerateRequestIdOutput = z.object({\n request_id: z.string().describe(\"Newly generated UUIDv4 string for use as the Idempotency-Key header in Salesforce API requests to prevent duplicate operations.\").nullable(),\n}).describe(\"Response model containing the generated UUIDv4 request ID.\");\n\nexport const salesforceServiceCloudGenerateRequestId = action(\"SALESFORCE_SERVICE_CLOUD_GENERATE_REQUEST_ID\", {\n slug: \"salesforce_service_cloud-generate-request-id\",\n name: \"Generate Request ID\",\n description: \"Generate a UUIDv4 string to use as an Idempotency-Key header in Salesforce User Interface API requests. This prevents duplicate record creation when POST, PATCH, or DELETE requests are retried due to network failures or timeouts. The same key returns cached responses for 30 days, avoiding duplicate operations and saving server resources. Use this tool whenever you need to ensure idempotent behavior for Salesforce UI API operations.\",\n input: SalesforceServiceCloudGenerateRequestIdInput,\n output: SalesforceServiceCloudGenerateRequestIdOutput,\n});\n"],"mappings":";;AASA,MAAa,0CAA0C,OAAO,gDAAgD;CAC5G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFASzE;CACP,QAT2D,EAAE,OAAO,EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const SalesforceServiceCloudGenerateSignedJwtAssertionInput = zod.z.object({
|
|
|
9
9
|
private_key: zod.z.string().describe("RSA private key in PEM format used to sign the JWT. If generate_private_key is true, this value is ignored.").optional(),
|
|
10
10
|
generate_private_key: zod.z.boolean().default(false).describe("If true, generate a temporary RSA private key for signing (useful for testing when a PEM isn't available).").optional()
|
|
11
11
|
}).describe("Parameters to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow.");
|
|
12
|
-
const SalesforceServiceCloudGenerateSignedJwtAssertionOutput = zod.z.object({ assertion: zod.z.string().describe("Compact serialized, RS256-signed JWT assertion.") }).describe("Compact JWT assertion signed with RS256.");
|
|
12
|
+
const SalesforceServiceCloudGenerateSignedJwtAssertionOutput = zod.z.object({ assertion: zod.z.string().describe("Compact serialized, RS256-signed JWT assertion.").nullable() }).describe("Compact JWT assertion signed with RS256.");
|
|
13
13
|
const salesforceServiceCloudGenerateSignedJwtAssertion = require_action.action("SALESFORCE_SERVICE_CLOUD_GENERATE_SIGNED_JWT_ASSERTION", {
|
|
14
14
|
slug: "salesforce_service_cloud-generate-signed-jwt-assertion",
|
|
15
15
|
name: "Generate Signed JWT Assertion",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-jwt-assertion.cjs","names":["z","action"],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionInput
|
|
1
|
+
{"version":3,"file":"generate-signed-jwt-assertion.cjs","names":["z","action"],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionInput = z.object({\n audience: z.string().describe(\"Audience claim for the JWT, e.g., login URL or instance domain. Defaults to the instance domain derived from base_url metadata.\").optional(),\n username: z.string().describe(\"Salesforce username (subject) for whom to generate the JWT assertion.\"),\n client_id: z.string().describe(\"Client (Consumer) ID of the Salesforce Connected App. If provided, overrides value from connection metadata.\").optional(),\n expiration: z.number().int().default(300).describe(\"JWT lifetime in seconds from now.\").optional(),\n private_key: z.string().describe(\"RSA private key in PEM format used to sign the JWT. If generate_private_key is true, this value is ignored.\").optional(),\n generate_private_key: z.boolean().default(false).describe(\"If true, generate a temporary RSA private key for signing (useful for testing when a PEM isn't available).\").optional(),\n}).describe(\"Parameters to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow.\");\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionOutput = z.object({\n assertion: z.string().describe(\"Compact serialized, RS256-signed JWT assertion.\").nullable(),\n}).describe(\"Compact JWT assertion signed with RS256.\");\n\nexport const salesforceServiceCloudGenerateSignedJwtAssertion = action(\"SALESFORCE_SERVICE_CLOUD_GENERATE_SIGNED_JWT_ASSERTION\", {\n slug: \"salesforce_service_cloud-generate-signed-jwt-assertion\",\n name: \"Generate Signed JWT Assertion\",\n description: \"Tool to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow. Use when you need to perform server-to-server authentication using a connected app’s certificate. Use before exchanging the assertion for an access token.\",\n input: SalesforceServiceCloudGenerateSignedJwtAssertionInput,\n output: SalesforceServiceCloudGenerateSignedJwtAssertionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAwDA,IAAAA,EAAE,OAAO;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACxJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACzJ,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAa,yDAAyDA,IAAAA,EAAE,OAAO,EAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC7F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,mDAAmDC,eAAAA,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-signed-jwt-assertion.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGenerateSignedJwtAssertionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGenerateSignedJwtAssertionInput: z.ZodObject<{
|
|
5
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
expiration: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
private_key: z.ZodOptional<z.ZodString>;
|
|
10
|
+
generate_private_key: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const SalesforceServiceCloudGenerateSignedJwtAssertionOutput: z.ZodObject<{
|
|
13
|
+
assertion: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const salesforceServiceCloudGenerateSignedJwtAssertion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
username: string;
|
|
17
|
+
audience?: string | undefined;
|
|
18
|
+
client_id?: string | undefined;
|
|
19
|
+
expiration?: number | undefined;
|
|
20
|
+
private_key?: string | undefined;
|
|
21
|
+
generate_private_key?: boolean | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { salesforceServiceCloudGenerateSignedJwtAssertion };
|
|
9
25
|
//# sourceMappingURL=generate-signed-jwt-assertion.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-jwt-assertion.d.cts","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"mappings":";;;cAIa,qDAAA,
|
|
1
|
+
{"version":3,"file":"generate-signed-jwt-assertion.d.cts","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;cAQrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-signed-jwt-assertion.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGenerateSignedJwtAssertionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGenerateSignedJwtAssertionInput: z.ZodObject<{
|
|
5
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
expiration: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
private_key: z.ZodOptional<z.ZodString>;
|
|
10
|
+
generate_private_key: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const SalesforceServiceCloudGenerateSignedJwtAssertionOutput: z.ZodObject<{
|
|
13
|
+
assertion: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const salesforceServiceCloudGenerateSignedJwtAssertion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
username: string;
|
|
17
|
+
audience?: string | undefined;
|
|
18
|
+
client_id?: string | undefined;
|
|
19
|
+
expiration?: number | undefined;
|
|
20
|
+
private_key?: string | undefined;
|
|
21
|
+
generate_private_key?: boolean | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { salesforceServiceCloudGenerateSignedJwtAssertion };
|
|
9
25
|
//# sourceMappingURL=generate-signed-jwt-assertion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-jwt-assertion.d.mts","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"mappings":";;;cAIa,qDAAA,
|
|
1
|
+
{"version":3,"file":"generate-signed-jwt-assertion.d.mts","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"mappings":";;;cAIa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;cAQrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;cAItD,gDAAA,gCAAgD,wBAAA"}
|
|
@@ -12,7 +12,7 @@ const salesforceServiceCloudGenerateSignedJwtAssertion = action("SALESFORCE_SERV
|
|
|
12
12
|
private_key: z.string().describe("RSA private key in PEM format used to sign the JWT. If generate_private_key is true, this value is ignored.").optional(),
|
|
13
13
|
generate_private_key: z.boolean().default(false).describe("If true, generate a temporary RSA private key for signing (useful for testing when a PEM isn't available).").optional()
|
|
14
14
|
}).describe("Parameters to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow."),
|
|
15
|
-
output: z.object({ assertion: z.string().describe("Compact serialized, RS256-signed JWT assertion.") }).describe("Compact JWT assertion signed with RS256.")
|
|
15
|
+
output: z.object({ assertion: z.string().describe("Compact serialized, RS256-signed JWT assertion.").nullable() }).describe("Compact JWT assertion signed with RS256.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { salesforceServiceCloudGenerateSignedJwtAssertion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-signed-jwt-assertion.mjs","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionInput
|
|
1
|
+
{"version":3,"file":"generate-signed-jwt-assertion.mjs","names":[],"sources":["../../src/actions/generate-signed-jwt-assertion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionInput = z.object({\n audience: z.string().describe(\"Audience claim for the JWT, e.g., login URL or instance domain. Defaults to the instance domain derived from base_url metadata.\").optional(),\n username: z.string().describe(\"Salesforce username (subject) for whom to generate the JWT assertion.\"),\n client_id: z.string().describe(\"Client (Consumer) ID of the Salesforce Connected App. If provided, overrides value from connection metadata.\").optional(),\n expiration: z.number().int().default(300).describe(\"JWT lifetime in seconds from now.\").optional(),\n private_key: z.string().describe(\"RSA private key in PEM format used to sign the JWT. If generate_private_key is true, this value is ignored.\").optional(),\n generate_private_key: z.boolean().default(false).describe(\"If true, generate a temporary RSA private key for signing (useful for testing when a PEM isn't available).\").optional(),\n}).describe(\"Parameters to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow.\");\nexport const SalesforceServiceCloudGenerateSignedJwtAssertionOutput = z.object({\n assertion: z.string().describe(\"Compact serialized, RS256-signed JWT assertion.\").nullable(),\n}).describe(\"Compact JWT assertion signed with RS256.\");\n\nexport const salesforceServiceCloudGenerateSignedJwtAssertion = action(\"SALESFORCE_SERVICE_CLOUD_GENERATE_SIGNED_JWT_ASSERTION\", {\n slug: \"salesforce_service_cloud-generate-signed-jwt-assertion\",\n name: \"Generate Signed JWT Assertion\",\n description: \"Tool to generate a signed JWT assertion for Salesforce JWT bearer OAuth flow. Use when you need to perform server-to-server authentication using a connected app’s certificate. Use before exchanging the assertion for an access token.\",\n input: SalesforceServiceCloudGenerateSignedJwtAssertionInput,\n output: SalesforceServiceCloudGenerateSignedJwtAssertionOutput,\n});\n"],"mappings":";;AAgBA,MAAa,mDAAmD,OAAO,0DAA0D;CAC/H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBmE,EAAE,OAAO;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACxJ,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACzJ,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,SAAS,qFASH;CACP,QAToE,EAAE,OAAO,EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,EAC7F,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ const SalesforceServiceCloudGetCaseRecordInput = zod.z.object({
|
|
|
6
6
|
case_id: zod.z.string().describe("ID of the Case record to retrieve (15- or 18-character Salesforce ID)")
|
|
7
7
|
}).describe("Request model for GetCaseRecord.");
|
|
8
8
|
const SalesforceServiceCloudGetCaseRecord_CaseAttributesSchema = zod.z.object({
|
|
9
|
-
url: zod.z.string().describe("URL to retrieve this Case instance"),
|
|
10
|
-
type: zod.z.string().describe("SObject type, e.g., 'Case'")
|
|
9
|
+
url: zod.z.string().describe("URL to retrieve this Case instance").nullable(),
|
|
10
|
+
type: zod.z.string().describe("SObject type, e.g., 'Case'").nullable()
|
|
11
11
|
}).describe("Metadata for Salesforce sObject returned in the response.");
|
|
12
12
|
const SalesforceServiceCloudGetCaseRecordOutput = zod.z.object({
|
|
13
13
|
Id: zod.z.string().describe("Unique 18-character Salesforce ID of the Case record").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-case-record.cjs","names":["z","action"],"sources":["../../src/actions/get-case-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetCaseRecordInput
|
|
1
|
+
{"version":3,"file":"get-case-record.cjs","names":["z","action"],"sources":["../../src/actions/get-case-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetCaseRecordInput = 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.object({\n url: z.string().describe(\"URL to retrieve this Case instance\").nullable(),\n type: z.string().describe(\"SObject type, e.g., 'Case'\").nullable(),\n}).describe(\"Metadata for Salesforce sObject returned in the response.\");\nexport const SalesforceServiceCloudGetCaseRecordOutput = 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,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AACtG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,yDAAyD,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qZAAqZ;AAE/a,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-case-record.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetCaseRecordInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetCaseRecordInput: z.ZodObject<{
|
|
5
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
case_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SalesforceServiceCloudGetCaseRecordOutput: z.ZodObject<{
|
|
9
|
+
Id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
Origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
Reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
Status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
OwnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
Subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
IsClosed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
Priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
AccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
ContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
IsDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
CaseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
ClosedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
url: z.ZodNullable<z.ZodString>;
|
|
25
|
+
type: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
CreatedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
CreatedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
LastModifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
LastModifiedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const salesforceServiceCloudGetCaseRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
case_id: string;
|
|
35
|
+
fields?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { salesforceServiceCloudGetCaseRecord };
|
|
9
39
|
//# sourceMappingURL=get-case-record.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-case-record.d.cts","names":[],"sources":["../../src/actions/get-case-record.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"get-case-record.d.cts","names":[],"sources":["../../src/actions/get-case-record.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAQxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAuBzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-case-record.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetCaseRecordInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetCaseRecordInput: z.ZodObject<{
|
|
5
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
case_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SalesforceServiceCloudGetCaseRecordOutput: z.ZodObject<{
|
|
9
|
+
Id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
Origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
Reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
Status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
OwnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
Subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
IsClosed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
Priority: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
AccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
ContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
IsDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
CaseNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
ClosedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
url: z.ZodNullable<z.ZodString>;
|
|
25
|
+
type: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
CreatedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
CreatedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
LastModifiedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
LastModifiedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const salesforceServiceCloudGetCaseRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
case_id: string;
|
|
35
|
+
fields?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { salesforceServiceCloudGetCaseRecord };
|
|
9
39
|
//# sourceMappingURL=get-case-record.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-case-record.d.mts","names":[],"sources":["../../src/actions/get-case-record.ts"],"mappings":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"get-case-record.d.mts","names":[],"sources":["../../src/actions/get-case-record.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAQxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAuBzC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -6,8 +6,8 @@ const SalesforceServiceCloudGetCaseRecordInput = z.object({
|
|
|
6
6
|
case_id: z.string().describe("ID of the Case record to retrieve (15- or 18-character Salesforce ID)")
|
|
7
7
|
}).describe("Request model for GetCaseRecord.");
|
|
8
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'")
|
|
9
|
+
url: z.string().describe("URL to retrieve this Case instance").nullable(),
|
|
10
|
+
type: z.string().describe("SObject type, e.g., 'Case'").nullable()
|
|
11
11
|
}).describe("Metadata for Salesforce sObject returned in the response.");
|
|
12
12
|
const salesforceServiceCloudGetCaseRecord = action("SALESFORCE_SERVICE_CLOUD_GET_CASE_RECORD", {
|
|
13
13
|
slug: "salesforce_service_cloud-get-case-record",
|
|
@@ -1 +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
|
|
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.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.object({\n url: z.string().describe(\"URL to retrieve this Case instance\").nullable(),\n type: z.string().describe(\"SObject type, e.g., 'Case'\").nullable(),\n}).describe(\"Metadata for Salesforce sObject returned in the response.\");\nexport const SalesforceServiceCloudGetCaseRecordOutput = 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,2CAA2C,EAAE,OAAO;CAC/D,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,2DAA2D,EAAE,OAAO;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAwBvE,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QA5BuD,EAAE,OAAO;EAChE,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"}
|
|
@@ -8,7 +8,7 @@ const SalesforceServiceCloudGetChatMessagesInput = zod.z.object({
|
|
|
8
8
|
session_key: zod.z.string().describe("Unique Chat session key")
|
|
9
9
|
}).describe("Request model for GetChatMessages.");
|
|
10
10
|
const SalesforceServiceCloudGetChatMessages_ChatMessageSchema = zod.z.object({
|
|
11
|
-
type: zod.z.string().describe("The message/event type (e.g., ChatMessage)"),
|
|
11
|
+
type: zod.z.string().describe("The message/event type (e.g., ChatMessage)").nullable(),
|
|
12
12
|
message: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Payload for the specific message/event type")
|
|
13
13
|
}).describe("Individual chat event/message item.");
|
|
14
14
|
const SalesforceServiceCloudGetChatMessagesOutput = zod.z.object({
|
|
@@ -1 +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
|
|
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.object({\n ack: z.number().int().default(-1).describe(\"Sequencing token for polling; use -1 for the first request\").optional(),\n affinity: z.string().describe(\"Affinity token identifying the session on Chat servers\"),\n api_version: z.string().describe(\"Salesforce API version for the request, e.g., '61.0'\"),\n session_key: z.string().describe(\"Unique Chat session key\"),\n}).describe(\"Request model for GetChatMessages.\");\nconst SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\").nullable(),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput = z.object({\n messages: z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe(\"Array of chat events/messages for the session\"),\n sequence: z.number().int().describe(\"Server-assigned sequence number for ordering; returned when new messages are available\").nullable().optional(),\n}).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,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,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,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,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"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-chat-messages.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetChatMessagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetChatMessagesInput: z.ZodObject<{
|
|
5
|
+
ack: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
affinity: z.ZodString;
|
|
7
|
+
api_version: z.ZodString;
|
|
8
|
+
session_key: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodObject<{
|
|
11
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const salesforceServiceCloudGetChatMessages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
affinity: string;
|
|
19
|
+
api_version: string;
|
|
20
|
+
session_key: string;
|
|
21
|
+
ack?: number | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { salesforceServiceCloudGetChatMessages };
|
|
9
25
|
//# sourceMappingURL=get-chat-messages.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.d.cts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.cts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAU1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;cAK3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-chat-messages.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetChatMessagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetChatMessagesInput: z.ZodObject<{
|
|
5
|
+
ack: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
affinity: z.ZodString;
|
|
7
|
+
api_version: z.ZodString;
|
|
8
|
+
session_key: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SalesforceServiceCloudGetChatMessagesOutput: z.ZodObject<{
|
|
11
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
12
|
+
type: z.ZodNullable<z.ZodString>;
|
|
13
|
+
message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const salesforceServiceCloudGetChatMessages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
affinity: string;
|
|
19
|
+
api_version: string;
|
|
20
|
+
session_key: string;
|
|
21
|
+
ack?: number | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { salesforceServiceCloudGetChatMessages };
|
|
9
25
|
//# sourceMappingURL=get-chat-messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.d.mts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-chat-messages.d.mts","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;cAU1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;cAK3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const SalesforceServiceCloudGetChatMessagesInput = z.object({
|
|
|
8
8
|
session_key: z.string().describe("Unique Chat session key")
|
|
9
9
|
}).describe("Request model for GetChatMessages.");
|
|
10
10
|
const SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({
|
|
11
|
-
type: z.string().describe("The message/event type (e.g., ChatMessage)"),
|
|
11
|
+
type: z.string().describe("The message/event type (e.g., ChatMessage)").nullable(),
|
|
12
12
|
message: z.record(z.string(), z.unknown()).describe("Payload for the specific message/event type")
|
|
13
13
|
}).describe("Individual chat event/message item.");
|
|
14
14
|
const salesforceServiceCloudGetChatMessages = action("SALESFORCE_SERVICE_CLOUD_GET_CHAT_MESSAGES", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-messages.mjs","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetChatMessagesInput
|
|
1
|
+
{"version":3,"file":"get-chat-messages.mjs","names":[],"sources":["../../src/actions/get-chat-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetChatMessagesInput = z.object({\n ack: z.number().int().default(-1).describe(\"Sequencing token for polling; use -1 for the first request\").optional(),\n affinity: z.string().describe(\"Affinity token identifying the session on Chat servers\"),\n api_version: z.string().describe(\"Salesforce API version for the request, e.g., '61.0'\"),\n session_key: z.string().describe(\"Unique Chat session key\"),\n}).describe(\"Request model for GetChatMessages.\");\nconst SalesforceServiceCloudGetChatMessages_ChatMessageSchema = z.object({\n type: z.string().describe(\"The message/event type (e.g., ChatMessage)\").nullable(),\n message: z.record(z.string(), z.unknown()).describe(\"Payload for the specific message/event type\"),\n}).describe(\"Individual chat event/message item.\");\nexport const SalesforceServiceCloudGetChatMessagesOutput = z.object({\n messages: z.array(SalesforceServiceCloudGetChatMessages_ChatMessageSchema).describe(\"Array of chat events/messages for the session\"),\n sequence: z.number().int().describe(\"Server-assigned sequence number for ordering; returned when new messages are available\").nullable().optional(),\n}).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,6CAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAMjD,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,UAAU,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,+CAA+C;EACnI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-live-agent-api-version.ts
|
|
4
4
|
const SalesforceServiceCloudGetLiveAgentApiVersionInput = zod.z.object({}).describe("Request model for retrieving the current Live Agent API version.");
|
|
5
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').")
|
|
6
|
+
url: zod.z.string().describe("Root URI for the latest API version (use this as base for versioned calls).").nullable(),
|
|
7
|
+
version: zod.z.string().describe("The latest supported Live Agent API version identifier (e.g., '61.0').").nullable()
|
|
8
8
|
}).describe("Response model for the current Live Agent API version.");
|
|
9
9
|
const salesforceServiceCloudGetLiveAgentApiVersion = require_action.action("SALESFORCE_SERVICE_CLOUD_GET_LIVE_AGENT_API_VERSION", {
|
|
10
10
|
slug: "salesforce_service_cloud-get-live-agent-api-version",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.cjs","names":["z","action"],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.cjs","names":["z","action"],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).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,oDAAoDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AACzJ,MAAa,qDAAqDA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,+CAA+CC,eAAAA,OAAO,uDAAuD;CACxH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-live-agent-api-version.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.
|
|
5
|
-
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodObject<{
|
|
6
|
+
url: z.ZodNullable<z.ZodString>;
|
|
7
|
+
version: z.ZodNullable<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
10
|
//#endregion
|
|
8
11
|
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
9
12
|
//# sourceMappingURL=get-live-agent-api-version.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.d.cts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.cts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,EAAiD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjD,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;cAKlD,4CAAA,gCAA4C,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-live-agent-api-version.d.ts
|
|
4
|
-
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.
|
|
5
|
-
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SalesforceServiceCloudGetLiveAgentApiVersionOutput: z.ZodObject<{
|
|
6
|
+
url: z.ZodNullable<z.ZodString>;
|
|
7
|
+
version: z.ZodNullable<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const salesforceServiceCloudGetLiveAgentApiVersion: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
10
|
//#endregion
|
|
8
11
|
export { salesforceServiceCloudGetLiveAgentApiVersion };
|
|
9
12
|
//# sourceMappingURL=get-live-agent-api-version.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.d.mts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.d.mts","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"mappings":";;;cAIa,iDAAA,EAAiD,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACjD,kDAAA,EAAkD,CAAA,CAAA,SAAA;;;;cAKlD,4CAAA,gCAA4C,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -6,8 +6,8 @@ const salesforceServiceCloudGetLiveAgentApiVersion = action("SALESFORCE_SERVICE_
|
|
|
6
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
7
|
input: z.object({}).describe("Request model for retrieving the current Live Agent API version."),
|
|
8
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').")
|
|
9
|
+
url: z.string().describe("Root URI for the latest API version (use this as base for versioned calls).").nullable(),
|
|
10
|
+
version: z.string().describe("The latest supported Live Agent API version identifier (e.g., '61.0').").nullable()
|
|
11
11
|
}).describe("Response model for the current Live Agent API version.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-live-agent-api-version.mjs","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput
|
|
1
|
+
{"version":3,"file":"get-live-agent-api-version.mjs","names":[],"sources":["../../src/actions/get-live-agent-api-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceServiceCloudGetLiveAgentApiVersionInput = z.object({}).describe(\"Request model for retrieving the current Live Agent API version.\");\nexport const SalesforceServiceCloudGetLiveAgentApiVersionOutput = z.object({\n url: z.string().describe(\"Root URI for the latest API version (use this as base for versioned calls).\").nullable(),\n version: z.string().describe(\"The latest supported Live Agent API version identifier (e.g., '61.0').\").nullable(),\n}).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,OAV+D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAU9E;CACP,QAVgE,EAAE,OAAO;EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACjH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -3,17 +3,17 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-einstein-bots.ts
|
|
4
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
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."),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the Einstein Bot.").nullable(),
|
|
7
|
+
label: zod.z.string().describe("Display label of the Einstein Bot.").nullable(),
|
|
8
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."),
|
|
9
|
+
developerName: zod.z.string().describe("API name of the Einstein Bot.").nullable(),
|
|
10
10
|
defaultLanguage: zod.z.string().describe("Default language locale (e.g., en_US, fr_FR).").nullable().optional(),
|
|
11
11
|
lastModifiedDate: zod.z.string().describe("ISO 8601 timestamp of the last modification.").nullable().optional(),
|
|
12
12
|
publishedVersion: zod.z.number().int().describe("Published version number of the bot.").nullable().optional()
|
|
13
13
|
}).describe("Metadata for an Einstein Bot.");
|
|
14
14
|
const SalesforceServiceCloudListEinsteinBotsOutput = zod.z.object({
|
|
15
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."),
|
|
16
|
+
totalSize: zod.z.number().int().describe("Total number of Einstein Bots returned in this response.").nullable(),
|
|
17
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
18
|
}).describe("Response model for listing Einstein Bots.\n\nContains a list of Einstein Bot definitions with their metadata.");
|
|
19
19
|
const salesforceServiceCloudListEinsteinBots = require_action.action("SALESFORCE_SERVICE_CLOUD_LIST_EINSTEIN_BOTS", {
|