@salesforce/afv-skills 1.70.0 → 1.72.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.
Files changed (1101) hide show
  1. package/package.json +1 -1
  2. package/skills/agentforce-generate/SKILL.md +8 -0
  3. package/skills/agentforce-generate/assets/agents/README.md +1 -1
  4. package/skills/agentforce-generate/references/actions-reference.md +4 -0
  5. package/skills/agentforce-generate/references/mcp-actions-in-agent-script.md +233 -0
  6. package/skills/agentforce-generate/references/reference-map.md +1 -0
  7. package/skills/agentforce-offline-experimentation-run/SKILL.md +12 -12
  8. package/skills/commerce-react-storefront-create/SKILL.md +12 -12
  9. package/skills/dx-apexguru-scan/SKILL.md +10 -5
  10. package/skills/dx-apexguru-scan/references/authentication.md +11 -7
  11. package/skills/dx-apexguru-scan/scripts/build-zip.sh +10 -3
  12. package/skills/dx-apexguru-scan/scripts/decode-report.js +72 -17
  13. package/skills/dx-apexguru-scan/scripts/resolve-token.sh +58 -13
  14. package/skills/dx-apexguru-scan/scripts/run-scan.sh +16 -5
  15. package/skills/dx-apexguru-scan/scripts/validate-token.js +12 -9
  16. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +9 -7
  17. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +78 -4
  18. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +17 -13
  19. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +110 -9
  20. package/skills/dx-scratch-def-configure/SKILL.md +110 -33
  21. package/skills/dx-scratch-def-configure/examples/confirm-card.md +33 -0
  22. package/skills/dx-scratch-def-configure/examples/report-recipes.md +54 -0
  23. package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1096 -90
  24. package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +22 -6
  25. package/skills/experience-app-mcp-generate/SKILL.md +2 -2
  26. package/skills/experience-app-mcp-generate/references/troubleshooting.md +1 -1
  27. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +49 -18
  28. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +1 -1
  29. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +1 -1
  30. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +3 -1
  31. package/skills/experience-lwc-accessibility-jest-run/SKILL.md +16 -6
  32. package/skills/experience-search-coordinate/SKILL.md +6 -51
  33. package/skills/experience-search-coordinate/references/content-route.md +239 -36
  34. package/skills/experience-search-coordinate/references/media-route.md +28 -5
  35. package/skills/experience-ui-bundle-custom-app-generate/SKILL.md +32 -26
  36. package/skills/experience-ui-bundle-custom-app-generate/references/configure-metadata-custom-application.md +6 -24
  37. package/skills/experience-ui-bundle-mfa-configure/SKILL.md +47 -21
  38. package/skills/experience-ui-bundle-mfa-configure/references/setup.md +3 -1
  39. package/skills/experience-ui-bundle-site-generate/references/configure-metadata-digital-experience.md +1 -1
  40. package/skills/industries-patient-card-generate/SKILL.md +209 -0
  41. package/skills/industries-patient-card-generate/references/acceptance-tests.md +64 -0
  42. package/skills/industries-patient-card-generate/references/component-behavior.md +95 -0
  43. package/skills/industries-patient-card-generate/references/custom-labels.md +51 -0
  44. package/skills/industries-patient-card-generate/references/values-and-rules.md +51 -0
  45. package/skills/industries-patient-card-generate/references/visual-design.md +89 -0
  46. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +4 -6
  47. package/skills/nonprofit-volunteer-management-records-create/references/field-guide.md +1 -1
  48. package/skills/nonprofit-volunteer-management-records-create/references/mcp-invocation.md +11 -4
  49. package/skills/nonprofit-volunteer-management-records-create/scripts/render-review-table.py +2 -2
  50. package/skills/nonprofit-volunteer-management-records-create/scripts/tests/test_render_review_table.py +21 -0
  51. package/skills/nonprofit-volunteer-management-structure-generate/references/mcp-invocation.md +5 -2
  52. package/skills/platform-apex-generate/SKILL.md +2 -1
  53. package/skills/platform-apex-generate/assets/abstract.cls +0 -4
  54. package/skills/platform-apex-generate/assets/invocable-action-extension.invocableactionextension-meta.xml +28 -0
  55. package/skills/platform-apex-generate/assets/invocable.cls +2 -0
  56. package/skills/platform-apex-generate/references/dml-declarations.md +69 -0
  57. package/skills/platform-apex-test-generate/SKILL.md +2 -0
  58. package/skills/platform-custom-lightning-type-generate/SKILL.md +5 -1
  59. package/skills/platform-custom-lightning-type-generate/references/agent-action-output.md +99 -0
  60. package/skills/platform-data-and-tooling-api-context-get/README.md +36 -0
  61. package/skills/platform-data-and-tooling-api-context-get/SKILL.md +18 -21
  62. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightAction.json +1 -1
  63. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightFeedback.json +1 -1
  64. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightReason.json +1 -1
  65. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightValue.json +1 -1
  66. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIRecordInsight.json +1 -1
  67. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AbnExperiment.json +2 -2
  68. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AbnExperimentCohort.json +5 -0
  69. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AcceptedEventRelation.json +1 -1
  70. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Account.json +37 -65
  71. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountCleanInfo.json +1 -1
  72. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountContactRelation.json +1 -1
  73. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountOwnerSharingRule.json +1 -1
  74. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountPlanObjMeasCalcCond.json +1 -1
  75. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountPlanObjMeasCalcDefLocalization.json +2 -0
  76. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountProspectingAgentResearch.json +44 -0
  77. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountShare.json +1 -1
  78. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTag.json +1 -1
  79. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTeamMember.json +3 -1
  80. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTerritoryAssignmentRuleItem.json +4 -2
  81. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountUserTerritory2View.json +1 -1
  82. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadence.json +1 -1
  83. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceRule.json +1 -1
  84. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceRuleCondition.json +1 -1
  85. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStep.json +50 -26
  86. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStepTracker.json +47 -2
  87. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStepVariant.json +65 -3
  88. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceTracker.json +2 -12
  89. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionLinkGroupTemplate.json +1 -1
  90. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionLinkTemplate.json +1 -1
  91. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlan.json +17 -6
  92. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanItem.json +6 -6
  93. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplate.json +10 -5
  94. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateItem.json +0 -5
  95. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateItemValue.json +0 -5
  96. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateVersion.json +0 -5
  97. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActiveScratchOrg.json +1 -6
  98. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityHistory.json +1 -1
  99. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityMetric.json +8 -0
  100. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityUsrConnectionStatus.json +1 -1
  101. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Address.json +3 -3
  102. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentQltyEvalFormCondition.json +54 -0
  103. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentQltyEvalFormCriteria.json +59 -0
  104. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWork.json +15 -1
  105. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWorkConversationalData.json +20 -0
  106. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWorkSkill.json +0 -5
  107. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiGenActionItem.json +1 -1
  108. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiGenActionItemInfo.json +1 -1
  109. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiModelLanguage.json +1 -1
  110. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AnalyticsChangeEventLog.json +2 -2
  111. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AnalyticsVizField.json +17 -1
  112. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Announcement.json +1 -1
  113. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexExecutionEventLog.json +2 -2
  114. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexLog.json +1 -1
  115. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexPageInfo.json +1 -1
  116. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexRestApiEventLog.json +3 -2
  117. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestQueueItem.json +1 -1
  118. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestResult.json +1 -1
  119. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestResultLimits.json +1 -1
  120. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestSuite.json +1 -1
  121. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTriggerEventLog.json +26 -22
  122. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTypeImplementor.json +1 -1
  123. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexUnexpectedExcpEventLog.json +16 -1
  124. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApiTotalUsageEventLog.json +5 -0
  125. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppAnalyticsQueryRequest.json +1 -1
  126. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppMenuItem.json +1 -1
  127. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApplicationFormTemplate.json +8 -28
  128. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppointmentTopicTimeSlot.json +0 -5
  129. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Approval.json +1 -1
  130. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalAlertContentDef.json +71 -2
  131. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalDelegation.json +56 -0
  132. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalSubmission.json +1 -1
  133. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalSubmissionDetail.json +1 -1
  134. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItem.json +7 -2
  135. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItemCondition.json +5 -1
  136. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItemCriteria.json +2 -2
  137. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleAggrDurDnscale.json +2 -5
  138. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleAggrPolicy.json +2 -5
  139. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleConfig.json +2 -5
  140. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePolicy.json +2 -5
  141. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePolicySvcTerr.json +2 -5
  142. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePropagatePolicy.json +2 -5
  143. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleRestrictPolicy.json +2 -5
  144. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleSortPolicy.json +2 -5
  145. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ArchivePolicyDefinition.json +83 -18
  146. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Article_Type__DataCategorySelection.json +1 -1
  147. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssessmentQuestionCatgData.json +47 -0
  148. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Asset.json +12 -1
  149. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetAction.json +6 -1
  150. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetActionSource.json +11 -1
  151. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetAttribute.json +2 -0
  152. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetDowntimePeriod.json +0 -5
  153. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetRateAdjustment.json +1 -1
  154. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetRateCardEntry.json +16 -0
  155. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetShare.json +1 -1
  156. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetStatePeriod.json +35 -9
  157. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetStatePeriodAttribute.json +6 -2
  158. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetTag.json +1 -1
  159. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetWarranty.json +0 -5
  160. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssignedResource.json +8 -0
  161. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssignmentRule.json +3 -1
  162. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssociatedLocation.json +1 -1
  163. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncOpSyndicationFeedFile.json +1 -1
  164. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncOperationLog.json +17 -1
  165. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncReportRunEventLog.json +2 -1
  166. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttachedContentDocument.json +2 -2
  167. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttachedContentNote.json +3 -3
  168. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Attachment.json +1 -1
  169. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModel.json +167 -3
  170. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModelStage.json +87 -3
  171. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModelStageMetric.json +66 -2
  172. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttributeDefinition.json +1 -1
  173. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AuraRequestEventLog.json +1 -0
  174. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AuthSession.json +1 -1
  175. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedAction.json +134 -2
  176. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionCondition.json +72 -2
  177. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionOverride.json +75 -2
  178. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionParameter.json +66 -2
  179. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionReminder.json +78 -2
  180. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BackgroundOperation.json +3 -1
  181. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BackgroundOperationResult.json +1 -1
  182. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Big_Objects.json +8 -0
  183. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingBatchScheduler.json +6 -2
  184. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingPeriodItem.json +16 -1
  185. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingPolicy.json +1 -1
  186. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingSchedule.json +189 -6
  187. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingScheduleGroup.json +44 -4
  188. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingTreatment.json +5 -1
  189. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingTreatmentItem.json +21 -1
  190. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Blocked_Redirect_Event_Type.json +1 -1
  191. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Bookmark.json +1 -1
  192. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BotDefinition.json +1 -1
  193. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BroadcastTopic.json +1 -1
  194. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BroadcastTopicGroup.json +1 -1
  195. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BulkApi2EventLog.json +6 -6
  196. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BulkApiEventLog.json +2 -2
  197. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BusinessHours.json +1 -1
  198. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerCriteria.json +1 -1
  199. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroup.json +1 -1
  200. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroupBuyerCriteria.json +1 -1
  201. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroupRelatedObject.json +1 -1
  202. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CSP_Violation_Event_Type.json +1 -1
  203. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalculatedInsightRangeBound.json +1 -1
  204. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalculationMatrix.json +25 -1
  205. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalendarView.json +1 -1
  206. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CallCenterRoutingMap.json +1 -1
  207. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Campaign.json +1 -1
  208. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignMember.json +1 -1
  209. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignMemberStatus.json +2 -2
  210. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignTag.json +1 -1
  211. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CardPaymentMethod.json +1 -1
  212. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CartItem.json +5 -0
  213. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CartItemPriceAdjustment.json +5 -0
  214. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Case.json +0 -34
  215. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseArticle.json +2 -2
  216. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseParticipant.json +1 -6
  217. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseRelatedIssue.json +5 -0
  218. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseTag.json +1 -1
  219. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseTeamMember.json +1 -1
  220. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryData.json +1 -1
  221. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryNode.json +3 -1
  222. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryNodeLocalization.json +2 -0
  223. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequest.json +5 -0
  224. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequestRelatedIssue.json +5 -0
  225. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequestRelatedItem.json +5 -0
  226. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterActivity.json +2 -2
  227. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterAnswersActivity.json +1 -1
  228. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterMessage.json +1 -1
  229. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabDocumentMetricRecord.json +1 -1
  230. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabTemplateMetric.json +1 -1
  231. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabTemplateMetricRecord.json +1 -1
  232. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroup.json +2 -6
  233. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroupMember.json +0 -4
  234. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroupMemberRequest.json +1 -1
  235. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationInvitation.json +2 -2
  236. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationRoom.json +1 -6
  237. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CombinedAttachment.json +1 -1
  238. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ComplaintCase.json +123 -0
  239. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ComplaintParticipant.json +133 -0
  240. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConcurApexLimitEventLog.json +1 -1
  241. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Contact.json +15 -20
  242. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactCenterChannel.json +0 -10
  243. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactCleanInfo.json +1 -1
  244. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointAddress.json +9 -0
  245. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointEmail.json +1 -1
  246. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointPhone.json +1 -1
  247. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactProspectingAgentResearch.json +51 -0
  248. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactRequest.json +2 -17
  249. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactRequestShare.json +1 -1
  250. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactShare.json +1 -1
  251. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactTag.json +1 -1
  252. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentAsset.json +1 -1
  253. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDistribution.json +3 -1
  254. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDistributionView.json +2 -0
  255. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocument.json +4 -2
  256. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentHistory.json +2 -0
  257. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentLink.json +3 -1
  258. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentListViewMapping.json +1 -1
  259. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentSubscription.json +1 -1
  260. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolder.json +2 -0
  261. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolderLink.json +2 -0
  262. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolderMember.json +2 -0
  263. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentHubItem.json +1 -1
  264. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentNote.json +3 -1
  265. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentNotification.json +1 -1
  266. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentTagSubscription.json +1 -1
  267. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentUserSubscription.json +1 -1
  268. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersion.json +2 -2
  269. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionComment.json +1 -1
  270. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionHistory.json +2 -0
  271. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionRating.json +1 -1
  272. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspace.json +3 -1
  273. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspaceDoc.json +4 -0
  274. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspaceSubscription.json +1 -1
  275. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Contract.json +1 -1
  276. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineItem.json +1 -1
  277. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineOutcome.json +2 -5
  278. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineOutcomeData.json +2 -5
  279. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractTag.json +1 -1
  280. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConvMessageSendRequest.json +1 -1
  281. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Conversation.json +14 -4
  282. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationApiLog.json +2 -7
  283. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationChannelDefinition.json +1 -1
  284. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationEntry.json +1 -1
  285. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationParticipant.json +9 -4
  286. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationVendorInfo.json +19 -1
  287. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CorsWhitelistEntry.json +1 -1
  288. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Coupon.json +14 -0
  289. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemo.json +20 -1
  290. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoAddressGroup.json +1 -6
  291. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoInvApplication.json +1 -1
  292. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoLine.json +1 -1
  293. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CronJobDetail.json +6 -1
  294. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CspTrustedSite.json +2 -2
  295. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CspViolationEventLog.json +1 -1
  296. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CurrencyType.json +3 -1
  297. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomBrand.json +1 -1
  298. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomBrandAsset.json +1 -1
  299. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomPermission.json +2 -2
  300. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomPermissionDependency.json +1 -1
  301. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomReportType.json +133 -0
  302. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Custom_Object__Feed.json +2 -2
  303. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DashboardTag.json +1 -1
  304. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataAssessmentValueMetric.json +1 -1
  305. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataEncryptionKey.json +1 -1
  306. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataKitDeploymentLog.json +5 -0
  307. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataLakeObjectInstance.json +327 -0
  308. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataMaskCustomValueLibrary.json +1 -1
  309. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudCompany.json +1 -1
  310. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudContact.json +1 -1
  311. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudDandBCompany.json +1 -1
  312. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatasetExport.json +1 -1
  313. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatasetExportPart.json +1 -1
  314. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DeliveryEstimationSetup.json +28 -0
  315. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsActivityLog.json +133 -2
  316. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvDeployment.json +173 -2
  317. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvDeploymentMbr.json +101 -2
  318. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvironment.json +144 -2
  319. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipeline.json +90 -2
  320. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineEnvironment.json +80 -2
  321. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineStage.json +99 -2
  322. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineStageTrigger.json +96 -2
  323. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineTestProvider.json +81 -2
  324. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelnStgProm.json +80 -2
  325. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelnStgPromWkItem.json +85 -2
  326. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsProject.json +80 -2
  327. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsProjectPipeline.json +76 -2
  328. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGate.json +71 -2
  329. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateResult.json +76 -2
  330. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateRule.json +77 -2
  331. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateRuleResult.json +76 -2
  332. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsRequestInfo.json +98 -2
  333. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTest.json +148 -2
  334. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestExecution.json +124 -2
  335. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestProvider.json +88 -2
  336. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestProviderSyncLog.json +94 -2
  337. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuite.json +115 -2
  338. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteExecution.json +150 -2
  339. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteGroupExec.json +100 -2
  340. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteStage.json +85 -2
  341. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteTest.json +85 -2
  342. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsWkItmTstSteGrpExec.json +76 -2
  343. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DigitalSignature.json +1 -6
  344. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Division.json +3 -1
  345. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DivisionLocalization.json +2 -0
  346. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DocumentTag.json +1 -1
  347. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Domain.json +2 -0
  348. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DomainSite.json +2 -0
  349. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DuplicateRule.json +1 -1
  350. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DynamicDataCapture.json +0 -5
  351. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ElectronicMediaGroup.json +1 -1
  352. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailDomainFilter.json +2 -2
  353. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailDomainKey.json +2 -2
  354. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailInsight.json +1 -1
  355. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailInsightAction.json +1 -1
  356. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailMessage.json +2 -2
  357. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailRelay.json +35 -2
  358. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailRoutingAddress.json +1 -1
  359. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmbeddedServiceLabel.json +1 -1
  360. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Employee2.json +112 -2
  361. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnablementMeasureDefinition.json +1 -1
  362. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnablementProgram.json +2 -0
  363. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblMeasureObjectDefinition.json +1 -1
  364. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblPgmTaskMeasureProgress.json +4 -2
  365. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramSection.json +4 -2
  366. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskDefinition.json +4 -2
  367. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskProgress.json +4 -2
  368. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskSubCategory.json +1 -1
  369. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementChannelType.json +14 -2
  370. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignal.json +83 -2
  371. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignalCmpndMetric.json +88 -2
  372. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignalMetric.json +73 -2
  373. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EntityMilestone.json +8 -1
  374. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EntitySubscription.json +1 -1
  375. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Event.json +2 -2
  376. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventLogFile.json +1 -1
  377. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventRelation.json +6 -2
  378. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventRelayConfig.json +2 -0
  379. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventTag.json +1 -1
  380. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventWhoRelation.json +1 -1
  381. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Expense.json +0 -5
  382. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpenseReport.json +0 -5
  383. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpenseReportEntry.json +0 -5
  384. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpressionFilter.json +1 -6
  385. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpressionFilterCriteria.json +0 -5
  386. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalAccountHierarchy.json +1 -1
  387. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalClientApplication.json +1 -1
  388. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalDataSource.json +1 -1
  389. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalDataUserAuth.json +1 -1
  390. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalEncryptionRootKey.json +2 -2
  391. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalSocialAccount.json +1 -1
  392. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExtlClntAppOauthSettings.json +1 -1
  393. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExtlClntAppPlcyCnfg.json +1 -1
  394. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedAttachment.json +3 -1
  395. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedComment.json +2 -2
  396. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedItem.json +3 -3
  397. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedLike.json +1 -1
  398. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPollChoice.json +2 -2
  399. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPollVote.json +1 -1
  400. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPost.json +2 -2
  401. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedRevision.json +1 -1
  402. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedTrackedChange.json +1 -1
  403. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldChangeSnapshot.json +1 -1
  404. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldHistoryArchive.json +0 -15
  405. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldPermissions.json +1 -1
  406. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldServiceMobileSettings.json +1 -1
  407. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldServiceOrgSettings.json +1 -1
  408. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FldSvcObjChg.json +2 -0
  409. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FldSvcObjChgDtl.json +2 -0
  410. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlexQueueItem.json +1 -1
  411. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterview.json +1 -1
  412. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewLog.json +1 -1
  413. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewLogOwnerSharingRule.json +1 -1
  414. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewOwnerSharingRule.json +1 -1
  415. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewShare.json +1 -1
  416. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowNavMetricEventLog.json +2 -2
  417. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowOrchestrationInstance.json +1 -1
  418. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowRecord.json +5 -0
  419. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowRecordVersion.json +4 -0
  420. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowStageRelation.json +1 -1
  421. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowTestResult.json +1 -1
  422. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Folder.json +2 -0
  423. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingAdjustment.json +1 -6
  424. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingColumnDefinition.json +1 -1
  425. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingColumnDefinitionLocalization.json +1 -1
  426. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingCustomData.json +0 -5
  427. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingFact.json +1 -6
  428. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingGroup.json +1 -1
  429. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingItem.json +1 -6
  430. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingOwnerAdjustment.json +1 -6
  431. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingQuota.json +1 -6
  432. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingSourceDefinition.json +1 -1
  433. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingType.json +0 -5
  434. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingTypeSource.json +1 -1
  435. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FrcstCustmzAdjustment.json +0 -5
  436. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FrcstCustmzOwnerAdjustment.json +0 -5
  437. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfillmentOrder.json +5 -0
  438. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfillmentOrderLineItem.json +10 -0
  439. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteria.json +1 -1
  440. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaActnVar.json +1 -1
  441. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaCond.json +1 -1
  442. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaGrp.json +1 -1
  443. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaGrpVer.json +1 -1
  444. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionConnection.json +1 -1
  445. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionInvocationRequest.json +1 -1
  446. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionReference.json +1 -1
  447. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAIConversationSummary.json +1 -1
  448. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiFunctionDefinition.json +118 -2
  449. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPlannerDefinition.json +86 -2
  450. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPlannerFunctionDef.json +51 -2
  451. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPluginDefinition.json +104 -2
  452. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenOpPlanReferenceRecord.json +54 -0
  453. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenOpPlanRequest.json +127 -2
  454. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GeoCountry.json +1 -1
  455. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GeolocationBasedAction.json +2 -5
  456. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GoogleDoc.json +1 -1
  457. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GraphQlQueryEventLog.json +123 -0
  458. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Group.json +1 -1
  459. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GroupMember.json +1 -1
  460. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GtwyProvPaymentMethodType.json +1 -1
  461. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/HealthCareProcedure.json +1 -1
  462. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Holiday.json +1 -1
  463. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Hostname_Redirects_Event_Type.json +1 -1
  464. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IframeWhiteListUrl.json +1 -1
  465. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Incident.json +5 -0
  466. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IncidentRelatedItem.json +5 -0
  467. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Individual.json +3 -1
  468. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualApplicationItem.json +1 -1
  469. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualHistory.json +3 -1
  470. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualShare.json +2 -0
  471. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InsufficientAccessEventLog.json +17 -9
  472. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InternalOrganizationUnit.json +19 -8
  473. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InventoryItemReservation.json +19 -1
  474. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InventoryReservation.json +6 -1
  475. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvocableActionEventLog.json +4 -0
  476. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Invoice.json +1 -1
  477. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceAddressGroup.json +1 -1
  478. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRun.json +29 -28
  479. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRunCriteria.json +26 -3
  480. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRunRecovery.json +6 -6
  481. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceDocument.json +1 -1
  482. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceLine.json +1 -21
  483. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/JobProfile.json +0 -5
  484. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/JobProfileQueueGroup.json +1 -1
  485. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleVersion.json +11 -1
  486. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleViewStat.json +1 -1
  487. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleVoteStat.json +1 -1
  488. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Knowledge__DataCategorySelection.json +1 -1
  489. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Knowledge__kav.json +26 -1
  490. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Lead.json +19 -37
  491. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadProspectingAgentResearch.json +51 -0
  492. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadShare.json +1 -1
  493. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadTag.json +1 -1
  494. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningContent.json +4 -2
  495. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItem.json +2 -0
  496. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemAssignment.json +2 -0
  497. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemProgress.json +2 -0
  498. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemSubmission.json +1 -1
  499. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemType.json +1 -1
  500. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningPractice.json +4 -2
  501. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LegalEntity.json +1 -1
  502. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LicenseDefinitionCustomPermission.json +37 -6
  503. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LinkedArticle.json +1 -1
  504. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmail.json +5 -0
  505. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmailMonthlyMetric.json +184 -2
  506. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmailSentResult.json +1 -1
  507. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListViewChartInstance.json +1 -1
  508. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveAgentSessionShare.json +1 -1
  509. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveChatTranscriptEvent.json +1 -1
  510. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveChatTranscriptShare.json +1 -1
  511. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Location.json +8 -3
  512. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LocationShippingCarrierMethod.json +40 -1
  513. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginAsEventLog.json +1 -1
  514. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginEventLog.json +21 -8
  515. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginGeo.json +1 -1
  516. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginHistory.json +2 -2
  517. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LookedUpFromActivity.json +1 -1
  518. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModel.json +1 -1
  519. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelFactor.json +1 -1
  520. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelFactorComponent.json +1 -1
  521. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelMetric.json +1 -1
  522. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Macro.json +1 -6
  523. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MacroInstruction.json +1 -6
  524. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MacroUsage.json +0 -5
  525. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MailmergeTemplate.json +2 -0
  526. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenanceAsset.json +0 -5
  527. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenancePlan.json +0 -5
  528. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenanceWorkRule.json +0 -5
  529. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ManagedContentVariant.json +1 -1
  530. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MerchAccPaymentMethodSet.json +1 -1
  531. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MerchAccPaymentMethodType.json +1 -1
  532. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingChannel.json +18 -3
  533. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingChannelUsage.json +1 -1
  534. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingEndUser.json +14 -6
  535. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingSession.json +10 -7
  536. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingSessionMetrics.json +1 -1
  537. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MetadataPackage.json +1 -1
  538. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MetadataPackageVersion.json +1 -1
  539. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MlIntentUtteranceSuggestion.json +0 -5
  540. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MsgChannelAvailability.json +93 -0
  541. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MsgChannelUsageExternalOrg.json +1 -1
  542. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MutingPermissionSet.json +1298 -114
  543. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamedCredential.json +1 -1
  544. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamedCredentialEventLog.json +19 -16
  545. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamespaceRegistry.json +0 -5
  546. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Network.json +24 -0
  547. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkActivityAudit.json +1 -1
  548. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkAffinity.json +1 -1
  549. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkAuthApiSettings.json +1 -1
  550. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkDiscoverableLogin.json +1 -1
  551. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkMember.json +1 -1
  552. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkMemberGroup.json +1 -1
  553. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkModeration.json +1 -1
  554. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkPageOverride.json +1 -1
  555. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NoteAndAttachment.json +1 -1
  556. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NoteTag.json +1 -1
  557. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OSAsyncChgCompletedEvent.json +1 -1
  558. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OauthToken.json +2 -2
  559. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ObjectTerritory2Association.json +1 -1
  560. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfig.json +1 -1
  561. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigAction.json +1 -1
  562. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigGroup.json +1 -1
  563. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigProfile.json +1 -1
  564. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigQueue.json +1 -1
  565. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigSkill.json +1 -1
  566. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigTab.json +1 -1
  567. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigUser.json +1 -1
  568. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpenActivity.json +1 -1
  569. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OperatingHours.json +10 -2
  570. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OperatingHoursHoliday.json +2 -2
  571. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OppSalesMethodology.json +1 -1
  572. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OppSalesMethodologyItem.json +1 -1
  573. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Opportunity.json +14 -50
  574. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityFieldHistory.json +1 -1
  575. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityHistory.json +1 -1
  576. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityLineItem.json +6 -2
  577. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityLineItemSchedule.json +1 -1
  578. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunitySplit.json +1 -1
  579. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityTag.json +1 -1
  580. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityTeamMember.json +1 -1
  581. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Order.json +10 -1
  582. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderAction.json +6 -1
  583. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderAdjustmentGroupSummary.json +5 -0
  584. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderHistory.json +1 -1
  585. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItem.json +16 -11
  586. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemAdjustmentLineItem.json +11 -0
  587. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemAdjustmentLineSummary.json +5 -0
  588. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemGroup.json +82 -2
  589. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemRelationship.json +1 -1
  590. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemSummary.json +5 -0
  591. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderShare.json +1 -1
  592. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderSummary.json +5 -0
  593. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderSummaryAdditionalInfo.json +12 -1
  594. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrgEmailAddressSecurity.json +1 -1
  595. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrgSnapshot.json +1 -1
  596. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Organization.json +5 -4
  597. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OutOfOffice.json +3 -1
  598. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackageLicense.json +1 -1
  599. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushError.json +2 -2
  600. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushJob.json +2 -2
  601. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushRequest.json +8 -2
  602. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackageSubscriber.json +2 -2
  603. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PartnerNetworkRecordConnection.json +1 -1
  604. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentCreditLinePayment.json +1 -1
  605. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentCreditTransaction.json +1 -1
  606. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentGateway.json +1 -1
  607. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentLineInvoice.json +1 -1
  608. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentLink.json +11 -1
  609. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentSchedule.json +11 -6
  610. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleItem.json +37 -8
  611. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentSchedulePolicy.json +1 -6
  612. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleTreatment.json +22 -7
  613. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleTreatmentDtl.json +1 -6
  614. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentTerm.json +2 -2
  615. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentTermItem.json +1 -1
  616. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PendingOrderSummary.json +1 -1
  617. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PendingServiceRouting.json +5 -0
  618. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSet.json +1299 -115
  619. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetAssignment.json +2 -2
  620. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetGroup.json +2 -2
  621. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicense.json +1298 -114
  622. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicenseAssign.json +2 -2
  623. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicenseDefinition.json +56 -11
  624. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetTabSetting.json +1 -1
  625. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersnlBatchDecision.json +127 -2
  626. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonAccountOwnerPowerUser.json +1 -1
  627. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonTraining.json +1 -1
  628. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationDecision.json +82 -2
  629. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationObjective.json +69 -2
  630. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationPoint.json +119 -2
  631. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationSchema.json +4 -4
  632. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PipelineInspectionListView.json +1 -1
  633. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PipelineInspectionSumField.json +1 -1
  634. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PlatformAction.json +1 -1
  635. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PplnInspListViewCalcClmn.json +62 -2
  636. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceConfigDeclineReason.json +1 -1
  637. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceDeclineReason.json +1 -1
  638. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfig.json +1 -1
  639. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfigProfile.json +1 -1
  640. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfigUser.json +1 -1
  641. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PriceAdjustmentSchedule.json +6 -1
  642. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PriceAdjustmentTier.json +1 -1
  643. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Pricebook2.json +6 -1
  644. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Pricebook2History.json +1 -1
  645. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PricebookEntry.json +1 -1
  646. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyHold.json +1 -1
  647. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyHoldReason.json +1 -1
  648. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyJobSession.json +2 -2
  649. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyObjectSession.json +1 -1
  650. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyRTBFRequest.json +1 -1
  651. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyRequest.json +2 -2
  652. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacySessionRecordFailure.json +1 -1
  653. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Problem.json +5 -0
  654. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProblemIncident.json +5 -0
  655. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProblemRelatedItem.json +5 -0
  656. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessException.json +5 -0
  657. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessInstance.json +1 -1
  658. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessInstanceHistory.json +1 -1
  659. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProducerCommission.json +26 -0
  660. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Product2.json +11 -1
  661. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Product2DataTranslation.json +2 -2
  662. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductCategory.json +2 -2
  663. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductCategoryDataTranslation.json +2 -0
  664. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductConsumed.json +2 -7
  665. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductConsumedState.json +117 -0
  666. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductItem.json +16 -5
  667. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductItemTransaction.json +7 -5
  668. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductMedia.json +1 -1
  669. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRelatedComponent.json +1 -1
  670. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRelationshipType.json +6 -1
  671. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequest.json +11 -6
  672. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequestLineItem.json +5 -5
  673. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequired.json +1 -6
  674. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductSellingModel.json +1 -1
  675. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductSellingModelOption.json +1 -1
  676. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaign.json +0 -5
  677. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignItem.json +0 -5
  678. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignItemStatus.json +1 -1
  679. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignStatus.json +1 -1
  680. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductTransfer.json +5 -5
  681. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductWarrantyTerm.json +0 -5
  682. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Profile.json +1303 -115
  683. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProgramProduct.json +1 -1
  684. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Promotion.json +5 -0
  685. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionLineItemRule.json +4 -0
  686. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionQualifier.json +4 -0
  687. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionTarget.json +4 -0
  688. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionTier.json +5 -0
  689. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Prospect.json +199 -2
  690. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentDataSource.json +40 -2
  691. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentExternalCompanyResearch.json +52 -0
  692. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentExternalPersonResearch.json +52 -0
  693. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentRcmdTarget.json +1 -1
  694. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentSpec.json +48 -2
  695. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentSpecParm.json +50 -2
  696. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentUserSpec.json +42 -2
  697. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PublicComplaint.json +24 -8
  698. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PushTopic.json +4 -2
  699. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PymtSchdDistributionMethod.json +1 -6
  700. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuestionDataCategorySelection.json +1 -1
  701. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuestionSubscription.json +1 -1
  702. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QueueRoutingConfig.json +1 -1
  703. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QueueSobject.json +2 -2
  704. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuickText.json +1 -1
  705. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Quote.json +10 -1
  706. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteAction.json +5 -0
  707. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteAdjustmentGroup.json +1 -1
  708. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteDocument.json +15 -0
  709. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteItemTaxItem.json +1 -1
  710. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineGroup.json +82 -2
  711. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineItem.json +11 -6
  712. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLinePriceAdjustment.json +117 -2
  713. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineRelationship.json +9 -0
  714. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteRecipientGroup.json +5 -0
  715. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecentFieldChange.json +1 -1
  716. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecentlyViewed.json +1 -1
  717. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecommendationResponse.json +1 -1
  718. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordAction.json +6 -1
  719. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordActionHistory.json +2 -2
  720. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordType.json +1 -1
  721. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordTypeLocalization.json +2 -0
  722. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordVisibility.json +2 -2
  723. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFilterCriteria.json +1 -6
  724. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFilterCriteriaRule.json +0 -5
  725. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFltrCritMonitor.json +0 -5
  726. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RedirectWhitelistUrl.json +1 -1
  727. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Refund.json +36 -0
  728. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RefundLinePayment.json +1 -1
  729. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RelatedListColumnDefinition.json +1 -1
  730. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RelatedListDefinition.json +1 -1
  731. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReplyText.json +1 -1
  732. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReportEventLog.json +7 -6
  733. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReportTag.json +1 -1
  734. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Report_Event_Type.json +1 -1
  735. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ResourceAbsence.json +10 -6
  736. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ResourcePreference.json +0 -5
  737. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RestApiEventLog.json +4 -3
  738. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReturnOrder.json +12 -2
  739. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RevenueAsyncOperation.json +1 -1
  740. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RevenueTransactionErrorLog.json +1 -1
  741. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SalesWorkQueueSettings.json +1 -1
  742. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SamlSsoConfig.json +1 -1
  743. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SavedPaymentMethod.json +1 -1
  744. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingConstraint.json +2 -2
  745. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingObjective.json +1 -1
  746. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingRule.json +1 -1
  747. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingRuleParameter.json +1 -1
  748. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Scontrol.json +2 -0
  749. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ScontrolLocalization.json +2 -0
  750. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ScratchOrgInfo.json +0 -5
  751. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SearchActivity.json +1 -1
  752. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SecurityHealthCheckAlertRecipient.json +65 -2
  753. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SecurityHealthCheckResult.json +78 -2
  754. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SelfServiceUser.json +1 -1
  755. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SenderEmailAddress.json +9 -0
  756. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SerializedProductTransaction.json +126 -0
  757. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceAppointment.json +28 -8
  758. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceAppointmentStatus.json +2 -2
  759. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceChannel.json +1 -1
  760. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceChannelStatus.json +1 -1
  761. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceCrew.json +0 -5
  762. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceCrewMember.json +0 -5
  763. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServicePresenceStatus.json +1 -1
  764. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceReport.json +0 -5
  765. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResource.json +6 -5
  766. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceCapacity.json +1 -6
  767. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceDataTranslation.json +3 -1
  768. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourcePreference.json +1 -1
  769. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceSkill.json +1 -6
  770. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritory.json +6 -5
  771. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryDataTranslation.json +3 -1
  772. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryLocation.json +0 -5
  773. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryMember.json +11 -5
  774. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryWorkType.json +9 -1
  775. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SessionPermSetActivation.json +2 -2
  776. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SetupEntityAccess.json +1 -1
  777. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SfdcPartnerSbscrOffer.json +272 -2
  778. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SfdcPartnerSbscrOfferItem.json +128 -2
  779. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Shift.json +14 -6
  780. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftPattern.json +0 -5
  781. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftPatternEntry.json +6 -6
  782. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftSegment.json +1 -1
  783. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftSegmentType.json +1 -1
  784. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftTemplate.json +1 -1
  785. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Shipment.json +1 -1
  786. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShipmentItem.json +1 -1
  787. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingCarrierMethod.json +38 -0
  788. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingConfigSetProduct.json +1 -1
  789. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingConfigurationSet.json +1 -1
  790. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingRateArea.json +1 -1
  791. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingRateGroup.json +1 -1
  792. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SignupRequest.json +2 -25
  793. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Site.json +2 -0
  794. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteDomain.json +2 -0
  795. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteEventLog.json +2 -1
  796. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteHistory.json +2 -0
  797. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteIframeWhitelistUrl.json +2 -0
  798. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Skill.json +1 -1
  799. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillLevelDefinition.json +1 -1
  800. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillLevelProgress.json +1 -1
  801. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillRequirement.json +2 -7
  802. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SlaProcess.json +1 -1
  803. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SlackChannelRelatedRecord.json +1 -1
  804. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SoapApiEventLog.json +2 -1
  805. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SocialPersona.json +1 -1
  806. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SocialPost.json +1 -1
  807. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SolutionTag.json +1 -1
  808. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepoProvider.json +81 -2
  809. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepository.json +101 -2
  810. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepositoryBranch.json +95 -2
  811. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StagedUnmtchdEmailAddr.json +1 -1
  812. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StagedUnmtchdEmailAddrRela.json +1 -1
  813. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardInvocableActionType.json +1 -1
  814. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameChangeEvent.json +2 -0
  815. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameFeed.json +2 -2
  816. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameHistory.json +1 -1
  817. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameOwnerSharingRule.json +1 -1
  818. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameShare.json +1 -1
  819. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Feed.json +2 -2
  820. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Feed_Feed.json +2 -2
  821. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_History.json +1 -1
  822. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_History_History.json +1 -1
  823. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_OwnerSharingRule.json +1 -1
  824. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_OwnerSharingRule_OwnerSharingRule.json +1 -1
  825. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Share.json +1 -1
  826. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Share_Share.json +1 -1
  827. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardShippingRate.json +1 -1
  828. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StaticResource.json +1 -1
  829. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StreamingChannel.json +2 -0
  830. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SvcCatalogItemDef.json +0 -50
  831. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SvcCatalogRequest.json +29 -9
  832. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Swarm.json +15 -5
  833. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SwarmMember.json +0 -5
  834. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TagDefinition.json +1 -1
  835. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Task.json +1 -1
  836. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaskRelation.json +1 -1
  837. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaskTag.json +1 -1
  838. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngine.json +11 -1
  839. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngineInteractionLog.json +6 -1
  840. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngineProvider.json +1 -1
  841. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxPolicy.json +1 -1
  842. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxTreatment.json +1 -1
  843. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantConsumptionAlert.json +1 -1
  844. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecret.json +1 -1
  845. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckBaselineTrend.json +15 -15
  846. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckDetail.json +2 -2
  847. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckTrend.json +3 -3
  848. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLicense.json +4 -4
  849. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLogin.json +2 -2
  850. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLoginIpRangeTrend.json +2 -2
  851. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityNotificationRule.json +2 -2
  852. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityPackage.json +1 -1
  853. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityReportAnomaly.json +2 -2
  854. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecuritySessionHijacking.json +2 -2
  855. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityTrigTransactionSecurityPol.json +30 -34
  856. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityTrustedIpRangeTrend.json +3 -3
  857. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2AlignmentLog.json +1 -1
  858. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2ObjSharingConfig.json +1 -1
  859. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2ObjectExclusion.json +1 -1
  860. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TerritoryAdminAssignment.json +1 -1
  861. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TerritoryMgmtObjectConfig.json +1 -1
  862. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TestSuiteMembership.json +1 -1
  863. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ThirdPartyAccountLink.json +2 -2
  864. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSheet.json +0 -5
  865. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSheetEntry.json +0 -5
  866. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSlot.json +9 -1
  867. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Topic.json +1 -1
  868. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TopicAssignment.json +1 -1
  869. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TransactionSecurityEventLog.json +0 -5
  870. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TransactionSecurityPolicy.json +1 -1
  871. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Translation.json +1 -1
  872. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TravelMode.json +9 -6
  873. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TwoFactorMethodsInfo.json +2 -2
  874. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivity.json +1 -1
  875. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityInsight.json +3 -1
  876. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityParticipant.json +1 -1
  877. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityRelation.json +1 -1
  878. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActvtyInsightKeyword.json +1 -1
  879. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedEmail.json +2 -2
  880. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedEmailParticipant.json +2 -2
  881. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedMeeting.json +2 -2
  882. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedMeetingParticipant.json +2 -2
  883. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedTask.json +2 -2
  884. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedTaskParticipant.json +2 -2
  885. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVideoCall.json +1 -1
  886. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVideoCallParticipant.json +3 -1
  887. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVoiceCall.json +1 -1
  888. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVoiceCallParticipant.json +3 -1
  889. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UniqueQueryEventLog.json +12 -1
  890. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactFactor.json +6 -16
  891. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroup.json +6 -18
  892. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupFactor.json +8 -34
  893. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupPgmMeasure.json +7 -31
  894. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupVersion.json +11 -37
  895. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/User.json +12 -65
  896. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserCustomBadgeLocalization.json +1 -1
  897. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailCalendarSync.json +1 -1
  898. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailPreferredPerson.json +1 -1
  899. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailPreferredPersonShare.json +1 -1
  900. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserLicense.json +1 -1
  901. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserLogin.json +1 -1
  902. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPermissionAccess.json +1297 -113
  903. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPreference.json +2 -2
  904. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPrioritizedRecord.json +1 -1
  905. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProfile.json +1 -1
  906. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProvAccountStaging.json +1 -1
  907. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProvisioningRequest.json +1 -1
  908. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserRecordAccess.json +1 -1
  909. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserRole.json +1 -1
  910. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserServicePresence.json +1 -1
  911. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserTeamMember.json +3 -1
  912. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserTerritory.json +2 -0
  913. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserUIPreference.json +5 -0
  914. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VendorCallCenterStatusMap.json +1 -1
  915. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VerificationHistory.json +2 -2
  916. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VideoCall.json +1 -1
  917. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VideoCallParticipant.json +12 -5
  918. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VisualforceRequestEventLog.json +1 -1
  919. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCall.json +22 -7
  920. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCallRecording.json +5 -9
  921. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCallSessionData.json +94 -0
  922. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCall_Sharing_Models.json +8 -0
  923. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceVendorInfo.json +0 -5
  924. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Vote.json +2 -2
  925. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WarrantyTerm.json +10 -5
  926. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCart.json +70 -3
  927. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCartAdjustmentGroup.json +5 -0
  928. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCartHistory.json +1 -1
  929. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebLink.json +4 -2
  930. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebLinkLocalization.json +2 -0
  931. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStore.json +1 -1
  932. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStoreMessageContent.json +1 -1
  933. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStoreNetwork.json +1 -1
  934. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Wishlist.json +10 -0
  935. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WishlistItem.json +14 -1
  936. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityAvailability.json +2 -7
  937. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityLimit.json +0 -5
  938. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityUsage.json +2 -7
  939. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkDemographic.json +88 -2
  940. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItem.json +144 -2
  941. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItemComponent.json +101 -2
  942. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItemEvent.json +49 -2
  943. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrder.json +2 -0
  944. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderLineItem.json +1 -1
  945. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderLineItemStatus.json +1 -1
  946. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderStatus.json +1 -1
  947. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkPlanSelectionRule.json +0 -5
  948. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkType.json +6 -5
  949. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkTypeGroup.json +0 -5
  950. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkTypeGroupMember.json +0 -5
  951. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkforceCapacity.json +91 -3
  952. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkforceCapacityUnit.json +168 -2
  953. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Workload.json +140 -3
  954. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkloadUnit.json +110 -2
  955. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AIApplication.json +1 -1
  956. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AIApplicationConfig.json +1 -1
  957. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AuthorizedEmailDomain.json +8 -3
  958. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ContainerAsyncRequest.json +1 -1
  959. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ConversationVendorInfo.json +1 -1
  960. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CspTrustedSite.json +1 -1
  961. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomApplication.json +1 -1
  962. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomField.json +5 -0
  963. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomNotifActionDef.json +1 -1
  964. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomNotificationActionGroup.json +1 -1
  965. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomObject.json +5 -0
  966. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DebugLevel.json +15 -0
  967. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DeployDetails.json +1 -1
  968. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DeployRequest.json +1 -1
  969. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/EmbeddedServiceCustomLabel.json +1 -1
  970. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/EventRelayConfig.json +1 -1
  971. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ExternalDataSource.json +2 -2
  972. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ExternalServiceRegistration.json +1 -1
  973. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/FlexiPage.json +2 -2
  974. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/Flow.json +2 -2
  975. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/Group.json +1 -1
  976. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/OutboundNetworkConnection.json +1 -1
  977. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/PermissionSet.json +1 -1
  978. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/QueryResult.json +1 -1
  979. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/QuickActionDefinition.json +3 -3
  980. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ScndTelephPrvdOtbdDtl.json +59 -0
  981. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SecondaryTelephonyProvider.json +54 -0
  982. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SensitiveDataRuleElmnt.json +42 -0
  983. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SensitiveDataRuleElmntGrp.json +33 -0
  984. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SubscriberPackage.json +1 -1
  985. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/TelephonyProvider.json +55 -0
  986. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/TrustedTelephonyProvider.json +49 -0
  987. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/User.json +1 -1
  988. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyDefinition.json +64 -0
  989. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyGroupOvride.json +38 -0
  990. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyProfileOvride.json +38 -0
  991. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyUserOvride.json +38 -0
  992. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/WorkflowAlert.json +1 -1
  993. package/skills/platform-data-and-tooling-api-context-get/references/data_and_tooling_index_table.md +190 -159
  994. package/skills/platform-data-and-tooling-api-context-get/references/usage_guide.md +2 -2
  995. package/skills/platform-datamask-run/SKILL.md +27 -24
  996. package/skills/platform-datamask-run/references/run-and-abort.md +10 -12
  997. package/skills/platform-datamask-run/scripts/poll-job.sh +27 -2
  998. package/skills/platform-lightning-app-coordinate/SKILL.md +43 -45
  999. package/skills/platform-metadata-discovery-get/SKILL.md +15 -10
  1000. package/skills/platform-metadata-grounding-get/SKILL.md +5 -3
  1001. package/skills/platform-trust-archive-manage/SKILL.md +7 -7
  1002. package/skills/platform-trust-archive-manage/examples/monitor-failed-jobs.md +6 -5
  1003. package/skills/platform-trust-archive-manage/references/archive-activity-entity.md +3 -3
  1004. package/skills/platform-trust-archive-manage/references/connect-api-operations.md +4 -2
  1005. package/skills/service-add-agents-to-contact-center-create/SKILL.md +138 -0
  1006. package/skills/service-agentforce-contact-center-coordinate/SKILL.md +5 -5
  1007. package/skills/service-agentforce-contact-center-coordinate/references/omni-flow-routing.md +3 -3
  1008. package/skills/service-agentforce-contact-center-coordinate/scripts/create-routing-flows.sh +8 -3
  1009. package/skills/service-agentforce-contact-center-coordinate/scripts/create-voice-agent.sh +5 -5
  1010. package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-acc-queue.sh +10 -1
  1011. package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-channel-line.sh +4 -0
  1012. package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-flow-definition.sh +5 -0
  1013. package/skills/service-agentforce-contact-center-coordinate/scripts/verify-number-live.sh +6 -1
  1014. package/skills/service-concierge-portal-generate/SKILL.md +1 -1
  1015. package/skills/service-concierge-portal-generate/references/portal-deploy-runbook.md +21 -8
  1016. package/skills/service-digital-engagement-channel-configure/SKILL.md +64 -59
  1017. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +5 -0
  1018. package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_set_jwks_template.xml +20 -0
  1019. package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_set_jwks_url_template.xml +23 -0
  1020. package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_template.xml +15 -0
  1021. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +1 -1
  1022. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +3 -3
  1023. package/skills/service-digital-engagement-channel-configure/examples/jwks_upload_key.xml +11 -0
  1024. package/skills/service-digital-engagement-channel-configure/examples/jwks_upload_keyset.xml +13 -0
  1025. package/skills/service-digital-engagement-channel-configure/examples/jwks_url_keyset.xml +17 -0
  1026. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +3 -3
  1027. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  1028. package/skills/service-digital-engagement-channel-configure/examples/user_channel.xml +53 -0
  1029. package/skills/service-digital-engagement-channel-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
  1030. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +7 -7
  1031. package/skills/service-digital-engagement-channel-configure/references/keyset_settings.md +46 -0
  1032. package/skills/service-digital-engagement-channel-configure/references/keyset_setup.md +42 -0
  1033. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +32 -29
  1034. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +2 -5
  1035. package/skills/service-digital-engagement-channel-configure/references/routing_transitions.md +48 -0
  1036. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +3 -4
  1037. package/skills/service-digital-engagement-channel-configure/references/user_verification_client.md +51 -0
  1038. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +23 -2
  1039. package/skills/service-digital-engagement-deployment-configure/SKILL.md +28 -10
  1040. package/skills/service-digital-engagement-deployment-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
  1041. package/skills/service-digital-engagement-deployment-configure/references/branding_and_tooling.md +2 -2
  1042. package/skills/service-digital-engagement-deployment-configure/references/code_snippet.md +2 -2
  1043. package/skills/service-digital-engagement-deployment-configure/references/connect_api_creation.md +13 -7
  1044. package/skills/service-digital-engagement-deployment-configure/references/custom_labels.md +127 -0
  1045. package/skills/service-digital-engagement-deployment-configure/references/deployment_settings.md +2 -1
  1046. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +29 -32
  1047. package/skills/service-digital-engagement-deployment-configure/references/prechat_forms.md +1 -1
  1048. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +25 -4
  1049. package/skills/service-email-to-case-configure/SKILL.md +89 -80
  1050. package/skills/service-email-to-case-configure/assets/CaseSettings.settings-meta.xml +1 -1
  1051. package/skills/service-email-to-case-configure/examples/CaseSettings-two-addresses.settings-meta.xml +6 -3
  1052. package/skills/service-email-to-case-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
  1053. package/skills/service-email-to-case-configure/references/agent-delegation.md +22 -0
  1054. package/skills/service-email-to-case-configure/references/apply-mechanics.md +15 -12
  1055. package/skills/service-email-to-case-configure/references/end-to-end-proof.md +14 -0
  1056. package/skills/service-email-to-case-configure/references/onboarding-delegated-run.md +66 -0
  1057. package/skills/service-email-to-case-configure/references/routing_address_reference.md +6 -2
  1058. package/skills/service-email-to-case-configure/references/troubleshooting.md +17 -9
  1059. package/skills/service-email-to-case-configure/scripts/apply-casesettings.py +863 -925
  1060. package/skills/service-email-to-case-configure/scripts/tests/_agent.py +162 -0
  1061. package/skills/service-email-to-case-configure/scripts/tests/_fakeorg.py +119 -155
  1062. package/skills/service-email-to-case-configure/scripts/tests/_run.py +10 -17
  1063. package/skills/service-email-to-case-configure/scripts/tests/test_apply_org_scenarios.py +14 -14
  1064. package/skills/service-email-to-case-configure/scripts/tests/test_dispatch_contract.py +316 -0
  1065. package/skills/service-email-to-case-configure/scripts/tests/test_new_capabilities.py +12 -43
  1066. package/skills/service-email-to-case-configure/scripts/tests/test_validate_casesettings.py +13 -0
  1067. package/skills/service-email-to-case-configure/scripts/validate-casesettings.py +17 -5
  1068. package/skills/service-helpagent-coordinate/README.md +2 -3
  1069. package/skills/service-helpagent-coordinate/SKILL.md +11 -10
  1070. package/skills/service-helpagent-coordinate/assets/help-agent-spec.md +3 -3
  1071. package/skills/service-helpagent-coordinate/references/channel-web-chat.md +33 -1
  1072. package/skills/service-helpagent-coordinate/references/output-report-format.md +8 -2
  1073. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +11 -11
  1074. package/skills/service-remove-agents-from-contact-center-assign/SKILL.md +145 -0
  1075. package/skills/service-voice-configuration-manage/SKILL.md +206 -0
  1076. package/skills/service-voice-configuration-manage/assets/regions.json +23 -0
  1077. package/skills/service-voice-configuration-manage/references/lookups.md +91 -0
  1078. package/skills/service-voice-configuration-manage/references/voice_config_api.md +169 -0
  1079. package/skills/service-voice-configuration-manage/scripts/create-configuration.sh +20 -0
  1080. package/skills/service-voice-configuration-manage/scripts/delete-configuration.sh +31 -0
  1081. package/skills/service-voice-configuration-manage/scripts/get-configuration.sh +18 -0
  1082. package/skills/service-voice-configuration-manage/scripts/lib.sh +22 -0
  1083. package/skills/service-voice-configuration-manage/scripts/list-configurations.sh +18 -0
  1084. package/skills/service-voice-configuration-manage/scripts/lookup-caller-lines.sh +30 -0
  1085. package/skills/service-voice-configuration-manage/scripts/lookup-flows.sh +29 -0
  1086. package/skills/service-voice-configuration-manage/scripts/lookup-profiles.sh +29 -0
  1087. package/skills/service-voice-configuration-manage/scripts/lookup-users.sh +29 -0
  1088. package/skills/service-voice-configuration-manage/scripts/update-configuration.sh +20 -0
  1089. package/skills/tableau-next-asset-create/SKILL.md +10 -4
  1090. package/skills/tableau-next-asset-create/references/dashboard-design-principles.md +133 -0
  1091. package/skills/tableau-next-asset-create/references/data-transform-gotchas.md +284 -128
  1092. package/skills/tableau-next-asset-create/references/deep-reference-index.md +3 -3
  1093. package/skills/tableau-next-asset-create/references/edit-dashboard.md +1 -1
  1094. package/skills/tableau-next-asset-create/references/edit-visualization.md +678 -468
  1095. package/skills/tableau-next-asset-create/references/shared-gates.md +1 -1
  1096. package/skills/tableau-next-asset-create/references/tasks/create-data-transform.md +120 -42
  1097. package/skills/tableau-next-asset-create/references/tasks/create-viz.md +8 -0
  1098. package/skills/tableau-next-asset-create/references/tasks/edit-viz.md +7 -4
  1099. package/skills/tableau-next-asset-create/references/tasks/promote-or-reuse.md +9 -4
  1100. package/skills/tableau-next-asset-create/references/viz-authoring.md +1 -1
  1101. package/skills/service-email-to-case-configure/scripts/tests/test_get_session.py +0 -134
@@ -1,32 +1,36 @@
1
1
  # Editing an Existing Visualization — `edit_visualization` / `update_visualization`
2
2
 
3
3
  Load this when the request mutates a visualization that **already exists** (add/
4
- remove/replace a shelf field, filter, forecast, sort, mark encoding, mark type, dual
5
- axis, reference line, quick table calc, axis title, field label, field/axis
6
- visibility, number/date format, table layout/totals, or fit) — not for building a new
7
- chart (`viz-authoring.md`/`tasks/create-viz.md` instead).
4
+ remove/replace/reorder a shelf field, filter, forecast, sort, mark encoding, mark
5
+ type, mark stacking/centering/connector, layout, fit, dual axis, reference line,
6
+ table calc, axis title, field label, field/axis/header visibility, header rotation
7
+ or size, number/date format, global style, Measure Values, Flow (sankey)
8
+ levels/link, or table totals) — not for building a new chart
9
+ (`viz-authoring.md`/`tasks/create-viz.md` instead).
8
10
 
9
11
  ## Contents
10
12
 
11
- - 1. Contract
12
- - 2. Operation-type quick reference
13
- - 3. Filter-operator rules
14
- - 4. Filter buckets and `{model:}` vs `{expression:}`
15
- - 5. Add-then-filter heuristic
16
- - 6. Sort operations — `targetField` vs `byField`
17
- - 7. Reference lines: `field.function` vs `line.function`
18
- - 8. Table-layout shelf operations (Columns/Groups)
19
- - 9. Table totals and subtotals
20
- - 10. Layout and fit
21
- - 11. Field label, field-label visibility, axis visibility, number/date format
22
- - 12. Measure Values shelf editing
23
- - 13. Table calcs — `quickTableCalc` types and `computeUsing`
24
- - 14. Logical views and HLV field naming
25
- - 15. Persistence handoff — `update_visualization`
13
+ - Contract (skill-specific)
14
+ - Operation reference (synced from upstream): Operation types · Common conventions ·
15
+ Field placement · Change field · Reorder fields · Label · Sort · Mark encoding ·
16
+ Mark type · Mark stacking · Layout · Fit · Dual axis · Reference line · Table
17
+ calculation · Axis title · Field label · Field label visibility · Axis visibility ·
18
+ Number and date format · Global style · Forecast · Filters · Table shelf
19
+ operations · Change field (table shelf) · Measure Values · Flow shelf
20
+ operations · Table totals and subtotals · Field header · Field header sizing ·
21
+ Mark labels · Mark size · Tooltip styling
22
+ - Persistence handoff — `update_visualization` (skill-specific)
23
+
24
+ **New in this sync:** Flow (sankey) changeFieldOnLevels / changeFieldOnLink,
25
+ sort on levels, and stylesheet operations on Flow (`LevelFieldLabelBox`);
26
+ field-label box selectors renamed to `RowFieldLabelBox` / `ColumnFieldLabelBox`;
27
+ `background.color` replaces `backgroundColor`; reference-line dash/width via the
28
+ `"ReferenceLine"` style rule; gridline/tick visibility, row banding, legend, and
29
+ curved-line styling.
26
30
 
27
31
  ---
28
32
 
29
- ## 1. Contract
33
+ ## Contract
30
34
 
31
35
  `edit_visualization`'s **required inputs are `visualizationId` and
32
36
  `editOperations`** — never pass a raw `visualizationMetadata` blob as input, the
@@ -39,467 +43,673 @@ server resolves the metadata itself from the id:
39
43
  then retry.
40
44
  - `editOperations` is a **JSON string** encoding an array of `{operationType, params}`
41
45
  objects — build the array, then `JSON.stringify` it; never pass a raw array.
46
+ Each operation's `params` shape is given in the operation reference below.
42
47
  - Operations run **in order**, each seeing the previous one's result.
43
48
  - The batch is **all-or-nothing** — one failing operation means none are applied.
44
49
  - The result **renders inline automatically** — never call `render_visualization`
45
50
  afterward.
46
51
  - The result is **never persisted**. The response's `outputValues.visualizationMetadata`
47
- holds the edited definition (for `update_visualization`, see §15) — there is no
48
- separate top-level id field in the response. The server keeps per-`visualizationId`
49
- working state: reuse the **same `visualizationId`** you already have (no need to
50
- re-read it from the response) to chain straight into another `edit_visualization`
51
- call, and each call's edits accumulate on top of the previous ones for that id.
52
-
53
- ## 2. Operation-type quick reference
54
-
55
- Every operation targets a field already on a shelf/encoding/axis by
56
- `{fieldName, objectName?, function?}` (`function` disambiguates same-name copies
57
- under different aggregations, e.g. Sum vs Avg of the same measure — never a display
58
- word like "Year", use the canonical values in the Field-functions note below).
59
-
60
- | Category | Operations | Sharpest constraint |
61
- |---|---|---|
62
- | Shelf fields | `addFieldToRowsOrColumns`, `removeFieldFromRowsOrColumns`, `replaceFieldFromRowsOrColumns`, `changeFieldOnRowsOrColumns`, `reorderFieldsOnRowsOrColumns` | `changeFieldOnRowsOrColumns` changes an existing field's aggregation, discrete-vs-continuous display, and/or role in place — never adds/removes/swaps. Params `{field, shelfType, occurrence?, function?, displayCategory?, role?}` — supply at least one of `function` (an aggregation), `displayCategory` (`Discrete`/`Continuous`), or `role` (`Dimension`/`Measure`); omitted ones unchanged. Changing to a Measure requires a `function` (`Sum`/`Avg`/`Median`/`Min`/`Max`/`Count`/`CountD`/`Stdev`/`Stdevp`/`Var`/`Varp`); changing to a Dimension drops it. Examples: "average Sales instead of summing it" → `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", function: "Avg"}`; "make Sales on rows discrete" → `{field: {...Sales}, shelfType: "rows", displayCategory: "Discrete"}`; "turn Category into a measure counting distinct values" → `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "columns", role: "Measure", function: "CountD"}`. Use `occurrence` (1-based) when the same field repeats on a shelf. `addFieldToRowsOrColumns` takes an optional 0-based `insertPosition` (appended when omitted). `reorderFieldsOnRowsOrColumns` moves a field already on the shelf to a new `insertPosition` without adding/removing anything — `insertPosition` is counted over the shelf's fields **after the moved field is taken out first**, so any spot right of its old position shifts left by one; `0` is the front, the shelf's last index the back. |
63
- | Label | `changeLabel` | Renames the **visualization**, not on-chart title text. For a *field's* displayed caption use `editFieldLabel` (§11), not this. |
64
- | Filters | `addFilter`, `editFilter`, `removeFilter` | See §3-5. The field reference lives inside a **`fields` array nested under a `filter` object** — `params: {filter: {fields: [...], operator, values}, bucket}` — never a bare `field:` key. |
65
- | Forecasts | `addForecast`, `editForecast`, `removeForecast` | Timeseries-only (date field + measure). Omitting `forecastInterval` defaults to 4 periods at the date field's own granularity; `forecastInterval` is `{value, timeUnit}` with `timeUnit` ∈ `Minutes`/`Hours`/`Days`/`Weeks`/`Months`/`Quarters`/`Years` to override the period unit explicitly. Other defaults: `forecastModel` → `HoltWinters` (alternative: `RidgeRegression`); `includeBounds` → `true`; `confidenceLevel` → `95` (also `90`/`99`); `fillNullsWithZero` → `false`; `granularity` supports only `InferFromData`. `ignoreLastPeriods` (int) excludes trailing partial/incomplete periods from the fit. Use `occurrence` (1-based) when the target measure repeats on the shelf. `removeForecast` with no `measureField` removes ALL forecasts. Examples: "forecast Sales for 6 months" → `addForecast {measureField: {fieldName: "Sales", objectName: "Orders"}, dateDimensionField: {fieldName: "OrderDate", objectName: "Orders"}, forecastInterval: {value: 6, timeUnit: "Months"}}`; "forecast Revenue 12 months ahead using RidgeRegression" → `addForecast {measureField: {fieldName: "Revenue"}, dateDimensionField: {fieldName: "Date"}, forecastInterval: {value: 12, timeUnit: "Months"}, forecastModel: "RidgeRegression"}`; "change the Sales forecast to 12 months" → `editForecast {measureField: {fieldName: "Sales", objectName: "Orders"}, forecastInterval: {value: 12, timeUnit: "Months"}}`; "remove all forecasts" → `removeForecast {}`. |
66
- | Sort | `sortAscending`, `sortDescending`, `sortByField`, `clearSort` | Only **discrete** fields can be sorted. Target is keyed **`targetField`**, never `field`. See §6. |
67
- | Mark encodings | `addFieldToEncoding`, `removeFieldFromEncoding`, `replaceFieldOnEncoding` | `encodingType` ∈ Color(1 field)/Label(≤3, oldest dropped)/Tooltip(measure only, unlimited)/Size(1 field)/Detail(unlimited). On a **Table** layout only Color/Tooltip are valid slots (Label/Size/Detail error); a dimension dropped onto Color/Tooltip on a Table is coerced to a measure via `Attr`. "Measure Names" is named as `{field: {type: "MeasureNames"}}`, Color-only. `removeFieldFromEncoding`/`replaceFieldOnEncoding` must name the field **currently on that slot** — an arbitrary shelf field errors; read the current encoding first if unsure. Optional `targetField` edits/retypes only ONE field's mark on a multi-measure viz — that field must already be a mark on the visualization or the operation errors; omit it to apply to all marks. Examples: "color by Region" → `addFieldToEncoding {encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}}`; "add Revenue to the tooltip" → `addFieldToEncoding {encodingType: "Tooltip", field: {fieldName: "Revenue", objectName: "Orders"}}`; "size the bubbles by Sales" → `addFieldToEncoding {encodingType: "Size", field: {fieldName: "Sales", objectName: "Orders"}}`; "color by Region instead of by measure" → `replaceFieldOnEncoding {encodingType: "Color", existingField: {type: "MeasureNames"}, newField: {fieldName: "Region", objectName: "Orders"}}`. |
68
- | Mark type | `changeMarkType` | Only changes shape (`Bar`/`Line`/`Circle`/`Square`/`Donut`/`Text`/`automatic`) — never moves/adds fields, so it cannot alone turn one chart type into another that needs a different shelf layout. Same optional `targetField` single-mark-only mechanism as mark encodings above. On a Table layout only `Text`/`Bar` are valid — any other type (including `automatic`) errors. Examples: "draw the marks as lines" → `{markType: "Line"}`; "let the visualization choose" → `{markType: "automatic"}`; "show the table as text" (Table layout) → `{markType: "Text"}`. |
69
- | Layout and fit | `changeLayout`, `changeVisualizationFit` | See §10. |
70
- | Dual axis | `addDualAxis`, `removeDualAxis`, `synchronizeAxis` | Both fields must already be **adjacent continuous fields on the same shelf** — add the second field first if missing. `primaryField` is the LEFT field, `secondaryField` the RIGHT (shelf order matters; the secondary moves onto the shared axis). `synchronization` ∈ `"None"` (default; independent scales) / `"ZeroPosition"` (zero lines align) / `"FullRange"` (shared range) — optional on `addDualAxis`, **required on `synchronizeAxis`**. `"ZeroPosition"` is invalid when both fields are the same kind of date function (use `FullRange`/`None`). `removeDualAxis`/`synchronizeAxis` name the same (primary, secondary) pair. When the same name+object+function pair still repeats on the shelf (can't disambiguate primary/secondary otherwise), add `primaryOccurrence`/`secondaryOccurrence` (1-based) to pick which copy. |
71
- | Reference lines | `addReferenceLine`, `removeReferenceLine`, `editReferenceLine` | VizQL only. See §7 — the single trickiest disambiguation in this tool. |
72
- | Table calcs | `applyTableCalc`, `editTableCalc`, `removeTableCalc` | Target must already be a shelf measure. `edit`/`removeTableCalc` error if the field has no existing calc. See §13 for `quickTableCalc.type` enum values and `computeUsing`. |
73
- | Axis titles | `editAxisTitle`, `resetAxisTitle` | Target by field, not by axis position. |
74
- | Field label | `editFieldLabel` | Renames a field's displayed caption (axis, row/column header, table header) — distinct from `changeLabel` (renames the viz). See §11. |
75
- | Field-label visibility | `showFieldLabel` | Shows/hides the field labels on a whole shelf. Discrete fields only. See §11. |
76
- | Axis visibility | `showAxis` | Shows/hides the axis for one continuous rows/columns field. See §11. |
77
- | Number/date format | `setFieldFormat` | Currency/percentage/abbreviated/decimal-places number formats, or a date template. See §11. |
78
- | Table-shelf fields | `addFieldToGroupsOrColumns`, `removeFieldFromGroupsOrColumns`, `replaceFieldFromGroupsOrColumns`, `reorderFieldsOnGroupsOrColumns`, `changeFieldOnGroupsOrColumns` | TABLE layout only — the table equivalent of the rows/columns ops above. See §8. |
79
- | Table totals | `showGrandTotals`, `showSubtotals`, `editGrandTotalsLabel`, `editSubtotalsLabel` | TABLE layout only. See §9 — includes a reset-semantics gotcha (`{}` vs `{label:""}`). |
80
- | Measure Values | `addFieldToMeasureValues`, `reorderFieldsOnMeasureValues`, `replaceFieldFromMeasureValues`, `removeFieldFromMeasureValues` | VizQL only, and only once the Measure Names/Measure Values construct already exists on the shelf. See §12. |
81
-
82
- **Field functions** (the `function` on a field object) — use canonical values, never
83
- display words: aggregations `Sum/Avg/Median/Count/CountD/Min/Max/Stdev/Stdevp/Var/
84
- Varp/Attr` (`Count`/`CountD`/`Min`/`Max` also apply to dimensions; the rest are
85
- measures only); date parts `DatePart{Year,Quarter,Month,Week,Day,Hour,Minute}`; date
86
- truncations `DateTrunc{Year,Quarter,Month,Week,Day}`; fiscal variants of both exist
87
- (`FiscalDatePartYear`, `FiscalDateTruncQuarter`, …). A date dropped onto a shelf buckets
88
- by year by default — use `DatePartYear` explicitly for a "broken out by year" ask; for
89
- finer/date-part filtering use a `DATEPART`/`DATETRUNC` expression (§4), not a shelf
90
- function.
91
-
92
- ## 3. Filter-operator rules
93
-
94
- 1. **Never `Equals`/`DoesNotEquals`.** Always `In`/`NotIn` — `In` with one value is
95
- the equivalent. "Color is Red" → `operator: "In", values: ["Red"]`.
96
- 2. **Always the `IgnoreCase` string variant** — `ContainsIgnoreCase`,
97
- `StartsWithIgnoreCase`, `EndsWithIgnoreCase`, `DoesNotStartWithIgnoreCase`, etc.
98
- Users almost never intend case-sensitive matching.
99
- 3. **Never `null`/`undefined` in `values`.** If both bounds of a range can't be
100
- expressed with concrete values, pick a different operator.
101
-
102
- Other operator families: comparison (`Between`, `LessThan(OrEqualTo)`,
103
- `GreaterThan(OrEqualTo)`); null/empty (`IsNull`, `IsNotNull`, `IsEmpty`, `IsNotEmpty`);
104
- relative-date (no values: `CurrentWeek`/`PreviousMonth`/`NextYear`… · with `values:[N]`:
105
- `LastNDays`/`NextNWeeks`… — "last/next `<period>`" with no number → singular form,
106
- with a number → `LastN`/`NextN` form, **except** "last 1 quarter" still uses the `LastN`
107
- form with `values:[1]`); fiscal-date variants exist but only fire on an explicit
108
- "fiscal" in the request ("this quarter" ≠ "this fiscal quarter"); date-to-date
109
- (`CurrentYearToDate`, `PreviousQuarterToDate`, …, plain `{model:}`, no expression);
110
- Top/Bottom-N (`operator: "AdvancedDimension"`, `bucket: "advancedDimensionFilter"`,
111
- `topBottomCriteria: {topBottomLimit, isTop, expression}` — always this operator for
112
- any top/bottom-N ask, never a value filter).
113
-
114
- ## 4. Filter buckets and `{model:}` vs `{expression:}`
115
-
116
- Execution order / bucket meaning: `filter` (standard) → `contextFilter` (pre-
117
- aggregation) → `aggregateFilter` (post-aggregation, e.g. `SUM(Sales) > 1000`) →
118
- `tableCalcFilter` (on a table calc) → `advancedDimensionFilter` (Top/Bottom-N).
119
-
120
- Decision rule for the filter's field reference:
121
-
122
- - **`{model: "Object.Field"}`** — plain row-level comparison, no aggregation keyword.
123
- "sales > 1000" → `{model: "Orders.Sales"}`.
124
- - **`{expression: "SUM/AVG/…(...)"}`, `bucket: "aggregateFilter"`** — only when the
125
- request names an aggregate concept explicitly ("total", "sum of", "average", "count
126
- of"). Without one of those keywords, always use `{model:}`.
127
- - **`{expression: "DATEPART(...)"}`/`"DATETRUNC(...)"`** — date-part/date-trunc
128
- phrasing ("orders from 2020 and 2021", "after June 2022"). `DATEPART` returns an
129
- integer; `DATETRUNC` returns a date (values as ISO strings).
130
- - **`{expression: "RUNNING_*/RANK/WINDOW_*(...)"}`, `bucket: "tableCalcFilter"`** —
131
- running total/avg/rank/window/moving/cumulative phrasing. These always wrap an
132
- aggregate expression as their inner argument (e.g. `RANK(SUM([Orders].[Profit]),
133
- 'ASC')`).
134
-
135
- **Whole-`params` shape.** The field reference (`{model:}` or `{expression:}`) is never
136
- passed alone — it sits inside a **`fields` array**, itself nested under a **`filter`**
137
- object, which is a sibling of `bucket` at the top of `params`:
52
+ holds the edited definition (for `update_visualization`, see Persistence handoff) —
53
+ there is no separate top-level id field in the response. The server keeps
54
+ per-`visualizationId` working state: reuse the **same `visualizationId`** you
55
+ already have (no need to re-read it from the response) to chain straight into
56
+ another `edit_visualization` call, and each call's edits accumulate on top of the
57
+ previous ones for that id.
58
+
59
+ ## Operation types
60
+
61
+ - addFieldToRowsOrColumns / removeFieldFromRowsOrColumns / replaceFieldFromRowsOrColumns — add, remove, or swap a field on the rows or columns shelf.
62
+ - changeFieldOnRowsOrColumns — change an existing shelf field's aggregation, discrete-vs-continuous display, and/or role (Dimension vs Measure); does not add/remove/swap.
63
+ - reorderFieldsOnRowsOrColumns — move a field already on the rows or columns shelf to a new position (adds or removes nothing).
64
+ - changeLabel — rename the visualization (its name, not the title drawn on it).
65
+ - addFilter / editFilter / removeFilter — add, update, or remove a filter.
66
+ - addForecast / editForecast / removeForecast — forecast a measure over time; predict future values.
67
+ - sortAscending / sortDescending / sortByField / clearSort — sort a shelf field.
68
+ - addFieldToEncoding / removeFieldFromEncoding / replaceFieldOnEncoding — assign, remove, or swap a marks encoding slot (Color, Label, Tooltip, Size, Detail, Angle, Range).
69
+ - changeMarkType — change the mark shape only (does not add or move fields).
70
+ - stackMarks — set how the marks stack: stacked, unstacked, or automatic (VizQL only).
71
+ - centerMarks — center the stacked value axis on zero (diverging stacked bar) vs. stacking from the baseline (VizQL only).
72
+ - changeMarkConnector — turn a mark's connector (Origami) on or off (VizQL only).
73
+ - changeLayout — switch the whole visualization between the Vizql (chart), Table, Packed (packed-bubble), and Flow (sankey) layouts, migrating the placed fields onto the new layout's shelves.
74
+ - changeVisualizationFit — set how the visualization scales to fit its container.
75
+ - addDualAxis / removeDualAxis / synchronizeAxis — overlay two adjacent continuous fields on one pane with two axes, split them apart, or change how the axes relate.
76
+ - addReferenceLine / removeReferenceLine / editReferenceLine — a reference line on an axis field already on a shelf (VizQL only). Its color, value, label, and scope are set here; its dash pattern and width are set with a `"ReferenceLine"` style rule instead.
77
+ - applyTableCalc / editTableCalc / removeTableCalc — a quick table calculation on a measure already on a shelf.
78
+ - editAxisTitle / resetAxisTitle — set or reset a field's axis title.
79
+ - editFieldLabel — rename a field's label (axis, row/column, or table header).
80
+ - showFieldLabel — show or hide the field labels on the shelf a field sits on (Rows, Columns, Groups, or Levels).
81
+ - showAxis — show or hide the axis for one continuous field on the rows or columns shelf.
82
+ - setFieldFormat — change how a field's values are displayed (currency, percent, abbreviated K/M/B, decimal places, or a date pattern).
83
+ - addFieldToGroupsOrColumns / removeFieldFromGroupsOrColumns / replaceFieldFromGroupsOrColumns / reorderFieldsOnGroupsOrColumns — add, remove, swap, or move a field on a TABLE visualization's Columns or Groups shelf (table layout only).
84
+ - addFieldToLevels / removeFieldFromLevels / replaceFieldOnLevels / reorderFieldsOnLevels — add, remove, swap, or move a field on a FLOW (sankey) visualization's Levels shelf (flow layout only).
85
+ - addFieldToLink / removeFieldFromLink / replaceFieldOnLink — set, clear, or swap the single measure on a FLOW (sankey) visualization's Link shelf (flow layout only).
86
+ - changeFieldOnLevels / changeFieldOnLink — change an existing FLOW level's aggregation, date function, and/or role, or the Link measure's aggregation (flow layout only); no display category (levels are always discrete, the link is always continuous).
87
+ - changeFieldOnGroupsOrColumns — change an existing TABLE shelf field's aggregation and/or role (Dimension vs Measure); does not add/remove/swap, and has no display category (table fields are always discrete).
88
+ - addFieldToMeasureValues / reorderFieldsOnMeasureValues / replaceFieldFromMeasureValues / removeFieldFromMeasureValues — manage the Measure Values shelf so multiple measures share one axis (VizQL only).
89
+ - showGrandTotals / editGrandTotalsLabel / showSubtotals / editSubtotalsLabel — show/hide/position or rename a TABLE visualization's grand-total or subtotal summary rows (table layout only).
90
+ - showHeader / rotateHeader — show or hide a field's header, or rotate its header text (rotate is VizQL only); the field must already be on a shelf.
91
+ - resizeHeader — set the pixel size of one field header (drag-resize); the field must already be on a shelf.
92
+ - showMarkLabel — show or hide the text labels drawn on the data-point marks (the value shown on each bar, point, or slice). Runs on Vizql and Packed layouts.
93
+ - changeMarkSize / resetMarkSize — set the size of the marks (bars, points) drawn in the visualization, or reset that size back to the automatic default. Size is either an absolute pixel value or a percentage of the cell.
94
+ - updateTooltipStyle — style the tooltip (the popover shown when hovering a mark): show/hide it, set its background color and transparency, toggle the built-in action links, and set the tooltip's custom text. Runs on Vizql, Table, and Packed layouts.
95
+ - addStyleRule — add a new stylesheet rule for a selector. `selector` names the element or group to style; `style` carries CSS-vocabulary properties (color, background, font, text, line) directly. Like CSS, a property that does not apply to the selector is stored rather than rejected, but colors must be a valid format (hex, rgb()/rgba(), or SLDS token) and enums a valid member. If the selector already has a rule, the style is merged onto it. Runs on VizQL, Table, Packed, and Flow layouts only.
96
+ - editStyleRule — merge the `style` block onto the selector's existing rule. Same `selector`/`style` shape as addStyleRule. If the selector has no rule yet, the rule is created. Runs on VizQL, Table, Packed, and Flow layouts only.
97
+ - clearStyles — remove ALL the style set for a selector, resetting it to the default. To set one property back (Auto, default, normal), use editStyleRule with that value instead. Takes `selector` (any style selector — a styleable element or group); leaves setFieldFormat styling untouched and is a no-op when the selector was never styled. Runs on VizQL, Table, Packed, and Flow layouts only.
98
+
99
+ ## Common conventions
100
+
101
+ **Operation entry.** Every operation in the batch is `{operationType, params}`. Examples below write the operation name followed by its `params` only — addFilter `{filter: {...}}` means `{operationType: "addFilter", params: {filter: {...}}}`. Never use the operation name as a key (`{addFilter: {...}}` is invalid).
102
+
103
+ **Field object.** A field is `{fieldName, objectName?, function?}`. Filters instead reference fields as `{model: "Object.Field"}` or `{expression: "..."}` (see Filters). Encoding, dual-axis, reference-line, and rows/columns operations all nest the field under a `"field"` key (or named keys like `primaryField`, `targetField`, `existingField`/`newField`). The special Measure Names / Measure Values field has no name of its own — reference it as `{type: "MeasureNames"|"MeasureValues"}` in place of `{fieldName, ...}` (see Measure Values).
104
+
105
+ **`function`** sets aggregation or date bucketing — use these canonical `VisualizationFieldFunctionType` values, NEVER display words like "Year"/"Month":
106
+
107
+ - Aggregations: Sum, Avg, Median, Count, CountD, Min, Max, Stdev, Stdevp, Var, Varp, Attr. (Count/CountD/Min/Max also apply to dimensions; the rest are measures only.)
108
+ - Date parts (→ integer): DatePartYear, DatePartQuarter, DatePartMonth, DatePartWeek, DatePartDay, DatePartHour, DatePartMinute.
109
+ - Date truncations (→ date): DateTruncYear, DateTruncQuarter, DateTruncMonth, DateTruncWeek, DateTruncDay.
110
+ - Fiscal variants exist too (e.g. FiscalDatePartYear, FiscalDateTruncQuarter).
111
+ - Omit `function` to keep a measure's default aggregation. A date dimension on a shelf is bucketed by year, so use `DatePartYear` for "broken out by year"; for finer breakouts or date-part filtering use a DATEPART/DATETRUNC expression, not a shelf function.
112
+
113
+ **`occurrence`** (1-based) picks which copy when the same field sits on a shelf more than once under the same name/object/function. `function` alone distinguishes copies aggregated differently (Sum of Sales vs Avg of Sales).
114
+
115
+ **`shelfType`** (optional, on the per-field header, axis, and field-label operations: showHeader, rotateHeader, resizeHeader, showAxis, editAxisTitle, resetAxisTitle, editFieldLabel, showFieldLabel) names the shelf to look on ("rows", "columns", "groups", or "levels" — each operation allows only the shelves it supports) when the same field sits on more than one shelf. `occurrence` alone cannot say which shelf, so when a field is ambiguous across shelves, pass `shelfType` to pick the shelf; `occurrence` is then counted within that shelf. Omit both when the field is unique.
116
+
117
+ **Semantic models** contain data objects (e.g. "Orders") with dimensions and measures. Reference a field for filters as `{model: "Orders.Region"}`; elsewhere nest `{field: {fieldName: "Region", objectName: "Orders"}}`.
118
+
119
+ **Logical views (incl. hierarchical).** Structure: `semanticLogicalViews[]` → `semanticUnions[]` → `semanticMappedFields[]`. When a field appears under a union, ALWAYS use the logical view's apiName as `objectName`, never the union's (the view is queryable; unions are internal). Example: field "Full_Name20" in Manager_Union44 → `objectName: "Manager_oh"`.
120
+
121
+ - Hierarchical logical views (HLV) expose hierarchy fields. Me/My-team filters use hardcoded API names — Manager hierarchy `SemanticManagerUserIdPath`, Role hierarchy `SemanticRoleUserIdPath`:
122
+ - Me: `{filter: {fields: [{model: "Manager_oh.SemanticManagerUserIdPath"}], operator: "EndsWithIgnoreCase", values: ["{expression: USERID18()}"]}, bucket: "filter"}`
123
+ - My team: same with `operator: "ContainsIgnoreCase"`.
124
+ - Level-based display: add `hierarchyLevel` — `{fieldName: "Full_Name", hierarchyLevel: 1, objectName: "Manager_oh", displayCategory: "Discrete", role: "Dimension", type: "Field"}`.
125
+ - Per-level filters use `ANCESTOR_AT_LEVEL`: `{expression: "ANCESTOR_AT_LEVEL(1, [Manager_oh].[Full_Name])", operator: "In", values: ["Sarah Chen (CEO)"], includeNulls: false}`.
126
+
127
+ ## Field placement (rows/columns shelf)
128
+
129
+ - addFieldToRowsOrColumns takes `{field, shelfType, insertPosition?}` where shelfType is "rows" or "columns" (insertPosition is 0-based, appended when omitted). removeFieldFromRowsOrColumns takes `{field, shelfType, occurrence?}`. replaceFieldFromRowsOrColumns takes `{existingField, newField, shelfType, occurrence?}`.
130
+ - To set up the shared-axis construct on an EMPTY visualization, add the special Measure Names or Measure Values field with `{field: {type: "MeasureNames"|"MeasureValues"}, shelfType}`; remove or replace it the same way. Once the construct exists, add measures with addFieldToMeasureValues (see Measure Values).
131
+ - A dimension with Count, CountD, Min, Max or Attr becomes a measure. Sum/Avg on a text dimension, and a date function on a non-date field, throw. Replacing a discrete field with a continuous one throws; remove the old field, then add the new one with insertPosition.
132
+ - Examples:
133
+ - "Add Category to rows": addFieldToRowsOrColumns `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "rows"}`
134
+ - "Add total Sales to columns": addFieldToRowsOrColumns `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns"}`
135
+ - "Add count distinct of Order_ID to rows": addFieldToRowsOrColumns `{field: {fieldName: "Order_ID", objectName: "Orders", function: "CountD"}, shelfType: "rows"}`
136
+ - "Add Order_Date to columns broken out by year": `{field: {fieldName: "Order_Date", objectName: "Orders", function: "DatePartYear"}, shelfType: "columns"}`
137
+ - "Swap Category for Region on columns": replaceFieldFromRowsOrColumns `{existingField: {fieldName: "Category", objectName: "Orders"}, newField: {fieldName: "Region", objectName: "Orders"}, shelfType: "columns"}`
138
+ - "Add Measure Values to columns" (empty visualization): addFieldToRowsOrColumns `{field: {type: "MeasureValues"}, shelfType: "columns"}`
139
+
140
+ ## Change field (rows/columns shelf)
141
+
142
+ - changeFieldOnRowsOrColumns changes an EXISTING shelf field's aggregation, display category, and/or role, keeping it in place. Params: `{field, shelfType, occurrence?, function?, displayCategory?, role?}` — supply at least one of `function` (an aggregation), `displayCategory` ("Discrete"/"Continuous"), or `role` ("Dimension"/"Measure"); the omitted ones are unchanged. Changing to a Measure requires `function` (Sum, Avg, Median, Min, Max, Count, CountD, Stdev, Stdevp, Var, Varp); changing to a Dimension drops the function. The special Measure Names / Measure Values field cannot be changed — its aggregation, display category, and role are fixed.
143
+ - Use for "average Sales instead of total", "make Sales discrete", "use Sales as a dimension".
144
+ - Examples:
145
+ - "average Sales instead of summing it" (Sales on columns): `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", function: "Avg"}`
146
+ - "make Sales on rows discrete": `{field: {fieldName: "Sales", objectName: "Orders"}, shelfType: "rows", displayCategory: "Discrete"}`
147
+ - "turn Category into a measure counting distinct values": `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "columns", role: "Measure", function: "CountD"}`
148
+
149
+ ## Reorder fields (rows/columns shelf)
150
+
151
+ - reorderFieldsOnRowsOrColumns moves ONE field already on the rows or columns shelf of a Vizql chart to a new position, reordering the shelf in place — it never adds or removes a field. Params: `{field, shelfType, insertPosition, occurrence?}`. `field` can be a semantic field or the special Measure Names / Measure Values field, referenced as `{type: "MeasureNames"|"MeasureValues"}`.
152
+ - `insertPosition` is the 0-based spot the field should land at, counted over the shelf's fields AFTER the moved field is taken out first — so any spot to the right of its old position shifts left by one; 0 is the front, the shelf's last index sends it to the back. `occurrence` (1-based) picks which copy to move when the field repeats.
153
+ - Examples (rows currently hold Region, Segment, Category):
154
+ - "put Category first on rows": `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "rows", insertPosition: 0}`
155
+ - "move Segment to the end of rows": `{field: {fieldName: "Segment", objectName: "Orders"}, shelfType: "rows", insertPosition: 2}`
156
+ - "move Measure Values to the front of rows": `{field: {type: "MeasureValues"}, shelfType: "rows", insertPosition: 0}`
157
+
158
+ ## Label
159
+
160
+ - changeLabel renames the visualization: `{label: "Sales by Region"}`. (The name, not the title text drawn on the visualization.) To rename a field's caption (axis, row/column, or table header), use editFieldLabel, not changeLabel.
161
+
162
+ ## Sort (rows/columns, columns/groups, or levels shelf)
163
+
164
+ - Sorts apply to a discrete field ALREADY on a shelf, identified by `targetField` `{fieldName, objectName?, function?}` — the key is always `targetField`, never `field`. Every copy on the shelf stays in sync. Sort works on Vizql visualizations (rows/columns), tables (columns/groups), and FLOW visualizations (levels only). On a Flow, the Link cannot be sorted ("sort the flows by Sales" means sortByField on a level with byField Sales), a measure on Levels cannot be sorted, and `sortType` "Nested" is not supported.
165
+ - sortAscending / sortDescending sort by the field's OWN values (A→Z / Z→A). If the field is already sorted by another field, these keep that sort and only change direction; pass `sortType: "Alphabetic"` to force a plain alphabetic sort and drop an existing by-field sort.
166
+ - sortByField sorts `targetField` by the AGGREGATED value of `byField` `{fieldName, objectName?, function?}`. `byField.function` is the aggregation (default: measures keep their default, dimensions use "Count"; dimensions allow only Count/CountD/Min/Max). `sortType` "Field" (default) or "Nested" (ordered within each group). `descending` defaults true; set false for smallest first.
167
+ - clearSort removes the current sort.
168
+ - Examples:
169
+ - "Sort Category A to Z": sortAscending `{targetField: {fieldName: "Category", objectName: "Orders"}}`
170
+ - "Sort Category Z to A": sortDescending `{targetField: {fieldName: "Category", objectName: "Orders"}}`
171
+ - "Sort Region to ascending alphabetic" (Region currently sorted by another field): sortAscending `{targetField: {fieldName: "Region", objectName: "Orders"}, sortType: "Alphabetic"}`
172
+ - "Sort States by total Sales, largest first": sortByField `{targetField: {fieldName: "State", objectName: "Orders"}, byField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
173
+ - "Nest a descending sort on Region by sum of Profit": sortByField `{targetField: {fieldName: "Region", objectName: "Orders"}, byField: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, sortType: "Nested"}`
174
+ - "Sort Category by count of Orders, smallest first": sortByField `{targetField: {fieldName: "Category", objectName: "Orders"}, byField: {fieldName: "Order_Id", objectName: "Orders", function: "Count"}, descending: false}`
175
+ - "Clear the sort on States": clearSort `{targetField: {fieldName: "State", objectName: "Orders"}}`
176
+ - "Order the Category nodes of the sankey by Sales" (Flow, Category is a level): sortByField `{targetField: {fieldName: "Category", objectName: "Orders"}, byField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
177
+
178
+ ## Mark encoding
179
+
180
+ - `encodingType` selects the slot and its rules:
181
+ - Color — color by a field. One field; adding replaces the existing. Valid on every mark type.
182
+ - Label — annotate marks. Up to 3 fields; oldest dropped when full. Valid on every mark type.
183
+ - Tooltip — extra data on hover. Unlimited; must be a measure. Valid on every mark type.
184
+ - Size — size marks by a measure. One field; adding replaces the existing. Valid on Bar, Circle, Square, Donut only.
185
+ - Detail — add granularity without changing other encodings. Unlimited. Valid on every mark type.
186
+ - Angle — size donut/pie slices by a continuous measure. One field; must be a continuous measure; adding replaces the existing. **Donut marks only** — if the current mark is not Donut, call changeMarkType `{markType: "Donut"}` first in the same batch (do not put the field on Detail, Color, or Size instead).
187
+ - Range — bar range (start/end) encoding. One field; must be continuous. **Bar marks only** — if the current mark is not Bar, call changeMarkType `{markType: "Bar"}` first (do not remap to another slot).
188
+ - Mark type → encodings: every mark accepts Color, Label, Tooltip, Detail. Size also needs Bar/Circle/Square/Donut. Angle also needs Donut. Range also needs Bar. An encoding that is illegal for the current mark type errors with "Change the mark type to … first".
189
+ - addFieldToEncoding / removeFieldFromEncoding take `{encodingType, field, targetField?, occurrence?}`; replaceFieldOnEncoding takes `{encodingType, existingField, newField, targetField?, occurrence?}`. `targetField` is optional, applies to all marks by default; set it to a field that already has its own mark (e.g. one measure of a multi-measure viz, or one column of a table) to edit only that mark, else the operation errors. When that measure is placed more than once (two identical sub-marks fieldName/objectName/function cannot tell apart), pass `occurrence` (1-based, counted by shelf position) with `targetField` to pick which one; `occurrence` without `targetField` errors.
190
+ - For removeFieldFromEncoding / replaceFieldOnEncoding, name the field CURRENTLY ON the slot (the one the viz is colored/labeled/sized by), not an arbitrary shelf field or column — naming a field not on the slot errors. If unsure, read the current encoding first.
191
+ - On a Table layout only "Color" and "Tooltip" are valid slots ("Label", "Size", "Detail", "Angle", "Range" error). On a Table, Color and Tooltip take only measures, so a dimension added to either is coerced to a measure (aggregated with Attr). With no `targetField` the encoding applies to every column; set `targetField` to color/tooltip only one column's mark.
192
+ - On a Packed (packed-bubble) layout the valid slots are "Color", "Detail", "Size", "Label", and "Tooltip" ("Angle" and "Range" error, since those need Donut/Bar marks). Color and Detail add a hierarchy level; Size sets the bubble magnitude by a measure (coerced to continuous); Label and Tooltip are nonstructural. A Packed viz has one panes mark for the whole visualization, so omit `targetField`.
193
+ - On a Flow (sankey) layout an encoding targets one of two marks, so set `markTarget` to "Nodes" or "Links" — required on Flow (omit it and the operation errors), and valid only on Flow (set it on any other layout and the operation errors). Nodes are the stage bars; links are the flows (ribbons) between stages. The valid slots differ by mark: **Nodes** take Color, Detail, Label; **Links** take Color, Detail, Tooltip (Label on links and Tooltip on nodes error, as do Size, Angle, and Range on either). **Never put a measure on a Nodes slot** (Color, Detail, or Label) — a Nodes slot takes a DIMENSION only, and a measure errors. Coloring, labeling, or detailing the nodes (stage bars) by a measure is not supported; tell the user it is not supported rather than moving the measure to the Link or a Links slot — the Link sizes the flows, so putting it there changes flow sizing, which is not what was asked. Links have no Label slot, so "label the links with <field>" means show that field on the links Tooltip (`markTarget` "Links") instead — never a Label. Use `markTarget` to pick the mark — `targetField` does not apply on Flow and errors.
194
+ - The special "Measure Names" field colors measures apart and has no name — reference it as `{field: {type: "MeasureNames"}}`, Color slot only (a dual axis adds it there).
195
+ - Examples:
196
+ - "color the visualization by Region": addFieldToEncoding `{encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}}`
197
+ - "stop coloring by Region": removeFieldFromEncoding `{encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}}`
198
+ - "stop coloring the two measures apart" (remove the measure-names color a dual axis added): removeFieldFromEncoding `{encodingType: "Color", field: {type: "MeasureNames"}}`
199
+ - "color by Region instead of by measure": replaceFieldOnEncoding `{encodingType: "Color", existingField: {type: "MeasureNames"}, newField: {fieldName: "Region", objectName: "Orders"}}`
200
+ - "label the marks by Product": addFieldToEncoding `{encodingType: "Label", field: {fieldName: "Product", objectName: "Orders"}}`
201
+ - "add Revenue to the tooltip": addFieldToEncoding `{encodingType: "Tooltip", field: {fieldName: "Revenue", objectName: "Orders"}}`
202
+ - "size the bubbles by Sales": addFieldToEncoding `{encodingType: "Size", field: {fieldName: "Sales", objectName: "Orders"}}`
203
+ - "break the marks down by Segment": addFieldToEncoding `{encodingType: "Detail", field: {fieldName: "Segment", objectName: "Orders"}}`
204
+ - "color the table by Region" (Table layout): addFieldToEncoding `{encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}}`
205
+ - "size the bubbles by Sales" (Packed layout): addFieldToEncoding `{encodingType: "Size", field: {fieldName: "Sales", objectName: "Orders"}}`
206
+ - "break the bubbles down by Segment" (Packed layout): addFieldToEncoding `{encodingType: "Detail", field: {fieldName: "Segment", objectName: "Orders"}}`
207
+ - "color the flow nodes by Segment" (Flow layout): addFieldToEncoding `{encodingType: "Color", field: {fieldName: "Segment", objectName: "Orders"}, markTarget: "Nodes"}`
208
+ - "add Sales to the link tooltip" / "show Sales on the flows" (Flow layout): addFieldToEncoding `{encodingType: "Tooltip", field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, markTarget: "Links"}`
209
+ - "add a tooltip to the nodes showing Sales" (Flow layout — Nodes have no Tooltip slot, so put it on the links): addFieldToEncoding `{encodingType: "Tooltip", field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, markTarget: "Links"}`
210
+ - "label the links with Profit" (Flow layout — Links have no Label slot, so show it in the links tooltip): addFieldToEncoding `{encodingType: "Tooltip", field: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, markTarget: "Links"}`
211
+ - "stop coloring the flow nodes" (Flow layout, nodes colored by Segment): removeFieldFromEncoding `{encodingType: "Color", field: {fieldName: "Segment", objectName: "Orders"}, markTarget: "Nodes"}`
212
+ - "add Region to color, Profit to angle" (not yet a donut): changeMarkType `{markType: "Donut"}`, then addFieldToEncoding `{encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}}`, then addFieldToEncoding `{encodingType: "Angle", field: {fieldName: "Profit", objectName: "Orders"}}`
213
+ - "color the second Sales measure by Region" (Sales placed twice): addFieldToEncoding `{encodingType: "Color", field: {fieldName: "Region", objectName: "Orders"}, targetField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`
214
+
215
+ ## Mark type
216
+
217
+ - changeMarkType sets the mark shape for the whole visualization, or one measure's mark. It changes shape only — it does not move fields, so it won't by itself convert a chart to one needing a different layout.
218
+ - `markType`: "Bar", "Line", "Circle", "Square", "Donut", "Text", or "automatic" (lets the viz pick). `targetField` (optional) retypes only one field's mark; that field must already be a mark. When that measure is placed more than once (two identical sub-marks), pass `occurrence` (1-based, counted by shelf position) with `targetField` to pick which one; `occurrence` without `targetField` errors.
219
+ - On a Table layout only "Text" and "Bar" are valid; any other type (including "automatic") errors. On a Packed (packed-bubble) layout only "Square" (treemap) and "Circle" (bubble) are valid and "automatic" resolves to "Square"; any other type errors. A Packed viz has one panes mark for the whole visualization, so omit `targetField` (passing one errors). Vizql visualizations accept the full set.
220
+ - Examples: "draw the marks as lines" → `{markType: "Line"}`; "let the visualization choose" → `{markType: "automatic"}`; "show the table as text" (Table layout) → `{markType: "Text"}`; "show the bubbles as a treemap" (Packed layout) → `{markType: "Square"}`; "make the bubbles circles" (Packed layout) → `{markType: "Circle"}`; "make the second Sales a line" (Sales placed twice) → `{markType: "Line", targetField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`.
221
+
222
+ ## Mark stacking (VizQL visualizations only)
223
+
224
+ - These operations control how the marks stack. Each takes an optional `field`: omit it to affect all marks; pass it to target one field's mark (by fieldName, plus objectName/function when needed). `field` is never a field key. All apply to VizQL charts only.
225
+ - stackMarks sets how marks stack via two flags: `{isStacked, isAutomatic, field?, occurrence?}`. `isStacked: true` stacks the marks, `false` does not; `isAutomatic: true` lets the visualization decide the stacking. Both flags are required and mirror the mark's stack metadata: to stack pass `{isStacked: true, isAutomatic: false}`, to unstack pass `{isStacked: false, isAutomatic: false}`, and to let the visualization decide pass `{isStacked: true, isAutomatic: true}`.
226
+ - centerMarks sets whether the stacked value axis is centered on zero (a diverging stacked bar) vs. stacking from the baseline: `{centered, field?, occurrence?}`. This is distinct from stackMarks — use stackMarks to choose the stacking mode, and centerMarks to center an already-stacked axis.
227
+ - changeMarkConnector sets the mark's connector (the Origami line joining marks, e.g. across gaps in a line): `{connectorType?, field?, occurrence?}`. Pass `connectorType: "Origami"` to draw the connector, or omit `connectorType` to remove it. Use this when the query asks to show or hide the connector/connecting line between marks.
228
+ - When the same measure is placed more than once (two identical sub-marks that fieldName/objectName/function cannot tell apart), pass `occurrence` (1-based, counted by placement order) to pick which one; omit it when the field is unique.
229
+ - Examples:
230
+ - "stack the bars": stackMarks `{isStacked: true, isAutomatic: false}`
231
+ - "unstack the bars": stackMarks `{isStacked: false, isAutomatic: false}`
232
+ - "let the chart decide whether to stack": stackMarks `{isStacked: true, isAutomatic: true}`
233
+ - "center the stacked axis" / "make it a diverging stacked bar": centerMarks `{centered: true}`
234
+ - "connect the marks" / "show the connector": changeMarkConnector `{connectorType: "Origami"}`
235
+ - "hide the connector line": changeMarkConnector `{}`
236
+ - "stack the second Sales": stackMarks `{isStacked: true, isAutomatic: false, field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`
237
+
238
+ ## Layout
239
+
240
+ - changeLayout switches the whole visualization between the Vizql, Table, Packed, and Flow layouts, migrating the placed fields onto the target layout's shelves. Unlike changeMarkType (which only changes the mark shape), it changes the layout itself. `targetLayout` is a canonical `VisualizationLayout` value: "Vizql", "Table", "Packed", or "Flow".
241
+ - Pick the layout by what the user wants to see: a bar/line/area/scatter graph → "Vizql"; a text table → "Table"; a packed-bubble chart → "Packed"; a sankey/flow diagram → "Flow". A donut or pie is still Vizql — set the mark type to "Donut" with changeMarkType (Angle encoding is Donut-only). This operation cannot switch to Map or Radial, so it accepts only "Vizql", "Table", "Packed", and "Flow".
242
+ - Packed and Flow convert directly to each other. Going Packed→Flow, the hierarchy dimensions become the flow levels and the first measure becomes the link; going Flow→Packed, the link measure becomes the Size bubble magnitude and the levels become Detail hierarchy.
243
+ - Examples: "turn this into a table" → `{targetLayout: "Table"}`; "make this a bar chart again" → `{targetLayout: "Vizql"}`; "show this as packed bubbles" → `{targetLayout: "Packed"}`; "turn this into a sankey" → `{targetLayout: "Flow"}`; "switch this flow diagram back to a bar chart" → `{targetLayout: "Vizql"}`; "turn these packed bubbles into a sankey" → `{targetLayout: "Flow"}`; "show this sankey as packed bubbles" → `{targetLayout: "Packed"}`.
244
+ - Chaining: run changeLayout BEFORE any layout-specific operation, so the fields have landed on the target layout's shelves first. e.g. "turn this into a table and add a grand total row" → changeLayout `{targetLayout: "Table"}`, then showGrandTotals `{isVisible: true}`.
245
+
246
+ ## Fit (visualization sizing)
247
+
248
+ - changeVisualizationFit sets how the visualization scales to fit its container: `{fit: "Standard"|"Entire"|"RowHeadersWidth"}`. "Standard" is default sizing (VizQL and Table); "Entire" fills the whole view (VizQL only); "RowHeadersWidth" fits the row-header width (Table only).
249
+ - Examples: "make this chart fit the entire view" → `{fit: "Entire"}`; "fit the table to the row headers" → `{fit: "RowHeadersWidth"}`; "use standard fit" → `{fit: "Standard"}`.
250
+
251
+ ## Dual axis
252
+
253
+ - A dual axis overlays two continuous fields (measures or dates, any combination) that are ALREADY adjacent on the SAME shelf. addDualAxis does not add fields — add the second with addFieldToRowsOrColumns first.
254
+ - `primaryField` is the LEFT field, `secondaryField` the RIGHT (their shelf order matters; the secondary moves onto the shared axis). Each is `{fieldName, objectName?, function?}`. Add `primaryOccurrence`/`secondaryOccurrence` (1-based) when name+object+function still repeat.
255
+ - `synchronization`: "None" (default; independent scales), "ZeroPosition" (zero lines align), or "FullRange" (shared range). Optional on addDualAxis; REQUIRED on synchronizeAxis. "ZeroPosition" is not allowed when both fields are dates of the same kind — use "FullRange" or "None".
256
+ - removeDualAxis and synchronizeAxis name the same (primary, secondary) pair.
257
+ - Examples:
258
+ - "make Sales and Profit a dual axis" (both on columns, Sales left): addDualAxis `{primaryField: {fieldName: "Sales", objectName: "Orders"}, secondaryField: {fieldName: "Profit", objectName: "Orders"}}`
259
+ - "overlay Profit on Sales with aligned zero lines": add `synchronization: "ZeroPosition"` to the above.
260
+ - "make the Sales/Profit dual axis share one range": synchronizeAxis `{primaryField: {...Sales}, secondaryField: {...Profit}, synchronization: "FullRange"}`
261
+
262
+ ## Reference line (VizQL visualizations only)
263
+
264
+ - A reference line marks a value on an axis `field` (`{fieldName, objectName?, function?}`) ALREADY on a shelf; these operations never add the field. When the same field is on the shelf under different aggregations, set `field.function` to pick the pill.
265
+ - Two different functions — do not confuse:
266
+ - `field.function` selects the AXIS field (its shelf aggregation). "Sum of Sales" names THIS field.
267
+ - `line.function` is the LINE's own computation (average line, max line). Set it only when the request names that statistic. So "add a reference line to Sum of Sales" attaches a default (average) line to the Sum-of-Sales pill — set `field.function: "Sum"` and OMIT `line`; it does NOT mean a sum line.
268
+ - Line kinds (`line`):
269
+ - Computation line: `{valueType: "Computation", function}` where function is "Sum"/"Avg"/"Min"/"Max" (measure) or "Max"/"Min"/"Today"/"Now" (date). Omitting `line` on addReferenceLine defaults to an average line (measure) / latest-date line (date). To compute from a DIFFERENT field, set `line.computationField` `{fieldName, objectName?, function?}` (need not be on a shelf).
270
+ - Constant line: `{valueType: "Value", value}` — a number (measure axis) or ISO date string (date axis).
271
+ - Optional label goes INSIDE `line`: `labelType` is "None"/"Value"/"Computation"/"Custom" (with `customLabel`). `scope` is "Table" (default)/"Pane"/"Cell". `lineColor` is a top-level hex (default gray), accepted by both add and edit.
272
+ - Selecting among multiple lines on a field: describe by `computationFunction`, `value`, `labelText`, `scope`, or `lineValueType` (use these when the request describes the line itself — "the average line" → `computationFunction: "Avg"`, "the line labeled Goal" → `labelText: "Goal"`); or pick by position with `lineOccurrence` (1-based). `lineOccurrence` picks WHICH LINE; `occurrence` picks WHICH SHELF PILL (only when the field repeats on the shelf). When no pill is named, `lineOccurrence` counts across all matching pills.
273
+ - removeReferenceLine removes every matching line (all lines on the field unless narrowed by `scope`). editReferenceLine changes exactly ONE line (errors if ambiguous) and changes only what you pass: set `scope`/`lineColor`/`labelType`+`customLabel` to change just those (keeps the value); set `line` to change the value/function (keeps the label unless you also pass label fields). A label passed at the top level wins over one nested inside `line`.
274
+ - Color versus dash and width — the same for "reference line" and "reference lines":
275
+ - Color, value, label, and scope belong to each line: use editReferenceLine (`lineColor` for color). Never send a color in a `"ReferenceLine"` style rule; that rule is not tied to one line, so it would recolor every reference line.
276
+ - Dash pattern (dotted, dashed, solid) and width (thicker, 2px) are NOT editReferenceLine settings; they are a global style rule on the `"ReferenceLine"` selector that styles every reference line (see Global style). editReferenceLine has no dash or width setting.
277
+ - A request for both ("make the reference line red and dotted") is two operations: editReferenceLine with `lineColor`, plus the `"ReferenceLine"` style rule with `line.style`.
278
+ - Examples:
279
+ - "add an average line to Sales": addReferenceLine `{field: {fieldName: "Sales", objectName: "Orders"}}`
280
+ - "add a target line at 5000 on Sales": `{field: {fieldName: "Sales", objectName: "Orders"}, line: {valueType: "Value", value: 5000}}`
281
+ - "add a line at 100 on avg of Sales labeled 'target' in green": `{field: {fieldName: "Sales", objectName: "Orders", function: "Avg"}, line: {valueType: "Value", value: 100, labelType: "Custom", customLabel: "target"}, lineColor: "#00FF00"}`
282
+ - "add a sum line for Sales per pane": `{field: {fieldName: "Sales", objectName: "Orders"}, line: {valueType: "Computation", function: "Sum"}, scope: "Pane"}`
283
+ - "add an average line on Sales computed using sum of Discount": `{field: {...Sales}, line: {valueType: "Computation", function: "Avg", computationField: {fieldName: "Discount", objectName: "Orders", function: "Sum"}}}`
284
+ - "add a max line on the 1st Sum of Sales" (repeated pill → occurrence): `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 1, line: {valueType: "Computation", function: "Max"}}`
285
+ - "make the Sales reference line red" (color only, omit `line`): editReferenceLine `{field: {...Sales}, lineColor: "#FF0000"}`
286
+ - "make reference lines red" or "make the reference lines red" (one reference line, on Sales): editReferenceLine `{field: {...Sales}, lineColor: "#FF0000"}` — not a style rule, even when a `"ReferenceLine"` rule exists. Plural "lines" does not make color a style rule.
287
+ - "make all the reference lines red" (two lines on Sales): two editReferenceLine operations in one call, `{field: {...Sales}, lineOccurrence: 1, lineColor: "#FF0000"}` and `{field: {...Sales}, lineOccurrence: 2, lineColor: "#FF0000"}`
288
+ - "make the reference line dotted" or "make the reference lines dotted": addStyleRule `{selector: "ReferenceLine", style: {line: {style: "Dotted"}}}` (editStyleRule if a `"ReferenceLine"` rule exists) — not editReferenceLine
289
+ - "remove the 2nd reference line on avg of Sales": removeReferenceLine `{field: {fieldName: "Sales", objectName: "Orders", function: "Avg"}, lineOccurrence: 2}`
290
+ - "update the 2nd reference line on the 1st Sum of Sales to a max line" (BOTH selectors): editReferenceLine `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 1, lineOccurrence: 2, line: {valueType: "Computation", function: "Max"}}`
291
+
292
+ ## Table calculation (on a measure already on a shelf)
293
+
294
+ - Works on both chart and table visualizations. Target a measure by `field` (`{fieldName, objectName?, function?}`, plus `occurrence` when it still repeats).
295
+ - `quickTableCalc.type`: RunningSum, RunningAvg, RunningMin, RunningMax, Difference, PercentDifference, PercentOfTotal, Rank, RankModified, RankDense, RankUnique, Percentile, MovingSum, MovingAverage, MovingMin, MovingMax.
296
+ - Moving types accept `previousValues`, `nextValues`, `useCurrentValue`. MovingAverage defaults to 2/0/true; other moving types have no defaults.
297
+ - Ranking types accept `order` ("Ascending"/"Descending"); Rank defaults "Descending".
298
+ - `computeUsing` (optional): `{type, useOrderByForExtraFields?}`. `type` is the direction — TableAcross, TableDown, TableAcrossThenDown, TableDownThenAcross, PaneAcross, PaneDown, PaneAcrossThenDown, PaneDownThenAcross, Cell. `useOrderByForExtraFields` (boolean) orders the extra (non-addressing) fields by the sort applied to them. applyTableCalc and editTableCalc take the same `computeUsing` shape.
299
+ - applyTableCalc adds; editTableCalc changes (errors if none); removeTableCalc clears (errors if none).
300
+ - Examples:
301
+ - "show Sales as a running total": applyTableCalc `{field: {fieldName: "Sales", objectName: "Orders"}, quickTableCalc: {type: "RunningSum"}}`
302
+ - "show a 3-period moving average of Sales": `{field: {...Sales}, quickTableCalc: {type: "MovingAverage", previousValues: 2, nextValues: 0, useCurrentValue: true}}`
303
+ - "compute the running total down the table instead": editTableCalc `{field: {...Sales}, quickTableCalc: {type: "RunningSum"}, computeUsing: {type: "TableDown"}}`
304
+ - "remove the table calculation from Sales": removeTableCalc `{field: {...Sales}}`
305
+
306
+ ## Axis title
307
+
308
+ - editAxisTitle sets a custom axis label: `{field, axisTitle, occurrence?, shelfType?}`. resetAxisTitle reverts to default: `{field, occurrence?, shelfType?}`. Identify the axis by `field` (`fieldName`, `objectName`, optional `function`), not by its position (X/Y); `shelfType` is "rows" or "columns".
309
+ - The axis title is independent of the field's own label: editAxisTitle sets only that axis's title text, while editFieldLabel renames the field's caption wherever it appears (axis, headers). Use editAxisTitle when the request is about the axis title; use editFieldLabel when it renames the field itself.
310
+ - Examples: "Rename the Y axis to Revenue" → editAxisTitle `{field: {fieldName: "Sales", objectName: "Orders"}, axisTitle: "Revenue"}`; "Reset the Revenue axis title" → resetAxisTitle `{field: {fieldName: "Revenue", objectName: "Orders"}}`.
311
+
312
+ ## Field label (rename)
313
+
314
+ - editFieldLabel renames a field's label — the caption shown wherever the field's name appears (axis, row/column header, table header): `{field, label, occurrence?, shelfType?}`. Pass `label` to rename; an empty string reverts to the default name. `shelfType` is "rows", "columns", "groups", or "levels". Works on any layout. Distinct from changeLabel (renames the visualization) and editAxisTitle (sets an axis title independent of the field's label).
315
+ - Examples: "Rename the Sales axis to Revenue" → `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, label: "Revenue"}`; "Reset the Sales label" → `{field: {...Sales}, label: ""}`.
316
+
317
+ ## Field label visibility
318
+
319
+ - showFieldLabel shows or hides the field labels on the shelf a field sits on (per-shelf: affects every field on that shelf): `{field, isVisible, occurrence?, shelfType?}`. `shelfType` is "rows", "columns", "groups", or "levels". Only supported on the Rows, Columns, Groups, and Levels shelves (Vizql, Table, Flow), and only for discrete fields (depends on display category, so a discrete measure can be toggled but a continuous field errors).
320
+ - Example: "Hide the row field labels" → `{field: {fieldName: "Region", objectName: "Orders"}, isVisible: false}`.
321
+
322
+ ## Axis visibility
323
+
324
+ - showAxis shows or hides the axis for one continuous field on the Rows or Columns shelf: `{field, isVisible, occurrence?, shelfType?}`. `shelfType` is "rows" or "columns".
325
+ - Example: "hide the Sales axis" → `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, isVisible: false}`.
326
+
327
+ ## Number and date format
328
+
329
+ - setFieldFormat changes how a field's VALUES are displayed — not its aggregation/role/position (use changeFieldOnRowsOrColumns) or its axis name (editAxisTitle). `targetField` (`{fieldName, objectName?, function?}`) must already be on a shelf or a mark encoding; every copy of the field is reformatted together.
330
+ - Number format: `format: {type: "Number"|"Percentage"|"Currency"|"NumberShort"|"PercentageShort"|"CurrencyShort" (the "Short" forms abbreviate to K/M/B), decimalPlaces? (0 for whole numbers, 2 for cents), displayUnits? ("Auto"|"None"|"K"|"M"|"B"|"G"), prefix?, suffix?, negativeValuesFormat? ("Auto"|"Parenthesis"|"Minus"), includeThousandSeparator?}`.
331
+ - Date format: `format: {dateTemplate: "MM/dd/yyyy"|"yyyy-MM-dd"|...}`. A date/datetime field takes only a `dateTemplate`; a non-date field only a number format (mixing errors); a date measure accepts a `dateTemplate` only when aggregated with Min, Max, or Attr.
332
+ - Examples:
333
+ - "Show Sales as currency": `{targetField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, format: {type: "Currency"}}`
334
+ - "Format Discount as a percent with 1 decimal place": `{targetField: {fieldName: "Discount", objectName: "Orders"}, format: {type: "Percentage", decimalPlaces: 1}}`
335
+ - "Abbreviate Sales to millions": `{targetField: {...Sales}, format: {type: "NumberShort", displayUnits: "M"}}`
336
+ - "Show Order Date as MM/DD/YYYY": `{targetField: {fieldName: "Order_Date", objectName: "Orders"}, format: {dateTemplate: "MM/dd/yyyy"}}`
337
+
338
+ ## Global style
339
+
340
+ - These operations style the visualization's chrome — its text, lines, background, and the look of every mark — not one field's data. Send only the properties the user asked to change, even when the rule is new — omitted properties keep their current look, so never send a full block. A property set to the value the element shows by default is removed from the rule rather than stored, so "set it back to the default" is the same request with the default value. A color may be a hex string, an `rgb()`/`rgba()` value, or an SLDS color token.
341
+ - A grand total, subtotal, or header font, color, or alignment is NEVER `"Global"`, `"Headings"`, or `"BodyText"`. `"Global"` changes every text element and stores only the properties sent, so `{selector: "Global", style: {font: {size: 20}}}` does not format the grand total label. "Grand total label" / "total row name" → `"GrandTotalLabel"`. "Grand total numbers" / "total values" → `"GrandTotalValue"`. The same split for subtotals. Say both only when the user names both the label and the numbers. Each of the four is its own rule: a `"GrandTotalLabel"` rule does not give `"GrandTotalValue"` one, so the first change to the numbers is addStyleRule even after the label was styled.
342
+ - addStyleRule and editStyleRule both take a `selector` and a `style` block. `selector` names the element or group; `style` carries the properties. Like CSS, a property that does not apply to the selector is stored rather than rejected, so prefer the property groups below. Choose by looking in `visualSpecification.stylesheet.rules` for a rule whose `selector` is exactly the selector you are sending: if there is none, use addStyleRule; if there is one, use editStyleRule (it merges onto that rule — top-level keys and the `font`/`text`/`line`/`border` sub-blocks). Both write the same way, so a wrong pick still works, but send the one that matches. Rules for other selectors never count, even closely related ones: a `"Global"` rule ("all the text") is NOT a `"Headings"` or `"BodyText"` rule, and a group rule is never a rule for one of its elements, so the first change to any of them is still addStyleRule.
343
+ - Only `visualSpecification.stylesheet.rules` counts. Every visualization also carries built-in settings under `visualSpecification.style` — such as `style.fonts.fieldLabels`, `style.fonts.headers`, `style.fieldLabels` with a default size, color, or background, or `style.referenceLines` — and these are NEVER rules. A field label size of 13 in `style.fonts` does not mean `"FieldLabel"` has a rule, so "set the field label text size to 20" there is still addStyleRule.
344
+ - Check the rules again for EVERY style request, even a follow-up about the same element. When `visualSpecification.stylesheet` is missing or its `rules` list is empty, no selector has a rule, so every style change is addStyleRule. Once an element has been styled, every later change to it is editStyleRule. The user's wording never decides it: "make", "change", "set", "update", and "now make" can all mean either one.
345
+ - Inside one batch, an addStyleRule creates the rule for later operations, so a second change to the same selector in that batch is editStyleRule.
346
+ - `selector` — a `StylableElementType` element or a `StyleElementGroup` group, one of the values below. Text: typography groups `"Global"`, `"Headings"`, `"BodyText"`; labels `"FieldLabel"`, `"RowFieldLabelBox"`, `"ColumnFieldLabelBox"`, `"LevelFieldLabelBox"` (Flow only), `"HeaderLabel"`, `"AxisTickLabel"`, `"MarkLabel"`, `"LegendLabel"`, `"GrandTotalLabel"`, `"SubtotalLabel"`; titles `"AxisTitle"`, `"LegendTitle"`; values `"GrandTotalValue"`, `"SubtotalValue"`. Lines: individual elements `"AxisLine"` (the axis's own line), `"AxisTick"` (the short tick-mark strokes, NOT their text), `"GridLine"` (lines across the plot at each tick; by default only for visible axes, but an explicit `GridLine` visibility rule draws them on every axis), `"ZeroLine"` (the line at the axis's zero value), `"SeparatorLine"` (the lines between header groups), `"ReferenceLine"` (only the dash pattern and width of every reference line; its color is editReferenceLine `lineColor`, and its label is not styled here); or the group `"VizLines"` (all line elements at once). Background/fill: `"Scene"` (whole background, the only background on a Packed visualization) and `"Header"` (the row and column header cells; `"Cell"` on a Table layout), and `"Row"` (Table only: alternating row stripes, see the banding bullet below). Marks: `"Mark"` (every data mark on a Vizql chart; see the marks bullet below).
347
+ - Never send these selectors; they are not styled with these operations: `"HeaderBackground"`, `"FieldLabelBackground"`, `"RowFieldLabel"`, `"ColumnFieldLabel"`, `"LevelFieldLabel"`, `"SliceFieldLabel"`, and `"RingFieldLabel"` (old names; use `"Header"` and the field label selectors below), `"PackedContainer"`, `"Pane"`, `"TrendLine"`, `"ReferenceLineLabel"`. When the user asks to style one of these, say it cannot be styled instead of sending a rule for a different selector.
348
+ - Picking the right line or tick selector: `"AxisTick"` is the tick-mark stroke, `"AxisTickLabel"` is the value text (the numbers) — route "tick marks" to `AxisTick`, and "tick labels", "axis values", or "the numbers on the axis" to `AxisTickLabel`. "Axis labels" means the axis titles (the field name beside each axis, called Axis Labels in the authoring UI), so route both "axis labels" and "axis titles" to `"AxisTitle"`, never `"AxisTickLabel"`. Restyling them is still a style rule; only renaming the text uses editAxisTitle. When the user names a single line element ("the axis line", "the gridlines"), use that element (`"AxisLine"`, `"GridLine"`), NOT the `"VizLines"` group; use `"VizLines"` only for "all the lines". A more specific element rule overrides the group, so prefer the element unless the user clearly means all lines.
349
+ - `style` — `color` (text or line color), a `background` block (`background.color` is the fill color), a `font` block (`font.family`, `font.size`, `font.weight` `"Normal"`|`"Bold"`, `font.italic` and `font.underline` booleans), a `text` block (`text.wrap` boolean, `text.halign` `"Left"`|`"Center"`|`"Right"`|`"Auto"`, `text.valign` `"Top"`|`"Middle"`|`"Bottom"`, `text.textDirection` `"Horizontal"`|`"VerticalUp"`|`"VerticalDown"`|`"Auto"`, `text.rotation` degrees), a `line` block (`line.width`, `line.style` dash pattern `"Solid"`|`"Dashed"`|`"Dotted"`|`"WideGapDash"`|`"ShortDash"`), a `banding` block (`banding.color`, only on `"Row"`), and `visibility` `"Visible"`|`"Hidden"` (only on the line selectors below). Do not send `opacity` on text, header, background, or line selectors: none of them has an opacity setting, so there is no style rule for making text, totals, or headers transparent. Only `"GridLine"` and `"Mark"` take `opacity`.
350
+ - Lines (Vizql charts) — send only what was asked, on the selector for that line:
351
+ - `"GridLine"` takes `color`, `line.width`, `line.style`, `opacity` (0 to 100, where 100 is solid), and `visibility`. "Show the gridlines" → `visibility: "Visible"`; "hide the gridlines" → `visibility: "Hidden"`.
352
+ - `"AxisTick"` takes `color`, `line.width`, and `visibility`. Tick marks are hidden by default, so "show the axis ticks" → `visibility: "Visible"`, and "hide the axis ticks" → `visibility: "Hidden"`.
353
+ - `"ReferenceLine"` takes only `line.width` and `line.style`, and styles every reference line at once. A dash pattern or width for a reference line ("make the reference line dotted", "thicker reference lines") is ALWAYS this style rule, even when there is only one reference line: editReferenceLine has no dash or width setting. NEVER send `color` on it, even when a `"ReferenceLine"` rule already exists: this rule is not tied to one line, so a color here would recolor every reference line. A reference line's color ("make the reference line red", "make the reference lines red") is always editReferenceLine `lineColor`, which is also how to change one line's value or type. Every reference line comes with its own built-in style in `visualSpecification.style.referenceLines`; that is not a rule, so the first dash or width change is addStyleRule unless `stylesheet.rules` already has a `"ReferenceLine"` rule.
354
+ - `"AxisLine"`, `"ZeroLine"`, and `"SeparatorLine"` take `color` and `line.width`.
355
+ - Row banding (Table only): alternating row stripes ("shade alternate rows", "banded rows", "zebra stripes") are `"Row"` with `banding: {color}`, which fills every other row. `"Row"` takes nothing else and does nothing on other layouts.
356
+ - Legends: `"LegendTitle"` is the field name over a legend and `"LegendLabel"` is each item's text. Both take `color` and the `font` block, and nothing else.
357
+ - Header text versus one field's header: use `selector: "HeaderLabel"` when the query is about all the row and column headers ("make the header text vertical", "bold the headers"). When the query names one field's header ("rotate the Category header"), use rotateHeader instead — it changes only that field.
358
+ - clearStyles removes EVERY property a prior addStyleRule or editStyleRule set on the selector, resetting it to the visualization's default. Use it only when the user asks to reset all of that element's styling ("reset the field label formatting", "clear the header styles"). When the user sets ONE property back ("set the alignment back to auto", "make the text direction auto again", "back to the default size"), use editStyleRule with that property's Auto or default value — the value is then removed from the rule and the other properties stay. clearStyles there would also erase the color, size, and everything else on the rule. It takes `selector` (any style selector — a styleable element or group, such as the selectors listed above). Per-field formatting (setFieldFormat) is left untouched, and clearing a selector that was never styled is a no-op. Runs on VizQL, Table, Packed, and Flow layouts only, like addStyleRule and editStyleRule.
359
+ - Field labels (the shelf captions over the rows and columns, not the header values) are styled with these same operations, split across three selectors the way the authoring tools save them. They are three separate rules: styling one never creates the others, so a field label background does not give "FieldLabel" a rule.
360
+ - Text — color, font (`family`, `size`, `weight`, `italic`, `underline`), `text.halign`, and `text.textDirection` — goes on `"FieldLabel"`.
361
+ - The background goes on BOTH `"RowFieldLabelBox"` and `"ColumnFieldLabelBox"`: send one operation for each, in the same batch, with the same `background.color`. On a Flow it goes on `"LevelFieldLabelBox"` instead (see the Flow bullet below). Never put `background` on `"FieldLabel"`.
362
+ - Field labels draw bold by default. To make them not bold, set `font: {weight: "Normal"}` on `"FieldLabel"` (addStyleRule when it has no rule yet, editStyleRule when its color, size, or other text was already styled); clearStyles would bring the default bold back, not remove it.
363
+ - Field label text direction ("change the field label text direction to vertical up", "make the field labels horizontal") is `text.textDirection` on `"FieldLabel"`, never rotateHeader (that turns a field's header values, not its field label). It follows the same add-or-edit rule as the other text properties, including setting it back to Auto.
364
+ - Field labels have no wrap, vertical alignment, `text.rotation` degrees, or line; do not send those.
365
+ - Choose addStyleRule or editStyleRule separately for each selector, by whether that exact selector has a rule in `visualSpecification.stylesheet.rules`. A Table's built-in `visualSpecification.style.fieldLabels` (such as its default gray background) is not a rule, and switching layouts with changeLayout removes every style rule.
366
+ - To reset field label styling, clearStyles each of the three selectors.
367
+ - Mark labels (the value text drawn on each bar, point, or slice; shown or hidden with showMarkLabel) are styled on `"MarkLabel"`, on Vizql and Packed visualizations. Use `"MarkLabel"` for "the mark labels", "the data labels", or "the value labels". `"BodyText"` and `"Global"` also restyle the mark labels, together with the other text, so use them only when the query means all body text or all text.
368
+ - Font (`font.family`, `font.size`, `font.weight`, `font.italic`, `font.underline`), text color, `text.textDirection`, and `text.halign` go on `"MarkLabel"`. Send only what was asked. `text.halign` is saved but does not move the labels yet; still send it when asked.
369
+ - Text color: by default mark labels pick black or white to stand out against each mark (auto contrast). A requested text color must always be sent together with `autoContrast: false`, in addStyleRule and in editStyleRule.
370
+ - To go back to the automatic color ("make the mark label color automatic", "reset the mark label color"), send only `autoContrast: true`; the saved color is then removed.
371
+ - Mark labels have no background, wrap, vertical alignment, `text.rotation` degrees, opacity, or line; do not send those. Styling the labels does not show them — if they are hidden, also send showMarkLabel `{isVisible: true}` in the same batch.
372
+ - To reset mark label styling, clearStyles `{selector: "MarkLabel"}`.
373
+ - Mark style (the color, transparency, border, corners, or line dash of the data marks themselves) is one `"Mark"` rule on a Vizql chart. It always styles every mark; it cannot target one measure or one mark type. Do not send a `"Mark"` rule on a Table or Packed visualization; it has no effect there. Send only the properties the user asked for:
374
+ - `color` — the mark color ("make the bars dark blue").
375
+ - `opacity` — 0 to 100, where 100 is solid. "50% transparent" → `opacity: 50`; "80% opacity" → `opacity: 80`.
376
+ - `border.width` — 0 to 10 pixels, where 0 means no border ("remove the mark borders" → `border: {width: 0}`). `border.color` — the border color. Send only the half the user named: a width alone or a color alone is fine, and editStyleRule keeps the other half. With no border color, the border follows the background color. A saved border color cannot be removed on its own, so for "make the border color match the background" or "set the border color to background", tell the user it is not supported yet; clearStyles on `"Mark"` does it but also resets every other mark style, so use it only if the user agrees.
377
+ - `cornerRadius` — one of 0, 4, 8, 12, 20, or 9999, where 0 is square and 9999 is a fully rounded pill. Use 8 when the user asks for rounded corners without an amount. Bars are slightly rounded by default, so "square corners" is `cornerRadius: 0`.
378
+ - `line.style` — `"Solid"`, `"Dashed"`, or `"Dotted"`, the dash pattern of a line chart's data line. Gridlines, axis lines, and other chart lines stay on their own line selectors.
379
+ - `line.type` — `"Straight"` or `"Curved"`, the shape of a line chart's data line between points ("make the lines smooth" or "curved lines" → `line: {type: "Curved"}`).
380
+ - Never send `font`, `text`, or `background` on `"Mark"`; mark label text is `"MarkLabel"`, a separate rule, so a `"MarkLabel"` rule does not mean `"Mark"` has one.
381
+ - Flow visualizations (levels joined by links) take only six selectors: `"Global"`, `"Headings"`, `"BodyText"`, `"Scene"`, `"FieldLabel"`, and `"LevelFieldLabelBox"`. These are the only selectors the Flow style panel covers, so do not send any other selector on Flow. A Flow has no headers, axes, totals, or lines. A solid node or link color ("make the nodes red") is not a style rule and is not supported on Flow yet: do not send `"Mark"`, `"FlowNode"`, or `"MarkLabel"`, and do not add a field to the Color encoding for it — make no operation and tell the user it isn't supported.
382
+ - Text: `"Global"` restyles all the text. `"Headings"` covers the field labels over each level, the legend titles, and the node names. `"BodyText"` covers the legend labels and the values shown on the nodes. Use `"Headings"` for "the node names" or "the level names" and `"BodyText"` for "the node values". `"Global"`, `"Headings"`, and `"BodyText"` are three separate rules: a `"Global"` rule does not give `"Headings"` or `"BodyText"` one, so the first change to the node names or node values is addStyleRule.
383
+ - Background: `"Scene"` is the whole background.
384
+ - Field labels (the caption above each level): text goes on `"FieldLabel"`, exactly as on the other layouts. The background goes on `"LevelFieldLabelBox"` only — one operation, never `"RowFieldLabelBox"` or `"ColumnFieldLabelBox"`. A Flow's built-in `visualSpecification.style.fieldLabels.levels` is not a rule.
385
+ - Coloring the marks or data BY A FIELD is not a style operation — use addFieldToEncoding with the Color encoding, not addStyleRule.
386
+ - Examples:
387
+ - "make axis titles bold 14pt dark blue" (not yet styled): addStyleRule `{selector: "AxisTitle", style: {font: {weight: "Bold", size: 14}, color: "#1A3D7C"}}`
388
+ - "thin gray gridlines": addStyleRule `{selector: "GridLine", style: {color: "#CCCCCC", line: {width: 1}}}`
389
+ - "make the axis line red": addStyleRule `{selector: "AxisLine", style: {color: "#FF0000"}}`
390
+ - "make the axis tick marks 2px wide" (no stylesheet yet): addStyleRule, not editStyleRule — `{selector: "AxisTick", style: {line: {width: 2}}}`
391
+ - "make the axis tick marks gray" right after their width was set ("AxisTick" has a rule): editStyleRule `{selector: "AxisTick", style: {color: "#999999"}}`
392
+ - "make all the chart lines light gray": addStyleRule `{selector: "VizLines", style: {color: "#CCCCCC"}}`
393
+ - "change the axis label color to red" (no "AxisTitle" rule): addStyleRule `{selector: "AxisTitle", style: {color: "#FF0000"}}` — not `"AxisTickLabel"`
394
+ - "make the axis values smaller, 9pt" (no "AxisTickLabel" rule): addStyleRule `{selector: "AxisTickLabel", style: {font: {size: 9}}}`
395
+ - "use the Arial font for the axis tick labels": addStyleRule `{selector: "AxisTickLabel", style: {font: {family: "Arial"}}}`
396
+ - "white background": addStyleRule `{selector: "Scene", style: {background: {color: "#FFFFFF"}}}`
397
+ - "bold the row and column headers": addStyleRule `{selector: "HeaderLabel", style: {font: {weight: "Bold"}}}`
398
+ - "center the header text and make it read top to bottom": addStyleRule `{selector: "HeaderLabel", style: {text: {halign: "Center", textDirection: "VerticalDown"}}}`
399
+ - "light blue header background": addStyleRule `{selector: "Header", style: {background: {color: "#D6ECFF"}}}` (`"Cell"` on a Table layout)
400
+ - "shade alternate rows light gray" (Table, no "Row" rule): addStyleRule `{selector: "Row", style: {banding: {color: "#F3F3F3"}}}`
401
+ - "show the gridlines, dashed and 50% transparent" (no "GridLine" rule): addStyleRule `{selector: "GridLine", style: {visibility: "Visible", line: {style: "Dashed"}, opacity: 50}}`
402
+ - "hide the gridlines": addStyleRule `{selector: "GridLine", style: {visibility: "Hidden"}}`
403
+ - "show the axis tick marks" (no "AxisTick" rule): addStyleRule `{selector: "AxisTick", style: {visibility: "Visible"}}`
404
+ - "make the reference lines dotted and 2px" (no "ReferenceLine" rule): addStyleRule `{selector: "ReferenceLine", style: {line: {style: "Dotted", width: 2}}}`
405
+ - "make the reference line dotted" (one reference line, no "ReferenceLine" rule): addStyleRule `{selector: "ReferenceLine", style: {line: {style: "Dotted"}}}` — not editReferenceLine
406
+ - "make the zero line red": addStyleRule `{selector: "ZeroLine", style: {color: "#FF0000"}}`
407
+ - "thicker separator lines between the header groups": addStyleRule `{selector: "SeparatorLine", style: {line: {width: 2}}}`
408
+ - "bold the legend title": addStyleRule `{selector: "LegendTitle", style: {font: {weight: "Bold"}}}`
409
+ - "make the legend items 10pt gray": addStyleRule `{selector: "LegendLabel", style: {font: {size: 10}, color: "#666666"}}`
410
+ - "make the lines curved" (no "Mark" rule): addStyleRule `{selector: "Mark", style: {line: {type: "Curved"}}}`
411
+ - "change headings text direction to vertical up" (no "Headings" rule): addStyleRule, not rotateHeader — `{selector: "Headings", style: {text: {textDirection: "VerticalUp"}}}`
412
+ - "change body text direction to vertical up" (no "BodyText" rule; words like "change" or "set" do not mean a rule exists): addStyleRule `{selector: "BodyText", style: {text: {textDirection: "VerticalUp"}}}`
413
+ - "use Georgia for all the text" (no "Global" rule): addStyleRule `{selector: "Global", style: {font: {family: "Georgia"}}}`
414
+ - "also make the already-styled axis titles italic": editStyleRule `{selector: "AxisTitle", style: {font: {italic: true}}}`
415
+ - "reset the axis titles back to default": clearStyles `{selector: "AxisTitle"}`
416
+ - "set the field label text alignment back to auto" ("FieldLabel" has a color and size): editStyleRule `{selector: "FieldLabel", style: {text: {halign: "Auto"}}}` — not clearStyles, which would also remove the color and size
417
+ - "set the headings text direction back to auto" ("Headings" has a rule): editStyleRule `{selector: "Headings", style: {text: {textDirection: "Auto"}}}`
418
+ - "make the field labels bold and 14pt" (no "FieldLabel" rule): addStyleRule `{selector: "FieldLabel", style: {font: {size: 14, weight: "Bold"}}}`
419
+ - "change the field label text color to red" (no field label rules at all): addStyleRule `{selector: "FieldLabel", style: {color: "#FF0000"}}`
420
+ - "make the field labels not bold" (no "FieldLabel" rule): addStyleRule `{selector: "FieldLabel", style: {font: {weight: "Normal"}}}`
421
+ - "make the field labels not bold" right after their font, size, or color was changed ("FieldLabel" has a rule): editStyleRule, not addStyleRule — `{selector: "FieldLabel", style: {font: {weight: "Normal"}}}`
422
+ - "make the field label background blue" on a visualization with no stylesheet: addStyleRule, not editStyleRule, for each — `{selector: "RowFieldLabelBox", style: {background: {color: "#0000FF"}}}` and `{selector: "ColumnFieldLabelBox", style: {background: {color: "#0000FF"}}}`
423
+ - "change the field label background to blue" (no "RowFieldLabelBox" or "ColumnFieldLabelBox" rule): addStyleRule `{selector: "RowFieldLabelBox", style: {background: {color: "#0000FF"}}}` and addStyleRule `{selector: "ColumnFieldLabelBox", style: {background: {color: "#0000FF"}}}`
424
+ - "now make the field label background red" (both "RowFieldLabelBox" and "ColumnFieldLabelBox" have rules): editStyleRule on `"RowFieldLabelBox"` and editStyleRule on `"ColumnFieldLabelBox"`, each `{style: {background: {color: "#FF0000"}}}`
425
+ - "change the field label text color to blue" right after a background change (rules exist for "RowFieldLabelBox" and "ColumnFieldLabelBox" but NOT for "FieldLabel"): addStyleRule, not editStyleRule — `{selector: "FieldLabel", style: {color: "#0000FF"}}`
426
+ - "change the field label text direction to vertical up" (no "FieldLabel" rule): addStyleRule, not rotateHeader — `{selector: "FieldLabel", style: {text: {textDirection: "VerticalUp"}}}`
427
+ - "change the field label text direction to horizontal" ("FieldLabel" has a rule): editStyleRule `{selector: "FieldLabel", style: {text: {textDirection: "Horizontal"}}}`
428
+ - "make the grand total label font size 20" (no "GrandTotalLabel" rule): addStyleRule, NOT `"Global"` — `{selector: "GrandTotalLabel", style: {font: {size: 20}}}`
429
+ - "make the grand total numbers 25pt" (no "GrandTotalValue" rule): addStyleRule `{selector: "GrandTotalValue", style: {font: {size: 25}}}`
430
+ - "change the grand total label size to 25" ("GrandTotalLabel" has a rule): editStyleRule `{selector: "GrandTotalLabel", style: {font: {size: 25}}}`
431
+ - "make the subtotal values vertical up" (no "SubtotalValue" rule): addStyleRule `{selector: "SubtotalValue", style: {text: {textDirection: "VerticalUp"}}}`
432
+ - "right-align the subtotal labels" (no "SubtotalLabel" rule): addStyleRule `{selector: "SubtotalLabel", style: {text: {halign: "Right"}}}`
433
+ - "make the grand total values red" right after the grand total label was styled (a "GrandTotalLabel" rule exists but NOT a "GrandTotalValue" one): addStyleRule, not editStyleRule — `{selector: "GrandTotalValue", style: {color: "#FF0000"}}`
434
+ - "make the mark labels bold" (no "MarkLabel" rule): addStyleRule `{selector: "MarkLabel", style: {font: {weight: "Bold"}}}`
435
+ - "make the data labels 16pt" (no "MarkLabel" rule): addStyleRule `{selector: "MarkLabel", style: {font: {size: 16}}}`
436
+ - "make the mark labels red" (no "MarkLabel" rule): addStyleRule `{selector: "MarkLabel", style: {color: "#FF0000", autoContrast: false}}`
437
+ - "turn the mark labels vertical up" (no "MarkLabel" rule): addStyleRule `{selector: "MarkLabel", style: {text: {textDirection: "VerticalUp"}}}`
438
+ - "change the mark label font to Georgia" ("MarkLabel" has a rule): editStyleRule `{selector: "MarkLabel", style: {font: {family: "Georgia"}}}`
439
+ - "set the mark label color back to automatic" ("MarkLabel" has a rule): editStyleRule `{selector: "MarkLabel", style: {autoContrast: true}}`
440
+ - "make the mark labels bold" right after the marks were styled (a "Mark" rule exists but NOT a "MarkLabel" one): addStyleRule, not editStyleRule — `{selector: "MarkLabel", style: {font: {weight: "Bold"}}}`
441
+ - "make the marks dark blue" (no "Mark" rule): addStyleRule `{selector: "Mark", style: {color: "#1A3D7C"}}`
442
+ - "make the bars 50% transparent" (no "Mark" rule): addStyleRule `{selector: "Mark", style: {opacity: 50}}`
443
+ - "add a 2 pixel border to the marks" (no "Mark" rule): addStyleRule `{selector: "Mark", style: {border: {width: 2}}}`
444
+ - "make the mark border black" ("Mark" has a rule): editStyleRule `{selector: "Mark", style: {border: {color: "#000000"}}}`
445
+ - "make the bars pill shaped" (no "Mark" rule): addStyleRule `{selector: "Mark", style: {cornerRadius: 9999}}`
446
+ - "make the line dashed" on a line chart (no "Mark" rule): addStyleRule `{selector: "Mark", style: {line: {style: "Dashed"}}}`
447
+ - "make the marks red" right after the mark labels were styled (a "MarkLabel" rule exists but NOT a "Mark" one): addStyleRule, not editStyleRule — `{selector: "Mark", style: {color: "#FF0000"}}`
448
+ - "reset the mark style": clearStyles `{selector: "Mark"}`
449
+ - "make the node names 16pt" on a Flow (no "Headings" rule): addStyleRule `{selector: "Headings", style: {font: {size: 16}}}`
450
+ - "make the node names 20pt" on a Flow right after all the text was styled (a "Global" rule exists but NOT a "Headings" one): addStyleRule, not editStyleRule — `{selector: "Headings", style: {font: {size: 20}}}`
451
+ - "make the node names 18pt bold" on a Flow right after "make all the text dark gray" (the only rule is `{selector: "Global", style: {color: "#404040"}}`): addStyleRule, not editStyleRule — `{selector: "Headings", style: {font: {size: 18, weight: "Bold"}}}`
452
+ - "make the node values red" on a Flow (no "BodyText" rule): addStyleRule `{selector: "BodyText", style: {color: "#FF0000"}}`
453
+ - "make the node values bold" on a Flow right after the node names were styled (a "Headings" rule exists but NOT a "BodyText" one): addStyleRule, not editStyleRule — `{selector: "BodyText", style: {font: {weight: "Bold"}}}`
454
+ - "use Georgia for all the text" on a Flow (no "Global" rule): addStyleRule `{selector: "Global", style: {font: {family: "Georgia"}}}`
455
+ - "light gray background" on a Flow: addStyleRule `{selector: "Scene", style: {background: {color: "#F5F5F5"}}}`
456
+ - "change the field label background to light blue" on a Flow (no "LevelFieldLabelBox" rule): addStyleRule `{selector: "LevelFieldLabelBox", style: {background: {color: "#EEF4FF"}}}` — one operation, not RowFieldLabelBox and ColumnFieldLabelBox
457
+ - "make the field labels italic" on a Flow (no "FieldLabel" rule): addStyleRule `{selector: "FieldLabel", style: {font: {italic: true}}}`
458
+ - "reset the field label background" on a Flow: clearStyles `{selector: "LevelFieldLabelBox"}`
459
+
460
+ ## Forecast
461
+
462
+ - addForecast requires `measureField` `{fieldName, objectName?, function?}` and `dateDimensionField` `{fieldName, objectName?}`. Optional:
463
+ - `forecastInterval` `{value, timeUnit}` where timeUnit is "Minutes"/"Hours"/"Days"/"Weeks"/"Months"/"Quarters"/"Years"; defaults to 4 periods at the date field's granularity.
464
+ - `forecastModel`: "HoltWinters" (default) or "RidgeRegression".
465
+ - `includeBounds`: true (default)/false. `confidenceLevel`: 90/95 (default)/99. `ignoreLastPeriods`: number — excludes that many trailing (partial/incomplete) periods from the fit. `fillNullsWithZero`: true/false (default). `granularity`: only "InferFromData" is supported (the default; usually omit). `occurrence`: when the same measure appears more than once.
466
+ - editForecast updates an existing forecast (specify only what changes). removeForecast removes a specific forecast by `measureField`, or all forecasts when omitted. Forecasts require a time-series visualization (date on X, measure on Y).
467
+ - Examples:
468
+ - "add a forecast for Sales": addForecast `{measureField: {fieldName: "Sales", objectName: "Orders"}, dateDimensionField: {fieldName: "OrderDate", objectName: "Orders"}}`
469
+ - "forecast Sales for 6 months": add `forecastInterval: {value: 6, timeUnit: "Months"}`.
470
+ - "forecast Revenue 12 months ahead using RidgeRegression": `{measureField: {fieldName: "Revenue"}, dateDimensionField: {fieldName: "Date"}, forecastInterval: {value: 12, timeUnit: "Months"}, forecastModel: "RidgeRegression"}`
471
+ - "change the Sales forecast to 12 months": editForecast `{measureField: {fieldName: "Sales", objectName: "Orders"}, forecastInterval: {value: 12, timeUnit: "Months"}}`
472
+ - "remove all forecasts": removeForecast `{}`; "remove the Sales forecast": removeForecast `{measureField: {fieldName: "Sales", objectName: "Orders"}}`
473
+ - "add a forecast to the second Sales": add `occurrence: 2`.
474
+
475
+ ## Filters
476
+
477
+ **Params shape.** addFilter / editFilter `params` are `{filter: {fields: [...], operator, values}, bucket?}` — the field reference (`{model:}` or `{expression:}`) goes inside the `fields` array of the `filter` object, NEVER as a bare `field:` key. `bucket` defaults to "filter" (standard) when omitted. Full operation entry:
138
478
 
139
479
  ```json
140
- {"operationType": "addFilter", "params": {
141
- "bucket": "filter",
142
- "filter": {"fields": [{"model": "Orders.Region"}], "operator": "In", "values": ["East", "West"]}
143
- }}
480
+ {
481
+ "operationType": "addFilter",
482
+ "params": {
483
+ "bucket": "filter",
484
+ "filter": {
485
+ "fields": [{"model": "Orders.Region"}],
486
+ "operator": "In",
487
+ "values": ["East", "West"],
488
+ "includeNulls": false
489
+ }
490
+ }
491
+ }
144
492
  ```
145
493
 
146
- Full worked examples, each showing the complete `params` object:
147
-
148
- - "sales greater than 1000" (raw field):
149
- `{filter: {fields: [{model: "Orders.Sales"}], operator: "GreaterThan", values: [1000]}, bucket: "filter"}`
150
- - "orders from 2020 and 2021":
151
- `{filter: {fields: [{expression: "DATEPART('year', [Orders].[Order_Date])"}], operator: "In", values: [2020, 2021]}, bucket: "filter"}`
152
- - "orders after June 2022" (DATETRUNC, ISO values):
153
- `{filter: {fields: [{expression: "DATETRUNC('month', [Orders].[Order_Date])"}], operator: "GreaterThan", values: ["2022-06-01"]}, bucket: "filter"}`
154
- - "where total sales > 10000" (aggregate):
155
- `{filter: {fields: [{expression: "SUM([Orders].[Sales])"}], operator: "GreaterThan", values: [10000]}, bucket: "aggregateFilter"}`
156
- - "where profit margin > 15%":
157
- `{filter: {fields: [{expression: "SUM([Orders].[Profit])/SUM([Orders].[Sales])"}], operator: "GreaterThan", values: [0.15]}, bucket: "aggregateFilter"}`
158
- - "where running sum of sales > 1000":
159
- `{filter: {fields: [{expression: "RUNNING_SUM(SUM([Orders].[Sales]))"}], operator: "GreaterThan", values: [1000]}, bucket: "tableCalcFilter"}`
160
- - "top 10 states by sales":
161
- `{filter: {fields: [{model: "Orders.State"}], operator: "AdvancedDimension", topBottomCriteria: {topBottomLimit: 10, isTop: true, expression: "SUM([Orders].[Sales])"}}, bucket: "advancedDimensionFilter"}`
162
-
163
- `editFilter` updates an existing filter's expression (same `params` shape, matched
164
- against the current filter's field). `removeFilter` removes one by field reference:
165
- `{filterField: {model: "Object.Field"}}`.
166
-
167
- ## 5. Add-then-filter heuristic
168
-
169
- Add a field to a shelf **before** filtering it only when the user wants to *display*
170
- that dimension broken out by value **and** restrict which values show, and it isn't
171
- already on a shelf. A pure restriction ("filter to top 10 customers", "only show the
172
- West region", "show orders from this year") is a single `addFilter` — never add a
173
- field just because a filter names a dimension. If the field is already on a shelf,
174
- filter/sort it in place.
175
-
176
- Example (add-then-filter, two chained operations): "I want to see Region in East and
177
- West" (no Region on a shelf yet) →
494
+ **Field reference — model vs expression:**
495
+
496
+ - Use `{model: "Object.Field"}` for a simple comparison on the raw field value (no aggregation). e.g. "sales > 1000" → `{fields: [{model: "Orders.Sales"}], operator: "GreaterThan", values: [1000]}`.
497
+ - Use `{expression: "SUM(...)"}` etc. ONLY when the user names an aggregate ("total", "sum of", "average", "count of"), with `bucket: "aggregateFilter"`. A bare measure name with NO aggregate keyword is NOT an aggregate: "sales of at least 2000", "profit over 500", "quantity more than 10" all use `{model: "Object.Field"}`, never `SUM(...)`. Without an explicit aggregate keyword, ALWAYS use `{model: "Object.Field"}`.
498
+ - Use `{expression: "DATEPART(...)"}` for year/month/quarter/etc. filtering.
499
+ - Use a table-calc expression (`RUNNING_SUM`/`RANK`/`WINDOW_*`/...) with `bucket: "tableCalcFilter"`.
500
+ - Field references in expressions use bracket notation `[Object].[Field]`.
501
+
502
+ **Expression forms:**
503
+
504
+ - Date (DATEPART → integer, DATETRUNC → date): `DATEPART('year'|'quarter'|'month'|'week'|'day', [Object].[Field])`; `DATETRUNC('year'|'month'|'quarter', [Object].[Field])`.
505
+ - Aggregate (`bucket: "aggregateFilter"`): SUM/AVG/MIN/MAX/COUNT/COUNTD/MEDIAN([Object].[Field]); ratios like `SUM([O].[Profit])/SUM([O].[Sales])`.
506
+ - Table calc (`bucket: "tableCalcFilter"`, always wrap an aggregate): RUNNING_SUM/RUNNING_AVG/RUNNING_MIN/RUNNING_MAX/RUNNING_COUNT(AGG(...)); RANK(AGG(...), 'ASC'|'DESC'); WINDOW_SUM/WINDOW_AVG(AGG(...), start, end).
507
+
508
+ **Operator rules:**
509
+
510
+ 1. NEVER use Equals/DoesNotEquals — use In/NotIn ("Color is Red" → `operator: "In", values: ["Red"]`; supports multiple values).
511
+ 2. ALWAYS use IgnoreCase string variants (ContainsIgnoreCase, StartsWithIgnoreCase, EndsWithIgnoreCase, DoesNotStartWithIgnoreCase, …) — users rarely mean case-sensitive.
512
+ 3. NEVER put null/undefined in `values` — all values must be concrete. If you can't express both bounds concretely, choose another operator.
513
+ 4. ALWAYS set `includeNulls` on an In/NotIn filter (`false` unless the user asks to keep nulls). The save (`updateVisualization`) rejects an In/NotIn filter without it with `INVALID_VISUALIZATION_METADATA`. Other operators do not need it.
514
+
515
+ **Operators by category:**
516
+
517
+ - Equality (multi-value): In, NotIn.
518
+ - Comparison: Between, LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo.
519
+ - String (IgnoreCase): ContainsIgnoreCase, NotContainsIgnoreCase, StartsWithIgnoreCase, DoesNotStartWithIgnoreCase, EndsWithIgnoreCase, DoesNotEndWithIgnoreCase.
520
+ - Null/Empty: IsNull, IsNotNull, IsEmpty, IsNotEmpty.
521
+ - Relative date (no values): CurrentDay/Week/Month/Quarter/Year, PreviousDay/Week/Month/Quarter/Year, NextDay/Week/Month/Quarter/Year.
522
+ - Relative date (`values: [N]`): LastNMinutes/Hours/Days/Weeks/Months/Quarters/Years, NextNDays/Weeks/Months/Quarters/Years.
523
+ - Fiscal (no values): CurrentFiscalWeek/Month/Quarter/Year. Fiscal (`values: [N]`): LastNFiscalWeeks/Months/Quarters/Years. Use fiscal ONLY when the user says "fiscal" — "this quarter" → CurrentQuarter, not CurrentFiscalQuarter.
524
+ - Date-to-date (uses `{model:...}`, no expression): CurrentYearToDate/MonthToDate/QuarterToDate/WeekToDate, PreviousYearToDate/MonthToDate/QuarterToDate/WeekToDate.
525
+ - TopN/BottomN: AdvancedDimension with `topBottomCriteria: {topBottomLimit, isTop, expression}` (isTop true for top N), `bucket: "advancedDimensionFilter"`. Always use this operator for any top/bottom-N request — never a value filter.
526
+ - Relative-date form selection: "last/next <period>" (no number) → singular (PreviousWeek, NextMonth); "last/next N <periods>" → LastN/NextN; "last 1 quarter" → LastN form with `values: [1]`.
527
+
528
+ **Buckets (execution order):** filter (standard dimension), contextFilter (before aggregation), aggregateFilter (aggregated values), tableCalcFilter (table calcs), advancedDimensionFilter (TopN/BottomN).
529
+
530
+ **editFilter** updates an existing filter's expression (same `params` shape as addFilter, matched against the existing filter's field); **removeFilter** removes it (`{filterField: {model: "Object.Field"}}`).
531
+
532
+ **Add-then-filter vs plain filter:**
533
+
534
+ - A query that only RESTRICTS data is ONE addFilter, even when it names a dimension: "filter to top 10 customers by sales" (TopN), "show orders from this year", "only show the West region". If the field is already on a shelf, just filter it.
535
+ - Add-then-filter applies ONLY when the user wants to SEE a dimension broken out by its values AND restrict which show, AND that dimension is not already on a shelf: FIRST addFieldToRowsOrColumns, THEN addFilter. e.g. "I want to see Region in East and West" (no Region on a shelf) →
536
+
178
537
  ```json
179
538
  [
180
- {"operationType": "addFieldToRowsOrColumns", "params": {"field": {"fieldName": "Region", "objectName": "Orders"}, "shelfType": "rows"}},
181
- {"operationType": "addFilter", "params": {"filter": {"fields": [{"model": "Orders.Region"}], "operator": "In", "values": ["East", "West"]}, "bucket": "filter"}}
539
+ {
540
+ "operationType": "addFieldToRowsOrColumns",
541
+ "params": {"field": {"fieldName": "Region", "objectName": "Orders"}, "shelfType": "rows"}
542
+ },
543
+ {
544
+ "operationType": "addFilter",
545
+ "params": {
546
+ "filter": {
547
+ "fields": [{"model": "Orders.Region"}],
548
+ "operator": "In",
549
+ "values": ["East", "West"],
550
+ "includeNulls": false
551
+ },
552
+ "bucket": "filter"
553
+ }
554
+ }
182
555
  ]
183
556
  ```
184
557
 
185
- ## 6. Sort operations — `targetField` vs `byField`
186
-
187
- Sorts apply to a **discrete** field already on a shelf (chart rows/columns, or table
188
- columns/groups — sort works on both layouts). The field being sorted is keyed
189
- **`targetField`** — never `field` — `{fieldName, objectName?, function?}`. Every copy
190
- of the field on the shelf stays in sync.
191
-
192
- - **`sortAscending`/`sortDescending`** sort by the target field's OWN values (A→Z /
193
- Z→A). If the field is already sorted by another field, these keep that by-field
194
- sort and only flip direction; pass `sortType: "Alphabetic"` to force a plain
195
- alphabetic sort and drop an existing by-field sort.
196
- - **`sortByField`** sorts `targetField` by the AGGREGATED value of a second field,
197
- `byField` `{fieldName, objectName?, function?}`. `byField.function` is the
198
- aggregation — measures keep their default when omitted, dimensions default to
199
- `Count` (dimensions allow only `Count`/`CountD`/`Min`/`Max`). `sortType`: `"Field"`
200
- (default) or `"Nested"` (ordered within each group). `descending` (boolean) defaults
201
- `true` — set `false` for smallest-first.
202
- - **`clearSort`** removes the current sort — just `{targetField}`.
203
-
204
- Worked examples:
205
-
206
- - "Sort Category A to Z": `sortAscending {targetField: {fieldName: "Category", objectName: "Orders"}}`
207
- - "Sort Category Z to A": `sortDescending {targetField: {fieldName: "Category", objectName: "Orders"}}`
208
- - "Sort Region to ascending alphabetic" (Region currently sorted by another field):
209
- `sortAscending {targetField: {fieldName: "Region", objectName: "Orders"}, sortType: "Alphabetic"}`
210
- - "Sort States by total Sales, largest first":
211
- `sortByField {targetField: {fieldName: "State", objectName: "Orders"}, byField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
212
- - "Nest a descending sort on Region by sum of Profit":
213
- `sortByField {targetField: {fieldName: "Region", objectName: "Orders"}, byField: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, sortType: "Nested"}`
214
- - "Sort Category by count of Orders, smallest first":
215
- `sortByField {targetField: {fieldName: "Category", objectName: "Orders"}, byField: {fieldName: "Order_Id", objectName: "Orders", function: "Count"}, descending: false}`
216
- - "Clear the sort on States": `clearSort {targetField: {fieldName: "State", objectName: "Orders"}}`
217
-
218
- ## 7. Reference lines: `field.function` vs `line.function`
219
-
220
- The reference-line operations' single trickiest gotcha — two different `function`
221
- fields that are easy to conflate:
222
-
223
- - **`field.function`** selects *which shelf pill* the line attaches to (its own
224
- aggregation) — e.g. when Sum-of-Sales and Avg-of-Sales are both on the shelf.
225
- A phrase like **"sum of sales"** in a reference-line request names *this* field,
226
- not the line's statistic.
227
- - **`line.function`** is the line's *own* computed statistic (an average line, a max
228
- line) — set it only when the request explicitly names the line's statistic
229
- ("add an **average** line", "a **max** line").
230
-
231
- So "add a reference line to Sum of Sales" means: attach to the Sum-of-Sales pill and
232
- use the *default* line (which is an average line when omitted) — it does **not**
233
- mean a sum line. Two kinds of line: `{valueType: "Computation", function}` (a
234
- statistic — `function` ∈ `Sum`/`Avg`/`Min`/`Max` for a measure axis or
235
- `Max`/`Min`/`Today`/`Now` for a date axis; defaults to average for a measure /
236
- latest-date for a date field when `line` is omitted entirely) or `{valueType:
237
- "Value", value}` (a constant — a number for a measure axis or ISO date string for a
238
- date axis). `line.computationField` (`{fieldName, objectName?, function?}`, need not
239
- be on a shelf) lets the line compute from a *different* field than the one it's drawn
240
- on. An optional label lives INSIDE `line`: `labelType` ∈ `None`/`Value`/`Computation`/
241
- `Custom` (with `customLabel`); `scope` ∈ `Table` (default)/`Pane`/`Cell`; `lineColor`
242
- is a top-level hex (default gray), accepted by both add and edit. Position a specific line among several on the same field
243
- with `lineOccurrence` (1-based, counts lines); `occurrence` instead picks which
244
- *shelf pill* when the field repeats — the two are independent and both may be needed
245
- ("2nd reference line on the 2nd Sum of Sales" → `occurrence: 2, lineOccurrence: 2`).
246
- Beyond position, a line can also be disambiguated by matching its current
247
- `computationFunction`, `value`, `labelText`, `scope`, or `lineValueType` — useful
248
- when the request describes the line itself ("the average line", "the line labeled
249
- Goal") rather than its position.
250
- `removeReferenceLine` with no scope removes every matching line on the field.
251
- `editReferenceLine` changes exactly ONE line and **errors if the description
252
- matches more than one** — narrow with `occurrence`/`lineOccurrence`/`scope`/one of
253
- the descriptive selectors above until it's unambiguous. Each attribute on
254
- `editReferenceLine` edits independently: omitting `line` keeps the line's current
255
- value/function; a `line` change keeps the current label unless you also pass
256
- `labelType`/`customLabel`; passing only `scope` or `lineColor` changes just that
257
- attribute and leaves everything else (value, label) untouched. A label passed at
258
- the top level of `params` wins over one nested inside `line`.
259
-
260
- Worked examples:
261
-
262
- - "add an average line to Sales" (default line): `addReferenceLine {field: {fieldName: "Sales", objectName: "Orders"}}`
263
- - "add a target line at 5000 on Sales" (constant): `addReferenceLine {field: {fieldName: "Sales", objectName: "Orders"}, line: {valueType: "Value", value: 5000}}`
264
- - "add a line at 100 on avg of Sales labeled 'target' in green": `addReferenceLine {field: {fieldName: "Sales", objectName: "Orders", function: "Avg"}, line: {valueType: "Value", value: 100, labelType: "Custom", customLabel: "target"}, lineColor: "#00FF00"}`
265
- - "add a sum line for Sales per pane": `addReferenceLine {field: {fieldName: "Sales", objectName: "Orders"}, line: {valueType: "Computation", function: "Sum"}, scope: "Pane"}`
266
- - "add an average line on Sales computed using sum of Discount": `addReferenceLine {field: {...Sales}, line: {valueType: "Computation", function: "Avg", computationField: {fieldName: "Discount", objectName: "Orders", function: "Sum"}}}`
267
- - "make the Sales reference line red" (color only, omit `line`): `editReferenceLine {field: {...Sales}, lineColor: "#FF0000"}`
268
- - "remove the 2nd reference line on avg of Sales": `removeReferenceLine {field: {fieldName: "Sales", objectName: "Orders", function: "Avg"}, lineOccurrence: 2}`
269
- - "update the 2nd reference line on the 1st Sum of Sales to a max line" (BOTH selectors): `editReferenceLine {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 1, lineOccurrence: 2, line: {valueType: "Computation", function: "Max"}}`
270
-
271
- ## 8. Table-layout shelf operations (Columns/Groups)
272
-
273
- TABLE-layout visualizations use two shelves — **Columns** (fields shown as table
274
- columns) and **Groups** (fields those columns are grouped by) — instead of
275
- rows/columns. These operations are the table equivalent of §2's shelf-field row and
276
- **do not apply to a VizQL chart** — convert to Table first with `changeLayout` (§10),
277
- or these error. `shelfType` names the shelf: `"columns"` or `"groups"`; the target
278
- field nests under a `"field"` object exactly like `addFieldToRowsOrColumns`, using
279
- the same canonical `function` values.
280
-
281
- - `addFieldToGroupsOrColumns` — `{field, shelfType, insertPosition?}` (0-based;
282
- appended when omitted).
283
- - `removeFieldFromGroupsOrColumns` — `{field, shelfType, occurrence?}` (1-based,
284
- picks the copy).
285
- - `replaceFieldFromGroupsOrColumns` — `{existingField, newField, shelfType,
286
- occurrence?}`, keeping the replaced field's position.
287
- - `reorderFieldsOnGroupsOrColumns` — `{field, shelfType, insertPosition, occurrence?}`
288
- — moves a field already on the shelf; adds/removes nothing.
289
- - `changeFieldOnGroupsOrColumns` — changes an EXISTING table-shelf field's
290
- aggregation and/or role in place: `{field, shelfType, occurrence?, function?,
291
- role?}` — supply at least one of `function` (an aggregation) or `role`
292
- (`"Dimension"`/`"Measure"`); the omitted one is unchanged. Changing to a Measure
293
- requires `function` (`Sum`/`Avg`/`Median`/`Min`/`Max`/`Count`/`CountD`/`Stdev`/
294
- `Stdevp`/`Var`/`Varp`); changing to a Dimension drops the function. **No
295
- `displayCategory` param** (unlike `changeFieldOnRowsOrColumns`) — table fields are
296
- always discrete.
297
-
298
- Worked examples:
299
-
300
- - "Add Region to the table columns": `addFieldToGroupsOrColumns {field: {fieldName: "Region", objectName: "Orders"}, shelfType: "columns"}`
301
- - "Group the table by Category": `addFieldToGroupsOrColumns {field: {fieldName: "Category", objectName: "Orders"}, shelfType: "groups"}`
302
- - "Add total Sales as the first table column": `addFieldToGroupsOrColumns {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", insertPosition: 0}`
303
- - "Remove Sales from the table columns": `removeFieldFromGroupsOrColumns {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns"}`
304
- - "Swap Category for Segment in the table groups": `replaceFieldFromGroupsOrColumns {existingField: {fieldName: "Category", objectName: "Orders"}, newField: {fieldName: "Segment", objectName: "Orders"}, shelfType: "groups"}`
305
- - "Move Sales to the first table column": `reorderFieldsOnGroupsOrColumns {field: {fieldName: "Sales", objectName: "Orders"}, shelfType: "columns", insertPosition: 0}`
306
- - "Average Sales in the table instead of summing it" (Sum of Sales on columns): `changeFieldOnGroupsOrColumns {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", function: "Avg"}`
307
- - "Aggregate the Category column as a count of distinct values": `changeFieldOnGroupsOrColumns {field: {fieldName: "Category", objectName: "Orders"}, shelfType: "columns", role: "Measure", function: "CountD"}`
308
-
309
- ## 9. Table totals and subtotals
310
-
311
- TABLE layout only. Two separate summary rows — **do not confuse them**:
312
-
313
- - **Grand totals** (`showGrandTotals`, `editGrandTotalsLabel`) — ONE row summarizing
314
- the whole table. Pick this for "total"/"grand total"/"total row"/"summary row" with
315
- no mention of groups.
316
- - **Subtotals** (`showSubtotals`, `editSubtotalsLabel`) — one row PER GROUP boundary.
317
- Pick this for "subtotal"/"group total"/"total for each group"/"totals per category".
318
-
319
- Both toggle ROW flags only — there is no `columns` parameter; column subtotals are
320
- never legal (`showSubtotals` rejects `columns: true`), and `showGrandTotals` preserves
321
- an existing column-grand-total flag but does not toggle it.
322
-
323
- - `isVisible` (required) shows (`true`) or hides (`false`) the row.
324
- - `position` (optional): `"Start"` (above the table, or above each group) or `"End"`
325
- (below) — map "top"/"above"/"first" → `"Start"`, "bottom"/"below"/"last"/"at the
326
- end" → `"End"`. Omit when unsaid — grand totals default to `"End"`; subtotals
327
- follow the grand totals. **`position` is rewritten on EVERY call** — when only
328
- hiding a row, pass its current position to keep where it sits.
329
- - `editGrandTotalsLabel`/`editSubtotalsLabel` rename the row (`{label: "text"}`;
330
- defaults read "Grand Total"/"Subtotal"). **To reset to the default** — "reset it",
331
- "clear the name", "remove the custom label" — send **EMPTY params `{}`** and leave
332
- `label` out entirely; **NEVER send `{label: ""}`** (an empty or all-whitespace
333
- label is rejected). These only rename a row the table already has (shown or
334
- hidden), so emit the rename ALONE — add a `showGrandTotals`/`showSubtotals` first
335
- only when the table has no such row yet.
336
- - **Don't reach for these just because "total" appears** — they add/rename a summary
337
- ROW only, never a column or a per-row figure: a measure to display/aggregate →
338
- `addFieldToGroupsOrColumns` (or `addFieldToRowsOrColumns`) with `function: "Sum"`;
339
- a per-row calc (running total, percent of total, rank, moving average) →
340
- `applyTableCalc` (§13); a totals COLUMN → `addFieldToGroupsOrColumns`; renaming the
341
- viz → `changeLabel`.
342
-
343
- Worked examples:
344
-
345
- - "Add a grand total row to this table": `showGrandTotals {isVisible: true}`
346
- - "Show totals at the top of the table": `showGrandTotals {isVisible: true, position: "Start"}`
347
- - "Turn off the total row": `showGrandTotals {isVisible: false}`
348
- - "Rename the grand total row to 'Overall Total'": `editGrandTotalsLabel {label: "Overall Total"}`
349
- - "Reset the grand total label to the default": `editGrandTotalsLabel {}`
350
- - "Show subtotals for each group": `showSubtotals {isVisible: true}`
351
- - "Add group totals at the top of each group": `showSubtotals {isVisible: true, position: "Start"}`
352
- - "Rename the subtotal label to 'Group Total'": `editSubtotalsLabel {label: "Group Total"}`
353
- - "Clear the subtotal label" (a reset — params stay empty, NOT `{label: ""}`): `editSubtotalsLabel {}`
354
-
355
- ## 10. Layout and fit
356
-
357
- - **`changeLayout`** switches the WHOLE visualization between the `Vizql` (chart) and
358
- `Table` layouts, migrating placed fields onto the target layout's shelves. Unlike
359
- `changeMarkType` (mark shape only), this changes the layout itself. `targetLayout`
360
- is a canonical value: `"Vizql"` or `"Table"` — nothing else (a donut/pie is the
361
- Radial layout and a sankey the Flow layout; this operation cannot switch to either).
362
- Pick by what the user wants to see: a bar/line/area/scatter graph → `"Vizql"`; a
363
- text table → `"Table"`.
364
- - "Turn this into a table" → `{targetLayout: "Table"}`
365
- - "Make this a bar chart again" → `{targetLayout: "Vizql"}`
366
- - **`changeVisualizationFit`** sets how the viz scales to fit its container: `{fit:
367
- "Standard"|"Entire"|"RowHeadersWidth"}`. `"Standard"` is default sizing (VizQL and
368
- Table); `"Entire"` fills the whole view (VizQL only); `"RowHeadersWidth"` fits the
369
- row-header width (Table only).
370
- - "Make this chart fit the entire view" → `{fit: "Entire"}`
371
- - "Fit the table to the row headers" → `{fit: "RowHeadersWidth"}`
372
-
373
- Chaining example: "Turn this into a table and add a grand total row" →
374
- `changeLayout {targetLayout: "Table"}`, then `showGrandTotals {isVisible: true}` (fields
375
- must land on the table's shelves before any table-specific operation references them).
376
-
377
- ## 11. Field label, field-label visibility, axis visibility, number/date format
378
-
379
- Four distinct single-field cosmetic operations — do not conflate them with
380
- `changeLabel` (renames the visualization itself, §2) or `editAxisTitle`/
381
- `resetAxisTitle` (sets a custom axis title text, independent of the field's own
382
- label).
383
-
384
- - **`editFieldLabel`** renames a field's displayed CAPTION — wherever the field's
385
- name appears (axis, row/column header, table header): `{field, label,
386
- occurrence?}`. Pass `label` to rename; an empty string reverts to the default
387
- name. Works on any layout.
388
- - "Rename the Sales axis to Revenue" → `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, label: "Revenue"}`
389
- - "Reset the Sales label" → `{field: {...Sales}, label: ""}`
390
- - **`showFieldLabel`** shows/hides the field labels on the WHOLE SHELF a field sits
391
- on (affects every field on that shelf, not just the one named): `{field,
392
- isVisible, occurrence?}`. Only supported on Rows, Columns, Groups, and Levels
393
- shelves (VizQL/Table/Flow), and only for DISCRETE fields (a discrete measure can be
394
- toggled; a continuous field errors).
395
- - "Hide the row field labels" → `{field: {fieldName: "Region", objectName: "Orders"}, isVisible: false}`
396
- - **`showAxis`** shows/hides the axis for one CONTINUOUS field on the Rows or Columns
397
- shelf: `{field, isVisible, occurrence?}`.
398
- - "Hide the Sales axis" → `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, isVisible: false}`
399
- - **`setFieldFormat`** changes how a field's VALUES are displayed — not its
400
- aggregation/role/position (`changeFieldOnRowsOrColumns`) or its axis title
401
- (`editAxisTitle`). Target is keyed **`targetField`** (`{fieldName, objectName?,
402
- function?}`) and must already be on a shelf or mark encoding; every copy of the
403
- field is reformatted together.
404
- - Number format: `format: {type: "Number"|"Percentage"|"Currency"|"NumberShort"|
405
- "PercentageShort"|"CurrencyShort" (the "Short" forms abbreviate to K/M/B),
406
- decimalPlaces? (0 for whole numbers, 2 for cents), displayUnits? ("Auto"|"None"|
407
- "K"|"M"|"B"|"G"), prefix?, suffix?, negativeValuesFormat? ("Auto"|"Parenthesis"|
408
- "Minus"), includeThousandSeparator?}`.
409
- - Date format: `format: {dateTemplate: "MM/dd/yyyy"|"yyyy-MM-dd"|...}`. A
410
- date/datetime field takes only a `dateTemplate`; a non-date field only a number
411
- format (mixing errors); a date MEASURE accepts a `dateTemplate` only when
412
- aggregated with `Min`, `Max`, or `Attr`.
413
- - "Show Sales as currency" → `{targetField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, format: {type: "Currency"}}`
414
- - "Format Discount as a percent with 1 decimal place" → `{targetField: {fieldName: "Discount", objectName: "Orders"}, format: {type: "Percentage", decimalPlaces: 1}}`
415
- - "Abbreviate Sales to millions" → `{targetField: {...Sales}, format: {type: "NumberShort", displayUnits: "M"}}`
416
- - "Show Order Date as MM/DD/YYYY" → `{targetField: {fieldName: "Order_Date", objectName: "Orders"}, format: {dateTemplate: "MM/dd/yyyy"}}`
417
-
418
- ## 12. Measure Values shelf editing
419
-
420
- The Measure Values shelf holds a list of measures pivoted by a Measure Names field on
421
- rows or columns so multiple measures share one axis (e.g. "show Sum of Amount and
422
- Count on the same axis"). VizQL only. **Creating** the construct on a brand-new,
423
- empty visualization is covered in `viz-authoring.md` (add the special Measure Names/
424
- Measure Values field via `addFieldToRowsOrColumns` with `{field: {type:
425
- "MeasureNames"|"MeasureValues"}}` — only valid before any field is placed). Once the
426
- construct exists, EDIT it with these operations:
427
-
428
- - `addFieldToMeasureValues` — `{field, insertPosition?}` (appends when omitted; only
429
- measures — dimensions error).
430
- - `reorderFieldsOnMeasureValues` — `{field, insertPosition, occurrence?}` (moves a
431
- measure already on the shelf).
432
- - `replaceFieldFromMeasureValues` — `{existingField, newField, occurrence?}` — swaps a
433
- measure already on the shelf for one that is not, keeping the replaced measure's
434
- slot.
435
- - `removeFieldFromMeasureValues` — `{field, occurrence?}`.
436
- - The same measure can sit on the shelf more than once — `occurrence` (1-based)
437
- picks which copy.
438
-
439
- Worked examples:
440
-
441
- - "Show Sum of Sales and Profit on the same axis" (Sum of Sales already on an axis, add Profit): `addFieldToMeasureValues {field: {fieldName: "Profit", objectName: "Orders", function: "Sum"}}`
442
- - "Add Profit at position 0 on Measure Values": `addFieldToMeasureValues {field: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, insertPosition: 0}`
443
- - "Move Sales to position 1 on Measure Values": `reorderFieldsOnMeasureValues {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, insertPosition: 1}`
444
- - "Replace Profit with Quantity on Measure Values" (Profit on the shelf, Quantity not): `replaceFieldFromMeasureValues {existingField: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, newField: {fieldName: "Quantity", objectName: "Orders", function: "Sum"}}`
445
- - "Remove the second Sum of Sales from Measure Values": `removeFieldFromMeasureValues {field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`
446
-
447
- ## 13. Table calcs — `quickTableCalc` types and `computeUsing`
448
-
449
- `applyTableCalc`/`editTableCalc`/`removeTableCalc` target a measure already on a
450
- shelf. `applyTableCalc` adds; `editTableCalc` changes (errors if the field has no
451
- existing calc); `removeTableCalc` clears (errors if none).
452
-
453
- `quickTableCalc.type` — canonical values: `RunningSum`, `RunningAvg`, `RunningMin`,
454
- `RunningMax`, `Difference`, `PercentDifference`, `PercentOfTotal`, `Rank`,
455
- `RankModified`, `RankDense`, `RankUnique`, `Percentile`, `MovingSum`, `MovingAverage`,
456
- `MovingMin`, `MovingMax`.
457
-
458
- - **Moving types** (`MovingSum`/`MovingAverage`/`MovingMin`/`MovingMax`) accept
459
- `previousValues`, `nextValues`, `useCurrentValue`. `MovingAverage` defaults to
460
- `previousValues: 2, nextValues: 0, useCurrentValue: true`; the other moving types
461
- have no defaults — supply them explicitly.
462
- - **Ranking types** (`Rank`/`RankModified`/`RankDense`/`RankUnique`) accept `order`
463
- (`"Ascending"`/`"Descending"`). `Rank` defaults to `"Descending"`; the other
464
- ranking types have no default.
465
-
466
- `computeUsing` (optional on `applyTableCalc`/`editTableCalc`) — `{type,
467
- useOrderByForExtraFields?}`. `type` is the calc's addressing direction:
468
- `TableAcross`, `TableDown`, `TableAcrossThenDown`, `TableDownThenAcross`, `PaneAcross`,
469
- `PaneDown`, `PaneAcrossThenDown`, `PaneDownThenAcross`, `Cell`. `useOrderByForExtraFields`
470
- (boolean) orders the extra (non-addressing) fields by whatever sort is applied to
471
- them.
472
-
473
- Worked examples:
474
-
475
- - "show Sales as a running total": `applyTableCalc {field: {fieldName: "Sales", objectName: "Orders"}, quickTableCalc: {type: "RunningSum"}}`
476
- - "show a 3-period moving average of Sales": `applyTableCalc {field: {...Sales}, quickTableCalc: {type: "MovingAverage", previousValues: 2, nextValues: 0, useCurrentValue: true}}`
477
- - "compute the running total down the table instead": `editTableCalc {field: {...Sales}, quickTableCalc: {type: "RunningSum"}, computeUsing: {type: "TableDown"}}`
478
- - "remove the table calculation from Sales": `removeTableCalc {field: {...Sales}}`
479
-
480
- ## 14. Logical views and HLV field naming
481
-
482
- When a field lives under `semanticLogicalViews[].semanticUnions[].
483
- semanticMappedFields[]`, use the **logical view's** apiName as `objectName` — never
484
- the union's; the logical view is the queryable object (e.g. field "Full_Name20" in
485
- `Manager_Union44` → `objectName: "Manager_oh"`). Hierarchical logical views (HLVs)
486
- additionally expose:
487
-
488
- - **Me/My-team filters** via two hardcoded field names: `SemanticManagerUserIdPath`
489
- (manager hierarchy) / `SemanticRoleUserIdPath` (role hierarchy) — "Me" uses
490
- `EndsWithIgnoreCase`, "My team" uses `ContainsIgnoreCase`, both against
491
- `{expression: USERID18()}`. Me example: `{filter: {fields: [{model:
492
- "Manager_oh.SemanticManagerUserIdPath"}], operator: "EndsWithIgnoreCase", values:
493
- ["{expression: USERID18()}"]}, bucket: "filter"}` (My team: same with
494
- `ContainsIgnoreCase`).
495
- - **Level-based display** via `hierarchyLevel` on a field object — e.g.
496
- `{fieldName: "Full_Name", hierarchyLevel: 1, objectName: "Manager_oh",
497
- displayCategory: "Discrete", role: "Dimension", type: "Field"}`.
498
- - **Per-level filters** via `ANCESTOR_AT_LEVEL(n, [Object].[Field])` expressions —
499
- e.g. `{expression: "ANCESTOR_AT_LEVEL(1, [Manager_oh].[Full_Name])", operator:
500
- "In", values: ["Sarah Chen (CEO)"]}`.
501
-
502
- ## 15. Persistence handoff — `update_visualization`
558
+ - Distinguish intent: FILTER/RESTRICT verbs ("filter to", "only show", "where", "restrict to") → addFilter; DISPLAY/ADD verbs ("add to rows", "put on columns", "place on shelf") → addFieldToRowsOrColumns. "show"/"display" + a condition usually means addFilter.
559
+
560
+ **Filter examples:**
561
+
562
+ - "sales greater than 1000" (raw field): `{filter: {fields: [{model: "Orders.Sales"}], operator: "GreaterThan", values: [1000]}}`
563
+ - "orders from 2020 and 2021": `{filter: {fields: [{expression: "DATEPART('year', [Orders].[Order_Date])"}], operator: "In", values: [2020, 2021], includeNulls: false}}`
564
+ - "orders after June 2022" (DATETRUNC, ISO values): `{filter: {fields: [{expression: "DATETRUNC('month', [Orders].[Order_Date])"}], operator: "GreaterThan", values: ["2022-06-01"]}}`
565
+ - "where total sales > 10000" (aggregate): `{filter: {fields: [{expression: "SUM([Orders].[Sales])"}], operator: "GreaterThan", values: [10000]}, bucket: "aggregateFilter"}`
566
+ - "where profit margin > 15%": `{filter: {fields: [{expression: "SUM([Orders].[Profit])/SUM([Orders].[Sales])"}], operator: "GreaterThan", values: [0.15]}, bucket: "aggregateFilter"}`
567
+ - "where running sum of sales > 1000": `{filter: {fields: [{expression: "RUNNING_SUM(SUM([Orders].[Sales]))"}], operator: "GreaterThan", values: [1000]}, bucket: "tableCalcFilter"}`
568
+ - "top 10 states by sales": `{filter: {fields: [{model: "Orders.State"}], operator: "AdvancedDimension", topBottomCriteria: {topBottomLimit: 10, isTop: true, expression: "SUM([Orders].[Sales])"}}, bucket: "advancedDimensionFilter"}`
569
+
570
+ ## Table shelf operations (TABLE visualizations only)
571
+
572
+ - A TABLE-layout visualization lays fields out in two shelves: Columns (the fields shown as table columns) and Groups (the fields those columns are grouped by). These are the table equivalent of the rows/columns operations and DO NOT apply to a VizQL chart — if the visualization is on a VizQL layout, convert it to a table first with changeLayout, or these operations error. `shelfType` names the shelf: "columns" or "groups"; the target field nests under a `"field"` object exactly like addFieldToRowsOrColumns, with `function` using the canonical values above.
573
+ - addFieldToGroupsOrColumns adds a field (`insertPosition`, 0-based, places it; appended when omitted). removeFieldFromGroupsOrColumns removes one (`occurrence`, 1-based, picks the copy). replaceFieldFromGroupsOrColumns swaps `existingField` for `newField`, keeping the replaced field's position (`occurrence` picks which copy of existingField). reorderFieldsOnGroupsOrColumns moves one field already on the shelf to a new position (`insertPosition` 0-based from 0 to the shelf's last index; `occurrence` picks the copy), adding or removing nothing.
574
+ - Examples:
575
+ - "Add Region to the table columns": addFieldToGroupsOrColumns `{field: {fieldName: "Region", objectName: "Orders"}, shelfType: "columns"}`
576
+ - "Add count distinct of Order_ID to the table columns": addFieldToGroupsOrColumns `{field: {fieldName: "Order_ID", objectName: "Orders", function: "CountD"}, shelfType: "columns"}`
577
+ - "Group the table by Category": addFieldToGroupsOrColumns `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "groups"}`
578
+ - "Add total Sales as the first table column": addFieldToGroupsOrColumns `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", insertPosition: 0}`
579
+ - "Remove Sales from the table columns": removeFieldFromGroupsOrColumns `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns"}`
580
+ - "Swap Category for Segment in the table groups": replaceFieldFromGroupsOrColumns `{existingField: {fieldName: "Category", objectName: "Orders"}, newField: {fieldName: "Segment", objectName: "Orders"}, shelfType: "groups"}`
581
+ - "Move Sales to the first table column": reorderFieldsOnGroupsOrColumns `{field: {fieldName: "Sales", objectName: "Orders"}, shelfType: "columns", insertPosition: 0}`
582
+
583
+ ## Change field (table shelf, TABLE visualizations only)
584
+
585
+ - changeFieldOnGroupsOrColumns changes an EXISTING table shelf field's aggregation and/or role, keeping it in place. Params: `{field, shelfType, occurrence?, function?, role?}` — supply at least one of `function` (an aggregation) or `role` ("Dimension"/"Measure"); the omitted one is unchanged. Changing to a Measure requires `function` (Sum, Avg, Median, Min, Max, Count, CountD, Stdev, Stdevp, Var, Varp); changing to a Dimension drops the function. Unlike changeFieldOnRowsOrColumns there is NO `displayCategory` — table fields are always discrete.
586
+ - Examples:
587
+ - "average Sales in the table instead of summing it" (Sum of Sales on columns): `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, shelfType: "columns", function: "Avg"}`
588
+ - "aggregate the Category column as a count of distinct values": `{field: {fieldName: "Category", objectName: "Orders"}, shelfType: "columns", role: "Measure", function: "CountD"}`
589
+
590
+ ## Measure Values (VizQL visualizations only)
591
+
592
+ - The Measure Values shelf holds a list of measures pivoted by a Measure Names field on rows or columns so multiple measures share one axis (e.g. "show Sum of Amount and Count on the same axis"). To set up the construct on an EMPTY visualization, add the special Measure Names or Measure Values field with addFieldToRowsOrColumns and `{field: {type: "MeasureNames"|"MeasureValues"}}` (only valid before any field is placed); remove it with removeFieldFromRowsOrColumns. Once it exists, add measures here.
593
+ - addFieldToMeasureValues adds a measure (`{field, insertPosition?}`; appends when `insertPosition` omitted; only measures — dimensions error). reorderFieldsOnMeasureValues moves one (`{field, insertPosition, occurrence?}`). replaceFieldFromMeasureValues swaps a measure already on the shelf (`existingField`) for another not on the shelf (`newField`), keeping the replaced measure's slot (`{existingField, newField, occurrence?}`). removeFieldFromMeasureValues removes one (`{field, occurrence?}`). The same measure can sit on the shelf more than once, so `occurrence` (1-based) picks which copy.
594
+ - Examples:
595
+ - "Show Sum of Sales and Profit on the same axis" (Sum of Sales already on an axis, add Profit): addFieldToMeasureValues `{field: {fieldName: "Profit", objectName: "Orders", function: "Sum"}}`
596
+ - "Add Measure Values to the columns" (empty visualization): addFieldToRowsOrColumns `{field: {type: "MeasureValues"}, shelfType: "columns"}`
597
+ - "Add Profit at position 0 on Measure Values": addFieldToMeasureValues `{field: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, insertPosition: 0}`
598
+ - "Move Sales to position 1 on Measure Values": reorderFieldsOnMeasureValues `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, insertPosition: 1}`
599
+ - "Replace Profit with Quantity on Measure Values" (Profit on the shelf, Quantity not): replaceFieldFromMeasureValues `{existingField: {fieldName: "Profit", objectName: "Orders", function: "Sum"}, newField: {fieldName: "Quantity", objectName: "Orders", function: "Sum"}}`
600
+ - "Remove the second Sum of Sales from Measure Values": removeFieldFromMeasureValues `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`
601
+
602
+ ## Flow shelf operations (FLOW visualizations only)
603
+
604
+ - A FLOW-layout (sankey) visualization lays fields out in two shelves: Levels (an ordered list of discrete fields, one column of nodes each) and Link (ONE continuous measure that sizes the flows between the levels). Each shelf has its own operations, so there is no `shelfType` param; pick the operation by shelf. These DO NOT apply to a VizQL chart or a table — if the visualization is not on a Flow layout, convert it first with changeLayout, or these operations error. The target field nests under a `"field"` object exactly like addFieldToRowsOrColumns.
605
+ - Fields are converted to fit the shelf: a measure added to Levels becomes discrete, and a dimension added to the Link becomes a Count Distinct measure. The Link never takes Attr, and a text or date field on the Link takes only Count or CountD (Min or Max errors); leave `function` off and it defaults to CountD.
606
+ - Levels: addFieldToLevels adds a level (`{field, insertPosition?}`; `insertPosition`, 0-based, places it; appended when omitted). removeFieldFromLevels removes one (`{field, occurrence?}`). replaceFieldOnLevels swaps `existingField` for `newField`, keeping the replaced field's position (`{existingField, newField, occurrence?}`). reorderFieldsOnLevels moves one level to a new position (`{field, insertPosition, occurrence?}`; `insertPosition` 0-based from 0 to the last level), adding or removing nothing.
607
+ - Link: the Link holds a single field. addFieldToLink sets it when no link is set yet (`{field}`); when a link is already set, use replaceFieldOnLink (`{existingField, newField}`) instead, since adding a second link errors. removeFieldFromLink clears it (`{field}`).
608
+ - "Sizing" or "weighting" the flows, or showing flows "by" a measure, means the Link — never add that measure to Levels.
609
+ - Changing a field already on a Flow shelf, keeping it in place: use changeFieldOnLevels or changeFieldOnLink, NEVER changeFieldOnRowsOrColumns or changeFieldOnGroupsOrColumns (those error on Flow), and never remove-then-add.
610
+ - changeFieldOnLevels `{field, occurrence?, function?, role?}` — supply at least one of `function` or `role` ("Dimension"/"Measure"); the omitted one is unchanged. Changing to a Measure requires `function` (Sum, Avg, Median, Min, Max, Count, CountD, Stdev, Stdevp, Var, Varp; Sum/Avg/etc. only on a number field — use Count or CountD for text). Changing to a Dimension drops the function. On a date field, a date part (DatePartYear, DatePartQuarter, DatePartMonth, DatePartDay, ...) or truncation (DateTruncYear, DateTruncMonth, ...) makes it a date dimension. There is NO `displayCategory`: a level always stays discrete. A measure level also takes Attr. On a dimension level, Attr needs `role: "Measure"` too (`{role: "Measure", function: "Attr"}`); Attr alone on a dimension errors.
611
+ - changeFieldOnLink `{field, function}` — the link is always a continuous measure, so only its aggregation changes (same list as above, but a text field on the link only takes Count or CountD). There is no `role`, no date function, and no Attr on the link; to show flows by a different field, use replaceFieldOnLink instead.
612
+ - The link can never be a dimension. If the user asks to make the link field a dimension (or discrete), do NOT call changeFieldOnLink or swap in another aggregation such as Count or CountD — that silently keeps it a measure. Make no change, and tell the user the link must stay a measure; to group by that field, add it to the Levels with addFieldToLevels.
613
+ - Examples:
614
+ - "Add Region as a level": addFieldToLevels `{field: {fieldName: "Region", objectName: "Orders"}}`
615
+ - "Make Segment the first level of the sankey": addFieldToLevels `{field: {fieldName: "Segment", objectName: "Orders"}, insertPosition: 0}`
616
+ - "Remove Category from the levels": removeFieldFromLevels `{field: {fieldName: "Category", objectName: "Orders"}}`
617
+ - "Swap Category for Segment in the levels": replaceFieldOnLevels `{existingField: {fieldName: "Category", objectName: "Orders"}, newField: {fieldName: "Segment", objectName: "Orders"}}`
618
+ - "Move Region to the first level": reorderFieldsOnLevels `{field: {fieldName: "Region", objectName: "Orders"}, insertPosition: 0}`
619
+ - "Size the flows by Sales" (no link yet): addFieldToLink `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
620
+ - "Size the flows by Profit instead" (Sales is the link): replaceFieldOnLink `{existingField: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, newField: {fieldName: "Profit", objectName: "Orders", function: "Sum"}}`
621
+ - "Stop sizing the flows by Sales": removeFieldFromLink `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
622
+ - "Use Category as a count distinct measure in the levels": changeFieldOnLevels `{field: {fieldName: "Category", objectName: "Orders"}, role: "Measure", function: "CountD"}`
623
+ - "Show the Order Date level by month": changeFieldOnLevels `{field: {fieldName: "Order_Date", objectName: "Orders"}, function: "DatePartMonth"}`
624
+ - "Size the flows by average Sales instead of the sum": changeFieldOnLink `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, function: "Avg"}`
625
+
626
+ ## Table totals and subtotals (TABLE visualizations only)
627
+
628
+ - Two separate summary rows: GRAND TOTALS (one row summarizing the whole table — showGrandTotals; pick it for "total"/"grand total"/"total row"/"summary row" with no mention of groups) and SUBTOTALS (one row per group boundary — showSubtotals; pick it for "subtotal"/"group total"/"total for each group"/"totals per category"). These toggle ROW flags only — no columns parameter: column subtotals are never legal (showSubtotals rejects `columns: true`), and showGrandTotals preserves an existing column-grand-total flag but does not toggle it.
629
+ - `isVisible` (required) shows (true) or hides (false) the row. `position`? "Start" (above the table, or above each group) or "End" (below); map "top"/"above"/"first" → "Start", "bottom"/"below"/"last"/"at the end" → "End". Omit position when unsaid — grand totals default to "End", subtotals follow the grand totals. position is rewritten on EVERY call, so when only hiding a row, pass its current position to keep where it sits.
630
+ - editGrandTotalsLabel / editSubtotalsLabel rename the row (`{label: "text"}`; defaults read "Grand Total" / "Subtotal"). To reset to the default — "reset it", "clear the name", "remove the custom label" — send EMPTY params `{}` and leave `label` out; NEVER send `{label: ""}` (an empty or all-whitespace label is rejected). These only rename a row the table already has (shown or hidden), so emit the rename ALONE — add a showGrandTotals/showSubtotals first only when the table has no such row.
631
+ - Formatting a summary row — its font, color, alignment, or text direction — is a style change, not a rename or a show/hide: use addStyleRule (editStyleRule if already styled) with `selector` `"GrandTotalLabel"` or `"SubtotalLabel"` for the row name ("Grand Total", "Subtotal") and `"GrandTotalValue"` or `"SubtotalValue"` for the numbers in that row. Use editGrandTotalsLabel / editSubtotalsLabel only to change the label TEXT, and showGrandTotals / showSubtotals only to show, hide, or move the row. A style rule does not add the row: on a table with no such row, emit showGrandTotals / showSubtotals `{isVisible: true}` first, then the style rule. See Global style. Never use selector `"Global"` for a grand total or subtotal font, color, or alignment.
632
+ - DO NOT use these just because "total" appears — they add or rename a summary ROW, never a column or a per-row figure: a measure to display/aggregate → addFieldToGroupsOrColumns (or addFieldToRowsOrColumns) with function "Sum"; a per-row calc (running total, percent of total, rank, moving average) → applyTableCalc; a totals COLUMN → addFieldToGroupsOrColumns; renaming the viz → changeLabel.
633
+ - Examples:
634
+ - "Add a grand total row to this table": showGrandTotals `{isVisible: true}`
635
+ - "Show totals at the top of the table": showGrandTotals `{isVisible: true, position: "Start"}`
636
+ - "Turn off the total row": showGrandTotals `{isVisible: false}`
637
+ - "Rename the grand total row to 'Overall Total'": editGrandTotalsLabel `{label: "Overall Total"}`
638
+ - "Reset the grand total label to the default": editGrandTotalsLabel `{}`
639
+ - "Show subtotals for each group": showSubtotals `{isVisible: true}`
640
+ - "Add group totals at the top of each group": showSubtotals `{isVisible: true, position: "Start"}`
641
+ - "Rename the subtotal label to 'Group Total'": editSubtotalsLabel `{label: "Group Total"}`
642
+ - "Clear the subtotal label" (a reset — params stay empty, NOT {label: ""}): editSubtotalsLabel `{}`
643
+
644
+ ## Field header (show/hide, rotate text)
645
+
646
+ - showHeader shows or hides a single field's header (`{field, isVisible, occurrence?, shelfType?}`). Works on a Vizql or a Table visualization. `shelfType` is "rows", "columns", or "groups".
647
+ - rotateHeader rotates a single field's header text (`{field, textDirection, occurrence?, shelfType?}`); textDirection is "Horizontal", "VerticalUp", or "VerticalDown". VizQL only — rotating a header is not offered on a Table and errors there.
648
+ - Both edit an EXISTING header only: the field must already be placed on a shelf. If it has no header yet, they error rather than creating one. When the same field is placed more than once, pass a 1-based `occurrence` to pick which copy (1 is the first), or `shelfType` to name the shelf when the field spans shelves; omit both when the field is unique.
649
+ - Use these when the query asks to show/hide a column or row header, or to turn one named field's header text sideways/vertical. To change the text direction of all the headers at once (no field named), use addStyleRule with `selector: "HeaderLabel"` and `style: {text: {textDirection}}` instead — that also works on a Table. Headers are the field's values (such as "Furniture", "Technology"); field labels are the shelf captions (such as "Category"). A request about the FIELD LABEL text direction is never rotateHeader — it is addStyleRule/editStyleRule `text.textDirection` on `"FieldLabel"` (see Global style). "Headings" (as in "change the headings text direction") is the `"Headings"` style group, not headers, so it is never rotateHeader either: use addStyleRule/editStyleRule `text.textDirection` on `"Headings"`.
650
+ - Examples:
651
+ - "Hide the Region header": showHeader `{field: {fieldName: "Region", objectName: "Orders"}, isVisible: false}`
652
+ - "Show the header for Sum of Sales": showHeader `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, isVisible: true}`
653
+ - "Rotate the Category header to vertical": rotateHeader `{field: {fieldName: "Category", objectName: "Orders"}, textDirection: "VerticalUp"}`
654
+
655
+ ## Field header sizing (resize)
656
+
657
+ - resizeHeader sets the pixel size of one field header (`{field, size, occurrence?, shelfType?}`). Width vs height is derived from the shelf the header sits on: a field on rows or groups writes width; a field on columns writes height. `size` is a pixel value of zero or greater. `shelfType` is "rows", "columns", or "groups" — omit it when the field is unique among placed headers; pass it when the same field is on more than one shelf. `"groups"` is Table layout only.
658
+ - Works on a Vizql or a Table visualization. The field must already be on a shelf. To resize two headers, emit two operations.
659
+ - Errors (rather than silently ignoring) on: a Flow/Map/Radial layout; `shelfType: "groups"` on a Vizql visualization; a negative `size`; a field not on a header shelf; or an ambiguous field with no `shelfType`/`occurrence`.
660
+ - Use when the query asks to make a column wider, set a column to a pixel width, set a row height, or resize a header to a size.
661
+ - Examples:
662
+ - "Make the Region column 220 pixels wide": resizeHeader `{field: {fieldName: "Region", objectName: "Orders"}, size: 220}`
663
+ - "Set the row height for Product to 40": resizeHeader `{field: {fieldName: "Product", objectName: "Orders"}, size: 40}`
664
+ - "Resize the Region group header to 150": resizeHeader `{field: {fieldName: "Region", objectName: "Orders"}, size: 150, shelfType: "groups"}`
665
+
666
+ ## Mark labels (show/hide)
667
+
668
+ - A mark label is the text drawn ON a data-point mark — the value shown above each bar, next to each point, or on each slice. This is different from a field label (an axis/shelf caption; use showFieldLabel) and from a field header (use showHeader).
669
+ - showMarkLabel shows or hides those labels (`{field?, isVisible, occurrence?}`). Omit `field` to affect all marks; pass it to target one field's mark (by fieldName, plus objectName/function when needed). Runs on Vizql and Packed visualizations; every other layout errors. On a Packed visualization the labels toggle for all marks, so do NOT pass `field` there.
670
+ - When the same measure is placed on the shelves more than once (two identical sub-marks that fieldName/objectName/function cannot tell apart), pass `occurrence` (1-based, counted by shelf position) to pick which one; omit it when the field is unique.
671
+ - Use showMarkLabel when the query asks to show or hide data labels or value labels on the marks. Styling the mark labels (font, size, color, bold, italic, underline, alignment, text direction) is not showMarkLabel — it is addStyleRule/editStyleRule on `"MarkLabel"` (see Global style).
672
+ - Examples:
673
+ - "Turn on data labels": showMarkLabel `{isVisible: true}`
674
+ - "Hide the mark labels for Sales": showMarkLabel `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, isVisible: false}`
675
+ - "Show the data labels on the second Sales": showMarkLabel `{field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, isVisible: true, occurrence: 2}`
676
+
677
+ ## Mark size (set/reset)
678
+
679
+ - changeMarkSize sets the fixed size of the marks drawn in the visualization — the width of bars, the diameter of points/bubbles (`{sizeType, value, field?}`). `sizeType` is a canonical `VisualizationMarkSizeType` value: "Pixel" (an absolute size) or "Percentage" (a size relative to the cell). `value` is the size in that unit; it must fall within the allowed range for the mark type, and an out-of-range value errors.
680
+ - resetMarkSize clears a custom mark size and returns it to the automatic default for the mark type and layout (`{field?}`).
681
+ - `field` (`{fieldName, objectName?, function?}`) sizes only that field's mark; omit `field` to size every mark in the visualization. Both operations work on VizQL, Packed, and Table visualizations; every other layout errors.
682
+ - Only Bar, Circle, Square, and Donut marks can be sized; Line, Area, Text, and Spatial marks cannot, and sizing one errors. When sizing every mark (no `field`) and the visualization mixes sizable and unsizable mark types, that also errors — name a `field` that is a sizable mark to size just that one.
683
+ - When the same field is placed more than once (for example the same measure added twice), each copy draws its own mark that is sized on its own. Use `occurrence` (1-based, counted by shelf position) to pick which copy. Omit it when the field is unique — targeting a duplicate without `occurrence` errors.
684
+ - Use changeMarkSize when the query asks to make marks bigger/smaller, set a bar width, or set a point size; use resetMarkSize when the query asks to restore the default mark size.
685
+ - Near-miss routing: changeMarkSize sets one fixed size for the targeted marks. A query that asks to vary size by a field's values — "size the bubbles by Sales", "make bigger sales show as bigger points" — is a size encoding, not this operation; changeMarkSize does not map a field to size.
686
+ - Examples:
687
+ - "Make the bars 40 pixels": changeMarkSize `{sizeType: "Pixel", value: 40}`
688
+ - "Set the mark size to 60%": changeMarkSize `{sizeType: "Percentage", value: 60}`
689
+ - "Make the Sales marks bigger, 50px": changeMarkSize `{sizeType: "Pixel", value: 50, field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
690
+ - "Size the second Sales bars to 30px" (Sales on columns twice): changeMarkSize `{sizeType: "Pixel", value: 30, field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}, occurrence: 2}`
691
+ - "Reset the mark size to default": resetMarkSize `{}`
692
+
693
+ ## Tooltip styling
694
+
695
+ - A tooltip is the popover shown when hovering a mark. updateTooltipStyle edits its styling on two levels; provide at least one field (`{isVisible?, color?, transparency?, showActions?, customText?, field?, occurrence?, headers?}`).
696
+ - To ADD A DATA FIELD to the tooltip — show a field's value on hover ("add a tooltip showing Sales", "put Profit in the tooltip", "show Quantity on hover") — use addFieldToEncoding with `encodingType: "Tooltip"` (see Mark encoding), NOT updateTooltipStyle. updateTooltipStyle only styles the popover (visibility, color, action links) and sets a fixed custom-text template; it does not add a field to the hover data.
697
+ - Visualization-level container — `isVisible` (show/hide the tooltip), `color` (background as a 6-digit hex string like `#FFFFFF`), and `transparency` (0 opaque to 100 fully transparent). Any omitted value keeps the current setting, so you can change one without resetting the others. A color that is not a 6-digit hex, or a transparency outside 0–100, errors. These apply to the whole visualization, so combining them with `field` errors; with `headers` they are allowed.
698
+ - Mark-level — `showActions` toggles the built-in action links, and `customText` sets the tooltip's custom content. Both are written to the mark(s) named by `field` (omit `field` to affect every mark). With `headers` true (Vizql and Table; cannot be combined with `field`), `showActions` goes to the shared headers mark and `customText` still fans out to every mark.
699
+ - `customText` is an ordered array of text values that make up the tooltip content. Each value is one of: plain text `{type: "Text", value: "Sales: "}`; a visualization field token `{type: "VisualizationFieldToken", fieldKey: "F1"}` (fieldKey must name a field on the visualization); an SDM field token `{type: "SdmFieldToken", apiName}`; or a property token `{type: "PropertyToken", tokenType}`. Any value may carry `properties` (font `family`/`size`/`bold`/`italic`/`underline`/`color`/`horizontalAlign`). A font `size` outside 10–128, a non-6-digit-hex `color`, a field token naming an absent field, or a total length over 4096 (each token counts as 1) errors. Pass an empty array to clear the custom text.
700
+ - `field` picks which mark the mark-level fields apply to, just like other mark operations: omit it to fan `showActions` and `customText` to every mark — the whole-visualization mark, each per-field mark, and the shared headers on Table (Packed keeps only the whole-visualization mark); set it (named by fieldName, plus objectName/function when needed) to write just that field's mark. A field on Packed, which has no per-field marks, errors. Pass `occurrence` alongside `field` when the same measure is placed more than once.
701
+ - Runs on Vizql, Table, and Packed; other layouts error.
702
+ - Use these when the query asks to turn tooltips on/off, restyle the tooltip background, show/hide the tooltip's action links, or set the tooltip's custom text.
703
+ - Examples:
704
+ - "Hide the tooltips": updateTooltipStyle `{isVisible: false}`
705
+ - "Make the tooltip background white and 20% transparent": updateTooltipStyle `{color: "#FFFFFF", transparency: 20}`
706
+ - "Turn off the tooltip action links": updateTooltipStyle `{showActions: false}`
707
+ - "Hide the action links on the Sales tooltip": updateTooltipStyle `{showActions: false, field: {fieldName: "Sales", objectName: "Orders", function: "Sum"}}`
708
+ - "Hide the action links on the header tooltips": updateTooltipStyle `{showActions: false, headers: true}`
709
+ - "Set the tooltip to say 'Revenue: <Sales>'": updateTooltipStyle `{customText: [{type: "Text", value: "Revenue: "}, {type: "VisualizationFieldToken", fieldKey: "F1"}]}`
710
+ - "Clear the tooltip custom text": updateTooltipStyle `{customText: []}`
711
+
712
+ ## Persistence handoff — `update_visualization`
503
713
 
504
714
  `edit_visualization` never saves — every edit (or chain of edits) is a preview only.
505
715
  **Never call `update_visualization` as an automatic follow-up.** After every
@@ -525,5 +735,5 @@ semantic model.
525
735
 
526
736
  **Round-trips back into `edit_visualization` without a re-fetch.** You already have the
527
737
  `visualizationId` from before calling `update_visualization` — reuse that same id
528
- directly in another `edit_visualization` call (§1) without a `get_visualization`
738
+ directly in another `edit_visualization` call (see Contract) without a `get_visualization`
529
739
  round trip; the server's working state for that id already reflects the saved edits.