@pnp/cli-microsoft365 11.5.0-beta.9dbb2e8 → 11.5.0-beta.d906a19

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.
@@ -0,0 +1,39 @@
1
+ import commands from '../../commands.js';
2
+ import { globalOptionsZod } from '../../../../Command.js';
3
+ import request from '../../../../request.js';
4
+ import { spo } from '../../../../utils/spo.js';
5
+ import SpoCommand from '../../../base/SpoCommand.js';
6
+ const options = globalOptionsZod.strict();
7
+ class SpoBrandCenterSettingsListCommand extends SpoCommand {
8
+ get name() {
9
+ return commands.BRANDCENTER_SETTINGS_LIST;
10
+ }
11
+ get description() {
12
+ return 'Lists the brand center configuration';
13
+ }
14
+ get schema() {
15
+ return options;
16
+ }
17
+ async commandAction(logger) {
18
+ if (this.verbose) {
19
+ await logger.logToStderr(`Retrieving brand center configuration...`);
20
+ }
21
+ try {
22
+ const spoUrl = await spo.getSpoUrl(logger, this.verbose);
23
+ const requestOptions = {
24
+ url: `${spoUrl}/_api/Brandcenter/Configuration`,
25
+ headers: {
26
+ accept: 'application/json;odata=nometadata'
27
+ },
28
+ responseType: 'json'
29
+ };
30
+ const res = await request.get(requestOptions);
31
+ await logger.log(res);
32
+ }
33
+ catch (err) {
34
+ this.handleRejectedODataJsonPromise(err);
35
+ }
36
+ }
37
+ }
38
+ export default new SpoBrandCenterSettingsListCommand();
39
+ //# sourceMappingURL=brandcenter-settings-list.js.map
@@ -18,6 +18,7 @@ export default {
18
18
  APPLICATIONCUSTOMIZER_SET: `${prefix} applicationcustomizer set`,
19
19
  APPPAGE_ADD: `${prefix} apppage add`,
20
20
  APPPAGE_SET: `${prefix} apppage set`,
21
+ BRANDCENTER_SETTINGS_LIST: `${prefix} brandcenter settings list`,
21
22
  CDN_GET: `${prefix} cdn get`,
22
23
  CDN_ORIGIN_ADD: `${prefix} cdn origin add`,
23
24
  CDN_ORIGIN_LIST: `${prefix} cdn origin list`,
@@ -0,0 +1,52 @@
1
+ import { globalOptionsZod } from '../../../../Command.js';
2
+ import { z } from 'zod';
3
+ import commands from '../../commands.js';
4
+ import GraphApplicationCommand from '../../../base/GraphApplicationCommand.js';
5
+ import request from '../../../../request.js';
6
+ export const options = z.strictObject({
7
+ ...globalOptionsZod.shape,
8
+ id: z.uuid().alias('i')
9
+ });
10
+ class TeamsCallRecordGetCommand extends GraphApplicationCommand {
11
+ get name() {
12
+ return commands.CALLRECORD_GET;
13
+ }
14
+ get description() {
15
+ return 'Gets a specific Teams call';
16
+ }
17
+ get schema() {
18
+ return options;
19
+ }
20
+ async commandAction(logger, args) {
21
+ try {
22
+ const callRecordId = args.options.id;
23
+ if (this.verbose) {
24
+ await logger.logToStderr(`Retrieving call record ${callRecordId}...`);
25
+ }
26
+ // only one relationship can be expanded at a time
27
+ let requestOptions = {
28
+ url: `${this.resource}/v1.0/communications/callRecords/${callRecordId}?$expand=sessions($expand=segments)`,
29
+ headers: {
30
+ accept: 'application/json;odata.metadata=none'
31
+ },
32
+ responseType: 'json'
33
+ };
34
+ const callRecordPart1 = await request.get(requestOptions);
35
+ requestOptions = {
36
+ url: `${this.resource}/v1.0/communications/callRecords/${callRecordId}?$select=participants_v2&$expand=participants_v2`,
37
+ headers: {
38
+ accept: 'application/json;odata.metadata=none'
39
+ },
40
+ responseType: 'json'
41
+ };
42
+ const callRecordPart2 = await request.get(requestOptions);
43
+ const callRecord = { ...callRecordPart1, ...callRecordPart2 };
44
+ await logger.log(callRecord);
45
+ }
46
+ catch (err) {
47
+ this.handleRejectedODataJsonPromise(err);
48
+ }
49
+ }
50
+ }
51
+ export default new TeamsCallRecordGetCommand();
52
+ //# sourceMappingURL=callrecord-get.js.map
@@ -7,6 +7,7 @@ export default {
7
7
  APP_UNINSTALL: `${prefix} app uninstall`,
8
8
  APP_UPDATE: `${prefix} app update`,
9
9
  CACHE_REMOVE: `${prefix} cache remove`,
10
+ CALLRECORD_GET: `${prefix} callrecord get`,
10
11
  CALLRECORD_LIST: `${prefix} callrecord list`,
11
12
  CHANNEL_ADD: `${prefix} channel add`,
12
13
  CHANNEL_GET: `${prefix} channel get`,
@@ -39,6 +39,24 @@ When creating open extensions it's possible to enter a JSON string. In PowerShel
39
39
 
40
40
  :::
41
41
 
42
+ ## Permissions
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|---------------------------------------------------------------------------------------------|
48
+ | Microsoft Graph | Directory.AccessAsUser.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |-----------------|-------------------------------------------------------------------------------------------|
55
+ | Microsoft Graph | Device.ReadWrite.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
42
60
  ## Examples
43
61
 
44
62
  Create a new open extension for a user specified by id. Extension properties are specified by unknown options.
@@ -27,6 +27,24 @@ m365 graph openextension get [options]
27
27
 
28
28
  <Global />
29
29
 
30
+ ## Permissions
31
+ <Tabs>
32
+ <TabItem value="Delegated">
33
+
34
+ | Resource | Permissions |
35
+ |-----------------|-----------------------------------------------|
36
+ | Microsoft Graph | Directory.Read.All, Group.Read.All, User.Read |
37
+
38
+ </TabItem>
39
+ <TabItem value="Application">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|-----------------------------------------------------------------------|
43
+ | Microsoft Graph | Device.Read.All, Group.Read.All, Organization.Read.All, User.Read.All |
44
+
45
+ </TabItem>
46
+ </Tabs>
47
+
30
48
  ## Examples
31
49
 
32
50
  Retrieve a specified open extension for a user specified by id.
@@ -24,6 +24,24 @@ m365 graph openextension list [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Permissions
28
+ <Tabs>
29
+ <TabItem value="Delegated">
30
+
31
+ | Resource | Permissions |
32
+ |-----------------|-----------------------------------------------|
33
+ | Microsoft Graph | Directory.Read.All, Group.Read.All, User.Read |
34
+
35
+ </TabItem>
36
+ <TabItem value="Application">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|-----------------------------------------------------------------------|
40
+ | Microsoft Graph | Device.Read.All, Group.Read.All, Organization.Read.All, User.Read.All |
41
+
42
+ </TabItem>
43
+ </Tabs>
44
+
27
45
  ## Examples
28
46
 
29
47
  Retrieve open extensions for a user specified by id
@@ -30,6 +30,24 @@ m365 graph openextension remove [options]
30
30
 
31
31
  <Global />
32
32
 
33
+ ## Permissions
34
+ <Tabs>
35
+ <TabItem value="Delegated">
36
+
37
+ | Resource | Permissions |
38
+ |-----------------|---------------------------------------------------------------------------------------------|
39
+ | Microsoft Graph | Directory.AccessAsUser.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite |
40
+
41
+ </TabItem>
42
+ <TabItem value="Application">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|-------------------------------------------------------------------------------------------|
46
+ | Microsoft Graph | Device.ReadWrite.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite.All |
47
+
48
+ </TabItem>
49
+ </Tabs>
50
+
33
51
  ## Examples
34
52
 
35
53
  Remove a specified open extension for a user specified by id.
@@ -50,6 +50,24 @@ If a property of the open extension is not specified and `keepUnchangedPropertie
50
50
 
51
51
  :::
52
52
 
53
+ ## Permissions
54
+ <Tabs>
55
+ <TabItem value="Delegated">
56
+
57
+ | Resource | Permissions |
58
+ |-----------------|---------------------------------------------------------------------------------------------|
59
+ | Microsoft Graph | Directory.AccessAsUser.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite |
60
+
61
+ </TabItem>
62
+ <TabItem value="Application">
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|-------------------------------------------------------------------------------------------|
66
+ | Microsoft Graph | Device.ReadWrite.All, Group.ReadWrite.All, Organization.ReadWrite.All, User.ReadWrite.All |
67
+
68
+ </TabItem>
69
+ </Tabs>
70
+
53
71
  ## Examples
54
72
 
55
73
  Updates an open extension for a user specified by id
@@ -27,6 +27,25 @@ m365 outlook message get [options]
27
27
 
28
28
  <Global />
29
29
 
30
+ ## Permissions
31
+
32
+ <Tabs>
33
+ <TabItem value="Delegated">
34
+
35
+ | Resource | Permissions |
36
+ |-----------------|----------------|
37
+ | Microsoft Graph | Mail.ReadBasic |
38
+
39
+ </TabItem>
40
+ <TabItem value="Application">
41
+
42
+ | Resource | Permissions |
43
+ |-----------------|---------------------|
44
+ | Microsoft Graph | Mail.ReadBasic.All |
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
30
49
  ## Examples
31
50
 
32
51
  Get a specific message using delegated permissions.
@@ -36,6 +36,25 @@ m365 outlook message list [options]
36
36
 
37
37
  <Global />
38
38
 
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|---------------------------|
46
+ | Microsoft Graph | Mail.ReadBasic |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |-----------------|--------------------------------|
53
+ | Microsoft Graph | Mail.ReadBasic.All |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
39
58
  ## Examples
40
59
 
41
60
  List all messages from a folder with the specified name received within a specific time frame.
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import TabItem from '@theme/TabItem';
3
+ import Tabs from '@theme/Tabs';
2
4
 
3
5
  # outlook message move
4
6
 
@@ -31,6 +33,25 @@ m365 outlook message move [options]
31
33
 
32
34
  <Global />
33
35
 
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |-----------------|---------------------------|
43
+ | Microsoft Graph | Mail.ReadWrite |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |-----------------|--------------------------------|
50
+ | Microsoft Graph | Mail.ReadWrite |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
34
55
  ## Examples
35
56
 
36
57
  Move the specified message to another folder specified by ID
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import TabItem from '@theme/TabItem';
3
+ import Tabs from '@theme/Tabs';
2
4
 
3
5
  # outlook message remove
4
6
 
@@ -28,6 +30,25 @@ m365 outlook message remove [options]
28
30
 
29
31
  <Global />
30
32
 
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|---------------------------|
40
+ | Microsoft Graph | Mail.ReadWrite |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|--------------------------------|
47
+ | Microsoft Graph | Mail.ReadWrite |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
31
52
  ## Remarks
32
53
 
33
54
  :::warning
@@ -0,0 +1,151 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo brandcenter settings list
6
+
7
+ Lists the brand center configuration
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo brandcenter settings list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ <Global />
18
+
19
+ ## Permissions
20
+
21
+ <Tabs>
22
+ <TabItem value="Delegated">
23
+
24
+ | Resource | Permissions |
25
+ |------------|---------------|
26
+ | SharePoint | AllSites.Read |
27
+
28
+ </TabItem>
29
+ <TabItem value="Application">
30
+
31
+ | Resource | Permissions |
32
+ |------------|----------------|
33
+ | SharePoint | Sites.Read.All |
34
+
35
+ </TabItem>
36
+ </Tabs>
37
+
38
+ ## Examples
39
+
40
+ List all brand center config
41
+
42
+ ```sh
43
+ m365 spo brandcenter settings list
44
+ ```
45
+
46
+ ## Response
47
+
48
+ <Tabs>
49
+ <TabItem value="JSON">
50
+
51
+ ```json
52
+ {
53
+ "BrandColorsListId": "00000000-0000-0000-0000-000000000000",
54
+ "BrandColorsListUrl": {
55
+ "DecodedUrl": "https://contoso.sharepoint.com/sites/BrandGuide/_catalogs/brandcolors"
56
+ },
57
+ "BrandFontLibraryId": "23af51de-856c-4d00-aa11-0d03af0e46e3",
58
+ "BrandFontLibraryUrl": {
59
+ "DecodedUrl": "https://contoso.sharepoint.com/sites/BrandGuide/Fonts"
60
+ },
61
+ "IsBrandCenterSiteFeatureEnabled": true,
62
+ "IsPublicCdnEnabled": true,
63
+ "OrgAssets": {
64
+ "CentralAssetRepositoryLibraries": null,
65
+ "Domain": {
66
+ "DecodedUrl": "https://contoso.sharepoint.com"
67
+ },
68
+ "OrgAssetsLibraries": {
69
+ "OrgAssetsLibraries": [
70
+ {
71
+ "DisplayName": "Fonts",
72
+ "FileType": "",
73
+ "LibraryUrl": {
74
+ "DecodedUrl": "sites/BrandGuide/Fonts"
75
+ },
76
+ "ListId": "23af51de-856c-4d00-aa11-0d03af0e46e3",
77
+ "OrgAssetFlags": 0,
78
+ "OrgAssetType": 8,
79
+ "ThumbnailUrl": null,
80
+ "UniqueId": "00000000-0000-0000-0000-000000000000"
81
+ }
82
+ ],
83
+ "Items": [
84
+ {
85
+ "DisplayName": "Fonts",
86
+ "FileType": "",
87
+ "LibraryUrl": {
88
+ "DecodedUrl": "sites/BrandGuide/Fonts"
89
+ },
90
+ "ListId": "23af51de-856c-4d00-aa11-0d03af0e46e3",
91
+ "OrgAssetFlags": 0,
92
+ "OrgAssetType": 8,
93
+ "ThumbnailUrl": null,
94
+ "UniqueId": "00000000-0000-0000-0000-000000000000"
95
+ }
96
+ ]
97
+ },
98
+ "SiteId": "52b46e48-9c0c-40cb-a955-13eb6c717ff3",
99
+ "Url": {
100
+ "DecodedUrl": "/sites/BrandGuide"
101
+ },
102
+ "WebId": "206988d5-e133-4a24-819d-24101f3407ce"
103
+ },
104
+ "SiteId": "52b46e48-9c0c-40cb-a955-13eb6c717ff3",
105
+ "SiteUrl": "https://contoso.sharepoint.com/sites/BrandGuide"
106
+ }
107
+ ```
108
+
109
+ </TabItem>
110
+ <TabItem value="Text">
111
+
112
+ ```txt
113
+ BrandColorsListId : 00000000-0000-0000-0000-000000000000
114
+ BrandColorsListUrl : {"DecodedUrl": "https://contoso.sharepoint.com/sites/BrandGuide/_catalogs/brandcolors"}
115
+ BrandFontLibraryId : 23af51de-856c-4d00-aa11-0d03af0e46e3
116
+ BrandFontLibraryUrl : {"DecodedUrl":"https://contoso.sharepoint.com/sites/BrandGuide/Fonts"}
117
+ IsBrandCenterSiteFeatureEnabled: true
118
+ IsPublicCdnEnabled : true
119
+ OrgAssets : {"CentralAssetRepositoryLibraries":null,"Domain":{"DecodedUrl":"https://contoso.sharepoint.com"},"OrgAssetsLibraries":{"OrgAssetsLibraries":[{"DisplayName":"Fonts","FileType":"","LibraryUrl":{"DecodedUrl":"sites/BrandGuide/Fonts"},"ListId":"23af51de-856c-4d00-aa11-0d03af0e46e3","OrgAssetFlags":0,"OrgAssetType":8,"ThumbnailUrl":null,"UniqueId":"00000000-0000-0000-0000-000000000000"}],"Items":[{"DisplayName":"Fonts","FileType":"","LibraryUrl":{"DecodedUrl":"sites/BrandGuide/Fonts"},"ListId":"23af51de-856c-4d00-aa11-0d03af0e46e3","OrgAssetFlags":0,"OrgAssetType":8,"ThumbnailUrl":null,"UniqueId":"00000000-0000-0000-0000-000000000000"}]},"SiteId":"52b46e48-9c0c-40cb-a955-13eb6c717ff3","Url":{"DecodedUrl":"/sites/BrandGuide"},"WebId":"206988d5-e133-4a24-819d-24101f3407ce"}
120
+ SiteId : 52b46e48-9c0c-40cb-a955-13eb6c717ff3
121
+ SiteUrl : https://contoso.sharepoint.com/sites/BrandGuide
122
+ ```
123
+
124
+ </TabItem>
125
+ <TabItem value="CSV">
126
+
127
+ ```csv
128
+ BrandColorsListId,BrandFontLibraryId,IsBrandCenterSiteFeatureEnabled,IsPublicCdnEnabled,SiteId,SiteUrl
129
+ 00000000-0000-0000-0000-000000000000,23af51de-856c-4d00-aa11-0d03af0e46e3,1,1,52b46e48-9c0c-40cb-a955-13eb6c717ff3,https://contoso.sharepoint.com/sites/BrandGuide
130
+ ```
131
+
132
+ </TabItem>
133
+ <TabItem value="Markdown">
134
+
135
+ ```md
136
+ # spo brandcenter settings list
137
+
138
+ Date: 12/1/2025
139
+
140
+ Property | Value
141
+ ---------|-------
142
+ BrandColorsListId | 00000000-0000-0000-0000-000000000000
143
+ BrandFontLibraryId | 23af51de-856c-4d00-aa11-0d03af0e46e3
144
+ IsBrandCenterSiteFeatureEnabled | true
145
+ IsPublicCdnEnabled | true
146
+ SiteId | 52b46e48-9c0c-40cb-a955-13eb6c717ff3
147
+ SiteUrl | https://contoso.sharepoint.com/sites/BrandGuide
148
+ ```
149
+
150
+ </TabItem>
151
+ </Tabs>