@microsoft/msgraph-sdk-auditlogs 1.0.0-preview.10

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/auditLogs/directoryAudits/count/index.d.ts +40 -0
  4. package/auditLogs/directoryAudits/count/index.d.ts.map +1 -0
  5. package/auditLogs/directoryAudits/count/index.js +35 -0
  6. package/auditLogs/directoryAudits/index.d.ts +96 -0
  7. package/auditLogs/directoryAudits/index.d.ts.map +1 -0
  8. package/auditLogs/directoryAudits/index.js +70 -0
  9. package/auditLogs/directoryAudits/item/index.d.ts +67 -0
  10. package/auditLogs/directoryAudits/item/index.d.ts.map +1 -0
  11. package/auditLogs/directoryAudits/item/index.js +56 -0
  12. package/auditLogs/index.d.ts +74 -0
  13. package/auditLogs/index.d.ts.map +1 -0
  14. package/auditLogs/index.js +71 -0
  15. package/auditLogs/provisioning/count/index.d.ts +40 -0
  16. package/auditLogs/provisioning/count/index.d.ts.map +1 -0
  17. package/auditLogs/provisioning/count/index.js +35 -0
  18. package/auditLogs/provisioning/index.d.ts +96 -0
  19. package/auditLogs/provisioning/index.d.ts.map +1 -0
  20. package/auditLogs/provisioning/index.js +70 -0
  21. package/auditLogs/provisioning/item/index.d.ts +66 -0
  22. package/auditLogs/provisioning/item/index.d.ts.map +1 -0
  23. package/auditLogs/provisioning/item/index.js +56 -0
  24. package/auditLogs/signIns/count/index.d.ts +40 -0
  25. package/auditLogs/signIns/count/index.d.ts.map +1 -0
  26. package/auditLogs/signIns/count/index.js +35 -0
  27. package/auditLogs/signIns/index.d.ts +96 -0
  28. package/auditLogs/signIns/index.d.ts.map +1 -0
  29. package/auditLogs/signIns/index.js +70 -0
  30. package/auditLogs/signIns/item/index.d.ts +67 -0
  31. package/auditLogs/signIns/item/index.d.ts.map +1 -0
  32. package/auditLogs/signIns/item/index.js +56 -0
  33. package/auditLogsServiceClient.d.ts +25 -0
  34. package/auditLogsServiceClient.d.ts.map +1 -0
  35. package/auditLogsServiceClient.js +49 -0
  36. package/index.d.ts +11 -0
  37. package/index.d.ts.map +1 -0
  38. package/index.js +20 -0
  39. package/package.json +48 -0
  40. package/tsconfig.json +15 -0
  41. package/tsconfig.tsbuildinfo +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Microsoft Graph
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@microsoft/msgraph-sdk-auditLogs`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const msgraphSdkJavascriptAuditLogs = require('@microsoft/msgraph-sdk-auditLogs');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,40 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns a Promise of Integer
10
+ */
11
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
+ /**
13
+ * Get the number of the resource
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a RequestInformation
16
+ */
17
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
+ }
19
+ /**
20
+ * Get the number of the resource
21
+ */
22
+ export interface CountRequestBuilderGetQueryParameters {
23
+ /**
24
+ * Filter items by property values
25
+ */
26
+ filter?: string;
27
+ /**
28
+ * Search items by search phrases
29
+ */
30
+ search?: string;
31
+ }
32
+ /**
33
+ * Metadata for all the requests in the request builder.
34
+ */
35
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
+ /**
37
+ * Uri template for the request builder.
38
+ */
39
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits/$count{?%24search,%24filter}";
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,sEAAsE,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
+ */
11
+ const CountRequestBuilderGetQueryParametersMapper = {
12
+ "filter": "%24filter",
13
+ "search": "%24search",
14
+ };
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.CountRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ responseBodyContentType: "text/plain;q=0.9",
21
+ errorMappings: {
22
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ },
25
+ adapterMethodName: "sendPrimitiveAsync",
26
+ responseBodyFactory: "number",
27
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
+ },
29
+ };
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,96 @@
1
+ import { type DirectoryAudit, type DirectoryAuditCollectionResponse } from '@microsoft/msgraph-sdk/models/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type DirectoryAuditItemRequestBuilder } from './item/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity.
7
+ */
8
+ export interface DirectoryAuditsRequestBuilder extends BaseRequestBuilder<DirectoryAuditsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity.
15
+ * @param directoryAuditId The unique identifier of directoryAudit
16
+ * @returns a DirectoryAuditItemRequestBuilder
17
+ */
18
+ byDirectoryAuditId(directoryAuditId: string): DirectoryAuditItemRequestBuilder;
19
+ /**
20
+ * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns a Promise of DirectoryAuditCollectionResponse
23
+ * @see {@link https://learn.microsoft.com/graph/api/directoryaudit-list?view=graph-rest-1.0|Find more info here}
24
+ */
25
+ get(requestConfiguration?: RequestConfiguration<DirectoryAuditsRequestBuilderGetQueryParameters> | undefined): Promise<DirectoryAuditCollectionResponse | undefined>;
26
+ /**
27
+ * Create new navigation property to directoryAudits for auditLogs
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns a Promise of DirectoryAudit
31
+ */
32
+ post(body: DirectoryAudit, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DirectoryAudit | undefined>;
33
+ /**
34
+ * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
35
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
+ * @returns a RequestInformation
37
+ */
38
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DirectoryAuditsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
39
+ /**
40
+ * Create new navigation property to directoryAudits for auditLogs
41
+ * @param body The request body
42
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
+ * @returns a RequestInformation
44
+ */
45
+ toPostRequestInformation(body: DirectoryAudit, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
+ }
47
+ /**
48
+ * Get the list of audit logs generated by Microsoft Entra ID. This includes audit logs generated by various services within Microsoft Entra ID, including user, app, device and group Management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), and self- service group management, and so on.
49
+ */
50
+ export interface DirectoryAuditsRequestBuilderGetQueryParameters {
51
+ /**
52
+ * Include count of items
53
+ */
54
+ count?: boolean;
55
+ /**
56
+ * Expand related entities
57
+ */
58
+ expand?: string[];
59
+ /**
60
+ * Filter items by property values
61
+ */
62
+ filter?: string;
63
+ /**
64
+ * Order items by property values
65
+ */
66
+ orderby?: string[];
67
+ /**
68
+ * Search items by search phrases
69
+ */
70
+ search?: string;
71
+ /**
72
+ * Select properties to be returned
73
+ */
74
+ select?: string[];
75
+ /**
76
+ * Skip the first n items
77
+ */
78
+ skip?: number;
79
+ /**
80
+ * Show only the first n items
81
+ */
82
+ top?: number;
83
+ }
84
+ /**
85
+ * Metadata for all the navigation properties in the request builder.
86
+ */
87
+ export declare const DirectoryAuditsRequestBuilderNavigationMetadata: Record<Exclude<keyof DirectoryAuditsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
88
+ /**
89
+ * Metadata for all the requests in the request builder.
90
+ */
91
+ export declare const DirectoryAuditsRequestBuilderRequestsMetadata: RequestsMetadata;
92
+ /**
93
+ * Uri template for the request builder.
94
+ */
95
+ export declare const DirectoryAuditsRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
96
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqI,KAAK,cAAc,EAAE,KAAK,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAE/O,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAiG,KAAK,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAC/J,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB,CAAC,6BAA6B,CAAC;IACpG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,GAAI,gCAAgC,CAAC;IACjF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,+CAA+C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACvK;;;;;OAKG;IACF,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,+CAA+C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACxJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,cAAc,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACzI;AACD;;GAEG;AACH,MAAM,WAAW,+CAA+C;IAC5D;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAcD;;GAEG;AACH,eAAO,MAAM,+CAA+C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,6BAA6B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAUxK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,gBAuB3D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,wCAAwC,sHAAsH,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectoryAuditsRequestBuilderUriTemplate = exports.DirectoryAuditsRequestBuilderRequestsMetadata = exports.DirectoryAuditsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const DirectoryAuditsRequestBuilderGetQueryParametersMapper = {
15
+ "count": "%24count",
16
+ "expand": "%24expand",
17
+ "filter": "%24filter",
18
+ "orderby": "%24orderby",
19
+ "search": "%24search",
20
+ "select": "%24select",
21
+ "skip": "%24skip",
22
+ "top": "%24top",
23
+ };
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ exports.DirectoryAuditsRequestBuilderNavigationMetadata = {
28
+ byDirectoryAuditId: {
29
+ uriTemplate: item_1.DirectoryAuditItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.DirectoryAuditItemRequestBuilderRequestsMetadata,
31
+ pathParametersMappings: ["directoryAudit%2Did"],
32
+ },
33
+ count: {
34
+ uriTemplate: count_1.CountRequestBuilderUriTemplate,
35
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
36
+ },
37
+ };
38
+ /**
39
+ * Metadata for all the requests in the request builder.
40
+ */
41
+ exports.DirectoryAuditsRequestBuilderRequestsMetadata = {
42
+ get: {
43
+ responseBodyContentType: "application/json",
44
+ errorMappings: {
45
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ },
48
+ adapterMethodName: "sendAsync",
49
+ responseBodyFactory: models_1.createDirectoryAuditCollectionResponseFromDiscriminatorValue,
50
+ queryParametersMapper: DirectoryAuditsRequestBuilderGetQueryParametersMapper,
51
+ },
52
+ post: {
53
+ responseBodyContentType: "application/json",
54
+ errorMappings: {
55
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
56
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ },
58
+ adapterMethodName: "sendAsync",
59
+ responseBodyFactory: models_1.createDirectoryAuditFromDiscriminatorValue,
60
+ requestBodyContentType: "application/json",
61
+ requestBodySerializer: models_1.serializeDirectoryAudit,
62
+ requestInformationContentSetMethod: "setContentFromParsable",
63
+ },
64
+ };
65
+ /**
66
+ * Uri template for the request builder.
67
+ */
68
+ exports.DirectoryAuditsRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
69
+ /* tslint:enable */
70
+ /* eslint-enable */
@@ -0,0 +1,67 @@
1
+ import { type DirectoryAudit } from '@microsoft/msgraph-sdk/models/';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity.
5
+ */
6
+ export interface DirectoryAuditItemRequestBuilder extends BaseRequestBuilder<DirectoryAuditItemRequestBuilder> {
7
+ /**
8
+ * Delete navigation property directoryAudits for auditLogs
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ */
11
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
12
+ /**
13
+ * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a Promise of DirectoryAudit
16
+ * @see {@link https://learn.microsoft.com/graph/api/directoryaudit-get?view=graph-rest-1.0|Find more info here}
17
+ */
18
+ get(requestConfiguration?: RequestConfiguration<DirectoryAuditItemRequestBuilderGetQueryParameters> | undefined): Promise<DirectoryAudit | undefined>;
19
+ /**
20
+ * Update the navigation property directoryAudits in auditLogs
21
+ * @param body The request body
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns a Promise of DirectoryAudit
24
+ */
25
+ patch(body: DirectoryAudit, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DirectoryAudit | undefined>;
26
+ /**
27
+ * Delete navigation property directoryAudits for auditLogs
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a RequestInformation
30
+ */
31
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
+ /**
33
+ * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns a RequestInformation
36
+ */
37
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DirectoryAuditItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
+ /**
39
+ * Update the navigation property directoryAudits in auditLogs
40
+ * @param body The request body
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns a RequestInformation
43
+ */
44
+ toPatchRequestInformation(body: DirectoryAudit, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
+ }
46
+ /**
47
+ * Get a specific Microsoft Entra audit log item. This includes an audit log item generated by various services within Microsoft Entra ID like user, application, device and group management, privileged identity management (PIM), access reviews, terms of use, identity protection, password management (self-service and admin password resets), self-service group management, and so on.
48
+ */
49
+ export interface DirectoryAuditItemRequestBuilderGetQueryParameters {
50
+ /**
51
+ * Expand related entities
52
+ */
53
+ expand?: string[];
54
+ /**
55
+ * Select properties to be returned
56
+ */
57
+ select?: string[];
58
+ }
59
+ /**
60
+ * Metadata for all the requests in the request builder.
61
+ */
62
+ export declare const DirectoryAuditItemRequestBuilderRequestsMetadata: RequestsMetadata;
63
+ /**
64
+ * Uri template for the request builder.
65
+ */
66
+ export declare const DirectoryAuditItemRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits/{directoryAudit%2Did}{?%24select,%24expand}";
67
+ //# s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CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,gDAAgD,EAAE,gBA+B9D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,2CAA2C,qFAAqF,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectoryAuditItemRequestBuilderUriTemplate = exports.DirectoryAuditItemRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ /**
10
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
11
+ */
12
+ const DirectoryAuditItemRequestBuilderGetQueryParametersMapper = {
13
+ "expand": "%24expand",
14
+ "select": "%24select",
15
+ };
16
+ /**
17
+ * Metadata for all the requests in the request builder.
18
+ */
19
+ exports.DirectoryAuditItemRequestBuilderRequestsMetadata = {
20
+ delete: {
21
+ responseBodyContentType: "application/json",
22
+ errorMappings: {
23
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "sendNoResponseContentAsync",
27
+ },
28
+ get: {
29
+ responseBodyContentType: "application/json",
30
+ errorMappings: {
31
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
32
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
33
+ },
34
+ adapterMethodName: "sendAsync",
35
+ responseBodyFactory: models_1.createDirectoryAuditFromDiscriminatorValue,
36
+ queryParametersMapper: DirectoryAuditItemRequestBuilderGetQueryParametersMapper,
37
+ },
38
+ patch: {
39
+ responseBodyContentType: "application/json",
40
+ errorMappings: {
41
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ },
44
+ adapterMethodName: "sendAsync",
45
+ responseBodyFactory: models_1.createDirectoryAuditFromDiscriminatorValue,
46
+ requestBodyContentType: "application/json",
47
+ requestBodySerializer: models_1.serializeDirectoryAudit,
48
+ requestInformationContentSetMethod: "setContentFromParsable",
49
+ },
50
+ };
51
+ /**
52
+ * Uri template for the request builder.
53
+ */
54
+ exports.DirectoryAuditItemRequestBuilderUriTemplate = "{+baseurl}/auditLogs/directoryAudits/{directoryAudit%2Did}{?%24select,%24expand}";
55
+ /* tslint:enable */
56
+ /* eslint-enable */
@@ -0,0 +1,74 @@
1
+ import { type AuditLogRoot } from '@microsoft/msgraph-sdk/models/';
2
+ import { type DirectoryAuditsRequestBuilder } from './directoryAudits/';
3
+ import { type ProvisioningRequestBuilder } from './provisioning/';
4
+ import { type SignInsRequestBuilder } from './signIns/';
5
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
6
+ /**
7
+ * Provides operations to manage the auditLogRoot singleton.
8
+ */
9
+ export interface AuditLogsRequestBuilder extends BaseRequestBuilder<AuditLogsRequestBuilder> {
10
+ /**
11
+ * Provides operations to manage the directoryAudits property of the microsoft.graph.auditLogRoot entity.
12
+ */
13
+ get directoryAudits(): DirectoryAuditsRequestBuilder;
14
+ /**
15
+ * Provides operations to manage the provisioning property of the microsoft.graph.auditLogRoot entity.
16
+ */
17
+ get provisioning(): ProvisioningRequestBuilder;
18
+ /**
19
+ * Provides operations to manage the signIns property of the microsoft.graph.auditLogRoot entity.
20
+ */
21
+ get signIns(): SignInsRequestBuilder;
22
+ /**
23
+ * Get auditLogs
24
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
25
+ * @returns a Promise of AuditLogRoot
26
+ */
27
+ get(requestConfiguration?: RequestConfiguration<AuditLogsRequestBuilderGetQueryParameters> | undefined): Promise<AuditLogRoot | undefined>;
28
+ /**
29
+ * Update auditLogs
30
+ * @param body The request body
31
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32
+ * @returns a Promise of AuditLogRoot
33
+ */
34
+ patch(body: AuditLogRoot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AuditLogRoot | undefined>;
35
+ /**
36
+ * Get auditLogs
37
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
38
+ * @returns a RequestInformation
39
+ */
40
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AuditLogsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
41
+ /**
42
+ * Update auditLogs
43
+ * @param body The request body
44
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45
+ * @returns a RequestInformation
46
+ */
47
+ toPatchRequestInformation(body: AuditLogRoot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
48
+ }
49
+ /**
50
+ * Get auditLogs
51
+ */
52
+ export interface AuditLogsRequestBuilderGetQueryParameters {
53
+ /**
54
+ * Expand related entities
55
+ */
56
+ expand?: string[];
57
+ /**
58
+ * Select properties to be returned
59
+ */
60
+ select?: string[];
61
+ }
62
+ /**
63
+ * Metadata for all the navigation properties in the request builder.
64
+ */
65
+ export declare const AuditLogsRequestBuilderNavigationMetadata: Record<Exclude<keyof AuditLogsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
66
+ /**
67
+ * Metadata for all the requests in the request builder.
68
+ */
69
+ export declare const AuditLogsRequestBuilderRequestsMetadata: RequestsMetadata;
70
+ /**
71
+ * Uri template for the request builder.
72
+ */
73
+ export declare const AuditLogsRequestBuilderUriTemplate = "{+baseurl}/auditLogs{?%24select,%24expand}";
74
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAG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C;IACtD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAgB5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAuBrD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kCAAkC,+CAA+C,CAAC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditLogsRequestBuilderUriTemplate = exports.AuditLogsRequestBuilderRequestsMetadata = exports.AuditLogsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const directoryAudits_1 = require("./directoryAudits/");
10
+ const provisioning_1 = require("./provisioning/");
11
+ const signIns_1 = require("./signIns/");
12
+ /**
13
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
14
+ */
15
+ const AuditLogsRequestBuilderGetQueryParametersMapper = {
16
+ "expand": "%24expand",
17
+ "select": "%24select",
18
+ };
19
+ /**
20
+ * Metadata for all the navigation properties in the request builder.
21
+ */
22
+ exports.AuditLogsRequestBuilderNavigationMetadata = {
23
+ directoryAudits: {
24
+ uriTemplate: directoryAudits_1.DirectoryAuditsRequestBuilderUriTemplate,
25
+ requestsMetadata: directoryAudits_1.DirectoryAuditsRequestBuilderRequestsMetadata,
26
+ navigationMetadata: directoryAudits_1.DirectoryAuditsRequestBuilderNavigationMetadata,
27
+ },
28
+ provisioning: {
29
+ uriTemplate: provisioning_1.ProvisioningRequestBuilderUriTemplate,
30
+ requestsMetadata: provisioning_1.ProvisioningRequestBuilderRequestsMetadata,
31
+ navigationMetadata: provisioning_1.ProvisioningRequestBuilderNavigationMetadata,
32
+ },
33
+ signIns: {
34
+ uriTemplate: signIns_1.SignInsRequestBuilderUriTemplate,
35
+ requestsMetadata: signIns_1.SignInsRequestBuilderRequestsMetadata,
36
+ navigationMetadata: signIns_1.SignInsRequestBuilderNavigationMetadata,
37
+ },
38
+ };
39
+ /**
40
+ * Metadata for all the requests in the request builder.
41
+ */
42
+ exports.AuditLogsRequestBuilderRequestsMetadata = {
43
+ get: {
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ },
49
+ adapterMethodName: "sendAsync",
50
+ responseBodyFactory: models_1.createAuditLogRootFromDiscriminatorValue,
51
+ queryParametersMapper: AuditLogsRequestBuilderGetQueryParametersMapper,
52
+ },
53
+ patch: {
54
+ responseBodyContentType: "application/json",
55
+ errorMappings: {
56
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
+ },
59
+ adapterMethodName: "sendAsync",
60
+ responseBodyFactory: models_1.createAuditLogRootFromDiscriminatorValue,
61
+ requestBodyContentType: "application/json",
62
+ requestBodySerializer: models_1.serializeAuditLogRoot,
63
+ requestInformationContentSetMethod: "setContentFromParsable",
64
+ },
65
+ };
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ exports.AuditLogsRequestBuilderUriTemplate = "{+baseurl}/auditLogs{?%24select,%24expand}";
70
+ /* tslint:enable */
71
+ /* eslint-enable */
@@ -0,0 +1,40 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns a Promise of Integer
10
+ */
11
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
+ /**
13
+ * Get the number of the resource
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a RequestInformation
16
+ */
17
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
+ }
19
+ /**
20
+ * Get the number of the resource
21
+ */
22
+ export interface CountRequestBuilderGetQueryParameters {
23
+ /**
24
+ * Filter items by property values
25
+ */
26
+ filter?: string;
27
+ /**
28
+ * Search items by search phrases
29
+ */
30
+ search?: string;
31
+ }
32
+ /**
33
+ * Metadata for all the requests in the request builder.
34
+ */
35
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
+ /**
37
+ * Uri template for the request builder.
38
+ */
39
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/auditLogs/provisioning/$count{?%24search,%24filter}";
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,mEAAmE,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
+ */
11
+ const CountRequestBuilderGetQueryParametersMapper = {
12
+ "filter": "%24filter",
13
+ "search": "%24search",
14
+ };
15
+ /**
16
+ * Metadata for all the requests in the request builder.
17
+ */
18
+ exports.CountRequestBuilderRequestsMetadata = {
19
+ get: {
20
+ responseBodyContentType: "text/plain;q=0.9",
21
+ errorMappings: {
22
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ },
25
+ adapterMethodName: "sendPrimitiveAsync",
26
+ responseBodyFactory: "number",
27
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
+ },
29
+ };
30
+ /**
31
+ * Uri template for the request builder.
32
+ */
33
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/auditLogs/provisioning/$count{?%24search,%24filter}";
34
+ /* tslint:enable */
35
+ /* eslint-enable */