@salesforce/afv-skills 1.70.0 → 1.71.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 (995) hide show
  1. package/package.json +1 -1
  2. package/skills/agentforce-offline-experimentation-run/SKILL.md +12 -12
  3. package/skills/commerce-react-storefront-create/SKILL.md +12 -12
  4. package/skills/dx-apexguru-scan/SKILL.md +10 -5
  5. package/skills/dx-apexguru-scan/references/authentication.md +11 -7
  6. package/skills/dx-apexguru-scan/scripts/build-zip.sh +10 -3
  7. package/skills/dx-apexguru-scan/scripts/decode-report.js +72 -17
  8. package/skills/dx-apexguru-scan/scripts/resolve-token.sh +58 -13
  9. package/skills/dx-apexguru-scan/scripts/run-scan.sh +16 -5
  10. package/skills/dx-apexguru-scan/scripts/validate-token.js +12 -9
  11. package/skills/dx-scratch-def-configure/SKILL.md +110 -33
  12. package/skills/dx-scratch-def-configure/examples/confirm-card.md +33 -0
  13. package/skills/dx-scratch-def-configure/examples/report-recipes.md +54 -0
  14. package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1096 -90
  15. package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +22 -6
  16. package/skills/experience-app-mcp-generate/SKILL.md +2 -2
  17. package/skills/experience-lwc-accessibility-jest-run/SKILL.md +16 -6
  18. package/skills/experience-search-coordinate/SKILL.md +6 -51
  19. package/skills/experience-search-coordinate/references/content-route.md +239 -36
  20. package/skills/experience-search-coordinate/references/media-route.md +28 -5
  21. package/skills/experience-ui-bundle-mfa-configure/SKILL.md +47 -21
  22. package/skills/experience-ui-bundle-mfa-configure/references/setup.md +3 -1
  23. package/skills/experience-ui-bundle-site-generate/references/configure-metadata-digital-experience.md +1 -1
  24. package/skills/industries-patient-card-generate/SKILL.md +209 -0
  25. package/skills/industries-patient-card-generate/references/acceptance-tests.md +64 -0
  26. package/skills/industries-patient-card-generate/references/component-behavior.md +95 -0
  27. package/skills/industries-patient-card-generate/references/custom-labels.md +51 -0
  28. package/skills/industries-patient-card-generate/references/values-and-rules.md +51 -0
  29. package/skills/industries-patient-card-generate/references/visual-design.md +89 -0
  30. package/skills/nonprofit-volunteer-management-records-create/references/field-guide.md +1 -1
  31. package/skills/nonprofit-volunteer-management-records-create/references/mcp-invocation.md +11 -4
  32. package/skills/nonprofit-volunteer-management-records-create/scripts/render-review-table.py +2 -2
  33. package/skills/nonprofit-volunteer-management-records-create/scripts/tests/test_render_review_table.py +21 -0
  34. package/skills/nonprofit-volunteer-management-structure-generate/references/mcp-invocation.md +5 -2
  35. package/skills/platform-apex-test-generate/SKILL.md +2 -0
  36. package/skills/platform-custom-lightning-type-generate/SKILL.md +5 -1
  37. package/skills/platform-custom-lightning-type-generate/references/agent-action-output.md +99 -0
  38. package/skills/platform-data-and-tooling-api-context-get/README.md +36 -0
  39. package/skills/platform-data-and-tooling-api-context-get/SKILL.md +18 -21
  40. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightAction.json +1 -1
  41. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightFeedback.json +1 -1
  42. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightReason.json +1 -1
  43. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIInsightValue.json +1 -1
  44. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AIRecordInsight.json +1 -1
  45. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AbnExperiment.json +2 -2
  46. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AbnExperimentCohort.json +5 -0
  47. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AcceptedEventRelation.json +1 -1
  48. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Account.json +37 -65
  49. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountCleanInfo.json +1 -1
  50. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountContactRelation.json +1 -1
  51. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountOwnerSharingRule.json +1 -1
  52. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountPlanObjMeasCalcCond.json +1 -1
  53. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountPlanObjMeasCalcDefLocalization.json +2 -0
  54. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountProspectingAgentResearch.json +44 -0
  55. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountShare.json +1 -1
  56. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTag.json +1 -1
  57. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTeamMember.json +3 -1
  58. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountTerritoryAssignmentRuleItem.json +4 -2
  59. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AccountUserTerritory2View.json +1 -1
  60. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadence.json +1 -1
  61. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceRule.json +1 -1
  62. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceRuleCondition.json +1 -1
  63. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStep.json +50 -26
  64. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStepTracker.json +47 -2
  65. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceStepVariant.json +65 -3
  66. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionCadenceTracker.json +2 -12
  67. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionLinkGroupTemplate.json +1 -1
  68. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionLinkTemplate.json +1 -1
  69. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlan.json +17 -6
  70. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanItem.json +6 -6
  71. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplate.json +10 -5
  72. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateItem.json +0 -5
  73. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateItemValue.json +0 -5
  74. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActionPlanTemplateVersion.json +0 -5
  75. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActiveScratchOrg.json +1 -6
  76. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityHistory.json +1 -1
  77. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityMetric.json +8 -0
  78. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ActivityUsrConnectionStatus.json +1 -1
  79. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Address.json +3 -3
  80. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentQltyEvalFormCondition.json +54 -0
  81. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentQltyEvalFormCriteria.json +59 -0
  82. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWork.json +15 -1
  83. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWorkConversationalData.json +20 -0
  84. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AgentWorkSkill.json +0 -5
  85. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiGenActionItem.json +1 -1
  86. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiGenActionItemInfo.json +1 -1
  87. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AiModelLanguage.json +1 -1
  88. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AnalyticsChangeEventLog.json +2 -2
  89. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AnalyticsVizField.json +17 -1
  90. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Announcement.json +1 -1
  91. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexExecutionEventLog.json +2 -2
  92. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexLog.json +1 -1
  93. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexPageInfo.json +1 -1
  94. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexRestApiEventLog.json +3 -2
  95. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestQueueItem.json +1 -1
  96. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestResult.json +1 -1
  97. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestResultLimits.json +1 -1
  98. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTestSuite.json +1 -1
  99. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTriggerEventLog.json +26 -22
  100. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexTypeImplementor.json +1 -1
  101. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApexUnexpectedExcpEventLog.json +16 -1
  102. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApiTotalUsageEventLog.json +5 -0
  103. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppAnalyticsQueryRequest.json +1 -1
  104. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppMenuItem.json +1 -1
  105. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApplicationFormTemplate.json +8 -28
  106. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AppointmentTopicTimeSlot.json +0 -5
  107. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Approval.json +1 -1
  108. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalAlertContentDef.json +71 -2
  109. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalDelegation.json +56 -0
  110. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalSubmission.json +1 -1
  111. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalSubmissionDetail.json +1 -1
  112. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItem.json +7 -2
  113. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItemCondition.json +5 -1
  114. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApprovalWorkItemCriteria.json +2 -2
  115. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleAggrDurDnscale.json +2 -5
  116. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleAggrPolicy.json +2 -5
  117. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleConfig.json +2 -5
  118. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePolicy.json +2 -5
  119. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePolicySvcTerr.json +2 -5
  120. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundlePropagatePolicy.json +2 -5
  121. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleRestrictPolicy.json +2 -5
  122. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ApptBundleSortPolicy.json +2 -5
  123. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ArchivePolicyDefinition.json +83 -18
  124. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Article_Type__DataCategorySelection.json +1 -1
  125. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssessmentQuestionCatgData.json +47 -0
  126. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Asset.json +12 -1
  127. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetAction.json +6 -1
  128. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetActionSource.json +11 -1
  129. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetAttribute.json +2 -0
  130. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetDowntimePeriod.json +0 -5
  131. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetRateAdjustment.json +1 -1
  132. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetRateCardEntry.json +16 -0
  133. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetShare.json +1 -1
  134. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetStatePeriod.json +35 -9
  135. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetStatePeriodAttribute.json +6 -2
  136. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetTag.json +1 -1
  137. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssetWarranty.json +0 -5
  138. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssignedResource.json +8 -0
  139. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssignmentRule.json +3 -1
  140. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AssociatedLocation.json +1 -1
  141. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncOpSyndicationFeedFile.json +1 -1
  142. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncOperationLog.json +17 -1
  143. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AsyncReportRunEventLog.json +2 -1
  144. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttachedContentDocument.json +2 -2
  145. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttachedContentNote.json +3 -3
  146. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Attachment.json +1 -1
  147. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModel.json +167 -3
  148. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModelStage.json +87 -3
  149. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttribModelStageMetric.json +66 -2
  150. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AttributeDefinition.json +1 -1
  151. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AuraRequestEventLog.json +1 -0
  152. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AuthSession.json +1 -1
  153. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedAction.json +134 -2
  154. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionCondition.json +72 -2
  155. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionOverride.json +75 -2
  156. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionParameter.json +66 -2
  157. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/AutomatedActionReminder.json +78 -2
  158. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BackgroundOperation.json +3 -1
  159. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BackgroundOperationResult.json +1 -1
  160. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Big_Objects.json +8 -0
  161. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingBatchScheduler.json +6 -2
  162. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingPeriodItem.json +16 -1
  163. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingPolicy.json +1 -1
  164. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingSchedule.json +189 -6
  165. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingScheduleGroup.json +44 -4
  166. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingTreatment.json +5 -1
  167. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BillingTreatmentItem.json +21 -1
  168. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Blocked_Redirect_Event_Type.json +1 -1
  169. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Bookmark.json +1 -1
  170. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BotDefinition.json +1 -1
  171. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BroadcastTopic.json +1 -1
  172. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BroadcastTopicGroup.json +1 -1
  173. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BulkApi2EventLog.json +6 -6
  174. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BulkApiEventLog.json +2 -2
  175. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BusinessHours.json +1 -1
  176. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerCriteria.json +1 -1
  177. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroup.json +1 -1
  178. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroupBuyerCriteria.json +1 -1
  179. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/BuyerGroupRelatedObject.json +1 -1
  180. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CSP_Violation_Event_Type.json +1 -1
  181. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalculatedInsightRangeBound.json +1 -1
  182. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalculationMatrix.json +25 -1
  183. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CalendarView.json +1 -1
  184. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CallCenterRoutingMap.json +1 -1
  185. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Campaign.json +1 -1
  186. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignMember.json +1 -1
  187. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignMemberStatus.json +2 -2
  188. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CampaignTag.json +1 -1
  189. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CardPaymentMethod.json +1 -1
  190. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CartItem.json +5 -0
  191. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CartItemPriceAdjustment.json +5 -0
  192. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Case.json +0 -34
  193. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseArticle.json +2 -2
  194. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseParticipant.json +1 -6
  195. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseRelatedIssue.json +5 -0
  196. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseTag.json +1 -1
  197. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CaseTeamMember.json +1 -1
  198. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryData.json +1 -1
  199. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryNode.json +3 -1
  200. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CategoryNodeLocalization.json +2 -0
  201. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequest.json +5 -0
  202. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequestRelatedIssue.json +5 -0
  203. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChangeRequestRelatedItem.json +5 -0
  204. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterActivity.json +2 -2
  205. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterAnswersActivity.json +1 -1
  206. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ChatterMessage.json +1 -1
  207. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabDocumentMetricRecord.json +1 -1
  208. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabTemplateMetric.json +1 -1
  209. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollabTemplateMetricRecord.json +1 -1
  210. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroup.json +2 -6
  211. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroupMember.json +0 -4
  212. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationGroupMemberRequest.json +1 -1
  213. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationInvitation.json +2 -2
  214. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CollaborationRoom.json +1 -6
  215. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CombinedAttachment.json +1 -1
  216. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ComplaintCase.json +123 -0
  217. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ComplaintParticipant.json +133 -0
  218. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConcurApexLimitEventLog.json +1 -1
  219. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Contact.json +15 -20
  220. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactCenterChannel.json +0 -10
  221. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactCleanInfo.json +1 -1
  222. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointAddress.json +9 -0
  223. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointEmail.json +1 -1
  224. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactPointPhone.json +1 -1
  225. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactProspectingAgentResearch.json +51 -0
  226. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactRequest.json +2 -17
  227. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactRequestShare.json +1 -1
  228. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactShare.json +1 -1
  229. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContactTag.json +1 -1
  230. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentAsset.json +1 -1
  231. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDistribution.json +3 -1
  232. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDistributionView.json +2 -0
  233. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocument.json +4 -2
  234. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentHistory.json +2 -0
  235. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentLink.json +3 -1
  236. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentListViewMapping.json +1 -1
  237. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentDocumentSubscription.json +1 -1
  238. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolder.json +2 -0
  239. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolderLink.json +2 -0
  240. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentFolderMember.json +2 -0
  241. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentHubItem.json +1 -1
  242. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentNote.json +3 -1
  243. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentNotification.json +1 -1
  244. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentTagSubscription.json +1 -1
  245. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentUserSubscription.json +1 -1
  246. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersion.json +2 -2
  247. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionComment.json +1 -1
  248. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionHistory.json +2 -0
  249. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionRating.json +1 -1
  250. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspace.json +3 -1
  251. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspaceDoc.json +4 -0
  252. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentWorkspaceSubscription.json +1 -1
  253. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Contract.json +1 -1
  254. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineItem.json +1 -1
  255. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineOutcome.json +2 -5
  256. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractLineOutcomeData.json +2 -5
  257. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContractTag.json +1 -1
  258. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConvMessageSendRequest.json +1 -1
  259. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Conversation.json +14 -4
  260. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationApiLog.json +2 -7
  261. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationChannelDefinition.json +1 -1
  262. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationEntry.json +1 -1
  263. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationParticipant.json +9 -4
  264. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ConversationVendorInfo.json +19 -1
  265. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CorsWhitelistEntry.json +1 -1
  266. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Coupon.json +14 -0
  267. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemo.json +20 -1
  268. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoAddressGroup.json +1 -6
  269. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoInvApplication.json +1 -1
  270. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CreditMemoLine.json +1 -1
  271. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CronJobDetail.json +6 -1
  272. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CspTrustedSite.json +2 -2
  273. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CspViolationEventLog.json +1 -1
  274. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CurrencyType.json +3 -1
  275. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomBrand.json +1 -1
  276. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomBrandAsset.json +1 -1
  277. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomPermission.json +2 -2
  278. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomPermissionDependency.json +1 -1
  279. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/CustomReportType.json +133 -0
  280. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Custom_Object__Feed.json +2 -2
  281. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DashboardTag.json +1 -1
  282. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataAssessmentValueMetric.json +1 -1
  283. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataEncryptionKey.json +1 -1
  284. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataKitDeploymentLog.json +5 -0
  285. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataLakeObjectInstance.json +327 -0
  286. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DataMaskCustomValueLibrary.json +1 -1
  287. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudCompany.json +1 -1
  288. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudContact.json +1 -1
  289. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatacloudDandBCompany.json +1 -1
  290. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatasetExport.json +1 -1
  291. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DatasetExportPart.json +1 -1
  292. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DeliveryEstimationSetup.json +28 -0
  293. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsActivityLog.json +133 -2
  294. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvDeployment.json +173 -2
  295. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvDeploymentMbr.json +101 -2
  296. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsEnvironment.json +144 -2
  297. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipeline.json +90 -2
  298. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineEnvironment.json +80 -2
  299. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineStage.json +99 -2
  300. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineStageTrigger.json +96 -2
  301. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelineTestProvider.json +81 -2
  302. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelnStgProm.json +80 -2
  303. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsPipelnStgPromWkItem.json +85 -2
  304. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsProject.json +80 -2
  305. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsProjectPipeline.json +76 -2
  306. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGate.json +71 -2
  307. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateResult.json +76 -2
  308. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateRule.json +77 -2
  309. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsQualityGateRuleResult.json +76 -2
  310. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsRequestInfo.json +98 -2
  311. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTest.json +148 -2
  312. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestExecution.json +124 -2
  313. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestProvider.json +88 -2
  314. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestProviderSyncLog.json +94 -2
  315. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuite.json +115 -2
  316. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteExecution.json +150 -2
  317. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteGroupExec.json +100 -2
  318. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteStage.json +85 -2
  319. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsTestSuiteTest.json +85 -2
  320. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DevopsWkItmTstSteGrpExec.json +76 -2
  321. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DigitalSignature.json +1 -6
  322. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Division.json +3 -1
  323. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DivisionLocalization.json +2 -0
  324. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DocumentTag.json +1 -1
  325. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Domain.json +2 -0
  326. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DomainSite.json +2 -0
  327. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DuplicateRule.json +1 -1
  328. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/DynamicDataCapture.json +0 -5
  329. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ElectronicMediaGroup.json +1 -1
  330. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailDomainFilter.json +2 -2
  331. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailDomainKey.json +2 -2
  332. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailInsight.json +1 -1
  333. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailInsightAction.json +1 -1
  334. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailMessage.json +2 -2
  335. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailRelay.json +35 -2
  336. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmailRoutingAddress.json +1 -1
  337. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EmbeddedServiceLabel.json +1 -1
  338. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Employee2.json +112 -2
  339. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnablementMeasureDefinition.json +1 -1
  340. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnablementProgram.json +2 -0
  341. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblMeasureObjectDefinition.json +1 -1
  342. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblPgmTaskMeasureProgress.json +4 -2
  343. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramSection.json +4 -2
  344. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskDefinition.json +4 -2
  345. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskProgress.json +4 -2
  346. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EnblProgramTaskSubCategory.json +1 -1
  347. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementChannelType.json +14 -2
  348. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignal.json +83 -2
  349. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignalCmpndMetric.json +88 -2
  350. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EngagementSignalMetric.json +73 -2
  351. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EntityMilestone.json +8 -1
  352. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EntitySubscription.json +1 -1
  353. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Event.json +2 -2
  354. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventLogFile.json +1 -1
  355. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventRelation.json +6 -2
  356. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventRelayConfig.json +2 -0
  357. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventTag.json +1 -1
  358. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/EventWhoRelation.json +1 -1
  359. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Expense.json +0 -5
  360. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpenseReport.json +0 -5
  361. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpenseReportEntry.json +0 -5
  362. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpressionFilter.json +1 -6
  363. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExpressionFilterCriteria.json +0 -5
  364. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalAccountHierarchy.json +1 -1
  365. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalClientApplication.json +1 -1
  366. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalDataSource.json +1 -1
  367. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalDataUserAuth.json +1 -1
  368. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalEncryptionRootKey.json +2 -2
  369. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExternalSocialAccount.json +1 -1
  370. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExtlClntAppOauthSettings.json +1 -1
  371. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ExtlClntAppPlcyCnfg.json +1 -1
  372. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedAttachment.json +3 -1
  373. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedComment.json +2 -2
  374. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedItem.json +3 -3
  375. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedLike.json +1 -1
  376. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPollChoice.json +2 -2
  377. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPollVote.json +1 -1
  378. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedPost.json +2 -2
  379. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedRevision.json +1 -1
  380. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FeedTrackedChange.json +1 -1
  381. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldChangeSnapshot.json +1 -1
  382. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldHistoryArchive.json +0 -15
  383. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldPermissions.json +1 -1
  384. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldServiceMobileSettings.json +1 -1
  385. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FieldServiceOrgSettings.json +1 -1
  386. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FldSvcObjChg.json +2 -0
  387. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FldSvcObjChgDtl.json +2 -0
  388. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlexQueueItem.json +1 -1
  389. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterview.json +1 -1
  390. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewLog.json +1 -1
  391. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewLogOwnerSharingRule.json +1 -1
  392. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewOwnerSharingRule.json +1 -1
  393. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowInterviewShare.json +1 -1
  394. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowNavMetricEventLog.json +2 -2
  395. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowOrchestrationInstance.json +1 -1
  396. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowRecord.json +5 -0
  397. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowRecordVersion.json +4 -0
  398. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowStageRelation.json +1 -1
  399. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FlowTestResult.json +1 -1
  400. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Folder.json +2 -0
  401. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingAdjustment.json +1 -6
  402. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingColumnDefinition.json +1 -1
  403. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingColumnDefinitionLocalization.json +1 -1
  404. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingCustomData.json +0 -5
  405. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingFact.json +1 -6
  406. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingGroup.json +1 -1
  407. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingItem.json +1 -6
  408. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingOwnerAdjustment.json +1 -6
  409. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingQuota.json +1 -6
  410. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingSourceDefinition.json +1 -1
  411. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingType.json +0 -5
  412. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ForecastingTypeSource.json +1 -1
  413. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FrcstCustmzAdjustment.json +0 -5
  414. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FrcstCustmzOwnerAdjustment.json +0 -5
  415. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfillmentOrder.json +5 -0
  416. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfillmentOrderLineItem.json +10 -0
  417. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteria.json +1 -1
  418. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaActnVar.json +1 -1
  419. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaCond.json +1 -1
  420. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaGrp.json +1 -1
  421. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FulfmtRoutgCriteriaGrpVer.json +1 -1
  422. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionConnection.json +1 -1
  423. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionInvocationRequest.json +1 -1
  424. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/FunctionReference.json +1 -1
  425. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAIConversationSummary.json +1 -1
  426. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiFunctionDefinition.json +118 -2
  427. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPlannerDefinition.json +86 -2
  428. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPlannerFunctionDef.json +51 -2
  429. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenAiPluginDefinition.json +104 -2
  430. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenOpPlanReferenceRecord.json +54 -0
  431. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GenOpPlanRequest.json +127 -2
  432. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GeoCountry.json +1 -1
  433. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GeolocationBasedAction.json +2 -5
  434. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GoogleDoc.json +1 -1
  435. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GraphQlQueryEventLog.json +123 -0
  436. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Group.json +1 -1
  437. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GroupMember.json +1 -1
  438. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/GtwyProvPaymentMethodType.json +1 -1
  439. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/HealthCareProcedure.json +1 -1
  440. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Holiday.json +1 -1
  441. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Hostname_Redirects_Event_Type.json +1 -1
  442. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IframeWhiteListUrl.json +1 -1
  443. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Incident.json +5 -0
  444. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IncidentRelatedItem.json +5 -0
  445. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Individual.json +3 -1
  446. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualApplicationItem.json +1 -1
  447. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualHistory.json +3 -1
  448. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/IndividualShare.json +2 -0
  449. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InsufficientAccessEventLog.json +17 -9
  450. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InternalOrganizationUnit.json +19 -8
  451. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InventoryItemReservation.json +19 -1
  452. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InventoryReservation.json +6 -1
  453. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvocableActionEventLog.json +4 -0
  454. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Invoice.json +1 -1
  455. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceAddressGroup.json +1 -1
  456. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRun.json +29 -28
  457. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRunCriteria.json +26 -3
  458. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceBatchRunRecovery.json +6 -6
  459. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceDocument.json +1 -1
  460. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/InvoiceLine.json +1 -21
  461. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/JobProfile.json +0 -5
  462. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/JobProfileQueueGroup.json +1 -1
  463. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleVersion.json +11 -1
  464. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleViewStat.json +1 -1
  465. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/KnowledgeArticleVoteStat.json +1 -1
  466. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Knowledge__DataCategorySelection.json +1 -1
  467. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Knowledge__kav.json +26 -1
  468. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Lead.json +19 -37
  469. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadProspectingAgentResearch.json +51 -0
  470. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadShare.json +1 -1
  471. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LeadTag.json +1 -1
  472. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningContent.json +4 -2
  473. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItem.json +2 -0
  474. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemAssignment.json +2 -0
  475. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemProgress.json +2 -0
  476. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemSubmission.json +1 -1
  477. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningItemType.json +1 -1
  478. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LearningPractice.json +4 -2
  479. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LegalEntity.json +1 -1
  480. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LicenseDefinitionCustomPermission.json +37 -6
  481. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LinkedArticle.json +1 -1
  482. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmail.json +5 -0
  483. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmailMonthlyMetric.json +184 -2
  484. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListEmailSentResult.json +1 -1
  485. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ListViewChartInstance.json +1 -1
  486. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveAgentSessionShare.json +1 -1
  487. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveChatTranscriptEvent.json +1 -1
  488. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LiveChatTranscriptShare.json +1 -1
  489. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Location.json +8 -3
  490. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LocationShippingCarrierMethod.json +40 -1
  491. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginAsEventLog.json +1 -1
  492. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginEventLog.json +21 -8
  493. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginGeo.json +1 -1
  494. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LoginHistory.json +2 -2
  495. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/LookedUpFromActivity.json +1 -1
  496. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModel.json +1 -1
  497. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelFactor.json +1 -1
  498. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelFactorComponent.json +1 -1
  499. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MLModelMetric.json +1 -1
  500. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Macro.json +1 -6
  501. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MacroInstruction.json +1 -6
  502. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MacroUsage.json +0 -5
  503. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MailmergeTemplate.json +2 -0
  504. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenanceAsset.json +0 -5
  505. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenancePlan.json +0 -5
  506. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MaintenanceWorkRule.json +0 -5
  507. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ManagedContentVariant.json +1 -1
  508. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MerchAccPaymentMethodSet.json +1 -1
  509. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MerchAccPaymentMethodType.json +1 -1
  510. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingChannel.json +18 -3
  511. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingChannelUsage.json +1 -1
  512. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingEndUser.json +14 -6
  513. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingSession.json +10 -7
  514. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MessagingSessionMetrics.json +1 -1
  515. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MetadataPackage.json +1 -1
  516. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MetadataPackageVersion.json +1 -1
  517. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MlIntentUtteranceSuggestion.json +0 -5
  518. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MsgChannelAvailability.json +93 -0
  519. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MsgChannelUsageExternalOrg.json +1 -1
  520. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/MutingPermissionSet.json +1298 -114
  521. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamedCredential.json +1 -1
  522. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamedCredentialEventLog.json +19 -16
  523. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NamespaceRegistry.json +0 -5
  524. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Network.json +24 -0
  525. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkActivityAudit.json +1 -1
  526. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkAffinity.json +1 -1
  527. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkAuthApiSettings.json +1 -1
  528. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkDiscoverableLogin.json +1 -1
  529. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkMember.json +1 -1
  530. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkMemberGroup.json +1 -1
  531. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkModeration.json +1 -1
  532. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NetworkPageOverride.json +1 -1
  533. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NoteAndAttachment.json +1 -1
  534. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/NoteTag.json +1 -1
  535. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OSAsyncChgCompletedEvent.json +1 -1
  536. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OauthToken.json +2 -2
  537. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ObjectTerritory2Association.json +1 -1
  538. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfig.json +1 -1
  539. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigAction.json +1 -1
  540. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigGroup.json +1 -1
  541. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigProfile.json +1 -1
  542. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigQueue.json +1 -1
  543. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigSkill.json +1 -1
  544. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigTab.json +1 -1
  545. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OmniSupervisorConfigUser.json +1 -1
  546. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpenActivity.json +1 -1
  547. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OperatingHours.json +10 -2
  548. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OperatingHoursHoliday.json +2 -2
  549. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OppSalesMethodology.json +1 -1
  550. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OppSalesMethodologyItem.json +1 -1
  551. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Opportunity.json +14 -50
  552. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityFieldHistory.json +1 -1
  553. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityHistory.json +1 -1
  554. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityLineItem.json +6 -2
  555. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityLineItemSchedule.json +1 -1
  556. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunitySplit.json +1 -1
  557. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityTag.json +1 -1
  558. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OpportunityTeamMember.json +1 -1
  559. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Order.json +10 -1
  560. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderAction.json +6 -1
  561. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderAdjustmentGroupSummary.json +5 -0
  562. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderHistory.json +1 -1
  563. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItem.json +16 -11
  564. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemAdjustmentLineItem.json +11 -0
  565. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemAdjustmentLineSummary.json +5 -0
  566. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemGroup.json +82 -2
  567. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemRelationship.json +1 -1
  568. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderItemSummary.json +5 -0
  569. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderShare.json +1 -1
  570. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderSummary.json +5 -0
  571. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrderSummaryAdditionalInfo.json +12 -1
  572. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrgEmailAddressSecurity.json +1 -1
  573. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OrgSnapshot.json +1 -1
  574. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Organization.json +5 -4
  575. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/OutOfOffice.json +3 -1
  576. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackageLicense.json +1 -1
  577. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushError.json +2 -2
  578. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushJob.json +2 -2
  579. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackagePushRequest.json +8 -2
  580. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PackageSubscriber.json +2 -2
  581. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PartnerNetworkRecordConnection.json +1 -1
  582. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentCreditLinePayment.json +1 -1
  583. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentCreditTransaction.json +1 -1
  584. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentGateway.json +1 -1
  585. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentLineInvoice.json +1 -1
  586. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentLink.json +11 -1
  587. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentSchedule.json +11 -6
  588. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleItem.json +37 -8
  589. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentSchedulePolicy.json +1 -6
  590. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleTreatment.json +22 -7
  591. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentScheduleTreatmentDtl.json +1 -6
  592. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentTerm.json +2 -2
  593. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PaymentTermItem.json +1 -1
  594. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PendingOrderSummary.json +1 -1
  595. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PendingServiceRouting.json +5 -0
  596. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSet.json +1299 -115
  597. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetAssignment.json +2 -2
  598. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetGroup.json +2 -2
  599. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicense.json +1298 -114
  600. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicenseAssign.json +2 -2
  601. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetLicenseDefinition.json +56 -11
  602. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PermissionSetTabSetting.json +1 -1
  603. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersnlBatchDecision.json +127 -2
  604. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonAccountOwnerPowerUser.json +1 -1
  605. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonTraining.json +1 -1
  606. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationDecision.json +82 -2
  607. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationObjective.json +69 -2
  608. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationPoint.json +119 -2
  609. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PersonalizationSchema.json +4 -4
  610. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PipelineInspectionListView.json +1 -1
  611. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PipelineInspectionSumField.json +1 -1
  612. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PlatformAction.json +1 -1
  613. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PplnInspListViewCalcClmn.json +62 -2
  614. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceConfigDeclineReason.json +1 -1
  615. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceDeclineReason.json +1 -1
  616. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfig.json +1 -1
  617. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfigProfile.json +1 -1
  618. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PresenceUserConfigUser.json +1 -1
  619. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PriceAdjustmentSchedule.json +6 -1
  620. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PriceAdjustmentTier.json +1 -1
  621. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Pricebook2.json +6 -1
  622. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Pricebook2History.json +1 -1
  623. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PricebookEntry.json +1 -1
  624. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyHold.json +1 -1
  625. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyHoldReason.json +1 -1
  626. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyJobSession.json +2 -2
  627. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyObjectSession.json +1 -1
  628. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyRTBFRequest.json +1 -1
  629. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacyRequest.json +2 -2
  630. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PrivacySessionRecordFailure.json +1 -1
  631. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Problem.json +5 -0
  632. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProblemIncident.json +5 -0
  633. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProblemRelatedItem.json +5 -0
  634. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessException.json +5 -0
  635. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessInstance.json +1 -1
  636. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProcessInstanceHistory.json +1 -1
  637. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProducerCommission.json +26 -0
  638. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Product2.json +11 -1
  639. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Product2DataTranslation.json +2 -2
  640. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductCategory.json +2 -2
  641. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductCategoryDataTranslation.json +2 -0
  642. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductConsumed.json +2 -7
  643. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductConsumedState.json +117 -0
  644. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductItem.json +16 -5
  645. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductItemTransaction.json +7 -5
  646. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductMedia.json +1 -1
  647. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRelatedComponent.json +1 -1
  648. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRelationshipType.json +6 -1
  649. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequest.json +11 -6
  650. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequestLineItem.json +5 -5
  651. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductRequired.json +1 -6
  652. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductSellingModel.json +1 -1
  653. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductSellingModelOption.json +1 -1
  654. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaign.json +0 -5
  655. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignItem.json +0 -5
  656. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignItemStatus.json +1 -1
  657. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductServiceCampaignStatus.json +1 -1
  658. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductTransfer.json +5 -5
  659. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProductWarrantyTerm.json +0 -5
  660. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Profile.json +1303 -115
  661. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProgramProduct.json +1 -1
  662. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Promotion.json +5 -0
  663. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionLineItemRule.json +4 -0
  664. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionQualifier.json +4 -0
  665. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionTarget.json +4 -0
  666. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PromotionTier.json +5 -0
  667. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Prospect.json +199 -2
  668. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentDataSource.json +40 -2
  669. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentExternalCompanyResearch.json +52 -0
  670. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentExternalPersonResearch.json +52 -0
  671. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentRcmdTarget.json +1 -1
  672. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentSpec.json +48 -2
  673. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentSpecParm.json +50 -2
  674. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ProspectingAgentUserSpec.json +42 -2
  675. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PublicComplaint.json +24 -8
  676. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PushTopic.json +4 -2
  677. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/PymtSchdDistributionMethod.json +1 -6
  678. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuestionDataCategorySelection.json +1 -1
  679. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuestionSubscription.json +1 -1
  680. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QueueRoutingConfig.json +1 -1
  681. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QueueSobject.json +2 -2
  682. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuickText.json +1 -1
  683. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Quote.json +10 -1
  684. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteAction.json +5 -0
  685. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteAdjustmentGroup.json +1 -1
  686. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteDocument.json +15 -0
  687. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteItemTaxItem.json +1 -1
  688. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineGroup.json +82 -2
  689. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineItem.json +11 -6
  690. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLinePriceAdjustment.json +117 -2
  691. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteLineRelationship.json +9 -0
  692. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/QuoteRecipientGroup.json +5 -0
  693. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecentFieldChange.json +1 -1
  694. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecentlyViewed.json +1 -1
  695. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecommendationResponse.json +1 -1
  696. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordAction.json +6 -1
  697. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordActionHistory.json +2 -2
  698. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordType.json +1 -1
  699. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordTypeLocalization.json +2 -0
  700. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordVisibility.json +2 -2
  701. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFilterCriteria.json +1 -6
  702. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFilterCriteriaRule.json +0 -5
  703. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RecordsetFltrCritMonitor.json +0 -5
  704. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RedirectWhitelistUrl.json +1 -1
  705. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Refund.json +36 -0
  706. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RefundLinePayment.json +1 -1
  707. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RelatedListColumnDefinition.json +1 -1
  708. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RelatedListDefinition.json +1 -1
  709. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReplyText.json +1 -1
  710. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReportEventLog.json +7 -6
  711. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReportTag.json +1 -1
  712. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Report_Event_Type.json +1 -1
  713. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ResourceAbsence.json +10 -6
  714. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ResourcePreference.json +0 -5
  715. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RestApiEventLog.json +4 -3
  716. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ReturnOrder.json +12 -2
  717. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RevenueAsyncOperation.json +1 -1
  718. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/RevenueTransactionErrorLog.json +1 -1
  719. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SalesWorkQueueSettings.json +1 -1
  720. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SamlSsoConfig.json +1 -1
  721. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SavedPaymentMethod.json +1 -1
  722. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingConstraint.json +2 -2
  723. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingObjective.json +1 -1
  724. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingRule.json +1 -1
  725. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SchedulingRuleParameter.json +1 -1
  726. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Scontrol.json +2 -0
  727. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ScontrolLocalization.json +2 -0
  728. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ScratchOrgInfo.json +0 -5
  729. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SearchActivity.json +1 -1
  730. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SecurityHealthCheckAlertRecipient.json +65 -2
  731. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SecurityHealthCheckResult.json +78 -2
  732. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SelfServiceUser.json +1 -1
  733. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SenderEmailAddress.json +9 -0
  734. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SerializedProductTransaction.json +126 -0
  735. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceAppointment.json +28 -8
  736. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceAppointmentStatus.json +2 -2
  737. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceChannel.json +1 -1
  738. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceChannelStatus.json +1 -1
  739. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceCrew.json +0 -5
  740. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceCrewMember.json +0 -5
  741. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServicePresenceStatus.json +1 -1
  742. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceReport.json +0 -5
  743. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResource.json +6 -5
  744. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceCapacity.json +1 -6
  745. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceDataTranslation.json +3 -1
  746. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourcePreference.json +1 -1
  747. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceResourceSkill.json +1 -6
  748. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritory.json +6 -5
  749. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryDataTranslation.json +3 -1
  750. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryLocation.json +0 -5
  751. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryMember.json +11 -5
  752. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ServiceTerritoryWorkType.json +9 -1
  753. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SessionPermSetActivation.json +2 -2
  754. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SetupEntityAccess.json +1 -1
  755. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SfdcPartnerSbscrOffer.json +272 -2
  756. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SfdcPartnerSbscrOfferItem.json +128 -2
  757. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Shift.json +14 -6
  758. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftPattern.json +0 -5
  759. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftPatternEntry.json +6 -6
  760. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftSegment.json +1 -1
  761. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftSegmentType.json +1 -1
  762. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShiftTemplate.json +1 -1
  763. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Shipment.json +1 -1
  764. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShipmentItem.json +1 -1
  765. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingCarrierMethod.json +38 -0
  766. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingConfigSetProduct.json +1 -1
  767. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingConfigurationSet.json +1 -1
  768. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingRateArea.json +1 -1
  769. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ShippingRateGroup.json +1 -1
  770. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SignupRequest.json +2 -25
  771. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Site.json +2 -0
  772. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteDomain.json +2 -0
  773. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteEventLog.json +2 -1
  774. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteHistory.json +2 -0
  775. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SiteIframeWhitelistUrl.json +2 -0
  776. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Skill.json +1 -1
  777. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillLevelDefinition.json +1 -1
  778. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillLevelProgress.json +1 -1
  779. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SkillRequirement.json +2 -7
  780. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SlaProcess.json +1 -1
  781. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SlackChannelRelatedRecord.json +1 -1
  782. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SoapApiEventLog.json +2 -1
  783. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SocialPersona.json +1 -1
  784. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SocialPost.json +1 -1
  785. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SolutionTag.json +1 -1
  786. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepoProvider.json +81 -2
  787. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepository.json +101 -2
  788. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SourceCodeRepositoryBranch.json +95 -2
  789. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StagedUnmtchdEmailAddr.json +1 -1
  790. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StagedUnmtchdEmailAddrRela.json +1 -1
  791. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardInvocableActionType.json +1 -1
  792. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameChangeEvent.json +2 -0
  793. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameFeed.json +2 -2
  794. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameHistory.json +1 -1
  795. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameOwnerSharingRule.json +1 -1
  796. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectNameShare.json +1 -1
  797. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Feed.json +2 -2
  798. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Feed_Feed.json +2 -2
  799. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_History.json +1 -1
  800. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_History_History.json +1 -1
  801. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_OwnerSharingRule.json +1 -1
  802. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_OwnerSharingRule_OwnerSharingRule.json +1 -1
  803. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Share.json +1 -1
  804. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardObjectName_Share_Share.json +1 -1
  805. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StandardShippingRate.json +1 -1
  806. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StaticResource.json +1 -1
  807. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/StreamingChannel.json +2 -0
  808. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SvcCatalogItemDef.json +0 -50
  809. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SvcCatalogRequest.json +29 -9
  810. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Swarm.json +15 -5
  811. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/SwarmMember.json +0 -5
  812. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TagDefinition.json +1 -1
  813. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Task.json +1 -1
  814. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaskRelation.json +1 -1
  815. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaskTag.json +1 -1
  816. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngine.json +11 -1
  817. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngineInteractionLog.json +6 -1
  818. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxEngineProvider.json +1 -1
  819. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxPolicy.json +1 -1
  820. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TaxTreatment.json +1 -1
  821. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantConsumptionAlert.json +1 -1
  822. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecret.json +1 -1
  823. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckBaselineTrend.json +15 -15
  824. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckDetail.json +2 -2
  825. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityHealthCheckTrend.json +3 -3
  826. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLicense.json +4 -4
  827. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLogin.json +2 -2
  828. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityLoginIpRangeTrend.json +2 -2
  829. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityNotificationRule.json +2 -2
  830. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityPackage.json +1 -1
  831. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityReportAnomaly.json +2 -2
  832. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecuritySessionHijacking.json +2 -2
  833. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityTrigTransactionSecurityPol.json +30 -34
  834. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TenantSecurityTrustedIpRangeTrend.json +3 -3
  835. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2AlignmentLog.json +1 -1
  836. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2ObjSharingConfig.json +1 -1
  837. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Territory2ObjectExclusion.json +1 -1
  838. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TerritoryAdminAssignment.json +1 -1
  839. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TerritoryMgmtObjectConfig.json +1 -1
  840. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TestSuiteMembership.json +1 -1
  841. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ThirdPartyAccountLink.json +2 -2
  842. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSheet.json +0 -5
  843. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSheetEntry.json +0 -5
  844. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TimeSlot.json +9 -1
  845. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Topic.json +1 -1
  846. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TopicAssignment.json +1 -1
  847. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TransactionSecurityEventLog.json +0 -5
  848. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TransactionSecurityPolicy.json +1 -1
  849. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Translation.json +1 -1
  850. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TravelMode.json +9 -6
  851. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/TwoFactorMethodsInfo.json +2 -2
  852. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivity.json +1 -1
  853. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityInsight.json +3 -1
  854. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityParticipant.json +1 -1
  855. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActivityRelation.json +1 -1
  856. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedActvtyInsightKeyword.json +1 -1
  857. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedEmail.json +2 -2
  858. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedEmailParticipant.json +2 -2
  859. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedMeeting.json +2 -2
  860. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedMeetingParticipant.json +2 -2
  861. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedTask.json +2 -2
  862. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedTaskParticipant.json +2 -2
  863. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVideoCall.json +1 -1
  864. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVideoCallParticipant.json +3 -1
  865. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVoiceCall.json +1 -1
  866. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UnifiedVoiceCallParticipant.json +3 -1
  867. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UniqueQueryEventLog.json +12 -1
  868. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactFactor.json +6 -16
  869. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroup.json +6 -18
  870. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupFactor.json +8 -34
  871. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupPgmMeasure.json +7 -31
  872. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UsageImpactGroupVersion.json +11 -37
  873. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/User.json +12 -65
  874. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserCustomBadgeLocalization.json +1 -1
  875. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailCalendarSync.json +1 -1
  876. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailPreferredPerson.json +1 -1
  877. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserEmailPreferredPersonShare.json +1 -1
  878. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserLicense.json +1 -1
  879. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserLogin.json +1 -1
  880. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPermissionAccess.json +1297 -113
  881. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPreference.json +2 -2
  882. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserPrioritizedRecord.json +1 -1
  883. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProfile.json +1 -1
  884. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProvAccountStaging.json +1 -1
  885. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserProvisioningRequest.json +1 -1
  886. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserRecordAccess.json +1 -1
  887. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserRole.json +1 -1
  888. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserServicePresence.json +1 -1
  889. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserTeamMember.json +3 -1
  890. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserTerritory.json +2 -0
  891. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserUIPreference.json +5 -0
  892. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VendorCallCenterStatusMap.json +1 -1
  893. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VerificationHistory.json +2 -2
  894. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VideoCall.json +1 -1
  895. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VideoCallParticipant.json +12 -5
  896. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VisualforceRequestEventLog.json +1 -1
  897. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCall.json +22 -7
  898. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCallRecording.json +5 -9
  899. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCallSessionData.json +94 -0
  900. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceCall_Sharing_Models.json +8 -0
  901. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/VoiceVendorInfo.json +0 -5
  902. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Vote.json +2 -2
  903. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WarrantyTerm.json +10 -5
  904. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCart.json +70 -3
  905. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCartAdjustmentGroup.json +5 -0
  906. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebCartHistory.json +1 -1
  907. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebLink.json +4 -2
  908. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebLinkLocalization.json +2 -0
  909. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStore.json +1 -1
  910. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStoreMessageContent.json +1 -1
  911. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WebStoreNetwork.json +1 -1
  912. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Wishlist.json +10 -0
  913. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WishlistItem.json +14 -1
  914. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityAvailability.json +2 -7
  915. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityLimit.json +0 -5
  916. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkCapacityUsage.json +2 -7
  917. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkDemographic.json +88 -2
  918. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItem.json +144 -2
  919. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItemComponent.json +101 -2
  920. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkItemEvent.json +49 -2
  921. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrder.json +2 -0
  922. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderLineItem.json +1 -1
  923. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderLineItemStatus.json +1 -1
  924. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkOrderStatus.json +1 -1
  925. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkPlanSelectionRule.json +0 -5
  926. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkType.json +6 -5
  927. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkTypeGroup.json +0 -5
  928. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkTypeGroupMember.json +0 -5
  929. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkforceCapacity.json +91 -3
  930. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkforceCapacityUnit.json +168 -2
  931. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/Workload.json +140 -3
  932. package/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/WorkloadUnit.json +110 -2
  933. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AIApplication.json +1 -1
  934. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AIApplicationConfig.json +1 -1
  935. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/AuthorizedEmailDomain.json +8 -3
  936. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ContainerAsyncRequest.json +1 -1
  937. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ConversationVendorInfo.json +1 -1
  938. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CspTrustedSite.json +1 -1
  939. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomApplication.json +1 -1
  940. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomField.json +5 -0
  941. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomNotifActionDef.json +1 -1
  942. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomNotificationActionGroup.json +1 -1
  943. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/CustomObject.json +5 -0
  944. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DebugLevel.json +15 -0
  945. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DeployDetails.json +1 -1
  946. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/DeployRequest.json +1 -1
  947. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/EmbeddedServiceCustomLabel.json +1 -1
  948. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/EventRelayConfig.json +1 -1
  949. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ExternalDataSource.json +2 -2
  950. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ExternalServiceRegistration.json +1 -1
  951. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/FlexiPage.json +2 -2
  952. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/Flow.json +2 -2
  953. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/Group.json +1 -1
  954. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/OutboundNetworkConnection.json +1 -1
  955. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/PermissionSet.json +1 -1
  956. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/QueryResult.json +1 -1
  957. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/QuickActionDefinition.json +3 -3
  958. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ScndTelephPrvdOtbdDtl.json +59 -0
  959. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SecondaryTelephonyProvider.json +54 -0
  960. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SensitiveDataRuleElmnt.json +42 -0
  961. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SensitiveDataRuleElmntGrp.json +33 -0
  962. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/SubscriberPackage.json +1 -1
  963. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/TelephonyProvider.json +55 -0
  964. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/TrustedTelephonyProvider.json +49 -0
  965. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/User.json +1 -1
  966. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyDefinition.json +64 -0
  967. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyGroupOvride.json +38 -0
  968. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyProfileOvride.json +38 -0
  969. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/VoiceTelephonyUserOvride.json +38 -0
  970. package/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/WorkflowAlert.json +1 -1
  971. package/skills/platform-data-and-tooling-api-context-get/references/data_and_tooling_index_table.md +190 -159
  972. package/skills/platform-data-and-tooling-api-context-get/references/usage_guide.md +2 -2
  973. package/skills/platform-datamask-run/SKILL.md +27 -24
  974. package/skills/platform-datamask-run/references/run-and-abort.md +10 -12
  975. package/skills/platform-datamask-run/scripts/poll-job.sh +27 -2
  976. package/skills/platform-lightning-app-coordinate/SKILL.md +43 -45
  977. package/skills/platform-trust-archive-manage/SKILL.md +7 -7
  978. package/skills/platform-trust-archive-manage/examples/monitor-failed-jobs.md +6 -5
  979. package/skills/platform-trust-archive-manage/references/archive-activity-entity.md +3 -3
  980. package/skills/platform-trust-archive-manage/references/connect-api-operations.md +4 -2
  981. package/skills/service-digital-engagement-channel-configure/SKILL.md +27 -35
  982. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +5 -0
  983. package/skills/service-digital-engagement-channel-configure/examples/user_channel.xml +53 -0
  984. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +6 -6
  985. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +7 -5
  986. package/skills/service-digital-engagement-channel-configure/references/routing_transitions.md +48 -0
  987. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +16 -2
  988. package/skills/service-digital-engagement-deployment-configure/SKILL.md +1 -1
  989. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +7 -9
  990. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +18 -4
  991. package/skills/service-helpagent-coordinate/README.md +2 -3
  992. package/skills/service-helpagent-coordinate/SKILL.md +11 -10
  993. package/skills/service-helpagent-coordinate/assets/help-agent-spec.md +3 -3
  994. package/skills/service-helpagent-coordinate/references/channel-web-chat.md +33 -1
  995. package/skills/service-helpagent-coordinate/references/output-report-format.md +8 -2
@@ -16,9 +16,11 @@ no prior project cache is usable.
16
16
  from __future__ import annotations
17
17
 
18
18
  import argparse
19
+ import hashlib
19
20
  import json
20
21
  import os
21
22
  import re
23
+ import shutil
22
24
  import sys
23
25
  from copy import deepcopy
24
26
  from datetime import date, timedelta
@@ -418,17 +420,74 @@ PURPOSE_OUT_RE = re.compile(r"^[a-z0-9][a-z0-9_-]*-scratch-def\.json$")
418
420
  VERSIONED_OUT_RE = re.compile(r"^v\d+-scratch-def\.json$")
419
421
 
420
422
 
421
- def assert_safe_output_path(dest: Path) -> list[str]:
422
- """Require relative config/project-scratch-def.json (default) or purpose-named.
423
+ def _resolve_under_cwd(path: Path) -> Path:
424
+ """Absolute resolve; relative paths are rooted at cwd."""
425
+ path = Path(path)
426
+ if path.expanduser().is_absolute():
427
+ return path.expanduser().resolve()
428
+ return (Path.cwd() / path).resolve()
429
+
430
+
431
+ def _file_sha256(path: Path) -> str:
432
+ return hashlib.sha256(path.read_bytes()).hexdigest()
433
+
434
+
435
+ def backup_path_for(dest: Path) -> Path:
436
+ """Sibling ``*.json.bak`` next to a scratch-def (compare/rollback of prior)."""
437
+ dest = Path(dest)
438
+ return dest.with_name(dest.name + ".bak")
439
+
440
+
441
+ def assert_no_symlinks_on_path(path: Path, *, label: str) -> list[str]:
442
+ """Refuse if any lexical path component under cwd is a symlink."""
443
+ path = Path(path)
444
+ if path.expanduser().is_absolute():
445
+ return []
446
+ cur = Path.cwd()
447
+ for part in path.parts:
448
+ cur = cur / part
449
+ if cur.is_symlink():
450
+ return [
451
+ f"{label} must not be a symlink (or pass through one): {cur.name}"
452
+ ]
453
+ return []
454
+
455
+
456
+ def write_backup(src: Path, bak: Path) -> list[str]:
457
+ """Plain copy of ``src`` to sibling ``.bak`` (replace existing ``.bak``).
423
458
 
424
- Default path may overwrite on confirm (INT-7.1). Purpose-named alternates
425
- must be new files (no clobber). The cwd must already be an SF DX project
426
- with an existing config/ directory — never create config/ here.
459
+ Symlinks are refused. ``shutil.copy2`` preserves mode. Refine risk is
460
+ covered by ``--out`` must equal ``--base`` plus optional ``baseSha256``.
461
+ """
462
+ src = Path(src)
463
+ bak = Path(bak)
464
+ if bak.is_symlink():
465
+ return [
466
+ f"backup path must not be a symlink — remove {bak.name} and retry"
467
+ ]
468
+ if src.is_symlink():
469
+ return ["scratch-def path must not be a symlink"]
470
+ try:
471
+ if bak.exists() or bak.is_symlink():
472
+ bak.unlink()
473
+ shutil.copy2(src, bak)
474
+ except OSError as e:
475
+ return [f"cannot write backup {bak.name}: {e}"]
476
+ return []
477
+
478
+
479
+ def assert_safe_config_scratch_def_path(path: Path) -> list[str]:
480
+ """Shape-only: relative ``config/<default|purpose>-scratch-def.json`` under cwd.
481
+
482
+ Shared by ``--out`` and ``--base``. Never creates ``config/``. Symlinks are
483
+ refused on ``config/`` and on every path component.
427
484
  """
428
485
  errs: list[str] = []
429
- dest = Path(dest)
430
- name = dest.name
486
+ path = Path(path)
487
+ name = path.name
431
488
  config_dir = Path.cwd() / "config"
489
+ if config_dir.is_symlink():
490
+ errs.append("config/ must not be a symlink")
432
491
  if not config_dir.is_dir():
433
492
  errs.append(
434
493
  "config/ does not exist under the current working directory. "
@@ -436,37 +495,80 @@ def assert_safe_output_path(dest: Path) -> list[str]:
436
495
  "contains config/ (where they intend to create scratch orgs). "
437
496
  "Do not create config/."
438
497
  )
439
- if dest.expanduser().is_absolute():
498
+ errs.extend(assert_no_symlinks_on_path(path, label="scratch-def path"))
499
+ if path.expanduser().is_absolute():
440
500
  errs.append(
441
- "output must be a relative path under config/ as "
501
+ "path must be relative under config/ as "
442
502
  "config/project-scratch-def.json (got an absolute path)"
443
503
  )
444
- else:
445
- resolved = (Path.cwd() / dest).resolve()
504
+ elif config_dir.is_dir() and not config_dir.is_symlink():
505
+ resolved = (Path.cwd() / path).resolve()
446
506
  want_parent = config_dir.resolve()
447
507
  if resolved.parent != want_parent:
448
508
  errs.append(
449
- "output must be under config/ as config/project-scratch-def.json "
450
- f"(got parent '{dest.parent.name or dest.parent}')"
509
+ "path must be under config/ as config/project-scratch-def.json "
510
+ f"(got parent '{path.parent.name or path.parent}')"
451
511
  )
452
512
  is_default = name == DEFAULT_OUT_NAME
453
513
  if not is_default and (
454
514
  VERSIONED_OUT_RE.match(name) or not PURPOSE_OUT_RE.match(name)
455
515
  ):
456
516
  errs.append(
457
- f"output name '{name}' must be {DEFAULT_OUT_NAME} or purpose-named "
458
- "<purpose>-scratch-def.json (not v1/v2 or arbitrary filenames)"
517
+ f"name '{name}' must be {DEFAULT_OUT_NAME} or purpose-named "
518
+ "<purpose>-scratch-def.json (not v1/v2, *.bak, or arbitrary filenames)"
459
519
  )
460
- check = dest if dest.expanduser().is_absolute() else Path.cwd() / dest
520
+ return errs
521
+
522
+
523
+ def assert_safe_base_path(base: Path) -> list[str]:
524
+ """``--base`` must be a safe existing config scratch-def path."""
525
+ errs = assert_safe_config_scratch_def_path(base)
526
+ if errs:
527
+ return errs
461
528
  try:
462
- exists = check.resolve().exists() if dest.expanduser().is_absolute() else dest.exists()
529
+ resolved = _resolve_under_cwd(base)
530
+ except OSError:
531
+ return ["base path could not be resolved"]
532
+ if not resolved.is_file():
533
+ return ["base scratch-def not found under config/"]
534
+ return []
535
+
536
+
537
+ def assert_safe_output_path(
538
+ dest: Path, *, base: Path | None = None
539
+ ) -> list[str]:
540
+ """Require relative config/project-scratch-def.json (default) or purpose-named.
541
+
542
+ Generate (no ``base``): default path may overwrite on confirm; purpose-named
543
+ alternates must be new files (no clobber). Refine (``base`` set): ``--out``
544
+ must resolve to the same path as ``--base`` — never write a file the user
545
+ did not see diffed. Never create ``config/``.
546
+ """
547
+ errs = assert_safe_config_scratch_def_path(dest)
548
+ dest = Path(dest)
549
+ name = dest.name
550
+ is_default = name == DEFAULT_OUT_NAME
551
+ try:
552
+ exists = _resolve_under_cwd(dest).exists()
463
553
  except OSError:
464
554
  exists = dest.exists()
465
- # Default path: overwrite allowed after user confirm. Alternates: no clobber.
555
+ if base is not None:
556
+ try:
557
+ same_as_base = _resolve_under_cwd(dest) == _resolve_under_cwd(base)
558
+ except OSError:
559
+ same_as_base = False
560
+ if not same_as_base:
561
+ errs.append(
562
+ "refine apply requires --out to equal --base "
563
+ f"(previewed {base}, refusing write to {dest})"
564
+ )
565
+ return errs
466
566
  if exists and not is_default:
467
567
  errs.append(
468
- f"refusing to overwrite existing file '{dest}' — no revert. "
469
- f"Use {DEFAULT_OUT_NAME} (overwrite on confirm) or a new purpose-named path."
568
+ f"refusing to overwrite existing file '{dest}'. "
569
+ f"Use {DEFAULT_OUT_NAME} (overwrite on confirm), a new purpose-named "
570
+ "path, or refine in place with --base equal to --out "
571
+ "(refine keeps a .bak of the prior file)."
470
572
  )
471
573
  return errs
472
574
 
@@ -532,14 +634,21 @@ def _index_features(features_doc: dict) -> dict[str, dict]:
532
634
  return out
533
635
 
534
636
 
535
- def _synonym_index(features_doc: dict) -> dict[str, str]:
536
- """Lowercase synonym / phrase → canonical name."""
537
- idx: dict[str, str] = {}
637
+ def _synonym_index(features_doc: dict) -> dict[str, list[str]]:
638
+ """Lowercase synonym / name → sorted canonical names (collisions preserved).
639
+
640
+ Live catalogs often put the same derived phrase (e.g. ``sales cloud``) on
641
+ more than one feature. Callers must drop + warn when ``len(hits) > 1`` —
642
+ last-write-wins silently picked the wrong feature.
643
+ """
644
+ idx: dict[str, set[str]] = {}
538
645
  for name, entry in features_doc.get("features", {}).items():
539
- idx[name.lower()] = name
646
+ if not isinstance(entry, dict):
647
+ continue
648
+ idx.setdefault(name.lower(), set()).add(name)
540
649
  for syn in entry.get("synonyms") or []:
541
- idx[str(syn).lower()] = name
542
- return idx
650
+ idx.setdefault(str(syn).lower(), set()).add(name)
651
+ return {k: sorted(v) for k, v in idx.items()}
543
652
 
544
653
 
545
654
  def closest_feature(token: str, features_doc: dict, cutoff: float = 0.85) -> str | None:
@@ -583,15 +692,29 @@ def map_feature_token(
583
692
 
584
693
  entry = by_name.get(base.lower())
585
694
  if entry is None:
586
- canon = syn.get(base.lower())
587
- if canon:
588
- entry = by_name[canon.lower()]
695
+ syn_hits = syn.get(base.lower()) or []
696
+ if len(syn_hits) == 1:
697
+ entry = by_name[syn_hits[0].lower()]
698
+ elif len(syn_hits) > 1:
699
+ warnings.append(
700
+ f"ambiguous feature phrase '{raw}' — dropped "
701
+ f"(candidates: {', '.join(syn_hits)}). "
702
+ "Use an exact catalog name or listed synonym."
703
+ )
704
+ return None, warnings
589
705
  else:
590
- from scrape_config_values import longest_phrase_match
706
+ from scrape_config_values import phrase_match_features
591
707
 
592
- phrase_hit = longest_phrase_match(base, features_doc)
593
- if phrase_hit:
594
- entry = by_name[phrase_hit.lower()]
708
+ phrase_hits = phrase_match_features(base, features_doc)
709
+ if len(phrase_hits) == 1:
710
+ entry = by_name[phrase_hits[0].lower()]
711
+ elif len(phrase_hits) > 1:
712
+ warnings.append(
713
+ f"ambiguous feature phrase '{raw}' — dropped "
714
+ f"(candidates: {', '.join(phrase_hits)}). "
715
+ "Use an exact catalog name or listed synonym."
716
+ )
717
+ return None, warnings
595
718
  else:
596
719
  near = closest_feature(base, features_doc)
597
720
  if near:
@@ -616,6 +739,11 @@ def map_feature_token(
616
739
  return None, warnings
617
740
  qmin = qmeta.get("min")
618
741
  qmax = qmeta.get("max")
742
+ if qmin is None and qmax is None:
743
+ warnings.append(
744
+ f"'{name}:{quantity}' accepted but quantity bounds are unknown "
745
+ "in the catalog — not bounds-checked"
746
+ )
619
747
  if qmin is not None and quantity < qmin:
620
748
  warnings.append(f"'{name}:{quantity}' below min {qmin} — dropped")
621
749
  return None, warnings
@@ -661,15 +789,153 @@ def rewrite_org_name(name: str | None) -> tuple[str | None, list[str]]:
661
789
  return s, warnings
662
790
 
663
791
 
664
- def set_by_path(root: dict, path: str, value: Any) -> None:
792
+ def _match_settings_category_key(settings: dict, category: str) -> str | None:
793
+ """Return the on-disk category key matching ``category`` case-insensitively."""
794
+ if not isinstance(settings, dict) or not isinstance(category, str):
795
+ return None
796
+ if category in settings:
797
+ return category
798
+ lower = category.lower()
799
+ for key in settings:
800
+ if isinstance(key, str) and key.lower() == lower:
801
+ return key
802
+ return None
803
+
804
+
805
+ def resolve_settings_path(
806
+ root: dict, path: str, *, create: bool = False
807
+ ) -> tuple[list[tuple[dict, str]], dict | None, str | None]:
808
+ """Walk a dotted settings path with case-insensitive category matching.
809
+
810
+ Returns ``(parents, leaf_parent, leaf_key)``. ``parents`` is the chain of
811
+ ``(dict, key)`` used to reach ``leaf_parent``. When ``create`` is True,
812
+ missing intermediate objects are created (reusing an existing category key
813
+ casing when present). When the path cannot be resolved and ``create`` is
814
+ False, returns ``([], None, None)``.
815
+ """
665
816
  path = normalize_settings_path(path)
666
817
  parts = path.split(".")
818
+ if not parts or not parts[-1]:
819
+ return [], None, None
820
+ parents: list[tuple[dict, str]] = []
667
821
  cur = root
668
- for p in parts[:-1]:
669
- if p not in cur or not isinstance(cur[p], dict):
670
- cur[p] = {}
671
- cur = cur[p]
672
- cur[parts[-1]] = value
822
+ for i, part in enumerate(parts[:-1]):
823
+ if not isinstance(cur, dict):
824
+ return [], None, None
825
+ key = part
826
+ if i == 0:
827
+ matched = _match_settings_category_key(cur, part)
828
+ if matched is not None:
829
+ key = matched
830
+ elif not create:
831
+ return [], None, None
832
+ elif part not in cur:
833
+ if not create:
834
+ return [], None, None
835
+ key = part
836
+ if key not in cur or not isinstance(cur.get(key), dict):
837
+ if not create:
838
+ return [], None, None
839
+ cur[key] = {}
840
+ parents.append((cur, key))
841
+ cur = cur[key]
842
+ if not isinstance(cur, dict):
843
+ return [], None, None
844
+ return parents, cur, parts[-1]
845
+
846
+
847
+ def set_by_path(
848
+ root: dict,
849
+ path: str,
850
+ value: Any,
851
+ *,
852
+ preserve_existing_category_case: bool = True,
853
+ ) -> None:
854
+ """Set a dotted settings leaf; reuse existing UpperCamel category keys by default."""
855
+ _ = preserve_existing_category_case # always preserve via resolve_settings_path
856
+ _parents, leaf_parent, leaf_key = resolve_settings_path(
857
+ root, path, create=True
858
+ )
859
+ if leaf_parent is None or leaf_key is None:
860
+ return
861
+ leaf_parent[leaf_key] = value
862
+
863
+
864
+ def delete_by_path(root: dict, path: str) -> bool:
865
+ """Delete a dotted settings leaf; prune empty parents. Category match is case-insensitive."""
866
+ parents, leaf_parent, leaf_key = resolve_settings_path(
867
+ root, path, create=False
868
+ )
869
+ if leaf_parent is None or leaf_key is None or leaf_key not in leaf_parent:
870
+ return False
871
+ del leaf_parent[leaf_key]
872
+ for parent, key in reversed(parents):
873
+ child = parent.get(key)
874
+ if isinstance(child, dict) and not child:
875
+ del parent[key]
876
+ else:
877
+ break
878
+ return True
879
+
880
+
881
+ def on_disk_settings_path(root: dict, path: str) -> str | None:
882
+ """Return the dotted path using on-disk category casing, or None if missing."""
883
+ parents, leaf_parent, leaf_key = resolve_settings_path(
884
+ root, path, create=False
885
+ )
886
+ if leaf_parent is None or leaf_key is None or leaf_key not in leaf_parent:
887
+ return None
888
+ parts = [key for _parent, key in parents] + [leaf_key]
889
+ return ".".join(parts)
890
+
891
+
892
+ def deep_merge_dict(dst: dict, src: dict) -> dict:
893
+ """In-place deep merge of ``src`` into ``dst``; returns ``dst``."""
894
+ for key, val in src.items():
895
+ if isinstance(val, dict) and isinstance(dst.get(key), dict):
896
+ deep_merge_dict(dst[key], val)
897
+ else:
898
+ dst[key] = deepcopy(val)
899
+ return dst
900
+
901
+
902
+ def expand_settings_delta(set_settings: dict) -> tuple[dict, list[str]]:
903
+ """Expand dotted top-level keys into nested settings; lowerCamel categories.
904
+
905
+ Agents may send either nested objects or dotted leaves such as
906
+ ``{"lightningExperienceSettings.enableS1DesktopEnabled": true}``.
907
+ """
908
+ warnings: list[str] = []
909
+ expanded: dict = {}
910
+ for key, val in set_settings.items():
911
+ if isinstance(key, str) and "." in key:
912
+ set_by_path(expanded, key, deepcopy(val))
913
+ continue
914
+ nk = lower_camel_settings_key(key) if isinstance(key, str) else key
915
+ if nk != key and isinstance(key, str):
916
+ warnings.append(
917
+ f"settings key '{key}' rewritten to '{nk}' "
918
+ "(scratch-def uses lower camelCase, not Metadata API UpperCamel)"
919
+ )
920
+ if nk in expanded and isinstance(expanded[nk], dict) and isinstance(val, dict):
921
+ deep_merge_dict(expanded[nk], deepcopy(val))
922
+ else:
923
+ expanded[nk] = deepcopy(val)
924
+ return expanded, warnings
925
+
926
+
927
+ def merge_settings_preserving_category_case(dst: dict, src: dict) -> None:
928
+ """Deep-merge ``src`` into ``dst``, writing into existing category casing when present."""
929
+ for cat, val in src.items():
930
+ if not isinstance(cat, str):
931
+ dst[cat] = deepcopy(val)
932
+ continue
933
+ matched = _match_settings_category_key(dst, cat)
934
+ key = matched if matched is not None else cat
935
+ if isinstance(val, dict) and isinstance(dst.get(key), dict):
936
+ deep_merge_dict(dst[key], val)
937
+ else:
938
+ dst[key] = deepcopy(val)
673
939
 
674
940
 
675
941
  def lower_camel_settings_key(key: str) -> str:
@@ -742,42 +1008,64 @@ def enrich_feature_dependencies(
742
1008
  return out, warnings
743
1009
 
744
1010
 
1011
+ def _settings_path_present(settings: dict, path: str) -> tuple[bool, Any]:
1012
+ """Return (found, value) for a dotted path, matching category keys case-insensitively."""
1013
+ _parents, leaf_parent, leaf_key = resolve_settings_path(
1014
+ settings, path, create=False
1015
+ )
1016
+ if leaf_parent is None or leaf_key is None or leaf_key not in leaf_parent:
1017
+ return False, None
1018
+ return True, leaf_parent[leaf_key]
1019
+
1020
+
745
1021
  def enrich_settings(
746
- features: list[str], settings: dict | None, settings_map: dict
1022
+ features: list[str],
1023
+ settings: dict | None,
1024
+ settings_map: dict,
1025
+ *,
1026
+ rewrite_existing_keys: bool = True,
747
1027
  ) -> tuple[dict, list[str]]:
748
- """Deep-merge required settings for each kept feature."""
1028
+ """Deep-merge required settings for each kept feature.
1029
+
1030
+ ``rewrite_existing_keys=False`` (refine): leave hand-written category casing
1031
+ alone and only add missing required leaves for the given features.
1032
+ """
749
1033
  warnings: list[str] = []
750
- out, nw = normalize_settings_tree(settings if isinstance(settings, dict) else {})
751
- warnings.extend(nw)
1034
+ if rewrite_existing_keys:
1035
+ out, nw = normalize_settings_tree(
1036
+ settings if isinstance(settings, dict) else {}
1037
+ )
1038
+ warnings.extend(nw)
1039
+ else:
1040
+ out = deepcopy(settings) if isinstance(settings, dict) else {}
752
1041
  by_feature = settings_map.get("byFeature") or {}
753
1042
  for feat in features:
754
1043
  base = feat.split(":", 1)[0]
755
- entry = by_feature.get(base)
1044
+ entry = _by_feature_entry(by_feature, base)
756
1045
  if not entry:
757
1046
  continue
758
1047
  for req in entry.get("required") or []:
759
1048
  path = normalize_settings_path(req["path"])
760
1049
  example = req.get("example", True)
761
- parts = path.split(".")
762
- cur = out
763
- missing = False
764
- conflict = False
765
- for p in parts[:-1]:
766
- if p not in cur or not isinstance(cur.get(p), dict):
767
- missing = True
768
- break
769
- cur = cur[p]
770
- else:
771
- if parts[-1] not in cur:
772
- missing = True
773
- elif cur[parts[-1]] != example:
774
- conflict = True
775
- if missing:
776
- set_by_path(out, path, example)
1050
+ found, cur_val = _settings_path_present(out, path)
1051
+ preserve = not rewrite_existing_keys
1052
+ if not found:
1053
+ set_by_path(
1054
+ out,
1055
+ path,
1056
+ example,
1057
+ preserve_existing_category_case=preserve,
1058
+ )
777
1059
  warnings.append(f"enriched required setting {path} for {base}")
778
- elif conflict:
1060
+ elif cur_val != example:
779
1061
  # Required cache value wins — a false/wrong leaf would disable the feature.
780
- set_by_path(out, path, example)
1062
+ # Prefer writing the canonical path; leave a mistyped sibling alone.
1063
+ set_by_path(
1064
+ out,
1065
+ path,
1066
+ example,
1067
+ preserve_existing_category_case=preserve,
1068
+ )
781
1069
  warnings.append(
782
1070
  f"overrode conflicting setting {path} to required {example!r} for {base}"
783
1071
  )
@@ -985,8 +1273,14 @@ def _apply_orgname_and_namespace(
985
1273
 
986
1274
 
987
1275
  def _schema_gate(
988
- out: dict, errors: list[str], warnings: list[str]
1276
+ out: dict,
1277
+ errors: list[str],
1278
+ warnings: list[str],
1279
+ *,
1280
+ baseline: dict | None = None,
989
1281
  ) -> None:
1282
+ """Schema-check ``out``. With ``baseline`` (refine), errors the base file
1283
+ already had are warnings — only errors the delta introduced block."""
990
1284
  skip = any(
991
1285
  "template field refused" in e or "shape/snapshot-only def refused" in e
992
1286
  for e in errors
@@ -997,7 +1291,13 @@ def _schema_gate(
997
1291
  warnings.append(JSONSCHEMA_MISSING_WARNING)
998
1292
  return
999
1293
  try:
1000
- errors.extend(validate_against_schema(out, load_schema()))
1294
+ schema = load_schema()
1295
+ found = validate_against_schema(out, schema)
1296
+ if baseline is not None:
1297
+ known = set(validate_against_schema(baseline, schema))
1298
+ warnings.extend(f"pre-existing in base: {e}" for e in found if e in known)
1299
+ found = [e for e in found if e not in known]
1300
+ errors.extend(found)
1001
1301
  except FileNotFoundError as e:
1002
1302
  errors.append(f"JSON Schema: {e}")
1003
1303
  except Exception as e: # noqa: BLE001 — do not block write on validator crash
@@ -1179,22 +1479,659 @@ def _merge_catalog_warnings(result: dict, catalog_warnings: list[str]) -> dict:
1179
1479
  return result
1180
1480
 
1181
1481
 
1182
- def cmd_validate(
1183
- file: Path | None = None,
1482
+ def _feature_base(token: str) -> str:
1483
+ return str(token).split(":", 1)[0]
1484
+
1485
+
1486
+ def _feature_bases(features: Any) -> set[str]:
1487
+ if not isinstance(features, list):
1488
+ return set()
1489
+ return {_feature_base(f) for f in features if isinstance(f, str) and f.strip()}
1490
+
1491
+
1492
+ def _by_feature_entry(by_feature: dict, base_name: str) -> dict | None:
1493
+ """Look up settings-map byFeature with case-insensitive feature base."""
1494
+ if not isinstance(by_feature, dict) or not base_name:
1495
+ return None
1496
+ entry = by_feature.get(base_name)
1497
+ if isinstance(entry, dict):
1498
+ return entry
1499
+ lower = base_name.lower()
1500
+ for key, val in by_feature.items():
1501
+ if isinstance(key, str) and key.lower() == lower and isinstance(val, dict):
1502
+ return val
1503
+ return None
1504
+
1505
+
1506
+ def required_setting_paths_for_features(
1507
+ features: list[str], settings_map: dict
1508
+ ) -> set[str]:
1509
+ """Normalized setting paths required by the given feature tokens."""
1510
+ by_feature = settings_map.get("byFeature") or {}
1511
+ paths: set[str] = set()
1512
+ for feat in features:
1513
+ if not isinstance(feat, str) or not feat.strip():
1514
+ continue
1515
+ entry = _by_feature_entry(by_feature, _feature_base(feat))
1516
+ if not entry:
1517
+ continue
1518
+ for req in entry.get("required") or []:
1519
+ path = req.get("path") if isinstance(req, dict) else None
1520
+ if isinstance(path, str) and path.strip():
1521
+ paths.add(normalize_settings_path(path))
1522
+ return paths
1523
+
1524
+
1525
+ def _tokens_by_base(features: list[str]) -> dict[str, set[str]]:
1526
+ """Group feature tokens by case-insensitive base name.
1527
+
1528
+ The dict key is a display base (first-seen casing). Values keep the
1529
+ on-disk tokens so quantity diffs still show the real strings.
1530
+ """
1531
+ by_base: dict[str, set[str]] = {}
1532
+ lower_to_key: dict[str, str] = {}
1533
+ for feat in features:
1534
+ base = _feature_base(feat)
1535
+ key = lower_to_key.setdefault(base.lower(), base)
1536
+ by_base.setdefault(key, set()).add(feat)
1537
+ return by_base
1538
+
1539
+
1540
+ def _norm_feature_token(token: str) -> str:
1541
+ """Case-fold the feature base; keep quantity suffix as-is."""
1542
+ if ":" not in token:
1543
+ return token.lower()
1544
+ base, qty = token.split(":", 1)
1545
+ return f"{base.lower()}:{qty}"
1546
+
1547
+
1548
+ # Top-level keys owned by dedicated delta ops (not delta.set / delta.unset).
1549
+ _DELTA_RESERVED_TOP = frozenset(
1550
+ {"features", "settings", "objectSettings", "edition"}
1551
+ )
1552
+ DELTA_KEYS = frozenset(
1553
+ {
1554
+ "addFeatures",
1555
+ "removeFeatures",
1556
+ "setEdition",
1557
+ "set",
1558
+ "unset",
1559
+ "setSettings",
1560
+ "unsetSettings",
1561
+ "setObjectSettings",
1562
+ "unsetObjectSettings",
1563
+ }
1564
+ )
1565
+ _DIFF_SPECIAL_TOP = frozenset(
1566
+ {"features", "settings", "objectSettings", "edition"}
1567
+ )
1568
+
1569
+
1570
+ def diff_scratch_defs(
1571
+ before: dict, after: dict, settings_map: dict | None = None
1572
+ ) -> dict:
1573
+ """Whole-file before→after delta for refine Preview cards.
1574
+
1575
+ Compares the base document as loaded (copy-through) to the post-delta
1576
+ document. Feature add/remove use base names (``Feature:N`` → ``Feature``);
1577
+ quantity-only edits surface in ``featuresQuantityChanged``. Top-level
1578
+ scalars and ``objectSettings`` are included so unrelated fields never
1579
+ silently disappear from the card.
1580
+ """
1581
+ before = before if isinstance(before, dict) else {}
1582
+ after = after if isinstance(after, dict) else {}
1583
+ before_feats = [
1584
+ f for f in (before.get("features") or []) if isinstance(f, str) and f.strip()
1585
+ ]
1586
+ after_feats = [
1587
+ f for f in (after.get("features") or []) if isinstance(f, str) and f.strip()
1588
+ ]
1589
+ # Case-insensitive bases: re-adding Communities over hand-written
1590
+ # "communities" must not show as both added and removed.
1591
+ before_by_base = _tokens_by_base(before_feats)
1592
+ after_by_base = _tokens_by_base(after_feats)
1593
+ before_lower = {b.lower(): b for b in before_by_base}
1594
+ after_lower = {b.lower(): b for b in after_by_base}
1595
+ features_added = sorted(
1596
+ after_lower[k] for k in after_lower.keys() - before_lower.keys()
1597
+ )
1598
+ features_removed = sorted(
1599
+ before_lower[k] for k in before_lower.keys() - after_lower.keys()
1600
+ )
1601
+
1602
+ features_quantity_changed: list[dict[str, Any]] = []
1603
+ for base_lower in sorted(before_lower.keys() & after_lower.keys()):
1604
+ before_key = before_lower[base_lower]
1605
+ after_key = after_lower[base_lower]
1606
+ before_tokens = before_by_base.get(before_key) or set()
1607
+ after_tokens = after_by_base.get(after_key) or set()
1608
+ before_norm = {_norm_feature_token(t) for t in before_tokens}
1609
+ after_norm = {_norm_feature_token(t) for t in after_tokens}
1610
+ if before_norm != after_norm:
1611
+ features_quantity_changed.append(
1612
+ {
1613
+ "base": after_key,
1614
+ "before": sorted(before_tokens),
1615
+ "after": sorted(after_tokens),
1616
+ }
1617
+ )
1618
+
1619
+ before_settings = (
1620
+ before.get("settings") if isinstance(before.get("settings"), dict) else {}
1621
+ )
1622
+ after_settings = (
1623
+ after.get("settings") if isinstance(after.get("settings"), dict) else {}
1624
+ )
1625
+ before_flat = dict(_flatten(before_settings))
1626
+ after_flat = dict(_flatten(after_settings))
1627
+ settings_added = sorted(p for p in after_flat if p not in before_flat)
1628
+ settings_removed = sorted(p for p in before_flat if p not in after_flat)
1629
+ settings_changed = sorted(
1630
+ p
1631
+ for p in before_flat
1632
+ if p in after_flat and before_flat[p] != after_flat[p]
1633
+ )
1634
+
1635
+ orphaned: list[str] = []
1636
+ if settings_map is not None and features_removed:
1637
+ removed_required = required_setting_paths_for_features(
1638
+ features_removed, settings_map
1639
+ )
1640
+ still_required = required_setting_paths_for_features(
1641
+ after_feats, settings_map
1642
+ )
1643
+ # Report the on-disk path (UpperCamel preserved) so unsetSettings works.
1644
+ orphaned = sorted(
1645
+ {
1646
+ disk
1647
+ for p in removed_required
1648
+ if p not in still_required
1649
+ for disk in [on_disk_settings_path(before_settings, p)]
1650
+ if disk is not None
1651
+ }
1652
+ )
1653
+
1654
+ before_keys = {k for k in before if k not in _DIFF_SPECIAL_TOP}
1655
+ after_keys = {k for k in after if k not in _DIFF_SPECIAL_TOP}
1656
+ fields_added = sorted(after_keys - before_keys)
1657
+ fields_removed = sorted(before_keys - after_keys)
1658
+ fields_changed = sorted(
1659
+ k
1660
+ for k in before_keys & after_keys
1661
+ if before.get(k) != after.get(k)
1662
+ )
1663
+
1664
+ before_obj = (
1665
+ before.get("objectSettings")
1666
+ if isinstance(before.get("objectSettings"), dict)
1667
+ else {}
1668
+ )
1669
+ after_obj = (
1670
+ after.get("objectSettings")
1671
+ if isinstance(after.get("objectSettings"), dict)
1672
+ else {}
1673
+ )
1674
+ before_obj_keys = set(before_obj)
1675
+ after_obj_keys = set(after_obj)
1676
+ object_settings_added = sorted(after_obj_keys - before_obj_keys)
1677
+ object_settings_removed = sorted(before_obj_keys - after_obj_keys)
1678
+ object_settings_changed = sorted(
1679
+ k
1680
+ for k in before_obj_keys & after_obj_keys
1681
+ if before_obj.get(k) != after_obj.get(k)
1682
+ )
1683
+
1684
+ edition_before = before.get("edition")
1685
+ edition_after = after.get("edition")
1686
+ return {
1687
+ "featuresAdded": features_added,
1688
+ "featuresRemoved": features_removed,
1689
+ "featuresQuantityChanged": features_quantity_changed,
1690
+ "editionBefore": edition_before,
1691
+ "editionAfter": edition_after,
1692
+ "editionChanged": edition_before != edition_after,
1693
+ "settingsAdded": settings_added,
1694
+ "settingsRemoved": settings_removed,
1695
+ "settingsChanged": settings_changed,
1696
+ "settingsOrphanedByRemovedFeatures": orphaned,
1697
+ "fieldsAdded": fields_added,
1698
+ "fieldsRemoved": fields_removed,
1699
+ "fieldsChanged": fields_changed,
1700
+ "objectSettingsAdded": object_settings_added,
1701
+ "objectSettingsRemoved": object_settings_removed,
1702
+ "objectSettingsChanged": object_settings_changed,
1703
+ }
1704
+
1705
+
1706
+ def _has_refine_intent(delta: dict) -> bool:
1707
+ if delta.get("addFeatures") or delta.get("removeFeatures"):
1708
+ return True
1709
+ if "setEdition" in delta:
1710
+ return True
1711
+ if delta.get("set") or delta.get("unset"):
1712
+ return True
1713
+ if delta.get("setSettings") or delta.get("unsetSettings"):
1714
+ return True
1715
+ if delta.get("setObjectSettings") or delta.get("unsetObjectSettings"):
1716
+ return True
1717
+ return False
1718
+
1719
+
1720
+ def _result_envelope(
1184
1721
  *,
1722
+ ok: bool,
1723
+ document: dict,
1724
+ errors: list[str],
1725
+ warnings: list[str],
1726
+ org_name_suggestions: list[str] | None = None,
1727
+ ) -> dict:
1728
+ suggested_path = suggest_purpose_path(document)
1729
+ settings_for_card = (
1730
+ document.get("settings") if isinstance(document.get("settings"), dict) else {}
1731
+ )
1732
+ return {
1733
+ "ok": ok,
1734
+ "document": document,
1735
+ "errors": errors,
1736
+ "warnings": warnings,
1737
+ "suggestedPath": suggested_path,
1738
+ "confirmCard": {
1739
+ "edition": document.get("edition"),
1740
+ "features": document.get("features") or [],
1741
+ "settingsPaths": sorted(p for p, _ in _flatten(settings_for_card)),
1742
+ "orgName": document.get("orgName"),
1743
+ "orgNameSuggestions": org_name_suggestions or [],
1744
+ "sourceOrg": document.get("sourceOrg"),
1745
+ "snapshot": document.get("snapshot"),
1746
+ "suggestedPath": suggested_path,
1747
+ "warnings": warnings,
1748
+ "errors": errors,
1749
+ },
1750
+ }
1751
+
1752
+
1753
+ def apply_refine_delta(
1754
+ base_doc: dict, delta: dict, features_doc: dict, settings_map: dict
1755
+ ) -> dict:
1756
+ """Copy-through base, apply structured delta; catalog only newly added tokens.
1757
+
1758
+ Existing features/settings/objectSettings/top-level fields are preserved
1759
+ verbatim unless the delta names them. Catalog mapping + required-settings
1760
+ enrichment run only for ``addFeatures`` (and their dependsOn siblings).
1761
+ """
1762
+ errors: list[str] = []
1763
+ warnings: list[str] = []
1764
+ if not isinstance(base_doc, dict):
1765
+ errors.append(
1766
+ f"base scratch-def must be a JSON object (got {type(base_doc).__name__})"
1767
+ )
1768
+ return _result_envelope(
1769
+ ok=False, document={}, errors=errors, warnings=warnings
1770
+ )
1771
+ if not isinstance(delta, dict):
1772
+ errors.append(
1773
+ f"refine delta must be a JSON object (got {type(delta).__name__})"
1774
+ )
1775
+ return _result_envelope(
1776
+ ok=False, document=deepcopy(base_doc), errors=errors, warnings=warnings
1777
+ )
1778
+ unknown = sorted(set(delta) - DELTA_KEYS)
1779
+ if unknown:
1780
+ errors.append(f"unknown refine delta keys: {', '.join(unknown)}")
1781
+ if not _has_refine_intent(delta):
1782
+ errors.append(
1783
+ "underspecified refine delta — provide addFeatures, removeFeatures, "
1784
+ "setEdition, set/unset, setSettings/unsetSettings, or "
1785
+ "setObjectSettings/unsetObjectSettings"
1786
+ )
1787
+
1788
+ out = deepcopy(base_doc)
1789
+
1790
+ if "setEdition" in delta:
1791
+ edition = delta["setEdition"]
1792
+ if edition in (None, ""):
1793
+ errors.append("setEdition must be a non-empty edition string")
1794
+ elif edition not in EDITIONS:
1795
+ errors.append(
1796
+ f"illegal edition '{edition}' — must be one of {sorted(EDITIONS)}"
1797
+ )
1798
+ else:
1799
+ out["edition"] = edition
1800
+
1801
+ set_block = delta.get("set")
1802
+ if set_block is not None:
1803
+ if not isinstance(set_block, dict):
1804
+ errors.append(
1805
+ f"delta.set must be a JSON object (got {type(set_block).__name__})"
1806
+ )
1807
+ else:
1808
+ for key, val in set_block.items():
1809
+ if key in _DELTA_RESERVED_TOP:
1810
+ errors.append(
1811
+ f"delta.set cannot include '{key}' — use dedicated delta keys"
1812
+ )
1813
+ continue
1814
+ out[key] = deepcopy(val)
1815
+
1816
+ unset_block = delta.get("unset")
1817
+ if unset_block is not None:
1818
+ if not isinstance(unset_block, list):
1819
+ errors.append(
1820
+ f"delta.unset must be a list of keys (got {type(unset_block).__name__})"
1821
+ )
1822
+ else:
1823
+ for key in unset_block:
1824
+ if not isinstance(key, str) or not key.strip():
1825
+ warnings.append(f"delta.unset skipped non-string key {key!r}")
1826
+ continue
1827
+ if key in _DELTA_RESERVED_TOP:
1828
+ errors.append(
1829
+ f"delta.unset cannot include '{key}' — use dedicated delta keys"
1830
+ )
1831
+ continue
1832
+ out.pop(key, None)
1833
+
1834
+ feats: list[str] = []
1835
+ for raw in out.get("features") or []:
1836
+ if isinstance(raw, str) and raw.strip():
1837
+ feats.append(raw)
1838
+ else:
1839
+ warnings.append(f"non-string feature {raw!r} in base — dropped")
1840
+
1841
+ remove_raw = delta.get("removeFeatures")
1842
+ remove_bases_lower: set[str] = set()
1843
+ if remove_raw is not None:
1844
+ if not isinstance(remove_raw, list):
1845
+ errors.append(
1846
+ "delta.removeFeatures must be a list "
1847
+ f"(got {type(remove_raw).__name__})"
1848
+ )
1849
+ else:
1850
+ for raw in remove_raw:
1851
+ if not isinstance(raw, str) or not raw.strip():
1852
+ warnings.append(
1853
+ f"non-string removeFeatures entry {raw!r} — skipped"
1854
+ )
1855
+ continue
1856
+ remove_bases_lower.add(_feature_base(raw.strip()).lower())
1857
+ present_bases = {_feature_base(f).lower() for f in feats}
1858
+ for missing in sorted(remove_bases_lower - present_bases):
1859
+ warnings.append(f"removeFeatures: '{missing}' not present in base — no change")
1860
+ if remove_bases_lower:
1861
+ feats = [
1862
+ f for f in feats if _feature_base(f).lower() not in remove_bases_lower
1863
+ ]
1864
+
1865
+ newly_added: list[str] = []
1866
+ add_raw = delta.get("addFeatures")
1867
+ if add_raw is not None:
1868
+ if not isinstance(add_raw, list):
1869
+ errors.append(
1870
+ f"delta.addFeatures must be a list (got {type(add_raw).__name__})"
1871
+ )
1872
+ else:
1873
+ for raw in add_raw:
1874
+ if not isinstance(raw, str):
1875
+ warnings.append(f"non-string feature {raw!r} — dropped")
1876
+ continue
1877
+ mapped, w = map_feature_token(raw, features_doc)
1878
+ warnings.extend(w)
1879
+ if not mapped:
1880
+ continue
1881
+ base_lower = _feature_base(mapped).lower()
1882
+ feats = [
1883
+ f for f in feats if _feature_base(f).lower() != base_lower
1884
+ ]
1885
+ feats.append(mapped)
1886
+ newly_added.append(mapped)
1887
+ if newly_added:
1888
+ expanded, dep_w = enrich_feature_dependencies(newly_added, features_doc)
1889
+ warnings.extend(dep_w)
1890
+ present = {_feature_base(f).lower() for f in feats}
1891
+ for dep in expanded:
1892
+ dep_base = _feature_base(dep).lower()
1893
+ if dep_base in present:
1894
+ continue
1895
+ feats.append(dep)
1896
+ present.add(dep_base)
1897
+ newly_added.append(dep)
1898
+
1899
+ if "features" in out or feats:
1900
+ out["features"] = feats
1901
+
1902
+ _warn_edition_and_entitlement(feats, out, features_doc, warnings)
1903
+
1904
+ settings = (
1905
+ deepcopy(out["settings"])
1906
+ if isinstance(out.get("settings"), dict)
1907
+ else {}
1908
+ )
1909
+ set_settings = delta.get("setSettings")
1910
+ if set_settings is not None:
1911
+ if not isinstance(set_settings, dict):
1912
+ errors.append(
1913
+ "delta.setSettings must be a JSON object "
1914
+ f"(got {type(set_settings).__name__})"
1915
+ )
1916
+ else:
1917
+ expanded, nw = expand_settings_delta(set_settings)
1918
+ warnings.extend(nw)
1919
+ merge_settings_preserving_category_case(settings, expanded)
1920
+
1921
+ unset_settings = delta.get("unsetSettings")
1922
+ if unset_settings is not None:
1923
+ if not isinstance(unset_settings, list):
1924
+ errors.append(
1925
+ "delta.unsetSettings must be a list of paths "
1926
+ f"(got {type(unset_settings).__name__})"
1927
+ )
1928
+ else:
1929
+ for path in unset_settings:
1930
+ if not isinstance(path, str) or not path.strip():
1931
+ warnings.append(
1932
+ f"delta.unsetSettings skipped non-string path {path!r}"
1933
+ )
1934
+ continue
1935
+ if not delete_by_path(settings, path):
1936
+ warnings.append(
1937
+ f"delta.unsetSettings path not present: {path}"
1938
+ )
1939
+
1940
+ if newly_added:
1941
+ settings, ew = enrich_settings(
1942
+ newly_added,
1943
+ settings,
1944
+ settings_map,
1945
+ rewrite_existing_keys=False,
1946
+ )
1947
+ warnings.extend(ew)
1948
+
1949
+ if settings:
1950
+ out["settings"] = settings
1951
+ elif "settings" in out:
1952
+ del out["settings"]
1953
+
1954
+ if "setObjectSettings" in delta or "unsetObjectSettings" in delta:
1955
+ obj = (
1956
+ deepcopy(out["objectSettings"])
1957
+ if isinstance(out.get("objectSettings"), dict)
1958
+ else {}
1959
+ )
1960
+ set_obj = delta.get("setObjectSettings")
1961
+ if set_obj is not None:
1962
+ if not isinstance(set_obj, dict):
1963
+ errors.append(
1964
+ "delta.setObjectSettings must be a JSON object "
1965
+ f"(got {type(set_obj).__name__})"
1966
+ )
1967
+ else:
1968
+ deep_merge_dict(obj, deepcopy(set_obj))
1969
+ unset_obj = delta.get("unsetObjectSettings")
1970
+ if unset_obj is not None:
1971
+ if not isinstance(unset_obj, list):
1972
+ errors.append(
1973
+ "delta.unsetObjectSettings must be a list "
1974
+ f"(got {type(unset_obj).__name__})"
1975
+ )
1976
+ else:
1977
+ for key in unset_obj:
1978
+ if not isinstance(key, str) or not key.strip():
1979
+ warnings.append(
1980
+ f"delta.unsetObjectSettings skipped {key!r}"
1981
+ )
1982
+ continue
1983
+ obj.pop(key, None)
1984
+ if obj:
1985
+ out["objectSettings"] = obj
1986
+ elif "objectSettings" in out:
1987
+ del out["objectSettings"]
1988
+
1989
+ # Untouched objectSettings is copy-through: no key rewrite, no pruning.
1990
+ if ("setObjectSettings" in delta or "unsetObjectSettings" in delta) and (
1991
+ "objectSettings" in out
1992
+ ):
1993
+ cleaned = validate_object_settings(out.get("objectSettings"), errors, warnings)
1994
+ if cleaned is None:
1995
+ del out["objectSettings"]
1996
+ else:
1997
+ out["objectSettings"] = cleaned
1998
+
1999
+ # Coerce only when this delta set hasSampleData — leave base value as-is.
2000
+ if isinstance(set_block, dict) and "hasSampleData" in set_block and "hasSampleData" in out:
2001
+ coerced, w = coerce_has_sample_data(out["hasSampleData"])
2002
+ out["hasSampleData"] = coerced
2003
+ warnings.extend(w)
2004
+
2005
+ # orgName rewrite + My Domain suggestions only when this delta set orgName.
2006
+ org_name_suggestions: list[str] = []
2007
+ if isinstance(set_block, dict) and "orgName" in set_block:
2008
+ org_name_suggestions = _apply_orgname_and_namespace(out, errors, warnings)
2009
+
2010
+ # Semantic gates that schema does not encode — check the post-delta document
2011
+ # without rewriting unrelated base fields.
2012
+ if out.get("sourceOrg") and out.get("snapshot"):
2013
+ errors.append(
2014
+ "sourceOrg and snapshot are mutually exclusive — keep only one base"
2015
+ )
2016
+ if out.get("template"):
2017
+ errors.append(
2018
+ "template field refused — for org shape use sourceOrg (after listing "
2019
+ "via dx-org-shape-manage); for snapshot use snapshot (via "
2020
+ "dx-org-snapshot-manage). Pure shape/snapshot create: hand off those skills."
2021
+ )
2022
+
2023
+ _schema_gate(out, errors, warnings, baseline=base_doc)
2024
+ return _result_envelope(
2025
+ ok=not _is_hard_fail(errors),
2026
+ document=out,
2027
+ errors=errors,
2028
+ warnings=warnings,
2029
+ org_name_suggestions=org_name_suggestions,
2030
+ )
2031
+
2032
+
2033
+ def _load_base_for_refine(
2034
+ base: Path,
2035
+ ) -> tuple[dict | None, Path | None, str | None, list[str]]:
2036
+ """Return (base_doc, resolved_path, sha256, errors)."""
2037
+ path_errs = assert_safe_base_path(base)
2038
+ if path_errs:
2039
+ return None, None, None, path_errs
2040
+ base_resolved = _resolve_under_cwd(base)
2041
+ base_doc, err = _load_draft(base_resolved)
2042
+ if err:
2043
+ return None, base_resolved, None, [
2044
+ f"cannot refine invalid base {base}: not valid JSON"
2045
+ ]
2046
+ try:
2047
+ sha = _file_sha256(base_resolved)
2048
+ except OSError:
2049
+ return None, base_resolved, None, [f"cannot read base {base}"]
2050
+ return base_doc, base_resolved, sha, []
2051
+
2052
+
2053
+ def _attach_refine_meta(
2054
+ result: dict,
2055
+ *,
2056
+ base: Path,
2057
+ base_doc: dict,
2058
+ base_sha: str,
2059
+ settings_map: dict,
2060
+ ) -> dict:
2061
+ """Attach whole-file diff + baseSha256 for a refine preview/apply."""
2062
+ after_doc = result.get("document") if isinstance(result.get("document"), dict) else {}
2063
+ diff = diff_scratch_defs(base_doc, after_doc, settings_map)
2064
+ result["basePath"] = str(base)
2065
+ result["baseSha256"] = base_sha
2066
+ result["diff"] = diff
2067
+ card = result.get("confirmCard")
2068
+ if isinstance(card, dict):
2069
+ card["diff"] = diff
2070
+ card["basePath"] = str(base)
2071
+ card["baseSha256"] = base_sha
2072
+ if diff.get("settingsOrphanedByRemovedFeatures"):
2073
+ result["warnings"] = list(result.get("warnings") or []) + [
2074
+ "removed features left required settings — ask before deleting "
2075
+ + ", ".join(diff["settingsOrphanedByRemovedFeatures"])
2076
+ ]
2077
+ if isinstance(card, dict):
2078
+ card["warnings"] = list(result["warnings"])
2079
+ return result
2080
+
2081
+
2082
+ def _run_generate_or_refine(
2083
+ *,
2084
+ file: Path | None = None,
1185
2085
  json_text: str | None = None,
1186
2086
  allow_stdin: bool = True,
1187
- ) -> int:
2087
+ base: Path | None = None,
2088
+ ) -> dict:
2089
+ """Shared preview/validate body: generate (full draft) or refine (delta)."""
1188
2090
  features_doc, settings_map, cat_w = load_runtime_catalog()
1189
- doc, err = _resolve_draft(file=file, json_text=json_text, allow_stdin=allow_stdin)
2091
+ payload, err = _resolve_draft(
2092
+ file=file, json_text=json_text, allow_stdin=allow_stdin
2093
+ )
1190
2094
  if err:
1191
- print(json.dumps({"ok": False, "errors": [err], "warnings": cat_w}))
1192
- return 1
2095
+ return {"ok": False, "errors": [err], "warnings": cat_w}
2096
+
2097
+ if base is None:
2098
+ return _merge_catalog_warnings(
2099
+ validate_and_enrich(payload, features_doc, settings_map), cat_w
2100
+ )
2101
+
2102
+ base_doc, _resolved, base_sha, base_errs = _load_base_for_refine(base)
2103
+ if base_errs:
2104
+ return {
2105
+ "ok": False,
2106
+ "errors": base_errs,
2107
+ "warnings": cat_w,
2108
+ "basePath": str(base),
2109
+ }
2110
+ assert base_doc is not None and base_sha is not None
1193
2111
  result = _merge_catalog_warnings(
1194
- validate_and_enrich(doc, features_doc, settings_map), cat_w
2112
+ apply_refine_delta(base_doc, payload, features_doc, settings_map), cat_w
2113
+ )
2114
+ return _attach_refine_meta(
2115
+ result,
2116
+ base=base,
2117
+ base_doc=base_doc,
2118
+ base_sha=base_sha,
2119
+ settings_map=settings_map,
2120
+ )
2121
+
2122
+
2123
+ def cmd_validate(
2124
+ file: Path | None = None,
2125
+ *,
2126
+ json_text: str | None = None,
2127
+ allow_stdin: bool = True,
2128
+ base: Path | None = None,
2129
+ ) -> int:
2130
+ result = _run_generate_or_refine(
2131
+ file=file, json_text=json_text, allow_stdin=allow_stdin, base=base
1195
2132
  )
1196
2133
  print(json.dumps(result, indent=2))
1197
- return 0 if result["ok"] else 1
2134
+ return 0 if result.get("ok") else 1
1198
2135
 
1199
2136
 
1200
2137
  def cmd_preview(
@@ -1202,8 +2139,11 @@ def cmd_preview(
1202
2139
  *,
1203
2140
  json_text: str | None = None,
1204
2141
  allow_stdin: bool = True,
2142
+ base: Path | None = None,
1205
2143
  ) -> int:
1206
- return cmd_validate(file, json_text=json_text, allow_stdin=allow_stdin)
2144
+ return cmd_validate(
2145
+ file, json_text=json_text, allow_stdin=allow_stdin, base=base
2146
+ )
1207
2147
 
1208
2148
 
1209
2149
  def cmd_apply(
@@ -1212,17 +2152,20 @@ def cmd_apply(
1212
2152
  *,
1213
2153
  json_text: str | None = None,
1214
2154
  allow_stdin: bool = True,
2155
+ base: Path | None = None,
2156
+ base_sha256: str | None = None,
1215
2157
  ) -> int:
1216
- """Validate + write. Draft from --json / stdin / --file; only --out hits disk."""
1217
- features_doc, settings_map, cat_w = load_runtime_catalog()
1218
- doc, err = _resolve_draft(file=file, json_text=json_text, allow_stdin=allow_stdin)
1219
- if err:
1220
- print(json.dumps({"ok": False, "errors": [err], "warnings": cat_w}))
1221
- return 1
1222
- result = _merge_catalog_warnings(
1223
- validate_and_enrich(doc, features_doc, settings_map), cat_w
2158
+ """Validate + write. Draft from --json / stdin / --file; only --out hits disk.
2159
+
2160
+ Refine (``--base``): stdin is a structured delta (not a full rewrite).
2161
+ ``--out`` must equal ``--base``. Optional ``--base-sha256`` refuses when the
2162
+ base file changed since preview; omit it on a single-turn consent write.
2163
+ Copy the prior file to ``.bak`` before overwrite.
2164
+ """
2165
+ result = _run_generate_or_refine(
2166
+ file=file, json_text=json_text, allow_stdin=allow_stdin, base=base
1224
2167
  )
1225
- path_errs = assert_safe_output_path(dest)
2168
+ path_errs = assert_safe_output_path(dest, base=base)
1226
2169
  if path_errs:
1227
2170
  result["ok"] = False
1228
2171
  result["errors"] = list(result.get("errors") or []) + path_errs
@@ -1231,11 +2174,40 @@ def cmd_apply(
1231
2174
  )
1232
2175
  print(json.dumps(result, indent=2))
1233
2176
  return 1
1234
- if not result["ok"]:
2177
+ if base is not None:
2178
+ expected = (base_sha256 or "").strip().lower()
2179
+ if expected:
2180
+ actual = (result.get("baseSha256") or "").strip().lower()
2181
+ if not actual or expected != actual:
2182
+ result["ok"] = False
2183
+ result["errors"] = list(result.get("errors") or []) + [
2184
+ "base changed since preview — re-run preview, then apply with "
2185
+ "the new baseSha256"
2186
+ ]
2187
+ if not result.get("ok"):
1235
2188
  print(json.dumps(result, indent=2))
1236
2189
  return 1
1237
2190
  # config/ must already exist (assert_safe_output_path); never mkdir it.
1238
- dest.write_text(json.dumps(result["document"], indent=2) + "\n", encoding="utf-8")
2191
+ dest_resolved = _resolve_under_cwd(dest)
2192
+ if base is not None and dest_resolved.is_file():
2193
+ bak = backup_path_for(dest_resolved)
2194
+ bak_errs = write_backup(dest_resolved, bak)
2195
+ if bak_errs:
2196
+ result["ok"] = False
2197
+ result["errors"] = list(result.get("errors") or []) + bak_errs
2198
+ print(json.dumps(result, indent=2))
2199
+ return 1
2200
+ result["backup"] = str(Path(dest).with_name(Path(dest).name + ".bak"))
2201
+ if dest_resolved.is_symlink():
2202
+ result["ok"] = False
2203
+ result["errors"] = list(result.get("errors") or []) + [
2204
+ "output path must not be a symlink"
2205
+ ]
2206
+ print(json.dumps(result, indent=2))
2207
+ return 1
2208
+ dest_resolved.write_text(
2209
+ json.dumps(result["document"], indent=2) + "\n", encoding="utf-8"
2210
+ )
1239
2211
  result["written"] = str(dest)
1240
2212
  print(json.dumps(result, indent=2))
1241
2213
  return 0
@@ -1255,18 +2227,32 @@ def cmd_map(tokens: list[str]) -> int:
1255
2227
 
1256
2228
 
1257
2229
  def _add_draft_source_args(sp: argparse.ArgumentParser) -> None:
1258
- """Draft stays in agent context: prefer --json or stdin; --file is optional."""
2230
+ """Draft/delta stays in agent context: prefer --json or stdin; --file optional."""
1259
2231
  sp.add_argument(
1260
2232
  "--json",
1261
2233
  dest="json_text",
1262
2234
  default=None,
1263
- help="Draft scratch-def JSON object (keep in chat/tool context; no draft file)",
2235
+ help=(
2236
+ "Generate: full scratch-def JSON. Refine (--base): structured delta "
2237
+ "JSON (addFeatures/removeFeatures/setEdition/set/…). Keep in chat."
2238
+ ),
1264
2239
  )
1265
2240
  sp.add_argument(
1266
2241
  "--file",
1267
2242
  type=Path,
1268
2243
  default=None,
1269
- help="Optional path to a draft JSON file (tests / rare); prefer --json or stdin",
2244
+ help="Optional path to a draft/delta JSON file (tests / rare); prefer --json or stdin",
2245
+ )
2246
+ sp.add_argument(
2247
+ "--base",
2248
+ type=Path,
2249
+ default=None,
2250
+ help=(
2251
+ "Existing config/*scratch-def.json to patch (refine). Stdin/json is a "
2252
+ "structured delta; helper copy-through applies it, catalogs new "
2253
+ "features only, and attaches a whole-file diff + baseSha256. "
2254
+ "Apply requires --out equal to --base."
2255
+ ),
1270
2256
  )
1271
2257
 
1272
2258
 
@@ -1286,17 +2272,37 @@ def main(argv: list[str] | None = None) -> int:
1286
2272
  a = sub.add_parser("apply", help="Validate + write enriched document")
1287
2273
  _add_draft_source_args(a)
1288
2274
  a.add_argument("--out", type=Path, required=True)
2275
+ a.add_argument(
2276
+ "--base-sha256",
2277
+ dest="base_sha256",
2278
+ default=None,
2279
+ help=(
2280
+ "Optional with --base: sha256 of the base file from preview "
2281
+ "baseSha256; when set, apply refuses if the base changed since "
2282
+ "preview. Omit on a single-turn consent write."
2283
+ ),
2284
+ )
1289
2285
 
1290
2286
  m = sub.add_parser("map", help="Map raw feature tokens via cache")
1291
2287
  m.add_argument("tokens", nargs="+")
1292
2288
 
1293
2289
  args = p.parse_args(argv)
1294
2290
  if args.cmd == "validate":
1295
- return cmd_validate(file=args.file, json_text=args.json_text)
2291
+ return cmd_validate(
2292
+ file=args.file, json_text=args.json_text, base=args.base
2293
+ )
1296
2294
  if args.cmd == "preview":
1297
- return cmd_preview(file=args.file, json_text=args.json_text)
2295
+ return cmd_preview(
2296
+ file=args.file, json_text=args.json_text, base=args.base
2297
+ )
1298
2298
  if args.cmd == "apply":
1299
- return cmd_apply(args.out, file=args.file, json_text=args.json_text)
2299
+ return cmd_apply(
2300
+ args.out,
2301
+ file=args.file,
2302
+ json_text=args.json_text,
2303
+ base=args.base,
2304
+ base_sha256=args.base_sha256,
2305
+ )
1300
2306
  if args.cmd == "map":
1301
2307
  return cmd_map(args.tokens)
1302
2308
  return 2