@joshuanode/n8n-nodes-cipp 0.0.13 → 0.0.16

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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/nodes/Cipp/Cipp.node.d.ts.map +1 -1
  3. package/dist/nodes/Cipp/Cipp.node.js +1551 -50
  4. package/dist/nodes/Cipp/Cipp.node.js.map +1 -1
  5. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.d.ts +4 -0
  6. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.d.ts.map +1 -0
  7. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.js +413 -0
  8. package/dist/nodes/Cipp/descriptions/ConditionalAccessDescription.js.map +1 -0
  9. package/dist/nodes/Cipp/descriptions/DeviceDescription.d.ts.map +1 -1
  10. package/dist/nodes/Cipp/descriptions/DeviceDescription.js +6 -0
  11. package/dist/nodes/Cipp/descriptions/DeviceDescription.js.map +1 -1
  12. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.d.ts +4 -0
  13. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.d.ts.map +1 -0
  14. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.js +347 -0
  15. package/dist/nodes/Cipp/descriptions/EmailSecurityDescription.js.map +1 -0
  16. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.d.ts +4 -0
  17. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.d.ts.map +1 -0
  18. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.js +249 -0
  19. package/dist/nodes/Cipp/descriptions/ExchangeResourceDescription.js.map +1 -0
  20. package/dist/nodes/Cipp/descriptions/IntuneDescription.d.ts +4 -0
  21. package/dist/nodes/Cipp/descriptions/IntuneDescription.d.ts.map +1 -0
  22. package/dist/nodes/Cipp/descriptions/IntuneDescription.js +250 -0
  23. package/dist/nodes/Cipp/descriptions/IntuneDescription.js.map +1 -0
  24. package/dist/nodes/Cipp/descriptions/MailboxDescription.d.ts.map +1 -1
  25. package/dist/nodes/Cipp/descriptions/MailboxDescription.js +1094 -6
  26. package/dist/nodes/Cipp/descriptions/MailboxDescription.js.map +1 -1
  27. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.d.ts +4 -0
  28. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.d.ts.map +1 -0
  29. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.js +201 -0
  30. package/dist/nodes/Cipp/descriptions/SafeLinksDescription.js.map +1 -0
  31. package/dist/nodes/Cipp/descriptions/SharePointDescription.d.ts +4 -0
  32. package/dist/nodes/Cipp/descriptions/SharePointDescription.d.ts.map +1 -0
  33. package/dist/nodes/Cipp/descriptions/SharePointDescription.js +129 -0
  34. package/dist/nodes/Cipp/descriptions/SharePointDescription.js.map +1 -0
  35. package/dist/nodes/Cipp/descriptions/StandardsDescription.d.ts +4 -0
  36. package/dist/nodes/Cipp/descriptions/StandardsDescription.d.ts.map +1 -0
  37. package/dist/nodes/Cipp/descriptions/StandardsDescription.js +288 -0
  38. package/dist/nodes/Cipp/descriptions/StandardsDescription.js.map +1 -0
  39. package/dist/nodes/Cipp/descriptions/TestingDescription.d.ts +4 -0
  40. package/dist/nodes/Cipp/descriptions/TestingDescription.d.ts.map +1 -0
  41. package/dist/nodes/Cipp/descriptions/TestingDescription.js +170 -0
  42. package/dist/nodes/Cipp/descriptions/TestingDescription.js.map +1 -0
  43. package/dist/nodes/Cipp/descriptions/UserDescription.d.ts.map +1 -1
  44. package/dist/nodes/Cipp/descriptions/UserDescription.js +135 -2
  45. package/dist/nodes/Cipp/descriptions/UserDescription.js.map +1 -1
  46. package/dist/nodes/Cipp/descriptions/index.d.ts.map +1 -1
  47. package/dist/nodes/Cipp/descriptions/index.js +24 -0
  48. package/dist/nodes/Cipp/descriptions/index.js.map +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.standardsFields = exports.standardsOperations = void 0;
4
+ const listOperations = [
5
+ 'listStandards',
6
+ 'listStandardTemplates',
7
+ 'listBPA',
8
+ 'listDomainAnalyser',
9
+ 'listDomainHealth',
10
+ 'listTenantDrift',
11
+ 'listTenantAlignment',
12
+ ];
13
+ const tenantOperations = [
14
+ 'listStandards',
15
+ 'addStandardsDeploy',
16
+ 'removeStandard',
17
+ 'runStandards',
18
+ 'listBPA',
19
+ 'execBPA',
20
+ 'listDomainAnalyser',
21
+ 'execDomainAnalyser',
22
+ 'listTenantDrift',
23
+ 'listTenantAlignment',
24
+ 'execDriftClone',
25
+ ];
26
+ exports.standardsOperations = [
27
+ {
28
+ displayName: 'Operation',
29
+ name: 'operation',
30
+ type: 'options',
31
+ noDataExpression: true,
32
+ displayOptions: {
33
+ show: {
34
+ resource: ['standards'],
35
+ },
36
+ },
37
+ options: [
38
+ {
39
+ name: 'Add Standards Deploy',
40
+ value: 'addStandardsDeploy',
41
+ description: 'Deploy standards to a tenant',
42
+ action: 'Deploy standards to a tenant',
43
+ },
44
+ {
45
+ name: 'Add Standard Template',
46
+ value: 'addStandardTemplate',
47
+ description: 'Create a standard template',
48
+ action: 'Create a standard template',
49
+ },
50
+ {
51
+ name: 'Exec BPA',
52
+ value: 'execBPA',
53
+ description: 'Execute a Best Practice Analysis for a tenant',
54
+ action: 'Execute BPA for a tenant',
55
+ },
56
+ {
57
+ name: 'Exec Domain Analyser',
58
+ value: 'execDomainAnalyser',
59
+ description: 'Execute domain analysis for a tenant',
60
+ action: 'Execute domain analyser',
61
+ },
62
+ {
63
+ name: 'Exec Drift Clone',
64
+ value: 'execDriftClone',
65
+ description: 'Clone drift configuration for a tenant',
66
+ action: 'Clone drift configuration',
67
+ },
68
+ {
69
+ name: 'List BPA',
70
+ value: 'listBPA',
71
+ description: 'List Best Practice Analysis results',
72
+ action: 'List BPA results',
73
+ },
74
+ {
75
+ name: 'List Domain Analyser',
76
+ value: 'listDomainAnalyser',
77
+ description: 'List domain analyser results for a tenant',
78
+ action: 'List domain analyser results',
79
+ },
80
+ {
81
+ name: 'List Domain Health',
82
+ value: 'listDomainHealth',
83
+ description: 'List domain health information',
84
+ action: 'List domain health',
85
+ },
86
+ {
87
+ name: 'List Standards',
88
+ value: 'listStandards',
89
+ description: 'List all tenant standards',
90
+ action: 'List tenant standards',
91
+ },
92
+ {
93
+ name: 'List Standard Templates',
94
+ value: 'listStandardTemplates',
95
+ description: 'List all standard templates',
96
+ action: 'List standard templates',
97
+ },
98
+ {
99
+ name: 'List Tenant Alignment',
100
+ value: 'listTenantAlignment',
101
+ description: 'List tenant alignment status',
102
+ action: 'List tenant alignment',
103
+ },
104
+ {
105
+ name: 'List Tenant Drift',
106
+ value: 'listTenantDrift',
107
+ description: 'List tenant configuration drift',
108
+ action: 'List tenant drift',
109
+ },
110
+ {
111
+ name: 'Remove Standard',
112
+ value: 'removeStandard',
113
+ description: 'Remove a deployed standard from a tenant',
114
+ action: 'Remove a standard',
115
+ },
116
+ {
117
+ name: 'Remove Standard Template',
118
+ value: 'removeStandardTemplate',
119
+ description: 'Remove a standard template',
120
+ action: 'Remove a standard template',
121
+ },
122
+ {
123
+ name: 'Run Standards',
124
+ value: 'runStandards',
125
+ description: 'Trigger a standards run for a tenant',
126
+ action: 'Run standards for a tenant',
127
+ },
128
+ ],
129
+ default: 'listStandards',
130
+ },
131
+ ];
132
+ exports.standardsFields = [
133
+ // ==================== Tenant selector ====================
134
+ {
135
+ displayName: 'Tenant',
136
+ name: 'tenantFilter',
137
+ type: 'resourceLocator',
138
+ default: { mode: 'list', value: '' },
139
+ required: true,
140
+ description: 'The tenant to perform the operation on',
141
+ displayOptions: {
142
+ show: {
143
+ resource: ['standards'],
144
+ operation: tenantOperations,
145
+ },
146
+ },
147
+ modes: [
148
+ {
149
+ displayName: 'From List',
150
+ name: 'list',
151
+ type: 'list',
152
+ typeOptions: {
153
+ searchListMethod: 'tenantSearch',
154
+ searchable: true,
155
+ },
156
+ },
157
+ {
158
+ displayName: 'By Domain',
159
+ name: 'domain',
160
+ type: 'string',
161
+ placeholder: 'e.g. contoso.onmicrosoft.com',
162
+ },
163
+ ],
164
+ },
165
+ // ==================== Return All / Limit ====================
166
+ {
167
+ displayName: 'Return All',
168
+ name: 'returnAll',
169
+ type: 'boolean',
170
+ displayOptions: {
171
+ show: {
172
+ resource: ['standards'],
173
+ operation: listOperations,
174
+ },
175
+ },
176
+ default: false,
177
+ description: 'Whether to return all results or only up to a given limit',
178
+ },
179
+ {
180
+ displayName: 'Limit',
181
+ name: 'limit',
182
+ type: 'number',
183
+ displayOptions: {
184
+ show: {
185
+ resource: ['standards'],
186
+ operation: listOperations,
187
+ returnAll: [false],
188
+ },
189
+ },
190
+ typeOptions: {
191
+ minValue: 1,
192
+ maxValue: 500,
193
+ },
194
+ default: 50,
195
+ description: 'Max number of results to return',
196
+ },
197
+ // ==================== Standard ID (for remove) ====================
198
+ {
199
+ displayName: 'Standard ID',
200
+ name: 'standardId',
201
+ type: 'string',
202
+ required: true,
203
+ displayOptions: {
204
+ show: {
205
+ resource: ['standards'],
206
+ operation: ['removeStandard'],
207
+ },
208
+ },
209
+ default: '',
210
+ description: 'The ID of the standard to remove',
211
+ },
212
+ // ==================== Standards JSON (for deploy) ====================
213
+ {
214
+ displayName: 'Standards JSON',
215
+ name: 'standardsJson',
216
+ type: 'json',
217
+ required: true,
218
+ displayOptions: {
219
+ show: {
220
+ resource: ['standards'],
221
+ operation: ['addStandardsDeploy'],
222
+ },
223
+ },
224
+ default: '{}',
225
+ description: 'The standards deployment configuration as JSON',
226
+ },
227
+ // ==================== Template ID (for remove template) ====================
228
+ {
229
+ displayName: 'Template ID',
230
+ name: 'standardTemplateId',
231
+ type: 'string',
232
+ required: true,
233
+ displayOptions: {
234
+ show: {
235
+ resource: ['standards'],
236
+ operation: ['removeStandardTemplate'],
237
+ },
238
+ },
239
+ default: '',
240
+ description: 'The ID of the standard template to remove',
241
+ },
242
+ // ==================== Template JSON (for add template) ====================
243
+ {
244
+ displayName: 'Template JSON',
245
+ name: 'standardTemplateJson',
246
+ type: 'json',
247
+ required: true,
248
+ displayOptions: {
249
+ show: {
250
+ resource: ['standards'],
251
+ operation: ['addStandardTemplate'],
252
+ },
253
+ },
254
+ default: '{}',
255
+ description: 'The standard template definition as JSON',
256
+ },
257
+ // ==================== Domain (for domain analyser / health) ====================
258
+ {
259
+ displayName: 'Domain',
260
+ name: 'domain',
261
+ type: 'string',
262
+ required: true,
263
+ displayOptions: {
264
+ show: {
265
+ resource: ['standards'],
266
+ operation: ['execDomainAnalyser', 'listDomainHealth'],
267
+ },
268
+ },
269
+ default: '',
270
+ description: 'The domain to analyse',
271
+ },
272
+ // ==================== Drift JSON (for drift clone) ====================
273
+ {
274
+ displayName: 'Drift JSON',
275
+ name: 'driftJson',
276
+ type: 'json',
277
+ required: true,
278
+ displayOptions: {
279
+ show: {
280
+ resource: ['standards'],
281
+ operation: ['execDriftClone'],
282
+ },
283
+ },
284
+ default: '{}',
285
+ description: 'The drift clone configuration as JSON',
286
+ },
287
+ ];
288
+ //# sourceMappingURL=StandardsDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardsDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/StandardsDescription.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAAG;IACtB,eAAe;IACf,uBAAuB;IACvB,SAAS;IACT,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB;IACjB,qBAAqB;CACrB,CAAC;AAEF,MAAM,gBAAgB,GAAG;IACxB,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,cAAc;IACd,SAAS;IACT,SAAS;IACT,oBAAoB;IACpB,oBAAoB;IACpB,iBAAiB;IACjB,qBAAqB;IACrB,gBAAgB;CAChB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QAC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vB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC7B;SACD;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,uCAAuC;KACpD;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const testingOperations: INodeProperties[];
3
+ export declare const testingFields: INodeProperties[];
4
+ //# sourceMappingURL=TestingDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestingDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TestingDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAqCpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAmD9C,CAAC;AAIF,eAAO,MAAM,aAAa,EAAE,eAAe,EAoF1C,CAAC"}
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testingFields = exports.testingOperations = void 0;
4
+ // ────────────────── Shared helpers ──────────────────
5
+ const tenantSelector = {
6
+ displayName: 'Tenant',
7
+ name: 'tenantFilter',
8
+ type: 'resourceLocator',
9
+ default: { mode: 'list', value: '' },
10
+ required: true,
11
+ description: 'The tenant to perform the operation on',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['testing'],
15
+ },
16
+ },
17
+ modes: [
18
+ {
19
+ displayName: 'From List',
20
+ name: 'list',
21
+ type: 'list',
22
+ typeOptions: {
23
+ searchListMethod: 'tenantSearch',
24
+ searchable: true,
25
+ },
26
+ },
27
+ {
28
+ displayName: 'By Domain',
29
+ name: 'domain',
30
+ type: 'string',
31
+ placeholder: 'e.g. contoso.onmicrosoft.com',
32
+ },
33
+ ],
34
+ };
35
+ // ────────────────── Operations ──────────────────
36
+ exports.testingOperations = [
37
+ {
38
+ displayName: 'Operation',
39
+ name: 'operation',
40
+ type: 'options',
41
+ noDataExpression: true,
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['testing'],
45
+ },
46
+ },
47
+ options: [
48
+ {
49
+ name: 'Add Test Report',
50
+ value: 'addTestReport',
51
+ description: 'Add a new test report',
52
+ action: 'Add test report',
53
+ },
54
+ {
55
+ name: 'Delete Test Report',
56
+ value: 'deleteTestReport',
57
+ description: 'Delete a test report',
58
+ action: 'Delete test report',
59
+ },
60
+ {
61
+ name: 'Execute Test Run',
62
+ value: 'execTestRun',
63
+ description: 'Execute a test run',
64
+ action: 'Execute test run',
65
+ },
66
+ {
67
+ name: 'List Available Tests',
68
+ value: 'listAvailableTests',
69
+ description: 'List all available tests',
70
+ action: 'List available tests',
71
+ },
72
+ {
73
+ name: 'List Test Reports',
74
+ value: 'listTestReports',
75
+ description: 'List all test reports',
76
+ action: 'List test reports',
77
+ },
78
+ {
79
+ name: 'List Tests',
80
+ value: 'listTests',
81
+ description: 'List all tests',
82
+ action: 'List tests',
83
+ },
84
+ ],
85
+ default: 'listTests',
86
+ },
87
+ ];
88
+ // ────────────────── Fields ──────────────────
89
+ exports.testingFields = [
90
+ // Shared: Tenant
91
+ tenantSelector,
92
+ // Return All / Limit for list operations
93
+ {
94
+ displayName: 'Return All',
95
+ name: 'returnAll',
96
+ type: 'boolean',
97
+ displayOptions: {
98
+ show: {
99
+ resource: ['testing'],
100
+ operation: ['listTests', 'listAvailableTests', 'listTestReports'],
101
+ },
102
+ },
103
+ default: false,
104
+ description: 'Whether to return all results or only up to a given limit',
105
+ },
106
+ {
107
+ displayName: 'Limit',
108
+ name: 'limit',
109
+ type: 'number',
110
+ displayOptions: {
111
+ show: {
112
+ resource: ['testing'],
113
+ operation: ['listTests', 'listAvailableTests', 'listTestReports'],
114
+ returnAll: [false],
115
+ },
116
+ },
117
+ typeOptions: {
118
+ minValue: 1,
119
+ maxValue: 500,
120
+ },
121
+ default: 50,
122
+ description: 'Max number of results to return',
123
+ },
124
+ // Test JSON for execTestRun
125
+ {
126
+ displayName: 'Test JSON',
127
+ name: 'testJson',
128
+ type: 'json',
129
+ required: true,
130
+ displayOptions: {
131
+ show: {
132
+ resource: ['testing'],
133
+ operation: ['execTestRun'],
134
+ },
135
+ },
136
+ default: '{}',
137
+ description: 'JSON object containing the test run configuration',
138
+ },
139
+ // Report JSON for addTestReport
140
+ {
141
+ displayName: 'Report JSON',
142
+ name: 'reportJson',
143
+ type: 'json',
144
+ required: true,
145
+ displayOptions: {
146
+ show: {
147
+ resource: ['testing'],
148
+ operation: ['addTestReport'],
149
+ },
150
+ },
151
+ default: '{}',
152
+ description: 'JSON object containing the test report properties',
153
+ },
154
+ // ID for deleteTestReport
155
+ {
156
+ displayName: 'Report ID',
157
+ name: 'testReportId',
158
+ type: 'string',
159
+ required: true,
160
+ displayOptions: {
161
+ show: {
162
+ resource: ['testing'],
163
+ operation: ['deleteTestReport'],
164
+ },
165
+ },
166
+ default: '',
167
+ description: 'The ID of the test report to delete',
168
+ },
169
+ ];
170
+ //# sourceMappingURL=TestingDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestingDescription.js","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/TestingDescription.ts"],"names":[],"mappings":";;;AAEA,uDAAuD;AAEvD,MAAM,cAAc,GAAoB;IACvC,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,wCAAwC;IACrD,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,SAAS,CAAC;SACrB;KACD;IACD,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,gBAAgB,EAAE,cAAc;gBAChC,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EA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W;QACxB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qCAAqC;KAClD;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/UserDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EAiI3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EA0cvC,CAAC"}
1
+ {"version":3,"file":"UserDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Cipp/descriptions/UserDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc,EAAE,eAAe,EAmM3C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAghBvC,CAAC"}
@@ -19,6 +19,18 @@ exports.userOperations = [
19
19
  description: 'Create a new user',
20
20
  action: 'Add a user',
21
21
  },
22
+ {
23
+ name: 'Add Guest',
24
+ value: 'addGuest',
25
+ description: 'Add a guest user to the tenant',
26
+ action: 'Add a guest user',
27
+ },
28
+ {
29
+ name: 'Bulk License',
30
+ value: 'bulkLicense',
31
+ description: 'Apply license changes in bulk',
32
+ action: 'Bulk license assignment',
33
+ },
22
34
  {
23
35
  name: 'Clear Immutable ID',
24
36
  value: 'clearImmutableId',
@@ -61,6 +73,12 @@ exports.userOperations = [
61
73
  description: 'Get a list of users',
62
74
  action: 'Get many users',
63
75
  },
76
+ {
77
+ name: 'List Per-User MFA',
78
+ value: 'listPerUserMfa',
79
+ description: 'List per-user MFA settings for the tenant',
80
+ action: 'List per user MFA',
81
+ },
64
82
  {
65
83
  name: 'List Inactive Accounts',
66
84
  value: 'listInactiveAccounts',
@@ -79,6 +97,48 @@ exports.userOperations = [
79
97
  description: 'List users with their MFA status',
80
98
  action: 'List MFA users',
81
99
  },
100
+ {
101
+ name: 'List User CA Policies',
102
+ value: 'listUserCAPolicies',
103
+ description: 'List conditional access policies applied to a user',
104
+ action: 'List user CA policies',
105
+ },
106
+ {
107
+ name: 'List User Counts',
108
+ value: 'listUserCounts',
109
+ description: 'Get user count statistics for a tenant',
110
+ action: 'List user counts',
111
+ },
112
+ {
113
+ name: 'List User Devices',
114
+ value: 'listUserDevices',
115
+ description: 'List devices registered to a user',
116
+ action: 'List user devices',
117
+ },
118
+ {
119
+ name: 'List User Groups',
120
+ value: 'listUserGroups',
121
+ description: 'List groups a user belongs to',
122
+ action: 'List user groups',
123
+ },
124
+ {
125
+ name: 'List User Mailbox Details',
126
+ value: 'listUserMailboxDetails',
127
+ description: 'Get mailbox details for a user',
128
+ action: 'List user mailbox details',
129
+ },
130
+ {
131
+ name: 'List User Photo',
132
+ value: 'listUserPhoto',
133
+ description: 'Get the profile photo for a user',
134
+ action: 'List user photo',
135
+ },
136
+ {
137
+ name: 'List User Settings',
138
+ value: 'listUserSettings',
139
+ description: 'Get account settings for a user',
140
+ action: 'List user settings',
141
+ },
82
142
  {
83
143
  name: 'List Sign-Ins',
84
144
  value: 'listSignIns',
@@ -127,6 +187,12 @@ exports.userOperations = [
127
187
  description: 'Set per-user MFA state',
128
188
  action: 'Set per user mfa',
129
189
  },
190
+ {
191
+ name: 'Set User Photo',
192
+ value: 'setUserPhoto',
193
+ description: 'Set the profile photo for a user',
194
+ action: 'Set user photo',
195
+ },
130
196
  ],
131
197
  default: 'getAll',
132
198
  },
@@ -172,7 +238,7 @@ exports.userFields = [
172
238
  displayOptions: {
173
239
  show: {
174
240
  resource: ['user'],
175
- operation: ['getAll', 'listInactiveAccounts', 'listSignIns', 'listMfaUsers', 'listJitAdmin'],
241
+ operation: ['getAll', 'listInactiveAccounts', 'listSignIns', 'listMfaUsers', 'listJitAdmin', 'listUserDevices', 'listUserGroups', 'listUserMailboxDetails', 'listUserPhoto', 'listUserCAPolicies', 'listUserSettings', 'listPerUserMfa', 'listUserCounts'],
176
242
  },
177
243
  },
178
244
  default: false,
@@ -185,7 +251,7 @@ exports.userFields = [
185
251
  displayOptions: {
186
252
  show: {
187
253
  resource: ['user'],
188
- operation: ['getAll', 'listInactiveAccounts', 'listSignIns', 'listMfaUsers', 'listJitAdmin'],
254
+ operation: ['getAll', 'listInactiveAccounts', 'listSignIns', 'listMfaUsers', 'listJitAdmin', 'listUserDevices', 'listUserGroups', 'listUserMailboxDetails', 'listUserPhoto', 'listUserCAPolicies', 'listUserSettings', 'listPerUserMfa', 'listUserCounts'],
189
255
  returnAll: [false],
190
256
  },
191
257
  },
@@ -210,6 +276,12 @@ exports.userFields = [
210
276
  'dismissRiskyUser',
211
277
  'enable',
212
278
  'execJitAdmin',
279
+ 'listUserDevices',
280
+ 'listUserGroups',
281
+ 'listUserMailboxDetails',
282
+ 'listUserPhoto',
283
+ 'listUserCAPolicies',
284
+ 'listUserSettings',
213
285
  'resetMfa',
214
286
  'resetPassword',
215
287
  'revokeSessions',
@@ -218,6 +290,7 @@ exports.userFields = [
218
290
  'createTap',
219
291
  'sendMfaPush',
220
292
  'setPerUserMfa',
293
+ 'setUserPhoto',
221
294
  ],
222
295
  },
223
296
  },
@@ -580,5 +653,65 @@ exports.userFields = [
580
653
  },
581
654
  ],
582
655
  },
656
+ // Add Guest fields
657
+ {
658
+ displayName: 'Display Name',
659
+ name: 'guestDisplayName',
660
+ type: 'string',
661
+ required: true,
662
+ displayOptions: {
663
+ show: {
664
+ resource: ['user'],
665
+ operation: ['addGuest'],
666
+ },
667
+ },
668
+ default: '',
669
+ description: 'The display name of the guest user',
670
+ },
671
+ {
672
+ displayName: 'Email',
673
+ name: 'guestMail',
674
+ type: 'string',
675
+ required: true,
676
+ displayOptions: {
677
+ show: {
678
+ resource: ['user'],
679
+ operation: ['addGuest'],
680
+ },
681
+ },
682
+ default: '',
683
+ placeholder: 'e.g. guest@external.com',
684
+ description: 'The email address of the guest user to invite',
685
+ },
686
+ // Set User Photo fields
687
+ {
688
+ displayName: 'Photo (Base64)',
689
+ name: 'photo',
690
+ type: 'string',
691
+ required: true,
692
+ displayOptions: {
693
+ show: {
694
+ resource: ['user'],
695
+ operation: ['setUserPhoto'],
696
+ },
697
+ },
698
+ default: '',
699
+ description: 'The photo data encoded as a Base64 string',
700
+ },
701
+ // Bulk License fields
702
+ {
703
+ displayName: 'License JSON',
704
+ name: 'licenseJson',
705
+ type: 'json',
706
+ required: true,
707
+ displayOptions: {
708
+ show: {
709
+ resource: ['user'],
710
+ operation: ['bulkLicense'],
711
+ },
712
+ },
713
+ default: '{}',
714
+ description: 'JSON object containing license assignment details',
715
+ },
583
716
  ];
584
717
  //# sourceMappingURL=UserDescription.js.map