@pnp/cli-microsoft365 11.6.0-beta.ab6d130 → 11.6.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 (936) hide show
  1. package/.devcontainer/Dockerfile +0 -1
  2. package/.devproxy/api-specs/sharepoint-admin.yaml +40 -0
  3. package/.devproxy/api-specs/sharepoint.yaml +48 -0
  4. package/Dockerfile +0 -1
  5. package/allCommands.json +1 -1
  6. package/allCommandsFull.json +1 -1
  7. package/dist/cli/cli.js +3 -0
  8. package/dist/m365/base/PeriodBasedReport.js +1 -1
  9. package/dist/m365/cli/commands/config/config-set.js +1 -1
  10. package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -2
  11. package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -1
  12. package/dist/m365/entra/commands/group/group-add.js +2 -4
  13. package/dist/m365/entra/commands/group/group-member-list.js +1 -1
  14. package/dist/m365/entra/commands/m365group/m365group-add.js +4 -8
  15. package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +5 -0
  16. package/dist/m365/file/commands/convert/convert-pdf.js +3 -5
  17. package/dist/m365/file/commands/file-add.js +3 -5
  18. package/dist/m365/file/commands/file-list.js +1 -2
  19. package/dist/m365/flow/commands/flow-export.js +1 -2
  20. package/dist/m365/flow/commands/owner/owner-remove.js +1 -1
  21. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +1 -1
  22. package/dist/m365/outlook/commands/calendargroup/calendargroup-list.js +87 -0
  23. package/dist/m365/outlook/commands.js +1 -0
  24. package/dist/m365/planner/commands/task/task-add.js +1 -2
  25. package/dist/m365/planner/commands/task/task-list.js +1 -1
  26. package/dist/m365/planner/commands/task/task-set.js +1 -2
  27. package/dist/m365/pp/commands/environment/environment-list.js +1 -1
  28. package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +1 -2
  29. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003003_CFG_bundles.js +4 -5
  30. package/dist/m365/spfx/commands/spfx-doctor.js +1 -2
  31. package/dist/m365/spo/commands/agent/agent-add.js +172 -0
  32. package/dist/m365/spo/commands/app/app-deploy.js +2 -4
  33. package/dist/m365/spo/commands/app/app-list.js +2 -4
  34. package/dist/m365/spo/commands/cdn/cdn-get.js +2 -4
  35. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +2 -4
  36. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +2 -4
  37. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +2 -4
  38. package/dist/m365/spo/commands/cdn/cdn-set.js +2 -3
  39. package/dist/m365/spo/commands/contenttype/contenttype-set.js +2 -2
  40. package/dist/m365/spo/commands/field/field-get.js +1 -1
  41. package/dist/m365/spo/commands/field/field-remove.js +1 -1
  42. package/dist/m365/spo/commands/file/file-remove.js +1 -1
  43. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
  44. package/dist/m365/spo/commands/list/list-remove.js +1 -1
  45. package/dist/m365/spo/commands/list/list-set.js +186 -378
  46. package/dist/m365/spo/commands/list/list-view-field-add.js +1 -2
  47. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +2 -3
  48. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +1 -1
  49. package/dist/m365/spo/commands/navigation/navigation-node-get.js +18 -28
  50. package/dist/m365/spo/commands/navigation/navigation-node-list.js +14 -39
  51. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +1 -2
  52. package/dist/m365/spo/commands/page/clientsidepages.js +6 -6
  53. package/dist/m365/spo/commands/page/page-add.js +2 -4
  54. package/dist/m365/spo/commands/page/page-header-set.js +4 -6
  55. package/dist/m365/spo/commands/page/page-section-add.js +7 -7
  56. package/dist/m365/spo/commands/page/page-set.js +6 -12
  57. package/dist/m365/spo/commands/page/page-text-add.js +1 -2
  58. package/dist/m365/spo/commands/site/site-accessrequest-setting-set.js +102 -0
  59. package/dist/m365/spo/commands/site/site-add.js +38 -8
  60. package/dist/m365/spo/commands/site/site-apppermission-add.js +1 -1
  61. package/dist/m365/spo/commands/site/site-set.js +1 -1
  62. package/dist/m365/spo/commands/spo-search.js +1 -1
  63. package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +1 -1
  64. package/dist/m365/spo/commands/tenant/tenant-site-get.js +112 -0
  65. package/dist/m365/spo/commands/term/term-group-add.js +1 -2
  66. package/dist/m365/spo/commands/term/term-set-add.js +1 -2
  67. package/dist/m365/spo/commands/theme/theme-apply.js +1 -1
  68. package/dist/m365/spo/commands/user/user-list.js +1 -3
  69. package/dist/m365/spo/commands/web/web-add.js +2 -4
  70. package/dist/m365/spo/commands/web/web-reindex.js +1 -2
  71. package/dist/m365/spo/commands.js +3 -0
  72. package/dist/m365/spp/commands/autofillcolumn/autofillcolumn-set.js +1 -1
  73. package/dist/m365/viva/commands/engage/engage-role-member-remove.js +83 -0
  74. package/dist/m365/viva/commands/engage/engage-search.js +1 -1
  75. package/dist/m365/viva/commands.js +1 -0
  76. package/dist/utils/accessToken.js +21 -0
  77. package/dist/utils/brandCenter.js +29 -0
  78. package/dist/utils/odata.js +1 -2
  79. package/dist/utils/powerPlatform.js +1 -1
  80. package/dist/utils/spo.js +2 -2
  81. package/dist/utils/urlUtil.js +2 -12
  82. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  83. package/docs/docs/cmd/app/app-get.mdx +1 -1
  84. package/docs/docs/cmd/app/app-open.mdx +1 -1
  85. package/docs/docs/cmd/app/permission/permission-add.mdx +1 -1
  86. package/docs/docs/cmd/app/permission/permission-list.mdx +1 -1
  87. package/docs/docs/cmd/booking/business/business-get.mdx +1 -1
  88. package/docs/docs/cmd/booking/business/business-list.mdx +1 -1
  89. package/docs/docs/cmd/cli/app/app-add.mdx +1 -1
  90. package/docs/docs/cmd/cli/app/app-reconsent.mdx +1 -1
  91. package/docs/docs/cmd/cli/cli-consent.mdx +1 -1
  92. package/docs/docs/cmd/cli/cli-doctor.mdx +1 -1
  93. package/docs/docs/cmd/cli/cli-issue.mdx +1 -1
  94. package/docs/docs/cmd/cli/completion/completion-clink-update.mdx +1 -1
  95. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.mdx +1 -1
  96. package/docs/docs/cmd/cli/completion/completion-pwsh-update.mdx +1 -1
  97. package/docs/docs/cmd/cli/completion/completion-sh-setup.mdx +1 -1
  98. package/docs/docs/cmd/cli/completion/completion-sh-update.mdx +1 -1
  99. package/docs/docs/cmd/cli/config/config-get.mdx +2 -2
  100. package/docs/docs/cmd/cli/config/config-list.mdx +2 -2
  101. package/docs/docs/cmd/cli/config/config-reset.mdx +2 -2
  102. package/docs/docs/cmd/cli/config/config-set.mdx +2 -2
  103. package/docs/docs/cmd/connection/connection-list.mdx +1 -1
  104. package/docs/docs/cmd/connection/connection-remove.mdx +1 -1
  105. package/docs/docs/cmd/connection/connection-set.mdx +1 -1
  106. package/docs/docs/cmd/connection/connection-use.mdx +1 -1
  107. package/docs/docs/cmd/context/context-init.mdx +1 -1
  108. package/docs/docs/cmd/context/context-remove.mdx +1 -1
  109. package/docs/docs/cmd/context/option/option-list.mdx +1 -1
  110. package/docs/docs/cmd/context/option/option-remove.mdx +1 -1
  111. package/docs/docs/cmd/context/option/option-set.mdx +1 -1
  112. package/docs/docs/cmd/docs.mdx +1 -1
  113. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-add.mdx +1 -1
  114. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-get.mdx +1 -1
  115. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-list.mdx +1 -1
  116. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +1 -1
  117. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +1 -1
  118. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-list.mdx +1 -1
  119. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +1 -1
  120. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-remove.mdx +1 -1
  121. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-roleassignment-add.mdx +1 -1
  122. package/docs/docs/cmd/entra/app/app-add.mdx +1 -1
  123. package/docs/docs/cmd/entra/app/app-get.mdx +1 -1
  124. package/docs/docs/cmd/entra/app/app-list.mdx +1 -1
  125. package/docs/docs/cmd/entra/app/app-permission-add.mdx +1 -1
  126. package/docs/docs/cmd/entra/app/app-permission-list.mdx +1 -1
  127. package/docs/docs/cmd/entra/app/app-permission-remove.mdx +1 -1
  128. package/docs/docs/cmd/entra/app/app-remove.mdx +1 -1
  129. package/docs/docs/cmd/entra/app/app-role-add.mdx +22 -1
  130. package/docs/docs/cmd/entra/app/app-role-list.mdx +21 -2
  131. package/docs/docs/cmd/entra/app/app-role-remove.mdx +23 -2
  132. package/docs/docs/cmd/entra/app/app-set.mdx +1 -1
  133. package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
  134. package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +1 -1
  135. package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +1 -1
  136. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
  137. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
  138. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +1 -1
  139. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +1 -1
  140. package/docs/docs/cmd/entra/group/group-add.mdx +1 -1
  141. package/docs/docs/cmd/entra/group/group-get.mdx +1 -1
  142. package/docs/docs/cmd/entra/group/group-list.mdx +1 -1
  143. package/docs/docs/cmd/entra/group/group-member-add.mdx +1 -1
  144. package/docs/docs/cmd/entra/group/group-member-list.mdx +1 -1
  145. package/docs/docs/cmd/entra/group/group-member-remove.mdx +1 -1
  146. package/docs/docs/cmd/entra/group/group-member-set.mdx +1 -1
  147. package/docs/docs/cmd/entra/group/group-remove.mdx +1 -1
  148. package/docs/docs/cmd/entra/group/group-set.mdx +1 -1
  149. package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +1 -1
  150. package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +1 -1
  151. package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +1 -1
  152. package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +1 -1
  153. package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +1 -1
  154. package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-get.mdx +1 -1
  155. package/docs/docs/cmd/entra/groupsettingtemplate/groupsettingtemplate-list.mdx +1 -1
  156. package/docs/docs/cmd/entra/license/license-list.mdx +1 -1
  157. package/docs/docs/cmd/entra/m365group/m365group-add.mdx +1 -1
  158. package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +1 -1
  159. package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +1 -1
  160. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +1 -1
  161. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +1 -1
  162. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-clear.mdx +1 -1
  163. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +1 -1
  164. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-remove.mdx +1 -1
  165. package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-restore.mdx +1 -1
  166. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +1 -1
  167. package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +1 -1
  168. package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +1 -1
  169. package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +1 -1
  170. package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +1 -1
  171. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
  172. package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +1 -1
  173. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +1 -1
  174. package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +1 -1
  175. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +1 -1
  176. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
  177. package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +1 -1
  178. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +1 -1
  179. package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +1 -1
  180. package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +1 -1
  181. package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +1 -1
  182. package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +1 -1
  183. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
  184. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
  185. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
  186. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
  187. package/docs/docs/cmd/entra/organization/organization-list.mdx +1 -1
  188. package/docs/docs/cmd/entra/organization/organization-set.mdx +1 -1
  189. package/docs/docs/cmd/entra/pim/pim-role-assignment-add.mdx +1 -1
  190. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +1 -1
  191. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +1 -1
  192. package/docs/docs/cmd/entra/pim/pim-role-assignment-remove.mdx +1 -1
  193. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +1 -1
  194. package/docs/docs/cmd/entra/policy/policy-list.mdx +20 -1
  195. package/docs/docs/cmd/entra/resourcenamespace/resourcenamespace-list.mdx +20 -1
  196. package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +1 -1
  197. package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +1 -1
  198. package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +1 -1
  199. package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +1 -1
  200. package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +1 -1
  201. package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +1 -1
  202. package/docs/docs/cmd/entra/rolepermission/rolepermission-list.mdx +1 -1
  203. package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +1 -1
  204. package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +1 -1
  205. package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +1 -1
  206. package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +1 -1
  207. package/docs/docs/cmd/entra/user/user-add.mdx +1 -1
  208. package/docs/docs/cmd/entra/user/user-get.mdx +1 -1
  209. package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +1 -1
  210. package/docs/docs/cmd/entra/user/user-guest-add.mdx +1 -1
  211. package/docs/docs/cmd/entra/user/user-hibp.mdx +1 -1
  212. package/docs/docs/cmd/entra/user/user-license-add.mdx +1 -1
  213. package/docs/docs/cmd/entra/user/user-license-list.mdx +1 -1
  214. package/docs/docs/cmd/entra/user/user-license-remove.mdx +1 -1
  215. package/docs/docs/cmd/entra/user/user-list.mdx +1 -1
  216. package/docs/docs/cmd/entra/user/user-password-validate.mdx +1 -1
  217. package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +1 -1
  218. package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +1 -1
  219. package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +1 -1
  220. package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +1 -1
  221. package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +1 -1
  222. package/docs/docs/cmd/entra/user/user-remove.mdx +1 -1
  223. package/docs/docs/cmd/entra/user/user-session-revoke.mdx +1 -1
  224. package/docs/docs/cmd/entra/user/user-set.mdx +1 -1
  225. package/docs/docs/cmd/entra/user/user-signin-list.mdx +1 -1
  226. package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +1 -1
  227. package/docs/docs/cmd/external/connection/connection-add.mdx +1 -1
  228. package/docs/docs/cmd/external/connection/connection-doctor.mdx +1 -1
  229. package/docs/docs/cmd/external/connection/connection-get.mdx +1 -1
  230. package/docs/docs/cmd/external/connection/connection-list.mdx +1 -1
  231. package/docs/docs/cmd/external/connection/connection-remove.mdx +1 -1
  232. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +1 -1
  233. package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +1 -1
  234. package/docs/docs/cmd/external/item/item-add.mdx +1 -1
  235. package/docs/docs/cmd/file/convert/convert-pdf.mdx +1 -1
  236. package/docs/docs/cmd/file/file-add.mdx +1 -1
  237. package/docs/docs/cmd/file/file-copy.mdx +1 -1
  238. package/docs/docs/cmd/file/file-list.mdx +1 -1
  239. package/docs/docs/cmd/file/file-move.mdx +1 -1
  240. package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
  241. package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
  242. package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
  243. package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
  244. package/docs/docs/cmd/flow/flow-export.mdx +1 -1
  245. package/docs/docs/cmd/flow/flow-get.mdx +1 -1
  246. package/docs/docs/cmd/flow/flow-list.mdx +1 -1
  247. package/docs/docs/cmd/flow/flow-remove.mdx +1 -1
  248. package/docs/docs/cmd/flow/owner/owner-ensure.mdx +1 -1
  249. package/docs/docs/cmd/flow/owner/owner-list.mdx +1 -1
  250. package/docs/docs/cmd/flow/owner/owner-remove.mdx +1 -1
  251. package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-list.mdx +1 -1
  252. package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-restore.mdx +1 -1
  253. package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
  254. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  255. package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
  256. package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
  257. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
  258. package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +1 -1
  259. package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +1 -1
  260. package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +1 -1
  261. package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +1 -1
  262. package/docs/docs/cmd/graph/openextension/openextension-add.mdx +1 -1
  263. package/docs/docs/cmd/graph/openextension/openextension-get.mdx +1 -1
  264. package/docs/docs/cmd/graph/openextension/openextension-list.mdx +1 -1
  265. package/docs/docs/cmd/graph/openextension/openextension-remove.mdx +1 -1
  266. package/docs/docs/cmd/graph/openextension/openextension-set.mdx +1 -1
  267. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  268. package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +1 -1
  269. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +1 -1
  270. package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +1 -1
  271. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  272. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +1 -1
  273. package/docs/docs/cmd/login.mdx +1 -1
  274. package/docs/docs/cmd/logout.mdx +1 -1
  275. package/docs/docs/cmd/onedrive/onedrive-list.mdx +1 -1
  276. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +1 -1
  277. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +1 -1
  278. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +1 -1
  279. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +1 -1
  280. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +1 -1
  281. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +1 -1
  282. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +1 -1
  283. package/docs/docs/cmd/onenote/notebook/notebook-add.mdx +1 -1
  284. package/docs/docs/cmd/onenote/notebook/notebook-list.mdx +1 -1
  285. package/docs/docs/cmd/onenote/page/page-list.mdx +1 -1
  286. package/docs/docs/cmd/outlook/calendargroup/calendargroup-list.mdx +120 -0
  287. package/docs/docs/cmd/outlook/mail/mail-searchfolder-add.mdx +1 -1
  288. package/docs/docs/cmd/outlook/mail/mail-send.mdx +1 -1
  289. package/docs/docs/cmd/outlook/mailbox/mailbox-settings-get.mdx +1 -1
  290. package/docs/docs/cmd/outlook/mailbox/mailbox-settings-set.mdx +1 -1
  291. package/docs/docs/cmd/outlook/message/message-get.mdx +1 -1
  292. package/docs/docs/cmd/outlook/message/message-list.mdx +1 -1
  293. package/docs/docs/cmd/outlook/message/message-move.mdx +1 -1
  294. package/docs/docs/cmd/outlook/message/message-remove.mdx +1 -1
  295. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +1 -1
  296. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +1 -1
  297. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +1 -1
  298. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +1 -1
  299. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +1 -1
  300. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +1 -1
  301. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +1 -1
  302. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +1 -1
  303. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +1 -1
  304. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +1 -1
  305. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +1 -1
  306. package/docs/docs/cmd/outlook/room/room-list.mdx +1 -1
  307. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -1
  308. package/docs/docs/cmd/pa/app/app-consent-set.mdx +1 -1
  309. package/docs/docs/cmd/pa/app/app-export.mdx +1 -1
  310. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  311. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  312. package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
  313. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +1 -1
  314. package/docs/docs/cmd/pa/app/app-permission-list.mdx +1 -1
  315. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +1 -1
  316. package/docs/docs/cmd/pa/app/app-remove.mdx +1 -1
  317. package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
  318. package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
  319. package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
  320. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
  321. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  322. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
  323. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
  324. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
  325. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  326. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  327. package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
  328. package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
  329. package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
  330. package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
  331. package/docs/docs/cmd/planner/roster/roster-add.mdx +1 -1
  332. package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
  333. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
  334. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
  335. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
  336. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +1 -1
  337. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  338. package/docs/docs/cmd/planner/roster/roster-remove.mdx +1 -1
  339. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  340. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +1 -1
  341. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -1
  342. package/docs/docs/cmd/planner/task/task-checklistitem-remove.mdx +1 -1
  343. package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
  344. package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
  345. package/docs/docs/cmd/planner/task/task-reference-add.mdx +1 -1
  346. package/docs/docs/cmd/planner/task/task-reference-list.mdx +1 -1
  347. package/docs/docs/cmd/planner/task/task-reference-remove.mdx +1 -1
  348. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  349. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  350. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -1
  351. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +1 -1
  352. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +1 -1
  353. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +1 -1
  354. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-remove.mdx +1 -1
  355. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +1 -1
  356. package/docs/docs/cmd/pp/copilot/copilot-list.mdx +1 -1
  357. package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +1 -1
  358. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +1 -1
  359. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +1 -1
  360. package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +1 -1
  361. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-list.mdx +1 -1
  362. package/docs/docs/cmd/pp/dataverse/dataverse-table-row-remove.mdx +1 -1
  363. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  364. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  365. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +1 -1
  366. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -1
  367. package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +1 -1
  368. package/docs/docs/cmd/pp/managementapp/managementapp-list.mdx +1 -1
  369. package/docs/docs/cmd/pp/solution/solution-get.mdx +1 -1
  370. package/docs/docs/cmd/pp/solution/solution-list.mdx +1 -1
  371. package/docs/docs/cmd/pp/solution/solution-publish.mdx +1 -1
  372. package/docs/docs/cmd/pp/solution/solution-publisher-add.mdx +1 -1
  373. package/docs/docs/cmd/pp/solution/solution-publisher-get.mdx +1 -1
  374. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +1 -1
  375. package/docs/docs/cmd/pp/solution/solution-publisher-remove.mdx +1 -1
  376. package/docs/docs/cmd/pp/solution/solution-remove.mdx +1 -1
  377. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
  378. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
  379. package/docs/docs/cmd/pp/website/website-get.mdx +1 -1
  380. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
  381. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  382. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  383. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
  384. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
  385. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  386. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  387. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
  388. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  389. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  390. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  391. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
  392. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
  393. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
  394. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
  395. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
  396. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
  397. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
  398. package/docs/docs/cmd/purview/threatassessment/threatassessment-add.mdx +1 -1
  399. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +1 -1
  400. package/docs/docs/cmd/purview/threatassessment/threatassessment-list.mdx +1 -1
  401. package/docs/docs/cmd/request.mdx +1 -1
  402. package/docs/docs/cmd/search.mdx +1 -1
  403. package/docs/docs/cmd/setup.mdx +1 -1
  404. package/docs/docs/cmd/spe/container/container-activate.mdx +1 -1
  405. package/docs/docs/cmd/spe/container/container-add.mdx +1 -1
  406. package/docs/docs/cmd/spe/container/container-get.mdx +1 -1
  407. package/docs/docs/cmd/spe/container/container-list.mdx +1 -1
  408. package/docs/docs/cmd/spe/container/container-permission-list.mdx +1 -1
  409. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +1 -1
  410. package/docs/docs/cmd/spe/container/container-recyclebinitem-remove.mdx +1 -1
  411. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +1 -1
  412. package/docs/docs/cmd/spe/container/container-remove.mdx +1 -1
  413. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +1 -1
  414. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +1 -1
  415. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +1 -1
  416. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +1 -1
  417. package/docs/docs/cmd/spfx/package/package-generate.mdx +1 -1
  418. package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +1 -1
  419. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +1 -1
  420. package/docs/docs/cmd/spfx/project/project-permissions-grant.mdx +1 -1
  421. package/docs/docs/cmd/spfx/project/project-rename.mdx +1 -1
  422. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  423. package/docs/docs/cmd/spo/agent/agent-add.mdx +190 -0
  424. package/docs/docs/cmd/spo/app/app-add.mdx +1 -1
  425. package/docs/docs/cmd/spo/app/app-deploy.mdx +1 -1
  426. package/docs/docs/cmd/spo/app/app-get.mdx +1 -1
  427. package/docs/docs/cmd/spo/app/app-install.mdx +1 -1
  428. package/docs/docs/cmd/spo/app/app-instance-list.mdx +1 -1
  429. package/docs/docs/cmd/spo/app/app-list.mdx +1 -1
  430. package/docs/docs/cmd/spo/app/app-remove.mdx +1 -1
  431. package/docs/docs/cmd/spo/app/app-retract.mdx +1 -1
  432. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +1 -1
  433. package/docs/docs/cmd/spo/app/app-uninstall.mdx +1 -1
  434. package/docs/docs/cmd/spo/app/app-upgrade.mdx +1 -1
  435. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  436. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +1 -1
  437. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +1 -1
  438. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +1 -1
  439. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  440. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +1 -1
  441. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +1 -1
  442. package/docs/docs/cmd/spo/brandcenter/brandcenter-settings-list.mdx +1 -1
  443. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +1 -1
  444. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +1 -1
  445. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +1 -1
  446. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +1 -1
  447. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +1 -1
  448. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +1 -1
  449. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +1 -1
  450. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  451. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +1 -1
  452. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +1 -1
  453. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +1 -1
  454. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  455. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +1 -1
  456. package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +1 -1
  457. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +1 -1
  458. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +1 -1
  459. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +1 -1
  460. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +1 -1
  461. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +1 -1
  462. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  463. package/docs/docs/cmd/spo/contenttype/contenttype-sync.mdx +1 -1
  464. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +1 -1
  465. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  466. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +1 -1
  467. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +1 -1
  468. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +1 -1
  469. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +1 -1
  470. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  471. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +1 -1
  472. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +1 -1
  473. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
  474. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +1 -1
  475. package/docs/docs/cmd/spo/feature/feature-disable.mdx +1 -1
  476. package/docs/docs/cmd/spo/feature/feature-enable.mdx +1 -1
  477. package/docs/docs/cmd/spo/feature/feature-list.mdx +1 -1
  478. package/docs/docs/cmd/spo/field/field-add.mdx +1 -1
  479. package/docs/docs/cmd/spo/field/field-get.mdx +1 -1
  480. package/docs/docs/cmd/spo/field/field-list.mdx +1 -1
  481. package/docs/docs/cmd/spo/field/field-remove.mdx +1 -1
  482. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  483. package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
  484. package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
  485. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
  486. package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
  487. package/docs/docs/cmd/spo/file/file-copy.mdx +1 -1
  488. package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
  489. package/docs/docs/cmd/spo/file/file-list.mdx +1 -1
  490. package/docs/docs/cmd/spo/file/file-move.mdx +1 -1
  491. package/docs/docs/cmd/spo/file/file-remove.mdx +1 -1
  492. package/docs/docs/cmd/spo/file/file-rename.mdx +1 -1
  493. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  494. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
  495. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  496. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  497. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  498. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  499. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
  500. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
  501. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
  502. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
  503. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
  504. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
  505. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
  506. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  507. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  508. package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
  509. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  510. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  511. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  512. package/docs/docs/cmd/spo/folder/folder-add.mdx +1 -1
  513. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  514. package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
  515. package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
  516. package/docs/docs/cmd/spo/folder/folder-move.mdx +1 -1
  517. package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
  518. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  519. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  520. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
  521. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
  522. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
  523. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
  524. package/docs/docs/cmd/spo/folder/folder-set.mdx +1 -1
  525. package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +1 -1
  526. package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +1 -1
  527. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +1 -1
  528. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +1 -1
  529. package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +1 -1
  530. package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +1 -1
  531. package/docs/docs/cmd/spo/group/group-add.mdx +1 -1
  532. package/docs/docs/cmd/spo/group/group-get.mdx +1 -1
  533. package/docs/docs/cmd/spo/group/group-list.mdx +1 -1
  534. package/docs/docs/cmd/spo/group/group-member-add.mdx +1 -1
  535. package/docs/docs/cmd/spo/group/group-member-list.mdx +1 -1
  536. package/docs/docs/cmd/spo/group/group-member-remove.mdx +1 -1
  537. package/docs/docs/cmd/spo/group/group-remove.mdx +1 -1
  538. package/docs/docs/cmd/spo/group/group-set.mdx +1 -1
  539. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +1 -1
  540. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +1 -1
  541. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +1 -1
  542. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +1 -1
  543. package/docs/docs/cmd/spo/homesite/homesite-list.mdx +1 -1
  544. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +1 -1
  545. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
  546. package/docs/docs/cmd/spo/hubsite/hubsite-connect.mdx +1 -1
  547. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +1 -1
  548. package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.mdx +1 -1
  549. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +1 -1
  550. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +1 -1
  551. package/docs/docs/cmd/spo/hubsite/hubsite-register.mdx +1 -1
  552. package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.mdx +1 -1
  553. package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.mdx +1 -1
  554. package/docs/docs/cmd/spo/hubsite/hubsite-set.mdx +1 -1
  555. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.mdx +1 -1
  556. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.mdx +1 -1
  557. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.mdx +1 -1
  558. package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.mdx +1 -1
  559. package/docs/docs/cmd/spo/list/list-add.mdx +1 -1
  560. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +1 -1
  561. package/docs/docs/cmd/spo/list/list-contenttype-default-set.mdx +1 -1
  562. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +1 -1
  563. package/docs/docs/cmd/spo/list/list-contenttype-remove.mdx +1 -1
  564. package/docs/docs/cmd/spo/list/list-defaultvalue-clear.mdx +1 -1
  565. package/docs/docs/cmd/spo/list/list-defaultvalue-get.mdx +1 -1
  566. package/docs/docs/cmd/spo/list/list-defaultvalue-list.mdx +1 -1
  567. package/docs/docs/cmd/spo/list/list-defaultvalue-remove.mdx +1 -1
  568. package/docs/docs/cmd/spo/list/list-defaultvalue-set.mdx +1 -1
  569. package/docs/docs/cmd/spo/list/list-get.mdx +1 -1
  570. package/docs/docs/cmd/spo/list/list-list.mdx +1 -1
  571. package/docs/docs/cmd/spo/list/list-remove.mdx +1 -1
  572. package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.mdx +1 -1
  573. package/docs/docs/cmd/spo/list/list-retentionlabel-get.mdx +1 -1
  574. package/docs/docs/cmd/spo/list/list-retentionlabel-remove.mdx +1 -1
  575. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +1 -1
  576. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +1 -1
  577. package/docs/docs/cmd/spo/list/list-roleinheritance-break.mdx +1 -1
  578. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.mdx +1 -1
  579. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
  580. package/docs/docs/cmd/spo/list/list-set.mdx +20 -2
  581. package/docs/docs/cmd/spo/list/list-sitescript-get.mdx +1 -1
  582. package/docs/docs/cmd/spo/list/list-view-add.mdx +1 -1
  583. package/docs/docs/cmd/spo/list/list-view-field-add.mdx +1 -1
  584. package/docs/docs/cmd/spo/list/list-view-field-remove.mdx +1 -1
  585. package/docs/docs/cmd/spo/list/list-view-field-set.mdx +1 -1
  586. package/docs/docs/cmd/spo/list/list-view-get.mdx +1 -1
  587. package/docs/docs/cmd/spo/list/list-view-list.mdx +1 -1
  588. package/docs/docs/cmd/spo/list/list-view-remove.mdx +1 -1
  589. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  590. package/docs/docs/cmd/spo/list/list-webhook-add.mdx +1 -1
  591. package/docs/docs/cmd/spo/list/list-webhook-get.mdx +1 -1
  592. package/docs/docs/cmd/spo/list/list-webhook-list.mdx +1 -1
  593. package/docs/docs/cmd/spo/list/list-webhook-remove.mdx +1 -1
  594. package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
  595. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  596. package/docs/docs/cmd/spo/listitem/listitem-attachment-add.mdx +1 -1
  597. package/docs/docs/cmd/spo/listitem/listitem-attachment-get.mdx +1 -1
  598. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
  599. package/docs/docs/cmd/spo/listitem/listitem-attachment-remove.mdx +1 -1
  600. package/docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx +1 -1
  601. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  602. package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +1 -1
  603. package/docs/docs/cmd/spo/listitem/listitem-batch-set.mdx +1 -1
  604. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +1 -1
  605. package/docs/docs/cmd/spo/listitem/listitem-isrecord.mdx +1 -1
  606. package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
  607. package/docs/docs/cmd/spo/listitem/listitem-record-declare.mdx +1 -1
  608. package/docs/docs/cmd/spo/listitem/listitem-record-lock.mdx +1 -1
  609. package/docs/docs/cmd/spo/listitem/listitem-record-undeclare.mdx +1 -1
  610. package/docs/docs/cmd/spo/listitem/listitem-record-unlock.mdx +1 -1
  611. package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +1 -1
  612. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +1 -1
  613. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
  614. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +1 -1
  615. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +1 -1
  616. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.mdx +1 -1
  617. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.mdx +1 -1
  618. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  619. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +1 -1
  620. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +44 -11
  621. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -4
  622. package/docs/docs/cmd/spo/navigation/navigation-node-remove.mdx +1 -1
  623. package/docs/docs/cmd/spo/navigation/navigation-node-set.mdx +1 -1
  624. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.mdx +1 -1
  625. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.mdx +1 -1
  626. package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.mdx +1 -1
  627. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.mdx +1 -1
  628. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.mdx +1 -1
  629. package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.mdx +1 -1
  630. package/docs/docs/cmd/spo/page/page-add.mdx +1 -1
  631. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  632. package/docs/docs/cmd/spo/page/page-column-get.mdx +1 -1
  633. package/docs/docs/cmd/spo/page/page-column-list.mdx +1 -1
  634. package/docs/docs/cmd/spo/page/page-control-get.mdx +1 -1
  635. package/docs/docs/cmd/spo/page/page-control-list.mdx +1 -1
  636. package/docs/docs/cmd/spo/page/page-control-remove.mdx +1 -1
  637. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  638. package/docs/docs/cmd/spo/page/page-copy.mdx +1 -1
  639. package/docs/docs/cmd/spo/page/page-get.mdx +1 -1
  640. package/docs/docs/cmd/spo/page/page-header-set.mdx +1 -1
  641. package/docs/docs/cmd/spo/page/page-list.mdx +1 -1
  642. package/docs/docs/cmd/spo/page/page-publish.mdx +1 -1
  643. package/docs/docs/cmd/spo/page/page-remove.mdx +1 -1
  644. package/docs/docs/cmd/spo/page/page-section-add.mdx +1 -1
  645. package/docs/docs/cmd/spo/page/page-section-get.mdx +1 -1
  646. package/docs/docs/cmd/spo/page/page-section-list.mdx +1 -1
  647. package/docs/docs/cmd/spo/page/page-section-remove.mdx +1 -1
  648. package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
  649. package/docs/docs/cmd/spo/page/page-template-list.mdx +1 -1
  650. package/docs/docs/cmd/spo/page/page-text-add.mdx +1 -1
  651. package/docs/docs/cmd/spo/propertybag/propertybag-get.mdx +1 -1
  652. package/docs/docs/cmd/spo/propertybag/propertybag-list.mdx +1 -1
  653. package/docs/docs/cmd/spo/propertybag/propertybag-remove.mdx +1 -1
  654. package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
  655. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +1 -1
  656. package/docs/docs/cmd/spo/report/report-activitypages.mdx +1 -1
  657. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +1 -1
  658. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +1 -1
  659. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +1 -1
  660. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +1 -1
  661. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +1 -1
  662. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +1 -1
  663. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +1 -1
  664. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.mdx +1 -1
  665. package/docs/docs/cmd/spo/roledefinition/roledefinition-get.mdx +1 -1
  666. package/docs/docs/cmd/spo/roledefinition/roledefinition-list.mdx +1 -1
  667. package/docs/docs/cmd/spo/roledefinition/roledefinition-remove.mdx +1 -1
  668. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.mdx +1 -1
  669. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +1 -1
  670. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-revoke.mdx +1 -1
  671. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.mdx +1 -1
  672. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-deny.mdx +1 -1
  673. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.mdx +1 -1
  674. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.mdx +1 -1
  675. package/docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx +77 -0
  676. package/docs/docs/cmd/spo/site/site-add.mdx +15 -6
  677. package/docs/docs/cmd/spo/site/site-admin-add.mdx +1 -1
  678. package/docs/docs/cmd/spo/site/site-admin-list.mdx +1 -1
  679. package/docs/docs/cmd/spo/site/site-admin-remove.mdx +1 -1
  680. package/docs/docs/cmd/spo/site/site-appcatalog-add.mdx +1 -1
  681. package/docs/docs/cmd/spo/site/site-appcatalog-list.mdx +1 -1
  682. package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +1 -1
  683. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +1 -1
  684. package/docs/docs/cmd/spo/site/site-apppermission-get.mdx +1 -1
  685. package/docs/docs/cmd/spo/site/site-apppermission-list.mdx +1 -1
  686. package/docs/docs/cmd/spo/site/site-apppermission-remove.mdx +1 -1
  687. package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +1 -1
  688. package/docs/docs/cmd/spo/site/site-archive.mdx +1 -1
  689. package/docs/docs/cmd/spo/site/site-chrome-set.mdx +1 -1
  690. package/docs/docs/cmd/spo/site/site-commsite-enable.mdx +1 -1
  691. package/docs/docs/cmd/spo/site/site-ensure.mdx +1 -1
  692. package/docs/docs/cmd/spo/site/site-get.mdx +1 -1
  693. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  694. package/docs/docs/cmd/spo/site/site-hubsite-connect.mdx +1 -1
  695. package/docs/docs/cmd/spo/site/site-hubsite-disconnect.mdx +1 -1
  696. package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.mdx +1 -1
  697. package/docs/docs/cmd/spo/site/site-inplacerecordsmanagement-set.mdx +1 -1
  698. package/docs/docs/cmd/spo/site/site-list.mdx +1 -1
  699. package/docs/docs/cmd/spo/site/site-membership-list.mdx +1 -1
  700. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
  701. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
  702. package/docs/docs/cmd/spo/site/site-recyclebinitem-move.mdx +1 -1
  703. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
  704. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +1 -1
  705. package/docs/docs/cmd/spo/site/site-remove.mdx +1 -1
  706. package/docs/docs/cmd/spo/site/site-rename.mdx +1 -1
  707. package/docs/docs/cmd/spo/site/site-set.mdx +1 -1
  708. package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +1 -1
  709. package/docs/docs/cmd/spo/site/site-unarchive.mdx +1 -1
  710. package/docs/docs/cmd/spo/site/site-versionpolicy-get.mdx +1 -1
  711. package/docs/docs/cmd/spo/sitedesign/sitedesign-add.mdx +1 -1
  712. package/docs/docs/cmd/spo/sitedesign/sitedesign-apply.mdx +1 -1
  713. package/docs/docs/cmd/spo/sitedesign/sitedesign-get.mdx +1 -1
  714. package/docs/docs/cmd/spo/sitedesign/sitedesign-list.mdx +1 -1
  715. package/docs/docs/cmd/spo/sitedesign/sitedesign-remove.mdx +1 -1
  716. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-grant.mdx +1 -1
  717. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-list.mdx +1 -1
  718. package/docs/docs/cmd/spo/sitedesign/sitedesign-rights-revoke.mdx +1 -1
  719. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-list.mdx +1 -1
  720. package/docs/docs/cmd/spo/sitedesign/sitedesign-run-status-get.mdx +1 -1
  721. package/docs/docs/cmd/spo/sitedesign/sitedesign-set.mdx +1 -1
  722. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-get.mdx +1 -1
  723. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-list.mdx +1 -1
  724. package/docs/docs/cmd/spo/sitedesign/sitedesign-task-remove.mdx +1 -1
  725. package/docs/docs/cmd/spo/sitescript/sitescript-add.mdx +1 -1
  726. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +1 -1
  727. package/docs/docs/cmd/spo/sitescript/sitescript-list.mdx +1 -1
  728. package/docs/docs/cmd/spo/sitescript/sitescript-remove.mdx +1 -1
  729. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +1 -1
  730. package/docs/docs/cmd/spo/spo-get.mdx +1 -1
  731. package/docs/docs/cmd/spo/spo-search.mdx +1 -1
  732. package/docs/docs/cmd/spo/spo-set.mdx +1 -1
  733. package/docs/docs/cmd/spo/storageentity/storageentity-get.mdx +1 -1
  734. package/docs/docs/cmd/spo/storageentity/storageentity-list.mdx +1 -1
  735. package/docs/docs/cmd/spo/storageentity/storageentity-remove.mdx +1 -1
  736. package/docs/docs/cmd/spo/storageentity/storageentity-set.mdx +1 -1
  737. package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.mdx +1 -1
  738. package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.mdx +1 -1
  739. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  740. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +1 -1
  741. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
  742. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
  743. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  744. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  745. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +1 -1
  746. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +1 -1
  747. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
  748. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  749. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.mdx +1 -1
  750. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.mdx +1 -1
  751. package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +1 -1
  752. package/docs/docs/cmd/spo/tenant/tenant-settings-list.mdx +1 -1
  753. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +1 -1
  754. package/docs/docs/cmd/spo/tenant/tenant-site-get.mdx +479 -0
  755. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  756. package/docs/docs/cmd/spo/term/term-get.mdx +1 -1
  757. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  758. package/docs/docs/cmd/spo/term/term-group-get.mdx +1 -1
  759. package/docs/docs/cmd/spo/term/term-group-list.mdx +1 -1
  760. package/docs/docs/cmd/spo/term/term-list.mdx +1 -1
  761. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  762. package/docs/docs/cmd/spo/term/term-set-get.mdx +1 -1
  763. package/docs/docs/cmd/spo/term/term-set-list.mdx +1 -1
  764. package/docs/docs/cmd/spo/theme/theme-apply.mdx +1 -1
  765. package/docs/docs/cmd/spo/theme/theme-get.mdx +1 -1
  766. package/docs/docs/cmd/spo/theme/theme-list.mdx +1 -1
  767. package/docs/docs/cmd/spo/theme/theme-remove.mdx +1 -1
  768. package/docs/docs/cmd/spo/theme/theme-set.mdx +1 -1
  769. package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
  770. package/docs/docs/cmd/spo/user/user-get.mdx +1 -1
  771. package/docs/docs/cmd/spo/user/user-list.mdx +1 -1
  772. package/docs/docs/cmd/spo/user/user-remove.mdx +1 -1
  773. package/docs/docs/cmd/spo/userprofile/userprofile-get.mdx +1 -1
  774. package/docs/docs/cmd/spo/userprofile/userprofile-set.mdx +1 -1
  775. package/docs/docs/cmd/spo/web/web-add.mdx +1 -1
  776. package/docs/docs/cmd/spo/web/web-alert-list.mdx +1 -1
  777. package/docs/docs/cmd/spo/web/web-alert-remove.mdx +1 -1
  778. package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.mdx +1 -1
  779. package/docs/docs/cmd/spo/web/web-get.mdx +1 -1
  780. package/docs/docs/cmd/spo/web/web-installedlanguage-list.mdx +1 -1
  781. package/docs/docs/cmd/spo/web/web-list.mdx +1 -1
  782. package/docs/docs/cmd/spo/web/web-reindex.mdx +1 -1
  783. package/docs/docs/cmd/spo/web/web-remove.mdx +1 -1
  784. package/docs/docs/cmd/spo/web/web-retentionlabel-list.mdx +1 -1
  785. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
  786. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
  787. package/docs/docs/cmd/spo/web/web-roleinheritance-break.mdx +1 -1
  788. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.mdx +1 -1
  789. package/docs/docs/cmd/spo/web/web-set.mdx +1 -1
  790. package/docs/docs/cmd/spp/autofillcolumn/autofillcolumn-set.mdx +1 -1
  791. package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +1 -1
  792. package/docs/docs/cmd/spp/model/model-apply.mdx +1 -1
  793. package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
  794. package/docs/docs/cmd/spp/model/model-list.mdx +1 -1
  795. package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
  796. package/docs/docs/cmd/status.mdx +1 -1
  797. package/docs/docs/cmd/teams/app/app-install.mdx +1 -1
  798. package/docs/docs/cmd/teams/app/app-list.mdx +1 -1
  799. package/docs/docs/cmd/teams/app/app-publish.mdx +1 -1
  800. package/docs/docs/cmd/teams/app/app-remove.mdx +1 -1
  801. package/docs/docs/cmd/teams/app/app-uninstall.mdx +1 -1
  802. package/docs/docs/cmd/teams/app/app-update.mdx +1 -1
  803. package/docs/docs/cmd/teams/cache/cache-remove.mdx +1 -1
  804. package/docs/docs/cmd/teams/callrecord/callrecord-get.mdx +1 -1
  805. package/docs/docs/cmd/teams/callrecord/callrecord-list.mdx +1 -1
  806. package/docs/docs/cmd/teams/channel/channel-add.mdx +1 -1
  807. package/docs/docs/cmd/teams/channel/channel-get.mdx +1 -1
  808. package/docs/docs/cmd/teams/channel/channel-list.mdx +1 -1
  809. package/docs/docs/cmd/teams/channel/channel-member-add.mdx +1 -1
  810. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +1 -1
  811. package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
  812. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
  813. package/docs/docs/cmd/teams/channel/channel-remove.mdx +1 -1
  814. package/docs/docs/cmd/teams/channel/channel-set.mdx +1 -1
  815. package/docs/docs/cmd/teams/chat/chat-get.mdx +1 -1
  816. package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -1
  817. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +1 -1
  818. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +1 -1
  819. package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +1 -1
  820. package/docs/docs/cmd/teams/chat/chat-message-list.mdx +1 -1
  821. package/docs/docs/cmd/teams/chat/chat-message-send.mdx +1 -1
  822. package/docs/docs/cmd/teams/funsettings/funsettings-list.mdx +1 -1
  823. package/docs/docs/cmd/teams/funsettings/funsettings-set.mdx +1 -1
  824. package/docs/docs/cmd/teams/guestsettings/guestsettings-list.mdx +1 -1
  825. package/docs/docs/cmd/teams/guestsettings/guestsettings-set.mdx +1 -1
  826. package/docs/docs/cmd/teams/meeting/meeting-add.mdx +1 -1
  827. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +1 -1
  828. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-list.mdx +1 -1
  829. package/docs/docs/cmd/teams/meeting/meeting-get.mdx +1 -1
  830. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +1 -1
  831. package/docs/docs/cmd/teams/meeting/meeting-transcript-get.mdx +1 -1
  832. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +1 -1
  833. package/docs/docs/cmd/teams/membersettings/membersettings-list.mdx +1 -1
  834. package/docs/docs/cmd/teams/membersettings/membersettings-set.mdx +1 -1
  835. package/docs/docs/cmd/teams/message/message-get.mdx +1 -1
  836. package/docs/docs/cmd/teams/message/message-list.mdx +1 -1
  837. package/docs/docs/cmd/teams/message/message-remove.mdx +1 -1
  838. package/docs/docs/cmd/teams/message/message-reply-list.mdx +1 -1
  839. package/docs/docs/cmd/teams/message/message-restore.mdx +1 -1
  840. package/docs/docs/cmd/teams/message/message-send.mdx +1 -1
  841. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.mdx +1 -1
  842. package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.mdx +1 -1
  843. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +1 -1
  844. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +1 -1
  845. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +1 -1
  846. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +1 -1
  847. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
  848. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +1 -1
  849. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +1 -1
  850. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +1 -1
  851. package/docs/docs/cmd/teams/tab/tab-add.mdx +1 -1
  852. package/docs/docs/cmd/teams/tab/tab-get.mdx +1 -1
  853. package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -1
  854. package/docs/docs/cmd/teams/tab/tab-remove.mdx +1 -1
  855. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  856. package/docs/docs/cmd/teams/team/team-app-list.mdx +1 -1
  857. package/docs/docs/cmd/teams/team/team-archive.mdx +1 -1
  858. package/docs/docs/cmd/teams/team/team-clone.mdx +1 -1
  859. package/docs/docs/cmd/teams/team/team-get.mdx +1 -1
  860. package/docs/docs/cmd/teams/team/team-list.mdx +1 -1
  861. package/docs/docs/cmd/teams/team/team-remove.mdx +1 -1
  862. package/docs/docs/cmd/teams/team/team-set.mdx +1 -1
  863. package/docs/docs/cmd/teams/team/team-unarchive.mdx +1 -1
  864. package/docs/docs/cmd/teams/user/user-app-add.mdx +1 -1
  865. package/docs/docs/cmd/teams/user/user-app-list.mdx +1 -1
  866. package/docs/docs/cmd/teams/user/user-app-remove.mdx +1 -1
  867. package/docs/docs/cmd/teams/user/user-app-upgrade.mdx +1 -1
  868. package/docs/docs/cmd/teams/user/user-list.mdx +1 -1
  869. package/docs/docs/cmd/tenant/id/id-get.mdx +1 -1
  870. package/docs/docs/cmd/tenant/info/info-get.mdx +1 -1
  871. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
  872. package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +1 -1
  873. package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +1 -1
  874. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
  875. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
  876. package/docs/docs/cmd/tenant/people/people-pronouns-get.mdx +1 -1
  877. package/docs/docs/cmd/tenant/people/people-pronouns-set.mdx +1 -1
  878. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +1 -1
  879. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +1 -1
  880. package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +1 -1
  881. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +1 -1
  882. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +1 -1
  883. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +1 -1
  884. package/docs/docs/cmd/tenant/report/report-settings-get.mdx +1 -1
  885. package/docs/docs/cmd/tenant/report/report-settings-set.mdx +1 -1
  886. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
  887. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +1 -1
  888. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +1 -1
  889. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +1 -1
  890. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +1 -1
  891. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +1 -1
  892. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +1 -1
  893. package/docs/docs/cmd/todo/list/list-add.mdx +1 -1
  894. package/docs/docs/cmd/todo/list/list-get.mdx +1 -1
  895. package/docs/docs/cmd/todo/list/list-list.mdx +1 -1
  896. package/docs/docs/cmd/todo/list/list-remove.mdx +1 -1
  897. package/docs/docs/cmd/todo/list/list-set.mdx +1 -1
  898. package/docs/docs/cmd/todo/task/task-add.mdx +1 -1
  899. package/docs/docs/cmd/todo/task/task-get.mdx +1 -1
  900. package/docs/docs/cmd/todo/task/task-list.mdx +1 -1
  901. package/docs/docs/cmd/todo/task/task-remove.mdx +1 -1
  902. package/docs/docs/cmd/todo/task/task-set.mdx +1 -1
  903. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +1 -1
  904. package/docs/docs/cmd/version.mdx +1 -1
  905. package/docs/docs/cmd/viva/connections/connections-app-create.mdx +1 -1
  906. package/docs/docs/cmd/viva/engage/engage-community-add.mdx +1 -1
  907. package/docs/docs/cmd/viva/engage/engage-community-get.mdx +1 -1
  908. package/docs/docs/cmd/viva/engage/engage-community-list.mdx +1 -1
  909. package/docs/docs/cmd/viva/engage/engage-community-remove.mdx +1 -1
  910. package/docs/docs/cmd/viva/engage/engage-community-set.mdx +1 -1
  911. package/docs/docs/cmd/viva/engage/engage-community-user-add.mdx +1 -1
  912. package/docs/docs/cmd/viva/engage/engage-community-user-list.mdx +1 -1
  913. package/docs/docs/cmd/viva/engage/engage-community-user-remove.mdx +1 -1
  914. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
  915. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
  916. package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
  917. package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
  918. package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
  919. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
  920. package/docs/docs/cmd/viva/engage/engage-report-activitycounts.mdx +1 -1
  921. package/docs/docs/cmd/viva/engage/engage-report-activityusercounts.mdx +1 -1
  922. package/docs/docs/cmd/viva/engage/engage-report-activityuserdetail.mdx +1 -1
  923. package/docs/docs/cmd/viva/engage/engage-report-deviceusagedistributionusercounts.mdx +1 -1
  924. package/docs/docs/cmd/viva/engage/engage-report-deviceusageusercounts.mdx +1 -1
  925. package/docs/docs/cmd/viva/engage/engage-report-deviceusageuserdetail.mdx +1 -1
  926. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitycounts.mdx +1 -1
  927. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitydetail.mdx +1 -1
  928. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitygroupcounts.mdx +1 -1
  929. package/docs/docs/cmd/viva/engage/engage-role-list.mdx +1 -1
  930. package/docs/docs/cmd/viva/engage/engage-role-member-list.mdx +1 -1
  931. package/docs/docs/cmd/viva/engage/engage-role-member-remove.mdx +71 -0
  932. package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
  933. package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
  934. package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
  935. package/npm-shrinkwrap.json +289 -249
  936. package/package.json +8 -11
package/dist/cli/cli.js CHANGED
@@ -26,11 +26,14 @@ const commands = [];
26
26
  /**
27
27
  * Command to execute
28
28
  */
29
+ // eslint-disable-next-line no-unassigned-vars
29
30
  let commandToExecute;
30
31
  /**
31
32
  * Name of the command specified through args
32
33
  */
34
+ // eslint-disable-next-line no-unassigned-vars
33
35
  let currentCommandName;
36
+ // eslint-disable-next-line no-unassigned-vars
34
37
  let optionsFromArgs;
35
38
  const defaultHelpMode = 'options';
36
39
  const defaultHelpTarget = 'console';
@@ -37,7 +37,7 @@ class PeriodBasedReport extends GraphCommand {
37
37
  this.handleRejectedODataJsonPromise(err);
38
38
  return;
39
39
  }
40
- let content = '';
40
+ let content;
41
41
  const cleanResponse = this.removeEmptyLines(res);
42
42
  if (output && output.toLowerCase() === 'json') {
43
43
  const reportData = this.getReport(cleanResponse);
@@ -25,7 +25,7 @@ class CliConfigSetCommand extends AnonymousCommand {
25
25
  __classPrivateFieldGet(this, _CliConfigSetCommand_instances, "m", _CliConfigSetCommand_initValidators).call(this);
26
26
  }
27
27
  async commandAction(logger, args) {
28
- let value = undefined;
28
+ let value;
29
29
  switch (args.options.key) {
30
30
  case settingsNames.autoOpenLinksInBrowser:
31
31
  case settingsNames.copyDeviceCodeToClipboard:
@@ -27,8 +27,8 @@ class EntraAppRoleAssignmentAddCommand extends GraphCommand {
27
27
  __classPrivateFieldGet(this, _EntraAppRoleAssignmentAddCommand_instances, "m", _EntraAppRoleAssignmentAddCommand_initOptionSets).call(this);
28
28
  }
29
29
  async commandAction(logger, args) {
30
- let objectId = '';
31
- let queryFilter = '';
30
+ let objectId;
31
+ let queryFilter;
32
32
  if (args.options.appId) {
33
33
  queryFilter = `$filter=appId eq '${formatting.encodeQueryParameter(args.options.appId)}'`;
34
34
  }
@@ -30,7 +30,7 @@ class EntraAppRoleAssignmentRemoveCommand extends GraphCommand {
30
30
  const removeAppRoleAssignment = async () => {
31
31
  let sp;
32
32
  // get the service principal associated with the appId
33
- let spMatchQuery = '';
33
+ let spMatchQuery;
34
34
  if (args.options.appId) {
35
35
  spMatchQuery = `appId eq '${formatting.encodeQueryParameter(args.options.appId)}'`;
36
36
  }
@@ -28,8 +28,6 @@ class EntraGroupAddCommand extends GraphCommand {
28
28
  }
29
29
  async commandAction(logger, args) {
30
30
  let group;
31
- let ownerIds = [];
32
- let memberIds = [];
33
31
  try {
34
32
  const manifest = this.createRequestBody(args.options);
35
33
  const requestOptions = {
@@ -40,8 +38,8 @@ class EntraGroupAddCommand extends GraphCommand {
40
38
  responseType: 'json',
41
39
  data: manifest
42
40
  };
43
- ownerIds = await this.getUserIds(logger, args.options.ownerIds, args.options.ownerUserNames);
44
- memberIds = await this.getUserIds(logger, args.options.memberIds, args.options.memberUserNames);
41
+ const ownerIds = await this.getUserIds(logger, args.options.ownerIds, args.options.ownerUserNames);
42
+ const memberIds = await this.getUserIds(logger, args.options.memberIds, args.options.memberUserNames);
45
43
  group = await request.post(requestOptions);
46
44
  if (ownerIds.length !== 0) {
47
45
  await this.addUsers(group.id, 'owners', ownerIds);
@@ -82,7 +82,7 @@ class EntraGroupMemberListCommand extends GraphCommand {
82
82
  const expandParam = fieldExpand.length > 0 ? `&$expand=${fieldExpand}` : '';
83
83
  const selectParam = allSelectProperties.filter(item => !item.includes('/'));
84
84
  const endpoint = `${this.resource}/v1.0/groups/${groupId}/${role}?$select=${selectParam}${expandParam}`;
85
- let users = [];
85
+ let users;
86
86
  if (filter) {
87
87
  // While using the filter, we need to specify the ConsistencyLevel header.
88
88
  // Can be refactored when the header is no longer necessary.
@@ -30,8 +30,6 @@ class EntraM365GroupAddCommand extends GraphCommand {
30
30
  }
31
31
  async commandAction(logger, args) {
32
32
  let group;
33
- let ownerIds = [];
34
- let memberIds = [];
35
33
  const resourceBehaviorOptionsCollection = [];
36
34
  const resolvedVisibility = args.options.visibility || 'Public';
37
35
  if (this.verbose) {
@@ -69,8 +67,8 @@ class EntraM365GroupAddCommand extends GraphCommand {
69
67
  }
70
68
  };
71
69
  try {
72
- ownerIds = await this.getUserIds(logger, args.options.owners);
73
- memberIds = await this.getUserIds(logger, args.options.members);
70
+ const ownerIds = await this.getUserIds(logger, args.options.owners);
71
+ const memberIds = await this.getUserIds(logger, args.options.members);
74
72
  group = await request.post(requestOptions);
75
73
  if (!args.options.logoPath) {
76
74
  if (this.debug) {
@@ -132,9 +130,7 @@ class EntraM365GroupAddCommand extends GraphCommand {
132
130
  await logger.logToStderr('Retrieving user information.');
133
131
  }
134
132
  const userArr = users.split(',').map(o => o.trim());
135
- let promises = [];
136
- let userIds = [];
137
- promises = userArr.map(user => {
133
+ const promises = userArr.map(user => {
138
134
  const requestOptions = {
139
135
  url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
140
136
  headers: {
@@ -147,7 +143,7 @@ class EntraM365GroupAddCommand extends GraphCommand {
147
143
  const usersRes = await Promise.all(promises);
148
144
  let userUpns = [];
149
145
  userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
150
- userIds = usersRes.map(res => res.value[0]?.id);
146
+ const userIds = usersRes.map(res => res.value[0]?.id);
151
147
  // Find the members where no graph response was found
152
148
  const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
153
149
  if (invalidUsers && invalidUsers.length > 0) {
@@ -1,6 +1,8 @@
1
+ import { globalOptionsZod } from '../../../../Command.js';
1
2
  import { odata } from '../../../../utils/odata.js';
2
3
  import GraphCommand from '../../../base/GraphCommand.js';
3
4
  import commands from '../../commands.js';
5
+ export const options = globalOptionsZod.strict();
4
6
  class EntraUserRecycleBinItemListCommand extends GraphCommand {
5
7
  get name() {
6
8
  return commands.USER_RECYCLEBINITEM_LIST;
@@ -8,6 +10,9 @@ class EntraUserRecycleBinItemListCommand extends GraphCommand {
8
10
  get description() {
9
11
  return 'Lists users from the recycle bin in the current tenant';
10
12
  }
13
+ get schema() {
14
+ return options;
15
+ }
11
16
  defaultProperties() {
12
17
  return ['id', 'displayName', 'userPrincipalName'];
13
18
  }
@@ -174,17 +174,15 @@ class FileConvertPdfCommand extends GraphCommand {
174
174
  return fileGraphUrl;
175
175
  }
176
176
  const _url = new URL(fileWebUrl);
177
- let siteId = '';
178
- let driveRelativeFileUrl = '';
179
177
  const siteInfo = await this.getGraphSiteInfoFromFullUrl(_url.hostname, _url.pathname);
180
- siteId = siteInfo.id;
178
+ const siteId = siteInfo.id;
181
179
  let siteRelativeFileUrl = _url.pathname.replace(siteInfo.serverRelativeUrl, '');
182
180
  // normalize site-relative URLs for root site collections and root sites
183
181
  if (!siteRelativeFileUrl.startsWith('/')) {
184
182
  siteRelativeFileUrl = '/' + siteRelativeFileUrl;
185
183
  }
186
184
  const siteRelativeFileUrlChunks = siteRelativeFileUrl.split('/');
187
- driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
185
+ const driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
188
186
  // chunk 0 is empty because the URL starts with /
189
187
  const driveId = await this.getDriveId(logger, siteId, siteRelativeFileUrlChunks[1]);
190
188
  const graphUrl = `${this.resource}/v1.0/sites/${siteId}/drives/${driveId}/root:${driveRelativeFileUrl}`;
@@ -224,7 +222,7 @@ class FileConvertPdfCommand extends GraphCommand {
224
222
  if (currentPath.endsWith('/sites') ||
225
223
  currentPath.endsWith('/teams') ||
226
224
  currentPath.endsWith('/personal')) {
227
- return await this.getGraphSiteInfo(hostName, urlChunks, ++currentChunk, '');
225
+ return await this.getGraphSiteInfo(hostName, urlChunks, currentChunk + 1, '');
228
226
  }
229
227
  if (!currentPath.startsWith('/')) {
230
228
  currentPath = '/' + currentPath;
@@ -99,17 +99,15 @@ class FileAddCommand extends GraphCommand {
99
99
  const _fileWebUrl = new URL(fileWebUrl);
100
100
  const _siteUrl = new URL(siteUrl || fileWebUrl);
101
101
  const isSiteUrl = typeof siteUrl !== 'undefined';
102
- let siteId = '';
103
- let driveRelativeFileUrl = '';
104
102
  const siteInfo = await this.getGraphSiteInfoFromFullUrl(_siteUrl.host, _siteUrl.pathname, isSiteUrl);
105
- siteId = siteInfo.id;
103
+ let siteId = siteInfo.id;
106
104
  let siteRelativeFileUrl = _fileWebUrl.pathname.replace(siteInfo.serverRelativeUrl, '');
107
105
  // normalize site-relative URLs for root site collections and root sites
108
106
  if (!siteRelativeFileUrl.startsWith('/')) {
109
107
  siteRelativeFileUrl = '/' + siteRelativeFileUrl;
110
108
  }
111
109
  const siteRelativeFileUrlChunks = siteRelativeFileUrl.split('/');
112
- driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
110
+ let driveRelativeFileUrl = `/${siteRelativeFileUrlChunks.slice(2).join('/')}`;
113
111
  // chunk 0 is empty because the URL starts with /
114
112
  const driveId = await this.getDriveId(logger, siteId, siteRelativeFileUrlChunks[1]);
115
113
  const graphUrl = `${this.resource}/v1.0/sites/${siteId}/drives/${driveId}/root:${driveRelativeFileUrl}`;
@@ -148,7 +146,7 @@ class FileAddCommand extends GraphCommand {
148
146
  if (currentPath.endsWith('/sites') ||
149
147
  currentPath.endsWith('/teams') ||
150
148
  currentPath.endsWith('/personal')) {
151
- return await this.getGraphSiteInfo(hostName, urlChunks, ++currentChunk, '');
149
+ return await this.getGraphSiteInfo(hostName, urlChunks, currentChunk + 1, '');
152
150
  }
153
151
  if (!currentPath.startsWith('/')) {
154
152
  currentPath = '/' + currentPath;
@@ -38,11 +38,10 @@ class FileListCommand extends GraphCommand {
38
38
  folderUrlValue = folderUrlValue.slice(0, -1);
39
39
  }
40
40
  const folderUrl = new URL(folderUrlValue, webUrl);
41
- let driveId = '';
42
41
  try {
43
42
  const siteId = await this.getSiteId(args.options.webUrl, logger);
44
43
  const drive = await this.getDocumentLibrary(siteId, folderUrl, args.options.folderUrl, logger);
45
- driveId = drive.id;
44
+ const driveId = drive.id;
46
45
  const folderId = await this.getStartingFolderId(drive, folderUrl, logger);
47
46
  if (this.verbose) {
48
47
  await logger.logToStderr(`Loading folders to get files from...`);
@@ -27,7 +27,6 @@ class FlowExportCommand extends PowerPlatformCommand {
27
27
  __classPrivateFieldGet(this, _FlowExportCommand_instances, "m", _FlowExportCommand_initValidators).call(this);
28
28
  }
29
29
  async commandAction(logger, args) {
30
- let filenameFromApi = '';
31
30
  const formatArgument = args.options.format?.toLowerCase() || '';
32
31
  if (this.verbose) {
33
32
  await logger.logToStderr(`Retrieving package resources for Microsoft Flow ${args.options.name}...`);
@@ -99,7 +98,7 @@ class FlowExportCommand extends PowerPlatformCommand {
99
98
  }
100
99
  const downloadFileUrl = formatArgument === 'json' ? '' : res.packageLink.value;
101
100
  const filenameRegEx = /([^/]+\.zip)/i;
102
- filenameFromApi = formatArgument === 'json' ? `${res.properties.displayName}.json` : (filenameRegEx.exec(downloadFileUrl) || ['output.zip'])[0];
101
+ let filenameFromApi = formatArgument === 'json' ? `${res.properties.displayName}.json` : (filenameRegEx.exec(downloadFileUrl) || ['output.zip'])[0];
103
102
  // Replace all illegal characters from the file name
104
103
  const illegalCharsRegEx = /[\\/:*?"<>|]/g;
105
104
  filenameFromApi = filenameFromApi.replace(illegalCharsRegEx, '_');
@@ -33,7 +33,7 @@ class FlowOwnerRemoveCommand extends PowerAutomateCommand {
33
33
  await logger.logToStderr(`Removing owner ${args.options.userId || args.options.userName || args.options.groupId || args.options.groupName} from flow ${args.options.flowName} in environment ${args.options.environmentName}`);
34
34
  }
35
35
  const removeFlowOwner = async () => {
36
- let idToRemove = '';
36
+ let idToRemove;
37
37
  if (args.options.userId) {
38
38
  idToRemove = args.options.userId;
39
39
  }
@@ -84,7 +84,7 @@ class GraphSchemaExtensionSetCommand extends GraphCommand {
84
84
  }
85
85
  }
86
86
  validateProperties(propertiesString) {
87
- let properties = null;
87
+ let properties;
88
88
  try {
89
89
  properties = JSON.parse(propertiesString);
90
90
  }
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+ import { globalOptionsZod } from '../../../../Command.js';
3
+ import GraphCommand from '../../../base/GraphCommand.js';
4
+ import commands from '../../commands.js';
5
+ import { validation } from '../../../../utils/validation.js';
6
+ import { odata } from '../../../../utils/odata.js';
7
+ import { accessToken } from '../../../../utils/accessToken.js';
8
+ import auth from '../../../../Auth.js';
9
+ export const options = z.strictObject({
10
+ ...globalOptionsZod.shape,
11
+ userId: z.string().refine(id => validation.isValidGuid(id), {
12
+ error: e => `'${e.input}' is not a valid GUID.`
13
+ }).optional(),
14
+ userName: z.string().refine(name => validation.isValidUserPrincipalName(name), {
15
+ error: e => `'${e.input}' is not a valid UPN.`
16
+ }).optional()
17
+ });
18
+ class OutlookCalendarGroupListCommand extends GraphCommand {
19
+ get name() {
20
+ return commands.CALENDARGROUP_LIST;
21
+ }
22
+ get description() {
23
+ return 'Retrieves calendar groups for a user';
24
+ }
25
+ get schema() {
26
+ return options;
27
+ }
28
+ getRefinedSchema(schema) {
29
+ return schema
30
+ .refine(options => !(options.userId && options.userName), {
31
+ error: 'Specify either userId or userName, but not both.'
32
+ });
33
+ }
34
+ defaultProperties() {
35
+ return ['id', 'name'];
36
+ }
37
+ async commandAction(logger, args) {
38
+ try {
39
+ const token = auth.connection.accessTokens[auth.defaultResource].accessToken;
40
+ const isAppOnlyAccessToken = accessToken.isAppOnlyAccessToken(token);
41
+ if (isAppOnlyAccessToken) {
42
+ if (!args.options.userId && !args.options.userName) {
43
+ throw 'When running with application permissions either userId or userName is required.';
44
+ }
45
+ const userIdentifier = args.options.userId ?? args.options.userName;
46
+ if (this.verbose) {
47
+ await logger.logToStderr(`Retrieving calendar groups for user '${userIdentifier}'...`);
48
+ }
49
+ const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/users('${userIdentifier}')/calendarGroups`);
50
+ await logger.log(calendarGroups);
51
+ }
52
+ else {
53
+ if (args.options.userId || args.options.userName) {
54
+ const currentUserId = accessToken.getUserIdFromAccessToken(token);
55
+ const currentUserName = accessToken.getUserNameFromAccessToken(token);
56
+ const isOtherUser = (args.options.userId && args.options.userId !== currentUserId) ||
57
+ (args.options.userName && args.options.userName.toLowerCase() !== currentUserName?.toLowerCase());
58
+ if (isOtherUser) {
59
+ const scopes = accessToken.getScopesFromAccessToken(token);
60
+ const hasSharedScope = scopes.some(s => s === 'Calendars.Read.Shared' || s === 'Calendars.ReadWrite.Shared');
61
+ if (!hasSharedScope) {
62
+ throw `To retrieve calendar groups of other users, the Entra ID application used for authentication must have either the Calendars.Read.Shared or Calendars.ReadWrite.Shared delegated permission assigned.`;
63
+ }
64
+ }
65
+ const userIdentifier = args.options.userId ?? args.options.userName;
66
+ if (this.verbose) {
67
+ await logger.logToStderr(`Retrieving calendar groups for user '${userIdentifier}'...`);
68
+ }
69
+ const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/users('${userIdentifier}')/calendarGroups`);
70
+ await logger.log(calendarGroups);
71
+ }
72
+ else {
73
+ if (this.verbose) {
74
+ await logger.logToStderr('Retrieving calendar groups for the signed-in user...');
75
+ }
76
+ const calendarGroups = await odata.getAllItems(`${this.resource}/v1.0/me/calendarGroups`);
77
+ await logger.log(calendarGroups);
78
+ }
79
+ }
80
+ }
81
+ catch (err) {
82
+ this.handleRejectedODataJsonPromise(err);
83
+ }
84
+ }
85
+ }
86
+ export default new OutlookCalendarGroupListCommand();
87
+ //# sourceMappingURL=calendargroup-list.js.map
@@ -1,5 +1,6 @@
1
1
  const prefix = 'outlook';
2
2
  export default {
3
+ CALENDARGROUP_LIST: `${prefix} calendargroup list`,
3
4
  MAIL_SEARCHFOLDER_ADD: `${prefix} mail searchfolder add`,
4
5
  MAIL_SEND: `${prefix} mail send`,
5
6
  MAILBOX_SETTINGS_GET: `${prefix} mailbox settings get`,
@@ -151,7 +151,6 @@ class PlannerTaskAddCommand extends GraphCommand {
151
151
  // Hitting this section means assignedToUserNames won't be undefined
152
152
  const userNames = options.assignedToUserNames;
153
153
  const userArr = userNames.split(',').map(o => o.trim());
154
- let userIds = [];
155
154
  const promises = userArr.map(user => {
156
155
  const requestOptions = {
157
156
  url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
@@ -165,7 +164,7 @@ class PlannerTaskAddCommand extends GraphCommand {
165
164
  const usersRes = await Promise.all(promises);
166
165
  let userUpns = [];
167
166
  userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
168
- userIds = usersRes.map(res => res.value[0]?.id);
167
+ const userIds = usersRes.map(res => res.value[0]?.id);
169
168
  // Find the members where no graph response was found
170
169
  const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
171
170
  if (invalidUsers && invalidUsers.length > 0) {
@@ -35,7 +35,7 @@ class PlannerTaskListCommand extends GraphCommand {
35
35
  let bucketId = args.options.bucketId;
36
36
  const planTitle = args.options.planTitle;
37
37
  let planId = args.options.planId;
38
- let taskItems = [];
38
+ let taskItems;
39
39
  try {
40
40
  if (bucketId || bucketName) {
41
41
  bucketId = await this.getBucketId(args);
@@ -124,7 +124,6 @@ class PlannerTaskSetCommand extends GraphCommand {
124
124
  // Hitting this section means assignedToUserNames won't be undefined
125
125
  const userNames = options.assignedToUserNames;
126
126
  const userArr = userNames.split(',').map(o => o.trim());
127
- let userIds = [];
128
127
  const promises = userArr.map(user => {
129
128
  const requestOptions = {
130
129
  url: `${this.resource}/v1.0/users?$filter=userPrincipalName eq '${formatting.encodeQueryParameter(user)}'&$select=id,userPrincipalName`,
@@ -138,7 +137,7 @@ class PlannerTaskSetCommand extends GraphCommand {
138
137
  const usersRes = await Promise.all(promises);
139
138
  let userUpns = [];
140
139
  userUpns = usersRes.map(res => res.value[0]?.userPrincipalName);
141
- userIds = usersRes.map(res => res.value[0]?.id);
140
+ const userIds = usersRes.map(res => res.value[0]?.id);
142
141
  // Find the members where no graph response was found
143
142
  const invalidUsers = userArr.filter(user => !userUpns.some((upn) => upn?.toLowerCase() === user.toLowerCase()));
144
143
  if (invalidUsers && invalidUsers.length > 0) {
@@ -24,7 +24,7 @@ class PpEnvironmentListCommand extends PowerPlatformCommand {
24
24
  if (this.verbose) {
25
25
  await logger.logToStderr(`Retrieving list of Microsoft Power Platform environments...`);
26
26
  }
27
- let url = '';
27
+ let url;
28
28
  if (args.options.asAdmin) {
29
29
  url = `${this.resource}/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments`;
30
30
  }
@@ -36,12 +36,11 @@ export class DependencyRule extends JsonRule {
36
36
  // if the project has no dependencies, then we assume the package is missing
37
37
  let packageNotFound = (this.isDevDep && !project.packageJson.devDependencies) ||
38
38
  (!this.isDevDep && !project.packageJson.dependencies);
39
- let packageVersionFromProject = undefined;
40
39
  let minSemVer = null;
41
40
  if (!packageNotFound) {
42
41
  // try to get the current version of the dependency installed in the
43
42
  // project. If not possible, we assume the dependency is missing
44
- packageVersionFromProject = this.isDevDep ? project.packageJson.devDependencies[this.packageName] : project.packageJson.dependencies[this.packageName];
43
+ const packageVersionFromProject = this.isDevDep ? project.packageJson.devDependencies[this.packageName] : project.packageJson.dependencies[this.packageName];
45
44
  if (!packageVersionFromProject) {
46
45
  packageNotFound = true;
47
46
  }
@@ -31,8 +31,8 @@ export class FN003003_CFG_bundles extends JsonRule {
31
31
  return;
32
32
  }
33
33
  const resolution = { bundles: {} };
34
- entries.forEach((e, i) => {
35
- resolution.bundles[this.tryGetBundleName(e.entry, i)] = {
34
+ entries.forEach((e) => {
35
+ resolution.bundles[this.tryGetBundleName(e.entry)] = {
36
36
  components: [{
37
37
  entrypoint: e.entry,
38
38
  manifest: e.manifest
@@ -50,9 +50,8 @@ export class FN003003_CFG_bundles extends JsonRule {
50
50
  * Smart guess on the bundle name.
51
51
  * @param entry the entry value
52
52
  */
53
- tryGetBundleName(entry, index) {
54
- let name = index.toString();
55
- name = entry.substring(entry.lastIndexOf('/') + 1, entry.length);
53
+ tryGetBundleName(entry) {
54
+ let name = entry.substring(entry.lastIndexOf('/') + 1, entry.length);
56
55
  name = name.replace('.js', '');
57
56
  name = name.replace(/([a-z](?=[A-Z]))/g, '$1-');
58
57
  name = name.toLowerCase();
@@ -684,10 +684,9 @@ class SpfxDoctorCommand extends BaseProjectCommand {
684
684
  await this.logMessage('CLI for Microsoft 365 SharePoint Framework doctor');
685
685
  await this.logMessage('Verifying configuration of your system for working with the SharePoint Framework');
686
686
  await this.logMessage(' ');
687
- let spfxVersion = '';
688
687
  let prerequisites;
689
688
  try {
690
- spfxVersion = args.options.spfxVersion ?? await this.getSharePointFrameworkVersion();
689
+ const spfxVersion = args.options.spfxVersion ?? await this.getSharePointFrameworkVersion();
691
690
  if (!spfxVersion) {
692
691
  await this.logMessage(formatting.getStatus(CheckStatus.Failure, `SharePoint Framework`));
693
692
  this.resultsObject.push({
@@ -0,0 +1,172 @@
1
+ /* eslint-disable camelcase */
2
+ import { z } from 'zod';
3
+ import { globalOptionsZod } from '../../../../Command.js';
4
+ import request from '../../../../request.js';
5
+ import { validation } from '../../../../utils/validation.js';
6
+ import SpoCommand from '../../../base/SpoCommand.js';
7
+ import commands from '../../commands.js';
8
+ import { urlUtil } from '../../../../utils/urlUtil.js';
9
+ import { spo } from '../../../../utils/spo.js';
10
+ import { formatting } from '../../../../utils/formatting.js';
11
+ const options = z.strictObject({
12
+ ...globalOptionsZod.shape,
13
+ webUrl: z.string().alias('u').refine(url => validation.isValidSharePointUrl(url) === true, {
14
+ message: 'Specify a valid SharePoint site URL'
15
+ }),
16
+ name: z.string().alias('n'),
17
+ agentInstructions: z.string().alias('a'),
18
+ welcomeMessage: z.string().alias('w'),
19
+ sourceUrls: z.string().alias('s').refine(urls => {
20
+ const urlArray = urls.split(',').map(url => url.trim());
21
+ return urlArray.every(url => url && validation.isValidSharePointUrl(url) === true);
22
+ }, {
23
+ message: 'All source URLs must be valid SharePoint URLs'
24
+ }),
25
+ description: z.string().alias('d'),
26
+ icon: z.string().optional().alias('i'),
27
+ conversationStarters: z.string().optional().alias('c')
28
+ });
29
+ const urlSourceMap = {
30
+ STS_ListItem_DocumentLibrary: 'File',
31
+ STS_List_DocumentLibrary: 'List',
32
+ STS_Web: 'Site',
33
+ STS_Site: 'Site'
34
+ };
35
+ class SpoAgentAddCommand extends SpoCommand {
36
+ get name() {
37
+ return commands.AGENT_ADD;
38
+ }
39
+ get description() {
40
+ return 'Adds a new SharePoint agent';
41
+ }
42
+ get schema() {
43
+ return options;
44
+ }
45
+ async commandAction(logger, args) {
46
+ try {
47
+ if (this.verbose) {
48
+ await logger.logToStderr(`Adding SharePoint agent '${args.options.name}' to site '${args.options.webUrl}'...`);
49
+ }
50
+ await this.ensureSiteAssetsLibrary(args.options.webUrl, logger);
51
+ await spo.ensureFolder(args.options.webUrl, 'SiteAssets/Copilots', logger, this.verbose);
52
+ const sourceUrls = args.options.sourceUrls.split(',');
53
+ const capabilities = await this.resolveSourceUrls(sourceUrls, args.options.webUrl, logger);
54
+ const conversationStartersArray = args.options.conversationStarters
55
+ ? args.options.conversationStarters.split(',').map((starter) => { return { text: starter }; })
56
+ : [];
57
+ const cliM365DefaultIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAIJklEQVR4nO2bCWwUVRjHv9m73RYEBEQR5RLKpSgKqHggtBQRBAQFEY94GzUcVlBDQIkhGhUFJCqCBFDuUzkrN4qCii1GG4UKqFwCgba7OzO7M37fN3a729mFbh+IJO+XkG135r33vf981xtAOTGgnwmSauM43wZc6EgBBZECCiIFFEQKKIgUUBApoCBSQEGkgIJIAQWRAgoiBRRECiiIFFAQKaAgUkBBpICCSAEFkQIKIgUURAooiBRQECmgIFJAQaSAgkgBBZECCiIFFMQuoOMC0NTlAsXjOd9WMK7KX6Q/+TQYhw+B+vkKMFX1fNiUGEUBb7ds8OTmgvOyhvy7cewY6Fs3Q2jRQjBDoaTj3FdfA+7ON4Kz0RUATieU5I2w3eaoXx8yXnol6fL6zp0QnDXT9r1NQMXnA9+9g8DTPQdC8+eCtnEDgGGksNNzQ/rjT4Lnjm5glpSAtmUz7kgHV5u24O3TF5wtsqB03BiASCRujJKRAf7nh4ELBSTMU6cggs6RCEedi8HR4FJrrwn2q9SokXCcTUBt+9fgbJkFjtq12Ru9Pe+E0OxZoO/6IeVNny1cWa1YPOPwYSh5eTQKcdK64HZD5rjXwNWyJbg7dgL9q20Vg9DT/C++BK4WLSBcWADBObMgsndv0jUctWrxZ2jJIgjNm1tl22wJj4woee4Z9L55YAaD7PZ+dO2MV8aA88rGVZ7Ymt0Rl1MddeuBs1nzqLGx9zkbXg7Opk1B8WfYpnG1b8+fav7aCvHYWB20zZuse1q0jBvjRcFJPP3776D09fGnFY9Q/rWJ0kIq2DyQoHwSWjgf1HVrwNd/AOae7uBqdzVkTmjL4ROa+xku9PcZJ6ecQuMCUyaDN7cnOJs0iV6jjQUmvcvX04Y+hCFUx7qA4aNtWA+BaR9hSIb5K3XFctDy8zF8T9ltRREZ9LhYPLgehXSQ54nYxlXGUau2NV+KAjpHtc4am/QqFpHwD9+DtnUrKDVrojc2Yi/0ZGeD4vXhU93DXpAMzy23YnK+BNwdOkBk/z7QUZhI8V5wXtIAnI0bgxs9y5uTC+GiX0DfiNcOHEBPbGh5E84b/uVnayJNA7OsDCAcjl8AC0Ta4Ae4AKhYSIy//rLEqFsX0u4bzOPDu3eDD/OkN6cHuK+9jqs3rWOz9fauvD8a4+lyC3i73gGutu1AwQdqHEqcN9mEVP6NNHkQGexq145/p6TMnpq/zr45hMKePExdtRKCMz6umOfyRpD51jv8s7p6FQSnT4tec7e/FvyjX2bBS0YOt9vQHFNA7Toc6p4uXcDVug1omzawl0fn6HA9+PNGgXHkiOXZKDR1FFQg6Wd9x7dQ9tabccUiY+yr4GrVOuG+KeoCk9/DDdulShjCyaA8Ujp+nBV29w9BL0JBH3mUwzP46RzQv9mecBwZHDfPgf1gnDjOYUMCxlLudZQvE+Hr1ZtbklibgjM/ibuHKip/1qvHOTKEBcQ4cYKjxz8yD9zX3wDe7tmgrlkdHUO5zwwEQF2+FDQqRhj25LG+IUPZIyNFRaCuXQ2VqVbXHC74EUpG5UHgvYmWEFj+/SNe4GpZ9UksjzUDZfHfU76iJ52koQ/hBsvemACB9yfzA6OoyJzwBqaYiypu8nqtJTB8A1MmsXg89e/FmFs/4J89XbvFzUv5+OTDQyG0eBGHrHH0KAsc/NiKDk92TkJ7qn3sUGpgTsRc5ci0+iNTxzwVDKQ+UYr/ySKyZw82tTu4P6UwVJcvQ0+rD75+/WOMsz4ot1YOu3BhIYcz5Ts60cTbYjdG27YFB+mcmxOdflIKYbYtLQ28GEbeu3pbOcU0/q3Mn/JTSxkl9SGxUIh6e/eJ834KRZ46Pd0+AD2c2jMqigoKaCbI3XFgMTMDQauRJgGxoMVSdQFxMWpnqK2hxYnw7kIIzp5lVePqUgUPTHvsCT6OBT6Yyk1x/Hj7BOU9n6v5VbZrJKojM5OrevlRlXPd0AfZq9WlS2z3K34/mJrKwlfmzALSWfLGm7AtGMQtCRuIRSA0Zzb3cv8FJuYwKgjUFlUW0N2xo2XTb79Gv6MHGvnzD2zam3FV17EVK8eD52nqGfUfd0XF5/YJ87g3uwdomPdihaL2hu4PFxQk7CdPKyD1QVxtmzTl3ykZ0wlFw56tKs3p2UJdu4aTuOfW2zgSuNpj6PFZuEcubziEuTAKChOcMZ0b+fRhI9CrFmNbtB+PfFmYfnqx56kLF0RvN44eAW39l3xcpHZGXfkFn7mdmBZ8ve7ivaqLF9gNgyQCcnuCwlG7wvbgyURdsYxPBEnfepxD6PhWOnYMns2fAs9NN/Ofcsh7AlOnYOU8GDeGOoWyiW9DOoa/D5vqckgs6hnJQ2MJYLU1sVjQG5/0Z56tuB+dJjjtQyxIRQltszXSvnsGgm/AQA5dMCL4ZNZDaMG8aCuQCtzEYktBx6PKr8bo9EChYRw6zOtUWKRgW9SAvcg4eBAqQ9fo3ExtDr12i+zblzAPRqfD9alboFxGqSBMoX6a6KH87mrajF9UmCdPWvefptDYBPQPHwnuTp1B/24n57nIH/Zjj6QCWwhHiou5gQz/tPt82HPBYROQ3odJqk7KjXRVobfBvrv74gru6k+CuZH+asE4fvzsGXaWOacC8qt0QQG1bXiw/x8LmNLrLImdC+DvMP/fSAEFkQIKIgUURAooiBRQECmgIFJAQaSAgkgBBZECCiIFFEQKKIgUUBApoCBSQEGkgIJIAQWRAgoiBRRECiiIFFAQKaAgUkBBpICCSAEFkQIKIgUU5B91HS13TtrWPgAAAABJRU5ErkJggg==';
58
+ const requestBody = {
59
+ schemaVersion: "0.2.0",
60
+ customCopilotConfig: {
61
+ conversationStarters: {
62
+ conversationStarterList: conversationStartersArray,
63
+ welcomeMessage: {
64
+ text: args.options.welcomeMessage
65
+ }
66
+ },
67
+ gptDefinition: {
68
+ name: args.options.name,
69
+ description: args.options.description,
70
+ instructions: args.options.agentInstructions,
71
+ capabilities: [capabilities]
72
+ },
73
+ icon: args.options.icon || cliM365DefaultIcon
74
+ }
75
+ };
76
+ const serverRelativePath = urlUtil.getServerRelativePath(args.options.webUrl, '/SiteAssets/Copilots/');
77
+ const requestOptions = {
78
+ url: `${args.options.webUrl}/_api/web/GetFolderByServerRelativePath(DecodedUrl='${serverRelativePath}')/Files/AddUsingPath(DecodedUrl='${formatting.encodeQueryParameter(args.options.name)}.agent',EnsureUniqueFileName=true,AutoCheckoutOnInvalidData=true)`,
79
+ headers: {
80
+ 'Accept': 'application/json;odata=nometadata',
81
+ 'Content-Type': 'application/json;odata=nometadata'
82
+ },
83
+ data: requestBody,
84
+ responseType: 'json'
85
+ };
86
+ const result = await request.post(requestOptions);
87
+ if (this.verbose) {
88
+ await logger.logToStderr(`Agent '${args.options.name}' has been successfully created.`);
89
+ }
90
+ await logger.log(result);
91
+ }
92
+ catch (err) {
93
+ this.handleRejectedODataJsonPromise(err);
94
+ }
95
+ }
96
+ async ensureSiteAssetsLibrary(webUrl, logger) {
97
+ if (this.verbose) {
98
+ await logger.logToStderr(`Ensuring Site Assets library exists at ${webUrl}...`);
99
+ }
100
+ const requestOptions = {
101
+ url: `${webUrl}/_api/web/lists/EnsureSiteAssetsLibrary()`,
102
+ headers: {
103
+ 'Accept': 'application/json;odata=nometadata'
104
+ },
105
+ responseType: 'json'
106
+ };
107
+ await request.post(requestOptions);
108
+ }
109
+ async resolveSourceUrls(sourceUrls, webUrl, logger) {
110
+ const resolvedUrls = [];
111
+ const resolvedFiles = [];
112
+ for (const sourceUrl of sourceUrls) {
113
+ if (this.verbose) {
114
+ await logger.logToStderr(`Resolving source URL: ${sourceUrl}`);
115
+ }
116
+ const requestBody = {
117
+ request: {
118
+ QueryTemplate: "({searchterms}) (contentclass:STS_Web OR contentclass:STS_Site OR contentclass:STS_ListItem_DocumentLibrary OR contentclass:STS_List_DocumentLibrary)",
119
+ Querytext: `Path="${sourceUrl}"`,
120
+ SelectProperties: ["contentclass", "Title", "Path", "SiteName", "SiteTitle", "ListID", "ListItemID", "SiteID", "WebId", "UniqueID", "IsDocument", "IsContainer"],
121
+ RowLimit: 1,
122
+ TrimDuplicates: false
123
+ }
124
+ };
125
+ const requestOptions = {
126
+ url: `${webUrl}/_api/search/postquery`,
127
+ headers: {
128
+ 'Accept': 'application/json;odata=nometadata'
129
+ },
130
+ responseType: 'json',
131
+ data: requestBody
132
+ };
133
+ const response = await request.post(requestOptions);
134
+ if (response.PrimaryQueryResult.RelevantResults.Table.Rows.length === 0) {
135
+ await logger.logToStderr(`${sourceUrl} has been skipped because no results were found.`);
136
+ continue;
137
+ }
138
+ const row = response.PrimaryQueryResult.RelevantResults.Table.Rows[0];
139
+ const isContainer = this.getCellValue(row, "IsContainer");
140
+ let uniqueId = this.getCellValue(row, "UniqueID");
141
+ if (uniqueId.startsWith('{') && uniqueId.endsWith('}')) {
142
+ uniqueId = uniqueId.slice(1, -1);
143
+ }
144
+ const contentClass = this.getCellValue(row, "contentclass");
145
+ const resolvedItem = {
146
+ url: sourceUrl,
147
+ name: this.getCellValue(row, "Title"),
148
+ site_id: this.getCellValue(row, "SiteID"),
149
+ web_id: this.getCellValue(row, "WebId"),
150
+ list_id: this.getCellValue(row, "ListID") || '',
151
+ unique_id: uniqueId,
152
+ type: isContainer === 'true' && contentClass === 'STS_ListItem_DocumentLibrary' ? 'Folder' : urlSourceMap[contentClass]
153
+ };
154
+ if (resolvedItem.type === 'File') {
155
+ resolvedFiles.push(resolvedItem);
156
+ }
157
+ else {
158
+ resolvedUrls.push(resolvedItem);
159
+ }
160
+ }
161
+ return {
162
+ name: "OneDriveAndSharePoint",
163
+ items_by_sharepoint_ids: resolvedFiles,
164
+ items_by_url: resolvedUrls
165
+ };
166
+ }
167
+ getCellValue(row, key) {
168
+ return row.Cells.find((cell) => cell.Key === key)?.Value || '';
169
+ }
170
+ }
171
+ export default new SpoAgentAddCommand();
172
+ //# sourceMappingURL=agent-add.js.map