@salesforce/afv-skills 1.68.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/afcc-setup-coordinate/SKILL.md +348 -0
- package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
- package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
- package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
- package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
- package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
- package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
- package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
- package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
- package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
- package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
- package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
- package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
- package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
- package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
- package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
- package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
- package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
- package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
- package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
- package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +23 -31
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/dx-lifecycle-center/SKILL.md +24 -18
- package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
- package/skills/dx-lifecycle-center/references/deploy.md +3 -3
- package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
- package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
- package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
- package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
- package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
- package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
- package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +2 -3
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
- package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
- package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
- package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
- package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
- package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
- package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
- package/skills/experience-afv-analytics-query/SKILL.md +239 -0
- package/skills/experience-afv-analytics-query/references/references.md +176 -0
- package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
- package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
- package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
- package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
- package/skills/experience-app-mcp-generate/SKILL.md +174 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
- package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
- package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
- package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
- package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
- package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
- package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
- package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
- package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
- package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
- package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
- package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
- package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
- package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
- package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
- package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
- package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
- package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
- package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
- package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
- package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
- package/skills/platform-custom-field-generate/SKILL.md +24 -16
- package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-setting-generate/SKILL.md +1 -0
- package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
- package/skills/platform-flexipage-generate/SKILL.md +7 -10
- package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
- package/skills/platform-policy-rule-generate/SKILL.md +9 -7
- package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
- package/skills/platform-report-generate/SKILL.md +20 -1
- package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
- package/skills/platform-report-generate/references/verification-checklist.md +12 -0
- package/skills/service-digital-engagement-channel-configure/SKILL.md +44 -107
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
- package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
- package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
- package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
- package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
- package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
- package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
- package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
- package/skills/service-e911-configure/SKILL.md +242 -0
- package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
- package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
- package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
- package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
- package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
- package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
- package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
- package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
- package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
- package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
- package/skills/experience-content-media-image-generate/SKILL.md +0 -83
- package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
- package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
- package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<MessagingChannel xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
+
<automatedResponses>
|
|
4
|
+
<autoResponseContentType>TextResponse</autoResponseContentType>
|
|
5
|
+
<language>en_US</language>
|
|
6
|
+
<response>You've opted out of receiving messages from us, so we won't contact you again.</response>
|
|
7
|
+
<type>OptOutConfirmation</type>
|
|
8
|
+
</automatedResponses>
|
|
9
|
+
<automatedResponses>
|
|
10
|
+
<autoResponseContentType>TextResponse</autoResponseContentType>
|
|
11
|
+
<language>en_US</language>
|
|
12
|
+
<response>Text STOP to opt out of further messages.</response>
|
|
13
|
+
<type>HelpResponse</type>
|
|
14
|
+
</automatedResponses>
|
|
15
|
+
<embeddedConfig>
|
|
16
|
+
<allowedFileTypes>bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml</allowedFileTypes>
|
|
17
|
+
<authMode>Auth</authMode>
|
|
18
|
+
<verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
|
|
19
|
+
<chatAbandonmentTimeout>5</chatAbandonmentTimeout>
|
|
20
|
+
<isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
|
|
21
|
+
<isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
|
|
22
|
+
<isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
|
|
23
|
+
<isFallbackMessageEnabled>false</isFallbackMessageEnabled>
|
|
24
|
+
<isFileAttachmentExtUnrestricted>false</isFileAttachmentExtUnrestricted>
|
|
25
|
+
<isSaveTranscriptEnabled>true</isSaveTranscriptEnabled>
|
|
26
|
+
<maxFileSize>5</maxFileSize>
|
|
27
|
+
<messagingAuthorizations>
|
|
28
|
+
<authIdentifier>Customer_Support_Chat</authIdentifier>
|
|
29
|
+
<authorizationType>PublicKeyCertificateSet</authorizationType>
|
|
30
|
+
<enabled>true</enabled>
|
|
31
|
+
<publicKeyCertificateSetName>Support_Keyset</publicKeyCertificateSetName>
|
|
32
|
+
</messagingAuthorizations>
|
|
33
|
+
</embeddedConfig>
|
|
34
|
+
<endUserIdleTimeOut>5</endUserIdleTimeOut>
|
|
35
|
+
<isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
|
|
36
|
+
<isQueuePositionEnabled>false</isQueuePositionEnabled>
|
|
37
|
+
<isSynchronousChatEnabled>false</isSynchronousChatEnabled>
|
|
38
|
+
<isVoiceModeEnabled>false</isVoiceModeEnabled>
|
|
39
|
+
<masterLabel>Customer Support Chat</masterLabel>
|
|
40
|
+
<messagingChannelType>EmbeddedMessaging</messagingChannelType>
|
|
41
|
+
<messagingKeywords>
|
|
42
|
+
<keyword>cancel</keyword>
|
|
43
|
+
<keyword>end</keyword>
|
|
44
|
+
<keyword>quit</keyword>
|
|
45
|
+
<keyword>stop</keyword>
|
|
46
|
+
<keyword>stopall</keyword>
|
|
47
|
+
<keyword>unsubscribe</keyword>
|
|
48
|
+
<keywordType>OptOut</keywordType>
|
|
49
|
+
<language>en_US</language>
|
|
50
|
+
</messagingKeywords>
|
|
51
|
+
<messagingKeywords>
|
|
52
|
+
<keyword>help</keyword>
|
|
53
|
+
<keywordType>Help</keywordType>
|
|
54
|
+
<language>en_US</language>
|
|
55
|
+
</messagingKeywords>
|
|
56
|
+
<sessionHandlerQueue>Support_Queue</sessionHandlerQueue>
|
|
57
|
+
<sessionHandlerType>Queue</sessionHandlerType>
|
|
58
|
+
</MessagingChannel>
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
</customParameters>
|
|
29
29
|
<embeddedConfig>
|
|
30
30
|
<allowedFileTypes>doc,docx,pdf,png,jpg</allowedFileTypes>
|
|
31
|
-
<
|
|
32
|
-
<
|
|
31
|
+
<anonymousUserJwtExpirationTime>360</anonymousUserJwtExpirationTime>
|
|
32
|
+
<authMode>UnAuth</authMode>
|
|
33
33
|
<chatAbandonmentTimeout>10</chatAbandonmentTimeout>
|
|
34
34
|
<isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
|
|
35
35
|
<isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
</automatedResponses>
|
|
15
15
|
<embeddedConfig>
|
|
16
16
|
<allowedFileTypes>bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml</allowedFileTypes>
|
|
17
|
-
<
|
|
18
|
-
<
|
|
17
|
+
<anonymousUserJwtExpirationTime>360</anonymousUserJwtExpirationTime>
|
|
18
|
+
<authMode>UnAuth</authMode>
|
|
19
19
|
<chatAbandonmentTimeout>5</chatAbandonmentTimeout>
|
|
20
20
|
<isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
|
|
21
21
|
<isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</embeddedConfig>
|
|
28
28
|
<endUserIdleTimeOut>5</endUserIdleTimeOut>
|
|
29
29
|
<isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
|
|
30
|
-
<isQueuePositionEnabled>
|
|
30
|
+
<isQueuePositionEnabled>false</isQueuePositionEnabled>
|
|
31
31
|
<isSynchronousChatEnabled>false</isSynchronousChatEnabled>
|
|
32
32
|
<isVoiceModeEnabled>false</isVoiceModeEnabled>
|
|
33
33
|
<masterLabel>Customer Support Chat</masterLabel>
|
|
@@ -99,7 +99,7 @@ Comma-separated string, no spaces between extensions.
|
|
|
99
99
|
When user verification is enabled:
|
|
100
100
|
- Set `authMode` to `Auth`
|
|
101
101
|
- The customer's backend must issue a signed JWT containing user identity claims
|
|
102
|
-
-
|
|
102
|
+
- JWTs are verified only once a keyset (public key certificate set) whose key `kid` and issuer match them is attached via `messagingAuthorizations`; the channel itself deploys without one. Creating keys is a separate setup
|
|
103
103
|
|
|
104
104
|
---
|
|
105
105
|
|
|
@@ -107,24 +107,28 @@ When user verification is enabled:
|
|
|
107
107
|
|
|
108
108
|
Only applicable when `authMode` is `Auth`. Do not include when `authMode` is `UnAuth`.
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Nested inside `<embeddedConfig>`. Configures verified user identity for the channel.
|
|
111
111
|
|
|
112
112
|
| Field | Type | Required | Description |
|
|
113
113
|
|-------|------|----------|-------------|
|
|
114
114
|
| `authorizationType` | Enum | Yes | Always `PublicKeyCertificateSet` |
|
|
115
|
-
| `
|
|
116
|
-
| `publicKeyCertificateSetName` | String | Yes | The certificate set used for public key verification |
|
|
115
|
+
| `publicKeyCertificateSetName` | String | Yes | API name of an existing keyset used for public key verification |
|
|
117
116
|
| `enabled` | Boolean | Yes | Whether this authorization is active |
|
|
118
|
-
| `authIdentifier` | String | Yes |
|
|
117
|
+
| `authIdentifier` | String | Yes | Free-form configuration name (default: the channel file name); not the JWT `sub` claim |
|
|
118
|
+
|
|
119
|
+
Do not emit `authProviderName`. With `Auth`, set `verifiedUserJwtExpirationTime` (60-240) and omit `anonymousUserJwtExpirationTime`.
|
|
119
120
|
|
|
120
121
|
```xml
|
|
121
|
-
<
|
|
122
|
-
<
|
|
123
|
-
<
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</
|
|
122
|
+
<embeddedConfig>
|
|
123
|
+
<authMode>Auth</authMode>
|
|
124
|
+
<verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
|
|
125
|
+
<messagingAuthorizations>
|
|
126
|
+
<authIdentifier>Customer_Support_Chat</authIdentifier>
|
|
127
|
+
<authorizationType>PublicKeyCertificateSet</authorizationType>
|
|
128
|
+
<enabled>true</enabled>
|
|
129
|
+
<publicKeyCertificateSetName>Support_Keyset</publicKeyCertificateSetName>
|
|
130
|
+
</messagingAuthorizations>
|
|
131
|
+
</embeddedConfig>
|
|
128
132
|
```
|
|
129
133
|
|
|
130
134
|
---
|
|
@@ -137,8 +141,8 @@ Configures the authorization settings for verified user identity in the messagin
|
|
|
137
141
|
| `endUserIdleAction` | Enum | — | Action taken when the idle timeout elapses: `Inactivate`, `End`, or `InactivateAndEnd` |
|
|
138
142
|
| `endInactiveSessionTimeOut` | Integer | — | Minutes after `endUserIdleAction` fires before the inactive session itself ends |
|
|
139
143
|
| `isAgentMessageResetInactivityEnabled` | Boolean | — | Restart the customer's inactivity timer when a rep sends a message (Setup label: "Rep messages reset customer's inactivity timer"). Only takes effect when `endUserIdleTimeOut` is set; it is forced to `false` otherwise |
|
|
140
|
-
| `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time |
|
|
141
|
-
| `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user |
|
|
144
|
+
| `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time. Setup's **Notification** list (None / Estimated Wait Time / Queue Position) allows one choice, so never set this and `isQueuePositionEnabled` both `true` (deploy fails: "You can't enable Queue Position and Estimated Wait Time options at the same time") |
|
|
145
|
+
| `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user. At most one of this and `isEstimatedWaitTimeEnabled` may be `true` |
|
|
142
146
|
| `isSynchronousChatEnabled` | Boolean | `false` | Enable real-time synchronous chat |
|
|
143
147
|
| `isVoiceModeEnabled` | Boolean | `false` | Enable voice mode capability |
|
|
144
148
|
|
package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# Onboarding contract — delegated mode, transport, pre-scan, registration
|
|
2
2
|
|
|
3
3
|
Read this when the invocation carries a `context` object, before any org write, or when registering the skill in an
|
|
4
|
-
onboarding module.
|
|
5
|
-
this skill. The sibling `service-digital-engagement-deployment-configure` has the same structure.
|
|
4
|
+
onboarding module. The sibling `service-digital-engagement-deployment-configure` has the same structure.
|
|
6
5
|
|
|
7
6
|
## 1. Two entry points, one write procedure
|
|
8
7
|
|
|
9
8
|
| | Delegated | Standalone |
|
|
10
9
|
|---|---|---|
|
|
11
10
|
| Detected by | `context.calledFrom == "service-onboarding"` | no `context` object |
|
|
12
|
-
| Values come from | `values` in the payload — already approved in the plan table | you ask
|
|
13
|
-
| Questions | none. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the
|
|
14
|
-
| Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the
|
|
11
|
+
| Values come from | `values` in the payload — already approved in the plan table | you ask for the Inputs in SKILL.md; defaults are in `references/channel_settings.md` |
|
|
12
|
+
| Questions | none. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the Inputs list in SKILL.md |
|
|
13
|
+
| Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the Inputs as written) |
|
|
15
14
|
| Ends with | the structured result in section 5 | a plain-language summary of the same outcome |
|
|
16
15
|
|
|
17
16
|
Delegated payload:
|
|
@@ -23,15 +22,16 @@ Delegated payload:
|
|
|
23
22
|
"routingType": "Queue",
|
|
24
23
|
"routingTarget": "Support_Queue",
|
|
25
24
|
"fallbackQueue": null,
|
|
26
|
-
"userVerification":
|
|
25
|
+
"userVerification": false
|
|
27
26
|
},
|
|
28
27
|
"context": { "calledFrom": "service-onboarding", "discoveryMode": "guided" }
|
|
29
28
|
}
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
Required `values`: `channelLabel`, `routingType`, `routingTarget`; `fallbackQueue` is required when `routingType` is
|
|
33
|
-
`Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `true`,
|
|
34
|
-
|
|
32
|
+
`Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `false` (`UnAuth`); when `true`, `verificationKeyset` (an existing
|
|
33
|
+
keyset name) and `authIdentifier` are optional. Every other channel setting uses the defaults in
|
|
34
|
+
`references/channel_settings.md` unless a key is supplied.
|
|
35
35
|
|
|
36
36
|
Missing routing target, delegated: return `failed`, `errorMessage` = "<Flow|User|Bot|Queue> <name> not found". Never
|
|
37
37
|
create one — queues come from the `queues` feature this one depends on.
|
|
@@ -80,7 +80,7 @@ Run before any write, both modes. `GET` `MessagingChannel` by `fullName` = the n
|
|
|
80
80
|
| Exists, some targeted setting differs | **drift** — announce each change ("routing: Queue A → Queue B"), then write the full document. Standalone: ask for a yes first. Delegated: the plan approval covers it |
|
|
81
81
|
| Exists but was created by Connect `channel/setup` (defaults populated: opt-out/help keywords, `embeddedConfig`) | you now own the whole document: GET, modify only targeted fields, PUT the full result |
|
|
82
82
|
|
|
83
|
-
Standalone, channel exists: offer exactly three choices — no change / override / add to existing.
|
|
83
|
+
Standalone, channel exists: offer exactly three choices — no change (stop) / override (replace the targeted settings, keep the rest) / add to existing (keep current settings, add only what the user lists).
|
|
84
84
|
|
|
85
85
|
## 4. Questions in the admin's language (guided mode)
|
|
86
86
|
|
|
@@ -90,9 +90,9 @@ Ask about the outcome; state the default with each; keep it to a handful.
|
|
|
90
90
|
|---|---|
|
|
91
91
|
| "Routing type: Queue, Flow, User or Agentforce Service Agent?" | "When a customer starts a chat, who should get it first: a team (queue), a specific person, or your AI agent? (Default: a team.)" |
|
|
92
92
|
| "Fallback queue developer name?" | "If that person or agent isn't available, which team should the chat go to?" |
|
|
93
|
-
| "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default:
|
|
93
|
+
| "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default: no.)" Yes → Auth mode; an existing signing keyset name is optional, and setting up the keys is a separate step |
|
|
94
94
|
| "Pre-chat form / custom parameters" | "What should we ask customers before the chat starts? (Default: name and email.)" |
|
|
95
|
-
| "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the
|
|
95
|
+
| "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the defaults in `references/channel_settings.md` |
|
|
96
96
|
|
|
97
97
|
## 5. Result returned to the coordinator
|
|
98
98
|
|
|
@@ -108,10 +108,10 @@ Ask about the outcome; state the default with each; keep it to a handful.
|
|
|
108
108
|
}
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
`status` and `errorMessage` are the contract. `outputs` is always returned
|
|
111
|
+
`status` and `errorMessage` are the contract. `outputs` is always returned.
|
|
112
112
|
On `failed`: `errorMessage` names the failed step and the platform error; stop; do not retry.
|
|
113
113
|
|
|
114
|
-
## 6. Registration entry (
|
|
114
|
+
## 6. Registration entry (for the onboarding team to place in a module)
|
|
115
115
|
|
|
116
116
|
```yaml
|
|
117
117
|
- id: messagingChannel
|
|
@@ -120,13 +120,14 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
|
|
|
120
120
|
delegateSkill: service-digital-engagement-channel-configure
|
|
121
121
|
dependsOn: [queues]
|
|
122
122
|
revisionOwner: service-digital-engagement-channel-configure
|
|
123
|
-
# org perms: confirm exact names with Digital Engagement licensing (not yet confirmed)
|
|
124
123
|
values:
|
|
125
124
|
channelLabel: { from: signal.messagingChannelName, default: "<company> Support Chat" }
|
|
126
125
|
routingType: { from: signal.messagingRouting, default: "Queue" }
|
|
127
126
|
routingTarget: { from: signal.messagingRoutingTarget }
|
|
128
127
|
fallbackQueue: { from: signal.messagingFallbackQueue }
|
|
129
|
-
userVerification: { from: signal.messagingSignedIn, default:
|
|
128
|
+
userVerification: { from: signal.messagingSignedIn, default: false }
|
|
129
|
+
verificationKeyset: { from: signal.messagingKeyset }
|
|
130
|
+
authIdentifier: { from: signal.messagingAuthIdentifier }
|
|
130
131
|
writes: "MessagingChannel (Metadata CRUD); IsActive via sObject update"
|
|
131
132
|
gating:
|
|
132
133
|
irreversible: false
|
|
@@ -136,8 +137,3 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
|
|
|
136
137
|
passWhen: "GET MessagingChannel fullName=<normalized name> returns the targeted sessionHandlerType and target and the intended authMode; SOQL SELECT IsActive, SessionHandlerId, FallbackQueueId FROM MessagingChannel WHERE DeveloperName=<name> returns IsActive=true, and non-null SessionHandlerId/FallbackQueueId where the routing type requires them"
|
|
137
138
|
alternative: "Setup > Messaging Settings > New Channel > Messaging for In-App and Web; choose routing, then activate."
|
|
138
139
|
```
|
|
139
|
-
|
|
140
|
-
Open items for the onboarding team: the `signal.*` keys do not exist in `onboarding-state.schema.json` yet
|
|
141
|
-
(`channels` allows only email/web); `userVerification: true` makes an Auth channel, which also needs the
|
|
142
|
-
user-verification step before signed-in customers can chat — decide if that is its own feature; the coordinator must
|
|
143
|
-
accept `outputs`; org perm names are not yet confirmed.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Pre-chat parameters
|
|
2
|
+
|
|
3
|
+
## Standard parameters
|
|
4
|
+
Generate `<standardParameters>` elements with `parameterType`.
|
|
5
|
+
|
|
6
|
+
## Custom parameters
|
|
7
|
+
Generate `<customParameters>` elements with `name`, `masterLabel`, `parameterDataType`, `externalParameterName`, and `maxLength`. Always set `parameterDataType` to `String`: the channel accepts no other value. The field's actual type (Checkbox, Number, dropdown) is set at the deployment level via `formFieldType`, not here.
|
|
8
|
+
|
|
9
|
+
## Flow variable mappings
|
|
10
|
+
If the channel uses Flow routing and the user specifies flow variable mappings, include `<actionParameterMappings>` with `actionParameterName` to map each parameter to a flow input variable.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# reCAPTCHA handoff
|
|
2
|
+
|
|
3
|
+
The reCAPTCHA key is not exposed through any API or Metadata field, so this skill cannot read, set, or verify it. An admin completes it in Setup; the skill hands over a link and the steps.
|
|
4
|
+
|
|
5
|
+
## Rules
|
|
6
|
+
|
|
7
|
+
- Never write `captchaKey` or `isCaptchaEnabled` in the channel XML. A full-document deploy preserves a key the admin already set in Setup, so redeploying never clobbers it.
|
|
8
|
+
- Never say reCAPTCHA is configured or enabled, or that it is not. Say this skill does not set or check it; the admin completes the steps below and sees the result in Setup.
|
|
9
|
+
- Give a plain Setup link only. Never run `sf org open --url-only` or output any URL carrying a session token (`frontdoor`, `sid=`); those are credentials.
|
|
10
|
+
- The reCAPTCHA Verification section is hidden for Mobile-only channels. Do not offer these steps for a channel the user says is Mobile-only.
|
|
11
|
+
|
|
12
|
+
## When to raise it
|
|
13
|
+
|
|
14
|
+
- The user asks about reCAPTCHA, captcha, or bot protection: give the full handoff.
|
|
15
|
+
- Standalone, at the end of the output, unless the user said the channel is Mobile-only: one line, "This skill does not set or check reCAPTCHA; ask me for the Setup steps."
|
|
16
|
+
- Delegated: do not raise it.
|
|
17
|
+
|
|
18
|
+
## Build the link
|
|
19
|
+
|
|
20
|
+
1. Get the channel Id:
|
|
21
|
+
```bash
|
|
22
|
+
sf data query -o <org> --json -q "SELECT Id FROM MessagingChannel WHERE DeveloperName='<CHANNEL_DEV_NAME>'"
|
|
23
|
+
```
|
|
24
|
+
2. Path: `/lightning/setup/LiveMessageSetup/<ChannelId>/view?lightning__channelType=EmbeddedMessaging`. Prefix it with the org's `instanceUrl` if known (`result.instanceUrl` from `sf org display --json`; never print or copy the access token), otherwise give the path.
|
|
25
|
+
|
|
26
|
+
3. No channel Id yet (the query returns no row, or the channel is not deployed): never deploy only to get one. Give the generic route, Setup → Messaging Settings → open the channel, with the admin steps below, and carry on with the rest of the flow.
|
|
27
|
+
|
|
28
|
+
## Limitation to tell the user
|
|
29
|
+
|
|
30
|
+
The link is plain, so it works only if the admin is already logged in to the org with Setup access. If not, they should log in first and then open the link, or go to Setup → Messaging Settings and open the channel.
|
|
31
|
+
|
|
32
|
+
## Admin steps
|
|
33
|
+
|
|
34
|
+
1. Have the reCAPTCHA key pair from Google ready.
|
|
35
|
+
2. Open the link and find the **reCAPTCHA Verification** section.
|
|
36
|
+
3. Check **Use reCAPTCHA** first. The **reCAPTCHA API Key Pair** field and **New API Key Pair** button stay greyed out until it is checked.
|
|
37
|
+
4. Select an existing key in **reCAPTCHA API Key Pair**, or click **New API Key Pair** and add yours.
|
|
38
|
+
5. Save. Setup does not allow saving with the box checked until a key pair is set.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# User verification (Auth mode)
|
|
2
|
+
|
|
3
|
+
Applies when the user turns user verification on (step 8).
|
|
4
|
+
|
|
5
|
+
- Set `embeddedConfig.authMode` to `Auth` and use `verifiedUserJwtExpirationTime` (60-240); omit `anonymousUserJwtExpirationTime`.
|
|
6
|
+
- Include `<messagingAuthorizations>` inside `<embeddedConfig>` only when the user gave an existing keyset name: `authorizationType` `PublicKeyCertificateSet`, `enabled` `true`, `publicKeyCertificateSetName` (the keyset's API name) and `authIdentifier` (free-form label; default the file name, not the JWT `sub` claim). Do not emit `authProviderName`. Shape: `references/channel_settings.md` → Messaging Authorizations; example: `examples/auth_queue_channel.xml`.
|
|
7
|
+
- Never invent a keyset name, reuse the example's `Support_Keyset`, or write key or keyset files; the deploy fails with "Required fields are missing: [AuthorizationConfigId]" when the keyset doesn't exist.
|
|
8
|
+
- No keyset name given (standalone or delegated): do not ask or fail. Set `authMode` `Auth` with `verifiedUserJwtExpirationTime` and omit `<messagingAuthorizations>`, then tell the user verification is not active until a keyset is attached.
|
|
9
|
+
- Creating keys or keysets is a separate setup and not part of this skill.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
# Verifies the target org's API version meets the minimum requirement.
|
|
3
3
|
# Usage: check-api-version.sh <min-version> <org-alias>
|
|
4
|
-
#
|
|
4
|
+
# Exit 0: version >= min-version. Exit 1: version below minimum. Exit 2: version could not be determined.
|
|
5
5
|
|
|
6
6
|
MIN_VERSION="${1:?Usage: check-api-version.sh <min-version> <org-alias>}"
|
|
7
7
|
ORG_ALIAS="${2:?Usage: check-api-version.sh <min-version> <org-alias>}"
|
|
@@ -16,14 +16,14 @@ except Exception:
|
|
|
16
16
|
")
|
|
17
17
|
|
|
18
18
|
if [ -z "$API_VERSION" ]; then
|
|
19
|
-
echo "
|
|
20
|
-
exit
|
|
19
|
+
echo "WARNING: Could not determine API version for org '$ORG_ALIAS'."
|
|
20
|
+
exit 2
|
|
21
21
|
fi
|
|
22
22
|
|
|
23
23
|
if python3 -c "import sys; sys.exit(0 if float(sys.argv[1]) >= float(sys.argv[2]) else 1)" "$API_VERSION" "$MIN_VERSION"; then
|
|
24
24
|
echo "OK: Org API version $API_VERSION meets minimum $MIN_VERSION."
|
|
25
25
|
exit 0
|
|
26
26
|
else
|
|
27
|
-
echo "ERROR: Org API version $API_VERSION is below minimum $MIN_VERSION.
|
|
27
|
+
echo "ERROR: Org API version $API_VERSION is below minimum $MIN_VERSION."
|
|
28
28
|
exit 1
|
|
29
29
|
fi
|
package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
# Derives a Metadata API-safe file name from a channel label.
|
|
3
3
|
# Usage: normalize-channel-name.sh "<LABEL>"
|
|
4
|
-
#
|
|
4
|
+
# Prints the name (max 80 chars). A label starting with a digit gets a "Ch_" prefix.
|
|
5
|
+
# Exits non-zero if nothing usable remains or the label exceeds 40 characters (masterLabel limit).
|
|
5
6
|
|
|
6
7
|
LABEL="$1"
|
|
7
8
|
if [ -z "$LABEL" ]; then
|
|
@@ -9,15 +10,19 @@ if [ -z "$LABEL" ]; then
|
|
|
9
10
|
exit 1
|
|
10
11
|
fi
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if ! echo "$NAME" | grep -qE '^[a-zA-Z][a-zA-Z0-9_]*$'; then
|
|
15
|
-
echo "Error: Derived name '$NAME' violates pattern ^[a-zA-Z][a-zA-Z0-9_]*$" >&2
|
|
13
|
+
if [ ${#LABEL} -gt 40 ]; then
|
|
14
|
+
echo "Error: Label '$LABEL' exceeds 40 characters; ask for a shorter label." >&2
|
|
16
15
|
exit 1
|
|
17
16
|
fi
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
NAME=$(printf '%s' "$LABEL" | sed 's/[^a-zA-Z0-9]/_/g' | sed 's/__*/_/g' | sed 's/^_//;s/_$//' | cut -c1-80)
|
|
19
|
+
|
|
20
|
+
case "$NAME" in
|
|
21
|
+
[0-9]*) NAME="Ch_$NAME" ;;
|
|
22
|
+
esac
|
|
23
|
+
|
|
24
|
+
if ! printf '%s' "$NAME" | grep -qE '^[a-zA-Z][a-zA-Z0-9_]*$'; then
|
|
25
|
+
echo "Error: Could not derive a valid name from '$LABEL'; ask for a label with letters." >&2
|
|
21
26
|
exit 1
|
|
22
27
|
fi
|
|
23
28
|
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: service-e911-configure
|
|
3
|
+
description: "Use this skill when users want to set up and manage Service Cloud Voice (Native CCaaS / Thunderbird) Emergency Calling (E911). Trigger when users mention e911."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
accessCheck: "ThunderbirdVoice.userIsContactCenterAdminNativeCCaaS"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Managing E911
|
|
10
|
+
|
|
11
|
+
## When to Use This Skill
|
|
12
|
+
|
|
13
|
+
Set up and manage Service Cloud Voice (Native CCaaS / Thunderbird) Emergency Calling (E911). Two routing providers are supported: RedSky and External Vendor (a BYOC telephony trunk). get-emergency-config reports the master switch, the active route, and each provider's status. save-emergency-provider configures a provider: REDSKY provisions a RedSky organization and admin user and requires a Voice number lease license, EXTERNAL_VENDOR takes a trunk chosen from get-telephony-providers. Configuring a provider does not turn the service on or change the active route, except that the first provider configured becomes active. set-route-via switches the active route, and the target must be fully configured. update-e911-status is the master switch: enable=true needs a fully configured active provider, enable=false suspends Emergency Calling and keeps provider settings. enable-legacy-red-sky is a legacy one-shot RedSky provision and enable. If RedSky is configured but its admin user was not created, run create-admin-profile to retry. get-exported-users builds a RedSky Device Users CSV from the org's active Contact Center (Native CCaaS) users. All operations require the Contact Center Admin permission for Service Cloud Voice.
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
Read state with get-emergency-config. To set up, run save-emergency-provider (EXTERNAL_VENDOR needs a telephonyProviderId from get-telephony-providers; REDSKY needs the Voice number lease license), optionally set-route-via to pick the active route, then update-e911-status enable=true. enable=false only suspends. If redSkyConfigured but redSkyAdminCreated=false, retry create-admin-profile. enable-legacy-red-sky is the legacy one-shot RedSky enable. Email/name for RedSky come from UserContext server-side. Before running update-e911-status with enable=false, set-route-via, save-emergency-provider with REDSKY, or enable-legacy-red-sky, tell the user what will change and get an explicit yes. Each can change where emergency calls go, or whether they go at all, and REDSKY and enable-legacy-red-sky create an external RedSky organization. Always pass enable explicitly to update-e911-status; omitting it suspends the service.
|
|
18
|
+
|
|
19
|
+
## Critical Constraints
|
|
20
|
+
|
|
21
|
+
**Preconditions:**
|
|
22
|
+
|
|
23
|
+
- The org must have the SalesforceVoice license (Native Voice / Thunderbird). (check: `Service Cloud Voice access`)
|
|
24
|
+
- The calling user must have the Contact Center Admin permission for Service Cloud Voice. This permission guards every E911 operation. (check: `Contact Center Admin role`)
|
|
25
|
+
- Configuring RedSky through save-emergency-provider requires an active Salesforce Voice number lease license (redSkyEligible=true in get-emergency-config). (check: `Voice number lease license`)
|
|
26
|
+
- An External Vendor trunk must be fully provisioned (it has an external trunk identifier and a valid two-letter country) before it can be saved. (check: `Telephony trunk provisioned`)
|
|
27
|
+
- update-e911-status enable=true and set-route-via fail unless the target provider is fully configured. Turning Emergency Calling off suspends it and keeps provider settings, so it can be turned on again. (check: `Provider configured`)
|
|
28
|
+
|
|
29
|
+
## Verification Checklist
|
|
30
|
+
|
|
31
|
+
After every write operation, confirm the effect by re-reading state:
|
|
32
|
+
|
|
33
|
+
- After `update-e911-status`: call `verify-e911-status` (`GET /headless/invoke/platform/e911`)
|
|
34
|
+
- After `create-admin-profile`: call `verify-create-admin-profile` (`GET /headless/invoke/platform/e911/get-admin-created-status`)
|
|
35
|
+
- After `set-route-via`: call `verify-set-route-via` (`GET /headless/invoke/platform/e911/get-emergency-config`)
|
|
36
|
+
- After `save-emergency-provider`: call `verify-save-emergency-provider` (`GET /headless/invoke/platform/e911/get-emergency-config`)
|
|
37
|
+
- After `enable-legacy-red-sky`: call `verify-enable-legacy-red-sky` (`GET /headless/invoke/platform/e911`)
|
|
38
|
+
|
|
39
|
+
## Operations Reference
|
|
40
|
+
|
|
41
|
+
Operations grouped by purpose. Use these as the building blocks for the workflows above.
|
|
42
|
+
|
|
43
|
+
### Summary
|
|
44
|
+
|
|
45
|
+
| Operation | Purpose | Status | Call | Depends on |
|
|
46
|
+
|-----------|---------|--------|------|------------|
|
|
47
|
+
| `get-e911-status` | read | proposed | `GET /headless/invoke/platform/e911` | — |
|
|
48
|
+
| `get-admin-created-status` | read | proposed | `GET /headless/invoke/platform/e911/get-admin-created-status` | — |
|
|
49
|
+
| `get-current-user-email` | read | proposed | `GET /chatter/users/me` | — |
|
|
50
|
+
| `create-admin-profile` | write | proposed | `PATCH /headless/invoke/platform/e911/create-admin-profile` | `save-emergency-provider`, `enable-legacy-red-sky` |
|
|
51
|
+
| `update-e911-status` | write | proposed | `PATCH /headless/invoke/platform/e911/update-e911-status` | — |
|
|
52
|
+
| `verify-e911-status` | verify | — | `GET /headless/invoke/platform/e911` | `update-e911-status` |
|
|
53
|
+
| `get-exported-users` | read | proposed | `GET /headless/invoke/platform/e911/get-exported-users` | — |
|
|
54
|
+
| `verify-create-admin-profile` | verify | — | `GET /headless/invoke/platform/e911/get-admin-created-status` | `create-admin-profile` |
|
|
55
|
+
| `get-emergency-config` | read | proposed | `GET /headless/invoke/platform/e911/get-emergency-config` | — |
|
|
56
|
+
| `get-telephony-providers` | discovery | proposed | `GET /headless/invoke/platform/e911/get-telephony-providers` | — |
|
|
57
|
+
| `save-emergency-provider` | write | proposed | `PATCH /headless/invoke/platform/e911/save-emergency-provider` | — |
|
|
58
|
+
| `set-route-via` | write | proposed | `PATCH /headless/invoke/platform/e911/set-route-via` | `save-emergency-provider` |
|
|
59
|
+
| `verify-set-route-via` | verify | proposed | `GET /headless/invoke/platform/e911/get-emergency-config` | `set-route-via` |
|
|
60
|
+
| `enable-legacy-red-sky` | write | proposed | `PATCH /headless/invoke/platform/e911/enable-legacy-red-sky` | — |
|
|
61
|
+
| `verify-save-emergency-provider` | verify | proposed | `GET /headless/invoke/platform/e911/get-emergency-config` | `save-emergency-provider` |
|
|
62
|
+
| `verify-enable-legacy-red-sky` | verify | proposed | `GET /headless/invoke/platform/e911` | `enable-legacy-red-sky` |
|
|
63
|
+
|
|
64
|
+
### Dependency graph
|
|
65
|
+
|
|
66
|
+
```mermaid
|
|
67
|
+
graph TD
|
|
68
|
+
get_e911_status["get-e911-status (read)"]
|
|
69
|
+
get_admin_created_status["get-admin-created-status (read)"]
|
|
70
|
+
get_current_user_email["get-current-user-email (read)"]
|
|
71
|
+
create_admin_profile["create-admin-profile (write)"]
|
|
72
|
+
update_e911_status["update-e911-status (write)"]
|
|
73
|
+
verify_e911_status["verify-e911-status (verify)"]
|
|
74
|
+
get_exported_users["get-exported-users (read)"]
|
|
75
|
+
verify_create_admin_profile["verify-create-admin-profile (verify)"]
|
|
76
|
+
get_emergency_config["get-emergency-config (read)"]
|
|
77
|
+
get_telephony_providers["get-telephony-providers (discovery)"]
|
|
78
|
+
save_emergency_provider["save-emergency-provider (write)"]
|
|
79
|
+
set_route_via["set-route-via (write)"]
|
|
80
|
+
verify_set_route_via["verify-set-route-via (verify)"]
|
|
81
|
+
enable_legacy_red_sky["enable-legacy-red-sky (write)"]
|
|
82
|
+
verify_save_emergency_provider["verify-save-emergency-provider (verify)"]
|
|
83
|
+
verify_enable_legacy_red_sky["verify-enable-legacy-red-sky (verify)"]
|
|
84
|
+
save_emergency_provider --> create_admin_profile
|
|
85
|
+
enable_legacy_red_sky --> create_admin_profile
|
|
86
|
+
update_e911_status --> verify_e911_status
|
|
87
|
+
create_admin_profile --> verify_create_admin_profile
|
|
88
|
+
save_emergency_provider --> set_route_via
|
|
89
|
+
set_route_via --> verify_set_route_via
|
|
90
|
+
save_emergency_provider --> verify_save_emergency_provider
|
|
91
|
+
enable_legacy_red_sky --> verify_enable_legacy_red_sky
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Read operations
|
|
95
|
+
|
|
96
|
+
#### `get-e911-status`
|
|
97
|
+
|
|
98
|
+
Returns whether the Emergency Calling master switch is on. Returns false when it is off, suspended, in error, or not configured yet. Use get-emergency-config for the full state.
|
|
99
|
+
|
|
100
|
+
**Call:** `GET /headless/invoke/platform/e911` — status: `proposed`
|
|
101
|
+
|
|
102
|
+
**Output:** Boolean. true when E911 is enabled; false otherwise, including when the status is missing or unreadable.
|
|
103
|
+
|
|
104
|
+
#### `get-admin-created-status`
|
|
105
|
+
|
|
106
|
+
Returns whether the RedSky admin user has been created. Used to decide whether the create-admin-profile retry is needed when E911 is enabled but admin creation failed.
|
|
107
|
+
|
|
108
|
+
**Call:** `GET /headless/invoke/platform/e911/get-admin-created-status` — status: `proposed`
|
|
109
|
+
|
|
110
|
+
**Output:** Boolean. true when the RedSky admin user has been created; false otherwise.
|
|
111
|
+
|
|
112
|
+
#### `get-current-user-email`
|
|
113
|
+
|
|
114
|
+
Returns calling user's email via Chatter UserDetail (userId='me'). For client-side display only; write paths read email/firstName/lastName from UserContext server-side, not from this step.
|
|
115
|
+
|
|
116
|
+
**Call:** `GET /chatter/users/me` — status: `proposed`
|
|
117
|
+
|
|
118
|
+
**Output:** UserDetailRepresentation. The email field carries the calling user's email; other fields (firstName, lastName, displayName, name, username, photo, etc.) are also returned but not used by the E911 flow.
|
|
119
|
+
|
|
120
|
+
#### `get-exported-users`
|
|
121
|
+
|
|
122
|
+
Returns a RedSky Device Users CSV for the org's active Contact Center (Native CCaaS) users, ready to upload to RedSky. Each row carries the user's email, name, phone, and device-user details; users with noreply@ emails are excluded.
|
|
123
|
+
|
|
124
|
+
**Call:** `GET /headless/invoke/platform/e911/get-exported-users` — status: `proposed`
|
|
125
|
+
|
|
126
|
+
**Output:** String. RedSky Device Users CSV: 4 header-comment lines followed by a column header line (Email, HELD+ User ID, First Name, Last Name, Phone Number, Device User IDs, Callback Number) and one row per active CCaaS-perm-set user (excluding 'noreply@' emails). Device User IDs column carries the Salesforce User Id.
|
|
127
|
+
|
|
128
|
+
#### `get-emergency-config`
|
|
129
|
+
|
|
130
|
+
Returns the Emergency Calling state as one object, covering the master switch, the active route, and the status of both providers.
|
|
131
|
+
|
|
132
|
+
**Call:** `GET /headless/invoke/platform/e911/get-emergency-config` — status: `proposed`
|
|
133
|
+
|
|
134
|
+
**Output:** Object: enabled (Boolean), routeVia (REDSKY, EXTERNAL_VENDOR, or null), redSkyConfigured, redSkyAdminCreated, redSkyStatus (READY or NOT_CONFIGURED), redSkyEligible (true only with a Voice number lease license), externalVendorConfigured, externalVendorStatus (READY or NOT_CONFIGURED), externalVendorTelephonyProviderId, externalVendorTrunkName.
|
|
135
|
+
|
|
136
|
+
### Write operations
|
|
137
|
+
|
|
138
|
+
#### `create-admin-profile`
|
|
139
|
+
|
|
140
|
+
Retries creating the RedSky admin user for an already-configured RedSky organization. Fails if RedSky is not configured yet or the admin already exists.
|
|
141
|
+
|
|
142
|
+
**Call:** `PATCH /headless/invoke/platform/e911/create-admin-profile` — status: `proposed`
|
|
143
|
+
|
|
144
|
+
**Depends on:** `save-emergency-provider`, `enable-legacy-red-sky`
|
|
145
|
+
|
|
146
|
+
#### `update-e911-status`
|
|
147
|
+
|
|
148
|
+
Master switch for Emergency Calling. enable=true turns it on and requires the active provider to be fully configured (a RedSky organization, or an External Vendor trunk with its routing metadata). enable=false suspends Emergency Calling and keeps provider settings, so it is reversible. It does not provision a provider or change the active route; use save-emergency-provider and set-route-via for that. Returns the resulting state, in the same shape as get-emergency-config.
|
|
149
|
+
|
|
150
|
+
**Call:** `PATCH /headless/invoke/platform/e911/update-e911-status` — status: `proposed`
|
|
151
|
+
|
|
152
|
+
**Inputs:**
|
|
153
|
+
|
|
154
|
+
- `enable` *(`Boolean`)* — true turns Emergency Calling on; false suspends it. Always pass it explicitly.
|
|
155
|
+
|
|
156
|
+
**Output:** Object with the resulting Emergency Calling state: enabled (Boolean), routeVia (REDSKY, EXTERNAL_VENDOR, or null), redSkyConfigured, redSkyAdminCreated, redSkyStatus (READY or NOT_CONFIGURED), redSkyEligible, externalVendorConfigured, externalVendorStatus (READY or NOT_CONFIGURED), externalVendorTelephonyProviderId, externalVendorTrunkName.
|
|
157
|
+
|
|
158
|
+
#### `save-emergency-provider`
|
|
159
|
+
|
|
160
|
+
Configures one routing provider without turning the service on or switching the active route; the first provider configured becomes active. REDSKY provisions a RedSky organization and admin user (or reuses an existing one) and needs a Voice number lease license. EXTERNAL_VENDOR validates the chosen trunk and stores its routing metadata. The other provider's settings are kept. Returns the resulting state, in the same shape as get-emergency-config.
|
|
161
|
+
|
|
162
|
+
**Call:** `PATCH /headless/invoke/platform/e911/save-emergency-provider` — status: `proposed`
|
|
163
|
+
|
|
164
|
+
**Inputs:**
|
|
165
|
+
|
|
166
|
+
- `provider` *(`String`)* — Which provider to configure.
|
|
167
|
+
- `telephonyProviderId` *(`String`)* — Record id of the trunk from get-telephony-providers; call that first for EXTERNAL_VENDOR. Required when provider is EXTERNAL_VENDOR; ignored for REDSKY.
|
|
168
|
+
- **Source:** output of `get-telephony-providers`
|
|
169
|
+
|
|
170
|
+
**Output:** Object with the resulting Emergency Calling state, in the same shape as get-emergency-config.
|
|
171
|
+
|
|
172
|
+
#### `set-route-via`
|
|
173
|
+
|
|
174
|
+
Selects the active routing provider for emergency calls. The target must already be fully configured, otherwise the request fails. Returns the resulting state, in the same shape as get-emergency-config.
|
|
175
|
+
|
|
176
|
+
**Call:** `PATCH /headless/invoke/platform/e911/set-route-via` — status: `proposed`
|
|
177
|
+
|
|
178
|
+
**Inputs:**
|
|
179
|
+
|
|
180
|
+
- `routeVia` *(`String`)* — The provider emergency calls should be routed through.
|
|
181
|
+
|
|
182
|
+
**Depends on:** `save-emergency-provider`
|
|
183
|
+
|
|
184
|
+
**Output:** Object with the resulting Emergency Calling state, in the same shape as get-emergency-config.
|
|
185
|
+
|
|
186
|
+
#### `enable-legacy-red-sky`
|
|
187
|
+
|
|
188
|
+
Legacy one-shot RedSky enable. Provisions a RedSky organization and admin user and turns Emergency Calling on in one call, or turns it on without re-provisioning when a RedSky organization already exists. Fails if Emergency Calling is already enabled. Does not require the Voice number lease license.
|
|
189
|
+
|
|
190
|
+
**Call:** `PATCH /headless/invoke/platform/e911/enable-legacy-red-sky` — status: `proposed`
|
|
191
|
+
|
|
192
|
+
### Verify operations
|
|
193
|
+
|
|
194
|
+
#### `verify-e911-status`
|
|
195
|
+
|
|
196
|
+
Read back via get-e911-status to confirm update-e911-status took effect. Returns true after enable=true and false after enable=false (suspended).
|
|
197
|
+
|
|
198
|
+
**Call:** `GET /headless/invoke/platform/e911`
|
|
199
|
+
|
|
200
|
+
**Depends on:** `update-e911-status`
|
|
201
|
+
|
|
202
|
+
#### `verify-create-admin-profile`
|
|
203
|
+
|
|
204
|
+
Read back via get-admin-created-status to confirm create-admin-profile succeeded; the RedSky admin user should now show as created.
|
|
205
|
+
|
|
206
|
+
**Call:** `GET /headless/invoke/platform/e911/get-admin-created-status`
|
|
207
|
+
|
|
208
|
+
**Depends on:** `create-admin-profile`
|
|
209
|
+
|
|
210
|
+
#### `verify-set-route-via`
|
|
211
|
+
|
|
212
|
+
Read back via get-emergency-config to confirm routeVia is the provider that set-route-via selected.
|
|
213
|
+
|
|
214
|
+
**Call:** `GET /headless/invoke/platform/e911/get-emergency-config` — status: `proposed`
|
|
215
|
+
|
|
216
|
+
**Depends on:** `set-route-via`
|
|
217
|
+
|
|
218
|
+
#### `verify-save-emergency-provider`
|
|
219
|
+
|
|
220
|
+
Read back via get-emergency-config to confirm the provider is configured. After REDSKY, redSkyConfigured is true; after EXTERNAL_VENDOR, externalVendorConfigured is true.
|
|
221
|
+
|
|
222
|
+
**Call:** `GET /headless/invoke/platform/e911/get-emergency-config` — status: `proposed`
|
|
223
|
+
|
|
224
|
+
**Depends on:** `save-emergency-provider`
|
|
225
|
+
|
|
226
|
+
#### `verify-enable-legacy-red-sky`
|
|
227
|
+
|
|
228
|
+
Read back via get-e911-status to confirm Emergency Calling is now on. Returns true after a successful enable-legacy-red-sky.
|
|
229
|
+
|
|
230
|
+
**Call:** `GET /headless/invoke/platform/e911` — status: `proposed`
|
|
231
|
+
|
|
232
|
+
**Depends on:** `enable-legacy-red-sky`
|
|
233
|
+
|
|
234
|
+
### Other operations
|
|
235
|
+
|
|
236
|
+
#### `get-telephony-providers`
|
|
237
|
+
|
|
238
|
+
Lists the org's telephony trunks for the External Vendor choice. Pass the chosen trunk's record id to save-emergency-provider as telephonyProviderId.
|
|
239
|
+
|
|
240
|
+
**Call:** `GET /headless/invoke/platform/e911/get-telephony-providers` — status: `proposed`
|
|
241
|
+
|
|
242
|
+
**Output:** List of the org's TelephonyProvider records, each as an object. Empty when the org has none.
|