From 5f0e3b7438fb4f9bc306f90b4288d11c40b1fc59 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 6 Jul 2021 10:09:56 +0000 Subject: [PATCH 1/2] Update generated files with build 52280 --- microsoft-graph.d.ts | 196 +++++++++++++++++++++++++++++-------------- 1 file changed, 135 insertions(+), 61 deletions(-) diff --git a/microsoft-graph.d.ts b/microsoft-graph.d.ts index 642a5d5..0e088fa 100644 --- a/microsoft-graph.d.ts +++ b/microsoft-graph.d.ts @@ -1173,6 +1173,23 @@ export type TeamSpecialization = | "unknownFutureValue"; export type TeamVisibilityType = "private" | "public" | "hiddenMembership" | "unknownFutureValue"; export type TeamworkActivityTopicSource = "entityUrl" | "text"; +export type TeamworkApplicationIdentityType = + | "aadApplication" + | "bot" + | "tenantBot" + | "office365Connector" + | "outgoingWebhook" + | "unknownFutureValue"; +export type TeamworkConversationIdentityType = "team" | "channel" | "chat" | "unknownFutureValue"; +export type TeamworkUserIdentityType = + | "aadUser" + | "onPremiseAadUser" + | "anonymousGuest" + | "federatedUser" + | "personalMicrosoftAccountUser" + | "skypeUser" + | "phoneUser" + | "unknownFutureValue"; export type ScheduleChangeRequestActor = "sender" | "recipient" | "manager" | "system" | "unknownFutureValue"; export type ScheduleChangeState = "pending" | "approved" | "declined" | "unknownFutureValue"; export type ScheduleEntityTheme = @@ -1523,7 +1540,7 @@ export interface User extends DirectoryObject { * The date and time the user was created. The value cannot be modified and is automatically populated when the entity is * created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. * Property is nullable. A null value indicates that an accurate creation time couldn't be determined for the user. - * Read-only. Supports $filter (eq, ne, NOT , ge, le, and in operators) and $orderBy. + * Read-only. Supports $filter (eq, ne, NOT , ge, le, and in operators). */ createdDateTime?: NullableOption; /** @@ -2829,18 +2846,11 @@ export interface OfficeGraphInsights extends Entity { } export interface UserSettings extends Entity { /** - * Reflects the organization level setting controlling delegate access to the trending API. When set to true, the - * organization doesn't have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example - * in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected for the whole - * organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center. + * Reflects the Office Delve organization level setting. When set to true, the organization doesn't have access to Office + * Delve. This setting is read-only and can only be changed by administrators in the SharePoint admin center. */ contributionToContentDiscoveryAsOrganizationDisabled?: boolean; - /** - * When set to true, the delegate access to the user's trending API is disabled. When set to true, documents in the user's - * Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in - * Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected. Users can control this - * setting in Office Delve. - */ + // When set to true, documents in the user's Office Delve are disabled. Users can control this setting in Office Delve. contributionToContentDiscoveryDisabled?: boolean; // The shift preferences for the user. shiftPreferences?: NullableOption; @@ -4114,6 +4124,14 @@ export interface Group extends DirectoryObject { * members with license errors (that is, filter for this property being true). */ hasMembersWithLicenseErrors?: NullableOption; + /** + * Indicates whether this group can be assigned to an Azure Active Directory role.This property can only be set while + * creating the group and is immutable. If set to true, the securityEnabled property must also be set to true and the + * group cannot be a dynamic group (that is, groupTypes cannot contain DynamicMembership).Only callers in Global + * Administrator and Privileged Role Administrator roles can set this property. For more, see Using a group to manage + * Azure AD role assignmentsReturned by default. + */ + isAssignableToRole?: NullableOption; /** * Indicates status of the group license assignment to all members of the group. Possible values: QueuedForProcessing, * ProcessingInProgress, and ProcessingComplete. Returned only on $select. Read-only. @@ -4272,7 +4290,7 @@ export interface Group extends DirectoryObject { * (supported only for security groups) Read-only. Nullable. */ owners?: NullableOption; - // The permission that has been granted for a group to a specific application. + // The permissions that have been granted for a group to a specific application. permissionGrants?: NullableOption; // Settings that can govern this group's behavior, like whether members can invite guest users to the group. Nullable. settings?: NullableOption; @@ -4320,7 +4338,7 @@ export interface ResourceSpecificPermissionGrant extends DirectoryObject { clientAppId?: NullableOption; // ID of the Azure AD app that has been granted access. Read-only. clientId?: NullableOption; - // The name of the permission. Read-only. + // The name of the resource-specific permission. Read-only. permission?: NullableOption; // The type of permission. Possible values are: Application, Delegated. Read-only. permissionType?: NullableOption; @@ -4614,7 +4632,10 @@ export interface PermissionGrantConditionSet extends Entity { export interface SubscribedSku extends Entity { // For example, 'User' or 'Company'. appliesTo?: NullableOption; - // Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut. + /** + * Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut. The capabilityStatus is Enabled if the + * prepaidUnits property has at least 1 unit that is enabled, and LockedOut if the customer cancelled their subscription. + */ capabilityStatus?: NullableOption; // The number of licenses that have been assigned. consumedUnits?: NullableOption; @@ -6392,74 +6413,96 @@ export interface Call extends Entity { export interface AccessReviewInstance extends Entity { /** * DateTime when review instance is scheduled to end.The DatetimeOffset type represents date and time information using - * ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports + * $select. Read-only. */ endDateTime?: NullableOption; /** * Created based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of - * users reviewed in a group. In the case of a single-group review, the scope defined at the - * accessReviewScheduleDefinition level applies to all instances. In the case of all groups review, scope may be different - * for each group. Read-only. + * users reviewed in a group. Supports $select and $filter (contains only). Read-only. */ scope?: NullableOption; /** * DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset type represents date and * time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is - * 2014-01-01T00:00:00Z. + * 2014-01-01T00:00:00Z. Supports $select. Read-only. */ startDateTime?: NullableOption; /** - * Specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting, InProgress, - * Completing, Completed, AutoReviewing, and AutoReviewed. Read-only. + * Specifies the status of an accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, + * Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter (eq only). Read-only. */ status?: NullableOption; /** - * Each user reviewed in an accessReviewInstance has a decision item representing if their access was approved, denied, or - * not yet reviewed. + * Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not + * yet reviewed. */ decisions?: NullableOption; } export interface AccessReviewInstanceDecisionItem extends Entity { - // The identifier of the accessReviewInstance parent. + // The identifier of the accessReviewInstance parent. Supports $select. Read-only. accessReviewId?: string; - // The identifier of the user who applied the decision. + // The identifier of the user who applied the decision. Read-only. appliedBy?: NullableOption; /** * The timestamp when the approval decision was applied. The DatetimeOffset type represents date and time information * using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * Supports $select. Read-only. */ appliedDateTime?: NullableOption; - // The result of applying the decision. Possible values: NotApplied, Success, Failed, NotFound, or NotSupported. + /** + * The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, + * AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). + * Read-only. + */ applyResult?: NullableOption; - // Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. + /** + * Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. Supports $select, $orderby, and $filter + * (eq only). + */ decision?: NullableOption; - // The review decision justification. + // Justification left by the reviewer when they made the decision. justification?: NullableOption; /** * Every decision item in an access review represents a principal's access to a resource. This property represents details * of the principal. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is - * 'Bob' and the resource is 'Sales'. Principals can be of two types - userIdentity and servicePrincipalIdentity. + * 'Bob' and the resource is 'Sales'. Principals can be of two types - userIdentity and servicePrincipalIdentity. Supports + * $select. Read-only. */ principal?: NullableOption; + /** + * Link to the principal object. For example: https://graph.microsoft.com/v1.0/users/a6c7aecb-cbfd-4763-87ef-e91b4bd509d9. + * Read-only. + */ principalLink?: NullableOption; - // A system-generated recommendation for the approval decision. Possible values: Approve, Deny, or NotAvailable. + /** + * A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. Recommend + * approve if sign-in is within thirty days of start of review. Recommend deny if sign-in is greater than thirty days of + * start of review. Recommendation not available otherwise. Possible values: Approve, Deny, or NoInfoAvailable. Supports + * $select, $orderby, and $filter (eq only). Read-only. + */ recommendation?: NullableOption; /** * Every decision item in an access review represents a principal's access to a resource. This property represents details * of the resource. For example, if a decision item represents access of User 'Bob' to Group 'Sales' - The principal is - * Bob and the resource is 'Sales'. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource + * Bob and the resource is 'Sales'. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource. + * Read-only. */ resource?: NullableOption; + /** + * A link to the resource. For example, + * https://graph.microsoft.com/v1.0/servicePrincipals/c86300f3-8695-4320-9f6e-32a2555f5ff8. Supports $select. Read-only. + */ resourceLink?: NullableOption; - // The identifier of the reviewer. + // The identifier of the reviewer. Supports $select. Read-only. reviewedBy?: NullableOption; - // The timestamp when the review occurred. + // The timestamp when the review decision occurred. Supports $select. Read-only. reviewedDateTime?: NullableOption; } export interface AccessReviewScheduleDefinition extends Entity { - // User who created this review. + // User who created this review. Read-only. createdBy?: NullableOption; - // Timestamp when the access review series was created. Supports $select. + // Timestamp when the access review series was created. Supports $select. Read-only. createdDateTime?: NullableOption; // Description provided by review creators to provide more context of the review to admins. Supports $select. descriptionForAdmins?: NullableOption; @@ -6468,13 +6511,13 @@ export interface AccessReviewScheduleDefinition extends Entity { * description in the email sent to them requesting their review. Supports $select. */ descriptionForReviewers?: NullableOption; - // Name of the access review series. Required on create. Supports $select. + // Name of the access review series. Supports $select and $orderBy. Required on create. displayName?: NullableOption; /** * This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be * notified to take action if no users are found from the list of reviewers specified. This could occur when either the * group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a - * user's manager does not exist. Supports $select. + * user's manager does not exist. See accessReviewReviewerScope. Replaces backupReviewers. Supports $select. */ fallbackReviewers?: NullableOption; /** @@ -6484,12 +6527,12 @@ export interface AccessReviewScheduleDefinition extends Entity { * instanceEnumerationScope, see Configure the scope of your access review definition using the Microsoft Graph API. */ instanceEnumerationScope?: NullableOption; - // Timestamp when the access review series was last modified. Supports $select. + // Timestamp when the access review series was last modified. Supports $select. Read-only. lastModifiedDateTime?: NullableOption; /** - * This collection of access review scopes is used to define who are the reviewers. Required on create. Supports $select. - * For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the - * Microsoft Graph API. + * This collection of access review scopes is used to define who are the reviewers. The reviewers property is only + * updatable if individual users are assigned as reviewers. Required on create. Supports $select. For examples of options + * for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. */ reviewers?: NullableOption; /** @@ -6498,12 +6541,12 @@ export interface AccessReviewScheduleDefinition extends Entity { * review definition using the Microsoft Graph API. */ scope?: NullableOption; - // The settings for an access review series, see type definition below. Supports $select. + // The settings for an access review series, see type definition below. Supports $select. Required on create. settings?: NullableOption; /** * This read-only field specifies the status of an access review. The typical states include Initializing, NotStarted, * Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $orderby, and $filter - * (eq only). + * (eq only). Read-only. */ status?: NullableOption; /** @@ -11462,7 +11505,7 @@ export interface Channel extends Entity { * programmatically with Create team. Default: false. */ isFavoriteByDefault?: NullableOption; - // The type of the channel. Can be set during creation and cannot be changed. Default: standard. + // The type of the channel. Can be set during creation and can't be changed. Default: standard. membershipType?: NullableOption; /** * A hyperlink that will go to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel @@ -11498,7 +11541,7 @@ export interface ChatMessage extends Entity { // Read-only. Version number of the chat message. etag?: NullableOption; // Read only. Details of the sender of the chat message. - from?: NullableOption; + from?: NullableOption; // The importance of the chat message. The possible values are: normal, high, urgent. importance?: ChatMessageImportance; /** @@ -12244,8 +12287,9 @@ export interface OnPremisesProvisioningError { } export interface PasswordProfile { /** - * If true, at next sign-in, the user must change their password. After a password change, this property will be - * automatically reset to false. If not set, default is false. + * true if the user must change her password on the next login; otherwise false. If not set, default is false. NOTE: For + * Azure B2C tenants, set to false and instead use custom policies and user flows to force password reset at first sign + * in. See Force password reset at first logon. */ forceChangePasswordNextSignIn?: NullableOption; /** @@ -12713,11 +12757,17 @@ export interface LicenseProcessingState { state?: NullableOption; } export interface LicenseUnitsDetail { - // The number of units that are enabled. + // The number of units that are enabled for the active subscription of the service SKU. enabled?: NullableOption; - // The number of units that are suspended. + /** + * The number of units that are suspended because the subscription of the service SKU has been cancelled. The units cannot + * be assigned but can still be reactivated before they are deleted. + */ suspended?: NullableOption; - // The number of units that are in warning status. + /** + * The number of units that are in warning status. When the subscription of the service SKU has expired, the customer has + * a grace period to renew their subscription before it is cancelled (moved to a suspended state). + */ warning?: NullableOption; } export interface OptionalClaim { @@ -14392,9 +14442,9 @@ export interface AppConsentRequestScope { // tslint:disable-next-line: no-empty-interface export interface DisableAndDeleteUserApplyAction extends AccessReviewApplyAction {} export interface PrincipalResourceMembershipsScope extends AccessReviewScope { - // Defines the scopes of the principals to be included in an access review. + // Defines the scopes of the principals whose access to resources are reviewed in the access review. principalScopes?: NullableOption; - // Defines the scopes of the resources for which access will be reviewed. + // Defines the scopes of the resources for which access is reviewed. resourceScopes?: NullableOption; } // tslint:disable-next-line: no-empty-interface @@ -16308,7 +16358,7 @@ export interface AlertHistoryState { export interface AlertTrigger { // Name of the property serving as a detection trigger. name?: NullableOption; - // Type of the property in the key:value pair for interpretation. For example, String, Boolean, etc. + // Type of the property in the key:value pair for interpretation. For example, String, Boolean etc. type?: NullableOption; // Value of the property serving as a detection trigger. value?: NullableOption; @@ -16932,7 +16982,7 @@ export interface ChangeNotification { id?: NullableOption; /** * The type of lifecycle notification if the current notification is a lifecycle notification. Optional. Supported values - * are missed, removed, reauthorizationRequired. + * are missed, subscriptionRemoved, reauthorizationRequired. */ lifecycleEvent?: NullableOption; // The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required. @@ -17018,21 +17068,27 @@ export interface ChatMessageAttachment { */ thumbnailUrl?: NullableOption; } +// tslint:disable-next-line: no-empty-interface +export interface ChatMessageFromIdentitySet extends IdentitySet {} export interface ChatMessageMention { /** * Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding * <at id='{index}'> tag in the message body. */ id?: NullableOption; - /** - * The entity (user, application, team, or channel) that was mentioned. If it was a channel or team that was @mentioned, - * the identitySet contains a conversation property giving the ID of the team/channel, and a conversationIdentityType - * property that represents either the team or channel. - */ - mentioned?: NullableOption; + // The entity (user, application, team, or channel) that was @mentioned. + mentioned?: NullableOption; // String used to represent the mention. For example, a user's display name, a team name. mentionText?: NullableOption; } +export interface ChatMessageMentionedIdentitySet extends IdentitySet { + // If present, represents a conversation (for example, team or channel) @mentioned in a message. + conversation?: NullableOption; +} +export interface TeamworkConversationIdentity extends Identity { + // Type of conversation. Possible values are: team, channel, and chat. + conversationIdentityType?: NullableOption; +} export interface ChatMessagePolicyViolation { /** * The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- @@ -17086,8 +17142,10 @@ export interface ChatMessageReaction { // Supported values are like, angry, sad, laugh, heart, surprised. reactionType?: string; // The user who reacted to the message. - user?: IdentitySet; + user?: ChatMessageReactionIdentitySet; } +// tslint:disable-next-line: no-empty-interface +export interface ChatMessageReactionIdentitySet extends IdentitySet {} export interface OperationError { // Operation error code. code?: NullableOption; @@ -17170,6 +17228,22 @@ export interface TeamworkActivityTopic { */ webUrl?: NullableOption; } +export interface TeamworkApplicationIdentity extends Identity { + /** + * Type of application that is referenced. Possible values are: aadApplication, bot, tenantBot, office365Connector, and + * outgoingWebhook. + */ + applicationIdentityType?: NullableOption; +} +// tslint:disable-next-line: no-empty-interface +export interface TeamworkTagIdentity extends Identity {} +export interface TeamworkUserIdentity extends Identity { + /** + * Type of user. Possible values are: aadUser, onPremiseAadUser, anonymousGuest, federatedUser, + * personalMicrosoftAccountUser, skypeUser, and phoneUser. + */ + userIdentityType?: NullableOption; +} export interface ScheduleEntity { endDateTime?: NullableOption; startDateTime?: NullableOption; From 068eb09a16d0b71fc8cb38f67228403a3b76ea23 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 12 Jul 2021 15:13:10 -0700 Subject: [PATCH 2/2] Updating to 2.0.0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4740822..3ad8b2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@microsoft/microsoft-graph-types", - "version": "1.41.0", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 70ba570..4841320 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/microsoft-graph-types", "description": "Types for Microsoft Graph objects", - "version": "1.41.0", + "version": "2.0.0", "license": "MIT", "types": "microsoft-graph.d.ts", "scripts": {